Sound pickup calibration method, device, non-volatile storage medium and electronic device
By obtaining the wake-up voice energy value collected by the microphone of the smart device, calculating the calibration coefficient and calibrating the microphone, it solves the voice command judgment problem caused by the difference in sound pickup capabilities of the devices in the smart home, and achieves convenient and accurate device sound pickup calibration. voice control.
Patent Information
- Application Number
- CN202210631086.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-06-06
AI Technical Summary
In smart home scenarios, users need to remember the accurate names of various devices to control smart devices, which makes voice control behavior cumbersome. Moreover, different devices have different sound pickup capabilities, making it difficult to accurately determine which device the user's voice command is intended for.
By obtaining the energy value of the wake-up voice collected by the microphone of each device, calculate and determine the calibration coefficient of the device, and perform sound pickup calibration on the microphone to ensure that the device receives voice commands at the same pickup level.
It achieves convenient device sound pickup calibration, improves the accuracy of voice command judgment between devices in smart home scenarios, and simplifies the user control process.
Smart Images

Figure CN115148203B
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and more specifically, to a sound pickup calibration method, device, non-volatile storage medium and electronic device. Background Art
[0002] In the smart home scenario, there will be many smart devices in the user's home. Most smart devices today support voice interaction with users to enable users to intelligently control smart devices and reduce the user's workload. However, when a user issues a voice command to the smart device he wants to control, other smart devices will also receive the user's voice command. Therefore, multiple smart devices need to share information to determine which smart device the user's current voice command matches, so as to avoid the wrong device responding to the user's command and causing inconvenience to the user's life. However, the following problems exist in the related art: the user calls the device name plus the user's command, and the user needs to remember the exact names of various devices, which makes the user's voice control behavior very cumbersome and the user experience is not good; or the energy of the voice commands received by different smart devices is used as the judgment amount, but this method is limited by the different sound pickup capabilities of different smart devices, and it is difficult to make accurate judgments.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] Embodiments of the present invention provide a sound pickup calibration method, device, computer-readable storage medium, and electronic device to at least solve the technical problem of lack of a convenient device sound pickup calibration method in a smart home scenario.
[0005] According to one aspect of an embodiment of the present invention, a sound pickup calibration method is provided, including: obtaining a first audio and a second audio, wherein the first audio is an audio obtained by a first microphone of a first device collecting a wake-up voice emitted by a standard device, and the second audio is an audio obtained by a second microphone of a second device collecting the wake-up voice emitted by the standard device; determining a first energy value corresponding to the first audio and a second energy value corresponding to the second audio; determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value; and performing sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient, respectively.
[0006] Optionally, determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value includes: obtaining a third audio and a fourth audio, wherein the third audio is audio obtained by collecting the wake-up voice emitted by the first device with a standard microphone of the standard device, and the fourth audio is audio obtained by collecting the wake-up voice emitted by the second device with the standard microphone of the standard device; determining a third energy value corresponding to the third audio and a fourth energy value corresponding to the fourth audio; determining the first calibration coefficient based on the first energy value and the third energy value, and determining the second calibration coefficient based on the second energy value and the fourth energy value.
[0007] Optionally, determining the first calibration coefficient based on the first energy value and the third energy value, and determining the second calibration coefficient based on the second energy value and the fourth energy value, includes: determining the ratio of the third energy value to the first energy value as the first calibration coefficient; and determining the ratio of the fourth energy value to the second energy value as the second calibration coefficient.
[0008] Optionally, the above method also includes: obtaining an online device list, wherein the online device list includes multiple devices; selecting a calibrated device in the online device list as the standard device, and selecting the first device and the second device in the online device list as devices to be calibrated; sending wake-up word data to the standard device, wherein the wake-up word data is used by the standard device to generate the wake-up voice.
[0009] Optionally, the above method also includes: sending the wake-up word data to the first device and the second device, wherein the first device and the second device respond to the wake-up voice issued by the standard device based on the wake-up word data, and respectively call the first microphone and the second microphone to collect the wake-up voice issued by the standard device to obtain the first audio and the second audio.
[0010] Optionally, the sound pickup calibration of the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively includes: sending the first calibration coefficient to the first device, wherein the first device calibrates the energy value of the received audio according to the first calibration coefficient; sending the second calibration coefficient to the second device, wherein the second device calibrates the energy value of the received audio according to the second calibration coefficient.
[0011] Optionally, the above method also includes: obtaining a fifth audio, wherein the fifth audio is the audio obtained by the third microphone of the third device collecting the wake-up voice emitted by the standard device; determining a fifth energy value corresponding to the fifth audio; based on any one of the first energy value and the second energy value and the fifth energy value, determining a third correction coefficient corresponding to the third device; and calibrating the third microphone for sound pickup according to the third correction coefficient.
[0012] According to another aspect of an embodiment of the present invention, a sound pickup calibration device is also provided, including: an acquisition module, used to acquire a first audio and a second audio, wherein the first audio is an audio obtained by a first microphone of a first device collecting a wake-up voice emitted by a standard device, and the second audio is an audio obtained by a second microphone of a second device collecting the wake-up voice emitted by the standard device; a first determination module, used to determine a first energy value corresponding to the first audio and a second energy value corresponding to the second audio; a second determination module, used to determine a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value; a calibration module, used to perform sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient, respectively.
[0013] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned sound pickup calibration methods.
[0014] According to another aspect of the embodiments of the present invention, an electronic device is provided. The electronic device includes a processor, and the processor is used to run a program. When the program is run, any one of the above-mentioned sound pickup calibration methods is executed.
[0015] In an embodiment of the present invention, by acquiring the first audio and the second audio captured by the respective microphones of the first device and the second device, determining the first energy value and the second energy value based on the first audio and the second audio, and then determining the first calibration coefficient and the second calibration coefficient for sound pickup calibration of the first microphone of the first device and the second microphone of the second device based on the first energy value and the second energy value, the purpose of calibrating the sound pickup capabilities of the first device and the second device in the smart home scene is achieved, thereby realizing the technical effect of providing a convenient device sound pickup calibration method in the smart home scene, and further solving the technical problem of the lack of a convenient device sound pickup calibration method in the smart home scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 is a schematic diagram of a hardware environment of an interaction method of a smart device according to an embodiment of the present application;
[0019] Figure 2 is a flow chart of a sound pickup calibration method provided according to an embodiment of the present invention;
[0020] Figure 3 4 is a structural block diagram of a sound pickup calibration device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] According to one aspect of an embodiment of the present application, a method for interacting with a smart home device is provided. The method for interacting with a smart home device is widely used in smart home, smart home, smart home device ecosystem, smart home ecosystem and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the method for interacting with the smart home device can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0024] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0025] The present application provides a method embodiment for accurately determining the target device that the user wants to control by issuing a voice command by calibrating the device for sound pickup. In the related art, when calibrating the sound pickup of different devices, it is necessary to calibrate the sound pickup microphones of each device, that is, calibrate all microphones to the same standard microphone. This is also the current mainstream calibration scheme. For example, offline real-time manual calibration is adopted, that is, the sound emission position and the sound receiving position are fixed, the audio is played by a standard speaker, the device to be calibrated and the standard microphone are placed at the sound receiving position to record the audio, and then the audio recorded by the device to be calibrated is compared with the audio recorded by the standard microphone to achieve calibration; generally, the related art can perform audio comparison in the frequency domain, calibrate the amplitude of the key frequency point to the amplitude of the corresponding frequency point of the standard device, and in addition, a simple time domain energy comparison can also be used. However, in real applications, with the increase of smart devices, especially the increase of low-cost devices, however, due to the large hardware differences of home appliances and the poor consistency of microphones, as the number of products in the smart home environment increases, users cannot perform offline manual debugging and calibration for each smart device. To this end, this embodiment proposes the following sound pickup calibration method to solve the technical problem of being unable to accurately determine which device among multiple devices the voice command issued by the user is intended to control.
[0026] Figure 2 is a flow chart of a sound pickup calibration method according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0027] Step S202, obtaining a first audio and a second audio, wherein the first audio is an audio obtained by collecting a wake-up voice emitted by a standard device using a first microphone of the first device, and the second audio is an audio obtained by collecting a wake-up voice emitted by a standard device using a second microphone of the second device.
[0028] In this step, the first device, the second device and the standard device may be smart devices in a smart home, and both the first device and the second device have the function of responding to the user's voice to perform an action. Optionally, the wake-up voice may be emitted through a speaker of the standard device and collected by microphones of the first device and the second device.
[0029] Step S204: determine a first energy value corresponding to the first audio and a second energy value corresponding to the second audio.
[0030] Optionally, the first energy value and the second energy value of this step can be the total energy of the first audio and the second audio, respectively, or can be the time domain energy in the first audio and the second audio in the corresponding time domain. Since the first audio and the second audio are respectively obtained by the first microphone and the second microphone collecting the wake-up voice of the standard device, the first audio and the second audio should correspond in the time domain. Based on this, a time domain range can be determined, and then the first energy value and the second energy value of the first audio and the second audio in the time domain range can be determined respectively.
[0031] Step S206: Determine a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value.
[0032] In this step, based on the energy values of the wake-up speech emitted by the standard device received by the first device and the second device respectively, the difference in the sound pickup capabilities of the microphones of the first device and the second device can be determined, so that the first microphone and the second microphone can be accurately calibrated for sound pickup.
[0033] Step S208: performing sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively.
[0034] The first microphone and the second microphone have different sound pickup capabilities due to different product models and usage status. The energy value of the audio collected by the microphone is processed using the first calibration coefficient, which can eliminate the ability difference between the first microphone and the second microphone itself, so that the calibrated multiple microphones can pick up sound at the same pickup level, such as for wake-up competition. Optionally, if the user makes a voice for waking up the device, the calibrated first device and the second device will receive the voice issued by the user through the microphone. Since the first microphone and the second microphone are calibrated using the first calibration coefficient and the second calibration coefficient respectively, the relative position difference and the sound direction difference between the user and the first device and the second device can be determined based on the difference in the energy value of the audio collected by the first microphone and the energy value of the audio collected by the second microphone, helping the device to accurately determine which of the first device and the second device the target device that the target object wants to control is.
[0035] In the above steps, by obtaining the first audio and the second audio collected by the respective microphones of the first device and the second device, determining the first energy value and the second energy value based on the first audio and the second audio, and then determining the first calibration coefficient and the second calibration coefficient for sound pickup calibration of the first microphone of the first device and the second microphone of the second device based on the first energy value and the second energy value, the purpose of calibrating the sound pickup capabilities of the first device and the second device in the smart home scene is achieved, thereby achieving the technical effect of providing a convenient device sound pickup calibration method in the smart home scene, and further solving the technical problem of the lack of a convenient device sound pickup calibration method in the smart home scene.
[0036] As an optional embodiment, the following steps can be adopted to determine the first calibration coefficient corresponding to the first device and the second calibration coefficient corresponding to the second device based on the first energy value and the second energy value: obtain a third audio and a fourth audio, wherein the third audio is the audio obtained by collecting the wake-up voice emitted by the first device with the standard microphone of the standard device, and the fourth audio is the audio obtained by collecting the wake-up voice emitted by the second device with the standard microphone of the standard device; determine a third energy value corresponding to the third audio and a fourth energy value corresponding to the fourth audio; determine the first calibration coefficient based on the first energy value and the third energy value, and determine the second calibration coefficient based on the second energy value and the fourth energy value.
[0037] In this optional embodiment, the first device and the second device may send out a wake-up voice in turn, which is received by the standard microphone of the standard device, and then the size of the pickup capability of the microphones of the first device and the second device is determined based on the audio received by the standard microphone. In this method, the calibration of the first microphone and the second microphone does not require measuring the distance between the first device and the second device and the standard device. The distance from the speaker of the standard device to the microphone of the first device is the same as the distance from the speaker of the first device to the microphone of the standard device. Therefore, in the above two processes, the interference and attenuation of the sound on the way can be considered to be the same. Therefore, the first calibration coefficient and the second calibration coefficient used to characterize the difference in the pickup capability of the first microphone and the standard microphone can be determined by the first energy value and the third energy value. After the difference in the pickup capability of the first microphone and the second microphone relative to the standard microphone is determined, the substitution calculation of the pickup capability can be performed to determine the difference in the pickup capability between the first microphone and the second microphone.
[0038] As an optional embodiment, the first calibration coefficient and the second calibration coefficient may be determined in the following manner: the ratio of the third energy value to the first energy value is determined as the first calibration coefficient; and the ratio of the fourth energy value to the second energy value is determined as the second calibration coefficient.
[0039] Optionally, the first calibration coefficient may be in the following form:
[0040]
[0041] in, represents the first calibration coefficient corresponding to the first device, d i represents the distance between the first device and the standard device (that is, the distance between the first microphone and the standard microphone), represents a first energy value determined according to the first audio collected by the first microphone of the first device, Indicates the third energy value corresponding to the third audio collected by the standard microphone of the standard device. When the first microphone and the standard microphone have the same sound pickup capabilities, the first energy value corresponding to the first audio and the third energy value corresponding to the third audio should be equal, that is, However, when the first microphone's sound pickup capability is weaker than the standard microphone, there is at this time Less than 1. Therefore, when the first microphone of the first device receives the speech of the user, the speech energy value of the speech received by the first microphone can be calibrated as follows based on the first calibration coefficient: the calibrated speech energy value = speech energy value / Similarly, the pickup capability of the second microphone of the second device can be calibrated in the above manner to obtain a second calibration coefficient Through this optional embodiment, a specific method for calibrating the sound pickup capabilities of a first microphone of a first device and a second microphone of a second device is provided. This method can correctly calibrate the difference in sound pickup capabilities between the microphones of the first device and the second device, thereby improving the calibration effect.
[0042] As an optional embodiment, the above method may also include: obtaining an online device list, wherein the online device list includes multiple devices; selecting a calibrated device in the online device list as a standard device, and selecting the first device and the second device in the online device list as devices to be calibrated; sending wake-up word data to the standard device, wherein the wake-up word data is used for the standard device to generate a wake-up voice.
[0043] The above optional embodiment can be applied to the smart gateway in the smart home scenario. The smart gateway obtains the online device list in the home through the Internet or local area network, and obtains the calibration information of whether each device in the list has undergone sound pickup calibration. Then the smart gateway can determine a calibrated device in the table as a standard device, and use this device to calibrate other devices in the online device list that have not undergone sound pickup calibration, such as the first device and the second device, to achieve distributed sound pickup calibration of the devices in the home without the need for professional sound pickup calibration tools.
[0044] As an optional embodiment, the intelligent gateway can send wake-up word data to the first device and the second device, wherein the first device and the second device respond to the wake-up voice issued by the standard device based on the wake-up word data, and respectively call the first microphone and the second microphone to collect the wake-up voice issued by the standard device to obtain the first audio and the second audio.
[0045] As an optional embodiment, the first microphone and the second microphone are calibrated for sound pickup according to the first calibration coefficient and the second calibration coefficient respectively, which can be done in the following manner: sending the first calibration coefficient to the first device, wherein the first device calibrates the energy value of the received audio according to the first calibration coefficient; sending the second calibration coefficient to the second device, wherein the second device calibrates the energy value of the received audio according to the second calibration coefficient. It should be noted that after the intelligent gateway calculates the first calibration coefficient and the second calibration coefficient, it sends the first calibration coefficient and the second calibration coefficient to the first device and the second device, and calibrates the first microphone and the second microphone relative to the standard microphone at the same time, which is equivalent to calibrating between the first microphone and the second microphone, thereby realizing rapid calibration of the sound pickup capabilities between devices in a home scenario.
[0046] As an optional embodiment, a fifth audio is obtained, wherein the fifth audio is the audio obtained by the third microphone of the third device collecting the wake-up voice emitted by the standard device; a fifth energy value corresponding to the fifth audio is determined; based on any one of the first energy value and the second energy value and the fifth energy value, a third correction coefficient corresponding to the third device is determined; and the third microphone is calibrated for sound pickup according to the third correction coefficient. Optionally, the third device may be another device in the online device list that has not been calibrated for sound pickup. This embodiment can support calibration of the sound pickup capabilities of multiple devices in the home to the same level. At this point, when the user wakes up the devices in the home by issuing a wake-up word, each device competes for wake-up based on microphones with the same sound pickup capability, determines which device the user is issuing the wake-up word to, improves the accuracy of the user waking up the device, and avoids the target object waking up the wrong device.
[0047] It should be noted that when the energy value is used as a judgment condition for determining the target object, such as the device that the user wants to control, the judgment can be made based on the size of the energy value received by the device. Specifically, when the target object is located between the first device and the second device, if the target object is closer to the first device, the energy value corresponding to the first audio received by the first microphone of the first device should be greater than the energy value of the second audio received by the second microphone of the second device. However, since there may be differences in the sound pickup capabilities of the first microphone and the second microphone, directly using the energy values of the first audio and the second audio for comparison may result in misjudgment. Using the above optional embodiment, the above problem can be solved by calibrating the sound pickup capabilities of the first microphone and the second microphone, and then determining that the device corresponding to the larger energy value is the device to be awakened that is closer to the target object, thereby achieving the technical effect of improving the accuracy of determining the device to be awakened.
[0048] The above steps can be actively performed by the user in the home. According to certain rules, a smart device is selected in the home environment as the standard device for sound pickup calibration. For example, all smart devices in the home are traversed, and the device with the best sound pickup effect is used as the standard device. The other smart devices in the home are calibrated with the standard device for sound pickup, and the calibration process is executed to obtain the calibration coefficient corresponding to each device. The self-calibration method between home smart devices provided by this embodiment can avoid the technical problem of inaccurate target device for judging the target object's voice pointing due to different sound pickup capabilities between different home smart devices, and can simplify the calibration process of the sound pickup capability of smart devices, providing a method for calibrating the sound pickup capability of smart devices in the home for home users, greatly improving the efficiency of the sound pickup capability calibration process.
[0049] According to an embodiment of the present invention, a sound pickup calibration device for implementing the above-mentioned sound pickup calibration method is also provided. Figure 3 is a structural block diagram of a sound pickup calibration device provided according to an embodiment of the present invention. Figure 3 As shown, the sound pickup calibration device 30 includes: an acquisition module 32, a first determination module 34, a second determination module 36 and a calibration module 38. The sound pickup calibration device 30 is described below.
[0050] An acquisition module 32 is used to acquire a first audio and a second audio, wherein the first audio is an audio obtained by a first microphone of a first device collecting a wake-up voice emitted by a standard device, and the second audio is an audio obtained by a second microphone of a second device collecting the wake-up voice emitted by the standard device;
[0051] A first determining module 34, connected to the obtaining module 32, configured to determine a first energy value corresponding to the first audio and a second energy value corresponding to the second audio;
[0052] A second determination module 36, connected to the first determination module 34, for determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value;
[0053] The calibration module 38 is connected to the second determination module 36 and is used to perform sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively.
[0054] It should be noted here that the above-mentioned acquisition module 32, first determination module 34, second determination module 36 and calibration module 38 correspond to steps S202 to S208 in the embodiment, and the instances and application scenarios implemented by the multiple modules are the same as the corresponding steps, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0055] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.
[0056] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the sound pickup calibration method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the above-mentioned sound pickup calibration method is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0057] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the first audio and the second audio, wherein the first audio is the audio obtained by the first microphone of the first device collecting the wake-up voice emitted by the standard device, and the second audio is the audio obtained by the second microphone of the second device collecting the wake-up voice emitted by the standard device; determine a first energy value corresponding to the first audio and a second energy value corresponding to the second audio; based on the first energy value and the second energy value, determine a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device; and calibrate the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient, respectively.
[0058] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0059] The embodiment of the present invention further provides a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the sound pickup calibration method provided in the above embodiment.
[0060] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.
[0061] Optionally, in this embodiment, a computer-readable storage medium is configured to store program codes for executing the following steps: obtaining a first audio and a second audio, wherein the first audio is an audio obtained by a first microphone of a first device collecting a wake-up voice emitted by a standard device, and the second audio is an audio obtained by a second microphone of a second device collecting the wake-up voice emitted by the standard device; determining a first energy value corresponding to the first audio and a second energy value corresponding to the second audio; determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value; and performing sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient, respectively.
[0062] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0063] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0064] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, 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 units or modules, which can be electrical or other forms.
[0065] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0066] In addition, each functional unit in each embodiment of the present invention 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.
[0067] 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 non-volatile storage medium. Based on this understanding, the technical solution of the present invention, 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. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0068] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A sound pickup calibration method, characterized in that: include: Obtaining a first audio and a second audio, wherein the first audio is an audio obtained by collecting a wake-up voice emitted by a standard device using a first microphone of the first device, and the second audio is an audio obtained by collecting the wake-up voice emitted by the standard device using a second microphone of the second device; Determine a first energy value corresponding to the first audio and a second energy value corresponding to the second audio; Determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value; Performing sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively; Wherein, determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value includes: Acquire a third audio and a fourth audio, wherein the third audio is audio obtained by collecting the wake-up voice emitted by the first device using a standard microphone of the standard device, and the fourth audio is audio obtained by collecting the wake-up voice emitted by the second device using the standard microphone of the standard device; Determine a third energy value corresponding to the third audio and a fourth energy value corresponding to the fourth audio; determining the first calibration coefficient based on the first energy value and the third energy value, and determining the second calibration coefficient based on the second energy value and the fourth energy value; The determining of the first calibration coefficient based on the first energy value and the third energy value, and the determining of the second calibration coefficient based on the second energy value and the fourth energy value, comprises: determining a ratio of the third energy value to the first energy value as the first calibration coefficient; and determining a ratio of the fourth energy value to the second energy value as the second calibration coefficient; The method of performing sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively includes: When the first microphone receives the first speech emitted by the target object, the formula is: A=a / A sound pickup calibration method, characterized by comprising: Obtaining a first audio and a second audio, wherein the first audio is an audio obtained by collecting a wake-up voice emitted by a standard device using a first microphone of the first device, and the second audio is an audio obtained by collecting the wake-up voice emitted by the standard device using a second microphone of the second device; Determine a first energy value corresponding to the first audio and a second energy value corresponding to the second audio; Determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value; Performing sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively; Wherein, determining a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value includes: Acquire a third audio and a fourth audio, wherein the third audio is audio obtained by collecting the wake-up voice emitted by the first device using a standard microphone of the standard device, and the fourth audio is audio obtained by collecting the wake-up voice emitted by the second device using the standard microphone of the standard device; Determine a third energy value corresponding to the third audio and a fourth energy value corresponding to the fourth audio; determining the first calibration coefficient based on the first energy value and the third energy value, and determining the second calibration coefficient based on the second energy value and the fourth energy value; The determining of the first calibration coefficient based on the first energy value and the third energy value, and the determining of the second calibration coefficient based on the second energy value and the fourth energy value, comprises: determining a ratio of the third energy value to the first energy value as the first calibration coefficient; and determining a ratio of the fourth energy value to the second energy value as the second calibration coefficient; The method of performing sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively includes: When the first microphone receives the first speech emitted by the target object, the formula is: A=a / Calibrate the first speech energy value of the first speech, wherein A is the calibrated first speech energy value, a is the first speech energy value, is the first calibration coefficient, is the distance between the first microphone and the standard microphone; And, when the second microphone receives the first voice emitted by the target object, the formula E=e / Calibrate the second speech energy value of the first speech, wherein E is the calibrated second speech energy value, e is the second speech energy value, is the second calibration coefficient, is the distance between the second microphone and the standard microphone.
2. The method according to claim 1, characterized in that: Also includes: Obtain an online device list, wherein the online device list includes multiple devices; Selecting a calibrated device in the online device list as the standard device, and selecting the first device and the second device in the online device list as devices to be calibrated; The wake-up word data is sent to the standard device, wherein the wake-up word data is used by the standard device to generate the wake-up voice.
3. The method according to claim 2, characterized in that Also includes: The wake-up word data is sent to the first device and the second device, wherein the first device and the second device respond to the wake-up voice issued by the standard device based on the wake-up word data, and respectively call the first microphone and the second microphone to collect the wake-up voice issued by the standard device to obtain the first audio and the second audio.
4. The method according to claim 2, characterized in that The performing sound pickup calibration on the first microphone and the second microphone respectively according to the first calibration coefficient and the second calibration coefficient comprises: sending the first calibration coefficient to the first device, wherein the first device calibrates the energy value of the received audio according to the first calibration coefficient; The second calibration coefficient is sent to the second device, wherein the second device calibrates the energy value of the received audio according to the second calibration coefficient.
5. The method according to claim 1, characterized in that Also includes: Acquire a fifth audio, wherein the fifth audio is audio obtained by collecting the wake-up voice emitted by the standard device through a third microphone of the third device; Determining a fifth energy value corresponding to the fifth audio; Determine a third correction coefficient corresponding to the third device based on any one of the first energy value and the second energy value and the fifth energy value; The third microphone is calibrated for sound pickup according to the third correction coefficient.
6. A sound pickup calibration device, characterized in that: include: An acquisition module, configured to acquire a first audio and a second audio, wherein the first audio is an audio obtained by collecting a wake-up voice emitted by a standard device using a first microphone of the first device, and the second audio is an audio obtained by collecting the wake-up voice emitted by the standard device using a second microphone of the second device; A first determining module, configured to determine a first energy value corresponding to the first audio and a second energy value corresponding to the second audio; A second determination module, configured to determine a first calibration coefficient corresponding to the first device and a second calibration coefficient corresponding to the second device based on the first energy value and the second energy value; a calibration module, configured to perform sound pickup calibration on the first microphone and the second microphone according to the first calibration coefficient and the second calibration coefficient respectively; The second determination module is further used to obtain a third audio and a fourth audio, wherein the third audio is the audio obtained by the standard microphone of the standard device collecting the wake-up voice emitted by the first device, and the fourth audio is the audio obtained by the standard microphone of the standard device collecting the wake-up voice emitted by the second device; determine a third energy value corresponding to the third audio and a fourth energy value corresponding to the fourth audio; determine the first calibration coefficient based on the first energy value and the third energy value, and determine the second calibration coefficient based on the second energy value and the fourth energy value; The second determination module is further configured to determine the ratio of the third energy value to the first energy value as the first calibration coefficient; and determine the ratio of the fourth energy value to the second energy value as the second calibration coefficient; The calibration module is further configured to, when the first microphone receives the first speech emitted by the target object, calculate the value of the first speech by the formula: A=a / Calibrate the first speech energy value of the first speech, wherein A is the calibrated first speech energy value, a is the first speech energy value, is the first calibration coefficient, is the distance between the first microphone and the standard microphone; And, when the second microphone receives the first voice emitted by the target object, the formula E=e / Calibrate the second speech energy value of the first speech, wherein E is the calibrated second speech energy value, e is the second speech energy value, is the second calibration coefficient, is the distance between the second microphone and the standard microphone.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the sound pickup calibration method according to any one of claims 1 to 5 is executed when the program is executed.
8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the sound pickup calibration method according to any one of claims 1 to 5 through the computer program.
