CN112333530B - Audio adjusting method, device and computer readable storage medium - Google Patents

Audio adjusting method, device and computer readable storage medium Download PDF

Info

Publication number
CN112333530B
CN112333530B CN202010422087.7A CN202010422087A CN112333530B CN 112333530 B CN112333530 B CN 112333530B CN 202010422087 A CN202010422087 A CN 202010422087A CN 112333530 B CN112333530 B CN 112333530B
Authority
CN
China
Prior art keywords
audio
decibel
noise
target terminal
television
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010422087.7A
Other languages
Chinese (zh)
Other versions
CN112333530A (en
Inventor
王云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010422087.7A priority Critical patent/CN112333530B/en
Publication of CN112333530A publication Critical patent/CN112333530A/en
Application granted granted Critical
Publication of CN112333530B publication Critical patent/CN112333530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/60Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals
    • H04N5/602Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals for digital sound signals
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Control Of Amplification And Gain Control (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses an audio adjusting method, an audio adjusting device and a computer readable storage medium, wherein the audio adjusting method comprises the following steps: acquiring audio data of a television within a preset time period, and determining the audio decibel level of the television based on the audio data; acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level; and adjusting the working mode of the target terminal according to the equipment noise, and adjusting the audio data based on the adjusted target terminal. The invention can enable the intelligent television to automatically adjust the volume according to the noise.

Description

Audio adjusting method, device and computer readable storage medium
Technical Field
The present invention relates to the field of audio adjusting technology, and in particular, to an audio adjusting method, an audio adjusting device, and a computer-readable storage medium.
Background
With the rapid development of smart homes, more and more smart terminal devices are connected into smart homes, so that smart televisions in the smart homes face more and more challenges. For example, when a smart television plays a television program, if other machines (such as a dust collection robot, a floor sweeping robot, etc.) in a smart home are also running, noise may be generated, which affects the watching effect of a user, so that the user needs to manually adjust the sound of the smart television. Therefore, how to enable the smart television to automatically adjust the volume according to the noise becomes a technical problem to be solved urgently at present.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
The invention mainly aims to provide an audio adjusting method, audio adjusting equipment and a computer readable storage medium, and aims to solve the technical problem of how to automatically adjust the volume of a smart television according to noise.
In order to achieve the above object, the present invention provides an audio adjusting method, including:
acquiring audio data of a television within a preset time period, and determining the audio decibel level of the television based on the audio data;
acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level;
and adjusting the working mode of the target terminal according to the equipment noise, and adjusting the audio data based on the adjusted target terminal.
Optionally, the step of adjusting the operating mode of the target terminal according to the device noise includes:
detecting whether the audio data matches a target noise in the device noise;
and if the matching is carried out, adjusting the working mode of the target terminal.
Optionally, the step of adjusting the audio data based on the adjusted target terminal includes:
acquiring the adjusted target equipment noise generated by the target terminal, and detecting whether the target equipment noise is smaller than a preset value;
and if so, acquiring an audio decibel proportion occupied by the background audio decibels in the audio data, and adjusting the audio data according to the audio decibel proportion.
Optionally, the step of obtaining an audio decibel ratio occupied by a background audio decibel in the audio data includes:
acquiring a background audio decibel and a white audio decibel in the audio data, and calculating an average audio decibel according to the background audio decibel and the white audio decibel;
and calculating the ratio between the background audio decibels and the average audio decibels, and taking the ratio as an audio decibel ratio.
Optionally, the step of adjusting the audio data according to the audio decibel scale includes:
if the audio decibel proportion is smaller than a preset proportion, performing enhancement processing on the white audio decibels in the audio data;
and if the audio decibel proportion is larger than or equal to a preset proportion, respectively enhancing the white audio decibel and the background audio decibel in the audio data.
Optionally, the step of obtaining, according to the decibel level of the audio, the device noise generated by the target terminal corresponding to the television includes:
determining the noise level generated by a target terminal corresponding to the television according to the audio decibel level;
and determining the equipment noise generated by the target terminal according to the noise level.
Optionally, the step of determining the device noise generated by the target terminal according to the noise level includes:
determining mode noises corresponding to all working modes of the target terminal according to the noise level, and determining the noise range of the target terminal according to each mode noise;
and acquiring a terminal audio frequency generated by the target terminal, and taking the terminal audio frequency as equipment noise if the terminal audio frequency is in the noise range.
Optionally, the step of acquiring audio data of the television within a preset time period includes:
detecting whether the environmental noise decibel of the environment where the television is located is greater than a preset noise decibel or not;
and if the environmental noise decibel is greater than the preset noise decibel, acquiring audio data of the television within a preset time period.
In addition, in order to achieve the above object, the present invention also provides an audio adjusting apparatus;
the audio adjusting apparatus includes: a memory, a processor and an audio conditioning program stored on the memory and executable on the processor, the audio conditioning program when executed by the processor implementing the steps of the audio conditioning method as described above.
In addition, to achieve the above object, the present invention also provides a computer storage medium;
the computer storage medium has stored thereon an audio adjustment program that, when executed by a processor, implements the steps of the audio adjustment method as described above.
The embodiment of the invention provides an audio adjusting method, audio adjusting equipment and a computer readable storage medium, wherein audio data of a television in a preset time period are obtained, and the audio decibel level of the television is determined based on the audio data; acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level; and adjusting the working mode of the target terminal according to the equipment noise, and adjusting the audio data based on the adjusted target terminal. The method comprises the steps of determining the equipment noise by acquiring the decibel level of the audio frequency of the television, adjusting the working mode of a target terminal according to the equipment noise, and adjusting the audio frequency data, so that the phenomenon that a user needs to manually adjust the sound of the television when the noise exists in the prior art is avoided, the volume of the television can be automatically adjusted according to the noise, and the influence of the noise on the normal operation of the television is avoided.
Drawings
FIG. 1 is a schematic diagram of an audio conditioning apparatus for a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an audio adjusting method according to the present invention;
FIG. 3 is a schematic diagram of the device unit of the audio conditioning apparatus of the present invention;
FIG. 4 is a flowchart illustrating an audio adjusting method according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
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.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an audio conditioning apparatus in a hardware operating environment according to an embodiment of the present invention.
The audio adjusting device comprises video terminal equipment such as a mobile phone.
As shown in fig. 1, the audio adjusting apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Optionally, the audio conditioning device may further include a camera, RF (Radio Frequency) circuitry, a sensor, audio circuitry, a WiFi module, and so forth. Such as light sensors, motion sensors, and other sensors, among others. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or the backlight when the terminal device is moved to the ear. Of course, the audio adjusting apparatus may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the audio conditioning apparatus configuration shown in fig. 1 does not constitute a limitation of the audio conditioning apparatus and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an audio adjustment program.
In the audio conditioning apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and communicating data with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the audio adaptation program stored in the memory 1005 and perform the following operations:
acquiring audio data of a television within a preset time period, and determining the audio decibel level of the television based on the audio data;
acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level;
and adjusting the working mode of the target terminal according to the equipment noise, and adjusting the audio data based on the adjusted target terminal.
Referring to fig. 2, in an embodiment of the audio adjusting method, the audio adjusting method includes the following steps:
step S10, audio data in a preset time period are obtained, and the audio decibel level of the television is determined based on the audio data;
the embodiment is mainly applied to smart home, and the communication connection of each equipment in the smart home is established based on the internet of things technology, such as the communication connection between smart devices such as a smart television, a smart refrigerator, a smart juice extractor or a smart juice crusher, a smart floor sweeping robot and a smart dust collection robot. Therefore, in this embodiment, as shown in fig. 4, the smart television (an internet of things control device such as a smart speaker) includes an intelligent noise level identification scheduling module, an automatic enhanced speech dialog module, and an automatic audio dialog enhancement display module. The intelligent noise level identification scheduling module automatically adjusts the working mode of the intelligent equipment according to the low-frequency noise, the medium-frequency noise and the high-frequency noise of the environment. The intelligent television automatically adjusts the working modes of other intelligent devices in the current environment according to the noise dynamic state to reduce the noise, and adjusts the relevant volume of the intelligent television so as to improve the influence of the current environment noise on the operation of the intelligent television. Also, in the present embodiment, the noise is equivalent to the noise.
Therefore, in this embodiment, the smart television first determines whether the environmental noise decibel of the current environment is greater than a preset noise decibel (e.g., 30% of the average noise decibel), if the environmental noise decibel is greater than 30% of the average noise decibel, the smart television sets 1 identifier (1, identifier starts the noise level device), and the smart television starts the smart noise level identification scheduling module. At this time, audio data output by a television (i.e., a smart television) within a preset time period can be acquired, for example, the smart television acquires audio data of every 1 second of a wireless network television (the audio of the television itself) microphone unit time and stores the audio data into the memory 11, the smart television extracts the audio frequency and decibels of the memory 11 for 0.5 second and stores the audio frequency and decibels into the memory 12, and the smart television acquires the frequency and decibels (i.e., the audio data) of the memory 12 to determine the audio decibel level of the television. In the present embodiment, the audio decibel levels are preferably divided into 3, but not limited to these 3. If the audio frequency of the current program acquired by the smart television is less than 100Hz and the audio decibel is less than 35 decibels (i.e., the audio frequency and the decibel in the memory 12), the television can start a single low-frequency noise identification scheduling mode; if the audio frequency of the current program obtained by the smart television is greater than or equal to 100Hz but less than 300Hz, and the audio decibel is greater than or equal to 35 decibels but less than 60 decibels (i.e., the audio frequency and the decibels in the memory 12), the television can start a single medium frequency noise identification scheduling mode; if the audio frequency of the current program obtained by the smart tv is greater than or equal to 300Hz but less than 1500Hz, and the audio decibel is greater than or equal to 60 decibels but less than 120 decibels (i.e., the audio frequency and the decibels in the memory 12), the tv may start the single high frequency noise identification scheduling mode. The preset time period can be any time period set in advance by a user, and the audio data comprises the audio frequency and the audio decibel of the television. The audio decibel level may be a range of values of audio decibels.
Step S20, acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level;
in this embodiment, after the audio decibel level of the television is determined, the device noise generated by the target terminal corresponding to the television (i.e., the intelligent device connected to the television, such as an intelligent juice extractor, an intelligent floor-sweeping robot, an intelligent dust-collecting robot, etc.) can be directly obtained according to the audio decibel level. If the audio frequency of the television is less than 100Hz and the audio decibel is less than 35 decibels, the smart television acquires audio data of the intelligent juice extractor or the intelligent juice extractor at the highest gear which normally works per 1 second unit time, and stores the audio data into the memory 22. And acquiring audio data of the intelligent juice extractor or the intelligent juice extractor at the lowest gear which normally works per 1 second in unit time, storing the audio data into the memory 23, subtracting the audio frequency and the audio decibel at the lowest gear in the memory 23 from the audio frequency and the audio decibel at the highest gear in the memory 22 to obtain an audio frequency range and an audio decibel range of the intelligent juice extractor or the intelligent juice extractor, and storing the audio frequency range and the audio decibel range into the memory 24. The smart tv then acquires the frequency of the memory 12 and the frequency of the memory 44 to determine the number of times of the same frequency occurring every unit time of 0.5 seconds, counts 1 every 1 occurrence, accumulatively adds and saves in the memory 33, and determines that the audio data matches the equipment noise of the target terminal (i.e., the smart juicer or the smart shredder) when the number of times in the memory 33 is greater than 1.
When the audio frequency of the television is greater than or equal to 100Hz but less than 300Hz and the audio decibel is greater than or equal to 35 decibel but less than 60 decibel, the smart television acquires audio data of the intelligent floor sweeping robot at the highest gear in normal operation per unit time per 1 second and stores the audio data in the memory 42. And acquiring audio data of the intelligent floor-sweeping robot at the lowest gear in normal operation per 1 second per unit time, storing the audio data into the memory 43, subtracting the audio frequency and the audio decibel at the lowest gear in the memory 43 from the audio frequency and the audio decibel at the highest gear in the memory 42 to obtain an audio frequency range and an audio decibel range of the intelligent floor-sweeping robot, and storing the audio frequency range and the audio decibel range into the memory 44. The smart television then obtains the frequency of the memory 12 and the frequency of the memory 44 to determine the number of times of the same frequency occurring every unit time for 0.5 second, counts 1 every time of occurrence, accumulatively adds and saves in the memory 55, and when the number of times in the memory 55 is greater than 1, determines that the audio data matches the device noise of the target terminal (i.e., the intelligent sweeping robot).
When the audio frequency of the television is greater than or equal to 300Hz but less than 1500Hz, and the audio decibel is greater than or equal to 60 dB but less than 120 dB, the intelligent television acquires audio data of the intelligent dust collection robot at the highest working gear in unit time every 1 second, and stores the audio data into the memory 72. And acquiring audio data of the intelligent dust collection robot at the lowest gear which normally works per 1 second in unit time, storing the audio data into the memory 73, subtracting the audio frequency and the audio decibel of the lowest gear in the memory 73 from the audio frequency and the audio decibel of the highest gear in the memory 72 to obtain an audio frequency range and an audio decibel range of the intelligent dust collection robot, and storing the audio frequency range and the audio decibel range into the memory 74. Then the smart tv acquires the frequency of the memory 12 and the frequency of the memory 74 to determine the number of times of the same frequency occurring every unit time for 0.5 second, counts 1 every 1 occurrence, accumulatively adds and saves into the memory 88, and when the number of times in the memory 88 is greater than 1, determines that the audio data matches the device noise of the target terminal (i.e., the smart robot cleaner). It should be noted that, when there are multiple target terminals, the television acquires the device noise generated by the multiple target terminals meeting the audio decibel level requirement, and the same processing steps are adopted for each target terminal.
And S30, adjusting the working mode of the target terminal according to the equipment noise, and adjusting the audio data based on the adjusted target terminal.
When the audio data is judged to be matched with the equipment noise, the working mode of the target terminal can be adjusted. For example, when the target terminal is an intelligent juice extractor or an intelligent juice crusher and the number of times in the intelligent memory 33 is greater than 1, the working mode of the intelligent juice extractor or the intelligent juice crusher is obtained, and the working mode is adjusted, for example, the gear of the intelligent juice extractor or the intelligent juice crusher is lowered by one gear, the gear for executing the operation of the intelligent juice extractor or the intelligent juice crusher is set, and the identifier 1 is stored in the memory 34. When the target terminal is the intelligent sweeping robot and the number of times in the intelligent storage 55 is greater than 1, the working mode of the intelligent sweeping robot is obtained, and the working mode is adjusted, for example, the gear of the intelligent sweeping robot is lowered by one gear, and the gear for executing the work of the intelligent sweeping robot is set, and the identifier 1 is stored in the storage 66. When the target terminal is the intelligent dust collection robot and the number of times in the intelligent storage 88 is greater than 1, the working mode of the intelligent dust collection robot is obtained, and the working mode is adjusted, for example, the gear of the intelligent dust collection robot is lowered by one gear, the gear for executing the work of the intelligent dust collection robot is set, and the identifier 1 is stored in the storage 99.
And acquiring the identifiers in the memory 34, the memory 66 and the memory 99, summing the identifiers, storing the summed identifiers in the memory 100, and when the sum of the identifiers in the memory 100 is greater than 1, determining that the smart television has started automatic voice dialogue, and then adjusting the audio data. That is, after it is determined that there is an adjustment to the operation mode of the target terminal, the audio data may be adjusted. The audio data may be adjusted by the way that the tv obtains the decibel of the average background audio (i.e., background audio decibel) of the tv microphone voice in 1 second per unit time and stores the decibel of the average white audio (i.e., white audio decibel) of the tv microphone voice in 1 second per unit time in the memory 111, and obtains the decibel of the microphone voice in 1 second per unit time and stores the decibel in the memory 222. The audio decibel in the memory 111 is added to the audio decibel in the memory 222 and divided by 2 to obtain an average audio decibel, the average audio decibel is stored in the memory 333, the background audio decibel in the memory 111 is divided by the average audio decibel in the memory 333 to obtain the ratio of the background audio decibel to the average audio decibel, and the ratio is stored in the memory 444. And when the proportion in the memory 444 is less than 50 percent, it can be determined that the contrast of the background sound is small, and the background sound does not need to be enhanced, so that the background sound field can be started to increase the contrast mode, that is, the television acquires the audio of the played audio contrast part, the gain is increased by 1 time of average audio decibel, and after the gain of the contrast audio increased by 1 time is completed, the identifier 1 is set and stored in the memory 555. If the proportion in the memory 444 is more than 50 percent, it is determined that the contrast of the background sound of the television is mainly human, and the background sound is large and needs to be enhanced, so the background sound action field can be started to increase the contrast mode, that is, the television acquires the audio of the played audio contrast part, the gain is increased by 2 times of average audio decibels, acquires the audio of the played audio background part, the gain is increased by more than 1 time, and after the contrast audio gain increased by 2 times and the background audio is increased, the setting identifier 1 is stored in the memory 666. And displays the distribution in memory 555 or memory 66 in the screen of the television.
In the embodiment, audio data of a television in a preset time period is obtained, and the audio decibel level of the television is determined based on the audio data; acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level; and adjusting the working mode of the target terminal according to the equipment noise, and adjusting the audio data based on the adjusted target terminal. The equipment noise is determined by obtaining the audio decibel level of the television, the working mode of the target terminal is adjusted according to the equipment noise, and the audio data is adjusted, so that the phenomenon that a user needs to manually adjust the sound of the television when the noise exists in the prior art is avoided, the volume of the television can be automatically adjusted according to the noise, and the influence of the noise on the normal operation of the television is avoided.
Further, on the basis of the first embodiment of the present invention, a second embodiment of the audio adjusting method of the present invention is further provided, and this embodiment is step S30 of the first embodiment of the present invention, and a refinement of the step of adjusting the operating mode of the target terminal according to the device noise includes:
step x, detecting whether the audio data is matched with a target noise in the equipment noise;
in the present embodiment, the audio data includes a plurality of audio frequencies, and the device noise also includes a plurality of noise frequencies. Therefore, after the device noise generated by the target terminal and the audio data output by the television are acquired, the audio frequency and the noise frequency acquired in the same time period need to be compared, if the audio frequency and the noise frequency are the same in a certain time period, the noise frequency can be taken as the target frequency, and the noise corresponding to the target frequency is taken as the target noise, so that the matching between the audio data and the target noise in the device noise can be determined.
And y, if the target terminal is matched with the target terminal, adjusting the working mode of the target terminal.
When the audio data is found to be matched with the target noise in the device noise through judgment, the number of the target terminals needs to be determined, and if only one target terminal is needed, the working mode of the target terminal can be directly adjusted, such as gear down-regulation and other operations. However, if there are a plurality of target terminals, it is necessary to determine a terminal that generates target noise and adjust an operation mode of the terminal. However, when the audio data is not matched with the target noise in the device noise, the corresponding prompt message is output to remind the user that the audio data cannot be automatically adjusted.
In the embodiment, when the audio data is matched with the target noise in the device noise, the working mode of the target terminal is adjusted, so that the normal output of the audio data of the television is ensured.
Further, the step of adjusting the audio data based on the adjusted target terminal includes:
step a, acquiring the noise of target equipment generated by an adjusted target terminal, and detecting whether the noise of the target equipment is less than a preset value;
in this embodiment, after the operating mode of the target terminal is adjusted (e.g., the gear mode of the target terminal is adjusted), noise generated by the adjusted target terminal, that is, target device noise is obtained, and whether the adjusted noise affects normal operation of the television is detected, that is, whether the target device noise is smaller than a preset value (which may be any value set in advance by a user) is detected, and different operations are performed according to different detection results.
And b, if so, acquiring an audio decibel proportion occupied by the background audio decibels in the audio data, and adjusting the audio data according to the audio decibel proportion.
And when the noise of the target equipment is found to be smaller than the preset value through judgment, the background audio decibel and the dialogue audio decibel in the audio data can be obtained, the audio decibel proportion occupied by the background audio decibel in the audio data is calculated, and then the audio data is adjusted according to the audio decibel proportion. Wherein the audio data comprises a background audio decibel and a dialogue audio decibel. The background audio decibels may be the decibels of the average background audio of the television microphone per unit time of 1 second in the television. The decibel to white audio may be the average decibel to white audio per unit time of 1 second for a microphone voice in a television. However, if the noise of the target device is greater than or equal to the preset value, it may be determined that the noise of the target terminal still affects the normal operation of the television, and the operation mode of the target terminal needs to be continuously adjusted until the new noise of the target device is greater than or equal to the preset value.
In this embodiment, when the target device noise generated by the other device is smaller than the preset value, the audio data is adjusted according to the audio decibel ratio, so that the accuracy of adjusting the audio data is ensured.
Specifically, the step of obtaining an audio decibel ratio occupied by the background audio decibels in the audio data includes:
step c, acquiring a background audio decibel and a dialogue audio decibel in the audio data, and calculating an average audio decibel according to the background audio decibel and the dialogue audio decibel;
in this embodiment, it is necessary to obtain a background audio decibel and a white audio decibel in the audio data, respectively, then calculate a sum of the background audio decibel and the white audio decibel, divide the sum by 2 to obtain an average value, and use the average value as the average audio decibel.
And d, calculating the proportion between the background audio decibel and the average audio decibel, and taking the proportion as the audio decibel proportion.
After the average audio decibel is obtained through calculation, the proportion between the background audio decibel and the average audio decibel can be calculated, and the proportion is used as the audio decibel proportion to determine the proportion occupied by the background audio decibel in the whole audio data, so that whether enhancement processing needs to be carried out on the background audio is determined.
In this embodiment, the average audio decibel is calculated according to the background audio decibel and the dialogue audio decibel in the audio data, and then the ratio of the background audio decibel to the average audio decibel is calculated and taken as the audio decibel ratio, so that the accuracy of calculating the audio decibel ratio is guaranteed.
Specifically, the step of adjusting the audio data according to the audio decibel ratio includes:
step e, if the audio decibel proportion is smaller than a preset proportion, enhancing the white audio decibel in the audio data;
after the audio decibel ratio is calculated, it is further required to detect whether the audio decibel ratio is smaller than a preset ratio (i.e., an arbitrary ratio value, such as 50%, set by the user in advance). If the audio decibel ratio is smaller than the preset ratio, enhancement processing can be performed on the white audio decibels in the audio data, for example, the white audio decibels are subjected to audio decibels with gain increased by 1 time of average. Note that no enhancement is performed on the background audio decibels at this time.
And f, if the audio decibel ratio is greater than or equal to a preset ratio, respectively enhancing the white audio decibels and the background audio decibels in the audio data.
When the audio decibel ratio is greater than or equal to the preset ratio, the white audio decibel and the background audio decibel in the audio data need to be enhanced respectively. If the television acquires the audio of the dialog part of the played audio (namely, the dialog audio decibels), the gain is increased by 2 times of average audio decibels, and acquires the audio of the background part of the played audio (namely, the background audio decibels), and the gain is increased by more than 1 time.
In this embodiment, the white audio decibels are enhanced when the audio decibel ratio is smaller than the preset ratio, and the white audio decibels and the background audio decibels are enhanced when the audio decibel ratio is greater than or equal to the preset ratio, so that the accuracy of adjusting the audio data is ensured.
Further, the step of obtaining the device noise generated by the target terminal corresponding to the television according to the audio decibel level includes:
step g, determining the noise level generated by a target terminal corresponding to the television according to the audio decibel level;
in this embodiment, after determining the decibel level of the audio frequency of the television, the noise level identification mode of the television can be directly determined according to the decibel level of the audio frequency, and the noise level generated by the target terminal corresponding to the television, such as low-frequency noise, medium-frequency noise and high-frequency noise, can be obtained based on the noise level identification mode.
And h, determining the equipment noise generated by the target terminal according to the noise level.
After the noise level is determined, the type of the target terminal can be directly determined according to the noise level, if the target terminal is determined to be the intelligent sweeping robot, the audio frequency and the audio decibel of the lowest gear and the audio frequency and the audio decibel of the highest gear can be determined when the intelligent sweeping robot normally works, the frequency between the audio frequency of the lowest gear and the audio frequency of the highest gear and the decibel between the audio decibel of the lowest gear and the audio decibel of the highest gear are used as a noise range of noise generated by the target terminal, and after the noise range is determined, when the noise generated by the target terminal is detected and the noise value of the noise is within the noise range, the noise value can be used as equipment noise.
In the embodiment, the noise level of the target terminal is determined according to the decibel level of the audio, and the equipment noise is determined according to the noise level, so that the accuracy of the obtained equipment noise is guaranteed.
Further, the step of determining the noise range generated by the target terminal according to the noise level includes:
and k, determining mode noises corresponding to all working modes of the target terminal according to the noise level, and determining the noise value generated by the target terminal according to each mode noise.
In this embodiment, after determining the noise level of the target terminal, the noise corresponding to all the operation modes of the target terminal, i.e. the mode noise, may be determined according to the noise level. And determining the highest noise and the lowest noise from the pattern noises, namely determining the noise (including the audio frequency and audio decibel of the lowest gear) of the target terminal when the working mode is the lowest gear and the noise (including the audio frequency and audio decibel of the highest gear) of the target terminal when the working mode is the highest gear, and taking the range from the lowest noise to the highest noise as the noise range of the noise generated by the target terminal, namely taking the frequency from the audio frequency of the lowest gear to the audio frequency of the highest gear and taking the decibel from the audio decibel of the lowest gear to the audio decibel of the highest gear as the noise range of the noise generated by the target terminal.
And p, acquiring a terminal audio frequency generated by the target terminal, and taking the terminal audio frequency as equipment noise if the terminal audio frequency is in the noise range.
After the noise range of the target terminal is determined, the terminal audio (including audio frequency and audio decibel) generated by the target terminal can be directly obtained, the terminal audio and the noise range are compared, and when the terminal audio is found to be in the noise range, namely the audio frequency and the audio decibel of the terminal audio are in the noise range, the terminal audio can be directly used as equipment noise.
In this embodiment, mode noises corresponding to all working modes of the target terminal are determined according to the noise level, a noise range is determined based on each mode noise, and equipment noise is determined according to the noise range, so that the accuracy of the obtained equipment noise is guaranteed.
Further, the step of acquiring the audio data of the television within the preset time period includes:
step m, detecting whether the environmental noise decibel of the environment where the television is located is larger than a preset noise decibel or not;
in this embodiment, before obtaining the audio data, it is further required to detect a noise decibel of an environment where the television is located, that is, an environmental noise decibel, and detect whether the environmental noise decibel of the environment where the television is located is greater than a preset noise decibel, and execute different operations based on different detection results. The preset noise decibel may be any noise decibel set in advance by a user, such as 30% of the mean noise decibel, and the mean noise decibel may be an average value of noise decibels obtained by the television within a certain time range before the current time.
And n, if the ambient noise decibel is greater than the preset noise decibel, acquiring audio data of the television within a preset time period.
When the environmental noise decibel is larger than the preset noise decibel, the normal operation of the television can be influenced by the environmental noise of the environment where the television is located, and therefore the audio data of the television in the preset time period can be directly obtained. If the ambient noise decibel is less than or equal to the preset noise decibel, the ambient noise decibel of the environment where the television is located is continuously detected.
In this embodiment, when the ambient noise decibel of the environment where the television is located is greater than the preset noise decibel, the audio data of the television in the preset time period is acquired, so that the phenomenon that the audio data is acquired all the time is avoided, and only when the ambient noise is large, the audio data is acquired, so that the resource waste of the television is avoided.
In addition, referring to fig. 3, an embodiment of the present invention further provides an audio adjusting apparatus, where the audio adjusting apparatus includes:
the acquisition unit A10 is used for acquiring audio data of a television within a preset time period and determining the audio decibel level of the television based on the audio data;
the detection unit A20 is used for acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level;
and the adjusting unit A30 is used for adjusting the working mode of the target terminal according to the equipment noise and adjusting the audio data based on the adjusted target terminal.
Optionally, the adjusting unit a30 is configured to:
detecting whether the audio data matches a target noise in the device noise;
and if so, adjusting the working mode of the target terminal.
Optionally, the adjusting unit a30 is configured to:
acquiring the adjusted target equipment noise generated by the target terminal, and detecting whether the target equipment noise is smaller than a preset value;
if so, acquiring an audio decibel proportion occupied by the background audio decibels in the audio data, and adjusting the audio data according to the audio decibel proportion.
Optionally, the adjusting unit a30 is configured to:
acquiring a background audio decibel and a white audio decibel in the audio data, and calculating an average audio decibel according to the background audio decibel and the white audio decibel;
and calculating the ratio between the background audio decibels and the average audio decibels, and taking the ratio as an audio decibel ratio.
Optionally, the adjusting unit a30 is configured to:
if the audio decibel proportion is smaller than a preset proportion, performing enhancement processing on the white audio decibels in the audio data;
and if the audio decibel proportion is larger than or equal to a preset proportion, respectively enhancing the white audio decibel and the background audio decibel in the audio data.
Optionally, the detecting unit a20 is configured to:
determining the noise level generated by a target terminal corresponding to the television according to the audio decibel level;
and determining the equipment noise generated by the target terminal according to the noise level.
Optionally, the detecting unit a20 is configured to:
determining mode noises corresponding to all working modes of the target terminal according to the noise level, and determining the noise range of the target terminal according to each mode noise;
and acquiring a terminal audio frequency generated by the target terminal, and if the terminal audio frequency is in the noise range, taking the terminal audio frequency as equipment noise.
Optionally, the obtaining unit a10 is further configured to:
detecting whether the ambient noise decibel of the environment where the television is located is greater than a preset noise decibel or not;
and if the ambient noise decibel is greater than the preset noise decibel, acquiring audio data of the television within a preset time period.
The steps implemented by the functional modules of the audio adjusting apparatus may refer to the embodiments of the audio adjusting method of the present invention, and are not described herein again.
The present invention also provides an audio adjusting apparatus, including: a memory, a processor, a communication bus, and an audio conditioning program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the audio adjusting program to implement the steps of the embodiments of the audio adjusting method.
The present invention also provides a computer readable storage medium storing one or more programs, the one or more programs being further executable by one or more processors for implementing the steps of the above-described audio conditioning embodiments.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the audio adjusting method described above, and is not 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 system 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 system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system 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 in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (9)

1. An audio adjusting method, characterized in that the audio adjusting method comprises the steps of:
acquiring audio data of a television within a preset time period, and determining the audio decibel level of the television based on the audio data;
acquiring equipment noise generated by a target terminal corresponding to the television according to the audio decibel level;
adjusting the working mode of the target terminal according to the equipment noise, and adjusting the audio data based on the adjusted target terminal;
wherein the step of adjusting the audio data based on the adjusted target terminal comprises:
acquiring the adjusted target equipment noise generated by the target terminal, and detecting whether the target equipment noise is smaller than a preset value;
if so, acquiring an audio decibel proportion occupied by the background audio decibels in the audio data, and adjusting the audio data according to the audio decibel proportion.
2. The audio conditioning method of claim 1, wherein the step of adjusting the operating mode of the target terminal based on the device noise comprises:
detecting whether the audio data matches a target noise in the device noise;
and if the matching is carried out, adjusting the working mode of the target terminal.
3. The audio conditioning method of claim 1, wherein the step of obtaining an audio decibel ratio occupied by a background audio decibel in the audio data comprises:
acquiring a background audio decibel and a dialogue audio decibel in the audio data, and calculating an average audio decibel according to the background audio decibel and the dialogue audio decibel;
and calculating the proportion between the background audio decibel and the average audio decibel, and taking the proportion as the audio decibel proportion.
4. The audio conditioning method of claim 2, wherein the step of adjusting the audio data according to the audio decibel scale comprises:
if the audio decibel ratio is smaller than a preset ratio, enhancing white audio decibels in the audio data;
and if the audio decibel proportion is larger than or equal to a preset proportion, respectively enhancing the white audio decibel and the background audio decibel in the audio data.
5. The audio conditioning method of claim 1, wherein the step of obtaining device noise generated by a target terminal corresponding to the television according to the audio decibel level comprises:
determining the noise level generated by a target terminal corresponding to the television according to the audio decibel level;
and determining the equipment noise generated by the target terminal according to the noise level.
6. The audio conditioning method of claim 5, wherein said step of determining the device noise generated by the target terminal based on the noise level comprises:
determining mode noises corresponding to all working modes of the target terminal according to the noise level, and determining the noise range of the target terminal according to each mode noise;
and acquiring a terminal audio frequency generated by the target terminal, and if the terminal audio frequency is in the noise range, taking the terminal audio frequency as equipment noise.
7. The audio adjusting method according to any one of claims 1 to 6, wherein the step of obtaining audio data of the television within a preset time period comprises:
detecting whether the environmental noise decibel of the environment where the television is located is greater than a preset noise decibel or not;
and if the environmental noise decibel is greater than the preset noise decibel, acquiring audio data of the television within a preset time period.
8. An audio adjusting apparatus, characterized in that the audio adjusting apparatus comprises: memory, a processor and an audio conditioning program stored on the memory and executable on the processor, the audio conditioning program when executed by the processor implementing the steps of the audio conditioning method according to any one of claims 1 to 7.
9. A computer-readable storage medium, having stored thereon an audio adjustment program, which when executed by a processor implements the steps of the audio adjustment method of any one of claims 1 to 7.
CN202010422087.7A 2020-05-18 2020-05-18 Audio adjusting method, device and computer readable storage medium Active CN112333530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010422087.7A CN112333530B (en) 2020-05-18 2020-05-18 Audio adjusting method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010422087.7A CN112333530B (en) 2020-05-18 2020-05-18 Audio adjusting method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112333530A CN112333530A (en) 2021-02-05
CN112333530B true CN112333530B (en) 2022-11-15

Family

ID=74303529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010422087.7A Active CN112333530B (en) 2020-05-18 2020-05-18 Audio adjusting method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112333530B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883121A (en) * 2012-09-24 2013-01-16 北京多看科技有限公司 Method and device for regulating volume, and digital terminal
KR20140137265A (en) * 2013-05-22 2014-12-02 삼성전자주식회사 Communication Terminal, Home Network System, and Method for controlling electronic device in home network system thereof
CN104980337B (en) * 2015-05-12 2019-11-22 腾讯科技(深圳)有限公司 A kind of performance improvement method and device of audio processing
CN107256139A (en) * 2017-05-08 2017-10-17 深圳市科迈爱康科技有限公司 Method of adjustment, terminal and the computer-readable recording medium of audio volume

Also Published As

Publication number Publication date
CN112333530A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN104798301B (en) audio loudness control system
CN107707827B (en) High-dynamic image shooting method and mobile terminal
CN109474879B (en) Microphone testing method, device and storage medium
US9591354B2 (en) Television volume control method and system
CN104393848B (en) Volume adjusting method and device
EP3264332A1 (en) Device and method for recognizing fingerprint
CN107155133B (en) Volume adjusting method, audio playing terminal and computer readable storage medium
CN107421068B (en) Air conditioner control method, electronic device, and computer-readable storage medium
US20150117676A1 (en) Devices and Methods for Audio Volume Adjustment
CN110806849A (en) Intelligent device, volume adjusting method thereof and computer-readable storage medium
CN107277209B (en) Call adjustment method and mobile terminal
CN108810614B (en) Volume adjustment method, system and readable storage medium
CN111163305A (en) Screen adjusting method, device and equipment and readable storage medium
CN112015365A (en) Volume adjustment method and device and electronic equipment
CN113709629A (en) Frequency response parameter adjusting method, device, equipment and storage medium
CN112333530B (en) Audio adjusting method, device and computer readable storage medium
CN109462727B (en) Filter adjusting method and mobile terminal
CN111049972A (en) Audio playing method and terminal equipment
CN112332792A (en) Audio adjusting method, device, equipment and computer readable storage medium
CN113938734A (en) Smart television control method, device and equipment based on radar and storage medium
CN107085497A (en) Method for controlling volume and device
CN108769799B (en) Information processing method and electronic equipment
CN112328068A (en) Method, device and readable storage medium for reducing power consumption of display device
CN112333534B (en) Noise elimination method and device, intelligent television system and readable storage medium
CN112333541A (en) Method, device and equipment for controlling startup and shutdown of display terminal and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant