The present application relates to the technical field of audio processing, and more particularly to a method and a device for playing a smart speaker and a smart speaker.
With the development of technology, all kinds of smart home devices have gradually entered thousands of households, and smart speakers are just one of the smart home devices.
The smart speaker is an upgraded product of the traditional speaker, which can interact with users. For example, the user can use the voice to control the smart speaker to surf the Internet, such as on-demand songs, online shopping, or understanding the weather forecast and so on. The users can control the smart home devices through the smart speaker, such as opening curtains, setting the temperature of the refrigerator, or warming up the water heater in advance.
However, the focus of the existing smart speakers is how to add more functions to the smart speakers. There is not too much attention to the sound playing function of the smart speakers, and the intelligentization of the speakers fails to improve the sound playing effect of the smart speakers.
In view of this, embodiments of the present application provide a method and a device for playing a smart speaker and a smart speaker, to solve the problem that the focus of the existing smart speakers is how to add more functions to the smart speakers, there is not too much attention to the sound playing function of the smart speakers, and the intelligentization of the speakers failed to improve the sound playing effect of the smart speakers.
A first aspect of an embodiment of the present application is to provide a method for playing a smart speaker, including:
controlling each speaker to output audio signals at a corresponding initial broadcast frequency, an initial broadcast amplitude and an initial broadcast phase when an azimuth angle of a user is not obtained;
calculating an actual broadcast amplitude and an actual broadcast phase of each speaker through a sound energy focusing algorithm, the azimuth angle of the user, a broadcast angle of each speaker and the initial broadcast frequency of each speaker when the azimuth angle of the user is obtained; and controlling each speaker to output audio signals according to the corresponding initial broadcast frequency, the actual broadcast amplitude and the actual broadcast phase.
A second aspect of an embodiment of the present application is to provide a smart speaker playing device, including:
an initial playing module, configured for controlling each speaker to output audio signals at a corresponding initial broadcast frequency, an initial broadcast amplitude and an initial broadcast phase when an azimuth angle of a user is not obtained;
a theory calculation module, configured for calculating an actual broadcast amplitude and an actual broadcast phase of each speaker through a sound energy focusing algorithm, the azimuth angle of the user, a broadcast angle of each speaker and the initial broadcast frequency of each speaker when the azimuth angle of the user is obtained; and
a sound orientation module, configured for controlling each speaker to output audio signals according to the corresponding initial broadcast frequency, the actual broadcast amplitude and the actual broadcast phase.
A third aspect of an embodiment of the present application is to provide a smart speaker, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program implementing steps of the method above mentioned.
A fourth aspect of an embodiment of the present application is to provide a computer-readable storage medium storing a computer program, wherein the computer program implements steps of the method above mentioned when the computer program is executed by a processor.
Compared with the prior art, the embodiments of the present application have the following beneficial effects:
The method for playing the smart speaker of the present application calculates the actual broadcast amplitude and actual broadcast phase of each speaker through the sound energy focusing algorithm, the azimuth angle of the user, the broadcast angle of each speaker, and controls each speaker to output audio signals according to the corresponding initial broadcasting frequency, the actual broadcast amplitude and actual broadcast phase, so as to achieve the directional focus of the same sound output, the output sound quality is better and the energy is stronger under the same output power, which solves the problem that the focus of existing smart speaker is how to add more functions to the smart speakers, there is not too much attention to the sound playing function of the smart speakers, and the intelligentization of the speakers failed to improve the sound playing effect of the smart speakers.
In order to explain the embodiments of the present invention more clearly, a brief introduction regarding the accompanying drawings that need to be used for describing the embodiments of the present invention or the prior art is given below; it is obvious that the accompanying drawings described as follows are only some embodiments of the present invention, for those skilled in the art, other drawings can also be obtained according to the current drawings on the premise of paying no creative labor.
In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of the present application.
In order to illustrate the technical solution described in the present application, specific embodiments are used for description below.
It should be understood that when used in this specification and appended claims, the term “comprising” indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other features, the existence or addition of a whole, a step, an operation, an element, a component, and/or a collection thereof.
It should also be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of the present application and the appended claims, unless the context clearly indicates other circumstances, the singular forms “a”, “an” and “the” are intended to include plural forms.
It should be further understood that the term “and/or” used in the specification and appended claims of the present application refers to any combination of one or more of the items listed in association and all possible combinations, and includes these combinations.
As used in the present specification and the appended claims, the term “if” can be interpreted as “when” or “once” or “in response to determination” or “in response to detection” depending on the context. Similarly, the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” or “in response to detection of [condition or event described]”.
The following describes a method for playing a smart speaker provided in the embodiment 1 of the present application. Please refer to
Step S101: controlling each speaker to output audio signals at a corresponding initial broadcast frequency, an initial broadcast amplitude and an initial broadcast phase when an azimuth angle of a user is not obtained;
The main function of the smart speaker is still sound playing, rather than various human-computer interaction functions. However, the current product upgrades of the smart speaker are mainly carried out around the human-computer interaction function, without considering how to use the intelligence of the speakers to improve the effect of sound playing.
Therefore, the embodiment proposes a method for playing the smart speaker. By a adjusting the actual broadcast amplitude and actual broadcast phase output by each speaker of the smart speaker, the sound played by the speaker can be oriented and focused in the direction where the user is located. Under the same output power, the users can hear better quality and stronger sound
Before adjusting the output of each speaker, you need to obtain the azimuth angle of the user. The smart speaker can use a specified direction as a reference direction and the reference direction is acted as the 0 degree angle to determine the azimuth angle of the user.
When the azimuth angle of the user is not obtained, each speaker can be controlled to output audio signals at the corresponding initial broadcast frequency, the initial broadcast amplitude, and the initial broadcast phase. For example, each speaker can be controlled to use the initial broadcast frequency, the same broadcast frequency, and the same broadcast phase to output audio signals, and controls the audio signals to be output evenly in each speaker.
Step S102: calculating an actual broadcast amplitude and an actual broadcast phase of each speaker through a sound energy focusing algorithm, the azimuth angle of the user, a broadcast angle of each speaker and the initial broadcast frequency of each speaker when the azimuth angle of the user is obtained
When the azimuth angle of the user is obtained, the actual broadcast amplitude and actual broadcast phase of each speaker can be calculated by the sound energy focusing algorithm, the azimuth angle of the user, the broadcast angle of each speaker, and the initial broadcast frequency of each speaker.
Step S103: controlling each speaker to output audio signals according to the corresponding initial broadcast frequency, the actual broadcast amplitude and the actual broadcast phase.
After calculating the actual broadcast amplitude and actual broadcast phase of each speaker, each speaker can be controlled to output audio signals at the corresponding initial broadcast frequency, the actual broadcast amplitude, and the actual broadcast phase, so that the sound can be focused and propagated in the direction where the user is located. For example, the broadcast structure of a smart speaker can be as shown in
The method for playing the smart speaker of the present application calculates the actual broadcast amplitude and actual broadcast phase of each speaker through the sound energy focusing algorithm, the azimuth angle of the user, the broadcast angle of each speaker, and controls each speaker to output audio signals according to the corresponding initial broadcasting frequency, the actual broadcast amplitude and actual broadcast phase, so as to achieve the directional focus of the same sound output, the output sound quality is better and the energy is stronger under the same output power, which solves the problem that the focus of existing smart speaker is how to add more functions to the smart speakers, there is not too much attention to the sound playing function of the smart speakers, and the intelligentization of the speakers failed to improve the sound playing effect of the smart speakers
Further, the azimuth angle of the user is obtained by the following method:
A1: calculating the azimuth angle of the user through a position of each microphone in a microphone array and a voice amplitude of the user received by each microphone.
The azimuth angle of the user can be obtained through the microphone array. When the smart speaker receives the voice of the user through the microphone array, the azimuth angle of the user can be calculated by the position of each microphone in the microphone array and a voice amplitude of the user received by each microphone, for example, as shown in
And/or, the azimuth angle of the user can be obtained by the following method:
B1: performing real-time monitoring to a shooting screen of a camera, and calculating the azimuth angle of the user according to a shooting angle of the camera and a position of a user image in the shooting screen of the camera if the user image appearing in the shooting screen of the camera is detected.
In addition to obtaining the azimuth angle of the user through the microphone array, the azimuth angle of the user can also be obtained through the camera, and performing real-time monitoring to a shooting screen of the camera, if the user image appears in the shooting screen, then the azimuth angle of the user can be calculated according to the shooting angle of the camera and the position of the user image in the shooting screen of the camera. For example, a wide-angle camera with a shooting angle of 120 degrees can be used as the camera, the leftmost side of the shooting screen is used as the reference direction, and the angle is set to 0 degrees, and when the user image appears in the middle of the shooting screen, the azimuth angle of the user is 60 degrees.
In the actual application process, in addition to the microphone array and the camera, the azimuth angle of the user can also be obtained in other ways. The above methods are only some examples of the method of obtaining the azimuth angle of the user, and which does not limit the method of obtaining the azimuth angle of the user.
Further, the sound energy focusing algorithm is specifically a proximity solution method, a direct solution method, or an energy difference maximization solution method.
The sound energy focusing algorithm can choose the proximity solution method, the direct solution method or the energy difference maximization solution method according to the actual situation. The proximity solution method can be expressed as:
λ1q=−[ZBHZB]−1[ZDHZD+λ2I]q
Among them, ZB is the matrix formed by a sound transfer function in a bright area, ZD is the matrix formed by the sound transfer function in a dark area, λ1 is an eigenvalue of a matrix equation, λ2 and I are adjustment parameters to avoid ill-conditioned problems when solving the matrix, and H represents the pseudo-inverse of the matrix, q is an output vector of the speaker, and a number of elements in the vector is a number of speakers.
The direct solution method can be expressed as:
λ1q=−[ZDHZD]−1[ZBHZB−λ2I]q
The energy difference maximization solution method can be expressed as:
λ1q=−[ZBHZB−αZDHZD]q
Among them, α is an operator introduced to calculate the energy difference between the bright area and the dark area.
In the method for playing the smart speaker provided in the embodiment 1, the actual broadcast amplitude and actual broadcast phase of each speaker is calculated through the sound energy focusing algorithm, the azimuth angle of the user, the broadcast angle of each speaker, and controls each speaker to output audio signals according to the corresponding initial broadcasting frequency, the actual broadcast amplitude and actual broadcast phase, so as to achieve the directional focus of the same sound output, the output sound quality is better and the energy is stronger under the same output power, which solves the problem that the focus of existing smart speaker is how to add more functions to the smart speakers, there is not too much attention to the sound playing function of the smart speakers, and the intelligentization of the speakers failed to improve the sound playing effect of the smart speakers.
The azimuth angle of the user can be calculated based on the position of each microphone in the microphone array and the voice amplitude of the user received by each microphone, or it can be calculated based on the shooting angle of the camera and the position of the user image in the shooting screen.
The sound energy focusing algorithm can choose one of the sound energy focusing algorithms such as the proximity solution method, the direct solution method and the energy difference maximization solution method according to the actual situation.
It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
Embodiment 2 of the present application provides a smart speaker playing device. For ease of illustration, only the parts related to the present application are shown. As shown in
an initial playing module 201, configured for controlling each speaker to output audio signals at a corresponding initial broadcast frequency, an initial broadcast amplitude and an initial broadcast phase when an azimuth angle of a user is not obtained;
a theory calculation module 202, configured for calculating an actual broadcast amplitude and an actual broadcast phase of each speaker through a sound energy focusing algorithm, the azimuth angle of the user, a broadcast angle of each speaker and the initial broadcast frequency of each speaker when the azimuth angle of the user is obtained; and
a sound orientation module 203, configured for controlling each speaker to output audio signals according to the corresponding initial broadcast frequency, the actual broadcast amplitude and the actual broadcast phase.
Further, the device further includes:
a microphone positioning module, configured for calculating the azimuth angle of the user through a position of each microphone in a microphone array and a voice amplitude of the user received by each microphone.
And/or, the device further includes:
a camera positioning module, configured for performing real-time monitoring to a shooting screen of a camera, and calculating the azimuth angle of the user according to a shooting angle of the camera and a position of a user image in the shooting screen of the camera if the user image appearing in the shooting screen of the camera is detected.
Further, the sound energy focusing algorithm is specifically a proximity solution method, a direct solution method, or an energy difference maximization solution method
It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application, and its specific functions and technical effects can be found in the method embodiment section for details, which will not be repeated herein.
Exemplarily, the computer program 32 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 31 and executed by the processor 30 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 32 in the smart speaker 3. For example, the computer program 32 can be divided into an initial playing module, a theory calculation module, and a sound orientation module. The specific functions of each module are as follows:
The initial playing module is configured for controlling each speaker to output audio signals at a corresponding initial broadcast frequency, initial broadcast amplitude and initial broadcast phase when an azimuth angle of a user is not obtained;
The theory calculation module is configured for calculating an actual broadcast amplitude and an actual broadcast phase of each speaker through a sound energy focusing algorithm, the azimuth angle of the user, a broadcast angle of each speaker and the initial broadcast frequency of each speaker when the azimuth angle of the user is obtained; and
The sound orientation module is configured for controlling each speaker to output audio signals according to the corresponding initial broadcast frequency, the actual broadcast amplitude and the actual broadcast phase.
The smart speaker may include, but is not limited to, the processor 30, the memory 31. It can be understood for one of ordinary skill in the art that,
The so called processor 30 can be CPU (Central Processing Unit), and can also be other general purpose processor, DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FGPA (Field-Programmable Gate Array), or some other programmable logic devices, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor can be a microprocessor, or alternatively, the processor can also be any conventional processor and so on.
The memory 31 can be an internal storage unit of the smart speaker 3, such as a hard disk or a memory of the smart speaker 3. The memory 31 can also be an external storage device of the smart speaker 3, such as a plug-in hard disk, a SMC (Smart Media Card), a SD (Secure Digital) card, a FC (Flash Card) equipped on the measuring device 10. Further, the memory 31 may include both the internal storage unit and the external storage device of the smart speaker 3, either. The memory 31 is configured to store the computer programs, and other procedures and data needed by the smart speaker 3 for determining wellbore cross-sectional shape. The memory 31 can also be configured to storing data that has been output or being ready to be output temporarily.
It can be clearly understood by the persons skilled in the art that, for describing conveniently and concisely, dividing of the aforesaid various functional units, functional modules is described exemplarily merely, in an actual application, the aforesaid functions can be assigned to different functional units and functional modules to be accomplished, that is, an inner structure of a data synchronizing device is divided into functional units or modules so as to accomplish the whole or a part of functionalities described above. The various functional units, modules in the embodiments can be integrated into a processing unit, or each of the units exists independently and physically, or two or more than two of the units are integrated into a single unit. The aforesaid integrated unit can by either actualized in the form of hardware or in the form of software functional units. In addition, specific names of the various functional units and modules are only used for distinguishing from each other conveniently, but not intended to limit the protection scope of the present application. Regarding a specific working process of the units and modules in the aforesaid device, reference can be made to a corresponding process in the aforesaid method embodiments, it is not repeatedly described herein.
In the aforesaid embodiments, the description of each of the embodiments is emphasized respectively, regarding a part of one embodiment which isn't described or disclosed in detail, please refer to relevant descriptions in some other embodiments.
Those skilled in the art may aware that, the elements and algorithm steps of each of the examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or in combination with computer software and electronic hardware. Whether these functions are implemented by hardware or software depends on the specific application and design constraints of the technical solution. The skilled people could use different methods to implement the described functions for each particular application, however, such implementations should not be considered as going beyond the scope of the present application.
It should be understood that, in the embodiments of the present application, the disclosed device/terminal device and method could be implemented in other ways. For example, the device described above are merely illustrative; for example, the division of the units is only a logical function division, and other division could be used in the actual implementation, for example, multiple units or components could be combined or integrated into another system, or some features can be ignored, or not performed. In another aspect, the coupling or direct coupling or communicating connection shown or discussed could be an indirect, or a communicating connection through some interfaces, devices or units, which could be electrical, mechanical, or otherwise.
The units described as separate components could or could not be physically separate, the components shown as units could or could not be physical units, which can be located in one place, or can be distributed to multiple network elements. Parts or all of the elements could be selected according to the actual needs to achieve the object of the present embodiment.
In addition, the various functional units in each of the embodiments of the present application can be integrated into a single processing unit, or exist individually and physically, or two or more than two units are integrated into a single unit. The aforesaid integrated unit can either be achieved by hardware, or be achieved in the form of software functional units.
If the integrated unit is achieved in the form of software functional units, and is sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, a whole or part of flow process of implementing the method in the aforesaid embodiments of the present application can also be accomplished by using computer program to instruct relevant hardware. When the computer program is executed by the processor, the steps in the various method embodiments described above can be implemented. Wherein, the computer program comprises computer program codes, which can be in the form of source code, object code, executable documents or some intermediate form, etc. The computer readable medium can include: any entity or device that can carry the computer program codes, recording medium, USB flash disk, mobile hard disk, hard disk, optical disk, computer storage device, ROM (Read-Only Memory), RAM (Random Access Memory) and software distribution medium, etc.
As stated above, the aforesaid embodiments are only intended to explain but not to limit the technical solutions of the present application. Although the present application has been explained in detail with reference to the above-described embodiments, it should be understood for the ordinary skilled one in the art that, the technical solutions described in each of the above-described embodiments can still be amended, or some technical features in the technical solutions can be replaced equivalently; these amendments or equivalent replacements, which won't make the essence of corresponding technical solution to be broken away from the spirit and the scope of the technical solution in various embodiments of the present application, should all be included in the protection scope of the present application.
Number | Date | Country | Kind |
---|---|---|---|
201811523871.6 | Dec 2018 | CN | national |
The present application is National phase of an international application PCT/CN2019/107877, filed on Sep. 25, 2019, and claims priority of Chinese application CN 201811523871.6, filed on Dec. 12, 2018; the whole content of which is incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/107877 | 9/25/2019 | WO | 00 |