A kind of audio output regulation and control method, equipment and computer-readable recording medium
Technical field
The present invention relates to multimedia signal processing field, more particularly to a kind of audio output regulation and control method, equipment and calculating
Machine readable storage medium storing program for executing.
Background technology
In the prior art, the volume control in mobile device is the coefficient by controlling output source of sound, the sound of separate sources
Sound can all be exported after the superposition of coefficient, cause the sound of output to vary, user can be adjusted for different sources
Section, during regulation, some output audios needs adjustment, some output audios in the audio option for setting interface need to lead to
Cross external loudspeaker adjustment, some also need to adjust by side physical button.
As can be seen here, when have in mobile device it is multinomial because of audio output when, due to different audios wave volume size,
To the difference of the perceptibility of user, user may need to be adjusted according to specific output environment, and because the side of adjustment
Formula is relatively more and scene of adjustment is different, therefore, is brought greater inconvenience to user, and the process also inadequate hommization of adjustment.
In summary, in the prior art, when mobile terminal carries out Multi-audio-frequency output, it is impossible to accomplish according to current output sound
Volume, the scene of frequency, are prepared to different audio output, easily regulate and control respectively.
The content of the invention
In order to solve in the prior art, when mobile terminal carries out Multi-audio-frequency output, it is impossible to accomplish according to current output sound
Volume, the scene of frequency, the technological deficiency for being prepared, easily regulating and controlling to different audio output respectively, the present invention are proposed
A kind of audio output regulates and controls method, and this method includes:
Monitor the output order of voice data;
If monitoring output order, ambient sound is detected in preset time;
Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound;
By regulation and control coefficient response output order, and according to the amplitude of regulation and control coefficient adjustment volume key.
Optionally, the output order of monitoring voice data includes:
The output order of voice data is monitored, output order includes audio data sources and instruction type, wherein,
Audio data sources include but is not limited to system prompt sound, quarter-bell sound, multimedia sound;
Instruction type include but is not limited to wired earphone output, wireless headset output, wired loudspeaker output, wirelessly raise one's voice
Device output, boombox output.
Optionally, if monitoring output order, detect that ambient sound includes in preset time:
It is determined that receiving after output order and performing the first response time before output order, the first response time was determined
For preset time;
If monitoring output order, output order is not responding in preset time.
Optionally, determine that corresponding regulation and control coefficient includes according to the audio frequency characteristics of ambient sound:
Default regulation and control coefficient is determined, regulation and control coefficient includes audio frequency characteristics and characteristic range;
Corresponding regulation and control grade is matched in characteristic range according to audio frequency characteristics;
Regulation and control coefficient is determined according to regulation and control grade.
Optionally, by regulation and control coefficient response output order, and included according to the amplitude of regulation and control coefficient adjustment volume key:
According to regulation and control coefficient response output order, and in output order implementation procedure, the control value of volume key is recorded, and
Update regulation and control coefficient corresponding with output order.
The invention also provides a kind of audio output adjusting device, the equipment includes memory, processor and is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is by the computing device
Realize:
Monitor the output order of voice data;
If monitoring the output order, ambient sound is detected in preset time;
Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of the ambient sound;
The output order is responded by the regulation and control coefficient, and according to the amplitude of the regulation and control coefficient adjustment volume key.
Optionally, the computer program also by the computing device when realize:
The output order of voice data is monitored, the output order includes audio data sources and instruction type, wherein,
The audio data sources include but is not limited to system prompt sound, quarter-bell sound, multimedia sound;
The instruction type includes but is not limited to wired earphone output, wireless headset output, the output of wired loudspeaker, wireless
Loudspeaker output, boombox output.
Optionally, the computer program also by the computing device when realize:
It is determined that receiving after the output order and performing the first response time before the output order, by described first
Response time is defined as the preset time;
If monitoring the output order, the output order is not responding in the preset time.
Optionally, the computer program also by the computing device when realize:
Default regulation and control coefficient is determined, the regulation and control coefficient includes the audio frequency characteristics and characteristic range;
Corresponding regulation and control grade is matched in the characteristic range according to the audio frequency characteristics;
The regulation and control coefficient is determined according to the regulation and control grade;
The output order is responded according to the regulation and control coefficient, and in the output order implementation procedure, record is described
The control value of volume key, and update the regulation and control coefficient corresponding with the output order.
The invention also provides a kind of computer-readable recording medium, be stored with audio on the computer-readable recording medium
Regulatory process is exported, the audio output regulatory process realizes audio output regulation and control method described above when being executed by processor
Step.
Implement audio output regulation and control method, equipment and the computer-readable recording medium of the present invention, by monitoring audio number
According to output order;If monitoring output order, ambient sound is detected in preset time;Determined according to the audio frequency characteristics of ambient sound
Corresponding regulation and control coefficient;By regulation and control coefficient response output order, and according to the amplitude of regulation and control coefficient adjustment volume key.By this hair
Bright audio output regulation and control scheme, on the one hand, the volume control more hommization of mobile device, that is, can according to gear or
Regulation is identified in environment, has not only facilitated but also quick, on the other hand, supports the special regulation of user, equipment can remember source of sound user
Regulate and control preference, so as to accomplish regulation and control experience more preferably so that when mobile terminal carries out Multi-audio-frequency output, can be according to current output
Volume, the scene of audio, are prepared to different audio output, easily regulate and control respectively.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is a kind of hardware architecture diagram of mobile terminal of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the flow chart that audio output of the present invention regulates and controls method first embodiment;
Fig. 4 is the flow chart that audio output of the present invention regulates and controls method second embodiment;
Fig. 5 is the flow chart that audio output of the present invention regulates and controls method 3rd embodiment;
Fig. 6 is the flow chart that audio output of the present invention regulates and controls method fourth embodiment;
Fig. 7 is the flow chart that audio output of the present invention regulates and controls the embodiment of method the 5th.
Embodiment
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.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved
Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
A kind of audio output regulates and controls method, and this method includes:
S1, the output order for monitoring voice data.
If S2, monitoring output order, ambient sound is detected in preset time.
S3, according to the audio frequency characteristics of ambient sound determine corresponding regulation and control coefficient.
S4, by regulation and control coefficient response output order, and according to regulation and control coefficient adjustment volume key amplitude.
In the present embodiment, audio output apparatus can be mobile terminal, the equipment such as mobile phone, tablet personal computer, wherein,
The audio output mode of the mobile terminal can be the loudspeaker output of terminal built-in, can also be what is established the link with the terminal
External playback equipment output, for example, earphone or loudspeaker etc..
In the present embodiment step S1, first, monitor voice data output order, the output order of voice data namely
Sent by the system of terminal, play the instruction of the voice data, for example, the song triggered by terminal built-in music software
Play instruction, the information reminding triggered by terminal note software is instructed, and the clock alarming triggered by terminal clock software refers to
Order etc..
In the present embodiment step S2, if monitoring output order, ambient sound is detected in preset time.The preset time
It can be an initial value between user-defined scope or 0.5-10 seconds.
In preset time, by the microphone monitoring of environmental sound of terminal, optionally, if terminal has multiple microphones,
Distinguish monitoring of environmental sound by multiple microphones.
In the step S3 of the present embodiment, corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound.Specifically:
The audio frequency characteristics of ambient sound mainly include the volume characteristics of ambient sound, that is, adjusting above-mentioned tune according to volume characteristics
Coefficient is controlled, the regulation and control coefficient is associated with the conventional control operation of user, if for example, the regulation and control coefficient is 2, to the routine of user
Operation gives twice of execution, if the regulation and control coefficient is 0.5, the execution of half is given to the routine operation of user.
In the step S4 of the present embodiment, by regulation and control coefficient response output order, and according to regulation and control coefficient adjustment volume key
Amplitude.According to different output orders, the corresponding regulation and control coefficient of adjustment, and according to the width of the regulation and control coefficient adjustment volume key
Value.As above described in example, if the regulation and control coefficient is 2, twice of execution is given to the routine operation of user, if the regulation and control coefficient is
0.5, then the execution of half is given to the routine operation of user.
It can be 40-60 decibels in general room, in noisy ring for example, recommending 20-40 decibels under quiet environment
Can be 60-70 decibels under border.Therefore, different regional extent, can correspond to different regulation and control coefficients, for example, in quiet ring
Under border, regulation and control coefficient is 0.6, in the environment of general room, and regulation and control coefficient is 0.8, under noisy environment, and regulation and control coefficient is
1.2。
The beneficial effect of the present embodiment is, by the output order for monitoring voice data;If monitoring output order,
Detection ambient sound in preset time;Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound;It is defeated by regulation and control coefficient response
Go out instruction, and according to the amplitude of regulation and control coefficient adjustment volume key.Realize when mobile terminal carries out Multi-audio-frequency output, Ke Yigen
According to volume, the scene of current output audio, different audio output is prepared respectively, easily regulated and controled.
Embodiment two
Based on above-described embodiment, the output order of monitoring voice data includes:
S11, the output order for monitoring voice data, output order include audio data sources and instruction type, wherein,
Audio data sources include but is not limited to system prompt sound, quarter-bell sound, multimedia sound;
Instruction type include but is not limited to wired earphone output, wireless headset output, wired loudspeaker output, wirelessly raise one's voice
Device output, boombox output.
For example, during the normal use of user:
On the one hand, user may compare at home listens song under quiet environment, it is also possible in more noisy public field
Listen song;
On the other hand, user may compare at home listens song under quiet environment, then, enters the noisy public affairs of comparison
Common place, or, user may listen song in more noisy public place, then, into home, compare in one
Quiet environment.
Under above two environment, the adjustment of regulation and control coefficient can be related to respectively, in the first scenario, regulation and control coefficient has
Low, Gao Zhifen, in the latter case, regulation and control coefficient have dynamic adjustment, i.e. from high to low, or from low to high.
Further, in this programme, output order includes audio data sources and instruction type, wherein, voice data
Source includes but is not limited to system prompt sound, quarter-bell sound, multimedia sound.Therefore, different audio data sources can also correspond to difference
Regulation and control coefficient, it is to be understood that under same environment, system prompt sound, quarter-bell sound, the regulation and control coefficient of multimedia sound three
Can be different.If for example, user pays much attention to quarter-bell sound, then, address that need, the regulation and control coefficient of quarter-bell sound will compare
The regulation and control coefficient of system prompt sound and multimedia sound is high, in another example, if the scene got up in the morning, user pays much attention to quarter-bell
Sound, then, address that need, the regulation and control coefficient of quarter-bell sound is high by the regulation and control coefficient than system prompt sound and multimedia sound.
Further, in this programme, instruction type includes but is not limited to wired earphone output, wireless headset output, had
The output of line loudspeaker, wireless speaker output, boombox output.Therefore, different instruction types can also correspond to difference
Regulation and control coefficient, it is to be understood that under same environment, wired earphone output, wireless headset output, wired loudspeaker it is defeated
Go out, wireless speaker is exported, boombox output can also correspond to different regulation and control coefficients.For example, being raised one's voice when by external
When device is exported, for this scene, regulation and control coefficient can be improved, and when being exported by earphone, can suitably reduce regulation and control coefficient.
The beneficial effect of the present embodiment is that, by monitoring the output order of voice data, output order includes audio number
According to source and instruction type, corresponding regulation and control coefficient is regulated and controled according to audio data sources and instruction type respectively so as to audio
Regulating effect during output more conforms to user's request, also the process of regulation and control is matched with current scene, improves regulation and control
Efficiency.
Embodiment three
Based on above-described embodiment, if monitoring output order, detect that ambient sound includes in preset time:
S21, determination receive after output order and perform the first response time before output order, by the first response time
It is defined as preset time.
If S22, monitoring output order, output order is not responding in preset time.
In the step S21 of the present embodiment, i.e. the first corresponding time above-mentioned preset time, the very first time can be with
Set by User Defined, initial value can also be given.
Further, the first corresponding time can also determine corresponding first sound according to different audio output scenes
Between seasonable, for example, for the high scene of ageing comparison, first response time is shorter, for ageing than relatively low scene,
The first corresponding time is longer.For example, under the scene of Advise By Wire ring, because the scene is ageing higher, then the first sound
It is shorter between seasonable, in playback of songs scene, because playback of songs can postpone audio output, it therefore, it can to give longer by the
One response time, more accurately monitored so as to provide ambient sound.
In the step S22 of the present embodiment, if monitoring output order, output order is not responding in preset time.
It will be appreciated that under the output request of specific voice data, for example, phone ringing etc., is not responding to defeated in the preset time
Go out instruction, but still the operation of correlation can be performed, for example, answer, rejection etc., under playback of songs scene, two kinds can be divided to
Situation, the first, under progressive enhanced volume control scheme, within the progressive enhanced period, sheet is performed at preset timed intervals
The operation of inventive embodiments one, second, in the case where not using progressive enhanced volume control scheme, song is played in delay.
The beneficial effect of the present embodiment is, by determining to receive first after output order and before execution output order
Response time, the first response time was defined as preset time, if monitoring output order, be not responding in preset time defeated
Go out instruction.Realize and more hommization is controlled to the volume of mobile device, that is, tune can be identified according to gear or environment
Section, had not only facilitated but also quick.
Example IV
Based on above-described embodiment, determine that corresponding regulation and control coefficient includes according to the audio frequency characteristics of ambient sound:
S31, determine default regulation and control coefficient, regulation and control coefficient includes audio frequency characteristics and characteristic range;
S32, corresponding regulation and control grade is matched in characteristic range according to audio frequency characteristics;
S33, according to regulation and control grade determine regulation and control coefficient.
User sets sound control, opens intelligent sound pattern, sets volume under various circumstances to divide according to recommendation
Shellfish value, there is recommendation sound audition, and auxiliary user sets suitable sound, for example:Recommend 20-40 decibels under quiet environment,
It can be 40-60 decibels in general room, can be 60-70 decibels under noisy environment
User is opened after the function, and detection, detection sound decibel A1 the sound exported in real time can be identified in equipment
Data transfer is to processor, while being collected to the sound of environment, decibel data A2 is transmitted to processor
Processor is analyzed the data, judges that A2 belongs to which user sets scope, then judge again A1 whether
User (allows just to bear 5% floating error) if in the range of user allows, output is not handled in the range of setting
Source of sound
If exceeded or scope that not enough user is set, the amplification or reduction of row coefficient are entered for sound, is allowed to
In the zone of reasonableness of user
Further, if in the range of user is set, user has felt greatly or small, still can pass through volume
Key quickly adjusts volume, and decibel value can be increased or decreased by volume key, by being once 5 decibels, comes into force temporarily, follow-up source of sound
Also according to the acoustic processing set before user.
The beneficial effect of the present embodiment is, by determining default regulation and control coefficient, regulation and control coefficient include audio frequency characteristics and
Characteristic range;Corresponding regulation and control grade is matched in characteristic range according to audio frequency characteristics;Regulation and control coefficient is determined according to regulation and control grade.
Realize when mobile terminal carries out Multi-audio-frequency output, can be according to current volume, the scene for exporting audio, respectively to different
Audio output is prepared, easily regulated and controled.
Embodiment five
Based on above-described embodiment, by regulation and control coefficient response output order, and according to the amplitude of regulation and control coefficient adjustment volume key
Including:
S41, according to regulation and control coefficient response output order, and in output order implementation procedure, record the regulation and control of volume key
Value, and update regulation and control coefficient corresponding with output order.
As above described in example, if special user carries out the operation of volume key to this source of sound, then under Intelligent volume pattern
System can remember the attribute of this source of sound, if next time plays this source of sound again, the sound adjusted according to user is exported, such as music
Film, the contact person of call.
The beneficial effect of the present embodiment is, output order is responded by regulating and controlling coefficient, and in output order implementation procedure
In, the control value of volume key is recorded, and update regulation and control coefficient corresponding with output order.So that this programme supports user is special to adjust
Section, equipment can remember source of sound user regulation and control preference, so as to accomplish regulation and control experience more preferably.
Implement the present invention, by the output order for monitoring voice data;If monitoring output order, examined in preset time
Survey ambient sound;Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound;By regulation and control coefficient response output order, and according to
Regulate and control the amplitude of coefficient adjustment volume key.Pass through the audio output regulation and control scheme of the present invention, on the one hand, the volume control of mobile device
More hommization is made, that is, regulation can be identified according to gear or environment, has not only been facilitated but also quick, on the other hand, supports to use
The special regulation in family, equipment can remember source of sound user regulation and control preference, so as to accomplish regulation and control experience more preferably so that enter in mobile terminal
When row Multi-audio-frequency is exported, according to volume, the scene of current output audio different audio output can be prepared respectively,
Easily regulate and control.
Embodiment six
Based on above-described embodiment, the invention also provides a kind of audio output adjusting device, the equipment includes memory, place
Manage device and be stored in the computer program that can be run on the memory and on the processor, the computer program is by institute
Realized when stating computing device:
Monitor the output order of voice data;
If monitoring the output order, ambient sound is detected in preset time;
Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of the ambient sound;
The output order is responded by the regulation and control coefficient, and according to the amplitude of the regulation and control coefficient adjustment volume key.
In the present embodiment, audio output apparatus can be mobile terminal, the equipment such as mobile phone, tablet personal computer, wherein,
The audio output mode of the mobile terminal can be the loudspeaker output of terminal built-in, can also be what is established the link with the terminal
External playback equipment output, for example, earphone or loudspeaker etc..
In the present embodiment step S1, first, monitor voice data output order, the output order of voice data namely
Sent by the system of terminal, play the instruction of the voice data, for example, the song triggered by terminal built-in music software
Play instruction, the information reminding triggered by terminal note software is instructed, and the clock alarming triggered by terminal clock software refers to
Order etc..
In the present embodiment step S2, if monitoring output order, ambient sound is detected in preset time.The preset time
It can be an initial value between user-defined scope or 0.5-10 seconds.
In preset time, by the microphone monitoring of environmental sound of terminal, optionally, if terminal has multiple microphones,
Distinguish monitoring of environmental sound by multiple microphones.
In the step S3 of the present embodiment, corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound.Specifically:
The audio frequency characteristics of ambient sound mainly include the volume characteristics of ambient sound, that is, adjusting above-mentioned tune according to volume characteristics
Coefficient is controlled, the regulation and control coefficient is associated with the conventional control operation of user, if for example, the regulation and control coefficient is 2, to the routine of user
Operation gives twice of execution, if the regulation and control coefficient is 0.5, the execution of half is given to the routine operation of user.
In the step S4 of the present embodiment, by regulation and control coefficient response output order, and according to regulation and control coefficient adjustment volume key
Amplitude.According to different output orders, the corresponding regulation and control coefficient of adjustment, and according to the width of the regulation and control coefficient adjustment volume key
Value.As above described in example, if the regulation and control coefficient is 2, twice of execution is given to the routine operation of user, if the regulation and control coefficient is
0.5, then the execution of half is given to the routine operation of user.
It can be 40-60 decibels in general room, in noisy ring for example, recommending 20-40 decibels under quiet environment
Can be 60-70 decibels under border.Therefore, different regional extent, can correspond to different regulation and control coefficients, for example, in quiet ring
Under border, regulation and control coefficient is 0.6, in the environment of general room, and regulation and control coefficient is 0.8, under noisy environment, and regulation and control coefficient is
1.2。
The beneficial effect of the present embodiment is, by the output order for monitoring voice data;If monitoring output order,
Detection ambient sound in preset time;Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound;It is defeated by regulation and control coefficient response
Go out instruction, and according to the amplitude of regulation and control coefficient adjustment volume key.Realize when mobile terminal carries out Multi-audio-frequency output, Ke Yigen
According to volume, the scene of current output audio, different audio output is prepared respectively, easily regulated and controled.
Embodiment seven
Based on above-described embodiment, realized when the computer program is also by the computing device:
The output order of voice data is monitored, the output order includes audio data sources and instruction type, wherein,
The audio data sources include but is not limited to system prompt sound, quarter-bell sound, multimedia sound;
The instruction type includes but is not limited to wired earphone output, wireless headset output, the output of wired loudspeaker, wireless
Loudspeaker output, boombox output.
For example, during the normal use of user:
On the one hand, user may compare at home listens song under quiet environment, it is also possible in more noisy public field
Listen song;
On the other hand, user may compare at home listens song under quiet environment, then, enters the noisy public affairs of comparison
Common place, or, user may listen song in more noisy public place, then, into home, compare in one
Quiet environment.
Under above two environment, the adjustment of regulation and control coefficient can be related to respectively, in the first scenario, regulation and control coefficient has
Low, Gao Zhifen, in the latter case, regulation and control coefficient have dynamic adjustment, i.e. from high to low, or from low to high.
Further, in this programme, output order includes audio data sources and instruction type, wherein, voice data
Source includes but is not limited to system prompt sound, quarter-bell sound, multimedia sound.Therefore, different audio data sources can also correspond to difference
Regulation and control coefficient, it is to be understood that under same environment, system prompt sound, quarter-bell sound, the regulation and control coefficient of multimedia sound three
Can be different.If for example, user pays much attention to quarter-bell sound, then, address that need, the regulation and control coefficient of quarter-bell sound will compare
The regulation and control coefficient of system prompt sound and multimedia sound is high, in another example, if the scene got up in the morning, user pays much attention to quarter-bell
Sound, then, address that need, the regulation and control coefficient of quarter-bell sound is high by the regulation and control coefficient than system prompt sound and multimedia sound.
Further, in this programme, instruction type includes but is not limited to wired earphone output, wireless headset output, had
The output of line loudspeaker, wireless speaker output, boombox output.Therefore, different instruction types can also correspond to difference
Regulation and control coefficient, it is to be understood that under same environment, wired earphone output, wireless headset output, wired loudspeaker it is defeated
Go out, wireless speaker is exported, boombox output can also correspond to different regulation and control coefficients.For example, being raised one's voice when by external
When device is exported, for this scene, regulation and control coefficient can be improved, and when being exported by earphone, can suitably reduce regulation and control coefficient.
The beneficial effect of the present embodiment is that, by monitoring the output order of voice data, output order includes audio number
According to source and instruction type, corresponding regulation and control coefficient is regulated and controled according to audio data sources and instruction type respectively so as to audio
Regulating effect during output more conforms to user's request, also the process of regulation and control is matched with current scene, improves regulation and control
Efficiency.
Embodiment eight
Based on above-described embodiment, realized when the computer program is also by the computing device:
It is determined that receiving after the output order and performing the first response time before the output order, by described first
Response time is defined as the preset time;
If monitoring the output order, the output order is not responding in the preset time.
In the step S21 of the present embodiment, i.e. the first corresponding time above-mentioned preset time, the very first time can be with
Set by User Defined, initial value can also be given.
Further, the first corresponding time can also determine corresponding first sound according to different audio output scenes
Between seasonable, for example, for the high scene of ageing comparison, first response time is shorter, for ageing than relatively low scene,
The first corresponding time is longer.For example, under the scene of Advise By Wire ring, because the scene is ageing higher, then the first sound
It is shorter between seasonable, in playback of songs scene, because playback of songs can postpone audio output, it therefore, it can to give longer by the
One response time, more accurately monitored so as to provide ambient sound.
In the step S22 of the present embodiment, if monitoring output order, output order is not responding in preset time.
It will be appreciated that under the output request of specific voice data, for example, phone ringing etc., is not responding to defeated in the preset time
Go out instruction, but still the operation of correlation can be performed, for example, answer, rejection etc., under playback of songs scene, two kinds can be divided to
Situation, the first, under progressive enhanced volume control scheme, within the progressive enhanced period, sheet is performed at preset timed intervals
The operation of inventive embodiments one, second, in the case where not using progressive enhanced volume control scheme, song is played in delay.
The beneficial effect of the present embodiment is, by determining to receive first after output order and before execution output order
Response time, the first response time was defined as preset time, if monitoring output order, be not responding in preset time defeated
Go out instruction.Realize and more hommization is controlled to the volume of mobile device, that is, tune can be identified according to gear or environment
Section, had not only facilitated but also quick.
Embodiment nine
Based on above-described embodiment, realized when the computer program is also by the computing device:
Default regulation and control coefficient is determined, the regulation and control coefficient includes the audio frequency characteristics and characteristic range;
Corresponding regulation and control grade is matched in the characteristic range according to the audio frequency characteristics;
The regulation and control coefficient is determined according to the regulation and control grade;
The output order is responded according to the regulation and control coefficient, and in the output order implementation procedure, record is described
The control value of volume key, and update the regulation and control coefficient corresponding with the output order.
User sets sound control, opens intelligent sound pattern, sets volume under various circumstances to divide according to recommendation
Shellfish value, there is recommendation sound audition, and auxiliary user sets suitable sound, for example:Recommend 20-40 decibels under quiet environment,
It can be 40-60 decibels in general room, can be 60-70 decibels under noisy environment
User is opened after the function, and detection, detection sound decibel A1 the sound exported in real time can be identified in equipment
Data transfer is to processor, while being collected to the sound of environment, decibel data A2 is transmitted to processor
Processor is analyzed the data, judges that A2 belongs to which user sets scope, then judge again A1 whether
User (allows just to bear 5% floating error) if in the range of user allows, output is not handled in the range of setting
Source of sound
If exceeded or scope that not enough user is set, the amplification or reduction of row coefficient are entered for sound, is allowed to
In the zone of reasonableness of user
Further, if in the range of user is set, user has felt greatly or small, still can pass through volume
Key quickly adjusts volume, and decibel value can be increased or decreased by volume key, by being once 5 decibels, comes into force temporarily, follow-up source of sound
Also according to the acoustic processing set before user.
As above described in example, if special user carries out the operation of volume key to this source of sound, then under Intelligent volume pattern
System can remember the attribute of this source of sound, if next time plays this source of sound again, the sound adjusted according to user is exported, such as music
Film, the contact person of call.
The beneficial effect of the present embodiment is, output order is responded by regulating and controlling coefficient, and in output order implementation procedure
In, the control value of volume key is recorded, and update regulation and control coefficient corresponding with output order.So that this programme supports user is special to adjust
Section, equipment can remember source of sound user regulation and control preference, so as to accomplish regulation and control experience more preferably.
Implement the present invention, by the output order for monitoring voice data;If monitoring output order, examined in preset time
Survey ambient sound;Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound;By regulation and control coefficient response output order, and according to
Regulate and control the amplitude of coefficient adjustment volume key.Pass through the audio output regulation and control scheme of the present invention, on the one hand, the volume control of mobile device
More hommization is made, that is, regulation can be identified according to gear or environment, has not only been facilitated but also quick, on the other hand, supports to use
The special regulation in family, equipment can remember source of sound user regulation and control preference, so as to accomplish regulation and control experience more preferably so that enter in mobile terminal
When row Multi-audio-frequency is exported, according to volume, the scene of current output audio different audio output can be prepared respectively,
Easily regulate and control.
Embodiment ten
Based on above-described embodiment, the invention also provides a kind of computer-readable recording medium, the computer-readable storage
The audio output that is stored with medium regulatory process, the audio output regulatory process realizes sound described above when being executed by processor
The step of frequency output regulation and control method.
Above-mentioned steps include:By the output order for monitoring voice data;If monitoring output order, in preset time
Detect ambient sound;Corresponding regulation and control coefficient is determined according to the audio frequency characteristics of ambient sound;Output order, and root are responded by regulation and control coefficient
According to the amplitude of regulation and control coefficient adjustment volume key.
Implement audio output regulation and control method, equipment and the computer-readable recording medium of the present invention, by monitoring audio number
According to output order;If monitoring output order, ambient sound is detected in preset time;Determined according to the audio frequency characteristics of ambient sound
Corresponding regulation and control coefficient;By regulation and control coefficient response output order, and according to the amplitude of regulation and control coefficient adjustment volume key.By this hair
Bright audio output regulation and control scheme, on the one hand, the volume control more hommization of mobile device, that is, can according to gear or
Regulation is identified in environment, has not only facilitated but also quick, on the other hand, supports the special regulation of user, equipment can remember source of sound user
Regulate and control preference, so as to accomplish regulation and control experience more preferably so that when mobile terminal carries out Multi-audio-frequency output, can be according to current output
Volume, the scene of audio, are prepared to different audio output, easily regulate and control respectively.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
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.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.