Test method, device, system and storage medium for speech recognition

By automating the acquisition and analysis of audio feedback information from smart glasses' speech recognition tests, the problem of low efficiency and low accuracy in manual testing in existing technologies has been solved, achieving efficient and accurate speech recognition testing.

CN116798433BActive Publication Date: 2026-11-20ZHUHAI MOJIE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310740171.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2026-11-20
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

In existing technologies, voice recognition testing of smart glasses such as AR glasses worn on the user's head requires manual operation by the user, resulting in wasted human resources, low testing efficiency and accuracy, and a poor user experience.

Method used

By acquiring a set of combined sound source audio, controlling the voice playback device to play audio, and controlling the device under test to be in sound pickup mode, audio feedback information is obtained, voice information is generated and voice recognition processing is performed to obtain text information, and finally, the text information is analyzed with standard text information to generate test results.

Benefits of technology

Automated testing has been achieved, reducing labor costs, improving testing efficiency and accuracy, and reducing test data processing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116798433B_ABST
    Figure CN116798433B_ABST
Patent Text Reader

Abstract

The application provides a voice recognition test method, device, system and storage medium, and relates to the technical field of device testing. The method comprises the following steps: acquiring a combined sound source audio set, wherein the combined sound source audio set comprises audio corresponding to different sound source combinations; controlling a voice playing device to play the audio corresponding to the sound source combinations, and controlling a tested device to be in a sound pickup mode, so that the tested device acquires the audio and generates audio feedback information in the sound pickup mode; acquiring the audio feedback information, generating corresponding voice information according to the audio feedback information, performing voice recognition processing on the voice information, and obtaining text information; and analyzing the text information and standard text information to generate a test result. The embodiments of the application aim to automatically test intelligent glasses, thereby reducing labor costs, improving test efficiency and test accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment testing technology, and in particular to a speech recognition testing method, a speech recognition device, a speech recognition testing system, and a computer-readable storage medium. Background Technology

[0002] In existing technologies, devices can be controlled via voice, such as controlling headphones to play audio or controlling a television to change channels. However, devices often need to accurately recognize the voice before they can perform subsequent operations. Therefore, testing the accuracy of voice recognition on the tested device becomes one of the most crucial indicators.

[0003] For smart glasses such as AR (Augmented Reality) glasses worn on the user's head, voice control is typically used. Existing testing methods for smart glasses generally require the user to manually play a test command, then operate the smart glasses to pick up the audio, in order to derive the corresponding test results. This method requires users to perform numerous repetitive testing steps, wasting manpower, resulting in high labor costs, low testing efficiency and accuracy, and a poor user experience. Summary of the Invention

[0004] This application provides a speech recognition testing method, a speech recognition device, a speech recognition testing system, and a computer-readable storage medium, aiming to automate the testing of the device under test, thereby reducing labor costs and improving testing efficiency and accuracy.

[0005] To achieve the above objectives, this application provides a speech recognition testing method applied to a testing device in a testing system, wherein the testing system further includes a device under test and a speech playback device, and the method includes:

[0006] A set of combined sound source audios is acquired, the set of combined sound source audios including audios corresponding to different combinations of sound sources; the voice playback device is controlled to play the audio corresponding to the combination of sound sources, and the device under test is controlled to be in sound pickup mode, so that the device under test can acquire the audio and generate audio feedback information in sound pickup mode; the audio feedback information is acquired, and corresponding voice information is generated based on the audio feedback information, and the voice information is processed by speech recognition to obtain text information; the text information is analyzed with standard text information to generate test results.

[0007] Furthermore, to achieve the above objectives, this application also provides a speech recognition device, applied in a testing system, wherein the testing system further includes a device under test and a speech playback device, and the speech recognition device includes:

[0008] The audio acquisition module is used to acquire a set of combined sound source audios, which includes audios corresponding to different combinations of sound sources.

[0009] An audio feedback module is used to control the voice playback device to play the audio corresponding to the sound source combination, and to control the device under test to be in the sound pickup mode, so that the device under test can acquire the audio and generate audio feedback information in the sound pickup mode.

[0010] The speech recognition module is used to acquire the audio feedback information, generate corresponding speech information based on the audio feedback information, and perform speech recognition processing on the speech information to obtain text information;

[0011] The testing module is used to analyze the text information and standard text information to generate test results.

[0012] Furthermore, to achieve the above objectives, this application also provides a speech recognition testing system, the testing system including a device under test, a speech playback device, and a testing device; the testing device includes a memory and a processor; wherein the memory is connected to the processor and is used to store a program, and the processor is used to implement any of the speech recognition testing methods provided in the embodiments of this application by running the program stored in the memory.

[0013] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement any of the speech recognition test methods provided in the embodiments of this application.

[0014] This application discloses a speech recognition testing method, speech recognition device, speech recognition testing system, and computer-readable storage medium. By controlling a speech playback device to play audio corresponding to a combination of sound sources and controlling the device under test to be in sound pickup mode, audio feedback information generated by the device under test is obtained. Corresponding speech information is generated based on the audio feedback information, and speech recognition processing is performed on the speech information to obtain text information. The text information is then analyzed with standard text information to generate test results. This automates the speech recognition testing of the device under test, avoiding numerous repetitive testing steps for users, thereby reducing labor costs and improving testing efficiency and accuracy. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart illustrating a speech recognition testing method provided in an embodiment of this application;

[0017] Figure 2 This is a schematic diagram illustrating the workflow of a speech recognition testing method provided in an embodiment of this application;

[0018] Figure 3 This is a schematic block diagram of a speech recognition device provided in an embodiment of this application;

[0019] Figure 4 This is a schematic block diagram of a speech recognition testing system provided in an embodiment of this application;

[0020] Figure 5 This is a schematic block diagram of a testing device provided in an embodiment of this application. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation. Furthermore, although functional modules are divided in the device diagram, in some cases, a different module division may be used.

[0023] The term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items, as well as all possible combinations, and includes such combinations.

[0024] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0025] To facilitate understanding of the embodiments of this application, some background information related to the embodiments of this application will be briefly explained below.

[0026] Please see Figure 1 , Figure 1 This is a schematic flowchart illustrating a speech recognition testing method provided in an embodiment of this application. In this embodiment, the speech recognition testing method is applied to a testing device in a testing system. The testing system further includes a device under test and a speech playback device. The device under test is used to recognize the audio played by the speech playback device. The testing device is communicatively connected to the device under test and the speech playback device.

[0027] The tested devices can be terminal devices with voice acquisition and recognition functions, such as smart glasses, mobile phones, computers, televisions, and speakers, without specific limitations.

[0028] For example, the test method for speech recognition provided in this application embodiment will be described below using smart glasses as the test device.

[0029] The smart glasses can be AR (Augmented Reality) glasses, VR (Virtual Reality) glasses, or any other type of glasses with voice recognition capabilities; no specific restrictions are imposed here. The voice playback device can be a speaker, audio system, or other device used for playing audio. The testing device can be an automated testing tool used to control the voice playback device and the smart glasses to perform corresponding operations to achieve automated testing.

[0030] like Figure 1 As shown, the speech recognition testing method includes steps S101 to S104.

[0031] S101. Obtain a set of combined sound source audios, wherein the set of combined sound source audios includes audios corresponding to different combinations of sound sources.

[0032] The combined sound source audio set can include audio corresponding to multiple different sound source combinations. The sound source combination can be a set composed of different sound sources, such as a set composed of different human voice sound sources and different noise sound sources.

[0033] In some embodiments, the combined sound source audio set can be generated by: acquiring a human voice sound source audio set and a noise sound source audio set, wherein the human voice sound source audio set includes audio corresponding to different human voice sound sources, and the noise sound source audio set includes audio corresponding to different noise sound sources; combining the audio corresponding to different human voice sound sources and the audio corresponding to different noise sound sources to obtain the combined sound source audio set. This allows for the generation of various different sound source combinations, thereby meeting the diverse scenario requirements of smart glasses voice recognition.

[0034] The human voice source audio set can include audio corresponding to different human voice sources, and each type of human voice source is different. The noise source audio set can include audio corresponding to different noise sources, and each type of noise source is different.

[0035] For example, noise sources can also be determined by selecting human voice sources. As long as the selected human voice sources are not included in the noise sources, the remaining human voice sources can be considered as noise sources.

[0036] Specifically, you can first obtain the audio corresponding to different human voice sources and the audio corresponding to different noise sources; then combine the audio corresponding to different human voice sources and the audio corresponding to different human voice sources in turn to generate possible combinations of sound sources, thus forming a sound source audio set.

[0037] For example, if the acquired human voice source audio includes audio A, audio B, and audio C; and the acquired noise source audio includes audio D, audio E, and audio F, then the audio corresponding to each type of human voice source is sequentially combined to generate multiple possible sound source combinations, including (audio A, audio D), (audio A, audio E), (audio A, audio F), (audio B, audio D), (audio B, audio E), (audio B, audio F), (audio C, audio D), (audio C, audio E), and (audio C, audio F), and a sound source audio set is formed by the above sound source combinations.

[0038] In some embodiments, the audio corresponding to different human voice sources is obtained by combining different timbres and different tones; the audio corresponding to different noise sources is noise source in different environments. This allows for the generation of different types of human voice sources and noise sources, thereby meeting the various scenario requirements of smart glasses voice recognition.

[0039] Since speech generally includes timbre and pitch, and each person's timbre and pitch may differ, different types of human voice sources can be obtained by combining all possible timbres and pitches. Similarly, noise levels vary across different environments, so different types of noise sources can be obtained by acquiring noise data from various environments.

[0040] Specifically, speech packages with different timbres and tones can be generated using AI-generated voice synthesis tools as human voice sources. This solves the problem of inaccurate pronunciation by actual people reading the speech data due to different timbres and tones, which affects the speech recognition evaluation effect and improves the accuracy of speech recognition evaluation.

[0041] For example, speech packages with different timbres and tones can be generated using voice AI synthesis tools as human voice sources. For instance, different timbres (including loli timbres, teenage timbres, mature woman timbres, middle-aged woman timbres, young boy timbres, teenage timbres, youthful timbres, middle-aged man timbres, and elderly timbres) and different tones (female voice, mezzo-soprano, contralto, soprano, male voice, baritone, bass, tenor) can be used as test speech source sources, thereby improving test coverage.

[0042] It should be noted that the voices of loli, young girl, mature woman, and middle-aged woman are female voices; while the voices of shota, teenager, young adult, uncle, and elderly are male voices.

[0043] For example, if the voices generated using a human voice AI synthesis tool include loli voices, mature woman voices, shota voices, and middle-aged man voices, and the generated tones include high and low tones, then different voices and tones can be combined to generate human voice sources that can include (loli voice, soprano), (loli voice, contralto), (mature woman voice, soprano), (mature woman voice, contralto), (shota voice, tenor), (shota voice, bass), (middle-aged man voice, tenor), and (middle-aged man voice, bass).

[0044] Specifically, noise environments can be simulated by using environmental noise simulation tools to generate sound sources from different noisy environments (such as stations, roads, subway stations, shopping malls, offices, and conference rooms), thus solving the problem of time-consuming and laborious real-world testing of speech recognition in noisy environments.

[0045] For example, noise sources in various environments such as stations, roads, subway stations, shopping malls, offices, and conference rooms can be generated using environmental noise simulation tools.

[0046] In some embodiments, test requirements are obtained, and target human voice sources and target noise sources are determined based on the test requirements. The target human voice sources and target noise sources are then combined to obtain a combined audio source set. This allows for the accurate generation of the combined audio source set required for testing, avoiding the generation of unnecessary combined audio source sets and saving computational resources.

[0047] The testing requirements can include both vocal and environmental requirements. For example, the testing requirement could be a soprano or mature female voice in a train station environment. The target vocal source is the vocal source corresponding to the speech recognition test, and the target noise source is the noise source corresponding to the speech recognition test.

[0048] For example, if the test requirement is a soprano and a mature female voice in a station environment, then the target human voice source is determined to be the sound source of (mature female voice, soprano), and the target noise source is determined to be the sound source of the station environment. The sound source of (mature female voice, soprano) and the sound source of the station environment are combined to obtain the audio corresponding to (mature female voice, soprano, station).

[0049] For example, the test requirements are a soprano and a mature female voice in a train station environment and a baritone and a middle-aged male voice in a shopping mall environment. Therefore, the target human voice sources can be determined as the sound sources of (mature female voice, soprano) and (middle-aged male voice, baritone). The target noise sources can be determined as the sound sources of the train station environment and the shopping mall environment. Thus, the sound sources of (mature female voice, soprano) and the sound sources of the train station environment are combined, and the sound sources of (middle-aged male voice, baritone) and the sound sources of the shopping mall environment are combined to obtain the audio corresponding to (mature female voice, soprano, train station) and (middle-aged male voice, baritone, shopping mall).

[0050] S102. Control the voice playback device to play the audio corresponding to the sound source combination, and control the device under test to be in the sound pickup mode, so that the device under test can acquire the audio and generate audio feedback information in the sound pickup mode.

[0051] The sound pickup mode refers to the different ways the smart glasses collect sound from various directions. Audio feedback information can be the feedback generated by the smart glasses based on the audio, such as an audio stream.

[0052] In some embodiments, the voice playback device is controlled to play the audio corresponding to the sound source combination, so that the device under test acquires the audio to generate an audio stream; the device under test is then controlled to export the audio stream corresponding to the sound source combination. This allows for accurate acquisition of audio feedback information generated by the device under test based on the audio.

[0053] Specifically, the testing device can simultaneously play the human voice audio and noise audio corresponding to the sound source combination, so that the smart glasses can collect the audio played by the voice playback device in the sound pickup mode, thereby generating the audio stream corresponding to the audio. After the audio stream is generated, the testing device controls the smart glasses to export the audio stream corresponding to the sound source combination so as to generate voice information in the future.

[0054] For example, if there are multiple sound source combinations, the testing device will play the audio corresponding to each sound source combination in sequence, so that the smart glasses can collect the audio of the sound source combination played by the voice playback device in the sound pickup mode, thereby generating the audio stream corresponding to the audio. After the audio stream is generated, the testing device controls the smart glasses to export the audio stream corresponding to the sound source combination, and then play the audio corresponding to the next sound source combination, and so on, until the audio streams corresponding to all sound source combinations are generated.

[0055] For example, if there are multiple sound source combinations, such as (audio A, audio D), (audio A, audio F), and (audio B, audio D), the testing device sequentially plays the audio corresponding to (audio A, audio D) so that the smart glasses can collect the audio played by the voice playback device in the sound pickup mode, thereby generating an audio stream corresponding to (audio A, audio D). After generating the audio stream, the testing device controls the smart glasses to export the audio stream corresponding to (audio A, audio D), then plays the audio corresponding to (audio A, audio F), exporting the audio stream corresponding to (audio A, audio F), and then plays the audio corresponding to (audio B, audio D), thereby exporting the audio stream corresponding to (audio B, audio D).

[0056] S103. Obtain the audio feedback information, generate corresponding voice information based on the audio feedback information, and perform voice recognition processing on the voice information to obtain text information.

[0057] The voice information can be the speech collected and recognized by the smart glasses. The text information can be the text obtained after performing text recognition on the voice information.

[0058] Specifically, it can acquire the audio stream exported by the smart glasses, parse the audio stream, generate the corresponding voice file, and then call the speech-to-text tool interface to convert the voice file into text information and automatically save it in the document.

[0059] For example, the audio streams exported by the smart glasses can be obtained sequentially through the testing device, and each audio stream can be parsed to generate a speech file corresponding to each sound source combination. Then, the speech-to-text tool interface can be called to convert the speech file corresponding to each sound source combination into the corresponding text information and automatically save it in the document.

[0060] S104. Analyze the text information and standard text information to generate test results.

[0061] Among them, the standard text information is the text content corresponding to the human voice source in the sound source combination, which is the accurate text information.

[0062] In some embodiments, a text detection tool is invoked, and text detection is performed on the text information based on the standard text information to obtain the character error rate and sentence error rate of the text information; test results are generated based on the character error rate and sentence error rate of the text information. This allows for accurate calculation of the character error rate and sentence error rate corresponding to the text information obtained from speech recognition, thereby accurately generating test results.

[0063] Text detection tools, such as HResults, can be used to detect word and sentence error rates in text information. The sentence error rate is calculated by dividing the number of errors in sentence recognition by the total number of sentences. The word error rate is calculated by dividing the number of errors in character recognition by the total number of characters.

[0064] Specifically, the HResults tool interface can be called to import standard text information and the recognized text information, thereby automatically calculating the corresponding indicators of word error rate (WER) and sentence error rate (SER), and automatically saving them to a document to generate the corresponding test results.

[0065] In some embodiments, the text information is compared with the standard text information to obtain replacement characters, inserted characters, and deleted characters; the word error rate and sentence error rate of the text information are determined based on the replacement characters, inserted characters, and deleted characters. Thus, the word error rate and sentence error rate of the text information can be accurately determined based on the calculated character comparison results.

[0066] Among them, the replacement character can be a character in the text information that is replaced relative to the standard text information; the inserted character can be a character newly added to the text information relative to the standard text information; and the deleted character can be a character newly removed from the text information relative to the standard text information.

[0067] Specifically, text information can be compared with standard text information to obtain replacement characters, inserted characters, and deleted characters. The number of replacement characters, inserted characters, and deleted characters can be counted. Then, the error rate of the text information can be obtained by dividing the number of character recognition errors by the total number of characters.

[0068] For example, the text information can be compared with the standard text information to determine that the number of characters to be replaced, inserted, and deleted is 15, and the total number of characters is 100. Then the error rate of the text information can be determined to be 15%.

[0069] For example, the word error rate (WER) can be expressed by the formula:

[0070]

[0071] Where WER is the word error rate, S is the number of replaced characters, D is the number of inserted characters, I is the number of deleted characters, N is the total number of characters, and H is the number of correct characters.

[0072] Specifically, the error rate of each word in a sentence can be determined first. If the error rate of any sentence exceeds the preset error rate, the sentence can be considered to have been misidentified. Finally, the number of misidentified sentences is counted and divided by the total number of sentences to obtain the sentence error rate. This allows for automated testing while saving the results, reducing test data processing time, minimizing human intervention in testing, and improving efficiency and cost-effectiveness.

[0073] The preset error rate can be 80%, which is determined by the user and is not specifically limited here.

[0074] For example, we can first determine that the word error rate in each sentence is 25%. If the preset word error rate is 20%, then we can determine that the word error rate in the sentence exceeds the preset word error rate. At this point, we can consider that the sentence has been identified incorrectly. Finally, we count the number of words in each sentence whose word error rate exceeds the preset word error rate, for example, 5, and then divide it by the total number of sentences, for example, 20, to get the sentence error rate of 20%.

[0075] Specifically, after obtaining the word error rate and sentence error rate of the text information, the word error rate and sentence error rate of the text information can be statistically analyzed, and the error locations in the text information can be determined. Finally, the results can be combined to generate test results.

[0076] In some embodiments, such as Figure 2 As shown, taking smart glasses as an example of the device under test, the overall process of speech recognition testing is introduced below, including steps S201-S213 of the speech recognition testing method proposed in one embodiment of this application. The explanation will focus on the application of the speech recognition testing method to a testing device within a testing system.

[0077] The testing system includes a testing device, smart glasses, a Bluetooth dongle, a soundproof box, an artificial head, and a voice playback device.

[0078] S201. Use an environmental noise simulation tool to generate audio corresponding to noise sources that simulate different noisy environments, and use an AI-synthesized human voice tool to generate audio corresponding to different human voice sources.

[0079] S202. Based on the testing requirements, establish sound source combinations with different combinations of human voice and noise sources.

[0080] S203. Turn on the smart glasses and place them in the silent box on the artificial head and ears. Place the voice playback device below the artificial head to simulate the position of a human mouth. Place the Bluetooth dongle close to the smart glasses.

[0081] S204. Run the test device, select the audio corresponding to each sound source combination, and control the Bluetooth dongle to establish a wireless Bluetooth communication connection with the smart glasses.

[0082] S205. The test device controls the Bluetooth dongle to send a command to the smart glasses to enter the sound pickup mode.

[0083] S206. Control the voice playback device to play the audio corresponding to the sound source combination.

[0084] S207: Control the Bluetooth Dongle to export the audio stream picked up by the smart glasses to generate a voice file, call the speech-to-text tool interface, convert the speech into text information and automatically save it to the document.

[0085] S208. Iterate through all the recorded speech data of human voice + environmental noise combination, repeat steps S205-S207, and convert the speech files generated by the audio of all sound source combinations into text information and save them to the test corpus result document.

[0086] S209. Import standard text information and actual text information by calling the HResults tool interface, automatically calculate the word error rate (WER) and sentence error rate (SER) indicators and automatically save them to the document.

[0087] S210. Traverse all combinations of voice and ambient noise playback sound sources, repeat steps S204-S209, and automatically save the word error rate (WER) and sentence error rate (SER) test results corresponding to all sound source combinations to a document, thereby generating the corresponding test results.

[0088] This application discloses a speech recognition testing method that controls a speech playback device to play audio corresponding to a combination of sound sources and controls the device under test to be in sound pickup mode, thereby obtaining audio feedback information generated by the device under test; generating corresponding speech information based on the audio feedback information, and performing speech recognition processing on the speech information to obtain text information; and analyzing the text information with standard text information to generate test results. This method automates the speech recognition testing of the device under test, avoiding numerous repetitive testing steps for users, thereby reducing labor costs and improving testing efficiency and accuracy.

[0089] Please see Figure 3 , Figure 3 This is a schematic block diagram of a speech recognition device provided in an embodiment of this application. The speech recognition device is applied to a test device in a test system, which also includes a device under test and a speech playback device.

[0090] Specifically, such as Figure 3 As shown, the speech recognition device 300 includes: an audio acquisition module 301, an audio feedback module 302, a speech recognition module 303, and a testing module 304.

[0091] Audio acquisition module 301 is used to acquire a set of combined sound source audios, wherein the set of combined sound source audios includes audios corresponding to different combinations of sound sources;

[0092] The audio feedback module 302 is used to control the voice playback device to play the audio corresponding to the sound source combination, and to control the device under test to be in the sound pickup mode, so that the device under test can acquire the audio and generate audio feedback information in the sound pickup mode;

[0093] The speech recognition module 303 is used to acquire the audio feedback information, generate corresponding speech information based on the audio feedback information, and perform speech recognition processing on the speech information to obtain text information;

[0094] The test module 304 is used to analyze the text information and standard text information to generate test results.

[0095] In some embodiments, the combined sound source audio set is generated by: obtaining a human voice sound source audio set and a noise sound source audio set, wherein the human voice sound source audio set includes audio corresponding to multiple types of human voice sound sources, and the noise sound source audio set includes audio corresponding to multiple types of noise sound sources; and combining multiple human voice sound source audio sets and multiple noise sound source audio sets to obtain the combined sound source audio set.

[0096] In some embodiments, the audio acquisition module 301 is further configured to acquire test requirements, and determine target human voice sources and target noise sources according to the test requirements; and combine the target human voice sources and the target noise sources to obtain the combined audio source set.

[0097] In some embodiments, the audio corresponding to the different human voice sources is obtained by combining different timbres and different tones; the audio corresponding to the different noise sources is noise source in different environments.

[0098] In some embodiments, the audio feedback module 302 is further configured to control the voice playback device to play the audio corresponding to the sound source combination, so that the device under test can collect the audio to generate an audio stream; and control the device under test to export the audio stream corresponding to the sound source combination.

[0099] In some embodiments, the testing module 304 is further configured to invoke a text detection tool and perform text detection on the text information based on the standard text information to obtain the word error rate and sentence error rate of the text information; and generate test results based on the word error rate and sentence error rate of the text information.

[0100] In some embodiments, the test module 304 is further configured to perform text comparison processing between the text information and the standard text information to obtain replacement characters, inserted characters, and deleted characters; and determine the word error rate and sentence error rate of the text information based on the replacement characters, the inserted characters, and the deleted characters.

[0101] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the above-described apparatus and its modules and units can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0102] The methods and apparatus of this application can be used in a wide variety of general-purpose or special-purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0103] Please see Figure 4 , Figure 4 This is a schematic block diagram of a test system 400 provided in an embodiment of this application.

[0104] The testing system 400 includes a device under test (DUT) 401, a voice playback device 402, and a testing device 500. The DUT 401 is used to recognize the audio played by the voice playback device 402. The testing device 500 is communicatively connected to both the DUT 401 and the voice playback device 402. This allows for automated voice recognition testing of the DUT 401, avoiding numerous repetitive testing steps for the user, thereby reducing labor costs and improving testing efficiency and accuracy.

[0105] Please see Figure 5 , Figure 5 This is a schematic block diagram of a testing device 500 provided in an embodiment of this application.

[0106] like Figure 5 As shown, the test device 500 may include a processor 501 and a memory 502, which are connected via a bus 503, such as an I2C (Inter-integrated Circuit) bus.

[0107] In one exemplary embodiment, processor 501 can be used to provide computing and control capabilities to support the operation of the entire terminal device. Processor 501 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0108] Specifically, the memory 502 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.

[0109] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the embodiments of this application, and does not constitute a limitation on the terminal device to which the embodiments of this application are applied. A specific server may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0110] The processor 501 is used to run a computer program stored in the memory, and implements any of the speech recognition test methods provided in the embodiments of this application when executing the computer program.

[0111] In one embodiment, the processor 501 is configured to run a computer program stored in a memory, and when executing the computer program, to perform the following steps: acquiring a set of combined sound source audio, the set of combined sound source audio including audio corresponding to different combinations of sound sources; controlling the voice playback device to play the audio corresponding to the sound source combination, and controlling the device under test to be in a sound pickup mode, so that the device under test can acquire the audio and generate audio feedback information in the sound pickup mode; acquiring the audio feedback information, generating corresponding voice information based on the audio feedback information, and performing speech recognition processing on the voice information to obtain text information; and analyzing the text information with standard text information to generate test results.

[0112] In one embodiment, the processor 501 is further configured to: acquire a set of human voice source audio and a set of noise source audio, wherein the set of human voice source audio includes audio corresponding to different human voice sources and the set of noise source audio includes audio corresponding to different noise sources; and combine the audio corresponding to the different human voice sources and the audio corresponding to the different noise sources to obtain the combined audio source set.

[0113] In one embodiment, the processor 501 is further configured to: acquire test requirements, and determine a target human voice source and a target noise source based on the test requirements; and combine the target human voice source and the target noise source to obtain the combined sound source audio set.

[0114] In one embodiment, the audio corresponding to the different human voice sources is obtained by combining different timbres and different tones; the audio corresponding to the different noise sources are noise sources in different environments.

[0115] In one embodiment, the processor 501 is further configured to: control the voice playback device to play the audio corresponding to the sound source combination, so that the device under test can acquire the audio to generate an audio stream; and control the device under test to export the audio stream corresponding to the sound source combination.

[0116] In one embodiment, the processor 501 is further configured to: invoke a text detection tool, and perform text detection on the text information based on the standard text information to obtain the character error rate and sentence error rate of the text information; and generate test results based on the character error rate and sentence error rate of the text information.

[0117] In one embodiment, the processor 501 is further configured to: perform text comparison processing on the text information and the standard text information to obtain replacement characters, inserted characters and deleted characters; and determine the word error rate and sentence error rate of the text information based on the replacement characters, the inserted characters and the deleted characters.

[0118] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the terminal device described above can be referred to the corresponding process in the aforementioned terminal capability reporting method embodiment, and will not be repeated here.

[0119] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed, implement any of the speech recognition testing methods provided in this application.

[0120] The computer-readable storage medium can be the internal storage unit of the smart glasses described in the foregoing embodiments, such as the memory of the smart glasses. Alternatively, the computer-readable storage medium can be an external storage device for the smart glasses, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the smart glasses.

[0121] Furthermore, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system, at least one application program required for a function, etc.

[0122] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A test method for speech recognition, characterized in that, A testing device is used in a testing system, the testing system further comprising smart glasses, a voice playback device, a soundproof box, and an artificial head. The smart glasses, voice playback device, and artificial head are all placed inside the soundproof box. The smart glasses are positioned on the ears of the artificial head, and the voice playback device is positioned on the mouth of the artificial head. The method includes: Acquire a set of audio from human voice sources and a set of audio from noise sources, wherein the set of audio from human voice sources includes audio corresponding to different human voice sources, and the set of audio from noise sources includes audio corresponding to different noise sources; Obtain test requirements, and determine target human voice sources and target noise sources based on the test requirements, wherein the test requirements include human voice requirements and environmental requirements; The target human voice source and the target noise source are combined to obtain a combined sound source audio set. The combined sound source audio set includes audio corresponding to different combinations of sound sources. The target human voice source includes two different human voice sources. The target noise source includes two different noise sources. The voice playback device is controlled to play audio from the combined sound source audio set, and the smart glasses are controlled to be in sound pickup mode, so that the smart glasses can acquire the audio and generate audio feedback information in sound pickup mode; The audio feedback information is obtained, and corresponding voice information is generated based on the audio feedback information. The voice information is then processed by speech recognition to obtain text information. The text information is analyzed together with standard text information to generate test results; The control of the voice playback device to play the audio corresponding to the sound source combination, and the control of the smart glasses to be in sound pickup mode, so that the smart glasses can acquire the audio and generate audio feedback information in sound pickup mode, includes: The voice playback device is controlled to play the audio corresponding to the sound source combination, so that the smart glasses can collect the audio to generate an audio stream; Control the smart glasses to export the audio stream corresponding to the sound source combination.

2. The method according to claim 1, characterized in that, The audio corresponding to the different human voice sources is obtained by combining different timbres and different tones; the audio corresponding to the different noise sources is noise source in different environments.

3. The method according to claim 1, characterized in that, The step of analyzing the text information and standard text information to generate test results includes: A text detection tool is invoked, and based on the standard text information, text detection is performed on the text information to obtain the character error rate and sentence error rate of the text information; Test results are generated based on the word error rate and sentence error rate of the text information.

4. The method according to claim 3, characterized in that, The process involves calling a text detection tool and performing text detection on the text information based on the standard text information to obtain the character error rate and sentence error rate of the text information, including: The text information is compared with the standard text information to obtain the replacement characters, inserted characters, and deleted characters. The word error rate and sentence error rate of the text information are determined based on the replaced character, the inserted character, and the deleted character.

5. A voice recognition device, characterized in that, A testing device is used in a testing system, the testing system further including smart glasses, a voice playback device, a soundproof box, and an artificial head. The smart glasses, voice playback device, and artificial head are all placed inside the soundproof box. The smart glasses are positioned on the ears of the artificial head, and the voice playback device is positioned on the mouth of the artificial head. The voice recognition device includes: An audio acquisition module is used to acquire a set of human voice source audio and a set of noise source audio. The human voice source audio set includes audio corresponding to different human voice sources, and the noise source audio set includes audio corresponding to different noise sources. The module acquires test requirements and determines target human voice sources and target noise sources based on the test requirements. The test requirements include human voice requirements and environmental requirements. The module combines the target human voice sources and the target noise sources to obtain a combined audio source set. The combined audio source set includes audio corresponding to different combinations of audio sources. The target human voice sources include two different human voice sources, and the target noise sources include two different noise sources. An audio feedback module is used to control the voice playback device to play the audio corresponding to the sound source combination, and to control the smart glasses to be in the sound pickup mode, so that the smart glasses can acquire the audio and generate audio feedback information in the sound pickup mode; The speech recognition module is used to acquire the audio feedback information, generate corresponding speech information based on the audio feedback information, and perform speech recognition processing on the speech information to obtain text information; The testing module is used to analyze the text information and standard text information to generate test results; The control of the voice playback device to play the audio corresponding to the sound source combination, and the control of the smart glasses to be in sound pickup mode, so that the smart glasses can acquire the audio and generate audio feedback information in sound pickup mode, includes: The voice playback device is controlled to play the audio corresponding to the sound source combination, so that the smart glasses can collect the audio to generate an audio stream; Control the smart glasses to export the audio stream corresponding to the sound source combination.

6. A speech recognition testing system, characterized in that, The testing system includes a testing device, smart glasses, a voice playback device, a soundproof box, and an artificial head. The smart glasses, voice playback device, and artificial head are all placed inside the soundproof box. The smart glasses are mounted on the ears of the artificial head, and the voice playback device is mounted on the mouth of the artificial head. The testing device includes a memory and a processor; wherein the memory is connected to the processor and is used to store a program, and the processor is used to implement any one of the speech recognition testing methods as described in claims 1 to 4 by running the program stored in the memory.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to implement the speech recognition test method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Voice recognition testing system and method

    CN106548772A

  • Speech recognition model selection method and device, electronic equipment and storage medium

    CN115762477A