Audio test data acquisition method and device, equipment and medium
By combining and simulating pre-recorded dry sounds and device audio to generate target test audio and annotation data, the problem of low efficiency and high cost of audio test data acquisition in the existing technology is solved, and rapid and comprehensive audio test data acquisition is achieved. .
Patent Information
- Application Number
- CN202410786052.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-03
AI Technical Summary
When acquiring audio test data, the existing technology has high investment costs and poor reusability, requiring all scenes to be recorded one by one and manually annotated, resulting in low efficiency.
By pre-recording the combination and simulation processing of multiple candidate dry sounds and device audio, target test audio and annotation data are generated, reducing the need for manual recording and annotation, and improving reusability and efficiency.
It achieves rapid and comprehensive acquisition of audio test data, reduces collection costs and annotation costs, and improves the reusability and accuracy of audio test data.
Smart Images

Figure CN118588115A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, specifically to technical fields such as testing technology and voice technology, and in particular to a method, device, equipment and medium for acquiring audio test data. Background Art
[0002] With the rapid development of artificial intelligence technology, voice interaction technology is becoming more and more important. In order to improve the effect of voice interaction, it is necessary to use audio test data to test voice interaction applications.
[0003] How to obtain audio test data is a problem that needs to be solved. Summary of the invention
[0004] The present disclosure provides a method, apparatus, device and medium for acquiring audio test data.
[0005] According to one aspect of the present disclosure, a method for acquiring audio test data is provided, comprising: based on a target test task, combining a plurality of pre-recorded candidate dry sounds to obtain a target dry sound for the target test task; simulating the target dry sound and pre-recorded device audio to obtain a target test audio for the target test task; the device audio is obtained by physically recording a target device running a voice interaction application; based on the original annotation data of the candidate dry sounds, acquiring target annotation data for the target test audio; based on the target test audio and the target annotation data, generating audio test data for testing the voice interaction application.
[0006] According to another aspect of the present disclosure, there is provided an audio test data acquisition device, comprising: a combination module, for combining a plurality of pre-recorded candidate dry sounds based on a target test task to obtain a target dry sound for the target test task; a simulation module, for simulating the target dry sound and pre-recorded device audio to obtain a target test audio for the target test task; the device audio is obtained by physically recording a target device running a voice interaction application; an acquisition module, for acquiring target annotation data of the target test audio based on the original annotation data of the candidate dry sounds; and a generation module, for generating audio test data for testing the voice interaction application based on the target test audio and the target annotation data.
[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method as described in any of the above aspects.
[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to any one of the above aspects.
[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in any one of the above aspects.
[0010] According to the technical solution of the present disclosure, audio test data can be quickly and comprehensively acquired.
[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0013] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;
[0014] Figure 2 is a schematic diagram of an application scenario of an audio test process provided according to an embodiment of the present disclosure;
[0015] Figure 3 is a schematic diagram of a test set acquisition process provided according to an embodiment of the present disclosure;
[0016] Figure 4 is a schematic diagram according to a second embodiment of the present disclosure;
[0017] Figure 5 is a schematic diagram of a combination process of a target dry sound provided according to an embodiment of the present disclosure;
[0018] Figure 6 is a schematic diagram of a target test audio generation process provided according to an embodiment of the present disclosure;
[0019] Figure 7 is a schematic diagram according to a third embodiment of the present disclosure;
[0020] Figure 8 It is a schematic diagram of an electronic device used to implement the audio test data acquisition method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0022] The audio test data includes test audio and annotated data.
[0023] In related technologies, the test audio needs to be recorded one by one in all scenes according to the formulated plan; for the labeled data, the test audio needs to be classified by scene, and the test audio needs to be manually labeled after algorithm preprocessing. In addition, a secondary quality inspection is usually required to prevent anomalies caused by human participation. After that, the labeled data after the secondary quality inspection and the corresponding test audio are combined into an audio test data and stored in the test set for subsequent testing or training.
[0024] The above solutions have the problems of high investment cost and poor reusability.
[0025] In order to obtain audio test data comprehensively and quickly, the present disclosure provides the following embodiments.
[0026] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure. This embodiment provides a method for acquiring audio test data, the method comprising:
[0027] 101. Based on a target test task, a combination operation is performed on a plurality of pre-recorded candidate dry sounds to obtain a target dry sound of the target test task.
[0028] 102. Simulate the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task; the device audio is obtained by physically recording the target device running the voice interaction application.
[0029] 103. Based on the original annotation data of the candidate dry sound, obtain target annotation data of the target test audio.
[0030] 104. Generate audio test data for testing the voice interaction application based on the target test audio and the target annotation data.
[0031] Among them, the target test task is used to test the performance of the voice interaction application (app).
[0032] A voice interaction application can be an app that completes one or more functions such as voice wake-up, voice recognition, and voice synthesis; and a voice interaction app can be used in home, mobile, and vehicle terminals. Therefore, based on different functions and / or scenarios, multiple test tasks can be generated, and the currently executed test task is called the target test task.
[0033] Dry sound refers to sound that has not been processed in any way, such as the sound of a real person without any processing.
[0034] In this embodiment, dry sound is used as the sound source for voice testing, that is, after the sound source emits a sound, the voice interaction app can interact based on the sound, thereby testing the function of the app.
[0035] For the purpose of distinction, dry sounds are divided into candidate dry sounds and target dry sounds. Candidate dry sounds refer to the dry sounds that can be selected, and target dry sounds are the dry sounds used in the target test task.
[0036] The candidate dry sounds may include dry sounds corresponding to various functions, external noises corresponding to various scenes, and internal noises of text to speech (TTS).
[0037] The various functions include, for example, a wake-up function and a recognition function, and the corresponding dry sounds may be a wake-up word and a recognition word (query), respectively. The wake-up word may include wake-up words corresponding to different products (apps), such as "Xiaodu Xiaodu" for Xiaodu speakers, and other wake-up words for other products. The recognition word may include recognition words for products with different uses, such as "How is the weather today" for Xiaodu speakers, and "Navigate to..." for map apps.
[0038] Scene external noise refers to external noise related to the scene, such as the sound of TV playing in a home scene, the sound of horns on the road in an outdoor scene, etc.
[0039] TTS internal noise refers to the internal noise during speech synthesis.
[0040] The dry sound recorded above is not for a specific product (app). As long as the coverage of the dry sound recording is sufficient, it can be used regardless of the technical iteration of old products or the launch of new products, so as to achieve cross-product multi-functional repeated use.
[0041] For the candidate dry sounds, the candidate dry sounds may be combined based on different test tasks (scenarios and / or functions) to obtain a target dry sound suitable for the target test task.
[0042] Target devices refer to devices running voice interaction apps, which can include: smartphones, smart speakers, car terminals, smart robots (such as smart sweepers), computers, etc.
[0043] Device audio refers to the audio that reflects the sound effects of the device itself, which can include impulse response audio, device background noise, device internal noise, etc.
[0044] Impulse response audio refers to the response audio generated by the target device after receiving the impulse signal.
[0045] Device background noise refers to the internal noise of the target device when it is running.
[0046] Device internal noise refers to the noise that may be played when the target device runs a voice interaction app, such as music, video, etc.
[0047] For a certain target device, the device noise is shared for different test tasks (different scenarios and different functions). Taking the scenario as an example, the effect of recording the entire scenario at one time can be achieved.
[0048] After obtaining the device audio and the target dry sound, the device audio and the target dry sound are simulated to obtain the target test audio.
[0049] During the propagation process of sound, there will be phenomena such as amplitude attenuation, reflection and refraction.
[0050] Simulation processing is used to simulate the changes in the sound propagation process, such as the amplitude attenuation, reflection and refraction mentioned above.
[0051] After simulation processing, the target test audio is closer to the audio actually received by the voice interaction app, ensuring the accuracy of the test.
[0052] Through the above processing, the target test audio can be obtained.
[0053] For the annotation part, the target annotation data corresponding to the target test audio can be automatically obtained based on the original annotation data. This can realize the automatic acquisition of target annotation data without the need for manual annotation and secondary quality inspection for each target test audio.
[0054] In this embodiment, by pre-recording a variety of candidate dry sounds and device audio, the candidate dry sounds can be combined into target dry sounds according to actual needs, and the target dry sounds and device audio can be simulated as target test audio, so that there is no need to manually record each test audio, which improves reusability and reduces audio acquisition costs; in addition, the target annotation data is automatically generated based on the original annotation data, which can reduce the annotation cost. Therefore, in this embodiment, due to high reusability and low cost, audio test data can be quickly and comprehensively acquired.
[0055] In order to better understand the embodiments of the present disclosure, application scenarios to which the embodiments of the present disclosure are applicable are described.
[0056] Due to the rapid update and iteration speed of voice technology, especially in the current era of large models, voice-related algorithm models are changing with each passing day. Rapidly verifying the algorithm effect and keeping up with the algorithm iteration speed to assist in promoting the launch of new algorithm technology are the primary problems that testers need to solve. The efficiency of collecting audio test data is one of the breakthroughs in overcoming the problem.
[0057] In order to improve the efficiency of audio test data collection, that is, to obtain test data comprehensively and quickly to verify the speech recognition effect, the embodiment of the present disclosure mainly generates test audio based on a simulation algorithm.
[0058] In the related art, the test audio is recorded one by one in all scenes, which has the problem of poor reusability. In addition, due to the poor reusability, multiple recordings and annotations are required in different scenes, which also leads to increased costs. Therefore, it is necessary to improve reusability and thus improve the efficiency of audio test data collection.
[0059] Figure 2 is a schematic diagram of an application scenario of an audio test process provided according to an embodiment of the present disclosure. The audio test data is used to test a speech recognition application, such as Figure 2 As shown, the test system includes: a sound source 201, a terminal 202 and a processor 203.
[0060] The sound source is used to play the test audio, which can be a real person's voice or an artificial mouth's voice.
[0061] The voice recognition application to be tested is deployed on the terminal. Depending on the test task, the terminal can be a smart phone, smart speaker, car terminal, smart robot (such as a smart sweeper), etc.
[0062] The terminal is also provided with an audio collection module (such as a microphone) to collect sounds in the environment where the terminal is located and perform voice recognition through a voice recognition application.
[0063] The speech recognition process can be executed locally on the terminal or in combination with the terminal and the server. The server can be a local server, a cloud server, etc. It can be a single server or a server cluster, etc.
[0064] The terminal can receive the test audio emitted by the sound source, and use the speech recognition application running on it to perform speech recognition interaction with the sound source based on the test audio.
[0065] The data generated during the interaction process can be sent to the processor, which compares the actual interaction data with the expected interaction data to obtain test results for the speech recognition application.
[0066] The processor can be located in the terminal or set independently of the terminal. It can be a local server or a cloud server, and can be one or more.
[0067] In order to complete the audio test, it is necessary to obtain audio test data, which includes test audio and annotated data.
[0068] Figure 3 It is a schematic diagram of a test set acquisition process provided according to an embodiment of the present disclosure.
[0069] The test set of this embodiment is a collection of audio test data, that is, it includes multiple groups of audio test data, each group of audio test data includes test audio and annotated data, and the annotated data may specifically include the speech start and end points of the test audio, as well as the speech content.
[0070] like Figure 3 As shown, the collection of test sets usually requires three steps, namely plan formulation, resource preparation, and audio set recording.
[0071] For solution formulation: clarify the current test functions, scenarios, user habits and audio features. Functions may include: wake-up, recognition, sound source localization, etc.; scenarios may include: home, road, car, etc. User habits may include: internal noise, dialect, recognition after wake-up, etc.; audio features may include: angle, distance, decibel, etc.
[0072] Resource preparation: you can prepare general equipment, special equipment, and scene resources. General equipment includes, for example, speakers, computers, tape measures, decibel meters, protractors, etc.; special equipment includes, for example, mobile phones, cars, tiles, routers, display screens, etc. Site resources include, for example, exhibition halls, roads, cars, meeting rooms, homes, etc.
[0073] Recording for the audio set: Different from the related technology of recording each test audio one by one, in this embodiment, a simulation algorithm is mainly used to generate the test audio, and a variety of optional dry sounds are recorded. After that, these dry sounds are combined in different ways based on different test tasks to obtain the target dry sound, and then the target dry sound is combined with the device audio for simulation.
[0074] like Figure 3 As shown, the audio set recording includes: physical recording and dry sound recording. Physical recording is used to record device audio; dry sound recording is used to record multiple candidate dry sounds.
[0075] Device audio includes: impulse response audio (impulse response audio at various angles and distances), device background noise, and device internal noise.
[0076] Impulse response audio refers to the response audio generated by the target device after receiving the impulse signal.
[0077] Device background noise refers to the internal noise of the target device when it is running.
[0078] Device internal noise refers to the noise that may be played when the target device runs a voice interaction app, such as music, video, etc.
[0079] For a certain target device, the device noise is shared for different test tasks (different scenarios and different functions). Taking the scenario as an example, the effect of recording the entire scenario at one time can be achieved.
[0080] Candidate dry sounds include: functional dry sounds, scene external noise, and TTS internal noise. Functional dry sounds are further divided into wake-up words and recognition words (query).
[0081] For voice interaction, functions may include wake-up, recognition, etc. Accordingly, functional dry sounds can be divided into two groups: one group is the wake-up words corresponding to the wake-up function, and different products have different wake-up words, which are expressed as multiple wake-up words; the other group is the recognition words corresponding to the recognition function, and different vertical categories have different recognition words, which are expressed as multi-vertical category queries.
[0082] After that, you can combine the wake-up word and recognition word based on the required functions, that is, you can freely combine them according to the functions. For example, according to the user of the test set, determine whether the test set content is pure wake-up word, pure recognition word, wake-up word followed by a specified vertical recognition word after a certain interval, or wake-up word followed by multiple recognition words.
[0083] Scene external noise refers to the external noise corresponding to different scenes, such as the sound of TV playback, the sound of horns on the road, etc.
[0084] TTS internal noise refers to the internal noise during speech synthesis, such as the internal noise during navigation broadcast.
[0085] The above-mentioned candidate dry sounds are not for a specific product. Any voice interaction-related product needs to be tested. As long as the candidate dry sounds cover a wide enough range, they can be used regardless of the technical iteration of old products or the launch of new products, so that they can be used repeatedly across products for multiple functions.
[0086] The target dry voice is obtained by combining the candidate dry voices for the target test task.
[0087] In addition, you can also get the device audio corresponding to the device where the app to be tested is located.
[0088] Afterwards, the device audio and the target dry sound are simulated to obtain the target test audio.
[0089] In this way, the collection of target test audio is achieved.
[0090] For the annotation part, the target annotation data of the target test audio may be obtained by processing the original annotation data of the candidate dry sound based on a custom strategy.
[0091] The original annotation data may be manually annotated, for example, the start point, end point and content of the wake-up word are annotated, and the start point, end point and content of the recognition word are also annotated. The start point of the test audio after the wake-up word and the recognition word are combined can be selected as the start point of the wake-up word, the end point can be selected as the end point of the recognition word, and the content can be selected as a combination of the wake-up word content and the recognition word content.
[0092] This enables the automatic generation of target annotation data, eliminating the need for manual annotation and secondary quality inspection, improving efficiency and reducing costs.
[0093] Afterwards, the target test audio and its corresponding target annotated data are stored in the test set as a set of test data.
[0094] In combination with the above application scenarios, the present disclosure also provides the following embodiments.
[0095] Figure 4 is a schematic diagram according to the second embodiment of the present disclosure. This embodiment provides a method for acquiring audio test data, the method comprising:
[0096] 401. Record device audio of a target device running a voice interaction application.
[0097] The device audio includes one or more of the following items:
[0098] Impulse response audio, device background noise, and device internal noise.
[0099] In this embodiment, since the impulse response audio, device background noise and device internal noise can reflect the sound effect of the device from different dimensions, the sound effect of the device can be better characterized by the above device audio, thereby obtaining more accurate test audio.
[0100] Further, the impulse response audio includes one or more of the following items:
[0101] Impulse response audio at multiple angles, impulse response audio at multiple distances.
[0102] In this embodiment, impulse response audio at multiple angles and multiple distances can be used to simulate various user usage conditions, thereby better improving the test effect.
[0103] 402. Record multiple candidate audios.
[0104] The multiple candidate dry sounds include one or more of the following items:
[0105] Functional dry sound corresponding to various functions, external noise in various scenes, and TTS internal noise.
[0106] In this embodiment, by separately recording multiple functional dry sounds, multiple scene external noises and TTS internal noises, they can be combined as needed later to improve reusability and reduce costs.
[0107] Furthermore, the functional dry sounds corresponding to the multiple functions include:
[0108] Multiple wake-up words and multiple recognition words.
[0109] In this embodiment, the functional dry sounds are further divided into wake-up words and recognition words, so that the functional dry sounds can be processed in a refined manner, which is more conducive to combination, thereby further improving reusability and reducing costs.
[0110] 403. Based on the target test task, a combination operation is performed on a plurality of pre-recorded candidate dry sounds to obtain a target dry sound of the target test task.
[0111] In some embodiments, the plurality of candidate dry sounds include: the same wake-up word and at least one recognition word; and the combining operation on the plurality of pre-recorded candidate dry sounds to obtain the target dry sound of the target test task includes:
[0112] The same wake-up word, the silence of the preset duration, and the at least one recognition word are sequentially combined and processed to obtain the target dry sound.
[0113] Taking the target test task of recognition after awakening as an example, the wake-up word is usually the same, while the recognition words are usually multiple different recognition words. At this time, it is necessary to splice together a target dry sound. The content of the target dry sound is a pre-recorded wake-up word, silence at a certain interval, and then a pre-recorded recognition word, and so on, until the wake-up and recognition times of the specified level of the target test task are obtained.
[0114] For example, taking two wake-ups and two recognitions as an example, the wake-up words are usually the same, while the recognition words are different, represented by the first recognition word and the second recognition word. Figure 5 As shown, the wake-up word, silence of a preset duration (silence duration), the first recognition word, silence, the wake-up word, silence, and the second recognition word are combined in sequence to obtain the target dry sound.
[0115] In this embodiment, the target dry sound is obtained by sequentially combining the wake-up word, silence, and recognition word, so that a target dry sound that is more in line with the actual application scenario can be obtained, and then a target test audio that is more in line with reality can be obtained, thereby improving the test accuracy.
[0116] 404. Perform simulation processing on the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task.
[0117] Among them, a pre-trained simulation model can be used to process the input target dry sound and device audio and output the target test audio. The simulation model is used to simulate the changes in the sound transmission process, so that the target test audio is closer to the audio actually received by the voice interaction app.
[0118] In some embodiments, the simulating process of the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task includes:
[0119] The target dry sound and the device audio are convolved using a preset convolution model to obtain the target test audio; the convolution model is used to simulate the audio attenuation process.
[0120] For example, Figure 6 As shown, the target dry sound and device audio are input into a preset convolution model, and the superimposed audio is processed using the convolution model to obtain the target test audio.
[0121] In this embodiment, since the convolution model is used to simulate the audio attenuation process, the target test audio is obtained after attenuating the target dry sound, which can simulate the audio transmission process in the actual environment, improve the authenticity and accuracy of the target test audio, and thus improve the audio test accuracy; in addition, by adopting the convolution model, the convolution model is a pre-trained deep neural network model, and the excellent performance of the deep neural network model can be used to improve processing accuracy.
[0122] The above takes the convolution model as an example for simulation. The specific simulation principle can be found in the following embodiments:
[0123] In some embodiments, the device audio includes: impulse response audio and device background noise;
[0124] The target dry sound includes: functional dry sound;
[0125] The simulating process of the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task includes:
[0126] The impulse response audio and the functional dry sound are multiplied to obtain a processed functional dry sound;
[0127] The impulse response audio is multiplied by the device background noise to obtain a processed background noise;
[0128] Based on the processed functional dry sound and the processed background noise, the target test audio is obtained.
[0129] For example, if the target test task is to test the wake-up performance in a quiet scene, the functional dry sound includes the wake-up word. At this time, the impulse response audio is used to multiply the wake-up word device background noise to obtain the processed wake-up word and the processed background noise, and then the processed wake-up word and the processed background noise are added to obtain the target test audio.
[0130] In this embodiment, the target test audio is obtained based on the impulse response audio, functional dry sound and device background noise, and the test audio in a scene without internal or external noise can be simulated to accurately obtain the target test audio in the scene, thereby improving the test accuracy.
[0131] The above example takes the scenario without internal and external noise as an example. In the scenario with internal and external noise, the target test audio is obtained in the following way:
[0132] In some embodiments, the device audio further includes: device internal noise; the target dry sound further includes: scene external noise and TTS internal noise;
[0133] The acquiring the target test audio based on the processed functional dry sound and the processed background noise includes:
[0134] The impulse response audio is used to perform multiplication processing on the scene external noise to obtain processed external noise;
[0135] The processed functional dry sound, the processed background noise, the processed external noise, the device internal noise and the TTS internal noise are added together to obtain the target test audio.
[0136] Specifically, it is expressed as:
[0137] Target test audio = function dry sound * rir + scene external noise * rir + device background noise * rir + device internal noise + TTS internal noise. Among them, rir represents impulse response audio.
[0138] In this embodiment, impulse response audio is used to multiply the functional dry sound, scene external noise and device background noise respectively, and the processed audio is added with the device internal noise and TTS internal noise to obtain the target test audio. Since the functional dry sound, scene external noise and device background noise may be attenuated, the above processing method can obtain accurate target test audio and improve the accuracy of audio testing.
[0139] Furthermore, the impulse response audio may include impulse response audio at multiple angles and distances, so that a suitable impulse response audio can be selected according to the target test task. For example, the pre-recorded impulse response audio includes: impulse response audio at a distance of 1 meter at a 90-degree angle, impulse response audio at a distance of 3 meters at a 90-degree angle, impulse response audio at a distance of 1 meter at a 60-degree angle, etc. If the target test task requires testing the audio condition at a distance of 1 meter from the user and facing the user (90 degrees), the impulse response audio at a distance of 1 meter at a 90-degree angle is selected.
[0140] In this way, by recording impulse response audio at multiple angles and distances, a sufficient audio foundation can be provided for subsequent audio testing, thereby fully and comprehensively conducting audio tests in various required scenarios.
[0141] 405. Based on the original annotation data of the candidate dry sound, obtain target annotation data of the target test audio.
[0142] Among them, a custom strategy can be adopted to obtain target labeled data based on the original labeled data.
[0143] For example, the start point, end point and content of the wake-up word are marked, and the start point, end point and content of the recognition word are also marked. The start point of the test audio after the wake-up word and the recognition word are combined can be selected as the start point of the wake-up word, the end point can be selected as the end point of the recognition word, and the content can be selected as a combination of the wake-up word content and the recognition word content.
[0144] In this embodiment, based on the custom strategy, target annotation data can be automatically generated, so there is no need for manual annotation and secondary quality inspection of the target test audio, which reduces the annotation cost and improves efficiency.
[0145] In some embodiments, the original annotation data includes: the wake-up starting point and wake-up duration corresponding to the wake-up word, and the recognition duration corresponding to the recognition word; the target annotation data includes: a test starting point and a test duration; the target annotation data of the target test audio is obtained based on the original annotation data of the candidate dry sound, including: determining the test starting point based on the wake-up starting point and the preset offset; determining the test duration based on the preset offset, the wake-up duration, the preset duration of silence and the recognition duration.
[0146] For example, Figure 5 As shown, the formula is: test starting point = wake-up starting point - offset; test duration = offset + wake-up duration + 3*silent duration + recognition duration of the first recognition word + recognition duration of the second recognition word. The wake-up starting point, wake-up duration and recognition duration come from the original annotation data. The recognition durations of different recognition words can be the same or different. The offset and silent duration are preset values. Based on the above formula, the test starting point and test duration can be calculated.
[0147] In this way, the target annotation data is automatically obtained based on the original annotation data. Compared with manually obtaining the target annotation data, the accuracy and acquisition efficiency of the target annotation data can be improved, thereby improving the accuracy and efficiency of audio testing.
[0148] 406. Generate audio test data for testing the voice interaction application based on the target test audio and the target annotation data.
[0149] After obtaining the target test audio and its corresponding target annotation data, the two can form a set of audio test data, which can then be stored in a test set for subsequent testing of voice interaction applications.
[0150] Figure 7 1 is a schematic diagram according to the third embodiment of the present disclosure. This embodiment provides an audio test data acquisition device, the device 700 includes: a combination module 701, a simulation module 7502, an acquisition module 703 and a generation module 704.
[0151] The combination module 701 is used to combine multiple pre-recorded candidate dry sounds based on the target test task to obtain the target dry sound of the target test task; the simulation module 702 is used to simulate the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task; the device audio is obtained after physically recording the target device running a voice interaction application; the acquisition module 703 is used to obtain the target annotation data of the target test audio based on the original annotation data of the candidate dry sounds; the generation module 704 is used to generate audio test data for testing the voice interaction application based on the target test audio and the target annotation data.
[0152] In this embodiment, by pre-recording a variety of candidate dry sounds and device audio, the candidate dry sounds can be combined into target dry sounds according to actual needs, and the target dry sounds and device audio can be simulated as target test audio, so that there is no need to manually record each test audio, which improves reusability and reduces audio acquisition costs; in addition, the target annotation data is automatically generated based on the original annotation data, which can reduce the annotation cost. Therefore, in this embodiment, due to high reusability and low cost, audio test data can be quickly and comprehensively acquired.
[0153] In some embodiments, the plurality of candidate dry sounds include: the same wake-up word and at least one recognition word;
[0154] The combination module 701 is further used for:
[0155] The same wake-up word, the silence of the preset duration, and the at least one recognition word are sequentially combined and processed to obtain the target dry sound.
[0156] In this embodiment, the target dry sound is obtained by sequentially combining the wake-up word, silence, and recognition word, so that a target dry sound that is more in line with the actual application scenario can be obtained, and then a target test audio that is more in line with reality can be obtained, thereby improving the test accuracy.
[0157] In some embodiments, the original annotation data includes: the wake-up starting point and wake-up duration corresponding to the wake-up word, and the recognition duration corresponding to the recognition word;
[0158] The target annotation data includes: test starting point and test duration;
[0159] The acquisition module 703 is further used for:
[0160] Determining the test starting point based on the wake-up starting point and a preset offset;
[0161] The test duration is determined based on the preset offset, the wake-up duration, the preset silence duration, and the recognition duration.
[0162] In this embodiment, the target annotation data is automatically obtained based on the original annotation data. Compared with manually obtaining the target annotation data, the accuracy and acquisition efficiency of the target annotation data can be improved, thereby improving the accuracy and efficiency of audio testing.
[0163] In some embodiments, the simulation module 702 is further configured to:
[0164] The target dry sound and the device audio are convolved using a preset convolution model to obtain the target test audio; the convolution model is used to simulate the audio attenuation process.
[0165] In this embodiment, since the convolution model is used to simulate the audio attenuation process, the target test audio is obtained after attenuating the target dry sound, which can simulate the audio transmission process in the actual environment, improve the authenticity and accuracy of the target test audio, and thus improve the audio test accuracy; in addition, by adopting the convolution model, the convolution model is a pre-trained deep neural network model, and the excellent performance of the deep neural network model can be used to improve processing accuracy.
[0166] In some embodiments, the device audio includes: impulse response audio and device background noise;
[0167] The target dry sound includes: functional dry sound;
[0168] The simulation module 702 is further used for:
[0169] The impulse response audio and the functional dry sound are multiplied to obtain a processed functional dry sound;
[0170] The impulse response audio is multiplied by the device background noise to obtain a processed background noise;
[0171] Based on the processed functional dry sound and the processed background noise, the target test audio is obtained.
[0172] In this embodiment, the target test audio is obtained based on the impulse response audio, functional dry sound and device background noise, and the test audio in a scene without internal or external noise can be simulated to accurately obtain the target test audio in the scene, thereby improving the test accuracy.
[0173] In some embodiments, the device audio further includes: device internal noise;
[0174] The target dry sound also includes: scene external noise and speech synthesis TTS internal noise;
[0175] The simulation module is further used for:
[0176] The impulse response audio is used to perform multiplication processing on the scene external noise to obtain processed external noise;
[0177] The processed functional dry sound, the processed background noise, the processed external noise, the device internal noise and the TTS internal noise are added together to obtain the target test audio.
[0178] In this embodiment, impulse response audio is used to multiply the functional dry sound, scene external noise and device background noise respectively, and the processed audio is added with the device internal noise and TTS internal noise to obtain the target test audio. Since the functional dry sound, scene external noise and device background noise may be attenuated, the above processing method can obtain accurate target test audio and improve the accuracy of audio testing.
[0179] It can be understood that in the embodiments of the present disclosure, the same or similar contents in different embodiments can be referenced to each other.
[0180] It can be understood that the “first”, “second”, etc. in the embodiments of the present disclosure are only used for distinction and do not indicate the degree of importance, time sequence, etc.
[0181] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0182] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0183] Figure 8A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 800 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 800 can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0184] like Figure 8 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0185] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0186] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the audio test data acquisition method. For example, in some embodiments, the audio test data acquisition method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the audio test data acquisition method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the audio test data acquisition method in any other appropriate manner (e.g., by means of firmware).
[0187] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0188] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0189] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0190] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0191] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0192] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0193] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0194] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for acquiring audio test data, comprising: Based on the target test task, a combination operation is performed on a plurality of pre-recorded candidate dry sounds to obtain a target dry sound of the target test task; Performing simulation processing on the target dry sound and the pre-recorded device audio to obtain the target test audio for the target test task; The device audio is obtained by physically recording a target device running a voice interaction application; Based on the original annotated data of the candidate dry sound, obtaining target annotated data of the target test audio; Based on the target test audio and the target annotation data, audio test data for testing the voice interaction application is generated.
2. The method according to claim 1, wherein: The multiple candidate dry sounds include: the same wake-up word and at least one recognition word; The combining operation of the pre-recorded multiple candidate dry sounds to obtain the target dry sound of the target test task includes: The same wake-up word, the silence of the preset duration, and the at least one recognition word are sequentially combined and processed to obtain the target dry sound.
3. The method according to claim 2, wherein: The original annotation data includes: the wake-up starting point and wake-up duration corresponding to the wake-up word, and the recognition duration corresponding to the recognition word; The target annotation data includes: test starting point and test duration; The step of obtaining target labeled data of the target test audio based on the original labeled data of the candidate dry sound includes: Determining the test starting point based on the wake-up starting point and a preset offset; The test duration is determined based on the preset offset, the wake-up duration, the preset silence duration, and the recognition duration.
4. The method according to claim 1, wherein: The simulating process of the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task includes: The target dry sound and the device audio are convolved using a preset convolution model to obtain the target test audio; the convolution model is used to simulate the audio attenuation process.
5. The method according to claim 1, wherein: The device audio includes: impulse response audio and device background noise; The target dry sound includes: functional dry sound; The simulating process of the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task includes: The impulse response audio and the functional dry sound are multiplied to obtain a processed functional dry sound; The impulse response audio is multiplied by the device background noise to obtain a processed background noise; Based on the processed functional dry sound and the processed background noise, the target test audio is obtained.
6. The method according to claim 5, wherein: The device audio also includes: device internal noise; The target dry sound also includes: scene external noise and speech synthesis TTS internal noise; The acquiring the target test audio based on the processed functional dry sound and the processed background noise includes: The impulse response audio is used to perform multiplication processing on the scene external noise to obtain processed external noise; The processed functional dry sound, the processed background noise, the processed external noise, the device internal noise and the TTS internal noise are added together to obtain the target test audio.
7. An audio test data acquisition device, comprising: A combination module, used for combining a plurality of pre-recorded candidate dry sounds based on a target test task to obtain a target dry sound of the target test task; A simulation module, used for performing simulation processing on the target dry sound and the pre-recorded device audio to obtain the target test audio of the target test task; The device audio is obtained by physically recording a target device running a voice interaction application; An acquisition module, configured to acquire target annotated data of the target test audio based on the original annotated data of the candidate dry sound; A generation module is used to generate audio test data for testing the voice interaction application based on the target test audio and the target annotation data.
8. The device according to claim 7, wherein: The multiple candidate dry sounds include: the same wake-up word and at least one recognition word; The combined module is further used for: The same wake-up word, the silence of the preset duration, and the at least one recognition word are sequentially combined and processed to obtain the target dry sound.
9. The device according to claim 8, wherein: The original annotation data includes: the wake-up starting point and wake-up duration corresponding to the wake-up word, and the recognition duration corresponding to the recognition word; The target annotation data includes: test starting point and test duration; The acquisition module is further used for: Determining the test starting point based on the wake-up starting point and a preset offset; The test duration is determined based on the preset offset, the wake-up duration, the preset silence duration, and the recognition duration.
10. The device according to claim 7, wherein: The simulation module is further used for: The target dry sound and the device audio are convolved using a preset convolution model to obtain the target test audio; the convolution model is used to simulate the audio attenuation process.
11. The device according to claim 7, wherein: The device audio includes: impulse response audio and device background noise; The target dry sound includes: functional dry sound; The simulation module is further used for: The impulse response audio and the functional dry sound are multiplied to obtain a processed functional dry sound; The impulse response audio is multiplied by the device background noise to obtain a processed background noise; Based on the processed functional dry sound and the processed background noise, the target test audio is obtained.
12. The device according to claim 11, wherein The device audio also includes: device internal noise; The target dry sound also includes: scene external noise and speech synthesis TTS internal noise; The simulation module is further used for: The impulse response audio is used to perform multiplication processing on the scene external noise to obtain processed external noise; The processed functional dry sound, the processed background noise, the processed external noise, the device internal noise and the TTS internal noise are added together to obtain the target test audio.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
