Automatic testing method for voice module in Internet of things equipment

文档序号:1891572 发布日期:2021-11-26 浏览:22次 中文

阅读说明:本技术 物联网设备中语音模块的自动化测试方法 (Automatic testing method for voice module in Internet of things equipment ) 是由 王菁宇 荣霞芳 郭海峰 李明 于 2021-08-30 设计创作,主要内容包括:本发明提供一种物联网设备中语音模块的自动化测试方法,包括:S110、测试设备播放唤醒词;S120、语音模块对监听到的唤醒词进行识别,在识别成功后进入唤醒状态,向测试设备发送唤醒消息,播放应答语音,发送第一提醒消息;S130、测试设备接收唤醒消息和第一提醒消息,进入S140;S140、测试设备播放命令词;S150、语音模块对监听到的命令词进行识别,将识别结果发送至测试设备,播放应答语音,发送第二提醒消息;S160、测试设备接收识别结果和第二提醒消息,判断是否满足预设条件,若是则当前命令词对应的测试过程有效,并保存识别结果。本发明可以避免干扰识别结果降低整体的识别率,提高对其测试识别率的准确度。(The invention provides an automatic testing method of a voice module in Internet of things equipment, which comprises the following steps: s110, the test equipment plays the awakening words; s120, the voice module identifies the monitored awakening words, enters an awakening state after successful identification, sends awakening messages to the test equipment, plays response voice and sends first reminding messages; s130, the test equipment receives the awakening message and the first reminding message, and the S140 is entered; s140, playing command words by the test equipment; s150, the voice module identifies the monitored command words, sends identification results to the testing equipment, plays response voice and sends second reminding messages; and S160, the test equipment receives the identification result and the second reminding message, judges whether preset conditions are met, if so, the test process corresponding to the current command word is effective, and stores the identification result. The invention can avoid interfering the recognition result to reduce the overall recognition rate and improve the accuracy of testing the recognition rate.)

1. An automatic testing method for a voice module in Internet of things equipment is characterized by comprising the following steps:

s110, after time stamp synchronization is carried out on the test equipment and a voice module in the Internet of things equipment, the test equipment plays a wakeup word;

s120, the voice module identifies the monitored awakening word, enters an awakening state after successful identification, sends an awakening message used for indicating that the voice module enters the awakening state to the test equipment, plays a response voice corresponding to the awakening word, and sends a first reminding message to the test equipment after the response voice is played, wherein the first reminding message is used for indicating that the response voice corresponding to the awakening word is played;

s130, if the test equipment receives the awakening message and the first reminding message within a preset time length after the awakening word is played, entering S140;

s140, the test equipment plays command words;

s150, the voice module identifies the monitored command word, sends an identification result to the test equipment, plays a response voice corresponding to the command word, and sends a second reminding message to the test equipment after the response voice is played, wherein the second reminding message is used for indicating that the response voice corresponding to the command word is played;

s160, if the identification result and the second reminding message are received by the testing equipment within a preset time length after the command word is played, judging whether a timestamp corresponding to the identification result meets a preset condition, if so, enabling a testing process corresponding to the current command word to be effective, and storing the identification result; the preset conditions include: the timestamp corresponding to the recognition result is greater than the timestamp corresponding to the command word when the command word is completely played and is less than the timestamp corresponding to the second reminding message; and each piece of interaction information between the test equipment and the voice module comprises a corresponding time stamp.

2. The method according to claim 1, wherein the step S160 further comprises: and if the timestamp corresponding to the identification result does not meet the preset condition, the test process corresponding to the current command word is invalid, the identification result is recorded as an interference identification result, and the step returns to the step S110 to wake up again and test again according to the current command word.

3. The method of claim 1, wherein the S130 further comprises: if the test equipment does not receive the awakening message and the first reminding message within the preset time after playing the awakening word, recording the awakening failure, and returning to S110 to awaken again.

4. The method according to claim 1, wherein the step S150 further comprises: and if the command word is not monitored within the preset time after the voice module sends the first reminding message, exiting the awakening state, and sending an exiting awakening message for indicating exiting the awakening state to the test equipment.

5. The method according to claim 1, wherein the S160 further comprises: and if the test equipment does not receive the identification result and the second reminding message within the preset time after the command word is played, recording that the test fails.

6. The method of claim 1, wherein the voice module is a single-turn voice mode; the S150 further includes: after sending the second reminding message, the voice module exits the wake-up state, and sends an exit wake-up message for indicating that the voice module exits the wake-up state to the test equipment, so that the test equipment returns to S110 to wake up again when testing the next command word or testing the current command word again.

7. The method of claim 1, wherein the voice module is a multi-turn voice mode; the S160 further includes: after the test equipment stores the recognition result, if the quit wake-up message from the voice module is not received, the process returns to S140 to test the next command word.

8. The method of claim 7, wherein the S150 comprises: and after the voice module sends the second reminding message, clearing the timing of the timing period corresponding to the awakening state, restarting timing, exiting the awakening state if no voice is monitored in one timing period, and sending a message of exiting the awakening state to the test equipment.

9. The method of claim 7, further comprising:

s130 specifically includes: after receiving the wake-up message and the first reminding message within the preset time length of sending the wake-up word, the test equipment judges whether the timestamp of the wake-up message is smaller than the timestamp of the first reminding message, and if so, the process goes to S140.

10. The method of claim 1, further comprising:

if the test equipment receives any message returned by the voice module in the process of playing the awakening word or the command word, the playing is stopped, the message is recorded as an interference invalid message, and the message returns to S110 to be awakened again and tested according to the current command word.

Technical Field

One or more embodiments of the present specification relate to the technical field of internet of things devices, and in particular, to an automated testing method for a voice module in an internet of things device.

Background

With the development of internet of things technology, many internet of things devices with a voice recognition function module, such as an air conditioner, are currently available. However, due to different software and hardware, different prices, the speech recognition capability of the mobile phone has a great difference, the anti-interference capability is different, and the speech recognition rate is different in different environments.

At present, some automatic and semi-automatic testing methods appear in the field of intelligent voice recognition, but the testing accuracy of the methods has certain problems, and the recognition rate of a voice recognition functional module cannot be truly reflected, particularly under the condition of noise interference, the voice recognition functional module with poor recognition capability is particularly poor.

Disclosure of Invention

One or more embodiments of the present specification describe an automated testing method for a voice module in an internet of things device.

The invention provides an automatic testing method of a voice module in Internet of things equipment, which comprises the following steps:

s110, after time stamp synchronization is carried out on the test equipment and a voice module in the Internet of things equipment, the test equipment plays a wakeup word;

s120, the voice module identifies the monitored awakening word, enters an awakening state after successful identification, sends an awakening message used for indicating that the voice module enters the awakening state to the test equipment, plays a response voice corresponding to the awakening word, and sends a first reminding message to the test equipment after the response voice is played, wherein the first reminding message is used for indicating that the response voice corresponding to the awakening word is played;

s130, if the test equipment receives the awakening message and the first reminding message within a preset time length after the awakening word is played, entering S140;

s140, the test equipment plays command words;

s150, the voice module identifies the monitored command word, sends an identification result to the test equipment, plays a response voice corresponding to the command word, and sends a second reminding message to the test equipment after the response voice is played, wherein the second reminding message is used for indicating that the response voice corresponding to the command word is played;

s160, if the identification result and the second reminding message are received by the testing equipment within a preset time length after the command word is played, judging whether a timestamp corresponding to the identification result meets a preset condition, if so, enabling a testing process corresponding to the current command word to be effective, and storing the identification result; the preset conditions include: the timestamp corresponding to the recognition result is greater than the timestamp corresponding to the command word when the command word is completely played and is less than the timestamp corresponding to the second reminding message; and each piece of interaction information between the test equipment and the voice module comprises a corresponding time stamp.

The automatic testing method for the voice module in the internet of things device, provided by the embodiment of the specification, adds the timestamp in the interactive message, and then judges whether the preset condition is met according to the timestamp, and further judges whether the recognition result is an interference recognition result or an effective recognition result, and subsequently, whether the recognition is correct or not can be judged only aiming at the effective recognition result, so that the interference recognition result is avoided, the overall recognition rate is reduced, especially aiming at the voice module with poor recognition capability, the accuracy of testing the recognition rate can be greatly improved, and the influence of noise interference on the voice module with poor recognition capability is large. Besides adding the timestamp in the message, the invention sets various interactive messages such as the awakening state message, the first reminding message, the second reminding message and the like, thereby ensuring that the interactive states of the awakening state message, the first reminding message and the second reminding message are matched, greatly reducing the occurrence of the situation that the voice module cannot monitor the voice played by the test equipment and smoothly executing the test process. Therefore, the problem that the recognition rate of the voice module is inaccurate under the condition that the equipment of the internet of things to be tested is easily interfered (for example, the voice module with low recognition capability is in a noisy test environment, and the microphone is closed due to noise interference so that the awakening words or command words played by the test equipment cannot be monitored) is solved.

Drawings

In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present specification, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 is a schematic flowchart of an automated testing method for a voice module in an internet of things device in one embodiment of the present specification;

FIGS. 2 to 4 are schematic diagrams illustrating interaction between a test program on a PC side and a device under test in an embodiment of the present disclosure.

Detailed Description

The scheme provided by the specification is described below with reference to the accompanying drawings.

In a first aspect, the present invention provides an automated testing method for a voice module in an internet of things device, as shown in fig. 1 to 4, the method includes:

s110, after time stamp synchronization is carried out on the test equipment and a voice module in the Internet of things equipment, the test equipment plays a wakeup word;

the testing equipment and the Internet of things equipment can synchronize the time stamps to ensure that the time stamps carried in the information have reference value for the two equipment when the two equipment carry out information interaction.

The awakening word is used for awakening the voice module so that the voice module enters an awakening state. And when the voice module is in an awakening state, testing the voice module. For example, the test device plays the wake word "samll classmate".

It will be appreciated that the two pieces of hardware involved in the overall testing process include the testing equipment and the internet of things equipment to be tested, e.g. an air conditioner. The test equipment performs the whole test flow through the test equipment installed on the test equipment.

S120, the voice module identifies the monitored awakening word, enters an awakening state after successful identification, sends an awakening message used for indicating that the voice module enters the awakening state to the test equipment, plays a response voice corresponding to the awakening word, and sends a first reminding message to the test equipment after the response voice is played, wherein the first reminding message is used for indicating that the response voice corresponding to the awakening word is played;

that is, after the test device plays the wake-up word, the voice module recognizes the monitored wake-up word, and after the wake-up word is recognized, the state to be woken up enters the wake-up state, and sends a wake-up message to the test device, thereby informing the test device that the voice module enters the wake-up state. When the voice module enters the wake-up state, the response voice is played, for example, the wake-up word played by the testing device for the air conditioner is "samll classmate", and the response voice played by the voice module is "on". After the response voice is played, the voice module sends a first reminding message like the test equipment, so that the test equipment is informed that the response voice corresponding to the awakening word is played completely.

S130, if the test equipment receives the awakening message and the first reminding message within a preset time length after the awakening word is played, entering S140;

it can be understood that the testing device may start timing after playing the wake-up word, and if the wake-up message and the first reminding message are received within the preset time period, it indicates that the voice module enters the wake-up state and has played the response voice, and at this time, the testing device may sequentially test a plurality of preset command words.

S140, the test equipment plays command words;

the specific content of the command word in different internet of things devices is different, for example, for an air conditioner, the command word may include "raise the temperature", "turn on a dehumidification mode", "turn on a refrigeration mode", "turn down the temperature to 25 °", and the like. For smart televisions, the command words may be "jump to CCTV 6", "turn up sound", etc.

The method comprises the steps of presetting a plurality of command words for each piece of Internet of things equipment, then carrying out the test of the context for each command word, and entering the test of the next command word after one command word is tested successfully until all the command words are tested.

S150, the voice module identifies the monitored command word, sends an identification result to the test equipment, plays a response voice corresponding to the command word, and sends a second reminding message to the test equipment after the response voice is played, wherein the second reminding message is used for indicating that the response voice corresponding to the command word is played;

that is to say, after the voice module monitors the command word, the voice module performs recognition, sends a recognition result to the test device, then plays the corresponding response voice, and sends a second reminding message to the test device after the response voice is played, so as to inform the test device that the response voice corresponding to the command word is played completely.

S160, if the identification result and the second reminding message are received by the testing equipment within a preset time length after the command word is played, judging whether a timestamp corresponding to the identification result meets a preset condition, if so, enabling a testing process corresponding to the current command word to be effective, and storing the identification result; the preset conditions include: the timestamp corresponding to the recognition result is greater than the timestamp corresponding to the command word when the command word is completely played and is less than the timestamp corresponding to the second reminding message; and each piece of interaction information between the test equipment and the voice module comprises a corresponding time stamp.

It can be understood that when the test device starts timing after the command word is played, if the recognition result and the second reminding message are received within the preset time length, the judgment is further carried out according to the timestamp. The method specifically comprises the following steps: and judging whether the timestamp corresponding to the identification result is larger than the timestamp corresponding to the command word playing completion and smaller than the timestamp corresponding to the second reminding message. The test equipment firstly plays the command word, then the voice module sends the recognition result, and the second reminding message is sent after the recognition result is sent, so the timestamp corresponding to the recognition result should be larger than the timestamp corresponding to the command word when the command word is played and smaller than the timestamp corresponding to the second reminding message, if the condition is not met, the command word, the recognition result or the second reminding message which are played are not corresponding, the recognition result, the second reminding message and the like which are caused after the interference noise is recognized may be judged, and the preset condition is adopted for judgment.

If the preset conditions are met, the test according to the current command word is effective, and the recognition result can be recorded. The validity is not to say that the recognition result is correct, and the correctness of the recognition result is not judged here, but only valid tests are screened out here, and of course, invalid tests, failure tests and the like are also mentioned below, and only the recognition result corresponding to the valid test is meaningful, so that after all command word tests are completed subsequently, the correctness of the recognition result can be further distinguished, and the recognition correctness of the voice module is further determined.

In specific implementation, the S160 further includes: and if the timestamp corresponding to the identification result does not meet the preset condition, the test process corresponding to the current command word is invalid, the identification result is recorded as an interference identification result, and the step returns to the step S110 to wake up again and test again according to the current command word.

That is, if the preset condition is not satisfied, it is stated that the test procedure for the current command word is invalid, the recognition result is recorded as the interference recognition result, and then in S110, the wake-up operation and the test operation for the current command word are restarted.

It can be understood that, if the test is performed in a noisy environment, the command word monitored by the voice module may be noise, but not the command word played by the test device, so that the timestamp of the second reminding message returned by the voice module and the timestamp corresponding to the completion of the playing of the command word may not satisfy the preset condition. It is thus determined which information is caused by interference in this way, so that the situation in which the test recognition rate of the speech module does not match the true recognition rate under the influence of interference noise is avoided.

In a specific implementation, the S130 may further include: if the test equipment does not receive the awakening message and the first reminding message within the preset time after playing the awakening word, recording the awakening failure, and returning to S110 to awaken again.

That is to say, if the test device does not receive the wake-up message and the first prompting message within the preset time after the wake-up word is played, it indicates that the voice module does not monitor the wake-up word, turns off the microphone, or for other reasons, so that the wake-up is considered to be failed at this time, the wake-up can be performed again, if the wake-up fails for multiple times, the method is ended, a worker can perform hardware inspection, and the test is performed again after no problem is detected.

In a specific implementation, the S150 may further include: and if the command word is not monitored within the preset time after the voice module sends the first reminding message, exiting the awakening state, and sending an exiting awakening message for indicating exiting the awakening state to the test equipment.

That is to say, if the voice module does not monitor the command word after sending the first reminding message because the voice module is in the wake-up state, it indicates that the test device does not play the command word, and at this time, it may be that a problem occurs in the test program of the test device, so the voice module can exit the wake-up state at this time, and simultaneously send an exit wake-up message to the test device to notify the test device.

In a specific implementation, the S160 may further include: and if the test equipment does not receive the identification result and the second reminding message within the preset time after the command word is played, recording that the test fails.

That is, if the test device does not receive the recognition result and the second warning message within the predetermined time after playing the command word, which indicates that the voice module has not been heard, cannot be recognized, and has been recognized, but the time for sending the message is later than the predetermined time, etc., the program in the voice module may have a problem, so that the recognition is not recorded, and at this time, the test may return to S110 to perform the retest, or the test may be terminated to perform the check on the voice module.

In specific implementation, the voice module may adopt a single-turn voice mode or a multi-turn voice mode. The single-round voice mode is: after the voice module is awakened, the testing equipment plays a command word, the voice module is identified and sends related information, then the voice module exits from the awakening state, and the next command word needs to be awakened again. The multi-round voice mode is as follows: setting a preset duration in advance, starting timing after a voice module is awakened, identifying a command word by the voice module, sending related information, resetting timing to zero, and restarting timing; and monitoring and identifying the next command word and sending related information, then resetting the preset time length to zero, and restarting timing.

When the voice module is in the single-turn voice mode, the S150 further includes: after sending the second reminding message, the voice module exits the wake-up state, and sends an exit wake-up message for indicating that the voice module exits the wake-up state to the test equipment, so that the test equipment returns to S110 to wake up again when testing the next command word or testing the current command word again.

The voice module can send an exit wakeup message to inform the test equipment when exiting the wakeup state. When the testing equipment knows that the voice module is in the single-round mode and receives the quit awakening message, the testing equipment can awaken again when needing to enter the test of the next command word or retest the current command word.

When the voice module is in a multi-turn voice mode, the S160 may further include: after the test equipment stores the recognition result, if the quit wake-up message from the voice module is not received, the process returns to S140 to test the next command word. Of course, if the quit wake-up message from the voice module is received, it is necessary to return to S110 to wake up again and perform the test of the next command word.

In a specific implementation, the S150 may include: and after the voice module sends the second reminding message, clearing the timing of the timing period corresponding to the awakening state, restarting timing, exiting the awakening state if no voice is monitored in one timing period, and sending a message of exiting the awakening state to the test equipment.

That is, in the multi-round mode, if the voice module sends the second reminding message, the timing of the timing period is cleared, and the timing is restarted. If the test device receives the exit wakeup message, it needs to return to S110 to wake up again and continue the test.

For the multi-round mode, S130 in the present invention may specifically include: after receiving the wake-up message and the first reminding message within the preset time length of sending the wake-up word, the test equipment judges whether the timestamp of the wake-up message is smaller than the timestamp of the first reminding message, and if so, the process goes to S140.

That is to say, after receiving the wake-up message and the first prompting message, the testing device determines, according to the timestamp, before entering S140, specifically, determines whether the timestamp of the wake-up message is smaller than the timestamp of the first prompting message, because the voice module first sends the wake-up message, and then sends the first prompting message, the timestamp of the wake-up message is certainly smaller than the timestamp of the first prompting message. If the timestamp of the wake-up message is greater than the timestamp of the first reminder message, it indicates that the wake-up word for the wake-up message and the first reminder message may be different, and it is inevitable that a message is not a real wake-up word, and may be an interference noise, so that S140 cannot be entered at this time. The influence of the disturbing noise is again derived by this step.

In specific implementation, the method provided by the invention can further comprise:

if the test equipment receives any message returned by the voice module in the process of playing the awakening word or the command word, the playing is stopped, the message is recorded as an interference invalid message, and the message returns to S110 to be awakened again and tested according to the current command word.

That is to say, in the process of playing the wakeup word or the command word, the test device receives a message returned by the voice module, which indicates that the message returned by the voice module is not a feedback made for the command word or the play word played by the test device at this time, and it is likely that the voice module recognizes the interference noise in the noisy environment and sends a feedback message, so that at this time, the play process needs to be stopped, and the test device returns to the first step to re-wake up and re-test the current command word.

A flow chart of the validation test is given in fig. 2. In fig. 3, if the message received by the test program is the recognition result, it is recorded as the interference recognition, and in fact, no matter what kind of message is received, it is considered as the interference message. In fig. 4, if the test program receives the wake-up message and the recognition result after timeout, the test program considers that the test is failed.

For example, the air-conditioning chinese speech module is CI1003, which is a module capable of speech recognition and speech response, and the speech module is in a single-turn speech mode. After the test program wakes up the voice module by the wake-up word, a command word is played, after the device to be tested recognizes the command word once, the device to be tested automatically exits from the conversation mode of the wake-up state, and needs to wake up again when the next command word is tested. The testing equipment is a Windows 10 PC end, and a testing program is deployed on the PC end. The main functions of the test device are: playing a wake-up word and a command word, receiving a wake-up message sent by a Chinese voice module of the air conditioner, sending the wake-up message, responding a voice playing end message (namely a first reminding message and a second reminding message), and identifying a result. The air-conditioning Chinese voice module has the main functions of: monitoring and recognizing the awakening words, the command words, playing response voice, sending a first reminding message and a second reminding message, sending the awakening messages and exiting the awakening messages. The test equipment and the Chinese voice module of the air conditioner are communicated through a serial port, the timestamp synchronization is carried out firstly after the test equipment and the Chinese voice module of the air conditioner are started, and the timestamp is contained in all messages. The specific process roughly comprises the following steps:

the first step is as follows: the test equipment plays the awakening words, the Chinese voice module of the air conditioner monitors voice, sends awakening messages after successful recognition, plays response voice and sends a first reminding message.

The second step is that: and the test equipment receives the serial port message within the specified time, and if the awakening message and the first reminding message are not received within overtime, the awakening failure is recorded, and the first step of awakening is returned.

The third step: the test equipment plays the command words according to the configuration data, the air-conditioning Chinese voice module monitors the voice and recognizes the result, sends the recognition result to the test equipment, plays the response voice, sends a second reminding message to the test equipment after the completion of the playing, and after the completion of the sending, the test equipment exits from the awakening state and sends an exit awakening message to the test equipment.

The fourth step: the test equipment receives the serial port message within the set time, if the timestamp of the identification result is larger than the timestamp for completing the playing of the command word and smaller than the timestamp of the second reminding message, the test result is valid, the test is recorded to be valid, and the identification result is stored. Since the test device receives the exit wake-up message, it returns to the first step and tests the next command word. Otherwise, the relation is not satisfied, the test is invalid, the test is recorded as interference identification, the test returns to the first step, and the command word is awakened again and tested. If the identification result message and the second reminding message are not received after overtime, the test fails, and the identification failure is recorded.

For example, the air-conditioning chinese speech module is in a multi-turn mode, and the air-conditioning chinese speech module does not exit the awake state after recognizing a command word, but clears the timing of the timing period corresponding to the awake state, and restarts the timing. The main functions of the test device are: the method comprises the steps of playing awakening words and command words, receiving awakening messages sent by a Chinese voice module of the air conditioner, quitting awakening messages, first reminding messages, second reminding messages and recognition results. The air-conditioning Chinese voice module has the main functions of: monitoring and identifying a voice entry played by the test equipment, playing response voice, sending a wake-up message and an exit wake-up and wake-up, a first reminding message and a second reminding message to the test program equipment. The test equipment is communicated with the debugging serial port of the air-conditioning Chinese voice module through the serial port, and the timestamp is synchronized after the test equipment is started. All messages between two devices include a timestamp of when the message was sent. And in the process of playing the command words or the wakeup words, the test equipment receives any message which is an invalid message and returns to the first step again. The method comprises the following steps:

the first step is as follows: the test equipment plays the awakening words, the Chinese voice module of the air conditioner monitors voice, sends awakening messages after successful recognition, plays response voice and sends first reminding messages.

The second step is that: the test equipment receives the serial port message within the specified time, judges whether the timestamp corresponding to the awakening message is smaller than the timestamp of the first reminding message, and if so, enters a third step; and if the awakening message and the first reminding message are not received after the timeout, recording the awakening failure and returning to the first step.

The third step: the testing equipment plays command words according to the configuration data, the air-conditioning Chinese voice module monitors voice and recognizes results, sends the recognition results to the testing equipment, plays response voice, sends a second reminding message to the testing equipment after playing is completed, and the air-conditioning Chinese voice module monitors to clear the timing of the timing period corresponding to the awakening state and restarts timing; and if the voice is not monitored in a timing period, exiting the awakening state and sending an exiting awakening state message to the test equipment.

The fourth step: and the test equipment receives the serial port message within the specified time, if the time stamp of the identification result is larger than the time stamp of the completion of playing the command word and smaller than the time stamp of the second reminding message, the test is effective, the identification result is recorded, and the next command word is continuously tested in the third step. If the condition is not met, recording that the test is invalid and is recorded as interference identification, returning to the first step of test, awakening again and testing the current command word. And if the identification result and the second reminding message are not received after overtime, recording that the test fails.

The invention mainly relates to a test device and an internet of things device to be tested, wherein the two devices are in communication connection through a serial port, a test program on the test device plays preset awakening words and command words according to configuration data, and receives feedback information from the internet of things device through the serial port, such as awakening information, recognition results, reminding information for responding to completion of voice playing, quitting awakening information and the like. And analyzing the messages to determine an effective recognition result, and judging the recognition rate (namely the correct recognition rate) of the voice module of the equipment of the internet of things according to the correctness of the effective recognition result.

The Internet of things equipment monitors the awakening words and the command words played by the test program, identifies the awakening words and the command words, and then sends awakening messages, identification results, prompt messages for responding to completion of voice playing and the like to the test equipment.

In practice, in a test environment with background noise, a speech module with poor recognition capability has poor noise and test sound distinguishing capability, so that noise interference is often received, the tested recognition rate is different from the real recognition rate of the speech module, the accuracy of the tested recognition rate is low, the reference value is low, and the speech module is subjected to false evaluation. According to the invention, the timestamp is added into the interactive message, whether the preset condition is met is judged according to the timestamp, whether the identification result is an interference identification result or an effective identification result is further judged, whether the identification is correct or not can be subsequently judged according to the effective identification result, so that the interference identification result is prevented from reducing the overall identification rate, especially for the voice module with poor identification capability, the accuracy of testing the identification rate can be greatly improved, and the voice module with poor identification capability is greatly influenced by noise interference.

In a test environment with background noise, there is a problem that, for example, after the test device wakes up the voice module, the voice module recognizes interference noise and enters a response voice state, and some voice modules in this state may turn off the microphone, which may result in that the voice module cannot monitor the voice played by the test device, and the voice module cannot feed back a corresponding message, resulting in a test failure. This problem is caused by a mismatch of the two states. The invention adds the timestamp in the message and sets a plurality of interactive messages such as the awakening state message, the response voice playing completion message and the like, thereby ensuring that the interactive states of the awakening state message and the response voice playing completion message are matched, greatly reducing the occurrence of the situation that the voice playing of the test equipment cannot be monitored by the voice module, and smoothly executing the test process.

Therefore, the method and the device mainly solve the problem that the recognition rate of the voice module is inaccurate under the condition that the equipment of the Internet of things to be tested is easily interfered (for example, the voice module with low recognition capability is in a noisy test environment, and the microphone is closed due to noise interference), so that the awakening words or command words played by the test equipment cannot be monitored), and through experiments, the method and the device can improve the recognition accuracy by about 20% -50%.

The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this disclosure may be implemented in hardware, software, hardware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.

The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种语音识别方法、装置和用于语音识别的装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!