CN105262879A - Volume gain control method and device and terminal - Google Patents

Volume gain control method and device and terminal Download PDF

Info

Publication number
CN105262879A
CN105262879A CN201410340296.1A CN201410340296A CN105262879A CN 105262879 A CN105262879 A CN 105262879A CN 201410340296 A CN201410340296 A CN 201410340296A CN 105262879 A CN105262879 A CN 105262879A
Authority
CN
China
Prior art keywords
terminal
gain control
volume gain
volume
sensing
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
Application number
CN201410340296.1A
Other languages
Chinese (zh)
Inventor
程黔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201410340296.1A priority Critical patent/CN105262879A/en
Publication of CN105262879A publication Critical patent/CN105262879A/en
Pending legal-status Critical Current

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Stereophonic System (AREA)

Abstract

The invention provides a volume gain control method. The volume gain control method comprises the following steps: obtaining ambient information of a terminal, and judging whether a danger exists in the current environment; and responding to a judgment that the danger exists in the current environment, and carrying out gain control on an audio played by the terminal. The invention further provides a volume gain control device and a terminal. The volume gain control method in the technical scheme can be used for solving the problem that the play volume cannot be controlled according to the environment in the prior art.

Description

A kind of method, device and terminal controlling volume gain
Technical field
The present invention relates to field of terminal technology, particularly relate to a kind of method, device and the terminal that control volume gain.
Background technology
Along with the diversification of terminal development such as mobile phone and deepization of technology, increasing people use mobile phone to replace multimedia equipment to carry out seeing that video listens the functions such as song.Public arena uses mobile phone to carry out listening song to see the activities such as video, and people use ear to put usually, the audio visual effect coming and reached that oneself is isolated from the outside.Along with the development of earphone, its soundproof effect is become better and better, mobile phone is used to see that video listens song etc. in public, be easy to oneself and the external world is completely isolated comes, cause people sometimes to external world occurrence know nothing, and to external world the thing of charging into cannot tackle, thus produce huge loss.
Particularly people when walking, owing to being absorbed in the sound play in the ears, easily causes the change ignoring environment.As when turning to, as do not noted the sound prompting of other traffic participants, be easy to cause danger.
Therefore, how providing a kind of environmentally can carry out the volume gain control method of volume control, device and terminal to playing, and is those skilled in the art's technical problems urgently to be resolved hurrily.
Summary of the invention
The invention provides a kind of volume gain control method, device and terminal, to solve the problem environmentally can not carrying out volume control to broadcasting that prior art exists.
A kind of volume gain control method, comprises step:
Obtain terminal surrounding environmental information, judge that whether current environment is dangerous; And
In response to judging that current environment is dangerous, volume gain control is carried out to the audio frequency of terminal plays.
Wherein, whether the moving direction that acquisition ambient condition information comprises sensing terminal changes, if the direction of fast mobile terminal changes be greater than setting threshold, then judges that current environment is dangerous.
Wherein, before acquisition ambient condition information, also comprising and judge whether terminal adopts earphone playback, in response to judging that the moving direction of terminal changes, volume gain control being carried out to earphone playback.
Wherein, after judging whether terminal adopts earphone playback, also comprising the volume judging earphone playback and whether be greater than setting threshold, obtaining ambient condition information in response to judging that the volume of earphone playback is greater than setting threshold.
Wherein, obtain the sound that ambient condition information comprises sensing surrounding environment, if the sound that the volume of surrounding environment is greater than setting threshold or current environment comprises setting sound, judge that current environment is dangerous.
Wherein, obtain the position that ambient condition information comprises sensing terminal place, according to the position at the current place of terminal, judge that whether current environment is dangerous.
A kind of volume gain control device, it comprises:
Sensing module, for sensing ambient condition information;
Processing module, for sensing environmental information is analyzed to described sensing module, judges that whether surrounding environment is dangerous;
Control module, for judging that current environment is dangerous in response to described processing module, controls volume gain.
Whether wherein, described sensing module is gyroscope, change for sensing the current moving direction of terminal.
Wherein, described sensing module is global positioning system element, for sensing the position residing for terminal.
A kind of terminal, described terminal comprises described volume gain control device.
Volume gain control device, method and terminal that present embodiment provides, when listener hears the sound after gain control, can remind listener's current environment dangerous, need to arouse attention.Particularly when listener uses earphone listening to audio, because earphone has soundproof effect, user can hear that the sound of surrounding environment is less, when user diligently listening to audio time, may cause listener and surrounding environment mutually isolated.When surrounding environment is dangerous, not easily cause the attention of listener in time.By carrying out gain control to the audio frequency play, user according to the change of the audio frequency listened to, and can arouse attention, thus making safer.
Accompanying drawing explanation
The flow chart of the volume gain control method that Fig. 1 provides for the technical program execution mode;
The flow chart of the volume gain control method that another execution mode that Fig. 2 is the technical program provides;
The structured flowchart of the volume gain control device that Fig. 3 provides for the technical program execution mode.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only for explaining the present invention, being not intended to limit the present invention.
Refer to Fig. 1, the first execution mode of the present invention provides a kind of volume gain control method, and described volume gain control method to the volume of the sound that the intelligent terminals such as mobile phone are play-overed or can pass through ear
The volume of the sound that machine sowing is put carries out gain control, and described volume gain control method comprises step:
S101, obtains ambient condition information, judges that whether current environment is dangerous.
The terminal of audio plays has sensing module usually.Described sensing module can be sound sensing element or location sensing element etc.Described sensing module can sense the environmental information around user, as the position of sensing just residing for the sound of the terminal surrounding of audio plays or terminal.As adopted terminal plays audio frequency in the process of walking as user, described sensing module can be sound sensor, when the sound that specifically can be greater than setting threshold or current environment by detecting the volume of surrounding environment comprises some specific sound, judge current environment whether safety.Described sensing module also can be accurate gyroscope, and whether the moving direction sensing terminal current changes.Because in the process of walking, the usual traffic conditions more complicated in the position carrying out turning to, needs walker to arouse attention, and observes the situation of surrounding traffic participant.In this case, described sensing module can sense terminal, and namely whether the direction of travel of audio listeners changes, and changes as sensed direction of travel, then can assert that current environment is dangerous, need the attention causing listener.Described sensing module also can be global positioning system, described sensing module can sense the position at terminal place, according to the position at the current place of terminal, judge that whether current environment is dangerous, the turning etc. of road is in as sensed terminal, can judge that current environment is dangerous, need the attention causing listener.
Be understandable that, in other implementations, other modes also can be adopted to obtain the information of surrounding environment.
S102, in response to judging that whether current environment is dangerous, carries out volume gain control to the audio frequency that audio frequency is play.
The change that described gain controls the control and equalizer audio comprising volume scale controls.When detecting that the current environment described in terminal is dangerous, the audio frequency that can control to play by automatic gain controller carries out gain control.
The volume gain control method that present embodiment provides, when listener hears the sound after gain control, can remind listener's current environment dangerous, need to arouse attention.Particularly when listener uses earphone listening to audio, because earphone has soundproof effect, user can hear that the sound of surrounding environment is less, when user diligently listening to audio time, may cause listener and surrounding environment mutually isolated.When surrounding environment is dangerous, not easily cause the attention of listener in time.By carrying out gain control to the audio frequency play, user according to the change of the audio frequency listened to, and can arouse attention, thus making safer.
Refer to Fig. 2, an execution mode of the technical program provides a kind of volume gain control method, and described volume gain control method may be used for adopting the volume gain of earphone listening to audio to control, and described volume gain control method specifically can comprise:
S201, judges whether terminal adopts earphone playback.
Terminal, when audio plays, can be play-overed by terminal, and earphone also can be adopted to play.Adopt earphone when playing, user usually by earphone belt on ear, user is not easily aroused attention to surrounding environment, and therefore, situation dangerous when using earphone to carry out playback is relatively many, more needs to arouse attention.
S202, whether the moving direction of sensing terminal changes.
In present embodiment, can by the sensing module of terminal, as accurate gyroscope judges whether the moving direction of terminal changes.Be understandable that, when in the process that user's carried terminal is walked, because user's track route may exist a small amount of skew, when judging whether the moving direction of movement changes, whether setting threshold can be greater than by the direction of the rotation judging terminal, as being greater than 30 degree, then think that the moving direction of terminal changes.And there is a little direction skew in terminal, as 10 degree, may be because the randomness of user's walking causes, can not be judged to be that the moving direction of terminal changes, change to avoid the moving direction being judged as terminal frequently, and frequently volume gain is controlled, what affect user listens to experience.
Be understandable that, when adopting earphone playback, in order to prevent the randomness sensing direction, also in earphone, also sensing module can be provided with, when the sensing module of terminal and the sensing module of earphone sense simultaneously moving direction free change time, the moving direction being defined as terminal changes.S203, in response to judging that the moving direction of terminal changes, carries out volume gain control to earphone playback.
Be understandable that, when carrying out gain to the volume of earphone playback and controlling, the time that each volume gain controls can be set.When judging that the moving direction of terminal changes as set, the volume gain duration controlling earphone playback is t second at every turn.When within t time second, again do not detect that the moving direction of terminal changes, then continue t end-sound second flow gain and control.As within t time second, again detect that the moving direction of terminal changes, then the time lasting t end-sound second flow gain control more again detected.
Be understandable that, before S202, can further include the volume judging earphone playback and whether be greater than setting threshold.As when the volume of earphone playback is less than setting threshold, user, when earphone radio, also can hear the sound of surrounding environment simultaneously, therefore, can not need to carry out volume gain control to earphone playback.When the volume of earphone playback is greater than setting threshold, user, when earphone radio, hears that the sound of surrounding environment is affected comparatively serious, needs to carry out gain control to the volume of earphone playback.
The volume gain control method that the technical program execution mode provides, user in the process of walking, carries out gain control by changing to the moving direction of terminal to the volume of earphone playback.Therefore, the volume gain control method that present embodiment provides can solve user in the process of walking, due to the problem adopting earphone listening to audio can not note surrounding environment, improves fail safe.
Refer to Fig. 3, the technical program also correspondence provides a kind of volume gain control device 100, and described volume gain control device 100 comprises sensing module 110, processing module 120, control module 130 and playback module 140.
Described sensing module 110 is for sensing ambient condition information.
Described sensing module 110 can be sound sensing element or location sensing element etc.Described sensing module 110 can sense the environmental information of surrounding, as the position of sensing just residing for the sound of the terminal surrounding of audio plays or terminal.As adopted terminal plays audio frequency in the process of walking as user, described sensing module can be sound sensor, specifically can be greater than the sound of setting threshold or current environment by the volume detecting surrounding environment for some specific sound.
Described sensing module 110 also can be accurate gyroscope, and whether the moving direction sensing terminal current changes.Because in the process of walking, the usual traffic conditions more complicated in the position carrying out turning to, needs walker to arouse attention, and observes the situation of surrounding traffic participant.In this case, described sensing module can sense terminal, and namely whether the direction of travel of audio listeners changes.
Described sensing module 110 can be also global positioning system element, and described sensing module 110 can sense the position at terminal place.
Described processing module 120, for sensing environmental information is analyzed to sensing module 110, judges that whether surrounding environment is dangerous.
Concrete, when sensing module 110 is for sensing surrounding environment sound, whether described processing module can be greater than according to the wave volume of current ambient environmental sound type that whether setting threshold or surrounding environment exist setting judges current environment whether safety.Volume as the sound of surrounding environment is greater than the sound that there is a certain type in setting threshold or surrounding environment, then judge that current ambient environmental is dangerous, needs to arouse attention.
When whether sensing module 110 changes for sensing the current moving direction of terminal, whether described processing module 120 can reach setting threshold according to the angle of terminal skew judges whether the moving direction of terminal changes.
When sensing module 110 is for sensing the particular location residing for terminal, according to current residing particular location, described processing module 120 can judge that whether current environment is dangerous, the turning etc. of road is in as sensed terminal, can judge that current environment is dangerous, need the attention causing listener.
Described control module 130, for judging that current environment is dangerous in response to described processing module 120, controls volume gain.
Described control module 130 can be automatic gain controller, and when processing module 120 judges that current environment is dangerous, described control module 130 carries out volume gain control to audio frequency, automatically to remind listener.
Described playback module 140, for playback, can be that earphone or microphone etc. can the elements of playback.
Be understandable that, when adopting earphone playback, in order to prevent the randomness sensing direction, also in earphone, also sensing module can be provided with, when the sensing module of terminal and the sensing module of earphone sense simultaneously moving direction free change time, the moving direction being defined as terminal changes.
The volume gain control device that present embodiment provides, when listener hears the sound after gain control, can remind listener's current environment dangerous, need to arouse attention.Particularly when listener uses earphone listening to audio, because earphone has soundproof effect, user can hear that the sound of surrounding environment is less, when user diligently listening to audio time, may cause listener and surrounding environment mutually isolated.When surrounding environment is dangerous, not easily cause the attention of listener in time.By carrying out gain control to the audio frequency play, user according to the change of the audio frequency listened to, and can arouse attention, thus making safer.
The technical program also correspondence provides a kind of terminal, and described terminal comprises described volume gain control device.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to the claim appended by the present invention.

Claims (10)

1. a volume gain control method, comprises step:
Obtain terminal surrounding environmental information, judge that whether current environment is dangerous; And
In response to judging that current environment is dangerous, gain control is carried out to the audio frequency of terminal plays.
2. volume gain control method as claimed in claim 1, is characterized in that, whether the moving direction that acquisition ambient condition information comprises sensing terminal changes, if the direction of fast mobile terminal changes be greater than setting threshold, then judges that current environment is dangerous.
3. volume gain control method as claimed in claim 2, it is characterized in that, before acquisition ambient condition information, also comprise and judge whether terminal adopts earphone playback, in response to judging that the moving direction of terminal changes, volume gain control is carried out to earphone playback.
4. volume gain control method as claimed in claim 3, it is characterized in that, after judging whether terminal adopts earphone playback, also comprising the volume judging earphone playback and whether be greater than setting threshold, obtaining ambient condition information in response to judging that the volume of earphone playback is greater than setting threshold.
5. volume gain control method as claimed in claim 1, it is characterized in that, obtain the sound that ambient condition information comprises sensing surrounding environment, if the sound that the volume of surrounding environment is greater than setting threshold or current environment comprises setting sound, judge that current environment is dangerous.
6. volume gain control method as claimed in claim 1, is characterized in that, obtains the position that ambient condition information comprises sensing terminal place, according to the position at the current place of terminal, judges that whether current environment is dangerous.
7. a volume gain control device, it comprises:
Sensing module, for sensing ambient condition information;
Processing module, for sensing environmental information is analyzed to described sensing module, judges that whether surrounding environment is dangerous; And
Control module, for judging that current environment is dangerous in response to described processing module, controls volume gain.
8. volume gain control device as claimed in claim 7, whether it is characterized in that, described sensing module is gyroscope, change for sensing the current moving direction of terminal.
9. volume gain control device as claimed in claim 7, it is characterized in that, described sensing module is global positioning system element, for sensing the position residing for terminal.
10. a terminal, is characterized in that, described terminal comprises the volume gain control device as described in any one of claim 7 to 9.
CN201410340296.1A 2014-07-16 2014-07-16 Volume gain control method and device and terminal Pending CN105262879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410340296.1A CN105262879A (en) 2014-07-16 2014-07-16 Volume gain control method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410340296.1A CN105262879A (en) 2014-07-16 2014-07-16 Volume gain control method and device and terminal

Publications (1)

Publication Number Publication Date
CN105262879A true CN105262879A (en) 2016-01-20

Family

ID=55102382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410340296.1A Pending CN105262879A (en) 2014-07-16 2014-07-16 Volume gain control method and device and terminal

Country Status (1)

Country Link
CN (1) CN105262879A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399924A (en) * 2018-02-08 2018-08-14 上海爱优威软件开发有限公司 A kind of sound processing method and terminal device
CN109672958A (en) * 2018-12-14 2019-04-23 歌尔科技有限公司 Control method for playing back and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN102067578A (en) * 2008-06-16 2011-05-18 高通股份有限公司 Methods and systems for configuring mobile devices using sensors
CN103137155A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Play system with acoustical signals adjusted according to external acoustical signal changes and method thereof
CN103167125A (en) * 2012-07-24 2013-06-19 深圳市金立通信设备有限公司 Mobile phone music playing system and method for the blind
CN103825993A (en) * 2014-03-11 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for treating environment sound during conversation
CN103873694A (en) * 2014-03-27 2014-06-18 惠州Tcl移动通信有限公司 Method and system used for automatically sending notification message under emergent conditions and based on mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102067578A (en) * 2008-06-16 2011-05-18 高通股份有限公司 Methods and systems for configuring mobile devices using sensors
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN103137155A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Play system with acoustical signals adjusted according to external acoustical signal changes and method thereof
CN103167125A (en) * 2012-07-24 2013-06-19 深圳市金立通信设备有限公司 Mobile phone music playing system and method for the blind
CN103825993A (en) * 2014-03-11 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for treating environment sound during conversation
CN103873694A (en) * 2014-03-27 2014-06-18 惠州Tcl移动通信有限公司 Method and system used for automatically sending notification message under emergent conditions and based on mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399924A (en) * 2018-02-08 2018-08-14 上海爱优威软件开发有限公司 A kind of sound processing method and terminal device
CN109672958A (en) * 2018-12-14 2019-04-23 歌尔科技有限公司 Control method for playing back and equipment

Similar Documents

Publication Publication Date Title
JP6073365B2 (en) Handling wireless connection failures in communication systems
US9113246B2 (en) Automated left-right headphone earpiece identifier
WO2015139481A1 (en) Alarm method and device for mobile terminal
KR20150103158A (en) Audio control process
CN112203206B (en) Microphone hole blockage detection method and related product
CN102064781B (en) A kind of method of adjustment of terminal audio frequency, device and terminal
US20140066097A1 (en) Impending hazard alert
CN104978166A (en) Volume adjusting method and device
CN104869206B (en) A kind of communication means and terminal
CN105657656B (en) A kind of transmission power adjustment method and user equipment
CN105430569A (en) Playing method, playing device and terminal
WO2016123901A1 (en) Terminal and method for directionally playing audio signal thereby
WO2016029846A1 (en) Alarming method and device
CN106095379B (en) A kind of volume adjusting method and device
CN111683321A (en) TWS charging box loss prevention method, device, equipment and medium
CN105262879A (en) Volume gain control method and device and terminal
CN105679350A (en) Audio playing method and device
CN103985400A (en) Audio file playing system
TWI539837B (en) Audio player and control method thereof
US10129382B2 (en) Electronic device and method for controlling electronic device using headset
JP2013532919A (en) Method for mobile communication
CN106375554B (en) Audio output control method and mobile terminal
US9473093B2 (en) Method and apparatus for ultrasonic triggered audio reduction
KR102013126B1 (en) Method for alarming a warning using user terminal
CN106331356A (en) Volume control method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120

RJ01 Rejection of invention patent application after publication