CN107483732A - Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal - Google Patents
Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal Download PDFInfo
- Publication number
- CN107483732A CN107483732A CN201710710705.6A CN201710710705A CN107483732A CN 107483732 A CN107483732 A CN 107483732A CN 201710710705 A CN201710710705 A CN 201710710705A CN 107483732 A CN107483732 A CN 107483732A
- Authority
- CN
- China
- Prior art keywords
- light brightness
- environmental light
- grade
- sound volume
- mobile terminal
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of method for controlling volume of mobile terminal, device and storage medium and mobile terminal.Methods described includes:When detecting that audio broadcast event is triggered, the current environmental light brightness of mobile terminal is obtained;Determine environmental light brightness grade corresponding to the current environmental light brightness;It is determined that broadcast sound volume grade corresponding with the environmental light brightness grade;The mobile terminal is controlled to carry out the broadcasting of audio according to the broadcast sound volume grade.Technical scheme provided in an embodiment of the present invention, the broadcast sound volume of mobile terminal can be reasonably controlled according to environmental light brightness.
Description
Technical field
The present embodiments relate to play control technology field, more particularly to a kind of method for controlling volume of mobile terminal,
Device and storage medium and mobile terminal.
Background technology
Function in the mobile terminals such as mobile phone is more and more, is provided convenience for the live and work of people, and people can be with
Phone is taken using mobile phone, music, viewing video can also be listened, play game etc..When user carries out these operations, mobile terminal
Audio broadcasting control system control these apply audios play out.But to the control of audio broadcast sound volume in correlation technique
Method existing defects are, it is necessary to improve.
The content of the invention
The embodiment of the present invention provides a kind of method for controlling volume of mobile terminal, device and storage medium and mobile terminal,
The broadcast sound volume of mobile terminal can be reasonably controlled according to environmental light brightness.
In a first aspect, the embodiments of the invention provide a kind of method for controlling volume of mobile terminal, including:
When detecting that audio broadcast event is triggered, the current environmental light brightness of mobile terminal is obtained;
Determine environmental light brightness grade corresponding to the current environmental light brightness;
It is determined that broadcast sound volume grade corresponding with the environmental light brightness grade;
The mobile terminal is controlled to carry out the broadcasting of audio according to the broadcast sound volume grade.
In second aspect, the embodiments of the invention provide a kind of sound volume control device of mobile terminal, including:
Current environmental light brightness acquisition module, for when detecting that audio broadcast event is triggered, obtaining mobile terminal
Current environmental light brightness;
Environmental light brightness level determination module, for determining environmental light brightness etc. corresponding to the current environmental light brightness
Level;
Broadcast sound volume level determination module, for determining broadcast sound volume grade corresponding with the environmental light brightness grade;
Audio playing module, for controlling broadcasting of the mobile terminal according to broadcast sound volume grade progress audio.
The third aspect, the embodiments of the invention provide a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, the method for controlling volume of the mobile terminal provided such as first aspect is realized when the program is executed by processor.
In fourth aspect, the embodiments of the invention provide a kind of mobile terminal, including memory, processor and it is stored in
The shifting that such as first aspect is provided is realized on reservoir and the computer program that can run on a processor, during the computing device
The method for controlling volume of dynamic terminal.
The embodiment of the present invention is by when detecting that audio broadcast event is triggered, obtaining the current environment light of mobile terminal
Brightness, environmental light brightness grade corresponding to the current environmental light brightness is determined, and determined and the environmental light brightness grade
Corresponding broadcast sound volume grade, the mobile terminal is controlled to carry out the broadcasting of audio, Ke Yigen according to the broadcast sound volume grade
The broadcast sound volume of mobile terminal is reasonably controlled according to environmental light brightness.
Brief description of the drawings
Fig. 1 a are a kind of audio system block architecture diagrams provided in an embodiment of the present invention;
Fig. 1 b are a kind of audio processing hardware system structure diagrams of smart mobile phone provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the method for controlling volume of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the method for controlling volume of another mobile terminal provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the method for controlling volume of another mobile terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of the sound volume control device of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings to the specific reality of the present invention
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention,
Rather than limitation of the invention.It also should be noted that for the ease of describing, illustrate only in accompanying drawing related to the present invention
Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail
Apply processing or method that example is described as describing as flow chart.Although operations (or step) are described as order by flow chart
Processing, but many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations
It can be rearranged.The processing can be terminated when its operations are completed, it is also possible to being not included in accompanying drawing
Additional step.The processing can correspond to method, function, code, subroutine, subprogram etc..
For ease of understanding, below by taking android system as an example, letter is carried out to the audio system framework in android system
Unitary declaration.
As shown in Figure 1a, the audio system framework that the present embodiment provides mainly includes user's space, kernel spacing and hardware
System.User's space includes application (Application) layer, application framework (Framework) layer and hardware abstraction layer
(Hardware Abstraction Layer, HAL), kernel spacing include driving (Driver) layer, and hardware system includes raising one's voice
Device, audio codec etc..Application layer is the superiors of audio system, can be performed by writing an application program corresponding
Logical operation, such as to division environmental light brightness grade in advance, issue audio play instruction etc..Application framework layer includes audio control
Interface processed and standardization card module, which are responsible for providing, obtains Audio attribute information, the interface of audio broadcast state, and loudspeaker
Volume control interface etc..Application framework layer provides two classes of AudioTrack and AudioRecorder, and
AudioManager, AudioService and AudioSystem class.Also include one between application framework layer and hardware abstraction layer
Individual system operation storehouse (Libraries) layer.It is known that many classes of framework layers, actually simply application program uses
" intermediary " of Android library files.Because upper layer application is write using java language, they need most direct java to connect
The support of mouth, here it is one of meaning existing for framework layers.And " intermediary " is used as, they, which can't really go to realize, has
The function of body, or part of functions therein is only realized, and main center of gravity is placed in storehouse to complete.Such as above
AudioTrack, AudioRecorder, MediaPlayer and MediaRecorder etc. can find corresponding in storehouse
Class.This partial code is put together in the frameworks/av/media/libmedia of engineering, and majority is that C Plus Plus is compiled
Write.Hardware abstraction layer in terms of audio is broadly divided into two parts, i.e. AudioFlinger and AudioPolicyService, real
The latter is not a real equipment on border, simply allows manufacturer easily to customize by the way of virtual unit and comes from
Oneself strategy.According to the difference of product, there is very big difference in audio frequency apparatus, in Android audio framework, these problems are all
It is to be solved by audio.primary of HAL layers etc., is realized without changing upper strata on a large scale.Hardware abstraction layer is
Application framework layer is to the transition for driving layer, to realize the compatibility of bottom hardware.Drive characteristic pair of the layer according to audio codec
It is controlled, it is ensured that audio codec can be with normal work, and the voice data that audio codec is got is supplied to
System layer.Hardware system includes loudspeaker and audio codec, and ambient light sensor, microphone, loudspeaker is for playing sound
Frequency is according to control volume, and ambient light sensor is used to gather environmental light brightness, and microphone is used to gather ambient noise, audio
Codec is used for the form for parsing voice data, and such as MP3, WMA, responsible audio can not be noise etc. with normal play.
Fig. 1 b are a kind of audio processing hardware system structure diagram of smart mobile phone provided in an embodiment of the present invention.Audio
Process circuit is typically in main control board, because the design of different mobile phones is different, the particular location of audio frequency processing circuit
May be different.The audio frequency processing circuit of smart mobile phone mainly includes audio signal processing circuit, base band signal process circuit, audio
Power amplifier, earphone signal amplifier, receiver, loudspeaker, microphone and earphone interface etc..Wherein, Audio Signal Processing electricity
Road is the core of whole audio frequency processing circuit.Audio frequency processing circuit is mainly conversed electric by reception voicefrequency circuit, telecommunication circuit, earphone
Road etc. forms, and includes analog/digital (A/D) conversion, digital-to-analog (A/D) conversion, the audio digital signals processing of analogue audio frequency
And analogue audio frequency amplifying circuit etc..
In call, the mechanical acoustic signals of sound are converted into simulated audio signal by local side microphone of conversing first,
It is amplified by analogue audio frequency amplifying circuit, more weighted-voltage D/A converters through inside carry out A/D conversions, obtain digital audio and video signals;
Secondly this digital audio and video signals is sent to BBP, carries out the processing such as voice coding, channel coding;Be encrypted again,
A series of processing such as intertexture;The digital narrowband mode transfer block being finally sent in BBP is modulated, and produces transmitting baseband
Signal is sent into radio circuit and is modulated into emission medium-frequency, is sent to partner.When receiving calls, demodulated first from radio circuit
Go out to receive base-band information, be sent to inside BBP and carry out digital narrowband demodulation, isolate control signal and voice signal;Its
It is secondary a series of processing such as voice signal to be decrypted, deinterleaved, is recombinated, then carry out channel decoding, tone decoding;Finally
To pure audio digital signals, the more weighted-voltage D/A converters being sent into voice signal processor carry out D/A conversions;It is reduced into analogue audio frequency
After signal, by the interesting to listen to cylinder sounding of Audio power amplifier pusher.If selection is hands-free called, it is called that BBP then closes receiver
Amplifier, start hands-free called amplifier tube (ring amplifier tube) work, promotion loudspeaker sounding after audio signal power amplification.
It is similar with said process in recording, the mechanical acoustic signals of sound are converted into analog audio by microphone first
Frequency signal, it is amplified by analogue audio frequency amplifying circuit, digital audio and video signals is obtained after A/D is changed, according to default
Audio format is encoded and stored.In playback or other audio files, audio file is decoded to obtain numeral
Audio signal, simulated audio signal is reduced into after D/A is changed, promotion loudspeaker sounding after audio signal power amplification.
Preset audio file can be stored in the embodiment of the present invention in the terminal in advance, the preset audio file is broadcast
Put.Prestore audio file and default level of sound volume can be chosen by designer according to actual conditions, different sound is broadcast
Put preset audio file corresponding to device and/or default level of sound volume can be different, the embodiment of the present invention does not limit.Microphone
The audio signal of collection can be that the above-mentioned simulated audio signal converted by mechanical acoustic signals or process are put
Simulated audio signal after big, it can be implemented according to the preparatory condition later in both different settings accordingly respectively, the present invention
Example is not construed as limiting.In order to facilitate interacting between terminal and user, terminal can typically provide a user volume adjusting function, user
The regulation mode such as volume knob or volume adjusting progress bar can be used to be adjusted the level of sound volume of terminal plays sound,
And the level of sound volume after terminal adjusts according to user carries out corresponding enhanced processing to the audio signal that needs play, as power is put
Greatly, to meet that user's listens to demand.May be different to the partition strategy of level of sound volume in different terminals, i.e., specific volume
Volume corresponding to the total quantity of grade and each level of sound volume may be different, and the embodiment of the present invention is not construed as limiting.
Fig. 2 gives a kind of flow chart of the method for controlling volume of mobile terminal provided in an embodiment of the present invention, this implementation
The method of example can be performed by the sound volume control device of mobile terminal, and the device can be real by way of hardware and/or software
Existing, described device can be arranged on the inside of the mobile terminal as a mobile terminal part.
As shown in Fig. 2 the method for controlling volume for the mobile terminal that the present embodiment provides comprises the following steps:
Step 101, when detecting that audio broadcast event is triggered, obtain the current environmental light brightness of mobile terminal.
Mobile terminal described in the embodiment of the present invention includes smart mobile phone, notebook, tablet personal computer etc. and broadcast with audio
The equipment of playing function.
Exemplary, under the application scenarios such as incoming call jingle bell, playback of songs, video playback or game sound broadcasting,
Before playing these the tinkle of bells, song, video or the audio of game, when detecting that respective audio broadcast event is triggered, such as,
When receiving incoming telephone signal, or when detecting that user acts on the touching instruction of broadcasting button, that is, determine to detect audio
Broadcast event is triggered.
The current environment of mobile terminal local environment light can be gathered using the ambient light sensor built in mobile terminal
Degree.
Step 102, determine environmental light brightness grade corresponding to the current environmental light brightness.
Environmental light brightness is subjected to grade classification in advance inside mobile terminal, multiple environmental light brightness grades are set, often
The corresponding environmental light brightness scope of one environmental light brightness grade.Wherein, the environment that each environmental light brightness grade is included
The range of brightness scope can be with identical, can also be different.Wherein, environmental light brightness grade is more if environmental light brightness is more bright
It is high.
It is described to determine that environmental light brightness grade corresponding to the current environmental light brightness include:Work as front ring described in searching
Environmental light brightness scope belonging to the light of border, determine environmental light brightness grade corresponding to the environmental light brightness scope.
Step 103, determine broadcast sound volume grade corresponding with the environmental light brightness grade.
The the first default mapping table for being stored with environmental light brightness grade and broadcast sound volume grade is obtained, from described first
Broadcast sound volume grade corresponding to the environmental light brightness grade is searched in default mapping table.Wherein, described broadcast sound volume etc.
Level can be a broadcast sound volume scope, or a specific broadcast sound volume value.
Wherein, the environmental light brightness grade and corresponding broadcast sound volume grade can be with proportional, i.e. environment bright
Degree higher grade, and corresponding broadcast sound volume higher grade.
Step 104, the control mobile terminal carry out the broadcasting of audio according to the broadcast sound volume grade.
Exemplary, control mobile terminal carries out the broadcasting of incoming ring tone according to the broadcast sound volume grade, song is broadcast
Put, the broadcasting of video or the broadcasting of game sound.
The method for controlling volume for the mobile terminal that the present embodiment provides, by detecting that audio broadcast event is triggered
When, the current environmental light brightness of mobile terminal is obtained, determines environmental light brightness grade corresponding to the current environmental light brightness, with
And broadcast sound volume grade corresponding with the environmental light brightness grade is determined, the mobile terminal is controlled according to the broadcast sound volume
Grade carries out the broadcasting of audio, and the broadcast sound volume of mobile terminal can be reasonably controlled according to environmental light brightness.For example, in cave
In the either dim position of the environment such as morning or during the time, the broadcasting of audio is carried out with rational broadcast sound volume grade, can be prevented
Only user's mobile terminal under this dim environment carries out the broadcasting of audio with larger acquiescence broadcast sound volume and got a fright, and is lifted
The experience satisfaction of the intelligent and user of mobile terminal.
On the basis of above-described embodiment, it can also comprise the following steps:The variation tendency of environmental light brightness is obtained, according to
The variation tendency adjustment broadcast sound volume grade of the environmental light brightness.Wherein, the variation tendency of the environmental light brightness can basis
The current environmental light brightness and history environment brightness determine.
Wherein, the variation tendency of environmental light brightness can be bright by the current environmental light brightness to environment and history environment
Degree is detected, comparative analysis obtains, specifically, to show as current environmental light brightness relative for the variation tendency of environmental light brightness
Obtain an environmental light brightness within such as 1 second in the change of history environment brightness, such as every setting time, then can be by current
The difference of the environmental light brightness of secondary acquisition and the last environmental light brightness obtained determines variation tendency.The environmental light brightness
Variation tendency may be, but is not limited to, the amplitude of variation of environmental light brightness, pace of change of environmental light brightness etc..For example, can
Time length according to spent by environmental light brightness changes setting amplitude is used as the variation tendency of environmental light brightness.
It is described to be included according to the variation tendency of environmental light brightness adjustment broadcast sound volume grade:In the environmental light brightness
Variation tendency to reduce when, then accordingly reduce broadcast sound volume grade, the broadcast sound volume grade includes at least one broadcasting sound
Quantum level;When the variation tendency of the environmental light brightness is increases, then accordingly increase broadcast sound volume grade.
When the difference of current environmental light brightness and history environment brightness is negative value, the variation tendency becomes to reduce
Secretly, then accordingly reduce broadcast sound volume grade, such as current default broadcast sound volume is reduced into a level of sound volume;In current environment light
The difference of brightness and history environment brightness be on the occasion of when, the variation tendency brightens for increase, then corresponding increase plays sound
Grade is measured, such as current default broadcast sound volume is increased into a level of sound volume.Wherein, the broadcast sound volume grade can include more
The individual sub- grade of broadcast sound volume, can according to the size of the difference of current environmental light brightness and history environment brightness, it is determined that reduce or
The sub- number of levels of broadcast sound volume of increase.
Accordingly, when the variation tendency of the environmental light brightness of mobile terminal is is gradually reduced, then can accordingly be gradually reduced
Broadcast sound volume grade;When the variation tendency of the environmental light brightness of mobile terminal is gradually increases, then it accordingly can gradually increase and broadcast
Level of sound volume is put, mobile terminal is gradually adjusted broadcast sound volume grade according to the variation tendency of environmental light brightness, improves
Mobile terminal loudness controls interesting and personalized.
On the basis of above-described embodiment, it can also include:Obtain the change of environmental light brightness in two neighboring setting time
Change amount;If the variable quantity is more than the first setting value, broadcast sound volume grade is adjusted;If the variable quantity is less than the second setting
Value, then keep current broadcast sound volume grade constant.So set the reason for be:Only just adjusted in the case where variable quantity is larger
Broadcast sound volume grade, is not otherwise adjusted, and faint environmental light brightness can be avoided to change the change for resulting in broadcast sound volume grade,
The problem of causing uncomfortable change of the user to broadcast sound volume, poor user experience.
Fig. 3 gives the flow chart of the method for controlling volume of another mobile terminal provided in an embodiment of the present invention.Such as Fig. 3
Shown, the method that the present embodiment provides comprises the following steps:
Step 201, when detecting that audio broadcast event is triggered, obtain mobile terminal current environmental light brightness and
Ambient noise present.
Wherein, the ambient noise can be acquired by the microphone of mobile terminal, and can be calculated by echo cancellation
The interference that audio plays when method eliminates microphone collection ambient noise.
Step 202, determine that environmental light brightness grade corresponding to the current environmental light brightness, and the current environment are made an uproar
Environmental noise level corresponding to sound.
Ambient noise is subjected to grade classification in advance inside mobile terminal, multiple environmental noise levels are set, each
The corresponding ambient noise scope of environmental noise level.Wherein, the amount for the ambient noise scope that each environment includes in body grade
Journey can be with identical, can also be different.Wherein, environmental noise level is higher if ambient noise is more big.
It is described to determine that environmental noise level corresponding to the ambient noise include:Search belonging to the ambient noise
Ambient noise scope, determine environmental noise level corresponding to the ambient noise scope.
Step 203, determine broadcast sound volume corresponding with the environmental light brightness grade and the environmental noise level etc.
Level.
Can be that the environmental light brightness grade and environmental noise level distribution influence to play sound according to the demand of user
The weight of grade is measured, for example, the weight for setting environmental light brightness grade is 0.6, the weight of environmental noise level is 0.4.
The the first default mapping table for being stored with environmental light brightness grade and broadcast sound volume grade is obtained, from described first
Broadcast sound volume grade A corresponding to the environmental light brightness grade a is searched in default mapping table.Acquisition is stored with ambient noise
Second default mapping table of grade and broadcast sound volume grade, the environment is searched from the described second default mapping table
Broadcast sound volume grade B corresponding to noise grade b, it is determined that with b pairs of the environmental light brightness grade a and the environmental noise level
The broadcast sound volume grade 0.6A+0.4B answered.Wherein, the broadcast sound volume grade can be a broadcast sound volume scope, can also
For a specific broadcast sound volume value.
Or acquisition is stored with the 3rd default pair of environmental light brightness grade, environmental noise level and broadcast sound volume grade
Relation table is answered, is searched and the environmental light brightness grade and the environmental noise level from the described 3rd default mapping table
Corresponding broadcast sound volume grade.
Step 204, the control mobile terminal carry out the broadcasting of audio according to the broadcast sound volume grade.
The method that the present embodiment provides, by when detecting that audio broadcast event is triggered, obtaining working as mobile terminal
Preceding environmental light brightness and ambient noise present, determine environmental light brightness grade corresponding to the current environmental light brightness and it is described work as
Environmental noise level corresponding to preceding ambient noise, and determine corresponding with the environmental light brightness grade and the environmental noise level
Broadcast sound volume grade, control the mobile terminal according to the broadcast sound volume grade carry out audio broadcasting, can be according to ring
Border brightness and ambient noise reasonably control the broadcast sound volume grade of mobile terminal.
Fig. 4 gives the flow chart of the method for controlling volume of another mobile terminal provided in an embodiment of the present invention.Such as Fig. 4
Shown, the method for controlling volume for the mobile terminal that the present embodiment provides comprises the following steps:
Step 301, when detecting that audio broadcast event is triggered, obtain mobile terminal current environmental light brightness and
Trigger the application program of audio broadcast event.
Exemplary, detecting the audio broadcastings such as incoming call jingle bell, playback of songs, video playback or game sound broadcasting
When event is triggered, the application program for obtaining triggering audio broadcast event can be phone, Koowo music box, youku.com's video or king
Person's honor game etc..
Step 302, determine environmental light brightness grade corresponding to the current environmental light brightness and the application program.
Wherein, the current environment of mobile terminal local environment light can be gathered using the optical sensor built in mobile terminal
Degree.The application program can be determined according to the trigger signal entered or trigger audio broadcast event currently run.
Step 303, determine output volume grade corresponding with the environmental light brightness grade and the application program.
It is less than setting brightness level in the environmental light brightness grade, and the application program is that the first setting type should
During with program, determine output volume grade corresponding to the environmental light brightness grade and the application program for the relatively low of setting
Output volume grade.
It is exemplary, when in the dim environment that mobile terminal is in the time in morning, if the application journey that triggering audio plays
Sequence is telephone bell, it is determined that corresponding output volume grade is relatively low level of sound volume.Because typically in dim environment,
The audio broadcasting that telephone bell or ringing sound of text message etc. first sets the application program of type is that user is unforeseen, is user
Psychological preparation can not be carried out and receive audio broadcasting, then when this types of applications triggers audio in dim environment and played
Played out with relatively low volume, user can be avoided to receive scaring.And for playback of songs or video in dim environment
Play, usually user come intervention operation audio broadcasting, be user be known a priori by have certain psychological preparation, for example, insert
Pleasant machine sowing is sung song, then being can be normally to give tacit consent to the broadcasting that broadcast sound volume carries out audio.
Step 304, the control mobile terminal carry out the broadcasting of audio according to the broadcast sound volume grade.
The method that the present embodiment provides, when detecting that audio broadcast event is triggered, obtain mobile terminal works as front ring
Border brightness and the application program for triggering audio broadcast event, determine environmental light brightness corresponding to the current environmental light brightness
Grade and the application program, and determine output sound corresponding with the environmental light brightness grade and the application program
Grade is measured, controls the mobile terminal to carry out the broadcasting of audio according to the broadcast sound volume grade, with environmental light brightness and can be touched
The application program that pronunciation frequency plays reasonably controls the broadcast sound volume grade of mobile terminal.
Fig. 5 is a kind of structural representation of the sound volume control device of mobile terminal provided in an embodiment of the present invention, the device
It can be realized, be integrated in the terminal by software and/or hardware.As shown in figure 5, the device obtains including current environmental light brightness
Module 41, environmental light brightness level determination module 42, broadcast sound volume level determination module 43 and audio play control module 44.
The current environmental light brightness acquisition module 41, for when detecting that audio broadcast event is triggered, obtaining and moving
The current environmental light brightness of dynamic terminal;
The environmental light brightness level determination module 42, for determining environment bright corresponding to the current environmental light brightness
Spend grade;
The broadcast sound volume level determination module 43, for determining broadcast sound volume corresponding with the environmental light brightness grade
Grade;
The audio play control module 44, for controlling the mobile terminal to carry out sound according to the broadcast sound volume grade
The broadcasting of frequency.
The device that the present embodiment provides, by when detecting that audio broadcast event is triggered, obtaining working as mobile terminal
Preceding environmental light brightness, environmental light brightness grade corresponding to the current environmental light brightness is determined, and determined and the ambient light
Broadcast sound volume grade corresponding to brightness degree, the mobile terminal is controlled to carry out broadcasting for audio according to the broadcast sound volume grade
Put, the broadcast sound volume of mobile terminal can be reasonably controlled according to environmental light brightness.
On the basis of above-described embodiment, the current environmental light brightness acquisition module is obtaining the current environment light
Ambient noise present is also obtained while spending, the environmental light brightness level determination module is specifically used for:
Determine corresponding to environmental light brightness grade corresponding to the current environmental light brightness and the ambient noise present
Environmental noise level;
The broadcast sound volume level determination module is specifically used for:
It is determined that broadcast sound volume grade corresponding with the environmental light brightness grade and the environmental noise level.
On the basis of above-described embodiment, the current environmental light brightness is obtained in current environmental light brightness acquisition module
The application program of triggering audio broadcast event is also obtained simultaneously, and the environmental light brightness level determination module is specifically used for:
Determine environmental light brightness grade corresponding to the current environmental light brightness and the application program;
The broadcast sound volume level determination module is specifically used for:
It is determined that output volume grade corresponding with the environmental light brightness grade and the application program.
On the basis of above-described embodiment, described device also includes:
Environmental light brightness variation tendency acquisition module, for obtaining the variation tendency of environmental light brightness, according to the environment
The variation tendency adjustment broadcast sound volume grade of brightness, the variation tendency of the environmental light brightness are bright according to the current environment
Degree and history environment brightness determine.
On the basis of above-described embodiment, the environmental light brightness variation tendency acquisition module is according to the environmental light brightness
Variation tendency adjustment broadcast sound volume grade include:
When the variation tendency of the environmental light brightness is reduces, then accordingly reduce broadcast sound volume grade, the broadcasting sound
Amount grade includes the sub- grade of at least one broadcast sound volume;
When the variation tendency of the environmental light brightness is increases, then accordingly increase broadcast sound volume grade.
On the basis of above-described embodiment, described device also includes:
Environmental light brightness variable quantity acquisition module, for obtaining the change of environmental light brightness in two neighboring setting time
Amount;
Broadcast sound volume level adjustment module, if being more than the first setting value, adjustment broadcast sound volume etc. for the variable quantity
Level;
Broadcast sound volume grade produces module, if being less than the second setting value for the variable quantity, keeps current broadcasting
Level of sound volume is constant.
On the basis of above-described embodiment, environmental light brightness grade pass directly proportional to corresponding broadcast sound volume grade
System.
The embodiment of the present invention also provides a kind of storage medium for including computer executable instructions, and the computer can perform
When being performed by computer processor for performing a kind of method for controlling volume of mobile terminal, this method includes for instruction:
When detecting that audio broadcast event is triggered, the current environmental light brightness of mobile terminal is obtained;
Determine environmental light brightness grade corresponding to the current environmental light brightness;
It is determined that broadcast sound volume grade corresponding with the environmental light brightness grade;
The mobile terminal is controlled to carry out the broadcasting of audio according to the broadcast sound volume grade.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other
The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term
Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or
More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement
For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The volume control operations that executable instruction is not limited to the described above, it can also carry out the volume that any embodiment of the present invention is provided
Associative operation in control method.
The embodiments of the invention provide a kind of mobile terminal, the mobile terminal can include any embodiment of the present invention and provide
Mobile terminal sound volume control device.Fig. 6 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention, is such as schemed
Shown in 6, the mobile terminal can include:Memory 501, central processing unit (Central Processing Unit, CPU) 502
(also known as processor, hereinafter referred to as CPU), the memory 501, for storing executable program code;The processor 502 is logical
Cross and read the executable program code that is stored in the memory 501 to run journey corresponding with the executable program code
Sequence, for performing:When detecting that audio broadcast event is triggered, the current environmental light brightness of mobile terminal is obtained;It is determined that
Environmental light brightness grade corresponding to the current environmental light brightness;It is determined that broadcast sound volume corresponding with the environmental light brightness grade
Grade;The mobile terminal is controlled to carry out the broadcasting of audio according to the broadcast sound volume grade.
The mobile terminal also includes:Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, audio-frequency electric
Road 506, loudspeaker 511, power management chip 508, input/output (I/O) subsystem 509, touch-screen 512, other input/controls
Control equipment 510 and outside port 504, these parts are communicated by one or more communication bus or signal wire 507.
It should be understood that diagram mobile terminal 500 is only an example of mobile terminal, and mobile terminal 500
Can have than more or less parts shown in figure, can combine two or more parts, or can be with
Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special
Hardware, software including integrated circuit are realized in the combination of hardware and software.
Below with regard to the present embodiment provide be used for control the mobile terminal of volume to be described in detail, the mobile terminal with
Exemplified by mobile phone.
Memory 501, the memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and the memory 501 can
Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503
Reservoir 501.
I/O subsystems 509, the I/O subsystems 509 can be by the input/output peripherals in equipment, such as touch-screen 512
With other input/control devicess 510, Peripheral Interface 503 is connected to.I/O subsystems 509 can include the He of display controller 5091
For controlling one or more input controllers 5092 of other input/control devicess 510.Wherein, one or more input controls
Device 5092 processed receives electric signal from other input/control devicess 510 or sends electric signal to other input/control devicess 510,
Other input/control devicess 510 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click on roller.What deserves to be explained is input controller 5092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 512, the touch-screen 512 are the input interface and output interface between user terminal and user, can
It can include figure, text, icon, video etc. to user, visual output depending on output display.
Display controller 5091 in I/O subsystems 509 receives electric signal from touch-screen 512 or sent out to touch-screen 512
Electric signals.Touch-screen 512 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 5091
The interaction of user interface object on touch-screen 512, that is, realize man-machine interaction, the user interface being shown on touch-screen 512
Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light
Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 505, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 505 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 505 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 505 can include being used to perform
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506, it is mainly used in receiving voice data from Peripheral Interface 503, the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511, for the voice signal for receiving mobile phone from wireless network by RF circuits 505, it is reduced to sound
And play the sound to user.
Power management chip 508, the hardware for being connected by CPU502, I/O subsystem and Peripheral Interface 503 are supplied
Electricity and power management.
Above-mentioned mobile terminal can perform the method that any embodiment of the present invention is provided, and possess the corresponding function of execution method
Module, mobile terminal provided in an embodiment of the present invention, by when detecting that audio broadcast event is triggered, obtaining mobile terminal
Current environmental light brightness, determine environmental light brightness grade corresponding to the current environmental light brightness, and determine and the ring
Broadcast sound volume grade corresponding to the brightness level of border, the mobile terminal is controlled to carry out audio according to the broadcast sound volume grade
Play, the broadcast sound volume of mobile terminal can be reasonably controlled according to environmental light brightness.
The technical principle that above are only presently preferred embodiments of the present invention and used.The invention is not restricted to spy described here
Determine embodiment, the various significant changes that can carry out for a person skilled in the art, readjust and substitute all without departing from
Protection scope of the present invention.Therefore, although being described in further detail by above example to the present invention, this hair
It is bright to be not limited only to above example, without departing from the inventive concept, other more equivalence enforcements can also be included
Example, and the scope of the present invention is determined by the scope of claim.
Claims (10)
- A kind of 1. method for controlling volume of mobile terminal, it is characterised in that including:When detecting that audio broadcast event is triggered, the current environmental light brightness of mobile terminal is obtained;Determine environmental light brightness grade corresponding to the current environmental light brightness;It is determined that broadcast sound volume grade corresponding with the environmental light brightness grade;The mobile terminal is controlled to carry out the broadcasting of audio according to the broadcast sound volume grade.
- 2. according to the method for claim 1, it is characterised in that also obtained while the current environmental light brightness is obtained Ambient noise present, it is described to determine that environmental light brightness grade corresponding to the current environmental light brightness includes:Determine environment corresponding to environmental light brightness grade corresponding to the current environmental light brightness and the ambient noise present Noise grade;It is described to determine that broadcast sound volume grade corresponding with the environmental light brightness grade includes:It is determined that broadcast sound volume grade corresponding with the environmental light brightness grade and the environmental noise level.
- 3. according to the method for claim 1, it is characterised in that also obtained while the current environmental light brightness is obtained The application program of audio broadcast event is triggered, it is described to determine environmental light brightness grade bag corresponding to the current environmental light brightness Include:Determine environmental light brightness grade corresponding to the current environmental light brightness and the application program;It is determined that output volume grade corresponding with the environmental light brightness grade includes:It is determined that output volume grade corresponding with the environmental light brightness grade and the application program.
- 4. according to the method for claim 1, it is characterised in that also include:The variation tendency of environmental light brightness is obtained, broadcast sound volume grade, institute are adjusted according to the variation tendency of the environmental light brightness The variation tendency for stating environmental light brightness determines according to the current environmental light brightness and history environment brightness.
- 5. according to the method for claim 4, it is characterised in that described to be adjusted according to the variation tendency of the environmental light brightness Broadcast sound volume grade includes:When the variation tendency of the environmental light brightness is reduces, then accordingly reduce broadcast sound volume grade, the broadcast sound volume etc. Level includes the sub- grade of at least one broadcast sound volume;When the variation tendency of the environmental light brightness is increases, then accordingly increase broadcast sound volume grade.
- 6. according to the method for claim 1, it is characterised in that also include:Obtain the variable quantity of environmental light brightness in two neighboring setting time;If the variable quantity is more than the first setting value, broadcast sound volume grade is adjusted;If the variable quantity is less than the second setting value, keep current broadcast sound volume grade constant.
- 7. according to the method described in claim any one of 1-6, it is characterised in that the environmental light brightness grade is broadcast with corresponding It is proportional to put level of sound volume.
- A kind of 8. sound volume control device of mobile terminal, it is characterised in that including:Current environmental light brightness acquisition module, for when detecting that audio broadcast event is triggered, obtaining working as mobile terminal Preceding environmental light brightness;Environmental light brightness level determination module, for determining environmental light brightness grade corresponding to the current environmental light brightness;Broadcast sound volume level determination module, for determining broadcast sound volume grade corresponding with the environmental light brightness grade;Audio play control module, for controlling broadcasting of the mobile terminal according to broadcast sound volume grade progress audio.
- 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The method for controlling volume of the mobile terminal as described in any in claim 1-7 is realized during row.
- 10. a kind of mobile terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realized described in the computing device during computer program as described in any in claim 1-7 The method for controlling volume of mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710710705.6A CN107483732A (en) | 2017-08-18 | 2017-08-18 | Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710710705.6A CN107483732A (en) | 2017-08-18 | 2017-08-18 | Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107483732A true CN107483732A (en) | 2017-12-15 |
Family
ID=60600973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710710705.6A Pending CN107483732A (en) | 2017-08-18 | 2017-08-18 | Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107483732A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196820A (en) * | 2018-01-31 | 2018-06-22 | 百度在线网络技术(北京)有限公司 | For adjusting the method and apparatus of play parameter |
CN111949821A (en) * | 2020-06-24 | 2020-11-17 | 百度在线网络技术(北京)有限公司 | Video recommendation method and device, electronic equipment and storage medium |
TWI747031B (en) * | 2018-11-26 | 2021-11-21 | 開曼群島商創新先進技術有限公司 | Video playback method, device and multimedia data playback method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027809A (en) * | 2016-07-27 | 2016-10-12 | 维沃移动通信有限公司 | Volume adjusting method and mobile terminal |
CN106572228A (en) * | 2016-11-01 | 2017-04-19 | 乐视控股(北京)有限公司 | Volume adjusting method, volume adjusting device and mobile terminal |
-
2017
- 2017-08-18 CN CN201710710705.6A patent/CN107483732A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027809A (en) * | 2016-07-27 | 2016-10-12 | 维沃移动通信有限公司 | Volume adjusting method and mobile terminal |
CN106572228A (en) * | 2016-11-01 | 2017-04-19 | 乐视控股(北京)有限公司 | Volume adjusting method, volume adjusting device and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196820A (en) * | 2018-01-31 | 2018-06-22 | 百度在线网络技术(北京)有限公司 | For adjusting the method and apparatus of play parameter |
CN108196820B (en) * | 2018-01-31 | 2019-10-18 | 百度在线网络技术(北京)有限公司 | Method and apparatus for adjusting play parameter |
TWI747031B (en) * | 2018-11-26 | 2021-11-21 | 開曼群島商創新先進技術有限公司 | Video playback method, device and multimedia data playback method |
CN111949821A (en) * | 2020-06-24 | 2020-11-17 | 百度在线网络技术(北京)有限公司 | Video recommendation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107562405A (en) | Audio play control method, device and storage medium and mobile terminal | |
CN107509153A (en) | Detection method, device, storage medium and the terminal of Audio Players part | |
US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
CN105487780B (en) | Control display method and device | |
CN107040660A (en) | Control method, device and the mobile terminal of mobile terminal playing volume | |
CN107580113B (en) | Reminding method, device, storage medium and terminal | |
CN107483731A (en) | Control method, device and the storage medium and mobile terminal of audio broadcast sound volume | |
CN107483735A (en) | Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal | |
CN107371102A (en) | Control method, device and the storage medium and mobile terminal of audio broadcast sound volume | |
CN107506167A (en) | Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal | |
CN106126176B (en) | A kind of audio collocation method and mobile terminal | |
CN107241511B (en) | Music playing method, device, storage medium and terminal | |
CN107491560A (en) | Page pictures display methods, device, storage medium, server and mobile terminal | |
CN107343076A (en) | Volume adjusting method, device, storage medium and mobile terminal | |
CN106126172B (en) | A kind of sound effect treatment method and mobile terminal | |
CN106126165B (en) | A kind of audio stream processing method and mobile terminal | |
CN106851451B (en) | A kind of earpiece volume control method and device | |
CN107040661A (en) | Control method, device and the mobile terminal of mobile terminal playing volume | |
CN106686519B (en) | The method, apparatus and terminal of the stereo pairing of audio-frequence player device | |
CN107483732A (en) | Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal | |
CN106878915B (en) | Control method, device and the playback equipment and mobile terminal of playback equipment | |
CN108449506A (en) | Voice communication data processing method, device, storage medium and mobile terminal | |
CN108449502A (en) | Voice communication data processing method, device, storage medium and mobile terminal | |
CN107799113A (en) | Audio-frequency processing method, device, storage medium and mobile terminal | |
CN107526569B (en) | A kind of volume adjusting method, device, storage medium and mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171215 |
|
RJ01 | Rejection of invention patent application after publication |