Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a noise cancellation method according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than presented herein.
The noise elimination method comprises the following steps:
step S10, when detecting a start instruction of the audio gain adjustment, the smart television system determines parameter information of the terminal device connected to the smart television system according to the start instruction, and determines at least one target terminal device corresponding to the audio gain adjustment in the terminal device according to the parameter information, where the number of the terminal devices includes at least one.
When a start instruction of the sound gain adjustment is detected, the intelligent television system determines parameter information of terminal equipment corresponding to the start instruction, wherein the parameter information comprises audio data and a sound gain value, and the terminal equipment is the terminal equipment in the same intelligent wireless network as the intelligent television system, so that the number of the terminal equipment at least comprises one.
Then, the smart television system may determine at least one target terminal device corresponding to the sound gain adjustment according to the parameter information of the terminal device, where the target terminal device is an object to be adjusted in the sound gain, that is, a terminal device having howling noise, that is, the smart television system determines which terminal device or devices having howling noise are according to the parameter information of each terminal device.
It should be noted that the start instruction of the sound gain adjustment may be automatically triggered according to the actual situation, for example, when the frequency or loudness of the noise is greater than the preset frequency or loudness; or the smart television system may be triggered when receiving a start instruction manually input by a user, for example, when a terminal device generates a howling noise, the user remotely controls the start, and the like.
Specifically, the process of determining the target terminal device includes:
step a, the intelligent television system detects the type of the terminal equipment according to a starting instruction;
in an embodiment, the smart television system detects types of all terminal devices connected with the smart television system according to a start instruction, wherein the type of the device refers to whether the terminal device has a touch screen, that is, the smart television system specifically detects whether the terminal device carries the touch screen or does not carry the touch screen, such as a smart sound box without the touch screen; or a television or a PC (Personal Computer) carrying a touch screen.
B, if the terminal equipment carries a touch screen, the intelligent television system acquires the click times of the terminal equipment within a first preset time length;
step c, if the target click times exist in the click times, the intelligent television system acquires first audio data and a first audio gain value of the terminal equipment corresponding to the target click times, wherein the target click times are larger than a first preset number set by the intelligent television system;
if the current terminal equipment carries the touch screen, the intelligent television system acquires the click times of the current terminal equipment within a first preset time length, and detects whether the click times are greater than the first preset time length set by the intelligent television system, wherein the first preset time length is set in the intelligent television system according to actual requirements, such as 1 minute and the like; the first preset number is the average number of times the touch screen is clicked within a preset unit time (unit: minute).
It can be understood that the terminal device connected to the smart television system includes at least one terminal device, and therefore, the number of clicks of the user on the touch screen of the terminal device also includes at least one, if there are 2 terminal devices at present, which are a first terminal device and a second terminal device, the first terminal device corresponds to one number of clicks, the second terminal device corresponds to one number of clicks, the number of clicks at this time is two, the target number of clicks is one of which the number of clicks is greater than the first preset number set by the smart television system, and if the number of clicks corresponding to the first terminal device is greater than the first preset number set by the smart television system, the number of clicks corresponding to the first terminal device is the target number of clicks, and the like.
If the click times are detected to be larger than the first preset times, the intelligent television system obtains parameter information of the terminal device corresponding to the click times, wherein the parameter information comprises first audio data and a first sound gain value.
And d, determining target terminal equipment corresponding to the sound gain adjustment according to the first audio data and the first sound gain value.
And comparing the first audio data with the first sound gain value, wherein the first audio data is the audio data received by the smart television system through an audio collection device in the terminal equipment, such as a microphone, an earphone and the like. And finally, determining a target terminal device corresponding to the sound gain adjustment according to the comparison result, namely, determining the terminal device which is about to eliminate the howling noise from at least one terminal device as the target terminal device according to the audio data of each terminal device and the size relation of the sound gain value by the intelligent television system.
Further, the process of determining the target terminal device corresponding to the tone gain adjustment includes:
step e, the intelligent television system detects whether target audio data exist in the first audio data, wherein the sound gain value of the target audio data is larger than or equal to half of the first sound gain value;
and f, if the target audio data exists, the intelligent television system determines that the terminal equipment corresponding to the target audio data is the target terminal equipment corresponding to the sound gain adjustment.
Specifically, the smart television system detects whether target audio data with a sound gain value greater than or equal to half of a first sound gain value exists in the first audio data, and if it is detected that the target audio data exists in the first audio data, the smart television system determines that the terminal device corresponding to the target audio data is a target terminal device corresponding to sound gain adjustment, that is, the sound gain value corresponding to the current audio data is greater than or equal to half of a preset first sound gain value, and determines that the current audio data is the target audio data, and the corresponding terminal device is the target terminal device.
And step S20, the smart television system obtains the corresponding voice decibel value through the audio collection device in the target terminal equipment, obtains the sound gain value corresponding to the target terminal equipment, and determines the target sound gain value corresponding to the target terminal equipment according to the voice decibel value and the sound gain value.
The intelligent television system acquires voice through an audio collecting device (a microphone and an earphone) in the target terminal equipment, determines a corresponding voice decibel value according to the voice, then acquires a voice gain value corresponding to the target terminal equipment, detects the relation between the voice decibel value and a preset decibel value range in the intelligent television system, starts a corresponding adjusting mode according to a detection result, adjusts the voice gain value in the target terminal equipment through the corresponding adjusting mode, and determines a target voice gain value corresponding to the target terminal equipment, wherein the preset decibel range can be set according to actual conditions, such as 60-80 decibels.
Specifically, the process of determining the target sound gain value corresponding to the target terminal device according to the decibel of the human voice and the sound gain value includes:
step g, if the target terminal device carries a touch screen, the intelligent television system detects whether the human voice decibel value is within a first preset decibel value range set by the intelligent television system;
step h, if yes, the intelligent television system obtains the number of users corresponding to the touch screen and acquired by the target terminal device through the image acquisition device;
and i, the intelligent television system determines a target sound gain value corresponding to the target terminal device according to the sound gain value and the number of users.
Specifically, if the target terminal device is detected to be a portable touch screen, the smart television system detects whether the human voice decibel value is within a first preset decibel value range set by the smart television system, and if so, the smart television system starts an extremely fast sound gain reduction adjustment mode, that is, the smart television system obtains the number of users in front of the touch screen, which are shot by the target terminal device through an image acquisition device (a camera or a video camera) in the target terminal device, and calculates a target sound gain value corresponding to the target terminal device through a calculation method corresponding to the extremely fast sound gain reduction adjustment mode according to the number of users in front of the touch screen and the sound gain value corresponding to the target terminal device.
The first preset decibel range and the audio gain extreme speed reduction adjustment mode are set in the smart television system according to actual conditions, and this embodiment is not limited.
Further, the method for calculating the sound gain extreme speed reduction adjustment mode comprises the following steps:
step j, the intelligent television system reduces the sound gain value by half to obtain a corresponding third sound gain value, and calculates the sum of the number of users and the third sound gain value to obtain a corresponding fourth sound gain value;
and k, the intelligent television system calculates the product of the fourth sound gain value and a preset sound gain ratio to obtain a target sound gain value corresponding to the target terminal equipment, wherein the preset sound gain ratio is determined by the intelligent television system according to the number of users.
Specifically, the intelligent television system halves the sound gain value corresponding to the target terminal device to obtain a third sound gain value corresponding to the target terminal device, then adds and sums the third sound gain value and the number of users before touching the screen, determines the obtained sum value as a fourth sound gain value corresponding to the target terminal device, then multiplies the fourth sound gain value by a first preset sound gain proportion set by the intelligent television system according to the number of users, and determines the obtained product as the target sound gain value corresponding to the target terminal device.
The preset sound gain proportion is determined by the smart television system according to the number of users before touching the screen, the preset sound gain proportions corresponding to different numbers of users are different, in specific implementation, a mapping table of the number of users and the preset sound gain proportion can be set according to actual conditions, and after the number of users before touching the screen is determined by the smart television system, the corresponding preset sound gain proportion can be determined by searching the mapping table.
And step S30, the intelligent television system adjusts the audio power corresponding to the target terminal equipment according to the target sound gain value so as to eliminate the noise in the target terminal equipment.
And the intelligent television system adjusts the audio power corresponding to the target terminal equipment according to the target sound gain value, so that the target terminal equipment is reduced due to the excessively strong audio power, and howling noise is inhibited.
Further, the noise canceling method further includes:
step l, if the terminal equipment does not carry the touch screen, the intelligent television system acquires the voice interaction times of the terminal equipment within a second preset time length;
step m, if the target interaction times exist in the voice interaction times, the intelligent television system acquires second audio data and a second audio gain value of the terminal equipment corresponding to the target interaction times;
and n, the intelligent television system determines the target terminal equipment corresponding to the sound gain adjustment according to the second audio data and the second sound gain value.
Specifically, if the smart television system detects that the terminal device does not carry the touch screen, the smart television system obtains the number of voice interactions within a second preset time period through an audio collecting device (a microphone, an earphone) in the target terminal device, where the number of voice interactions may be defined according to an actual situation, for example, the number of voice interactions is recorded once in an interaction process with the user from an awake stage to a sleep stage of the terminal device, or the number of voice interactions is recorded once when the terminal device responds to the voice of the user every time, and the second preset time period may also be defined according to an actual situation, for example, a day, and the number of voice interactions with the user within a day that the smart television system obtains the terminal device is also several times.
And then, the intelligent television system detects whether a target frequency greater than a second preset frequency set by the intelligent television system exists in the voice interaction frequency. If the target audio data exists, the intelligent television system obtains second audio data and a second audio gain value in the terminal equipment corresponding to the target times, detects whether the target audio data corresponding to a half of the second audio gain value exists in the second audio data, and if the target audio data exists in the second audio data, the intelligent television system determines that the terminal equipment corresponding to the target audio data is the target terminal equipment corresponding to the audio gain adjustment.
It can be understood that, since the terminal device includes at least one, the number of times of voice interaction between the user and the terminal device also includes at least one, when the number of times of voice interaction is one, the current number of times of voice interaction is directly compared with a second preset number of times set by the smart television system, and if the current number of times of voice interaction is greater than the second preset number of times set by the smart television system, the current number of times of voice interaction is a target number of times of interaction; when the number of voice interaction times is multiple, comparing each voice interaction time with a second preset time set by the intelligent television system one by one, and determining whether the number of voice interaction times is larger than the second preset time set by the intelligent television system or not, namely determining the target interaction times.
If 2 terminal devices are currently provided, namely a terminal device A and a terminal device B, the terminal device A corresponds to one voice interaction frequency, the terminal device B corresponds to one voice interaction frequency, the voice interaction frequency at the moment is two, the target interaction frequency is the voice interaction frequency which is larger than the second preset frequency set by the intelligent television system, and if the voice interaction frequency corresponding to the terminal device A is larger than the second preset frequency set by the intelligent television system, the voice interaction frequency corresponding to the terminal device A is the target interaction frequency and the like.
In this embodiment, when a start instruction of the audio gain adjustment is detected, parameter information of terminal equipment connected to the smart television system is determined according to the start instruction, and at least one target terminal equipment corresponding to the audio gain adjustment is determined in the terminal equipment according to the parameter information, wherein the number of the terminal equipment at least includes one; acquiring a corresponding voice decibel value through an audio collection device in target terminal equipment, acquiring a voice gain value corresponding to the target terminal equipment, and determining a target voice gain value corresponding to the target terminal equipment according to the voice decibel value and the voice gain value; according to the method, the audio power corresponding to the target terminal equipment is adjusted according to the target sound gain value so as to eliminate the noise in the target terminal equipment.
Further, a second embodiment of the noise canceling method of the present invention is provided.
The second embodiment of the noise canceling method differs from the first embodiment of the noise canceling method in that the noise canceling method includes:
step o, if the target terminal device does not carry the touch screen, the intelligent television system detects whether the voice decibel value is within a second preset decibel value range set by the intelligent television system;
step p, if yes, the intelligent television system calculates the product of the sound gain value and a second preset proportion set by the intelligent television system to obtain a corresponding fifth sound gain value, and determines a current sound gain value corresponding to the target terminal equipment;
step q, the intelligent television system detects whether the current sound gain value is larger than a fifth sound gain value;
step r, if the current sound gain value is larger than the fifth sound gain value, the intelligent television system subtracts the human sound decibel value from the current sound gain value to obtain a sixth sound gain value, and detects whether the sixth sound gain value is within a third preset decibel range set by the intelligent television system;
and step s, if the sixth sound gain value is detected to be out of the third preset decibel range, the intelligent television system adjusts the sixth sound gain value to be within the third preset decibel range, and determines the adjusted sixth sound gain value as a target sound gain value corresponding to the target terminal equipment.
Specifically, if the target terminal device is detected to be a terminal device not carrying a touch screen, the smart television system detects whether the human voice decibel is within a second preset decibel range set by the smart television system, if the human voice decibel is detected to be within the second preset decibel range, the smart television system starts a sound gain extremely-fast reduction adjustment mode, namely, the smart television system obtains a sound gain value corresponding to the target terminal device, calculates a product of the sound gain value corresponding to the target terminal device and a second preset proportion set by the smart television system to obtain a corresponding fifth sound gain value, then determines a current sound gain value corresponding to the target terminal device, detects whether the current sound gain value is greater than the fifth sound gain value, if the current sound gain value is greater than the fifth sound gain value, the smart television system subtracts the human voice decibel from the current sound gain value, and obtaining a corresponding sixth sound gain value, then detecting whether the sixth sound gain value is within a third preset decibel range set by the intelligent television system, and if the sixth sound gain value is detected to be within the third preset decibel range, determining the sixth sound gain value as a target sound gain value corresponding to the target terminal equipment by the intelligent television system. If the sixth sound gain value is outside the third preset decibel range, the intelligent television system multiplies the sixth sound gain value by a preset proportion, adjusts the sixth sound gain value to be within the third preset decibel range, and determines the adjusted sixth sound gain value as a target sound gain value corresponding to the target terminal equipment.
If the target terminal device is detected not to carry the touch screen, the target sound gain value corresponding to the target terminal device is determined according to the current sound gain value, the sound gain value and the human sound decibel, and the certainty of the target sound gain value is improved.
In addition, the present invention provides a noise canceling device, and referring to fig. 2, the noise canceling device includes:
the detection module 10 is configured to determine, when a start instruction of the audio gain adjustment is detected, parameter information of a terminal device connected to the smart television system according to the start instruction;
a determining module 20, configured to determine, in the terminal device, at least one target terminal device corresponding to the tone gain adjustment according to the parameter information, where the number of the terminal devices includes at least one;
the determining module is also used for obtaining a corresponding human voice decibel value through an audio collecting device in the target terminal equipment;
an obtaining module 30, configured to obtain a corresponding tone gain value of a target terminal device;
the determining module is also used for determining a target sound gain value corresponding to the target terminal equipment according to the human sound decibel value and the sound gain value;
and the adjusting module 40 is configured to adjust the audio power corresponding to the target terminal device according to the target sound gain value, so as to eliminate the noise in the target terminal device.
Further, the detecting module 10 is further configured to detect a type of the terminal device according to the start instruction;
the obtaining module 30 is further configured to obtain the number of clicks of the terminal device within a first preset duration if the terminal device carries the touch screen;
the obtaining module 30 is further configured to obtain first audio data and a first audio gain value of the terminal device corresponding to the target click number if the target click number exists in the click numbers, where the target click number is greater than a first preset number set by the smart television system;
the determining module 20 is further configured to determine a target terminal device corresponding to the audio gain adjustment according to the first audio data and the first audio gain value.
Further, the detecting module 10 is further configured to detect whether target audio data exists in the first audio data, where a pitch gain value of the target audio data is greater than or equal to half of the first pitch gain value;
the determining module 20 is further configured to determine, if the terminal device corresponding to the target audio data exists, that the terminal device corresponding to the target audio data is the target terminal device corresponding to the audio gain adjustment.
Further, the obtaining module 30 is further configured to obtain the number of voice interactions of the terminal device within a second preset duration if the terminal device does not carry the touch screen;
the obtaining module 30 is further configured to obtain second audio data and a second audio gain value of the terminal device corresponding to the target interaction times if the target interaction times exist in the voice interaction times, where the target interaction times are greater than a second preset time set by the smart television system;
the determining module 20 is further configured to determine a target terminal device corresponding to the tone gain adjustment according to the second audio data and the second tone gain value.
Further, the detection module 10 is further configured to detect whether the decibel value of the human voice is within a first preset decibel value range set by the smart television system if the target terminal device carries the touch screen;
the obtaining module 30 is further configured to, if yes, obtain the number of users corresponding to the touch screen before the target terminal device acquires the touch screen through the image acquisition device;
the determining module 20 is further configured to determine a target audio gain value corresponding to the target terminal device according to the audio gain value and the number of users.
Further, the determination module 20 includes:
the calculating unit is used for halving the sound gain value to obtain a corresponding third sound gain value, and calculating the sum of the number of the users and the third sound gain value to obtain a corresponding fourth sound gain value;
the calculating unit is further configured to calculate a product of the fourth audio gain value and a preset audio gain ratio to obtain a target audio gain value corresponding to the target terminal device, where the preset audio gain ratio is determined by the smart television system according to the number of users.
Further, the detection module 10 is further configured to detect whether the decibel value of the human voice is within a second preset decibel value range set by the smart television system if the target terminal device does not carry the touch screen;
the calculating unit is further used for calculating the product of the sound gain value and a second preset proportion set by the smart television system if the sound gain value is larger than the second preset proportion set by the smart television system, and obtaining a corresponding fifth sound gain value;
the determining module 20 is further configured to determine a current audio gain value corresponding to the target terminal device;
the detecting module 10 is further configured to detect whether the current value of the gain of the tone is greater than a fifth value of the gain of the tone;
the calculation unit is further configured to subtract the human voice decibel value from the current voice gain value to obtain a sixth voice gain value if the current voice gain value is greater than the fifth voice gain value;
the detection module 10 is further configured to detect whether the sixth gain value is within a third preset decibel range set by the smart television system;
the adjusting module 40 is further configured to adjust the sixth audio gain value to be within a third preset decibel range if it is detected that the sixth audio gain value is outside the third preset decibel range;
the determining module 20 is further configured to determine the adjusted sixth sound gain value as a target sound gain value corresponding to the target terminal device.
The specific implementation of the noise-based canceling device of the present invention is substantially the same as that of the embodiments of the noise-based canceling method, and is not described herein again.
In addition, the invention also provides an intelligent television system. As shown in fig. 3, fig. 3 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 3 is a schematic structural diagram of a hardware operating environment of the smart television system.
As shown in fig. 3, the smart tv system may include: a processor 1001, such as a CPU (Central Processing Unit), a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. A communication bus 1002 is used to enable connection communications between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a keyboard (board), and the optional user interface 1003 may include a standard wired interface (e.g., a USB (Universal Serial Bus) interface), and a wireless interface (e.g., a bluetooth interface). The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the smart tv system may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
Those skilled in the art will appreciate that the smart television system architecture shown in fig. 3 does not constitute a limitation of the smart television system and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a kind of computer storage medium, may include therein an operating device, a network communication module, a user interface module, and a noise canceling program. The operating device is a program for managing and controlling hardware and software resources of the intelligent television system, and supports the operation of the noise elimination program and other software or programs.
In the smart tv system shown in the figure, the user interface 1003 is mainly used for the user terminal to send a start instruction of the audio gain adjustment to the smart tv system; the network interface 1004 is mainly used for the smart tv system to perform data communication with the user terminal; the processor 1001 may be adapted to invoke a noise cancellation program stored in the memory 1005 and to perform the steps of the noise cancellation method as described above.
The specific implementation of the smart tv system of the present invention is substantially the same as the embodiments of the noise canceling method described above, and will not be described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a noise cancellation program is stored on the computer-readable storage medium, and when the noise cancellation program is executed by a processor, the steps of the noise cancellation method are implemented.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the noise cancellation method described above, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solution of the present invention may be embodied in the form of software goods, which are stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), and include instructions for enabling an intelligent television system to complete the method of the embodiments of the present invention.