A test method, device and equipment for speech recognition and a storage medium

By automating the synthesis and comparison of test audio data, the problems of time-consuming, labor-intensive, and inaccurate voice recognition testing in smart cockpits have been solved, achieving efficient and accurate voice recognition testing.

CN116863916BActive Publication Date: 2026-11-27BEIJING HILL SHELL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310968151.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-02
Publication Date
2026-11-27
Estimated Expiration
2043-08-02

AI Technical Summary

Technical Problem

In existing technologies, voice recognition testing for smart cockpits is time-consuming and labor-intensive, and the accuracy of the test results is low, mainly due to insufficient sample data and missing information caused by manual testing methods.

Method used

By acquiring the test tasks of the smart cockpit, synthesizing test audio data based on test audio and scene parameters, and calculating the comparison results between the original audio and the response audio, the voice recognition effect of the smart cockpit is automatically tested.

Benefits of technology

It reduces the instability of manual operation, reduces labor costs, improves the accuracy and consistency of test results, and enhances the efficiency and accuracy of speech recognition testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116863916B_ABST
    Figure CN116863916B_ABST
Patent Text Reader

Abstract

The present application relates to a speech recognition test method, device, equipment and storage medium, belongs to the speech recognition technical field.The present application includes: obtaining the test task of intelligent cockpit, the test task includes test audio parameter and test scene parameter;According to the test audio parameter, the corresponding original audio data is obtained, and according to the test scene parameter, the corresponding background audio data is obtained;The original audio data and the background audio data are synthesized to obtain test audio data, and the test audio data is played to the intelligent cockpit;The response audio data of the intelligent cockpit to the played test audio data is obtained;According to the original audio data and the response audio data, the test result of the speech recognition of the intelligent cockpit is calculated.Through the present application, it is helpful to solve the problem that the effect of the speech recognition of the intelligent cockpit is tested in the prior art, time-consuming and laborious, and the test result accuracy is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of speech recognition technology, specifically relating to speech recognition testing methods, devices, equipment, and storage media. Background Technology

[0002] The car cockpit is gradually integrating with the in-vehicle human-machine interface system to achieve intelligence. It can collect and recognize commands issued by people in various positions within the vehicle and execute corresponding operations based on the commands. For example, upon recognizing commands such as turning on the air conditioning, closing windows, enabling automatic navigation, or playing music, it will issue a wake-up sound and control the corresponding devices to execute the command, achieving interaction with the user and meeting the diverse needs of drivers and passengers during the journey. Among these, the test results of voice wake-up and voice recognition have become important indicators affecting the intelligence level of the smart cockpit.

[0003] Currently, testing of voice wake-up and voice recognition in smart cockpits primarily relies on manual testing. A speaker simulates a person in a driving environment, and the vehicle's response is recorded via audio or video. After multiple manual tests, relevant metrics such as wake-up rate and recognition rate are obtained. However, this manual testing method is prone to problems such as insufficient sample data and missing recorded information, resulting in time-consuming and laborious testing of wake-up and recognition rates for smart cockpits, and relatively low accuracy of the test results. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a test method, apparatus, device and storage medium for speech recognition, which can be applied to smart cockpits, to solve the problems of time-consuming and labor-intensive testing of the effect of speech recognition in smart cockpits and low accuracy of test results in the prior art.

[0005] According to a first aspect of the present invention, a voice recognition testing method is provided, applied to a smart cockpit, comprising:

[0006] Obtain the test task for the intelligent cockpit, which includes test audio parameters and test scenario parameters;

[0007] Based on the test audio parameters, obtain the corresponding raw audio data, and based on the test scene parameters, obtain the corresponding background audio data;

[0008] The original audio data and the background audio data are combined to obtain test audio data, and the test audio data is played to the smart cockpit.

[0009] Obtain the response audio data of the intelligent cockpit to the played test audio data;

[0010] The test results of the intelligent cockpit voice recognition are calculated based on the original audio data and the response audio data.

[0011] Preferably, the step of calculating the test result of the intelligent cockpit voice recognition based on the original audio data and the response audio data includes:

[0012] By comparing each piece of original audio data with the corresponding response audio data in turn, the error rate and the number of correct wake-ups of the intelligent cockpit voice recognition are obtained.

[0013] The accuracy rate of the intelligent cockpit voice recognition is obtained based on the error rate of the intelligent cockpit voice recognition.

[0014] The wake-up rate of the smart cockpit is obtained by calculating the ratio of the number of correct wake-up attempts to the number of test audio data entries.

[0015] The accuracy rate of the intelligent cockpit voice recognition and the wake-up rate are used as the test results of the intelligent cockpit voice recognition.

[0016] Preferably, the step of sequentially comparing each piece of original audio data with the corresponding response audio data to obtain the error rate of the intelligent cockpit voice recognition includes:

[0017] Feature characters are extracted from the original audio data and the corresponding response audio data to obtain the original audio data characters and the corresponding response audio data characters;

[0018] By comparing all the original audio data characters with the corresponding response audio data characters in turn, the number of characters replaced, the number of characters deleted, and the number of characters inserted are obtained respectively.

[0019] The number of characters replaced, deleted, and inserted is summed to obtain the number of incorrectly identified characters;

[0020] The error rate of the intelligent cockpit voice recognition is obtained by calculating the ratio of the number of erroneous characters to the number of characters in the original audio data.

[0021] Preferably, the step of synthesizing the original audio data and the background audio data to obtain the corresponding test audio data includes:

[0022] Obtain the storage addresses of the original audio data and the background audio data respectively;

[0023] Load the original audio data and the background audio data from the storage address;

[0024] The original audio data and the background audio data are segmented separately to obtain the corresponding original audio field and background audio field;

[0025] The original audio field and the background audio field are combined to obtain the corresponding test audio data.

[0026] Preferably, the test task further includes a test location, and playing the test audio data to the smart cockpit includes:

[0027] If the test audio data is in a non-playable format, the test audio data is transcoded to obtain test audio data in a playable format;

[0028] Obtain the test location in the test task;

[0029] At the test location in the test mission, the test audio data is played to the smart cockpit.

[0030] Preferably, the test task further includes audio duration, sampling rate, and coding rate, and the method further includes:

[0031] Based on the sampling rate and coding rate, the response audio data of the smart cockpit is collected;

[0032] The response audio data is segmented according to the audio duration to obtain processed response audio data.

[0033] Preferably, the method further includes:

[0034] Collect all test audio data and all response audio data from the intelligent cockpit;

[0035] Perform Fourier transform on all the test audio data and all the response audio data to obtain the corresponding frequency and amplitude;

[0036] Based on the frequency and amplitude, a spectrum diagram is plotted in real time and displayed.

[0037] According to a second aspect of the present invention, a voice recognition testing apparatus is provided, applied to a smart cockpit, comprising:

[0038] The task acquisition module is used to acquire the test tasks of the intelligent cockpit, which include test audio parameters and test scenario parameters.

[0039] The data acquisition module is used to acquire multiple original audio data according to the constraint parameters of the test audio, and to acquire the corresponding background audio data according to the constraint parameters of the test scenario.

[0040] The sound effect synthesis module is used to synthesize the original audio data and the background audio data to obtain test audio data, and play the test audio data to the smart cockpit.

[0041] The data acquisition module is also used to acquire the response audio data of the smart cockpit to the played test audio data;

[0042] The result calculation module is used to calculate the test result of the intelligent cockpit voice recognition based on the original audio data and the response audio data.

[0043] According to a third aspect of the present invention, a voice recognition testing device is provided, applied to a smart cockpit, comprising:

[0044] Memory, on which executable programs are stored;

[0045] A processor for executing the executable program in the memory to perform the steps of any of the methods described above.

[0046] According to a fourth aspect of the present invention, a smart cockpit is provided, comprising:

[0047] Test equipment for speech recognition;

[0048] An audio pickup is used to capture all audio data being played.

[0049] An audio player is used to play audio data within the smart cockpit.

[0050] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

[0051] By acquiring the test task of the intelligent cockpit, the corresponding raw audio data is obtained according to the constraint parameters of the test audio, and the corresponding background audio data is obtained according to the constraint parameters of the test scenario. The raw audio data and background audio data are synthesized into test audio data, which is then played into the intelligent cockpit. The response audio data of the intelligent cockpit to the played test audio data is also acquired. Based on the raw audio data and the response audio data, the test result of the intelligent cockpit's speech recognition is calculated. During the test, there is no need for manual playback of the raw audio data or manual creation of background audio data, which greatly reduces the instability of manual audio playback and reduces labor costs. Furthermore, the sound effect synthesis based on the pre-recorded raw audio data and background audio data makes the synthesized test audio data more consistent and reliable, improving the accuracy of the test results. This effectively solves the problem of time-consuming and labor-intensive testing of the performance of intelligent cockpit speech recognition in existing technologies, which also results in low accuracy.

[0052] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0054] Figure 1 This is a flowchart illustrating a speech recognition testing method according to an exemplary embodiment;

[0055] Figure 2 This is a block diagram illustrating a speech recognition testing apparatus according to an exemplary embodiment. Detailed Implementation

[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0057] It should be noted that the following smart cockpit voice recognition test can be developed based on the .NET Core 3.1 cross-platform development framework and supports operation on multiple operating systems such as Windows, Linux, and macOS. C# is used as the primary development language; this modern object-oriented programming language allows for more efficient program development. For the design and development of the visual interface, WinForms technology can be used to quickly and easily build a beautiful and user-friendly interface. For audio data processing, the NAudio library, specifically designed for audio processing, can be used. NAudio contains many classes and tools that can easily perform audio acquisition, synthesis, conversion, and other operations to process audio data. The audio configuration file can be a JSON file, using the Newtonsoft.Json library for serialization and deserialization.

[0058] This invention provides a method, see [link to relevant documentation] Figure 1 , Figure 1 This is a flowchart illustrating a speech recognition testing method according to an exemplary embodiment, applied to a smart cockpit. The method includes:

[0059] Step S11: Obtain the test task of the intelligent cockpit, which includes test audio parameters and test scenario parameters;

[0060] Step S12: Obtain the corresponding raw audio data according to the test audio parameters, and obtain the corresponding background audio data according to the test scene parameters;

[0061] Step S13: Combine the original audio data and the background audio data to obtain test audio data, and play the test audio data to the smart cockpit;

[0062] Step S14: Obtain the response audio data of the smart cockpit to the played test audio data;

[0063] Step S15: Calculate the test result of the intelligent cockpit voice recognition based on the original audio data and the response audio data.

[0064] It should be noted that the main function of the smart cockpit's voice recognition is to enable the smart cockpit to "understand" commands issued by people inside the vehicle during use or driving. However, due to noise during vehicle operation, the voice recognition effect of the smart cockpit will be affected. After recognizing a voice command, the smart cockpit will execute the relevant command, such as turning on the air conditioning, closing the windows, or responding to the vehicle's system, automatically navigating, or playing relevant music.

[0065] Specifically, the test task for the intelligent cockpit is obtained, which includes test audio parameters and test scenario parameters. The test task is a speech recognition test of the intelligent cockpit. The test audio parameters can be parameters that constrain the test audio, such as the audio format, duration, and playback channels. The test audio is pre-recorded, noise-free, and stored in a preset location as raw audio data. The test scenario parameters can be parameters that constrain the scenario, such as scenario type, scenario template, scenario name, output path, output name, scenario duration, sampling rate, encoding rate, and number of channels. The scenario template is a pre-created test scenario that stores all the constraint parameters for that scenario. For example, existing scenarios might include one or more scenarios such as driver's side window open, driver's side window closed at low speed, and driver and passenger side air conditioning on.

[0066] It should be noted that the test audio parameters and test scenario parameters can be set differently according to different test tasks, and this invention does not impose specific limitations on them.

[0067] Based on the test audio parameters, NAudio selects audio data that meets the pre-recorded audio data and uses it as the raw audio data. One of the raw audio data is saved as an audio file in a preset location. After selecting multiple audio files, NAudio reads the selected raw audio data one by one, reads the duration of each audio file, and loads the duration, channels, and other format information.

[0068] When a user starts a test, based on the test scenario parameters, audio data that meets the pre-recorded scene audio data is selected as background audio data. This background audio data can be pre-recorded sound effect files stored in preset locations. After configuring the test scenario parameters, the system directly calls the sound effect files (noise source files) that meet the parameters, automatically reads the corresponding sound effect files, and uses the NAudio library to load the corresponding background audio data one by one, reading information such as the duration of each audio file.

[0069] After selecting background audio data, the original audio data and background audio data are synthesized to obtain test audio data. This test audio data is the audio data emitted during the actual testing of the smart cockpit in a noisy environment. The test audio data is then played into the smart cockpit to test its recognition results.

[0070] The system acquires the response audio data of the smart cockpit to the played test audio data. The smart cockpit contains a voice player that can respond to the user's voice commands and issue corresponding response audio data.

[0071] In a specific example, a voice test was conducted on the smart cockpit with the passenger-side air conditioning on. Background audio data under the constraint of "passenger-side air conditioning on" and raw audio data meeting the test task were acquired. The background audio data and raw audio data were synthesized to obtain test audio data containing the noise of the passenger-side air conditioning being on, namely "Hey A, open the window." This test audio data was then played back to the smart cockpit. Upon receiving the test audio "Hey A, open the window," the smart cockpit performed voice recognition and responded, issuing a response audio message, "Yes, the window is open for you." After data acquisition and processing, the response audio data was obtained.

[0072] It should be noted that when not using pre-recorded background audio data, noise can be generated manually as background audio data based on instructions or needs. For example, when the air conditioner is turned on, the original audio data can be played, so that the test audio data at this time is audio data affected by the noise of the air conditioner being turned on, and no synthesis is required.

[0073] Specifically, the test results of the intelligent cockpit voice recognition are obtained by comparing and calculating the original audio data and the response audio data.

[0074] Continuing with the example above, if the response audio data is: "Yes, the window is open," then by comparing the response audio data "Yes, the window is open" with the original audio data "Xiao A Xiao A, open the window," the test result of the smart cockpit voice recognition is obtained after the comparison and calculation.

[0075] It is understood that the technical solution provided in this embodiment obtains the test task of the intelligent cockpit, acquires the corresponding original audio data according to the constraint parameters of the test audio, and acquires the corresponding background audio data according to the constraint parameters of the test scenario. The original audio data and the background audio data are synthesized into test audio data, which is then played to the intelligent cockpit. The response audio data of the intelligent cockpit to the played test audio data is acquired. Based on the original audio data and the response audio data, the test result of the intelligent cockpit's speech recognition is calculated. During the test, there is no need for manual playback of the original audio data or manual creation of background audio data, which greatly reduces the instability of manual playback of audio data and reduces labor costs. Furthermore, the sound effect synthesis based on the pre-recorded original audio data and background audio data makes the synthesized test audio data more consistent and reliable, improving the accuracy of the test results. This effectively solves the problem that testing the effect of intelligent cockpit speech recognition in the prior art is time-consuming, labor-intensive, and has low accuracy.

[0076] Preferably, in step S15, calculating the test result of the intelligent cockpit voice recognition based on the original audio data and the response audio data includes:

[0077] Step S151: Compare each piece of original audio data with the corresponding response audio data in sequence to obtain the error rate and the number of correct wake-up times of the intelligent cockpit voice recognition;

[0078] Step S152: Obtain the accuracy rate of the intelligent cockpit voice recognition based on the error rate of the intelligent cockpit voice recognition.

[0079] Step S153: Calculate the ratio of the number of correct wake-up attempts to the number of test audio data entries to obtain the wake-up rate of the smart cockpit;

[0080] Step S154: The accuracy rate of the intelligent cockpit voice recognition and the wake-up rate of the intelligent cockpit are used as the test results of the intelligent cockpit voice recognition.

[0081] It should be noted that the smart cockpit will be either woken up or not woken up for each test audio data playback. When the smart cockpit is woken up, it responds to the test audio data, identifies the instructions in the test audio data, and provides feedback on whether the instructions were executed successfully.

[0082] For the test audio data synthesized from the original audio data, the smart cockpit recognizes the data and obtains the corresponding response audio data. Each original audio data point is compared with its corresponding response audio data to determine the error rate and the number of correct wake-up attempts. The error rate represents the probability of the smart cockpit correctly recognizing the test audio data, and the number of correct wake-up attempts is the number of times the smart cockpit was correctly woken up. For each test audio data point, if the smart cockpit responds, it means it was correctly woken up; if it doesn't respond, it means it wasn't woken up. The number of times the smart cockpit was correctly woken up is counted to obtain the total number of correct wake-up attempts.

[0083] Subtract the error rate of the intelligent cockpit voice recognition from 1 to get the accuracy rate of the intelligent cockpit voice recognition.

[0084] The wake-up rate of the smart cockpit is obtained by dividing the number of correct wake-up attempts by the number of test audio data points. The number of test audio data points refers to the number of test audio data points played to the smart cockpit. A higher accuracy rate indicates better speech recognition performance, and a higher wake-up rate also indicates better speech recognition performance. Furthermore, a faster wake-up speed also contributes to better speech recognition performance. The accuracy rate and wake-up rate of the smart cockpit's speech recognition are considered the test results. A higher accuracy rate and a higher wake-up rate indicate better speech recognition performance and a more excellent test result.

[0085] Preferably, in step S151, the step of sequentially comparing each piece of original audio data with the corresponding response audio data to obtain the error rate of the intelligent cockpit voice recognition includes:

[0086] Feature characters are extracted from the original audio data and the corresponding response audio data to obtain the original audio data characters and the corresponding response audio data characters;

[0087] By comparing all the original audio data characters with the corresponding response audio data characters in turn, the number of characters replaced, the number of characters deleted, and the number of characters inserted are obtained respectively.

[0088] The number of characters replaced, deleted, and inserted is summed to obtain the number of incorrectly identified characters;

[0089] The error rate of the intelligent cockpit voice recognition is obtained by calculating the ratio of the number of erroneous characters to the number of characters in the original audio data.

[0090] Specifically, when comparing each piece of original audio data with the corresponding response audio data to obtain the error rate of the intelligent cockpit voice recognition, feature characters are first extracted from the original audio data and the corresponding response audio data to obtain the original audio data characters and the corresponding response audio data characters.

[0091] In a specific example, the test audio data is "Xiao A Xiao A, open the car window," and the response audio data is: "Yes, the car window is open." Feature characters are extracted from the test audio data and the response audio data respectively. The resulting original audio data character is "open the car window," and the resulting response audio data character is "open the car window."

[0092] For each original audio data character, compare it with the corresponding response audio data character. After comparing all the original audio data characters and their corresponding response audio data characters in sequence, obtain the replaced characters, deleted characters, and inserted characters as identification error characters. Count the number of replaced characters, deleted characters, and inserted characters for each type of character. Count all the original audio data characters and add them up to get the original audio data character count.

[0093] The number of replaced characters, deleted characters, and inserted characters is summed to obtain the number of characters with recognition errors. The ratio of the number of characters with recognition errors to the number of characters in the original audio data is calculated to obtain the error rate of the intelligent cockpit speech recognition. The smaller the number of characters with recognition errors, the lower the error rate of the intelligent cockpit speech recognition, and the better the recognition effect.

[0094] It should be noted that the method for extracting feature characters is not specifically limited in this invention.

[0095] Preferably, in step S13, the synthesis of the original audio data and the background audio data to obtain the corresponding test audio data includes:

[0096] Obtain the storage addresses of the original audio data and the background audio data respectively;

[0097] Load the original audio data and the background audio data from the storage address;

[0098] The original audio data and the background audio data are segmented separately to obtain the corresponding original audio field and background audio field;

[0099] The original audio field and the background audio field are combined to obtain the corresponding test audio data.

[0100] It should be noted that operations such as editing, merging, transcoding, and mixing multi-channel audio data can all be performed on audio data, allowing for processing of audio data as needed.

[0101] Specifically, when synthesizing sound effects from raw audio data and background audio data, since both raw and background audio data are pre-recorded and stored, after selecting raw and background audio data according to the test task, the storage addresses of the selected raw and background audio data are obtained, and the selected raw and background audio data files are automatically loaded according to the storage addresses to obtain the raw and background audio data.

[0102] Since the durations of the original audio data may vary, and the durations of the background audio data may also differ from those of the original audio data, the original and background audio data are segmented separately to ensure equal durations, resulting in corresponding original audio fields and background audio fields. These original and background audio fields are then combined to obtain the corresponding test audio data. Before obtaining the test audio data, further editing, merging, and transcoding of the audio data can be performed as needed.

[0103] In a specific example, the FFmpeg library is used to perform operations such as editing, merging, transcoding, and multi-channel mixing on raw and background audio data. Specifically: `ffmpeg.exe -i 124.wav -i 123.wav -filter_complex amix=inputs=2:duration=first:dropout_transition=2 -fmp3 remix.wav`. Here, `i` represents the input audio data, including all raw and background audio data; `amix` is the multi-channel mixing command, which can output single-channel audio; and `inputs` is the merging command, which can combine multiple audio files.

[0104] It should be noted that operations such as editing, merging, transcoding, and multi-channel mixing can be accomplished using various audio processing libraries and tools, such as the easy-to-use Python libraries Pydub or librosa, the powerful open-source tool ffmpeg, and the open-source cross-platform tool SoX. These tools and libraries all have detailed documentation and sample code, and you can choose the appropriate tool for audio processing according to your specific needs. This invention does not impose any specific limitations on this.

[0105] Preferably, the test task further includes a test location, and in step S13, playing the test audio data to the smart cockpit includes:

[0106] If the test audio data is in a non-playable format, the test audio data is transcoded to obtain test audio data in a playable format;

[0107] Obtain the test location in the test task;

[0108] At the test location in the test mission, the test audio data is played to the smart cockpit.

[0109] It should be noted that if the test audio data is not in a playable format, it needs to be transcoded into a playable format, such as converting WAV format test audio data to MP3 format. The transcoded audio file can then be used for editing, conversion, and playback.

[0110] Specifically, the testing task also included testing locations, which were different seats in the smart cockpit, such as the driver's seat and the front passenger seat. Test audio data was played from different positions within the smart cockpit, and the voice recognition performance varied accordingly.

[0111] Based on actual needs, test audio data is played to the smart cockpit at the test location in the test task, making the test samples and scenarios for smart cockpit voice recognition more comprehensive, thereby improving the accuracy of the test results for smart cockpit voice recognition.

[0112] In a specific example, the test location for the smart cockpit can be set according to the actual testing task, as well as settings such as whether the air conditioning and music are on. For instance, if the test location is the driver's seat and the background noise sources are the air conditioning and music being on, then the test audio data will be played sequentially in the driver's seat, with the scene audio data in the test audio data being the air conditioning and music. The parameters for this scene can also be saved. When conducting voice recognition tests on smart cockpits in other vehicles, this scene audio data can be directly selected and automatically loaded for testing without needing to set test parameters and scene parameters again.

[0113] Preferably, the test task further includes audio duration, sampling rate, and coding rate, and the method further includes:

[0114] Based on the sampling rate and coding rate, the response audio data of the smart cockpit is collected;

[0115] The response audio data is segmented according to the audio duration to obtain processed response audio data.

[0116] Specifically, the test task allows setting parameters such as audio duration, sampling rate, and coding rate as needed. The audio duration is the length of the acquired response audio. The sampling rate is the frequency at which the sound signal is sampled when acquiring the response audio. The coding rate is the data transmission rate of the response audio data. A higher coding rate results in better audio quality, but it also consumes more storage space and transmission bandwidth.

[0117] Specifically, parameters can be set in the test task as needed, such as sampling rate, encoding rate, audio duration, recording duration, etc. Based on the set sampling rate and encoding rate, the response audio data of the smart cockpit is collected so as to obtain high-quality audio data according to actual needs, so as to ensure the high quality and stability of the final generated audio file.

[0118] Meanwhile, since voice recognition tests need to be conducted at different test locations within the smart cockpit, and multiple channels are set up within the cockpit, the audio data from different channels also needs to be time-synchronized and segmented. The original test audio data and the smart cockpit's response audio data have inconsistent audio durations. To generate a multi-channel audio, it is necessary to ensure that the duration of each channel is consistent. This requires segmenting the response audio data to obtain processed response audio data, which is used to prepare for subsequent calculations of the smart cockpit's voice recognition accuracy and wake-up rate.

[0119] It should be noted that when acquiring response audio data, after starting recording, the WaveInEvent class in the NAudio library is used to capture audio data transmitted from the microphone or other recording devices. Simultaneously, clicking the "Start Recording" button will record the smart cockpit's response sound. Typically, the sampling rate is 16000Hz, producing a 16-bit single-channel wave file.

[0120] Preferably, the method further includes:

[0121] Collect all test audio data and all response audio data from the intelligent cockpit;

[0122] Perform Fourier transform on all the test audio data and all the response audio data to obtain the corresponding frequency and amplitude;

[0123] Based on the frequency and amplitude, a spectrum diagram is plotted in real time and displayed.

[0124] Specifically, it is necessary to collect all test audio data and all response audio data of the smart cockpit. During the audio data collection process, since the smart cockpit is multi-channel, the audio data of each channel needs to be segmented. The shortest audio data is used as the standard, and the remaining audio data that exceeds this length needs to be cut off. By cutting off the excess part, the audio duration of each channel is consistent.

[0125] To provide users with a more intuitive experience, Fourier transforms can be performed on all test audio data and all response audio data to obtain the corresponding frequencies and amplitudes. The PictureBox control can then draw a spectrum in real time based on the frequencies and amplitudes, which can be displayed to the tester. This allows the tester to adjust parameters such as the device's volume in a timely manner, thereby improving the accuracy of speech recognition testing.

[0126] In a specific example, FftSharp is used to perform Fourier transforms on all played test audio data and all response audio data to help analyze the frequency and amplitude of the audio files, and Spectrogram is used to generate a spectrogram in real time. After the test, the WaveFileWriter class provided by NAudio is used to save all test audio data and all response audio data of the smart cockpit as WAV files in a specified path format.

[0127] It is understood that the technical solution provided in this embodiment obtains the test task issued by the user, acquires multiple original audio data according to the constraint parameters of the test audio, and acquires the corresponding background audio data according to the constraint parameters of the test scenario. Sound effects are synthesized from the original audio data and the background audio data to obtain the corresponding test audio data, which is then played. The response audio data of the intelligent cockpit to the played test audio data is also obtained. Based on the original audio data and the response audio data, the test result of the intelligent cockpit's voice recognition is calculated. During the test, there is no need for manual playback of the original audio data or manual creation of background audio data, greatly reducing the instability of manual audio playback and reducing labor costs. Furthermore, the sound effects synthesis based on pre-recorded original audio data and background audio data makes the synthesized test audio data more consistent and reliable, improving the accuracy of the test results. This effectively solves the problem in existing technologies where testing the performance of intelligent cockpit voice recognition is time-consuming, labor-intensive, and yields low accuracy.

[0128] See Figure 2 , Figure 2 This is a block diagram illustrating a speech recognition testing apparatus according to an exemplary embodiment. The present invention also provides a speech recognition testing apparatus for use in a smart cockpit, comprising:

[0129] The task acquisition module 21 is used to acquire the test tasks of the intelligent cockpit, which include test audio parameters and test scenario parameters.

[0130] The data acquisition module 22 is used to acquire multiple original audio data according to the constraint parameters of the test audio, and to acquire the corresponding background audio data according to the constraint parameters of the test scenario.

[0131] The sound effect synthesis module 23 is used to synthesize the original audio data and the background audio data to obtain test audio data, and play the test audio data to the smart cockpit.

[0132] The data acquisition module 22 is also used to acquire the response audio data of the smart cockpit to the played test audio data;

[0133] The result calculation module 24 is used to calculate the test result of the intelligent cockpit voice recognition based on the original audio data and the response audio data.

[0134] It is understood that the technical solution provided in this embodiment, by acquiring the test task issued by the user as mentioned in the above embodiment, acquiring multiple corresponding original audio data according to the constraint parameters of the test audio, and acquiring corresponding background audio data according to the constraint parameters of the test scenario, synthesizing sound effects on the original audio data and background audio data to obtain the corresponding test audio data, and playing the test audio data; acquiring the response audio data of the intelligent cockpit to the played test audio data, and calculating the test result of the intelligent cockpit voice recognition based on the original audio data and the response audio data, does not require manual playback of the original audio data or manual creation of background audio data during the test process, greatly reducing the instability of manual playback of audio data, reducing labor costs, and synthesizing sound effects based on pre-recorded original audio data and background audio data, making the synthesized test audio data more consistent and reliable, improving the accuracy of the test results, thereby effectively solving the problem of time-consuming and labor-intensive testing of the effect of intelligent cockpit voice recognition in the prior art, and the low accuracy of the test results.

[0135] The present invention also provides a speech recognition testing device, comprising:

[0136] Memory, on which executable programs are stored;

[0137] A processor for executing the executable program in the memory to implement the steps of any of the methods described above.

[0138] Furthermore, the present invention also provides an intelligent cockpit, comprising:

[0139] Test equipment for speech recognition;

[0140] An audio pickup is used to capture all audio data being played.

[0141] An audio player is used to play audio data within the smart cockpit.

[0142] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0143] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.

[0144] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0145] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0146] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0147] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0148] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0149] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0150] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A speech recognition testing method, applied to a smart cockpit, characterized in that, include: Obtain the test task for the intelligent cockpit, which includes test audio parameters and test scenario parameters; Based on the test audio parameters, obtain the corresponding raw audio data, and based on the test scene parameters, obtain the corresponding background audio data; The original audio data and the background audio data are combined to obtain test audio data, and the test audio data is played to the smart cockpit. Obtain the response audio data of the intelligent cockpit to the played test audio data; Based on the original audio data and the response audio data, the test results of the intelligent cockpit voice recognition are calculated, including: By comparing each piece of original audio data with the corresponding response audio data in turn, the error rate and the number of correct wake-ups of the intelligent cockpit voice recognition are obtained. The accuracy rate of the intelligent cockpit voice recognition is obtained based on the error rate of the intelligent cockpit voice recognition. The wake-up rate of the smart cockpit is obtained by calculating the ratio of the number of correct wake-up attempts to the number of test audio data entries. The accuracy rate of the intelligent cockpit's voice recognition and the wake-up rate of the intelligent cockpit are used as the test results of the intelligent cockpit's voice recognition. The step of sequentially comparing each piece of original audio data with the corresponding response audio data to obtain the error rate of the intelligent cockpit voice recognition includes: Feature characters are extracted from the original audio data and the corresponding response audio data to obtain the original audio data characters and the corresponding response audio data characters; By comparing all the original audio data characters with the corresponding response audio data characters in turn, the number of characters replaced, the number of characters deleted, and the number of characters inserted are obtained respectively. The number of characters replaced, deleted, and inserted is summed to obtain the number of incorrectly identified characters; The error rate of the intelligent cockpit voice recognition is obtained by calculating the ratio of the number of incorrectly recognized characters to the number of characters in the original audio data. The test task also includes a test location, and playing the test audio data to the smart cockpit includes: If the test audio data is in a non-playable format, the test audio data is transcoded to obtain test audio data in a playable format; Obtain the test location in the test task; At the test location in the test mission, the test audio data is played to the smart cockpit; The test task also includes audio duration, sampling rate, and encoding rate, and the method further includes: Based on the sampling rate and coding rate, the response audio data of the smart cockpit is collected; The response audio data is segmented according to the audio duration to obtain processed response audio data.

2. The method according to claim 1, characterized in that, The step of synthesizing the original audio data and the background audio data to obtain the corresponding test audio data includes: Obtain the storage addresses of the original audio data and the background audio data respectively; Load the original audio data and the background audio data from the storage address; The original audio data and the background audio data are segmented separately to obtain the corresponding original audio field and background audio field; The original audio field and the background audio field are combined to obtain the corresponding test audio data.

3. The method according to claim 1, characterized in that, The method further includes: Collect all test audio data and all response audio data from the intelligent cockpit; Perform Fourier transform on all the test audio data and all the response audio data to obtain the corresponding frequency and amplitude; Based on the frequency and amplitude, a spectrum diagram is plotted in real time and displayed.

4. A voice recognition testing device, applied to a smart cockpit, characterized in that, A test method for performing speech recognition according to any one of claims 1 to 3, comprising: The task acquisition module is used to acquire the test tasks of the intelligent cockpit, which include test audio parameters and test scenario parameters. The data acquisition module is used to acquire multiple original audio data according to the constraint parameters of the test audio, and to acquire the corresponding background audio data according to the constraint parameters of the test scenario. The sound effect synthesis module is used to synthesize the original audio data and the background audio data to obtain test audio data, and play the test audio data to the smart cockpit. The data acquisition module is also used to acquire the response audio data of the smart cockpit to the played test audio data; The result calculation module is used to calculate the test result of the intelligent cockpit voice recognition based on the original audio data and the response audio data.

5. A voice recognition testing device, applied to a smart cockpit, characterized in that, include: Memory, on which executable programs are stored; A processor for executing the executable program in the memory to implement the steps of the method according to any one of claims 1 to 3.

6. A smart cockpit to which the speech recognition testing method as described in any one of claims 1 to 3 is applied, characterized in that, include: Test equipment for speech recognition; An audio pickup is used to capture all audio data being played. An audio player is used to play audio data within the smart cockpit.

Citation Information

Patent Citations

  • Voice test audio synthesis method and device and electronic equipment for vehicle machine

    CN111402875A

  • Voice recognition test method and device and computer readable storage medium

    CN111462730A

  • Voice test method, device and equipment and storage medium

    CN111798833A

  • Intelligent cockpit vehicle-mounted voice interaction test system

    CN217690495U