CN108810614A - Method for regulation of sound volume, system and readable storage medium storing program for executing - Google Patents
Method for regulation of sound volume, system and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN108810614A CN108810614A CN201810749355.9A CN201810749355A CN108810614A CN 108810614 A CN108810614 A CN 108810614A CN 201810749355 A CN201810749355 A CN 201810749355A CN 108810614 A CN108810614 A CN 108810614A
- Authority
- CN
- China
- Prior art keywords
- volume
- television
- value
- environmental
- difference
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/439—Processing of audio elementary streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/60—Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals
- H04N5/602—Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals for digital sound signals
Abstract
The invention discloses a kind of method for regulation of sound volume, system and readable storage medium storing program for executing, method for regulation of sound volume includes:In the current environment volume value for collecting user's local environment, mobile terminal obtains current volume setting value;Environmental volume difference is calculated based on current environment volume value and current volume setting value, mobile terminal obtains pre-set threshold value;If the absolute value of environmental volume difference is more than pre-set threshold value, environmental volume difference is sent to television by mobile terminal;After receiving environmental volume difference, television obtains current television volume value;Television is according to environmental volume difference and current television volume value adjusting output volume value.The television of the present invention can be achieved with being automatically adjusted the current television volume value of television by the realization of user's local environment, interference of the environment to human auditory system when avoiding viewing TV by adjusting output volume value without increasing additional hardware cost.
Description
Technical field
The present invention relates to TV technology more particularly to method for regulation of sound volume, system and readable storage medium storing program for executing.
Background technology
Currently, user is under different acoustic environments when TV reception, it is often necessary to which manual setting volume is to meet
Viewing requires.How intelligence control television sound volume, at current urgent problem.
In the prior art, usually increase environmental volume sensor on a television set to detect environmental volume, this method
It can be influenced by the loudspeaker sound of TV itself, while user and television set have certain viewing distance, and user
It is mobile, while environmental volume is also not necessarily equally distributed.Because of distance factor, environment that this method detects
Volume can not accurately illustrate the environmental volume that user hears.In addition it is exactly to increase sensor on a remote control, this method
It realizes complexity, while needing additional increase hardware cost, can not be widely used in actual production.
Invention content
The main purpose of the present invention is to provide a kind of method for regulation of sound volume, system and readable storage medium storing program for executing, it is intended to solve
The technical issues of television set is to volume adjustment not smart enoughization when user watches TV in the prior art.
To achieve the above object, the present invention provides a kind of method for regulation of sound volume, and the method for regulation of sound volume includes following step
Suddenly:
In the current environment volume value for collecting user's local environment, mobile terminal obtains current volume setting value;
The mobile terminal is based on the current environment volume value and environmental volume difference is calculated in current volume setting value;
If the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal sends environmental volume difference
To television;
After receiving the environmental volume difference, the television obtains current television volume value;
The television is according to the environmental volume difference and current television volume value adjusting output volume value.
Preferably, the television is according to the environmental volume difference and current television volume value adjusting output volume value packet
It includes:
Target sound magnitude is calculated according to the environmental volume difference and current television volume value in the television;
The television is based on the target sound magnitude adjusting output volume value.
Preferably, the target sound magnitude includes first object volume value and the second target sound magnitude;The television root
The step of target sound magnitude is calculated according to the environmental volume difference and current television volume value include:
The television judges whether the environmental volume difference is more than 0;
If the environmental volume difference is more than 0, the television obtains the first mesh after being promoted to current television volume value
Mark with phonetic symbols magnitude;
If the environmental volume difference is less than 0, the television obtains the second mesh after being reduced to current television volume value
Mark with phonetic symbols magnitude.
Preferably, if the environmental volume difference is more than 0, after the television promotes current television volume value
The step of obtaining first object volume value include:
If the environmental volume difference is more than 0, the television obtain the max volume value that television is adjustable to and
The environmental volume maximum difference that television prestores;
The max volume value and TV being adjustable to based on the current television volume value, environmental volume difference, television
Hold the environmental volume maximum difference to prestore that the first object volume value that need to currently adjust is calculated.
Preferably, if the environmental volume difference is less than 0, after the television reduces current television volume value
The step of obtaining the second target sound magnitude include:
If the environmental volume difference is less than 0, the television read the max volume value that television is adjustable to and
The environmental volume maximum difference that television prestores;
The max volume value and TV being adjustable to based on the current television volume value, environmental volume difference, television
Hold the environmental volume maximum difference to prestore that the second target sound magnitude that need to currently adjust is calculated.
Preferably, if the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal is by environment
The step of volume difference is sent to television include:
If the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal is by the environmental volume difference
Volume data is obtained after being encoded with current volume setting value;
The volume data is sent to television by the mobile terminal by communication protocol.
Preferably, described after receiving the environmental volume difference, the television reads current television volume value
Step includes:
After receiving the volume data by the communication protocol, the television solves the volume data
Analysis obtains the current environment volume value and current volume setting value, and obtains current television volume value.
Preferably, described in the current environment volume value for collecting user's local environment, mobile terminal obtains current volume
The step of setting value includes:
The mobile terminal acquires the current environment volume value of user's local environment, and the mobile terminal by sound transducer
Obtain current volume setting value.
In addition, to achieve the above object, the present invention also provides a kind of sound volume adjusting system, the sound volume adjusting system packet
It includes:Memory, processor and it is stored in the volume adjustment program that can be run on the memory and on the processor, it is described
The step of any one of them method for regulation of sound volume among the above is realized when volume adjustment program is executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, being deposited on the readable storage medium storing program for executing
Volume adjustment program is contained, any one of them volume adjustment among the above is realized when the volume adjustment program is executed by processor
The step of method.
In the present invention, the current environment volume value and current volume setting value of user's local environment are collected by mobile terminal
Environmental volume difference is calculated, by the absolute value of environmental volume difference and the comparison of pre-set threshold value, when environmental volume difference
Absolute value be more than pre-set threshold value when, illustrate the user of the environmental disturbances residing for user watch tv effect, need television pair
Current television volume value is adjusted, television by environmental volume difference and current television volume value adjusting output volume value,
Realize the adjust automatically to current television volume value, interference of the environment to human auditory system when avoiding viewing TV.The present invention adopts
Coordinate television with mobile terminal, solve the problems, such as that TV needs external additional hardware that could realize volume adjustment, without increasing
Add additional hardware cost, can be achieved with realizing that the current television volume value progress to television is automatic by user's local environment
Adjustment, it is user-friendly so that user watches tv effect more preferably, have it is at low cost, be easy to implement, intelligence degree is high and
Can extensive utilization the characteristics of.
Description of the drawings
Fig. 1 is the sound volume adjusting system hardware architecture diagram that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of method for regulation of sound volume first embodiment of the present invention;
Fig. 3 is the flow diagram of method for regulation of sound volume second embodiment of the present invention;
Fig. 4 is the flow diagram of method for regulation of sound volume 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of method for regulation of sound volume fourth embodiment of the present invention;
Fig. 6 is in method for regulation of sound volume fourth embodiment of the present invention to current television volume value lifting curve figure;
Fig. 7 is the flow diagram of the 5th embodiment of method for regulation of sound volume of the present invention;
Fig. 8 is that current television volume value reduces curve graph in the 5th embodiment of method for regulation of sound volume of the present invention;
Fig. 9 is the flow diagram of method for regulation of sound volume sixth embodiment of the present invention.
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the sound volume adjusting system structure for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to is shown
It is intended to.
Sound volume adjusting system of the embodiment of the present invention can be PC, can also be smart mobile phone, tablet computer, e-book reading
Device, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio
Level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression
Standard audio level 3) the packaged type system equipment with display function such as player, pocket computer.
As shown in Figure 1, the sound volume adjusting system may include:Processor 1001, such as CPU, network interface 1004, user
Interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection between these components
Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user
Interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally having for standard
Line interface, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, can also be stable storage
Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing
The storage system of device 1001.
Optionally, system can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio
Circuit, WiFi module etc..Wherein, sensor such as optical sensor and other sensors.Specifically, optical sensor may include
Ambient light sensor and proximity sensor, wherein ambient light sensor can adjust display screen according to the light and shade of ambient light
Brightness, proximity sensor can close display screen and/or backlight when mobile system is moved in one's ear.As motion sensor
One kind, gravity accelerometer can detect in all directions the size of (generally three axis) acceleration, can detect that when static
The size of gravity and direction can be used to identify application (such as horizontal/vertical screen switching, dependent game, the magnetometer of mobile terminal posture
Pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, mobile system can also configure gyroscope, gas
The other sensors such as meter, hygrometer, thermometer, infrared sensor are pressed, details are not described herein.
It will be understood by those skilled in the art that the restriction of the not structure paired systems of system structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, either combines certain components or different components arrangement.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage media
Believe module, Subscriber Interface Module SIM and volume adjustment program.
In sound volume adjusting system shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is taken with backstage
Device be engaged in into row data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;
And processor 1001 can be used for calling the volume adjustment program stored in memory 1005, and execute following operation:
In the current environment volume value for collecting user's local environment, mobile terminal obtains current volume setting value;
Environmental volume difference, the mobile terminal is calculated based on the current environment volume value and current volume setting value
Obtain pre-set threshold value;
If the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal sends environmental volume difference
To television;
After receiving the environmental volume difference, the television reads current television volume value;
The television is according to the environmental volume difference and current television volume value adjusting output volume value.
Further, processor 1001 can call the volume adjustment program stored in memory 1005, also execute following
Operation:
Target sound magnitude is calculated according to the environmental volume difference and current television volume value in the television;
The television is based on the target sound magnitude adjusting output volume value.
Further, processor 1001 can call the volume adjustment program stored in memory 1005, also execute following
Operation:
The television judges whether the environmental volume difference is more than 0;
If the environmental volume difference is more than 0, the television obtains the first mesh after being promoted to current television volume value
Mark with phonetic symbols magnitude;
If the environmental volume difference is less than 0, the television obtains the second mesh after being reduced to current television volume value
Mark with phonetic symbols magnitude.
Further, processor 1001 can call the volume adjustment program stored in memory 1005, also execute following
Operation:
If the environmental volume difference is more than 0, the television obtain the max volume value that television is adjustable to and
The environmental volume maximum difference that television prestores;
The max volume value and TV being adjustable to based on the current television volume value, environmental volume difference, television
Hold the environmental volume maximum difference to prestore that the first object volume value that need to currently adjust is calculated.
Further, processor 1001 can call the volume adjustment program stored in memory 1005, also execute following
Operation:
If the environmental volume difference is less than 0, the television read the max volume value that television is adjustable to and
The environmental volume maximum difference that television prestores;
The max volume value and TV being adjustable to based on the current television volume value, environmental volume difference, television
Hold the environmental volume maximum difference to prestore that the second target sound magnitude that need to currently adjust is calculated.
Further, processor 1001 can call the volume adjustment program stored in memory 1005, also execute following
Operation:
If the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal is by the environmental volume difference
Volume data is obtained after being encoded;
The volume data is sent to television by the mobile terminal by communication protocol.
Further, processor 1001 can call the volume adjustment program stored in memory 1005, also execute following
Operation:
After receiving the volume data by the communication protocol, the television solves the volume data
Analysis obtains the environmental volume difference, and obtains current television volume value.
Further, processor 1001 can call the volume adjustment program stored in memory 1005, also execute following
Operation:
The mobile terminal acquires the current environment volume value of user's local environment, and the mobile terminal by sound transducer
Obtain current volume setting value.
It is the flow diagram of method for regulation of sound volume first embodiment of the present invention with reference to Fig. 2, Fig. 2.
In the first embodiment, method for regulation of sound volume includes:
Step S10, in the current environment volume value for collecting user's local environment, mobile terminal obtains current volume setting
Value.
In the present embodiment, in the current environment volume value for collecting user's local environment, mobile terminal obtains current volume
Setting value.Sound transducer is equipped in mobile terminal, sound transducer functions as a microphone or microphone, it is used for connecing
Quiet down wave, shows the vibrational diagram of sound, but cannot be measured to the intensity of noise, built in the sensor one it is quick to sound
The condenser type Electret condenser microphone of sense, sound wave make the electret film in microphone vibrate, and lead to the variation of capacitance, and generation is right therewith
The small voltage that should change.This voltage is subsequently converted into the voltage of 0-5V, converts by A/D and is received by data collector,
And send computer to.Sound transducer is arranged in mobile terminal in this case, ring residing for user is received in sound transducer
The processor that mobile terminal can be sent to when the current environment volume value in border is handled;Also, mobile terminal obtains current volume and sets
Value is set, the APP of control television sound volume is installed in mobile terminal, control of the mobile terminal to television sound volume is realized, when user passes through APP
When setting television sound volume, setting instruction can be sent to television so that television can instruct setting current volume according to setting
Setting value, and mobile terminal can obtain the current volume setting value of television, realize intelligence of the mobile terminal to television volume control
Change management.
Environmental volume difference, institute is calculated based on the current environment volume value and current volume setting value in step S20
It states mobile terminal and obtains pre-set threshold value.
In the present embodiment, it is poor that environmental volume is calculated based on the current environment volume value and current volume setting value
Value, the mobile terminal obtain pre-set threshold value.Mobile terminal collects the current environment sound of user's local environment by sound transducer
After amount, current volume setting value is obtained, and environmental volume is calculated according to current environment volume value and current volume setting value
Difference, the current environment volume value that is calculated as herein subtracts the value that is worth to of current volume setting and is set as environmental volume difference, false
If current environment volume value is VR, current volume setting value is VC, environmental volume difference DELTA V=VR-VC;Mobile terminal, which obtains, presets valve
Value, which differs between current environment volume value and current volume setting value but human ear is acceptable to reach viewing
The value to work well.
Step S30, if the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal is by environmental volume
Difference and current volume setting value are sent to television.
In the present embodiment, if the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal is by environment
Volume difference and current volume setting value are sent to television.After mobile terminal contrast_environment volume difference and pre-set threshold value, sentence
It is disconnected | △ V | whether it is more than pre-set threshold value, pre-set threshold value δ, if | △ V | it is not more than pre-set threshold value δ, then it is assumed that front and back state is almost
Within the scope of same environmental volume, human auditory system will not be had an impact, without adjustment;If | △ V | it is more than pre-set threshold value δ,
Illustrate that the current television volume value of television at this time is not enough to realize that viewing effect is good, therefore, it is necessary to be adjusted to volume
Whole, environmental volume difference and current volume setting value are sent to television by mobile terminal so that television is voluntarily adjusted.
Step S40, after receiving the environmental volume difference, the television obtains current television volume value.
In the present embodiment, after television receives environmental volume difference, current television volume value is obtained.Residing for user
Environment affect viewing TV, the current television volume value of television at this time is not enough to realize that viewing effect is good, therefore,
Environmental volume difference is sent to television by mobile terminal, and television receives environmental volume difference, reads current television volume
Value carries out volume adjustment convenient for television.
Step S50, the television is according to the environmental volume difference and current television volume value adjusting output volume value.
In the present embodiment, the television is according to the environmental volume difference and current television volume value adjusting output volume
Value.Television judges whether the environmental volume difference is more than 0, if the environmental volume difference is more than 0, television is to current
Television sound volume value is promoted to obtain first object volume value;If the environmental volume difference is less than 0, television is to current electricity
It is reduced to obtain the second target sound magnitude depending on volume value, after television obtains output volume value, television control output sound
Magnitude exports, so that human ear can reach best audibility.
In the present invention, the current environment volume value and current volume setting value of user's local environment are collected by mobile terminal
Environmental volume difference is calculated, by the comparison of environmental volume difference and pre-set threshold value, is preset when environmental volume difference is more than
When threshold values, illustrate the user of the environmental disturbances residing for user watch tv effect, need television to current television volume value into
Output sound is calculated by current environment volume value, current volume setting value and current television volume value in row adjustment, television
It magnitude and exports, realizes the adjust automatically to current television volume value, environment is to human auditory system when avoiding viewing TV
Interference.The present invention coordinates television using mobile terminal, solves and TV is needed to need external additional hardware that could realize volume tune
Whole problem can be achieved with realizing the current electricity to television by user's local environment without increasing additional hardware cost
Be automatically adjusted depending on volume value, it is user-friendly so that user watches tv effect more preferably, have it is at low cost, convenient for real
Existing, intelligence degree it is high and can extensive utilization the characteristics of.
Based on first embodiment, the second embodiment of method for regulation of sound volume of the present invention is proposed, referring to Fig. 3, step S50 packets
It includes:
Target sound magnitude is calculated according to the environmental volume difference and current television volume value in S51, the television;
S52, the television are based on the target sound magnitude output volume value.
In the present embodiment, target is calculated according to the environmental volume difference and current television volume value in the television
Volume value;The television is based on the target sound magnitude output volume value.Whether television judges the environmental volume difference
More than 0, if environmental volume difference is more than 0, the television obtains first object volume after being promoted to current television volume value
Value;If environmental volume difference is less than 0, the television obtains the second target sound magnitude after being reduced to current television volume value;
After television obtains output volume value, television controls the output of output volume value, is most preferably listened to so that human ear can reach
Effect.
Based on second embodiment, the 3rd embodiment of method for regulation of sound volume of the present invention is proposed, referring to Fig. 4, the target
Volume value includes first object volume value and the second target sound magnitude, and step S51 includes:
The television judges whether the environmental volume difference is more than 0;
S511, if the environmental volume difference is more than 0, the television obtains the after being promoted to current television volume value
One target sound magnitude;
S512, if the environmental volume difference is less than 0, the television obtains the after being reduced to current television volume value
Two target sound magnitudes.
In the present embodiment, television judges whether the environmental volume difference is more than 0;If the environmental volume difference is more than
0, if then the television is less than to obtaining the first object volume value environmental volume difference after the promotion of current television volume value
0, then the television after the reduction of current television volume value to obtaining the second target sound magnitude.If current environment volume value is more than and works as
Preceding volume settings, VR-VCFor just, being more than 0, i.e. environmental volume difference DELTA V is timing, then when forefathers' local environment volume bigger,
Therefore it needs, using positive method of adjustment, the volume of TV to be promoted;If current environment volume value is less than current volume setting value, i.e.,
VR-VCIt is negative, i.e., environmental volume difference DELTA V is negative, is less than 0, therefore TV needs to use negative justification method, will be under the volume of TV
Drop.
Based on 3rd embodiment, the fourth embodiment of method for regulation of sound volume of the present invention is proposed, referring to Fig. 5, step S511
Including:
S5111, if the environmental volume difference is more than 0, the television obtains the maximum sound that television is adjustable to
The environmental volume maximum difference that magnitude and television prestore;
S5112, the max volume value being adjustable to based on the current television volume value, environmental volume difference, television
And the first object volume value that need to currently adjust is calculated in the environmental volume maximum difference that television prestores.
In the present embodiment, if environmental volume difference is more than 0, the television reads the maximum sound that television is adjustable to
The environmental volume maximum difference that magnitude and television prestore;Based on the current television volume value, environmental volume difference, television
The first mesh that need to currently adjust is calculated in the environmental volume maximum difference that the max volume value and television being adjustable to prestore
Mark with phonetic symbols magnitude.If current environment volume value is more than current volume setting value, i.e. current environment volume value VR-VCFor just, i.e. ambient sound
It is timing to measure difference DELTA V, then when forefathers' local environment volume bigger, therefore needs using positive method of adjustment, by the volume of TV
It is promoted, specific formula is:
Wherein, VOFor first object volume value, VTFor current television volume value, VmaxThe maximum sound being adjustable to for television
Magnitude, △ VmaxFor the maximum value of environmental volume difference.Curve graph as shown in FIG. 6 is obtained by above-mentioned formula, it will be appreciated from fig. 6 that
The max volume value and environmental volume difference being adjustable to based on current television volume value, environmental volume difference, television are most
It is the volume for being most suitable for human ear and listening to be worth to the first object volume value that need to currently adjust greatly.
Based on 3rd embodiment, the 5th embodiment of method for regulation of sound volume of the present invention is proposed, referring to Fig. 7, step S512
Including:
S5121, if the environmental volume difference is less than 0, the television obtains the maximum sound that television is adjustable to
The environmental volume maximum difference that magnitude and television prestore;
S5122, the max volume value being adjustable to based on the current television volume value, environmental volume difference, television
And the second target sound magnitude that need to currently adjust is calculated in the environmental volume maximum difference that television prestores.
In the present embodiment, if the environmental volume difference is less than 0, the television reads television and is adjustable to most
The environmental volume maximum difference that big volume value and television prestore;Based on the current television volume value, environmental volume difference, electricity
Depending on holding the environmental volume maximum difference that the max volume value that is adjustable to and television prestore to be calculated need to currently adjust the
Two target sound magnitudes.If current environment volume value is less than current volume setting value, i.e. VR-VCIt is negative, i.e. environmental volume difference DELTA V
It is negative, therefore TV needs to use negative justification method, and the volume of TV is declined.Specifically formula is:
Wherein, a=0.1, BOFor the second target sound magnitude, VTFor current television volume value, VmaxIt is adjustable to for television
Max volume value, △ VmaxFor the maximum value of environmental volume difference.Curve graph as shown in Figure 8 is obtained by above-mentioned formula, by
Fig. 8 is it is found that the max volume value and environmental volume being adjustable to based on current television volume value, environmental volume difference, television
It is the volume for being most suitable for human ear and listening to that the maximum of difference, which is worth to the second target sound magnitude that need to currently adjust,.
Based on first embodiment, the sixth embodiment of method for regulation of sound volume of the present invention is proposed, referring to Fig. 9, step S30 packets
It includes:
S31, if the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal is by the environmental volume
Difference obtains volume data after being encoded;
The volume data is sent to television by S32, the mobile terminal by communication protocol.
In the present embodiment, if the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal will be described
Environmental volume difference obtains volume data after being encoded;The volume data is sent to by the mobile terminal by communication protocol
Television.By environmental volume difference DELTA V, current volume setting value is VCCoding, obtains volume data, mobile terminal and television it
Between communication protocol such as following table:
Guidance code | Environmental volume difference | Current volume setting value | Verification and |
Volume data is sent to television by the communication protocol.
Further, step S40 includes:
After receiving the volume data by the communication protocol, the television solves the volume data
Analysis obtains the environmental volume difference, and obtains current television volume value.
In the present embodiment, by the communication protocol between mobile terminal and television, after television receives volume data, electricity
Volume data is parsed depending on end, obtains environmental volume difference, and obtain current television volume value.
Further, step S10 includes:
The mobile terminal acquires the current environment volume value of user's local environment, and the mobile terminal by sound transducer
Obtain current volume setting value.
In the present embodiment, the mobile terminal acquires the current environment volume value of user's local environment by sound transducer,
And the mobile terminal obtains current volume setting value.Sound transducer is equipped in mobile terminal, sound transducer functions as
One microphone or microphone, it is used for receiving sound wave, shows the vibrational diagram of sound, but cannot be surveyed to the intensity of noise
Amount, a condenser type Electret condenser microphone to sound sensitive built in the sensor, sound wave make the electret film in microphone vibrate,
Lead to the variation of capacitance, and generates the small voltage for variation of being corresponding to it.This voltage is subsequently converted into the voltage of 0-5V, warp
It crosses A/D conversions by data collector to be received, and sends computer to.Sound transducer is arranged in mobile terminal in this case,
Sound transducer can be sent to mobile terminal processor when receiving the current environment volume value of user's local environment is handled;
Also, mobile terminal obtains current volume setting value, and the APP of control television sound volume is equipped in mobile terminal, realizes mobile terminal to electricity
Depending on the control of volume, when user sets television sound volume by APP, setting instruction can be sent to television so that television energy
It is enough that setting current volume setting value is instructed according to setting, and mobile terminal can obtain the current volume setting value of television, realize and move
Intelligent management of the moved end to television volume control.
In addition, the embodiment of the present invention also proposes a kind of readable storage medium storing program for executing, volume is stored on the readable storage medium storing program for executing
The step of adjustment programme, the volume adjustment program realizes method for regulation of sound volume as described above when being executed by processor.
The specific embodiment of readable storage medium storing program for executing of the present invention and each embodiment of above-mentioned method for regulation of sound volume are essentially identical,
This will not be repeated here.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that system equipment (can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of method for regulation of sound volume, which is characterized in that the method for regulation of sound volume includes the following steps:
In the current environment volume value for collecting user's local environment, mobile terminal obtains current volume setting value;
The mobile terminal is based on the current environment volume value and environmental volume difference is calculated in current volume setting value;
If the absolute value of the environmental volume difference is more than pre-set threshold value, environmental volume difference is sent to electricity by the mobile terminal
Depending on end;
After receiving the environmental volume difference, the television obtains current television volume value;
The television is according to the environmental volume difference and current television volume value adjusting output volume value.
2. method for regulation of sound volume as described in claim 1, which is characterized in that the television is according to the environmental volume difference
And current television volume value adjusting output volume value includes:
Target sound magnitude is calculated according to the environmental volume difference and current television volume value in the television;
The television is based on the target sound magnitude adjusting output volume value.
3. method for regulation of sound volume as claimed in claim 2, which is characterized in that the target sound magnitude includes first object volume
Value and the second target sound magnitude;Target is calculated according to the environmental volume difference and current television volume value in the television
The step of volume value includes:
The television judges whether the environmental volume difference is more than 0;
If the environmental volume difference is more than 0, the television obtains first object sound after being promoted to current television volume value
Magnitude;
If the environmental volume difference is less than 0, the television obtains the second target sound after being reduced to current television volume value
Magnitude.
4. method for regulation of sound volume as claimed in claim 3, which is characterized in that if the environmental volume difference is more than 0,
The television to current television volume value promoted after obtain first object volume value the step of include:
If the environmental volume difference is more than 0, the television obtains the max volume value and TV that television is adjustable to
Hold the environmental volume maximum difference to prestore;
The max volume value and television being adjustable to based on the current television volume value, environmental volume difference, television are pre-
The first object volume value that need to currently adjust is calculated in the environmental volume maximum difference deposited.
5. method for regulation of sound volume as claimed in claim 3, which is characterized in that if the environmental volume difference is less than 0,
The television to current television volume value reduce after obtain the second target sound magnitude the step of include:
If the environmental volume difference is less than 0, the television reads the max volume value and TV that television is adjustable to
Hold the environmental volume maximum difference to prestore;
The max volume value and television being adjustable to based on the current television volume value, environmental volume difference, television are pre-
The the second target sound magnitude that need to currently adjust is calculated in the environmental volume maximum difference deposited.
6. method for regulation of sound volume as described in claim 1, which is characterized in that if the absolute value of the environmental volume difference
More than pre-set threshold value, then the step of environmental volume difference is sent to television by the mobile terminal, includes:
If the absolute value of the environmental volume difference is more than pre-set threshold value, the mobile terminal carries out the environmental volume difference
Volume data is obtained after coding;
The volume data is sent to television by the mobile terminal by communication protocol.
7. method for regulation of sound volume as claimed in claim 6, which is characterized in that described to receive the environmental volume difference
Afterwards, the step of television reading current television volume value includes:
After receiving the volume data by the communication protocol, the television parses the volume data, obtains
To the environmental volume difference, and obtain current television volume value.
8. method for regulation of sound volume as described in claim 1, which is characterized in that described to collect the current of user's local environment
When ambient sound magnitude, mobile terminal obtain current volume setting value the step of include:
The mobile terminal acquires the current environment volume value of user's local environment by sound transducer, and the mobile terminal obtains
Current volume setting value.
9. a kind of sound volume adjusting system, which is characterized in that the sound volume adjusting system includes:It memory, processor and is stored in
On the memory and the volume adjustment program that can run on the processor, the volume adjustment program is by the processor
It is realized such as the step of method for regulation of sound volume described in any item of the claim 1 to 8 when execution.
10. a kind of readable storage medium storing program for executing, which is characterized in that volume adjustment program is stored on the readable storage medium storing program for executing, it is described
The step of method for regulation of sound volume as described in any one of claim 1 to 7 is realized when volume adjustment program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810749355.9A CN108810614B (en) | 2018-07-09 | 2018-07-09 | Volume adjustment method, system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810749355.9A CN108810614B (en) | 2018-07-09 | 2018-07-09 | Volume adjustment method, system and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108810614A true CN108810614A (en) | 2018-11-13 |
CN108810614B CN108810614B (en) | 2022-03-11 |
Family
ID=64074669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810749355.9A Active CN108810614B (en) | 2018-07-09 | 2018-07-09 | Volume adjustment method, system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108810614B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112281412A (en) * | 2019-07-23 | 2021-01-29 | 青岛海尔洗衣机有限公司 | Clothes treating apparatus and volume control method thereof |
CN112533057A (en) * | 2019-09-18 | 2021-03-19 | 深圳Tcl新技术有限公司 | Method, system and storage medium for intelligently adjusting volume |
WO2022206825A1 (en) * | 2021-03-31 | 2022-10-06 | 华为技术有限公司 | Method and system for adjusting volume, and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104869218A (en) * | 2014-02-24 | 2015-08-26 | 联想(北京)有限公司 | Information processing method and device and electronic equipment |
US20160253146A1 (en) * | 2014-04-29 | 2016-09-01 | Boe Technology Group Co., Ltd. | Audio device and method for automatically adjusting volume thereof |
CN106339198A (en) * | 2016-08-19 | 2017-01-18 | 惠州Tcl移动通信有限公司 | Method and system for automatically adjusting sound volume of electronic equipment through ambient volume |
CN106375809A (en) * | 2016-08-31 | 2017-02-01 | 腾讯科技(深圳)有限公司 | Volume adjustment method and apparatus |
CN107155133A (en) * | 2017-06-06 | 2017-09-12 | 深圳Tcl数字技术有限公司 | Volume adjusting method, audio-frequency playing terminal and computer-readable recording medium |
-
2018
- 2018-07-09 CN CN201810749355.9A patent/CN108810614B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104869218A (en) * | 2014-02-24 | 2015-08-26 | 联想(北京)有限公司 | Information processing method and device and electronic equipment |
US20160253146A1 (en) * | 2014-04-29 | 2016-09-01 | Boe Technology Group Co., Ltd. | Audio device and method for automatically adjusting volume thereof |
CN106339198A (en) * | 2016-08-19 | 2017-01-18 | 惠州Tcl移动通信有限公司 | Method and system for automatically adjusting sound volume of electronic equipment through ambient volume |
CN106375809A (en) * | 2016-08-31 | 2017-02-01 | 腾讯科技(深圳)有限公司 | Volume adjustment method and apparatus |
CN107155133A (en) * | 2017-06-06 | 2017-09-12 | 深圳Tcl数字技术有限公司 | Volume adjusting method, audio-frequency playing terminal and computer-readable recording medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112281412A (en) * | 2019-07-23 | 2021-01-29 | 青岛海尔洗衣机有限公司 | Clothes treating apparatus and volume control method thereof |
CN112533057A (en) * | 2019-09-18 | 2021-03-19 | 深圳Tcl新技术有限公司 | Method, system and storage medium for intelligently adjusting volume |
US20220278664A1 (en) * | 2019-09-18 | 2022-09-01 | Shenzhen Tcl New Technology Co., Ltd. | Method and system for intelligently adjusting volume, and storage medium |
WO2022206825A1 (en) * | 2021-03-31 | 2022-10-06 | 华为技术有限公司 | Method and system for adjusting volume, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN108810614B (en) | 2022-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528036B (en) | Volume adjusting method and device | |
CN107231473B (en) | Audio output regulation and control method, equipment and computer readable storage medium | |
CN104393848B (en) | Volume adjusting method and device | |
CN111179861B (en) | Brightness calibration method and device, storage medium and terminal | |
CN107155133B (en) | Volume adjusting method, audio playing terminal and computer readable storage medium | |
CN106534962A (en) | Television content playing method and device | |
CN107562406B (en) | Volume adjusting method, mobile terminal and computer readable storage medium | |
CN106453896B (en) | Display lightness regulating method, the apparatus and system of terminal | |
CN107613146B (en) | Volume adjustment method and device and mobile terminal | |
CN108471234B (en) | A kind of voltage control circuit and its control method, mobile terminal | |
CN107888765B (en) | Method for switching scene mode and mobile terminal | |
CN104144312A (en) | Video processing method and related device | |
US9453866B2 (en) | Method, device and storage medium for controlling antenna | |
CN104427083A (en) | Volume adjusting method and device | |
CN108810614A (en) | Method for regulation of sound volume, system and readable storage medium storing program for executing | |
CN104158506A (en) | Method, device and terminal for adjusting volume | |
CN109168108B (en) | Amplitude adjusting method and device for electroacoustic device and mobile terminal | |
CN111343540B (en) | Piano audio processing method and electronic equipment | |
CN108600546A (en) | A kind of environment light detection method and mobile terminal | |
CN111314560A (en) | Method for adjusting sound loudness and communication terminal | |
CN109474784B (en) | Preview image processing method and terminal equipment | |
CN110351040A (en) | Sounding reference signal transmission enhancement, configuration method, user equipment and network side equipment | |
CN107911777B (en) | Processing method and device for return-to-ear function and mobile terminal | |
CN107249085B (en) | Mobile terminal electric quantity display method, mobile terminal and computer readable storage medium | |
CN107016990B (en) | Audio signal generation method and device |
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 |