Voice testing method, device, computer equipment and storage medium

By separating the audio data from the test video and obtaining the sampled image, and combining it with the reference image to determine the response time, the problem of large manual observation errors in the existing technology is solved, and the automation and efficiency of the vehicle terminal voice test are realized.

CN114360530BActive Publication Date: 2024-08-27BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111448310.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-08-27
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

The existing voice test method for vehicle-mounted terminals relies on manual observation and manual timing, which has large errors, high labor costs, and lacks automation and efficiency.

Method used

By separating the audio data from the test video, determining the start and end time of the voice, obtaining the sampled image, combining it with the reference image to determine the appearance time of the target sampled image, calculating the voice and interface response time, and realizing automated testing.

Benefits of technology

It improves the accuracy and efficiency of testing, saves labor costs, and realizes automated calculation of voice response time and image response time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114360530B
    Figure CN114360530B
Patent Text Reader

Abstract

The present application proposes a voice testing method, device, computer equipment and storage medium, wherein the method includes: separating the first audio data from the test video; determining the start time and / or end time of each voice segment in the first audio data; obtaining multiple sample images from the test video; determining the appearance time of the first target sample image in the test video based on the multiple sample images and the reference image; determining the voice response time and the interface image response time based on the start time and / or end time of each voice segment and the appearance time of the first target sample. The method realizes automated testing of voice response time and image response time, improves the accuracy of the test, saves manpower, and improves the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a voice testing method, apparatus, computer equipment and storage medium. Background Art

[0002] In the related art, the voice test of the vehicle terminal is usually conducted by the tester directly sending a voice command to the vehicle terminal being tested, and the vehicle terminal responds to the voice command, and the response time of the voice and image is recorded by human observation and manual stopwatch timing. However, this test method has large errors and high labor costs. Summary of the invention

[0003] The present application proposes a speech testing method, apparatus, computer equipment and storage medium.

[0004] In one aspect, an embodiment of the present application provides a voice testing method, including:

[0005] Separating first audio data from the test video;

[0006] Determine the start time and / or end time of each speech segment in the first audio data;

[0007] Acquire multiple sample images from the test video;

[0008] Determining, according to the plurality of sampled images and the reference image, an appearance time of a first target sampled image in the test video;

[0009] The speech response time and interface image response time corresponding to each test instruction are determined according to the start time and / or end time of each speech segment and the appearance time of the first target sampling image.

[0010] In a possible implementation of an embodiment of an aspect of the present application, determining, according to the multiple sampled images and the reference image, a first target sampled image and an appearance time of the first target sampled image in the test video includes:

[0011] Determining a second target sampling image according to a matching degree between each reference image and each sampling image;

[0012] Determine a first start position index and an end position index according to the second target sampling image;

[0013] Searching in the sampled image or the test view between the first start position index and the end position index to determine the second start position index corresponding to the first target sampled image;

[0014] The appearance time of the first target sampled image is determined according to the second starting position index and the sampling time interval, wherein the sampling time interval is the sampling interval used to obtain multiple sampled images from the test video.

[0015] In a possible implementation of an embodiment of an aspect of the present application, the first audio data includes a command voice and a corresponding response voice, and the voice response time and the interface image response time are determined according to the start time and / or the end time of each voice segment and the appearance time of the first target sampled image, including:

[0016] Recognize each of the speech segments to obtain text content corresponding to each of the speech segments;

[0017] Determine the command voice and the response voice according to the text content corresponding to each voice segment;

[0018] Determining a voice response time according to an end time of the command voice and a start time of the response voice;

[0019] The interface image response time is determined according to the end time of the command voice and the appearance time of the first target sampling image.

[0020] In a possible implementation manner of an embodiment of an aspect of the present application, before separating the first audio data from the test video, the method further includes:

[0021] The second audio data is played to make the vehicle-mounted terminal respond to the test instruction in the second audio data, and the response process of the vehicle-mounted terminal is filmed to generate a test video.

[0022] Another aspect of the present application provides a speech testing device, including:

[0023] A speech separation module, used to separate first audio data from a test video;

[0024] A parsing module, used to determine the start time and / or end time of each speech segment in the first audio data;

[0025] A sampling module, used for acquiring a plurality of sample images from the test video;

[0026] A first determination module, configured to determine a first target sampled image and an appearance time of the first target sampled image in the test video according to the plurality of sampled images and the reference image;

[0027] The second determination module is used to determine the voice response time and the interface image response time according to the start time and / or the end time of each voice segment and the appearance time of the first target sampling image.

[0028] In a possible implementation manner of another aspect of the present application, the first determining module is used to:

[0029] Determining a second target sampling image according to a matching degree between the reference image and each sampling image;

[0030] Determine a first start position index and an end position index according to the second target sampling image;

[0031] Searching in the sampled images or test videos between the first start position index and the end position index to determine the second start position index corresponding to the first target sampled image;

[0032] The appearance time of the second target sampled image is determined according to the second starting position index and the sampling time interval, wherein the sampling time interval is the sampling interval used to obtain multiple sampled images from the test video.

[0033] In a possible implementation of another aspect of the present application, the first audio data includes a command voice and a corresponding response voice, and the second determination module is used to:

[0034] Recognize each of the speech segments to obtain text content corresponding to each of the speech segments;

[0035] Determine the command voice and the response voice according to the text content corresponding to each voice segment;

[0036] Determining a voice response time according to an end time of the command voice and a start time of the response voice;

[0037] The interface image response time is determined according to the end time of the command voice and the appearance time of the first target sampling image.

[0038] In a possible implementation of another aspect of the present application, the device further includes:

[0039] The playing module is used to play the second audio data so that the vehicle-mounted terminal responds to the test instruction in the second audio data, and shoot the response process of the vehicle-mounted terminal to generate a test video.

[0040] Another aspect of the present application provides a computer device, including a processor and a memory;

[0041] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the voice testing method as described in the above-mentioned embodiment.

[0042] Another aspect of the present application provides a test system, which includes the above-mentioned computer device.

[0043] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the speech testing method as described in the above-mentioned first aspect of the embodiment.

[0044] Another aspect of the present application provides a computer program product, including a computer program, which implements the steps of the voice testing method described in the above-mentioned first aspect when executed by a processor.

[0045] The speech testing method, apparatus, computer equipment and storage medium of the embodiments of the present application separate the first audio data from the test video and determine the start time and / or end time of each speech segment in the first audio data, obtain multiple sampling images from the test video, determine the appearance time of the first target sampling image in the test video based on the multiple sampling images and the reference image, and determine the speech response time and the interface image response time based on the start time and / or end time of each speech segment and the appearance time of the first target sampling image, thereby realizing automated testing of speech response time and image response time, improving test accuracy, saving manpower and improving test efficiency.

[0046] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0048] Figure 1 A flowchart of a voice testing method provided in an embodiment of the present application;

[0049] Figure 2 A flowchart of another voice testing method provided in an embodiment of the present application;

[0050] Figure 3 A flowchart of another voice testing method provided in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of the appearance time of each voice segment and interface image in a test video provided in an embodiment of the present application;

[0052] Figure 5 A flowchart of another voice testing method provided in an embodiment of the present application;

[0053] Figure 6 A schematic diagram of the structure of a speech testing device provided in an embodiment of the present application;

[0054] Figure 7 A block diagram of a computer device for voice testing provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0056] The following describes the speech testing method, apparatus, computer device and storage medium of the embodiments of the present application with reference to the accompanying drawings.

[0057] Figure 1 A flowchart of a voice testing method provided in an embodiment of the present application.

[0058] The speech testing method of the embodiment of the present application can be executed by the speech testing device of the embodiment of the present application, which can be configured in a computer device to separate the first audio data from the test video and determine the start time and / or end time of each speech segment in the first audio data, obtain multiple sampling images from the test video, determine the appearance time of the first target sampling image in the test video based on the multiple sampling images and the reference image, and determine the speech response time and the interface image response time based on the start time and / or end time of each speech segment and the appearance time of the first target sampling image, thereby realizing automated testing of speech response time and image response time, improving test accuracy, saving manpower, and improving test efficiency.

[0059] like Figure 1 As shown, the voice testing method includes:

[0060] Step 101, separating first audio data from a test video.

[0061] The test video in this application refers to a video of the process in which the vehicle terminal responds to the voice test command. The test command may include a wake-up command, a control command, etc. For example, the test video is a video captured by a person sending a wake-up command to the vehicle terminal, and the vehicle terminal receiving the wake-up command and responding to the wake-up command.

[0062] In the present application, the existing digital audio separation technology can be used to separate the voice of the test video to separate the audio data of the entire test video from the test video, which is referred to as the first audio data for easy distinction.

[0063] Step 102: Determine the start time and / or end time of each speech segment in the first audio data.

[0064] In the present application, the first audio data includes at least one speech segment. After obtaining the first audio data, the first audio data can be parsed to determine the blank speech in the first audio data, and then the start time and end time of each speech segment in the first audio data can be determined according to the blank speech, that is, the time period of each speech segment in the test video can be determined.

[0065] Alternatively, existing audio separation related technologies, such as FFmpeg, may be used to separate each speech segment from the first audio data, and determine the start time and / or end time of each speech segment.

[0066] The start time of each speech segment may refer to the time corresponding to the first word in each speech segment, and the end time of each speech segment may refer to the time corresponding to the last word in each speech segment.

[0067] Step 103: Acquire multiple sample images from the test video.

[0068] In actual applications, when the vehicle terminal responds to voice commands, the interface of the vehicle terminal may also respond to the voice commands. For example, when a person says "how is the weather today" to the vehicle terminal, the words "how is the weather today" are displayed on the interface of the vehicle terminal.

[0069] In order to determine the interface image response time of the vehicle terminal, in this application, the time when the image corresponding to the interface response begins to appear in the test video can be determined. For example, the start time of the text of the test instruction "How is the weather today" appearing on the screen can be determined.

[0070] Since the test video contains a large number of images, in order to improve the test efficiency, the test video can be sampled at every sampling time interval in this application to obtain multiple sampled images. In implementation, the video-to-image technology can be used to screenshot and save the images in the test video at every preset time interval, thereby obtaining multiple sampled images. Among them, the sampling time interval can be set as needed, such as 8 milliseconds or 10 milliseconds.

[0071] For the convenience of testing, in this application, the sampled images can be numbered in the order in which they appear in the test video to obtain the index corresponding to each sampled image. For example, if 100 images are extracted from the test video, the numbering can start from 0, and the 100th image is numbered 99, that is, the index range of the sampled images is 0-99, or the numbering can start from 1, and the index range of the sampled images is 1-100.

[0072] Alternatively, when acquiring each sampled image, the time point of each sampled image in the test video may be recorded.

[0073] Step 104: Determine the first target sampled image and the appearance time of the first target sampled image in the test video according to the plurality of sampled images and the reference image.

[0074] In the present application, the test video may include at least one test instruction, and each test instruction may have a corresponding reference image, wherein the reference image refers to the interface display image when the vehicle-mounted terminal responds to the test instruction. It should be noted that one test instruction may correspond to one or more reference images, and different reference images correspond to different interface responses. For example, the test instruction "How is the weather today?" corresponds to two reference images, one is the image of the text "How is the weather today?" on the screen, and the other is the image of the vehicle-mounted terminal executing the test interface, that is, the image of the interface displaying the weather query results.

[0075] In the present application, the reference image corresponding to each test instruction can be used to search among multiple sampled images to determine the appearance time of the sampled image that matches the reference image, that is, the first target sampled image, in the test video. In implementation, the sampled image can be compared with the reference image in the order of appearance in the test video to determine the degree of match between the sampled image and the reference image. When the degree of match between a sampled image and a reference image is greater than a preset threshold, and the degree of match between the previous sampled image of the sampled image and the reference image is less than or equal to the preset threshold, then the time point of the sampled image in the test video is the appearance time of the sampled image in the test video.

[0076] It is understandable that if a test instruction corresponds to multiple reference images, the above method can be used to determine the appearance time of the first target sample image matching each reference image in the test video.

[0077] Step 105, determining the speech response time and the interface image response time according to the start time and / or end time of each speech segment and the appearance time of the first target sampling image.

[0078] In the present application, each voice segment and the first target sample image can be sorted in the order of time. Since the subsequent voice segment adjacent to the voice to which the test instruction belongs is usually the response voice, the voice response time can be determined according to the difference between the start time of the response voice and the end time of the voice to which the test instruction belongs, and the interface image response time can be determined according to the difference between the appearance time of the first target sample image and the end time of the voice to which the test instruction belongs.

[0079] In the embodiments of the present application, by separating the first audio data from the test video, determining the start time and / or end time of each segment of speech in the first audio data, obtaining multiple sampled images from the test video, determining the appearance time of the first target sampled image in the test video based on the multiple sampled images and the reference image, and determining the voice response time and the interface image response time based on the start time and / or end time of each segment of speech and the appearance time of the first target sampled image, the accuracy of the test is improved, manpower is saved, the test efficiency is improved, and the calculation of the voice response time and the image response time is realized.

[0080] In one embodiment of the present application, for each segment of speech separated, the speech-to-content SDK (Software Development Kit) can also be used to convert each segment of speech into text content.

[0081] Further, before separating each segment of speech from the first audio data, the first audio data can be denoised using a filter or noise reduction software, etc., such as removing noise and background noise below -35DB, and extracting each segment of speech from the processed speech data to reduce the noise in each segment of speech and improve the accuracy of the test.

[0082] In practical applications, the recorded test video may contain the voices of other people around the current test environment. Based on this, in order to improve the test accuracy, after obtaining the text content corresponding to each segment of speech, the text content can be compared with the text content in the preset text instruction library and the text content in the response speech library to verify the text content and determine whether each segment of speech is a voice instruction or the voice response of the vehicle-mounted terminal. For example, if the text content of a certain segment of speech is "Here", and it matches a certain text content in the response speech library, it can be considered that the verification of this segment of speech passes.

[0083] If the text content corresponding to any segment of speech fails to pass the verification, it means that this segment of speech is not a voice instruction or the response speech of the vehicle-mounted terminal, then this segment can be screened out.

[0084] Thus, by verifying the text content corresponding to each segment of speech and deleting the speech segments that are not required for the voice test, the remaining speech segments are all the speech segments required for the voice test. Using the start time and end time of the remaining multiple segments of speech and the text content corresponding to each remaining segment of speech, the voice response time and the interface image response time of each test instruction are determined, thereby improving the accuracy and stability of the test.

[0085] Figure 2 It is a schematic flow chart of another voice test method provided by the embodiments of the present application.

[0086] like Figure 2 As shown, the voice testing method includes:

[0087] Step 201, separating first audio data from a test video.

[0088] Step 202: determine the start time and / or end time of each speech segment in the first audio data, and the text content corresponding to each speech segment.

[0089] Step 203: Acquire multiple sample images from the test video.

[0090] In the present application, steps 201 to 203 are similar to the methods described in the above embodiments, and thus will not be described in detail here.

[0091] Step 204: Determine a second target sampled image based on the matching degree between the reference image and each sampled image.

[0092] In the present application, each sampled image has a corresponding index, and the matching degree between the reference image and each sampled image can be calculated. Multiple candidate sampled images with matching degrees greater than a preset threshold can be determined from multiple sampled images, and the candidate sampled image with the earliest appearance time can be used as the second target sampled image.

[0093] Step 205: Determine a first start position index and an end position index according to the second target sampling image.

[0094] After determining the second target sampled image, the index corresponding to the second target sampled image can be used as the end position index, and a preset step length is set forward from the end position index to obtain the first start position index, wherein the matching degree between the sampled image corresponding to the first start position index and the reference image is less than a threshold.

[0095] For example, the index corresponding to the second target sampled image is 100, and starting from index 100 and moving forward by a step of 10, that is, index 90, index 90 can be used as the first starting position index, and index 100 can be used as the ending position index.

[0096] Step 206 , searching in the sampled images or test videos between the first start position index and the end position index to determine the second start position index corresponding to the first target sampled image.

[0097] In practical applications, since the sampled image is affected by the ambient light at the time of the test, etc., the second target sampled image found by the reference image may not be accurate.

[0098] In the present application, if the reference image is an interface image containing text, and is used to find a sampled image in which all of the text is displayed on the interface for the first time, then after determining the first starting position index and the ending position index, the second starting position index corresponding to the first target sampled image that matches the reference image can be found within the interval between the first starting position index and the ending position index by using an OCR (Optical Character Recognition) binary search algorithm.

[0099] For example, the first start position index is 90 and the end position index is 100, and the OCR method can be used to search between the indexes 90 and 100.

[0100] Since the advantage of searching by OCR is that the search is accurate but time-consuming, while the advantage of using reference image comparison is that it takes less time but the accuracy is slightly lower. Therefore, the search can be performed by combining the reference image and OCR. At the same time, since there are many sampled images, a certain range can be determined by the reference image first, and then the search can be performed by OCR to improve efficiency. Therefore, by combining the two reference images and OCR to perform the search, both efficiency and accuracy are taken into account.

[0101] Alternatively, starting from the first starting position index, the sampled images between the first starting position index and the ending position index are sequentially input into the pre-trained image recognition model until a second target sampled image is found whose probability of matching the reference image is greater than a preset probability. The index corresponding to the second target sampled image is then the second starting position index.

[0102] For example, the first starting position index is 90 and the ending position index is 100. The sampled image with index 90 can be input into the image recognition model to determine the matching probability between the sampled image and the reference image. If the matching probability is greater than the preset probability, the sampled image is the second target sampled image, and the second starting position index is 90. If the matching probability is less than or equal to the preset probability, the sampled image with index 91 is input into the image recognition model. If the matching probability corresponding to the sampled image with index 91 is greater than the preset probability, 91 is the second starting position index. If the matching probability corresponding to the sampled image with index 91 is less than or equal to the preset probability, the sampled image with index 92 is input into the image recognition model until the matching probability corresponding to the sampled image with index 99 is determined. It can be understood that if the matching probabilities corresponding to the sampled images between indexes 90 and 99 are all less than the preset probability, the sampled image corresponding to index 100 is the second target sampled image, and the ending position index 100 is the second starting position index.

[0103] In order to further improve the accuracy, the test video segment between the first start position index and the end position index may be sampled at a certain sampling time interval, where the sampling time interval used is less than the time interval used to sample the entire test video. Afterwards, an OCR or image recognition model may be used to search among multiple sampled images in the test video segment to determine the second start position index corresponding to the first target sampled image, where the second start position index refers to an index among multiple sampled images in the test video segment.

[0104] Since the image display device has a display delay or the interface is set with animation effects, the interface image may appear from blurry to clear or from light to dark. In order to more accurately identify the first sampled image that matches the reference image, the sampled image may be sharpened, contrasted, saturated or brightly adjusted when searching for the index to enhance the image or text display in the sampled image for easy identification and matching.

[0105] Step 207: Determine the start time corresponding to the first target sampled image according to the second start position index and the sampling time interval.

[0106] In the present application, the number of sampling intervals experienced in obtaining the sampled image can be determined based on the index corresponding to the sampled image. Then, the appearance time of the reference image in the test video can be determined based on the second starting position index and the sampling time interval, that is, the start time corresponding to each reference image can be determined.

[0107] Step 208, determining the voice response time and interface image response time corresponding to each test instruction according to the start time and / or end time of each speech segment and the appearance time of the first target sampling image.

[0108] In the present application, step 208 is similar to the above step 105, so it will not be repeated here.

[0109] In an embodiment of the present application, when determining the appearance time of the first target sampling image and the first target sampling image in the test video based on multiple sampling images and reference images, the second target sampling image can be determined based on the matching degree between each reference image and each sampling image, and the first start position index and the end position index can be determined based on the second target sampling image, and then the sampling image or test video between the first start position index and the end position index can be searched to determine the second start position index corresponding to the first target sampling image, and finally the start time corresponding to the first target sampling image can be determined based on the second start position index and the sampling time interval. Thus, an index range is first determined by searching in multiple sampling images using the reference image, and then the final start position index is determined by searching in the index range, so that efficiency and accuracy are taken into consideration by combining the two methods for searching.

[0110] Figure 3 A flowchart of another voice testing method provided in an embodiment of the present application.

[0111] like Figure 3 As shown, the voice testing method includes:

[0112] Step 301, separating first audio data from a test video.

[0113] Step 302: Determine the start time and / or end time of each speech segment in the first audio data.

[0114] Step 303: Acquire multiple sample images from the test video.

[0115] Step 304: Determine the first target sampled image and the appearance time of the first target sampled image in the test video according to the plurality of sampled images and the reference image.

[0116] In the present application, steps 301 to 304 are similar to the above-mentioned steps 101 to 104, and thus will not be described in detail here.

[0117] Step 305: Perform speech recognition on each speech segment to obtain text content corresponding to each speech segment.

[0118] In the present application, the first audio data may include at least one segment of speech. After the first audio data is separated to obtain at least one segment of speech, speech recognition may be performed on each segment of speech to obtain text content corresponding to each segment of speech.

[0119] Step 306, determining the command voice and the corresponding response voice according to the text content corresponding to each voice segment.

[0120] In the present application, the first audio data may include a command voice and a corresponding response voice, wherein the command voice refers to a voice whose text content is consistent with the text content corresponding to the test command, and the response voice refers to a voice that responds to the command voice.

[0121] It should be noted that the first audio data may include a set of command voices and corresponding response voices, or may include multiple sets of command voices and corresponding response voices, wherein each set of command voices and corresponding response voices corresponds to a test command, that is, a test command has a corresponding command voice and response voice.

[0122] In this application, semantic recognition can be performed on the text content corresponding to each voice segment to determine the type of each voice segment, such as whether it is a command voice or a voice response. If a certain voice segment is a command voice, semantic recognition can be performed on the voice after the voice segment to determine the response voice corresponding to the command voice.

[0123] Alternatively, the text content corresponding to each voice segment can be compared with the text content in the command and response voice databases in the preset text command database to determine the type of each voice segment, including command voice, response voice, etc.

[0124] Step 307, determining the voice response time according to the end time of the command voice and the start time of the answer voice.

[0125] In the present application, the difference between the start time of the response voice corresponding to each test instruction and the end time of the corresponding instruction voice can be used as the voice response time corresponding to each test instruction.

[0126] Step 308, determining the interface image response time according to the end time of the command voice and the appearance time of the first target sampling image.

[0127] In the present application, each test instruction can have a corresponding reference image. Based on the reference image and multiple sampling images, the appearance time of the first target sampling image in the test video can be determined. Then, the difference between the appearance time of the first target sampling image corresponding to each test instruction and the end time of the voice to which each test instruction belongs can be used as the interface image response time corresponding to each test instruction.

[0128] For ease of understanding, the following Figure 4 Explain the calculation process of response time, Figure 4 A schematic diagram of the appearance time of each voice segment and interface image in a test video provided in an embodiment of the present application.

[0129] like Figure 4 As shown, the first voice segment is "Student A", the second voice segment is "Are you there", the third voice segment is "How is the weather today", and the fourth voice segment is "It's sunny today, with a maximum temperature of 28 degrees". The first image is the first frame of the UI (User Interface) animation, that is, the interface displays the words "Student A", the second image is the image of the text "How is the weather today" on the screen, and the third image is the first frame of the execution interface. By performing semantic recognition on the four voice segments, it can be determined that the first voice segment is the voice belonging to the wake-up command, the second voice segment is the wake-up response voice, the third voice segment is the voice belonging to the control command, and the fourth voice segment is the response voice of the control command.

[0130] When calculating the response time of the wake-up command, the start time of the second voice "Are you there" minus the end time of the first voice "Student A" can be used to get the voice response time of the wake-up command, that is, 3.1-2.6=0.5 seconds; the start time of the first frame of the UI animation minus the end time of the first voice "Student A" can be used to get the interface image response time of the wake-up command, that is, 3.0-2.6=0.4 seconds.

[0131] When calculating the response time of the control instruction "How is the weather today?", the appearance time of the text on-screen image can be subtracted from the end time of the control instruction "How is the weather today?" to obtain the interface image response time of the text on-screen corresponding to the control instruction, that is, 7.5-6.9=0.6 seconds; the start time of the answer voice of the control instruction is subtracted from the end time of the control instruction "How is the weather today?" to obtain the text on-screen response time corresponding to the control instruction, that is, 8.8-6.9=2.2 seconds; the appearance time of the first frame of the execution interface is subtracted from the end time of the control instruction "How is the weather today?" to obtain the execution interface image response time of the control instruction, that is, 14.4-6.9=7.5 seconds.

[0132] In the embodiment of the present application, the first audio data may include command voice and response voice. When determining the voice response time and interface image response time according to the start time and / or end time of each voice segment and the appearance time of the first target sampling image, each voice segment may be identified to obtain the text content corresponding to each voice segment; the command voice and response voice may be determined according to the text content corresponding to each voice segment; the voice response time may be determined according to the end time of the command voice and the start time of the response voice; and the interface image response time may be determined according to the end time of the command voice and the appearance time of the first target sampling image. In this way, not only the voice response time may be determined, but also the interface image response time may be calculated, thus enriching the diversity of voice testing.

[0133] Figure 5 A flowchart of another voice testing method provided in an embodiment of the present application.

[0134] like Figure 5 As shown, the voice testing method includes:

[0135] Step 501: Acquire second audio data.

[0136] In this application, the tester can record a voice test command to obtain the second audio data, and then upload the second audio data to the computer device, so that the computer device obtains the second audio data. For example, the wake-up command "Student A" and the control command "What's the weather like today" are recorded to obtain the corresponding audio data.

[0137] Furthermore, the computer device may perform standardization processing on the acquired second audio data, for example, ensuring that the highest and lowest notes of the speech are within a certain range, filtering out unnecessary noise, etc., so as to improve the accuracy of the test.

[0138] Step 502: play the second audio data to make the vehicle-mounted terminal respond to the test instruction in the second audio data, and shoot the response process of the vehicle-mounted terminal to generate a test video.

[0139] After obtaining the second audio data, the second audio data can be played in the vehicle using a script, so that the vehicle terminal responds to each test instruction in the second audio data, and the response process of the vehicle terminal is filmed to generate a test video. Alternatively, a high-resolution video recorder, mobile phone or other terminal device can be used to film the response process to obtain a test video, and then the test video is obtained from the terminal device.

[0140] Step 503: Separate the first audio data from the test video.

[0141] Step 504: determine the start time and / or end time of each speech segment in the first audio data.

[0142] Step 505: Acquire multiple sample images from the test video.

[0143] Step 506: Determine the first target sampled image and the appearance time of the first target sampled image in the test video according to the plurality of sampled images and the reference image.

[0144] Step 507, determining the speech response time and the interface image response time according to the start time and / or end time of each speech segment and the appearance time of the first target sampling image.

[0145] In the present application, steps 503 to 507 are similar to the above-mentioned steps 101 to 105, and thus will not be described in detail here.

[0146] In the embodiment of the present application, before separating the first audio data from the test video, the second audio data can be played to make the vehicle terminal respond to the test command in the second audio data, and the response process of the vehicle terminal can be filmed to generate a test video. Thus, by playing the audio data containing the test command and filming the response process of the vehicle terminal, a test video is obtained, and by processing the test video, the voice response time and interface image response time of the test command are determined, so that no human participation is required throughout the process, and the end-to-end voice response test is automatically completed, which saves manpower and improves test efficiency. In addition, the complete end-to-end test does not occupy vehicle resources, does not affect the response time of the vehicle voice interaction system, improves the accuracy of the test, and can also quickly view the test scene for cause analysis.

[0147] In order to implement the above embodiment, the embodiment of the present application also proposes a speech testing device. Figure 6 A schematic diagram of the structure of a speech testing device provided in an embodiment of the present application.

[0148] like Figure 6 As shown, the speech testing device 600 includes: a speech separation module 610 , a parsing module 620 , a sampling module 630 , a first determination module 640 and a second determination module 650 .

[0149] A speech separation module 610, configured to separate first audio data from a test video;

[0150] A parsing module 620, configured to determine a start time and / or an end time of each speech segment in the first audio data;

[0151] A sampling module 630, used to obtain a plurality of sample images from the test video;

[0152] A first determination module 640 is used to determine a first target sampled image and an appearance time of the first target sampled image in the test video according to the plurality of sampled images and the reference image;

[0153] The second determination module 650 is used to determine the speech response time and the interface image response time according to the start time and / or the end time of each speech segment and the appearance time of the first target sampling image.

[0154] In a possible implementation of the embodiment of the present application, the first audio data includes a command voice and a corresponding response voice, and the second determination module 650 is used to:

[0155] Recognize each of the speech segments to obtain text content corresponding to each of the speech segments;

[0156] Determine the command voice and the corresponding response voice according to the text content corresponding to each voice segment;

[0157] Determining the voice response time according to the end time of the command voice and the start time of the response voice;

[0158] The interface image response time is determined according to the end time of the command voice and the appearance time of the first target sampling image.

[0159] In a possible implementation of the embodiment of the present application, the first determining module 640 is used to:

[0160] Determining a second target sampling image according to a matching degree between the reference image and each sampling image;

[0161] Determine a first start position index and an end position index according to the second target sampling image;

[0162] Searching in the sampled images or test videos between the first start position index and the end position index to determine the second start position index corresponding to the first target sampled image;

[0163] The appearance time of the second target sampled image is determined according to the second starting position index and the sampling time interval, wherein the sampling time interval is the sampling interval used to obtain multiple sampled images from the test video.

[0164] In a possible implementation of the embodiment of the present application, the device may further include:

[0165] a playing module, configured to play the second audio data so that the vehicle-mounted terminal responds to the test instruction in the second audio data, and to shoot the response process of the vehicle-mounted terminal to generate a test video;

[0166] It should be noted that the above explanation of the embodiment of the voice testing method is also applicable to the voice testing device of this embodiment, so it will not be repeated here.

[0167] The speech testing device of the embodiment of the present application separates the first audio data from the test video and determines the start time and / or end time of each speech segment in the first audio data, obtains multiple sampling images from the test video, determines the appearance time of the first target sampling image in the test video according to the multiple sampling images and the reference image, and determines the speech response time and the interface image response time according to the start time and / or end time of each speech segment and the appearance time of the first target sampling image, thereby realizing automated testing of the speech response time and the image response time, improving the accuracy of the test, saving manpower, improving the test efficiency, and realizing the calculation of the speech response time and the image response time.

[0168] Figure 7 A block diagram of a computer device for voice testing provided in an embodiment of the present application.

[0169] like Figure 7 As shown, the computer device 700 includes:

[0170] The memory 710 and the processor 720, a bus 730 connecting different components (including the memory 710 and the processor 720), the memory 710 stores a computer program, and when the processor 720 executes the program, the house mapping file processing method described in the embodiment of the present disclosure is implemented.

[0171] Bus 730 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0172] Computer device 700 typically includes a variety of computer device readable media. These media can be any available media that can be accessed by computer device 700, including volatile and non-volatile media, removable and non-removable media.

[0173] The memory 710 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 740 and / or cache memory 750. The computer device 700 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 760 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 730 via one or more data medium interfaces. The memory 710 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.

[0174] A program / utility 780 having a set (at least one) of program modules 770 may be stored, for example, in the memory 710, such program modules 770 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 770 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0175] The computer device 700 may also communicate with one or more external devices 790 (e.g., keyboard, pointing device, display 791, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 700, and / or communicate with any device that enables the computer device 700 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via input / output (I / O) interface 792. Furthermore, the computer device 700 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) via network adapter 793. As shown, the network adapter 793 communicates with other modules of the computer device 700 via bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0176] The processor 720 executes various functional applications and data processing by running the programs stored in the memory 710 .

[0177] It should be noted that the implementation process and technical principles of the computer device of this embodiment refer to the aforementioned explanation of the voice testing method of the embodiment of the present application, which will not be repeated here.

[0178] In order to implement the above embodiment, the embodiment of the present application also proposes a test system, including the above computer 700, and the computer device executes the voice test method described in the above embodiment.

[0179] In order to implement the above embodiments, the embodiments of the present application further provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the speech testing method as described in the above embodiments is implemented.

[0180] In order to implement the above embodiments, the present application also provides a computer program product. When the computer program is executed by a processor of a computer device, the computer device can execute the voice testing method as described above.

[0181] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0182] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A speech testing method, characterized in that: include: Separating first audio data from a test video; Determine the start time and / or end time of each speech segment in the first audio data; Acquire multiple sample images from the test video; Determine, according to the plurality of sampled images and the reference image, a first target sampled image and an appearance time of the first target sampled image in the test video; Determine a speech response time and an interface image response time according to the start time and / or the end time of each speech segment and the appearance time of the first target sampling image; The step of determining, according to the plurality of sampled images and the reference image, a first target sampled image and an appearance time of the first target sampled image in the test video comprises: Determining a second target sampling image according to a matching degree between the reference image and each sampling image; Determine a first start position index and an end position index according to the second target sampling image; Searching in the sampled image or the test video between the first start position index and the end position index to determine a second start position index corresponding to the first target sampled image; The appearance time of the first target sampled image is determined according to the second starting position index and the sampling time interval, wherein the sampling time interval is the sampling interval used to obtain multiple sampled images from the test video.

2. The method according to claim 1, characterized in that The first audio data includes a command voice and a corresponding response voice, and the voice response time and the interface image response time are determined according to the start time and / or the end time of each voice segment and the appearance time of the first target sampling image, including: Recognize each of the speech segments to obtain text content corresponding to each of the speech segments; Determine the command voice and the response voice according to the text content corresponding to each voice segment; Determining the voice response time according to the end time of the command voice and the start time of the response voice; The interface image response time is determined according to the end time of the command voice and the appearance time of the first target sampling image.

3. The method according to any one of claims 1-2, characterized in that: Before separating the first audio data from the test video, the method further includes: The second audio data is played to make the vehicle-mounted terminal respond to the test instruction in the second audio data, and the response process of the vehicle-mounted terminal is filmed to generate the test video.

4. A speech testing device, characterized in that: include: A speech separation module, used to separate first audio data from a test video; A parsing module, used to determine the start time and / or end time of each speech segment in the first audio data; A sampling module, used for acquiring a plurality of sample images from the test video; A first determination module, configured to determine a first target sampled image and an appearance time of the first target sampled image in the test video according to the plurality of sampled images and the reference image; A second determination module is used to determine the speech response time and the interface image response time according to the start time and / or the end time of each speech segment and the appearance time of the first target sampling image; The first determining module is used to: Determining a second target sampling image according to a matching degree between the reference image and each sampling image; Determine a first start position index and an end position index according to the second target sampling image; Searching in the sampled image or the test video between the first start position index and the end position index to determine a second start position index corresponding to the first target sampled image; The appearance time of the second target sampled image is determined according to the second starting position index and the sampling time interval, wherein the sampling time interval is the sampling interval used to obtain multiple sampled images from the test video.

5. The device according to claim 4, characterized in that The first audio data includes a command voice and a corresponding response voice, and the second determination module is used to: Recognize each of the speech segments to obtain text content corresponding to each of the speech segments; Determine the command voice and the response voice according to the text content corresponding to each voice segment; Determining the voice response time according to the end time of the command voice and the start time of the response voice; The interface image response time is determined according to the end time of the command voice and the appearance time of the first target sampling image.

6. A computer device, characterized in that: including a processor and a memory; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the method according to any one of claims 1 to 3.

7. A testing system, characterized in that: A computer device comprising the computer device described in claim 6.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.

9. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the method according to any one of claims 1 to 3 when being executed by a processor.