Information processing method, device and system and storage medium
By extracting audio frames from the vehicle-mounted voice interaction device, determining the ratio of signal to interference power, and eliminating low-ratio frames, the voice information is purified again, solving the problem of noise interference in speech recognition in vehicle scenarios, and reducing the misrecognition rate. Improved recognition accuracy.
Patent Information
- Application Number
- CN202310341103.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
When vehicle-mounted voice interaction equipment processes voice information in vehicle scenarios, there is noise and interference, resulting in unsatisfactory speech recognition results and a high misrecognition rate.
By extracting audio frames, the ratio of signal power to interference power is determined, frames with a ratio smaller than the preset value are eliminated, the speech information is purified again, and input into the speech activity detection model to achieve purification and reduce the misrecognition rate.
It improves the purification effect of voice information, significantly reduces the probability of misrecognition of voice information, and improves the recognition accuracy of voice interaction equipment.
Smart Images

Figure CN118737176A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech recognition technology, and in particular to a speech information processing method, device, system and storage medium. Background Art
[0002] In the in-vehicle scenario, since microphones are installed at different seats, different microphones not only collect the voices of their own seats, but also the voices of other seats. Therefore, the voices received during the in-vehicle voice interaction process inevitably contain noise and interference, which will affect the voice recognition results.
[0003] In the prior art, the front end performs noise reduction processing on the voice information before the voice enters the voice activity detection model, that is, the voice received by the in-vehicle voice interaction device is already purified. Although the voice received by the in-vehicle voice interaction device has been purified by the front end, the voice purification effect after the front end processing is not ideal, and when the voice interaction device recognizes the voice information, there is still a high possibility of misrecognition. Summary of the invention
[0004] The present application provides a voice information processing method, device, system and storage medium to improve the voice purification effect and reduce the probability of misrecognition of voice information.
[0005] The present application provides a method for processing speech information, comprising:
[0006] Extracting the audio frame corresponding to the received voice information;
[0007] Determining a ratio of signal power to interference power for each audio frame;
[0008] The audio frames whose ratio of signal power to interference power is less than a preset ratio are removed from the audio frames, wherein the voice information formed by the remaining audio frames after removing the audio frames whose ratio of power to interference power is less than the preset ratio is the purified voice information;
[0009] Recognize the purified voice information;
[0010] An instruction corresponding to the voice information is executed according to the recognition result of the voice information.
[0011] The beneficial effect of the present application is that it can extract the audio frames corresponding to the received voice information, determine the ratio of the signal power to the interference power of the audio frames, and then remove the audio frames in each audio frame whose ratio of the signal power to the interference power is less than the preset ratio, wherein the voice information constituted by the remaining audio frames after removing the audio frames whose ratio of the power to the interference power is less than the preset ratio is the purified voice information, so that the voice information purified by the front end can be purified again, thereby improving the purification effect of the voice information and reducing the probability of misrecognition of the voice information.
[0012] In one embodiment, determining the ratio of the signal power to the interference power of each audio frame includes:
[0013] When multiple audio signals are detected in each audio frame, the audio signal with the largest power among the multiple audio signals is determined to be a valid signal, and the remaining audio signals are interference signals;
[0014] Determine that the power of the effective signal is the signal power of each audio frame, and the power of the interference signal is the interference power of each audio frame;
[0015] A ratio of signal power to interference power is determined for each audio frame.
[0016] In one embodiment, the step of removing audio frames whose ratio of signal power to interference power of each audio frame is less than a preset ratio includes:
[0017] Each audio frame is converted into a vector according to the ratio of the signal power to the interference power of each audio frame, wherein the audio frame whose ratio of the signal power to the interference power is less than the preset ratio is converted into a 0 vector, and the audio frame whose ratio of the signal power to the interference power is greater than the preset ratio is converted into a 1 vector,
[0018] Remove the 0 vector from the vector converted from each audio frame.
[0019] In one embodiment, the step of removing audio frames whose ratio of signal power to interference power of each audio frame is less than a preset ratio includes:
[0020] Determining whether the frame length of each audio frame is the same as the voice frame length specified by the voice activity detection model;
[0021] When the frame length of each audio frame is different from the speech frame length specified by the voice activity detection model, determining a first ratio between the frame length of the audio frame and the speech frame length specified by the voice activity detection model;
[0022] determining a second ratio between an original index value of a voice activity detection model and the first ratio;
[0023] Determine a plurality of integers obtained by rounding down the second ratio as new index values;
[0024] Replacing an original index value of the voice activity detection model according to a new index value, wherein after the index value is replaced, the voice activity detection model reads an audio frame according to the new index value, and the new index value corresponds to a position of the audio frame;
[0025] Inputting each audio frame and the ratio of the signal power to the interference power of each audio frame into the voice activity detection model after replacing the index value, wherein the voice activity detection model is used to purify the audio frames by removing the audio frames whose ratio of the signal power to the interference power is less than a preset ratio;
[0026] A purified audio frame output by the voice activity detection model after the index value is replaced is obtained.
[0027] In one embodiment, executing the instruction corresponding to the voice information according to the recognition result of the voice information includes:
[0028] When the recognition result is used to characterize the voice information as a wake-up word, the current state is changed to a wake-up state, and the purified voice information is saved.
[0029] In one embodiment, executing the instruction corresponding to the voice information according to the recognition result of the voice information includes:
[0030] When the recognition result is used to characterize that the voice information is a voice command and the current state is a wake-up state, determining whether the voice command and the wake-up word received when the state is changed to the wake-up state are issued by the same person;
[0031] When the voice command and the wake-up word stored when changing to the wake-up state are issued by the same person, executing the voice command;
[0032] When the voice command and the wake-up word stored when the state is changed to the wake-up state are not issued by the same person, the voice command is refused to be executed.
[0033] In one embodiment, determining whether the voice command and the wake-up word stored when changing to the wake-up state are issued by the same person includes:
[0034] Extracting first voiceprint information of the voice command and second voiceprint information of the wake-up word received when changing to the wake-up state;
[0035] Comparing the first voiceprint information with the second voiceprint information to determine the similarity between the first voiceprint information and the second voiceprint information;
[0036] When the similarity between the first voiceprint information and the second voiceprint information is greater than a preset similarity, it is determined that the voice instruction and the wake-up word stored when the wake-up state is changed are issued by the same person.
[0037] The present application also provides a voice information processing device, comprising:
[0038] An extraction module, used to extract the audio frame corresponding to the received voice information;
[0039] A determination module, used to determine the ratio of the signal power to the interference power of each audio frame;
[0040] A removal module is used to remove the audio frames whose ratio of signal power to interference power is less than a preset ratio in each audio frame, wherein the voice information composed of the remaining audio frames after removing the audio frames whose ratio of power to interference power is less than the preset ratio is the purified voice information;
[0041] A recognition module, used to recognize the purified voice information;
[0042] The execution module is used to execute the instruction corresponding to the voice information according to the recognition result of the voice information.
[0043] In one embodiment, the determining module includes:
[0044] A first determination submodule is used to, when multiple audio signals are detected in each audio frame, determine that the audio signal with the largest power among the multiple audio signals is a valid signal, and the remaining audio signals are interference signals;
[0045] A second determination submodule, used to determine that the power of the effective signal is the signal power of each audio frame, and the power of the interference signal is the interference power of each audio frame;
[0046] The third determination submodule is used to determine the ratio of the signal power to the interference power of each audio frame.
[0047] In one embodiment, the rejection module includes:
[0048] a conversion submodule, for converting each audio frame into a vector according to the ratio of the signal power to the interference power of each audio frame, wherein the audio frame whose ratio of the signal power to the interference power is less than the preset ratio is converted into a 0 vector, and the audio frame whose ratio of the signal power to the interference power is greater than the preset ratio is converted into a 1 vector,
[0049] The elimination submodule is used to eliminate the 0 vector from the vector converted from each audio frame.
[0050] In one embodiment, the rejection module includes:
[0051] A first determination submodule, used to determine whether the frame length of each audio frame is the same as the voice frame length specified by the voice activity detection model;
[0052] a fourth determination submodule, configured to determine a first ratio between the frame length of each audio frame and the voice frame length specified by the voice activity detection model when the frame length of each audio frame is different from the voice frame length specified by the voice activity detection model;
[0053] a fifth determination submodule, configured to determine a second ratio between an original index value of a voice activity detection model and the first ratio;
[0054] a sixth determining submodule, configured to determine a plurality of integers obtained by rounding down the second ratio as new index values;
[0055] a replacement submodule, configured to replace an original index value of the voice activity detection model according to a new index value, wherein after the index value is replaced, the voice activity detection model reads an audio frame according to the new index value, and the new index value corresponds to a position of the audio frame;
[0056] An input submodule, configured to input each audio frame and the ratio of the signal power to the interference power of each audio frame into a voice activity detection model after replacing the index value, wherein the voice activity detection model is configured to purify the audio frames by removing the audio frames whose ratio of the signal power to the interference power is less than a preset ratio;
[0057] The acquisition submodule is used to obtain the purified audio frame output by the voice activity detection model after the replacement index value.
[0058] In one embodiment, the execution module includes:
[0059] The changing submodule is used to change the current state to the wake-up state and save the purified voice information when the recognition result is used to characterize the voice information as a wake-up word.
[0060] In one embodiment, the execution module includes:
[0061] A judgment submodule, for judging whether the voice command and the wake-up word received when the voice information is changed to the wake-up state are issued by the same person when the recognition result is used to characterize that the voice information is a voice command and the current state is a wake-up state;
[0062] An execution submodule, configured to execute the voice instruction when the voice instruction and the wake-up word stored when the state is changed to the wake-up state are issued by the same person;
[0063] The execution submodule is further configured to refuse to execute the voice instruction when the voice instruction and the wake-up word stored when the voice instruction is changed to the wake-up state are not issued by the same person.
[0064] In one embodiment, the judgment submodule includes:
[0065] Extracting first voiceprint information of the voice command and second voiceprint information of the wake-up word received when changing to the wake-up state;
[0066] Comparing the first voiceprint information with the second voiceprint information to determine the similarity between the first voiceprint information and the second voiceprint information;
[0067] When the similarity between the first voiceprint information and the second voiceprint information is greater than a preset similarity, it is determined that the voice instruction and the wake-up word stored when the wake-up state is changed are issued by the same person.
[0068] The present application also provides a voice information processing system, comprising:
[0069] at least one processor; and,
[0070] a memory communicatively connected to the at least one processor; wherein,
[0071] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the voice information processing method described in any of the above embodiments.
[0072] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the speech information processing system, the speech information processing system can implement the speech information processing method as described in any of the above embodiments.
[0073] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.
[0074] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:
[0076] Figure 1 This is a flow chart of a method for processing voice information in one embodiment of the present application;
[0077] Figure 2 This is a block diagram of a voice information processing device in one embodiment of the present application;
[0078] Figure 3This is a hardware structure diagram of a voice information processing system in one embodiment of the present application. DETAILED DESCRIPTION
[0079] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.
[0080] Figure 1 Flow chart of a voice information processing method in one embodiment of the present application. Figure 1 As shown, the method can be implemented as the following steps S101-S105:
[0081] In step S101, the audio frame corresponding to the received voice information is extracted;
[0082] In step S102, the ratio of the signal power to the interference power of each audio frame is determined;
[0083] In step S103, the audio frames whose ratio of signal power to interference power is less than a preset ratio are removed from the audio frames, wherein the voice information formed by the remaining audio frames after removing the audio frames whose ratio of power to interference power is less than the preset ratio is the purified voice information;
[0084] In step S104, the purified voice information is recognized;
[0085] In step S105, the instruction corresponding to the voice information is executed according to the recognition result of the voice information.
[0086] The execution subject of the present application may be a voice interaction device, which can help users solve problems through intelligent interaction of intelligent dialogue and instant question and answer. Specifically, it can be a home voice interaction device, a car-mounted voice interaction device, a voice interaction device built into a large screen in a public place, a mobile phone with a built-in voice assistant, etc. The voice interaction device can recognize and process the received voice information, so that it can realize voice interaction with the user based on the processed voice information. Extract the audio frame corresponding to the received voice information; specifically, taking the car-mounted voice interaction device as an example, in the car-mounted scenario, the voice information can be the sound received by the microphone in the car. After the microphone in the car receives the sound, the front end will reduce the noise of the sound through some existing noise reduction methods and then pass it to the execution subject of the present application, that is, the voice information received by the execution subject of the present application is already the voice information after the noise reduction of the front end, and the front end sends the voice information in the form of audio frames. Therefore, the audio frame corresponding to the voice information can be extracted. Under normal circumstances, the frame shift of the front end is usually 16ms, so the frame length of the audio frame sent by the front end is usually 16ms, that is, the voice information of 1 second is about 60 audio frames.
[0087] Determine the ratio of the signal power to the interference power of each audio frame; specifically, if multiple audio signals are detected in the audio frame, determine the audio signal with the largest power among the multiple audio signals as the valid signal, and the remaining audio signals as the interference signals; determine the power of the valid signal as the signal power of each audio frame, and the power of the interference signal as the interference power of each audio frame; determine the ratio of the signal power to the interference power of each audio frame. For example, the ratio of the signal power to the interference power of each audio frame can be determined by the following formula:
[0088]
[0089] Among them, P s is the signal power, P I is the interference power, P s and P I It can be estimated through a classic signal processing algorithm. The specific principle is to determine that the audio signal with the largest power among multiple audio signals is a valid signal; SIR is the ratio of signal power to interference power.
[0090] The audio frames whose ratio of signal power to interference power in each audio frame is less than a preset ratio are removed to purify the voice information;
[0091] Specifically, during purification, each audio frame can be converted into a vector according to the ratio of the signal power to the interference power of each audio frame, wherein the audio frame whose ratio of signal power to interference power is less than a preset ratio is converted into a 0 vector, and the audio frame whose ratio of signal power to interference power is greater than the preset ratio is converted into a 1 vector, and the 0 vector is eliminated from the vector converted from each audio frame.
[0092] In addition, when performing purification, each audio frame and the ratio of the signal power to the interference power of each audio frame may also be input into a voice activity detection model to achieve purification of the voice information, and the voice activity detection model is used to remove audio frames whose ratio of signal power to interference power is less than a preset ratio. The voice activity detection model may be a VAD (Voice Activity Detection) model. In fact, the voice activity detection model may also be implemented by converting audio frames whose ratio of signal power to interference power is less than a preset ratio into a 0 vector, converting audio frames whose ratio of signal power to interference power is greater than a preset ratio into a 1 vector, and then removing the 0 vector.
[0093] It should be noted that when the voice activity detection model is a VAD model, since the frame shift of the VAD model is 10ms, assuming that the current frame length of the received voice information is 16ms, an alignment operation is required. The specific alignment operation will be described in detail in subsequent embodiments.
[0094] The purified voice information is recognized; and the instruction corresponding to the voice information is executed according to the recognition result of the voice information.
[0095] For example, when the recognition result is used to characterize the voice information as a wake-up word, the current state is changed to the wake-up state, and the purified voice information is saved.
[0096] In a voice interaction scenario, if there are multiple users talking around, when a user wants to perform voice interaction, the voice interaction device is awakened by a wake-up word. After that, the voice interaction device may mistakenly recognize the voices of other users talking as commands, thereby affecting the voice interaction effect. In view of this, in this embodiment, when the recognition result is used to characterize that the voice information is a voice command and the current state is a wake-up state, it is determined whether the voice command and the wake-up word received when the voice state is changed to the wake-up state are issued by the same person; when the voice command and the wake-up word stored when the voice state is changed to the wake-up state are issued by the same person, the voice command is executed; when the voice command and the wake-up word stored when the voice state is changed are not issued by the same person, the voice command is refused to be executed. In this way, when a voice command is received, it can be determined whether the voice command is issued by the user who issued the wake-up word. If it is issued by the user who issued the wake-up word, the voice command is executed. If it is not issued by the user who issued the wake-up word, it is refused to be executed. That is to say, after the voice interaction device is awakened, only the voice command issued by the user who issued the wake-up word is executed, which reduces the impact of other users' voices on the voice interaction and improves the voice interaction effect.
[0097] When determining whether the voice command and the wake-up word received when the state is changed to the wake-up state are issued by the same person, the first voiceprint information of the voice command and the second voiceprint information of the wake-up word received when the state is changed to the wake-up state can be extracted; the first voiceprint information and the second voiceprint information are compared to determine the similarity between the first voiceprint information and the second voiceprint information; when the similarity between the first voiceprint information and the second voiceprint information is greater than the preset similarity, it is determined that the voice command and the wake-up word stored when the state is changed to the wake-up state are issued by the same person.
[0098] The beneficial effect of the present application is that after receiving voice information, the ratio of signal power to interference power of the audio frame will be determined, and then the audio frames in which the ratio of signal power to interference power in each audio frame is less than a preset ratio will be eliminated to achieve purification of the voice information, so that the voice information after front-end purification can be purified again, thereby improving the purification effect of the voice information and reducing the probability of misrecognition of the voice information.
[0099] In one embodiment, the above step S102 may be implemented as the following steps A1-A3:
[0100] In step A1, when multiple audio signals are detected in each audio frame, the audio signal with the largest power among the multiple audio signals is determined to be a valid signal, and the remaining audio signals are interference signals;
[0101] In step A2, the power of the effective signal is determined to be the signal power of each audio frame, and the power of the interference signal is determined to be the interference power of each audio frame;
[0102] In step A3, the ratio of the signal power to the interference power of each audio frame is determined.
[0103] In this embodiment, the ratio of the signal power to the interference power of each audio frame may be determined by the following formula:
[0104]
[0105] Among them, P s is the signal power, P I is the interference power, P s and P I It can be estimated through a classic signal processing algorithm. The specific principle is to determine that the audio signal with the largest power among multiple audio signals is a valid signal; SIR is the ratio of signal power to interference power.
[0106] In one embodiment, the above step S103 can be implemented as the following steps B1-B2:
[0107] In step B1, each audio frame is converted into a vector according to the ratio of the signal power to the interference power of each audio frame, wherein the audio frame whose ratio of the signal power to the interference power is less than the preset ratio is converted into a 0 vector, and the audio frame whose ratio of the signal power to the interference power is greater than the preset ratio is converted into a 1 vector.
[0108] In step B2, the 0 vector is removed from the vector converted from each audio frame.
[0109] In one embodiment, the above step S103 may be implemented as the following steps S1031-S1037:
[0110] In step S1031, it is determined whether the frame length of each audio frame is the same as the voice frame length specified by the voice activity detection model;
[0111] In step S1032, when the frame length of each audio frame is different from the speech frame length specified by the voice activity detection model, determining a first ratio between the frame length of the audio frame and the speech frame length specified by the voice activity detection model;
[0112] In step S1033, determining a second ratio between the original index value of the voice activity detection model and the first ratio;
[0113] In step S1034, multiple integers obtained by rounding down the second ratio are determined as new index values;
[0114] In step S1035, an original index value of the voice activity detection model is replaced according to the new index value, wherein after the index value is replaced, the voice activity detection model reads an audio frame according to the new index value, and the new index value corresponds to the position of the audio frame;
[0115] In step S1036, each audio frame and the ratio of the signal power to the interference power of each audio frame are input into the voice activity detection model after the index value is replaced, and the voice activity detection model is used to purify the audio frames by removing the audio frames whose ratio of the signal power to the interference power is less than a preset ratio;
[0116] In step S1037, a purified audio frame output by the voice activity detection model after the index value is replaced is obtained.
[0117] In this embodiment, when performing purification, each audio frame and the ratio of the signal power to the interference power of each audio frame can be input into a voice activity detection model to achieve purification of the voice information, and the voice activity detection model is used to remove audio frames whose ratio of signal power to interference power is less than a preset ratio. The voice activity detection model can be a VAD (Voice Activity Detection) model. In fact, the voice activity detection model can also be achieved by converting audio frames whose ratio of signal power to interference power is less than a preset ratio into 0 vectors, converting audio frames whose ratio of signal power to interference power is greater than a preset ratio into 1 vectors, and then removing the 0 vectors.
[0118] It should be noted that there may be a difference between the frame length of the audio frame corresponding to the voice activity detection model and the voice information received from the front end. Therefore, before the audio frame and the ratio of the audio frame signal power to the interference power are input into the voice activity detection model, alignment is required. Specifically, it is determined whether the frame length of each audio frame is the same as the voice frame length specified by the voice activity detection model; when the frame length of each audio frame is different from the voice frame length specified by the voice activity detection model, a first ratio between the frame length of the audio frame and the voice frame length specified by the voice activity detection model is determined; a second ratio between the original index value of the voice activity detection model and the first ratio is determined; a plurality of integers obtained after rounding down the second ratio are determined as new index values; and the original index value of the voice activity detection model is replaced according to the new index value, wherein after replacing the index value, the voice activity detection model reads the audio frame according to the new index value, and the new index value corresponds to the position of the audio frame.
[0119] For example, when the voice activity detection model is a VAD model, since the frame shift of the VAD model is 10ms (that is, the voice frame length specified by the voice activity detection model is 10ms, and the voice activity detection model reads audio frames in steps of 10ms), assuming that the current frame length of the received voice information is 16ms, an alignment operation is required. During alignment, the corresponding alignment rule can be injected into the VAD model. The alignment rule can be that the index value i in the VAD model is divided by 1.6 and rounded down. The index value is used to guide the VAD model to read the i-th audio frame. Under this alignment rule, when the index value is 1, the index becomes 0 after being divided by 1.6 and rounded down. When the index value is 2, the index becomes 1 after being divided by 1.6 and rounded down. When the index value is 3, the index becomes 1 after being divided by 1.6 and rounded down. When the index value is 4, the index becomes 2 after being divided by 1.6 and rounded down. And so on. It can be seen from this alignment rule that when the original index value is 1, no audio is read, and when the original index values are 2 and 3, the first audio frame will be read, when the original index is 4, the second audio frame will be read, and when the original index is 96-100, the 60th audio frame will be read.
[0120] After alignment, each audio frame and the ratio of signal power to interference power of each audio frame are input into the voice activity detection model after the index value is replaced, and the voice activity detection model is used to purify the audio frames by eliminating audio frames whose ratio of signal power to interference power is less than a preset ratio; and obtain the purified audio frames output by the voice activity detection model after the index value is replaced.
[0121] In one embodiment, the above step S105 may be implemented as the following steps:
[0122] When the recognition result is used to characterize the voice information as a wake-up word, the current state is changed to a wake-up state, and the purified voice information is saved.
[0123] In one embodiment, the above step S105 can be implemented as the following steps C1-C3:
[0124] In step C1, when the recognition result is used to indicate that the voice information is a voice command and the current state is a wake-up state, it is determined whether the voice command and the wake-up word received when the state is changed to the wake-up state are issued by the same person;
[0125] In step C2, when the voice command and the wake-up word stored when changing to the wake-up state are issued by the same person, the voice command is executed;
[0126] In step C3, when the voice instruction and the wake-up word stored when changing to the wake-up state are not issued by the same person, the voice instruction is refused to be executed.
[0127] In a voice interaction scenario, if there are multiple users talking around, when a user wants to perform voice interaction, the voice interaction device is awakened by a wake-up word. After that, the voice interaction device may mistakenly recognize the voices of other users talking as commands, thereby affecting the voice interaction effect. In view of this, in this embodiment, when the recognition result is used to characterize that the voice information is a voice command and the current state is a wake-up state, it is determined whether the voice command and the wake-up word received when the voice state is changed to the wake-up state are issued by the same person; when the voice command and the wake-up word stored when the voice state is changed to the wake-up state are issued by the same person, the voice command is executed; when the voice command and the wake-up word stored when the voice state is changed are not issued by the same person, the voice command is refused to be executed. In this way, when a voice command is received, it can be determined whether the voice command is issued by the user who issued the wake-up word. If it is issued by the user who issued the wake-up word, the voice command is executed. If it is not issued by the user who issued the wake-up word, it is refused to be executed. That is to say, after the voice interaction device is awakened, only the voice command issued by the user who issued the wake-up word is executed, which reduces the impact of other users' voices on the voice interaction and improves the voice interaction effect.
[0128] In one embodiment, the above step C1 can be implemented as the following steps D1-D3:
[0129] In step D1, extracting the first voiceprint information of the voice command and the second voiceprint information of the wake-up word received when changing to the wake-up state;
[0130] In step D2, the first voiceprint information and the second voiceprint information are compared to determine the similarity between the first voiceprint information and the second voiceprint information;
[0131] In step D3, when the similarity between the first voiceprint information and the second voiceprint information is greater than a preset similarity, it is determined that the voice command and the wake-up word stored when the voice command is changed to the wake-up state are issued by the same person.
[0132] Figure 2 A block diagram of a speech information processing device, such as Figure 2 As shown, the device may include the following modules:
[0133] Extraction module 201, used to extract the audio frame corresponding to the received voice information;
[0134] A determination module 202, configured to determine a ratio of a signal power to an interference power of each audio frame;
[0135] The elimination module 203 is used to eliminate the audio frames whose ratio of signal power to interference power is less than a preset ratio in each audio frame, wherein the voice information formed by the remaining audio frames after eliminating the audio frames whose ratio of power to interference power is less than the preset ratio is the purified voice information;
[0136] Recognition module 204, used to recognize the purified voice information;
[0137] The execution module 205 is used to execute the instruction corresponding to the voice information according to the recognition result of the voice information.
[0138] In one embodiment, the determining module includes:
[0139] A first determination submodule is used to, when multiple audio signals are detected in each audio frame, determine that the audio signal with the largest power among the multiple audio signals is a valid signal, and the remaining audio signals are interference signals;
[0140] A second determination submodule, used to determine that the power of the effective signal is the signal power of each audio frame, and the power of the interference signal is the interference power of each audio frame;
[0141] The third determination submodule is used to determine the ratio of the signal power to the interference power of each audio frame.
[0142] In one embodiment, the rejection module includes:
[0143] A first determination submodule, used to determine whether the frame length of each audio frame is the same as the voice frame length specified by the voice activity detection model;
[0144] a fourth determination submodule, configured to determine a first ratio between the frame length of each audio frame and the voice frame length specified by the voice activity detection model when the frame length of each audio frame is different from the voice frame length specified by the voice activity detection model;
[0145] a fifth determination submodule, configured to determine a second ratio between an original index value of a voice activity detection model and the first ratio;
[0146] a sixth determining submodule, configured to determine a plurality of integers obtained by rounding down the second ratio as new index values;
[0147] a replacement submodule, configured to replace an original index value of the voice activity detection model according to a new index value, wherein after the index value is replaced, the voice activity detection model reads an audio frame according to the new index value, and the new index value corresponds to a position of the audio frame;
[0148] An input submodule, configured to input each audio frame and the ratio of the signal power to the interference power of each audio frame into a voice activity detection model after replacing the index value, wherein the voice activity detection model is configured to purify the audio frames by removing the audio frames whose ratio of the signal power to the interference power is less than a preset ratio;
[0149] The acquisition submodule is used to obtain the purified audio frame output by the voice activity detection model after the replacement index value.
[0150] In one embodiment, the execution module includes:
[0151] The changing submodule is used to change the current state to the wake-up state and save the purified voice information when the recognition result is used to characterize the voice information as a wake-up word.
[0152] In one embodiment, the execution module includes:
[0153] A judgment submodule, for judging whether the voice command and the wake-up word received when the voice information is changed to the wake-up state are issued by the same person when the recognition result is used to characterize that the voice information is a voice command and the current state is a wake-up state;
[0154] An execution submodule, configured to execute the voice instruction when the voice instruction and the wake-up word stored when the state is changed to the wake-up state are issued by the same person;
[0155] The execution submodule is further configured to refuse to execute the voice instruction when the voice instruction and the wake-up word stored when the voice instruction is changed to the wake-up state are not issued by the same person.
[0156] In one embodiment, the judgment submodule includes:
[0157] Extracting first voiceprint information of the voice command and second voiceprint information of the wake-up word received when changing to the wake-up state;
[0158] Comparing the first voiceprint information with the second voiceprint information to determine the similarity between the first voiceprint information and the second voiceprint information;
[0159] When the similarity between the first voiceprint information and the second voiceprint information is greater than a preset similarity, it is determined that the voice instruction and the wake-up word stored when the wake-up state is changed are issued by the same person.
[0160] Figure 3 The hardware structure diagram of a voice information processing system for this application is as follows: Figure 3 As shown, including:
[0161] at least one processor 320; and,
[0162] A memory 304 in communication with the at least one processor 320; wherein,
[0163] The memory 304 stores instructions that can be executed by the at least one processor 320, and the instructions are executed by the at least one processor 320 to implement the voice information processing method recorded in any one of the above embodiments.
[0164] Reference Figure 3 The speech information processing system 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input / output (I / O) interface 312, a sensor component 314, and a communication component 316.
[0165] The processing component 302 generally controls the overall operation of the speech information processing system 300. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0166] The memory 304 is configured to store various types of data to support the operation of the speech information processing system 300. Examples of such data include instructions for any application or method operating on the speech information processing system 300, such as text, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0167] The power component 306 provides power to various components of the speech information processing system 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the vehicle control system 300.
[0168] The multimedia component 308 includes a screen that provides an output interface between the voice information processing system 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 may also include a front camera and / or a rear camera. When the voice information processing system 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0169] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the voice information processing system 300 is in an operation mode, such as an alarm mode, a recording mode, a voice recognition mode, and a voice output mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0170] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0171] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the voice information processing system 300. For example, the sensor assembly 314 may include a sound sensor. In addition, the sensor assembly 314 may detect the on / off state of the voice information processing system 300, the relative positioning of components, such as the display and keypad of the voice information processing system 300, and the sensor assembly 314 may also detect the running state of the voice information processing system 300 or a component of the voice information processing system 300, the orientation or acceleration / deceleration of the voice information processing system 300, and the temperature change of the voice information processing system 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a material stacking thickness sensor, or a temperature sensor.
[0172] The communication component 316 is configured to enable the voice information processing system 300 to provide the ability to communicate with other devices and cloud platforms in a wired or wireless manner. The voice information processing system 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0173] In an exemplary embodiment, the speech information processing system 300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the speech information processing method described in any of the above embodiments.
[0174] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the speech information processing system, the speech information processing system can implement the speech information processing method as described in any of the above embodiments.
[0175] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0176] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0177] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0179] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for processing speech information, characterized in that: include: Extracting the audio frame corresponding to the received voice information; determining a ratio of a signal power to an interference power for each audio frame; The audio frames whose ratio of signal power to interference power is less than a preset ratio are removed from the audio frames, wherein the voice information formed by the remaining audio frames after removing the audio frames whose ratio of power to interference power is less than the preset ratio is the purified voice information; Recognize the purified voice information; An instruction corresponding to the voice information is executed according to the recognition result of the voice information.
2. The method according to claim 1, characterized in that Determining the ratio of the signal power to the interference power of each audio frame includes: When multiple audio signals are detected in each audio frame, the audio signal with the largest power among the multiple audio signals is determined to be a valid signal, and the remaining audio signals are interference signals; Determine that the power of the effective signal is the signal power of each audio frame, and the power of the interference signal is the interference power of each audio frame; A ratio of signal power to interference power is determined for each audio frame.
3. The method according to claim 1, characterized in that The step of removing the audio frames whose ratio of signal power to interference power is less than a preset ratio comprises: Each audio frame is converted into a vector according to the ratio of the signal power to the interference power of each audio frame, wherein the audio frame whose ratio of the signal power to the interference power is less than the preset ratio is converted into a 0 vector, and the audio frame whose ratio of the signal power to the interference power is greater than the preset ratio is converted into a 1 vector, Remove the 0 vector from the vector converted from each audio frame.
4. The method according to claim 1, characterized in that The step of removing the audio frames whose ratio of signal power to interference power is less than a preset ratio comprises: Determining whether the frame length of each audio frame is the same as the voice frame length specified by the voice activity detection model; When the frame length of each audio frame is different from the speech frame length specified by the voice activity detection model, determining a first ratio between the frame length of the audio frame and the speech frame length specified by the voice activity detection model; determining a second ratio between an original index value of a voice activity detection model and the first ratio; Determine a plurality of integers obtained by rounding down the second ratio as new index values; Replacing an original index value of the voice activity detection model according to a new index value, wherein after the index value is replaced, the voice activity detection model reads an audio frame according to the new index value, and the new index value corresponds to a position of the audio frame; Inputting each audio frame and the ratio of the signal power to the interference power of each audio frame into the voice activity detection model after replacing the index value, wherein the voice activity detection model is used to purify the audio frames by removing the audio frames whose ratio of the signal power to the interference power is less than a preset ratio; A purified audio frame output by the voice activity detection model after the index value is replaced is obtained.
5. The method according to claim 1, characterized in that The executing the instruction corresponding to the voice information according to the recognition result of the voice information includes: When the recognition result is used to characterize the voice information as a wake-up word, the current state is changed to a wake-up state, and the purified voice information is saved.
6. The method according to claim 1, characterized in that The executing the instruction corresponding to the voice information according to the recognition result of the voice information includes: When the recognition result is used to characterize that the voice information is a voice command and the current state is a wake-up state, determining whether the voice command and the wake-up word received when the state is changed to the wake-up state are issued by the same person; When the voice command and the wake-up word stored when changing to the wake-up state are issued by the same person, executing the voice command; When the voice command and the wake-up word stored when the state is changed to the wake-up state are not issued by the same person, the voice command is refused to be executed.
7. The method according to claim 6, characterized in that The determining whether the voice command and the wake-up word stored when the voice command is changed to the wake-up state are issued by the same person includes: Extracting first voiceprint information of the voice command and second voiceprint information of the wake-up word received when changing to the wake-up state; Comparing the first voiceprint information with the second voiceprint information to determine the similarity between the first voiceprint information and the second voiceprint information; When the similarity between the first voiceprint information and the second voiceprint information is greater than a preset similarity, it is determined that the voice instruction and the wake-up word stored when the wake-up state is changed are issued by the same person.
8. A voice information processing device, characterized in that: include: An extraction module, used to extract the audio frame corresponding to the received voice information; A determination module, used to determine the ratio of the signal power to the interference power of each audio frame; A removal module is used to remove the audio frames whose ratio of signal power to interference power is less than a preset ratio in each audio frame, wherein the voice information composed of the remaining audio frames after removing the audio frames whose ratio of power to interference power is less than the preset ratio is the purified voice information; A recognition module, used to recognize the purified voice information; The execution module is used to execute the instruction corresponding to the voice information according to the recognition result of the voice information.
9. A voice information processing system, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the voice information processing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor corresponding to the speech information processing system, the speech information processing system can implement the speech information processing method as described in any one of claims 1 to 7.
