A method and device for speech enhancement
By identifying and analyzing sounds, and combining attribute information for targeted enhancement, the problem of inaccurate voice capture in complex sound environments in the existing technology is solved, the intelligent interaction experience is improved, and adaptation to the environment is achieved.
Patent Information
- Application Number
- CN201910774538.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-21
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-08-21
AI Technical Summary
Existing speech enhancement algorithms cannot accurately capture user voice commands in complex sound environments, resulting in poor intelligent interaction experience and inability to adapt to the environment.
By identifying and analyzing the collected sounds, the user's voice is separated, and the attribute information of the sound is combined for targeted enhancement. Voiceprint recognition and clustering technology are used to update the sound event recognition model, filter useless sounds, and adapt to environmental changes.
It achieves accurate capture of user voice commands in complex sound environments, improves the intelligent interactive experience, and enhances the adaptive capability and stability of the speech enhancement algorithm.
Smart Images

Figure CN112420063B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a speech enhancement method and device. Background Art
[0002] At present, traditional voice enhancement algorithms use the same set of voice enhancement algorithms for all input sounds in different environments, and perform the same enhancement on any input sound. For example, when the sounds received by a smart speaker include human voices, TV sounds, dog barking, water sounds, and other sounds, the existing voice enhancement algorithm will perform the same enhancement on all sounds, which may cause the smart speaker to fail to accurately understand the user's commands, resulting in the smart speaker not outputting voice interaction, or the voice interaction output is not accurate, resulting in a poor user experience of intelligent interaction. Therefore, the existing voice enhancement algorithm cannot adapt to the environment in a scene with a more complex sound environment, and the user experience of intelligent interaction is poor. Summary of the invention
[0003] The embodiments of the present application provide a speech enhancement method and device, which can accurately capture the voice of a target user from a complex sound environment in a scene with a relatively complex sound environment, thereby improving the user's intelligent interaction experience.
[0004] In the first aspect of the embodiment of the present application, a method for speech enhancement is provided, the method comprising: an electronic device collects a first sound, the first sound includes at least one of a second sound and a background sound; the electronic device recognizes the first sound; when the first sound contains the second sound, the electronic device performs a sound analysis on the second sound to obtain a third sound; the electronic device processes the third sound. Based on this scheme, by recognizing the collected first sound, and when the second sound exists in the first sound, the second sound (human voice) is separated from the first sound, and the third sound (user voice interaction command) is extracted from the second sound, so that the user voice interaction command is processed, and the obtained voice interaction output is relatively accurate, so that the voice interaction can be completed accurately, and the user's intelligent interaction experience is improved. Moreover, when the present application extracts the user voice interaction command from a complex sound environment, the user voice interaction command (third sound) is obtained by recognizing and analyzing the sound, and combining the attribute information of the sound. Therefore, the speech enhancement method does not perform the same enhancement on all input sounds, but performs targeted enhancement in combination with the attribute information of the currently collected sound, so it can adapt to the complex sound environment and improve the user's intelligent interaction experience in the complex sound environment.
[0005] In conjunction with the first aspect, in a possible implementation, the electronic device recognizes a first sound, including: the electronic device performs sound event recognition on the first sound according to a sound event recognition model to obtain sound category information of the first sound. Based on this solution, by recognizing the first sound, the sound category information of the first sound can be obtained, so that the second sound can be extracted from the first sound according to the sound category information of the first sound.
[0006] In combination with the first aspect or any possible implementation of the first aspect, in another possible implementation, the electronic device performs sound analysis on the second sound to obtain a third sound, including: the electronic device separates the second sound from the first sound according to the sound category information of the first sound; the electronic device analyzes the sound attribute information of the second sound; wherein the sound attribute information includes: one or more of sound orientation information, voiceprint information, sound time information, and sound decibel information; the electronic device obtains the third sound according to the sound attribute information of the second sound. Based on this solution, by separating the second sound from the first sound and performing attribute analysis on the second sound, it is possible to extract sound from multiple human voices according to the attribute information of the second sound, obtain clean user voice interaction commands, and achieve targeted enhancement.
[0007] In combination with the first aspect or any possible implementation of the first aspect, in another possible implementation, the voiceprint information of the third sound matches the voiceprint information of the registered user. Based on this solution, the sound matching the voiceprint information of the registered user can be determined as the third sound through the voiceprint information.
[0008] In combination with the first aspect or any possible implementation of the first aspect, in another possible implementation, the method further includes: the electronic device clusters the fourth sound to obtain new sound category information; the fourth sound is a sound in the first sound for which the sound category information is not recognized according to the sound event recognition model; according to the new sound category information, the sound event recognition model is updated to obtain an updated sound event recognition model. Based on this solution, the sounds not recognized by the sound event recognition model can be clustered, and a new sound event recognition model can be trained, that is, the electronic device can self-learn the sounds that often appear in the environment, update the sound event recognition model, and adapt to the environment, thereby improving the user's interactive experience. Moreover, the stability and robustness of the sound event recognition model will become more stable as the user's usage time increases, and the effect of getting better with use can be achieved.
[0009] In combination with the first aspect or any possible implementation of the first aspect, in another possible implementation, the method further includes: the electronic device obtains the sound direction information of the first sound; obtains the direction information of useless sound according to the sound direction information of the first sound and the sound category information of the first sound; the electronic device filters the sound from the direction according to the direction information of the useless sound. Based on this solution, by learning the direction information of various sounds and combining it with the sound category information, the direction of useless sounds that often appear in specific scenarios can be obtained, thereby better assisting sound separation.
[0010] In combination with the first aspect or any possible implementation of the first aspect, in another possible implementation, the method further includes: obtaining the voice interaction information of the third sound; registering the voiceprint of the third sound without a registered voiceprint in the interactive voice information of the third sound. Based on this solution, by collecting user interactive voices with good interactive feedback on a daily basis, combined with voice recognition and text-independent voiceprint registration, the electronic device can learn the voiceprint information by itself and register it. Therefore, the voice corresponding to the voiceprint information can be strengthened in the intelligent interaction, improving the intelligent interaction experience.
[0011] In combination with the first aspect or any possible implementation of the first aspect, in another possible implementation, the method further includes: the electronic device outputting interaction information according to the sound attribute information of the third sound. The interaction information may be voice interaction information or a control signal. Based on this solution, the electronic device may output corresponding interaction information in combination with the position information, voiceprint information, time information, age information, etc. of the third sound.
[0012] According to a second aspect of an embodiment of the present application, a speech enhancement device is provided, the device comprising: a processor for identifying a first sound, the first sound being collected by a speech collection device, the first sound including at least one of a second sound and a background sound; when the first sound contains the second sound, the processor performs sound analysis on the second sound to obtain a third sound; and the processor processes the third sound.
[0013] In combination with the second aspect, in a possible implementation, the upper processor is further used to perform sound event recognition on the first sound according to the sound event recognition model to obtain sound category information of the first sound.
[0014] In combination with the second aspect or any possible implementation of the second aspect, in another possible implementation, the processor is further used to: separate the second sound from the first sound based on the sound category information of the first sound; analyze the sound attribute information of the second sound; wherein the sound attribute information includes: one or more of sound orientation information, voiceprint information, sound time information, and sound decibel information; and obtain the third sound based on the sound attribute information of the second sound.
[0015] In combination with the second aspect or any possible implementation manner of the second aspect, in another possible implementation manner, the voiceprint information of the third sound matches the voiceprint information of a registered user.
[0016] In combination with the second aspect or any possible implementation of the second aspect, in another possible implementation, the above-mentioned processor is also used to: cluster the fourth sound to obtain new sound category information; the fourth sound is the sound in the above-mentioned first sound, whose sound category information is not recognized according to the sound event recognition model; according to the new sound category information, update the above-mentioned sound event recognition model to obtain the updated sound event recognition model.
[0017] In combination with the second aspect or any possible implementation of the second aspect, in another possible implementation, the processor is further used to: obtain sound direction information of the first sound; obtain direction information of useless sound based on the sound direction information of the first sound and the sound category information of the first sound; and filter the sound from the direction based on the direction information of the useless sound.
[0018] In combination with the second aspect or any possible implementation of the second aspect, in another possible implementation, the processor is further used to: obtain interactive voice information of the third sound; and register the voiceprint of the third sound without registered voiceprint in the interactive voice information of the third sound.
[0019] In combination with the second aspect or any possible implementation manner of the second aspect, in another possible implementation manner, the processor is further used to: output interaction information according to sound attribute information of the third sound.
[0020] In a third aspect of the embodiments of the present application, the embodiments of the present application provide an electronic device, which can implement the speech enhancement method described in the first aspect, and can implement the above method through software, hardware, or by executing corresponding software through hardware. In one possible design, the electronic device may include a processor and a memory. The processor is configured to support the electronic device to perform the corresponding functions in the above-mentioned first aspect or second aspect method. The memory is used to couple with the processor, which stores the necessary program instructions and data of the electronic device.
[0021] According to a fourth aspect of the embodiments of the present application, an embodiment of the present application provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the speech enhancement method as described in any of the above aspects and possible designs thereof.
[0022] According to a fifth aspect of the embodiments of the present application, the embodiments of the present application provide a computer program product, which, when executed on a computer, enables the computer to execute the speech enhancement method as described in any one of the above aspects and possible designs thereof.
[0023] The description of the effects of the above-mentioned second aspect, third aspect, fourth aspect and fifth aspect can refer to the description of the corresponding effects of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of a scene example of a sound environment provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0027] Figure 4 A schematic diagram of a system architecture adapted to a speech enhancement method provided in an embodiment of the present application;
[0028] Figure 5 A flowchart of a speech enhancement method provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of the principle of a sound localization method provided in an embodiment of the present application;
[0030] Figure 7 A flowchart of another speech enhancement method provided in an embodiment of the present application;
[0031] Figure 8 A flowchart of another speech enhancement method provided in an embodiment of the present application;
[0032] Fig. 9 A flowchart of another speech enhancement method provided in an embodiment of the present application;
[0033] Fig.10 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b and c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order. For example, the "first" in the first application and the "second" in the second application in the embodiments of the present application are only used to distinguish different application programs. The descriptions of first, second, etc. that appear in the embodiments of the present application are only used for illustration and to distinguish the described objects. There is no distinction in order, nor does it represent a special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.
[0035] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0036] First, the basic concepts in the embodiments of the present application are introduced.
[0037] Voiceprint: It is a biological feature composed of more than 100 characteristic dimensions such as wavelength, frequency and intensity. The production of human language is a complex physiological and physical process between the human body's language center and the vocal organs. Since the vocal organs of different people are different in size, shape and function, the voiceprint maps of any two people will be different. Voiceprints have the characteristics of specificity, relative stability and variability. The specificity of voiceprints means that the voiceprints of different people are different. Even if the speaker deliberately imitates the voice and tone of others, or whispers, even if the imitation is very lifelike, the voiceprint is always different. The relative stability of voiceprints means that after adulthood, a person's voiceprint can remain relatively stable for a long time. The variability of voiceprints may come from physiological, pathological, psychological, simulation, disguise, and is also related to environmental interference and other factors. Since everyone's vocal organs are not exactly the same, based on the characteristics of voiceprint specificity and relative stability, the voices of different people can be distinguished by voiceprints.
[0038] Voiceprint recognition: It is a type of biometric technology that can extract voiceprint features from the voice signal emitted by the speaker for identity recognition. Voiceprint recognition can also be called speaker recognition, which includes speaker identification and speaker confirmation. Among them, speaker identification is used to determine which person among multiple people said a certain speech; while speaker confirmation is used to confirm whether a certain speech was said by a specified person. Optionally, a deep learning algorithm can be used to extract the speaker's voiceprint features. For example, a speaker recognition system using a classic deep neural network and a speaker feature extraction system based on an end-to-end deep neural network are used to extract the speaker's voiceprint features.
[0039] Exemplarily, the electronic device may perform voiceprint registration before performing voiceprint recognition. Voiceprint registration means that the user records a voice through the sound pickup device (e.g., microphone) of the electronic device, which can be called registered voice; the device extracts the voiceprint features of the registered voice; and establishes and saves the correspondence between the voiceprint features and the user who recorded the voice. In the embodiment of the present application, the user who has performed voiceprint registration can be called a registered user. It can be understood that the above-mentioned voiceprint registration can be a voiceprint registration that is unrelated to the content of the voice recorded by the user, that is, the electronic device can extract voiceprint features from the voice recorded by the user for registration. The embodiment of the present application does not limit the specific method for extracting voiceprint features from voice information.
[0040] Exemplarily, the electronic device can support voiceprint registration of multiple users. For example, multiple users respectively record a voice through the sound pickup device of the electronic device. Exemplarily, user 1 records voice 1, user 2 records voice 2, and user 3 records voice 3. The electronic device extracts the voiceprint features of each voice segment (voice 1, voice 2, and voice 3) respectively. Furthermore, the electronic device establishes and saves the corresponding relationship between the voiceprint features of voice 1 and user 1, establishes and saves the corresponding relationship between the voiceprint features of voice 2 and user 2, and establishes and saves the corresponding relationship between the voiceprint features of voice 3 and user 3. In this way, the electronic device saves the corresponding relationship between multiple users and the voiceprint features extracted from the registered voice of the user, and these users are the registered users on the electronic device.
[0041] Exemplarily, after receiving the user's voice, the electronic device can perform voiceprint recognition. For example, after receiving the user's voice, the electronic device can extract the voiceprint features of the voice; the electronic device can also obtain the voiceprint features of the registered voices of each registered user; the electronic device compares the voiceprint features of the received user's voice with the voiceprint features of the registered voices of each registered user, and obtains whether the voiceprint features of the received user's voice match the voiceprint features of the registered voices of each registered user.
[0042] Optionally, the permissions of multiple users who have registered voiceprints in the embodiment of the present application may be different. For example, depending on the different ways in which users register voiceprints, their usage permissions may be different. If the registered voiceprint is actively registered by the user, then the user's permissions are higher. If the registered voiceprint is registered through adaptive learning, then the user's permissions are lower and cannot use the confidentiality function. The user permissions of the registered voiceprint can also be pre-set by the user, and the embodiment of the present application does not limit this.
[0043] Speech enhancement technology refers to the technology that extracts useful speech signals from speech signals containing various noises in a complex sound environment, suppresses and reduces noise interference, that is, extracts the purest original speech possible from noisy speech.
[0044] For example, the electronic device is a smart speaker, and the sound environment of the smart speaker is as follows: Figure 1 Take the scenario shown in the figure as an example. Figure 1 As shown in FIG. 1 , the smart speaker can receive a variety of sound inputs in the environment, which may include a user asking “what’s the weather like today”, a pet dog barking, a TV, a person talking, etc. A speech enhancement method converts Figure 1The four sounds in the environment shown are enhanced in the same way, so the sound input to the smart speaker includes both the user's command voice and the sound in the environment, which will cause the electronic device to be unable to correctly capture the target user's voice command, resulting in a poor user experience. Moreover, the voice enhancement algorithm cannot adapt to the environment when the electronic device is in a complex sound environment.
[0045] In order to solve the problem that the user intelligent interaction experience of the speech enhancement algorithm in the prior art is poor in a complex sound environment, the embodiment of the present application provides a speech enhancement method, which can accurately capture the target user's voice from a complex sound environment in a scene with a relatively complex sound environment, thereby improving the user's intelligent interaction experience.
[0046] The speech enhancement method adopted in the embodiment of the present application can be applied to electronic devices, which can be smart home devices such as smart speakers, smart TVs, and smart refrigerators that can perform voice interaction, or wearable electronic devices such as smart watches, smart glasses, and smart helmets that can perform voice interaction, or other forms of devices that can perform voice interaction. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device.
[0047] Please refer to Figure 2 , is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 2 As shown, the electronic device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a microphone 170B, etc. Optionally, the electronic device 100 may also include a battery 180.
[0048] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0049] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a controller, a memory, a video codec, and a digital signal processor (DSP). Different processing units may be independent devices or integrated into one or more processors.
[0050] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0051] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0052] The memory 120 is used to store instructions and data. In some embodiments, the memory 120 is a high-speed cache memory. The memory can store instructions or data that have been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory 120. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0053] The memory 120 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the memory 120. For example, in an embodiment of the present application, the processor 110 can enhance the sound by executing the instructions stored in the memory 120. Among them, the program storage area can store the operating system, at least one application required for a function (such as a sound playback function), etc. The data storage area can store data (such as audio data, etc.) created during the use of the electronic device 100, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0054] In some embodiments, the memory 120 may also be disposed in the processor 110, that is, the processor 110 includes the memory 120. This embodiment of the present application is not limited to this.
[0055] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 180, it may also power the electronic device through the power management module 150.
[0056] The power management module 150 is used to connect the battery 180, the charging management module 140 and the processor 110. The power management module 150 receives input from the battery 180 and / or the charging management module 140, and supplies power to the processor 110, the memory 120, and the wireless communication module 160. The power management module 150 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 150 can also be set in the processor 110. In other embodiments, the power management module 150 and the charging management module 140 can also be set in the same device.
[0057] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0058] The electronic device 100 can implement audio functions such as music playback, voice collection, etc. through the audio module 170, the speaker 170A, and the application processor.
[0059] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0060] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0061] Microphone 170B, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When a user interacts with an electronic device by voice, microphone 170B can receive the user's voice input. The electronic device 100 can be provided with at least one microphone 170B. In other embodiments, the electronic device 100 can be provided with two microphones 170B, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170B to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc. Optionally, the electronic device 100 can be provided with 6 microphones 170B to form a microphone array, through which the azimuth information of the sound can be analyzed.
[0062] The methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0063] It is understandable that the electronic device 100 can be divided into different functional modules when implementing the speech enhancement method provided in the embodiment of the present application. Figure 3 An electronic device 100 provided in an embodiment of the present application may include functional modules such as an audio collection module, an audio processing module, an audio recognition module, an audio synthesis module, and a voice interaction module.
[0064] The audio collection module is used to obtain audio data and is responsible for storing and forwarding the obtained audio data. For example, the function of the audio collection module can be Figure 2 The microphone 170B in the embodiment can receive a variety of sound inputs and convert them into audio data through the audio module 170; the audio collection module can obtain the audio data, store it and forward it to other modules.
[0065] The audio processing module is used to enhance the audio data obtained by the audio collection module. For example, the sound attributes of the received voice data are analyzed as well as the sound is separated and filtered. Optionally, the audio processing module may include a sound event recognition module, a sound positioning module, a voiceprint recognition module, etc. Among them, the sound event recognition module is used to identify the various sounds collected by the audio collection module and determine the category information of each sound. The sound positioning module is used to locate the various sounds collected by the audio collection module and analyze the azimuth information of each sound. The voiceprint recognition module is used to perform voiceprint recognition on the various sound data collected by the audio collection module. In an embodiment of the present application, the voiceprint recognition module can be used to extract voiceprint features from the input voice to determine whether it matches the voiceprint of a registered user.
[0066] The audio recognition module is used to perform speech recognition on the processed audio data, for example, to recognize wake-up words, recognize voice commands, etc.
[0067] The audio synthesis module is used to synthesize and play audio data. For example, the server's command can be synthesized into audio data and voice broadcasted through the speaker 170A.
[0068] The input of the voice interaction module is the voice of the target user after enhancement processing by the audio processing module. The voice interaction module is used to obtain a voice interaction output according to the voice of the target user.
[0069] Exemplarily, the functions of the audio processing module, audio recognition module, audio synthesis module, and voice interaction module can be implemented by program instructions stored in the memory 120. For example, the processor 110 can implement the function of voiceprint recognition by executing program instructions related to the audio processing module stored in the memory 120.
[0070] Exemplarily, the speech enhancement method provided in the embodiment of the present application can be applied to Figure 4 The system architecture is shown in Figure 1. Figure 4 As shown in the figure, the sound input into the intelligent voice enhancement model includes both the sound in the daily environment (for example, the sound of running water, the sound of TV, the sound of cooking, etc.) and the voice command input by the user. The intelligent voice enhancement model is used to enhance the input of multiple sounds, and its output only includes the voice command input by the user.
[0071] like Figure 4As shown, the processing process of the intelligent voice enhancement model includes sound recognition, sound attribute analysis, sound attribute analysis, and sound separation and filtering, wherein sound recognition includes the recognition of sound category information, and the user sound can be separated from the background sound in combination with the recognized sound category information. Sound attribute analysis is to perform attribute analysis such as sound positioning, time analysis, and voiceprint analysis on the separated user sound. The enhancement model can determine the voice interaction command of the target user from the user sound in combination with the attribute information of the sound, that is, the voice interaction command of the target user can be extracted from multiple human voices. It can be understood that the present application performs targeted enhancement processing on the sound in a more complex sound environment collected by the electronic device of the intelligent voice enhancement model, so as to extract the voice interaction command of the target user. Therefore, according to the clean voice interaction command of the target user, more accurate interaction information can be output to enhance the user's intelligent interaction experience.
[0072] Figure 4 The user interaction feedback in the text refers to the user's feedback on the interaction process. For example, the user inputs a voice interaction command, the electronic device feedbacks the interaction output, and the user continues to interact with the electronic device by voice; or the user outputs an interaction command, the electronic device feedbacks the voice interaction output, and the user stops the conversation, etc., all of which can be used as a judgment of the enhancement result. The user stops the conversation, which means that the enhancement result may not be very good. The user is not satisfied with the voice interaction output and stops the conversation. The user continues to request voice interaction, which means that the enhancement result is good and can meet the user's interaction needs. The above-mentioned interaction feedback can assist the intelligent enhancement model in self-learning, so that the enhancement model can better adapt to the sound environment in which it is located.
[0073] The following will take the above-mentioned electronic device as a smart speaker as an example to specifically describe the technical solution provided by the embodiment of the present application. Figure 4 ,like Figure 5 As shown, the speech enhancement method may include steps S501-S505:
[0074] S501: The electronic device collects a first sound.
[0075] The first sound includes at least one of the second sound and the background sound. The second sound may include the sound of a user speaking (human voice, referred to as human voice). The second sound may include a voice interaction command input by the user.
[0076] Exemplarily, the background sound may be the sound in the environment in which the electronic device is currently located. For example, the sound in the environment in which the electronic device is currently located may include daily environmental sounds such as pet calls, TV sounds, water running sounds, coffee machine sounds, microwave sounds, cooking sounds, and air conditioner sounds. The specific types of background sounds are not limited in the embodiments of the present application, and are merely illustrative.
[0077] like Figure 1 As shown in the figure, the environment where the smart speaker is located is Figure 1 Taking the sound environment shown in the figure as an example, the first sound may include: the second sound and the background sound. The second sound includes the sound of people talking and the voice command of the user asking "how is the weather today". The background sound includes the sound of the TV and the barking of the dog.
[0078] Exemplarily, the second sound and background sound included in the first sound may come from multiple different sound sources. For example, the sound sources of the four sounds of TV sound, dog barking, user voice command, and people talking are different from each other. Optionally, the sound features of different sound sources are different from each other.
[0079] Exemplarily, the electronic device collecting the first sound includes: a microphone array of the electronic device collecting the first sound. Optionally, the microphone array can convert the first sound collected by the microphone 170B into audio data through the audio module 170.
[0080] S502: The electronic device recognizes a first sound.
[0081] Exemplarily, the electronic device identifying the first sound includes: the electronic device performing sound event recognition on the first sound according to the sound event recognition model to obtain sound category information of the first sound. For example, the sound category information may include: human voice, television sound, air conditioner sound, dog barking, water flow sound, and other sound types.
[0082] For example, the sound event recognition model can be a neural network model obtained through a large amount of sound training, and the category information of the sound can be obtained according to the sound event recognition model. Optionally, the sound event recognition model can be stored locally in the electronic device or in the cloud, and the embodiments of the present application are not limited to this.
[0083] Optionally, the specific method for obtaining the category information of the first sound can be obtained by using a deep learning algorithm, and the deep learning algorithm can be a convolutional neural network, a fully connected neural network, a long short-term memory network, a gated recurrent unit, or other algorithms. The embodiment of the present application does not limit the specific deep learning algorithm for obtaining the sound category information, which is only an exemplary description. The present embodiment can obtain the sound category information of the first sound collected by the electronic device through a deep learning algorithm.
[0084] For example, combined with Figure 1 As shown, the electronic device can determine based on the convolutional neural network algorithm Figure 1 The category information of the first sound collected by the smart speaker includes human voice, dog barking and TV sound.
[0085] Exemplarily, in step S502, the electronic device identifies the first sound and obtains sound category information of the first sound. When the electronic device determines that the second sound exists in the first sound, that is, the first sound includes a human voice, the method further includes step S503.
[0086] S503: When the second sound exists in the first sound, the electronic device performs sound analysis on the second sound to obtain a third sound.
[0087] The third sound is a user voice interaction command. Optionally, the second sound may include the third sound, or may be the same as the third sound. For example, when the second sound includes only one human voice, the second sound may be the same as the third sound, that is, the second sound may be a user voice interaction command; when the second sound includes at least two human voices, the second sound includes the third sound, and the electronic device may extract the third sound from the second sound, that is, the electronic device may extract the user voice interaction command from multiple human voices.
[0088] Exemplarily, in the above step S503, when the second sound exists in the first sound, the electronic device performs sound analysis on the second sound to obtain the third sound, which may include steps S5031-S5033.
[0089] S5031. The electronic device separates the second sound from the first sound according to the sound category information of the first sound.
[0090] Exemplarily, the electronic device can separate the second sound from the first sound in combination with the sound category information. That is, when the second sound exists in the first sound, the electronic device can separate the second sound from the background sound in the first sound, filter out the background sound, and separate the human voice.
[0091] Optionally, the electronic device may combine the sound category information and use a sound source separation algorithm to separate the human voice from the background sound in the daily environment, filter out the background sound in the daily environment, and retain only the human voice. For example, the first sound collected by the electronic device includes sounds of people talking, user voice interaction commands, TV sounds, dog barking, etc. The electronic device may combine the sound category information to separate the TV sounds and dog barking sounds from the sounds of people talking and user voice interaction commands, and filter out the TV sounds and dog barking sounds, and retain only the sounds of people talking and user voice interaction commands.
[0092] Exemplarily, the above-mentioned sound source separation algorithm can use a traditional separation algorithm for sound separation, or it can use a deep learning algorithm for sound separation. For example, a traditional matrix decomposition algorithm or a singular value decomposition algorithm can be used, or a deep learning algorithm such as a deep neural network, a convolutional neural network, and a fully connected neural network can be used to achieve sound separation. The embodiment of the present application does not limit the specific algorithm for sound separation, which is only an exemplary description. The embodiment of the present application performs sound separation based on a deep learning algorithm, which enables an electronic device to separate human voices from background sounds, thereby extracting human voices from noisy daily environmental sounds.
[0093] S5032. The electronic device analyzes sound attribute information of the second sound.
[0094] Among them, the sound attribute information includes: one or more of sound location information, voiceprint information, sound time information, and sound decibel information. Exemplarily, the sound location information refers to the location information of the sound source. Voiceprint information includes voiceprint features, which are extracted from the voice information emitted by the speaker, and the voiceprint features can be used for identity recognition. Sound time information refers to the time period when a certain type of sound often appears. The embodiments of the present application do not limit the specific content of the attribute information of the sound, and are only illustrative here.
[0095] Exemplarily, the above-mentioned electronic device analyzing the sound attribute information of the second sound may include: the electronic device obtains the sound orientation information of different sound sources in the second sound through a sound positioning module. For example, taking the example that the microphone array of the electronic device includes 6 microphones, the electronic device can collect sound through the 6 microphones and analyze the sound orientation information of different human voices. The embodiment of the present application does not limit the specific method of how the microphone array analyzes the sound orientation information, and reference may be made to the sound positioning method based on the microphone array in the prior art. For example, a sound positioning method based on beamforming, or a sound positioning method based on high-resolution spectral estimation, or a sound positioning method based on sonar delay difference, etc.
[0096] For example, let's take the method of determining the direction information of sound based on the time delay difference of sound arrival by electronic devices as an example. The microphone array of the smart speaker can first estimate the time difference of sound arrival based on the sound source, and obtain the sound delay between the array elements in the microphone array from it; then use the obtained time difference of sound arrival combined with the known spatial position of the microphone array to further determine the location of the sound source. For example, Figure 6 As shown in the figure, solid dots 1, 2, and 3 represent the three microphones 170B of the smart speaker. The time delay from the sound source to microphone 1 and microphone 3 is a constant, and based on this constant, we can draw Figure 6 The black bold hyperbola in the figure; the time delay from the sound source to microphone 2 and microphone 3 is also a constant. Based on this constant, we can draw Figure 6The intersection of these two hyperbolas is the location of the sound source. Figure 6 Furthermore, the smart speaker can determine the azimuth information of the sound source according to the spatial position of the microphone array.
[0097] Exemplarily, the electronic device analyzing the sound attribute information of the second sound may also include: the electronic device separates different human voices in the second sound according to a blind source separation algorithm, extracts voiceprint features of the different human voices, and obtains the voiceprint features of each human voice. Since the voiceprint features of different sound sources are different, the electronic device can distinguish different human voices according to the voiceprint features.
[0098] Exemplarily, the electronic device analyzing the sound attribute information of the second sound may further include: the electronic device analyzing the decibel level of the second sound.
[0099] S5033. The electronic device obtains a third sound according to the sound attribute information of the second sound.
[0100] Exemplarily, the electronic device may extract a third sound (user voice interaction command) from at least one human voice based on the attribute information of the sound.
[0101] Exemplarily, the voiceprint information of the third sound matches the voiceprint information of a registered user in the electronic device. Optionally, the voiceprint of the registered user may be registered by the user autonomously, or may be registered by the electronic device through adaptive learning, which is not limited in the present embodiment of the application. Optionally, the voiceprint information may be a voiceprint feature.
[0102] In one implementation, the electronic device obtains the third sound based on the sound attribute information of the second sound, which may include: the electronic device separates different human voices in the second sound according to the blind source separation algorithm, extracts voiceprint features from the different human voices, matches the voiceprint features of the different human voices with the voiceprint features of the registered user, and if matched, determines the matched human voice as the third sound. Optionally, the electronic device may use a convolutional neural network algorithm to extract voiceprint features from the human voice. The blind source separation algorithm may use a traditional separation algorithm for sound separation, or may use a deep learning algorithm for sound separation. For example, a traditional matrix decomposition algorithm or a singular value decomposition algorithm, etc., may be used, or a deep neural network, a convolutional neural network, a fully connected neural network, or other deep learning algorithms may be used to achieve sound separation. The embodiment of the present application does not limit the specific algorithm for sound separation, which is only an exemplary description. The embodiment of the present application performs sound separation based on a deep learning algorithm, and can separate the multiple human voices when the second sound includes multiple human voices.
[0103] Exemplarily, the matching of the above-mentioned voiceprint features with the voiceprint features of a registered user may mean that the matching degree between the voiceprint features of a human voice and the voiceprint features of a registered user exceeds a preset threshold, or that the matching degree between the voiceprint features of a human voice and the voiceprint features of a registered user is the highest. For example, the confidence level may be used to represent the matching degree between the input speech and the voiceprint features of a registered user, and the higher the confidence level, the higher the matching degree between the input speech and the voiceprint features of the registered user's voice. It is understandable that the confidence level may also be described as a confidence probability, a confidence score, a credible score, etc., which is a value used to characterize the degree of credibility of the voiceprint recognition result. The embodiments of the present application do not limit this, and the confidence level is used for description in the embodiments of the present application.
[0104] For example, if the confidence that the input voice belongs to user 1 is higher than the confidence that the input voice belongs to other registered users, then it is determined that the input voice matches user 1. For another example, a confidence threshold can be set. If the confidence that the input voice belongs to each registered user is less than or equal to the confidence threshold, then it is determined that the input voice does not belong to any registered user. If the confidence that the input voice belongs to a registered user is greater than or equal to the confidence threshold, then it is determined that the input voice is input to the registered user. Exemplarily, if the confidence threshold is 0.5, the confidence that the input voice belongs to user 1 is 0.9, and the confidence that the input voice belongs to user 2 is 0.4, then it can be determined that the input voice belongs to user 1, that is, the input voice matches the voiceprint of user 1.
[0105] For example, the first sounds collected by the electronic device include sounds of people talking, user voice interaction commands, TV sounds, dog barking and other sounds. The electronic device can separate the TV sounds and dog barking sounds from the sounds of people talking and user voice interaction commands based on the sound category information, and filter out the TV sounds and dog barking sounds, while retaining the sounds of people talking and user voice interaction commands. The electronic device then separates the sounds of people talking and user voice interaction commands based on the blind source separation algorithm, extracts the voiceprint features of the sounds of people talking and user voice interaction commands respectively, and determines whether they match the voiceprint features of registered users. If they match, the electronic device determines the matched human voice as the third sound.
[0106] For example, Figure 1 Taking the sound environment shown as an example, the smart speaker can separate the human voice from the sounds of the daily environment from sounds such as human voice, TV sound, and dog barking according to the sound category information, and filter out the dog barking and TV sound, and separate the different human voices (the sounds of people talking and user voice interaction commands) using the blind source separation algorithm, and extract the voiceprint features of the people talking and the user voice interaction commands, and match them with the voiceprint features of the registered users respectively. If the voiceprint features of the user's voice asking "How is the weather today?" match the voiceprint of the registered user, the electronic device can determine the voice of the user asking "How is the weather today?" as the third sound.
[0107] Optionally, when the first sound collected by the electronic device includes multiple human voices, and the voiceprint features of at least two of the multiple human voices match the voiceprint features of the registered user, the electronic device can determine the human voice with a louder decibel as the third sound based on the decibel size of the at least two human voices. Optionally, when the first sound collected by the electronic device includes multiple human voices, and the voiceprint features of at least two of the multiple human voices match the voiceprint features of the registered user, the electronic device can also determine the human voice closer to the electronic device as the third sound based on the location information of the at least two human voices from the electronic device.
[0108] In another implementation, the electronic device obtains the third sound based on the sound attribute information of the second sound, and may also include: the electronic device obtains the third sound from the second sound based on information such as the direction information or energy characteristics or sound characteristics of the second sound.
[0109] For example, the electronic device may determine the third sound from the second sound based on the position information of different human voices in the second sound. Figure 1 Taking the sound environment shown as an example, the smart speaker can filter out the TV sound and dog barking sound from the TV sound, dog barking sound, people talking sound and user voice interaction command, separate the people talking sound and the user voice interaction command, and then combine the people talking sound and the direction information of the user voice interaction command. If the direction information of the user voice interaction command is located on the sofa, and the direction information of the people talking sound is located on the dining table, the smart speaker can determine the user voice interaction command located on the sofa as the third sound. For another example, the direction information of the user voice interaction command and the people talking sound are both located on the sofa, but the decibel size of the user voice interaction command is much greater than the people talking sound, then the smart speaker can also determine the user voice interaction command as the voice of the target user.
[0110] Exemplarily, the electronic device may also use a deep learning algorithm to determine a third sound from different human voices included in the second sound according to the energy characteristics or sound characteristics of the sound. For example, a neural network model may be trained through a large number of user conversations at different positions relative to the electronic device and user voice interaction commands, and the neural network model is used to determine the user voice interaction commands. Based on the trained neural network model, the electronic device may determine the user voice interaction command as the third sound from the character conversation sounds and the user voice interaction commands according to the sound characteristics or energy characteristics. For example, the electronic device may determine the human voice facing the electronic device as the third sound based on whether the different human voices in the second sound are facing the electronic device or facing away from the electronic device.
[0111] In another implementation, the electronic device obtains the third sound according to the sound attribute information of the second sound, and may also include: the electronic device determines a human voice with a higher decibel in the second sound as the third sound according to the decibel size of the second sound.
[0112] It can be understood that the embodiment of the present application can extract user voice interaction commands from multiple human voices by analyzing the sound attributes of the second sound and combining it with a separation algorithm.
[0113] S504: The electronic device processes the third sound.
[0114] For example, Figure 1 As shown, smart speakers can Figure 1 The user voice interaction command "How is the weather today" is extracted from the sound environment shown, and "How is the weather today" is input into the voice interaction module for processing. It can be understood that since the sound input into the voice interaction module in the embodiment of the present application is a clean user voice interaction command, the voice interaction module can obtain a relatively accurate voice interaction output according to the voice interaction command.
[0115] S505: The electronic device outputs interaction information according to the third sound.
[0116] Exemplarily, the interactive information output by the electronic device may be voice interactive information or a control signal. For example, if the user's voice interactive command is "How is the weather today?", the electronic device may output voice interactive information "Today's weather is sunny, the minimum temperature is 25 degrees, and the maximum temperature is 35 degrees." For another example, if the user's voice interactive command is "Turn on the living room light," the electronic device may output a control signal to turn on the living room light.
[0117] Optionally, the electronic device can also output interactive information in combination with the sound attribute information of the third sound. Exemplarily, the electronic device can output interactive information in combination with the position information and / or time information of the third sound. For example, the electronic device can output a control signal for turning on the kitchen light based on the position information of the third sound, if the third sound is "turn on the light", and the position information of the third sound is in the kitchen. For another example, the electronic device can output a control signal for turning on the kitchen light based on the position information of the third sound, if the third sound is "turn on the TV", and the electronic device can output a control signal for turning on the TV and adjust the volume of the TV after a large number of learning processes, based on the time information of the third sound, if the third sound is "turn on the living room light", and the electronic device can output a control signal for turning on the living room light based on the time information of the third sound, and turn on the corresponding brightness according to the time information.
[0118] Exemplarily, the electronic device can also combine the voiceprint features of the third sound to output the interaction information. For example, when the voice interaction command of the user (child at home) is "turn on the light", the electronic device can combine the voiceprint features of the user and the sound time information, and after a large number of learning processes, output a control signal to turn on the second bedroom light. For another example, when the mother inputs the voice interaction command "turn on the light", the electronic device can combine the voiceprint features of the user and the sound time information to output a control signal to turn on the kitchen light.
[0119] Exemplarily, the electronic device may also output interaction information in combination with the age information of the third sound. For example, when a child inputs a user voice interaction command of "turn on the TV", the electronic device may recognize the age information of the voice interaction command as a child, and play cartoons or children's programs according to the recognized age information. For another example, when a grandfather inputs a user voice interaction command of "turn on the TV", the electronic device may recognize the age information of the voice interaction command as an elderly person, and play the last watched TV program according to the recognized age information.
[0120] Optionally, different voiceprints may have different user permissions in the embodiments of the present application. For example, when a child at home does not have permission to turn on the TV, the third sound is a voice interaction command "turn on the TV", and the voiceprint feature of the third sound matches the voiceprint feature of the registered user, but because the user of the voiceprint does not have permission to turn on the TV, the interaction information output by the electronic device may be "You do not have permission to turn on the TV" or other voice prompt information.
[0121] Optionally, when the user registers voiceprints in different ways, the user's permissions may be different. For example, when a user registers in an adaptive learning manner, the user's permissions are lower, and when the user actively registers voiceprints, the user's permissions are higher and can use high confidentiality functions. The user permissions for the above different voiceprints can also be pre-set by the user. The embodiments of the present application do not limit this.
[0122] It can be understood that in this embodiment, the electronic device extracts clean user voice interaction commands (third sound) from a complex sound environment (first sound), processes the user voice interaction commands, and outputs more accurate interaction information, so that the user has a better intelligent interaction experience.
[0123] This embodiment provides a voice enhancement method, which collects a first sound through an electronic device; the electronic device recognizes the first sound; when the first sound exists in a second sound, the electronic device performs sound analysis on the second sound to obtain a third sound; the electronic device processes the third sound; and the electronic device outputs interaction information. This embodiment can separate the human voice from a variety of sounds including background sounds based on a deep learning algorithm, and extract a clean user voice interaction command from the human voice, thereby processing the user voice interaction command, and the obtained voice interaction output is relatively accurate, so that the voice interaction can be completed accurately, and the user's intelligent interaction experience is improved. Moreover, when extracting the user voice interaction command from a complex sound environment, the application obtains the user voice interaction command (third sound) by identifying and analyzing the sound and combining the attribute information of the sound. Therefore, the voice enhancement method does not perform the same enhancement on all input sounds, but performs targeted enhancement in combination with the attribute information of the currently collected sound, so it can adapt to the complex sound environment and improve the user's intelligent interaction experience in the complex sound environment.
[0124] The present application also provides a method for speech enhancement. Figure 7 As shown, steps S701-S702 may be further included after the above step S502.
[0125] S701: The electronic device clusters the fourth sound to obtain new sound category information.
[0126] The fourth sound is a sound of the first sound for which no sound category information is recognized according to the sound event recognition model. Optionally, the electronic device may store the unrecognized fourth sound in a memory.
[0127] For example, when an electronic device leaves the factory, the sound event recognition model can only recognize a limited number of sound types. For example, the sound event recognition model of the electronic device can recognize relatively common sounds. For example, human voices, water sounds, dog barking, TV sounds, etc., but cannot recognize the sound of a coffee machine grinding beans, the sound of an oven, and the sound of a washing machine. The electronic device can collect and store sounds such as the sound of a coffee machine grinding beans, the sound of an oven, and the sound of a washing machine that are not recognized by the sound event recognition model.
[0128] Optionally, the fourth sound may be a frequently occurring unrecognized sound, and the electronic device may collect a large number of fourth sounds.
[0129] Exemplarily, the electronic device can cluster a large number of fourth sounds through unsupervised learning, discover the intrinsic properties and laws of the data through learning, and obtain new sound category information. For example, the electronic device can obtain new sound category information through cluster analysis, and the cluster analysis method may include a comprehensive hierarchical clustering algorithm, a density-based clustering algorithm, expectation-maximization (EM), fuzzy clustering, K-means algorithm, K-means clustering, etc. The embodiments of the present application do not limit the specific cluster analysis method used by the electronic device, and this is only an exemplary description.
[0130] For example, the electronic device can obtain a new sound category information through a large amount of coffee machine grinding bean sounds collected by it through a cluster analysis algorithm, so that the next time the sound input to the electronic device includes the sound of the coffee machine grinding bean, the electronic device can identify the sound category.
[0131] S702: The electronic device updates the sound event recognition model according to the new sound category information and obtains the updated sound event recognition model.
[0132] Exemplarily, the electronic device can use the new sound category information obtained after clustering as a training sample to retrain the sound event recognition model to obtain a new sound event recognition model, and the updated new sound event recognition model is more stable and has better robustness. That is, after the electronic device obtains the new sound event recognition model, the electronic device can update the original sound event recognition model to the new sound event recognition model.
[0133] Optionally, after the electronic device updates the sound event recognition model, when the electronic device executes the speech enhancement method of steps S501-S505 again, in step S502, multiple sounds can be recognized according to the updated sound event recognition model to obtain category information of each sound. Since the updated sound event recognition model can recognize more types of sound events, the recognition effect of the updated sound event recognition model is better.
[0134] Optionally, the above steps S701-S702 may be executed after steps S503-S505, or before steps S503-S505, or simultaneously with steps S503-S505. The embodiment of the present application does not limit the order of execution.
[0135] It can be understood that the embodiment of the present application updates the sound event recognition model through new sound category information, so that the sound event recognition model can adapt to the environment.
[0136] This embodiment can cluster the sounds that are not recognized by the sound event recognition model and train a new sound event recognition model, that is, the electronic device can self-learn the sounds that often appear in the environment, update the sound event recognition model, and adapt to the environment, thereby improving the user's interactive experience. Moreover, the stability and robustness of the sound event recognition model will become more stable as the user's use time increases, and the effect of getting better with use can be achieved.
[0137] This application also provides another embodiment, such as Figure 8 As shown, after the above step S502, the following steps may be included: steps S801-S803.
[0138] S801. The electronic device obtains sound direction information of a first sound.
[0139] Exemplarily, the electronic device may obtain the orientation information of the first sound according to the sound localization method based on the microphone array in step S5032, and save the sound orientation information. For example, the electronic device may record the orientation information of a fixed sound source, such as the sound of a television, the sound of running water, the sound of a washing machine, etc. Optionally, the electronic device may store the sound orientation information in a memory.
[0140] S802. The electronic device obtains the direction information of the useless sound according to the sound direction information of the first sound and the sound category information of the first sound.
[0141] Exemplarily, the electronic device may include a sound localization module, and the sound localization module is used to determine the position information of the sound source. For example, the sound localization module may determine the position information of the sound source through a microphone array in the electronic device.
[0142] Exemplarily, the electronic device can perform adaptive learning based on the sound orientation information and the sound category information to obtain the orientation information of the useless sound. Exemplarily, the sound localization module combines the sound orientation information and the sound category information to determine the sounds in other fixed directions other than human voices as useless sounds. For example, the sound of a TV, the sound of running water, the sound of cooking, the sound of a coffee machine grinding beans, the sound of a washing machine, etc. are all useless sounds. The orientation information of the useless sound is relatively fixed relative to the electronic device, and the electronic device can obtain the orientation information of the useless sound.
[0143] S803. The electronic device filters the sound from the direction according to the direction information of the useless sound.
[0144] Exemplarily, the electronic device may filter the sound from the azimuth information of the useless sound when enhancing the sound received by the electronic device based on the azimuth information of the useless sound.
[0145] Optionally, the electronic device can filter the sound from the direction according to the direction information of the useless sound and the category information of the sound. For example, if the sound from the direction information of the useless sound among the sounds received by the electronic device is not a human voice, the electronic device will filter the sound from the direction. That is, the electronic device can assist the electronic device in sound separation and filtering according to the direction information of the useless sound.
[0146] For example, the electronic device can combine the sound location information and the sound category information to obtain the location of the sound that often appears in a specific scene. For example, the location of the TV sound, the location of the water sound, etc. The electronic device can shield the sound in this direction to better assist in sound separation.
[0147] This embodiment learns the directional information of various sounds and combines it with the sound category information to obtain the directions of sounds that frequently appear in specific scenes, thereby better assisting in sound separation.
[0148] It should be noted that the traditional voice enhancement method cannot specifically enhance the sounds from different directions, and cannot be adaptive to the environment. However, the method in this embodiment can identify the direction of frequently appearing useless sounds through the azimuth information of the sound when the environment in which the electronic device is located is ever-changing, and can ignore the sound in this direction during separation, thereby ensuring the enhancement effect, improving the user interaction experience, and being adaptive to the environment.
[0149] The present application also provides a method for speech enhancement. Fig. 9 As shown, steps S901 - S902 may be further included after the above steps S501 - S505 .
[0150] S901. Acquire voice interaction information of a third sound.
[0151] The voice interaction information of the third sound includes: the user voice interaction command (third sound) processed by the electronic device, and the command for the user to further perform voice interaction with the electronic device after the electronic device feeds back the voice interaction output. That is, the voice interaction feedback between the electronic device and the user is good, and the user further actively performs voice interaction with the electronic device.
[0152] For example, the user's voice interaction command is "What's the weather like today?", and the voice interaction output fed back by the electronic device is "It's sunny today, with a minimum temperature of 25 degrees and a maximum temperature of 35 degrees." Since the voice interaction output fed back by the electronic device is relatively accurate, the user further asks "What clothes are suitable to wear?" It is understandable that since the electronic device can accurately feed back the user's interaction command, it can promote further voice interaction between the user and the electronic device.
[0153] Exemplarily, the electronic device may collect voice interaction information of the third sound. The voice interaction information of the third sound may include at least two user voice interaction commands, such as: "What is the weather like today?" and "What clothes are suitable to wear?".
[0154] S902: Register the voiceprint of the third sound without registered voiceprint in the interactive voice information of the third sound.
[0155] Exemplarily, the electronic device may perform unsupervised mining on the interactive voice information it collects. If the voiceprint features extracted from the interactive voice information are not registered, the electronic device will perform text-independent voiceprint registration.
[0156] Exemplarily, the electronic device can collect a large amount of interactive voice information with good interactive feedback, and through unsupervised learning, mine the user voice without registered voiceprint features from the large amount of interactive voice information with good interactive feedback. And extract the voiceprint features from the user's voice information based on the deep learning algorithm to perform voiceprint registration. Optionally, the voiceprint registration process can be called adaptive voiceprint registration.
[0157] Optionally, after the electronic device performs adaptive voiceprint registration through steps S901-S902, when the electronic device performs the voice enhancement method of steps S501-S505 again, the voiceprint information of the registered user in step S503 includes the voiceprint information for adaptive voiceprint registration. The electronic device can match the voiceprint information of multiple sounds with the voiceprint information of the registered user to obtain a third sound.
[0158] It can be understood that in this embodiment, by collecting user interaction voices with good interaction feedback on a daily basis, combined with voice recognition and text-independent voiceprint registration, the electronic device can learn voiceprint information by itself and register it. Therefore, the voice corresponding to the voiceprint information can be enhanced in intelligent interaction, improving the intelligent interaction experience.
[0159] It should be noted that the traditional voice enhancement algorithm cannot perform targeted enhancement on the voices from different people, and cannot perform adaptive voiceprint registration on people who have not registered their voiceprints. However, the present embodiment can use adaptive voiceprint registration to ensure the enhancement effect when the environment in which the device is located becomes increasingly complex. Moreover, in actual applications, this method can achieve better and better results as the user's usage time increases.
[0160] The speech enhancement algorithm provided in the present application can be applied to scenes with complex sound environments. The first sound collected by the electronic device includes both the user voice and the background sound in the daily environment in which the electronic device is located. The electronic device can perform sound event recognition on the first sound collected by it and determine the sound category information of the first sound. Then, based on the sound category information of the first sound, the second sound is separated from the first sound, that is, the background sound in the daily environment is filtered out, and only the user voice is retained. In the case where the second sound includes multiple user voices, the electronic device can separate the multiple user voices included in the second sound according to the deep learning algorithm, and then determine the third sound (user voice interaction command) from the second sound in combination with the attribute information of the multiple user voices. The third sound is the voice interaction command of the target user. Thus, a clean voice interaction command of the target user can be extracted from a complex sound environment, so that the voice interaction feedback output by the electronic device based on the third sound is more accurate. When this solution extracts user voice interaction commands from a complex sound environment, it obtains the user voice interaction command (third sound) by recognizing and analyzing the sound and combining it with the attribute information of the sound. Therefore, this voice enhancement method does not perform the same enhancement on all input sounds, but performs targeted enhancement based on the attribute information of the currently collected sound. It is therefore able to adapt to complex sound environments and enhance the user's intelligent interaction experience in complex sound environments.
[0161] Exemplary, combined Figure 1 The voice environment in which the smart speaker is shown illustrates the voice enhancement algorithm provided in the embodiment of the present application. The smart speaker collects a first sound, which includes a TV sound, a dog barking, a user conversation sound, and a user voice interaction command. The electronic device identifies the first sound according to the sound event recognition model, and determines the sound category information of the first sound, and the category information of the first sound includes a human voice, a dog barking, and a TV sound. The electronic device can combine the sound category information of the first sound, and according to the sound source separation algorithm, separate the human voice from the dog barking and the TV sound, and filter out the dog barking and the TV sound to obtain the human voice (second sound). The electronic device performs blind source separation on the human voice (including the conversation sound of the characters and the user voice interaction command), that is, different human voices can be separated, and then according to the sound attribute information (voiceprint features and / or sound orientation information) of different human voices, a third sound is obtained, that is, the voice interaction command of the target user is extracted from multiple human voices. It can be understood that the electronic device in the embodiment of the present application can extract clean voice interaction commands of the target user from a complex sound environment by identifying and analyzing the attributes of the collected first sound, that is, by targeted enhancement of the sound in the complex sound environment, thereby improving the user's intelligent interaction experience.
[0162] It is understandable that, in order to realize the above functions, the above electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0163] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0164] In the case of an integrated unit, Fig.10 A possible structural diagram of an electronic device involved in the above embodiment is shown. The electronic device 1000 includes: a processing unit 1001 and a storage unit 1002 .
[0165] The processing unit 1001 is used to control and manage the actions of the electronic device 1000. For example, it can be used to execute Figure 5 In the processing steps of S501-S505; or, it can be used to perform Figure 7 In the processing steps of S701 and S702; or, it can be used to perform Figure 8 In the processing steps of S801-S803; or, it can be used to perform Fig. 9 , processing steps of S901-S902; and / or other processes for the technology described in this document.
[0166] The storage unit 1002 is used to store program codes and data of the electronic device 1000. For example, it can be used to store sound location information and the like.
[0167] Of course, the unit modules in the electronic device 1000 include but are not limited to the processing unit 1001 and the storage unit 1002. For example, the electronic device 1000 may also include an audio unit, a communication unit, etc. The audio unit is used to collect the voice emitted by the user and play the voice. The communication unit is used to support the communication between the electronic device 1000 and other devices.
[0168] Among them, the processing unit 1001 can be a processor or a controller, for example, a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The processor may include an application processor and a baseband processor. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The storage unit 1002 may be a memory. The audio unit may include a microphone, a speaker, and the like. The communication unit may be a transceiver, a transceiver circuit or a communication interface, and the like.
[0169] For example, the processing unit 1001 is a processor (such as Figure 2 The processor 110 shown in FIG. 100 is a processor 110 shown in FIG. 100 . The storage unit 1002 can be a memory (such as Figure 2 The audio unit may include a speaker (e.g. Figure 2 Speaker 170A shown), microphone (such as Figure 2 The communication unit includes a wireless communication module (such as a microphone 170B). Figure 2 The wireless communication module 160 shown in the figure). The wireless communication module can be collectively referred to as a communication interface. The electronic device 1000 provided in the embodiment of the present application can be Figure 2 The electronic device 100 is shown. The processor, memory, communication interface, etc. mentioned above may be coupled together, for example, via a bus.
[0170] The embodiment of the present application further provides a computer storage medium in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes Figure 5 , Figure 7 , Figure 8 or Fig. 9 The relevant method steps in implement the method in any of the above embodiments.
[0171] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute Figure 5 , Figure 7 , Figure 8 or Fig. 9 The relevant method steps in implement the method in any of the above embodiments.
[0172] Among them, the electronic device 1000, computer storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0173] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0174] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0175] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0176] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0177] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0178] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A speech enhancement method, characterized in that: The method comprises: The electronic device collects a first sound, where the first sound includes at least one of a second sound and a background sound; The electronic device recognizes the first sound; when the second sound exists in the first sound, the electronic device performs sound analysis on the second sound to obtain a third sound; The electronic device analyzes the sound attribute information of the second sound; wherein the sound attribute information includes one or more of sound direction information, sound time information, sound decibel information, and voiceprint information; the second sound is a human voice separated from the first sound by the electronic device through a sound source separation algorithm; the second sound includes the voice of a registered user in the electronic device and the voice of an unregistered user in the electronic device; The electronic device separates different human voices from the second sound according to a blind source separation algorithm to obtain voiceprint information of each of the different human voices, and obtains the third sound according to at least one of sound orientation information and sound decibel information of each of the different human voices and the voiceprint information; the third sound is a voice interaction command of a user whose voiceprint information matches the voiceprint information of a registered user in the electronic device; The electronic device processes the third sound.
2. The method according to claim 1, characterized in that: The electronic device identifying the first sound includes: The electronic device performs sound event recognition on the first sound according to the sound event recognition model to obtain sound category information of the first sound.
3. The method according to claim 2, characterized in that The electronic device performs sound analysis on the second sound to obtain a third sound, including: The electronic device separates the second sound from the first sound according to the sound category information of the first sound; The electronic device analyzes the sound attribute information of the second sound; wherein the sound attribute information includes: one or more of sound direction information, voiceprint information, sound time information, and sound decibel information; The electronic device obtains the third sound according to the sound attribute information of the second sound.
4. The method according to claim 1, characterized in that: The method further comprises: The electronic device clusters the fourth sound to obtain new sound category information; the fourth sound is a sound of the first sound whose sound category information is not recognized according to the sound event recognition model; According to the new sound category information, the sound event recognition model is updated to obtain an updated sound event recognition model.
5. The method according to claim 1, characterized in that: The method further comprises: The electronic device obtains the sound direction information of the first sound; Acquire the position information of the useless sound according to the sound position information of the first sound and the sound category information of the first sound; The electronic device filters the sound from the direction according to the direction information of the useless sound.
6. The method according to claim 1, characterized in that The method further comprises: Acquiring voice interaction information of the third sound; The third sound without registered voiceprint in the interactive voice information of the third sound is registered with the voiceprint.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The electronic device outputs interaction information according to the sound attribute information of the third sound.
8. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; the memory is coupled to the processor; the memory is used to store computer program code; the computer program code comprises computer instructions, and when the processor executes the above-mentioned computer instructions, the electronic device executes the method as described in any one of claims 1-7.
9. A computer storage medium, characterized in that The computer storage medium comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the method as claimed in any one of claims 1 to 7.
10. A speech enhancement device, characterized in that: include: A processor, configured to recognize a first sound, where the first sound is collected by a voice collection device, and the first sound includes at least one of a second sound and a background sound; When the second sound exists in the first sound, the processor performs sound analysis on the second sound to obtain a third sound; Analyze the sound attribute information of the second sound; wherein the sound attribute information includes one or more of sound direction information, sound time information, sound decibel information, and voiceprint information; the second sound is a human voice separated from the first sound by the processor through a sound source separation algorithm; the second sound includes the voice of a registered user and the voice of an unregistered user; Separating different human voices from the second sound according to a blind source separation algorithm to obtain voiceprint information of each of the different human voices, and obtaining the third sound according to at least one of the sound orientation information and the sound decibel information of each of the different human voices and the voiceprint information; the third sound is a voice interaction command of a user whose voiceprint information matches the voiceprint information of a registered user; The processor processes the third sound.
11. The device according to claim 10, characterized in that The processor is further configured to perform sound event recognition on the first sound according to a sound event recognition model to obtain sound category information of the first sound.
12. The device according to claim 11, characterized in that The processor is further configured to: separating a second sound from the first sound according to the sound category information of the first sound; Analyze the sound attribute information of the second sound; wherein the sound attribute information includes: one or more of sound direction information, voiceprint information, sound time information, and sound decibel information; The third sound is obtained according to the sound attribute information of the second sound.
13. The device according to claim 10, characterized in that The processor is further configured to: Clustering the fourth sound to obtain new sound category information; the fourth sound is a sound in the first sound whose sound category information is not recognized according to the sound event recognition model; According to the new sound category information, the sound event recognition model is updated to obtain an updated sound event recognition model.
14. The device according to claim 10, characterized in that The processor is further configured to: Acquiring sound location information of the first sound; Acquire the position information of the useless sound according to the sound position information of the first sound and the sound category information of the first sound; According to the direction information of the useless sound, the sound from the direction is filtered.
15. The device according to claim 10, characterized in that The processor is further configured to: Acquiring interactive voice information of the third sound; The third sound without registered voiceprint in the interactive voice information of the third sound is registered with the voiceprint.
16. The device according to any one of claims 10 to 15, characterized in that The processor is further configured to: The interactive information is output according to the sound attribute information of the third sound.
Citation Information
Patent Citations
Speech signal processing method, apparatus and electronic device
CN107146614A
Method and device for recognizing speech
CN108172219A
Sound sorting system and method capable of increasing and correcting sound class
CN1889172A
