[go: up one dir, main page]

CN102982823B - A kind of method and apparatus of automatic regulating volume - Google Patents

A kind of method and apparatus of automatic regulating volume Download PDF

Info

Publication number
CN102982823B
CN102982823B CN201210486894.0A CN201210486894A CN102982823B CN 102982823 B CN102982823 B CN 102982823B CN 201210486894 A CN201210486894 A CN 201210486894A CN 102982823 B CN102982823 B CN 102982823B
Authority
CN
China
Prior art keywords
sound
volume
value
loudness value
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210486894.0A
Other languages
Chinese (zh)
Other versions
CN102982823A (en
Inventor
项功宏
崔赵会
董淑芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210486894.0A priority Critical patent/CN102982823B/en
Publication of CN102982823A publication Critical patent/CN102982823A/en
Priority to PCT/CN2013/082233 priority patent/WO2013189434A2/en
Application granted granted Critical
Publication of CN102982823B publication Critical patent/CN102982823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
  • Control Of Amplification And Gain Control (AREA)

Abstract

The invention discloses a kind of method of automatic regulating volume, the method comprises: the voice data that equipment of putting outside collection present terminal sends, and obtains the loudness value of current sound; The loudness value of the current sound of acquisition and the sound intensity value preset are compared, according to comparative result, current volume value is adjusted.The invention also discloses a kind of device of automatic regulating volume, adopt the method and apparatus of automatic regulating volume of the present invention, the situation that sound is suddenly large or suddenly little when switching different source of sound can being avoided, achieving the automatic adjustment of volume, improving the experience of user.

Description

Method and device for automatically adjusting volume
Technical Field
The invention relates to the field of multimedia playing, in particular to a method and a device for automatically adjusting volume.
Background
At present, multimedia technology is applied to a plurality of fields such as video, audio and the like, but due to various reasons, the sound sources are not consistent in production and synthesis, the volume of some sound sources is larger, and the volume of some sound sources is smaller. Therefore, when switching different sound sources, the volume set by the playing terminal may make the played sound big or small, some sounds big enough to make people feel uncomfortable, and some sounds small enough to make people not hear clearly, so that the user has to manually adjust the volume to achieve a more comfortable effect.
Disclosure of Invention
In view of this, the main objective of the present invention is to provide a method and an apparatus for automatically adjusting a volume, which can automatically adjust the volume, avoid the situation that a sound is suddenly big or suddenly small when different sound sources are switched, and improve user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for automatically adjusting volume, which comprises the following steps:
collecting sound data sent by current terminal external playing equipment to obtain a loudness value of current sound;
and comparing the obtained loudness value of the current sound with a preset loudness value of the sound, and adjusting the current volume value according to the comparison result.
In the foregoing solution, the comparing the obtained loudness value of the current sound with a preset loudness value of the sound, and adjusting the current loudness value according to the comparison result includes:
judging whether the loudness value of the current sound is equal to a preset sound loudness value or not, and if so, not executing any operation; otherwise, judging whether the loudness value of the current sound is greater than a preset sound loudness value;
if the loudness value of the current sound is larger than the preset loudness value of the sound, the loudness value of the current terminal is reduced until the loudness value of the current sound is equal to the preset loudness value of the sound; and if the loudness value of the current sound is smaller than the preset loudness value, the loudness value of the current terminal is increased until the loudness value of the current sound is equal to the preset loudness value.
In the above scheme, the method further comprises: the play-out device outputs an audio signal according to the actual volume value.
In the above scheme, before acquiring the sound data sent by the current terminal play-out device, the method further includes: and starting the function of automatically adjusting the volume.
The invention also provides a device for automatically adjusting the volume, which comprises a sound monitoring module, a comparison module and a sound adjusting module; wherein,
the sound monitoring module is used for collecting sound data, obtaining the loudness value of the current sound and sending the obtained loudness value to the comparison module;
the comparison module is used for comparing the loudness value of the current sound sent by the sound monitoring module with a preset sound loudness value and sending the comparison result to the sound adjustment module;
and the sound adjusting module is used for adjusting the current volume value according to the comparison result sent by the comparing module.
In the above scheme, the apparatus further includes a storage module, configured to store a preset sound loudness value.
In the above scheme, the sound adjusting module is specifically configured to, when the comparison result is that the loudness value of the current sound is greater than the preset sound loudness value, decrease the current loudness value until the loudness value of the current sound is equal to the preset sound loudness value; and when the comparison result shows that the loudness value of the current sound is smaller than the preset sound loudness value, increasing the current sound value until the loudness value of the current sound is equal to the preset sound loudness value.
In the above scheme, the apparatus further comprises an external device for outputting the audio signal according to the actual volume value.
In the above scheme, the device further comprises a switch module for turning on or off the function of automatically adjusting the volume.
The method and the device for automatically adjusting the volume acquire the loudness value of the current sound by acquiring the sound data sent by the current terminal external playing equipment, and compare the loudness value of the current sound with the preset loudness value; and increasing or decreasing the volume value of the current terminal according to the comparison result. Therefore, the condition of big or small sound can be avoided when different sound sources are switched, automatic adjustment of the sound volume is realized, and the user experience is improved.
Drawings
FIG. 1 is a flow chart illustrating a method for automatically adjusting volume according to the present invention;
FIG. 2 is a schematic diagram illustrating an implementation process of adjusting the volume according to the comparison result of the sound volume values;
fig. 3 is a schematic view of the structure of the device for automatically adjusting volume according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a method for automatically adjusting volume according to the present invention, as shown in fig. 1, including the following steps:
step 101: collecting sound data sent by current terminal external playing equipment to obtain a loudness value of current sound;
here, before the collecting the sound data emitted by the current terminal playing device, the method further includes: starting the function of automatically adjusting the volume;
specifically, the technical scheme of the invention has the function of turning on or turning off the automatic volume adjustment, and because the sound data is greatly influenced by the external sound, when the external sound is large and the collection of the sound data sent by the external equipment is influenced, the automatic volume adjustment is influenced, so that the function of automatically adjusting the volume can be turned on or turned off by a user according to the actual external environment.
Here, the sound data includes loudness of sound emitted by the current terminal playback device.
Step 102: comparing the obtained loudness value of the current sound with a preset loudness value, and adjusting the current loudness value according to the comparison result;
here, it is assumed that the loudness value of the current sound is Vt, and the preset sound loudness value is Vs; specifically, referring to fig. 2, step 102 includes:
step 102 a: judging whether the loudness value Vt of the current sound is equal to a preset sound loudness value Vs, if so, executing the step 102b, and ending the current processing process; otherwise, go to step 102 c;
here, the preset sound loudness value Vs is set by the user according to his or her needs, and is a sound loudness that the user feels optimal.
Step 102c to step 102 e: comparing the loudness value Vt of the current sound with a preset sound loudness value Vs, if Vt is greater than Vs, reducing the volume value of the current terminal, executing step 102a until Vt is equal to Vs, and ending the current processing process; if Vt is less than Vs, then increase the volume value of the current terminal, execute step 102a, until Vt is equal to Vs, end the current processing process;
here, the comparison module sends a signal to the sound adjustment module to inform the sound adjustment module of the comparison result between Vt and Vs; the sound adjusting module adjusts the sound gain parameters according to the received signals; wherein the sound gain parameter may affect the actual playing loudness of the sound.
When the loudness value of the current sound is inconsistent with the preset loudness value of the sound, the loudness value of the current sound can be adjusted step by step according to the minimum unit of the current terminal volume value until the loudness value of the current sound is consistent with the preset loudness value of the sound;
or, the loudness value of the current sound is too different from the preset sound loudness value, the volume can be adjusted according to N minimum units of the current terminal volume value, which is equivalent to setting a volume adjustment amplitude, so that the sound loudness can be adjusted in an accelerated manner.
For example, the volume value of the terminal is between 0 and 100, the minimum unit is 1, if the loudness value of the current sound is 70 db and the preset sound loudness value is 60 db, the volume value of the current terminal needs to be reduced, so that the loudness value of the current sound is reduced to 60 db; if the current volume value of the terminal is 30, the current volume value of the terminal can be adjusted step by step according to the minimum unit of the volume value, the volume value of the terminal is adjusted to 29, sound data sent by current terminal external equipment is collected continuously, and the obtained loudness value of the current sound is compared with a preset loudness value until the loudness value of the current sound is equal to the preset loudness value;
for example, the loudness value of the current sound is 75 decibels, the preset sound loudness value is 45 decibels, and the difference is 30 decibels, the loudness value of the current terminal needs to be reduced, so that the loudness value of the current sound is reduced to 45 decibels; the volume value of the terminal is between 0 and 100, the minimum unit is 1, the current volume value is 35, the adjustment can be carried out according to the minimum unit of 5 volume values, the volume value is adjusted to be 30, sound data sent by the current terminal external playing equipment are collected continuously, the obtained loudness value of the current sound is compared with the preset sound loudness value, and the obtained loudness value of the current sound is equal to the preset sound loudness value.
Here, whether to adjust the volume according to the minimum unit or the volume adjustment amplitude may be selected by the comparison module according to a comparison result between the loudness value of the current sound and a preset loudness value of the sound, and sent to the sound adjustment module through a signal.
Fig. 3 is a schematic structural diagram of the apparatus for automatically adjusting volume according to the present invention, as shown in fig. 2, the apparatus includes a sound monitoring module 32, a comparing module 33 and a sound adjusting module 35; wherein,
the sound monitoring module 32 is configured to collect sound data, obtain a loudness value of the current sound, and send the obtained loudness value to the comparison module 33;
the comparing module 33 is configured to compare the loudness value of the current sound sent by the sound monitoring module 32 with a preset sound loudness value, and send the comparison result to the sound adjusting module 35;
the sound adjusting module 35 is configured to adjust the current volume value according to the comparison result sent by the comparing module 33.
Further, the apparatus further comprises a storage module 34 for storing the preset sound loudness value.
Further, the sound adjusting module 35 is specifically configured to, when the comparison result is that the loudness value of the current sound is greater than the preset sound loudness value, decrease the current volume value until the loudness value of the current sound is equal to the preset sound loudness value; and when the comparison result shows that the loudness value of the current sound is smaller than the preset sound loudness value, increasing the current sound value until the loudness value of the current sound is equal to the preset sound loudness value.
Further, the apparatus further comprises a play-out device 31 for outputting an audio signal in dependence of the actual volume value.
Furthermore, the device also comprises a switch module which is used for switching on or off the function of automatically adjusting the volume.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (9)

1. A method for automatically adjusting volume, the method comprising:
collecting sound data sent by current terminal external playing equipment to obtain a loudness value of current sound;
comparing the obtained loudness value of the current sound with a preset loudness value of the sound, and adjusting the current volume value step by selecting the minimum unit volume adjustment or volume adjustment amplitude volume adjustment according to the comparison result;
when the comparison result of the loudness value of the sound and the preset sound loudness value reaches a preset threshold value, selecting volume adjustment amplitude to adjust the volume level by level to adjust the current volume value; when the comparison result of the sound loudness value and the preset sound loudness value does not reach a preset threshold value, selecting the minimum unit to adjust the volume to adjust the current volume value step by step; the volume adjustment amplitude adjusts the volume to be greater than the minimum unit adjustment volume.
2. The method of claim 1, wherein comparing the obtained loudness value of the current sound with a preset loudness value of the sound, and selecting a minimum unit volume or volume amplitude to adjust the volume step by step according to the comparison result to adjust the current volume value comprises:
judging whether the loudness value of the current sound is equal to a preset sound loudness value or not, and if so, not executing any operation; otherwise, judging whether the loudness value of the current sound is greater than a preset sound loudness value;
if the loudness value of the current sound is larger than the preset sound loudness value, selecting a minimum unit to adjust the volume or a volume adjustment amplitude to adjust the volume, and gradually reducing the volume value of the current terminal until the loudness value of the current sound is equal to the preset sound loudness value; and if the loudness value of the current sound is smaller than the preset sound loudness value, selecting the minimum unit volume adjustment or volume adjustment amplitude volume adjustment to gradually increase the volume value of the current terminal until the loudness value of the current sound is equal to the preset sound loudness value.
3. The method according to claim 1 or 2, characterized in that the method further comprises: the play-out device outputs an audio signal according to the actual volume value.
4. The method according to claim 1 or 2, wherein before collecting the voice data emitted by the current terminal playing device, the method further comprises: and starting the function of automatically adjusting the volume.
5. A device for automatically adjusting volume is characterized by comprising a sound monitoring module, a comparison module and a sound adjusting module; wherein,
the sound monitoring module is used for collecting sound data, obtaining the loudness value of the current sound and sending the obtained loudness value to the comparison module;
the comparison module is used for comparing the loudness value of the current sound sent by the sound monitoring module with a preset sound loudness value and sending the comparison result to the sound adjustment module;
the sound adjusting module is used for adjusting the current volume value step by selecting the minimum unit adjusting volume or the volume adjusting amplitude adjusting volume according to the comparison result sent by the comparison module; when the comparison result of the loudness value of the sound and the preset sound loudness value reaches a preset threshold value, selecting volume adjustment amplitude to adjust the volume level by level to adjust the current volume value; when the comparison result of the sound loudness value and the preset sound loudness value does not reach a preset threshold value, selecting the minimum unit to adjust the volume to adjust the current volume value step by step; the volume adjustment amplitude adjusts the volume to be greater than the minimum unit adjustment volume.
6. The device of claim 5, further comprising a storage module for storing the preset acoustic loudness value.
7. The apparatus according to claim 5 or 6, wherein the sound adjusting module is specifically configured to select a minimum unit adjusting volume or a volume adjusting amplitude adjusting volume to gradually decrease the current volume value when the comparison result indicates that the loudness value of the current sound is greater than the preset sound loudness value, until the loudness value of the current sound is equal to the preset sound loudness value; and when the comparison result shows that the loudness value of the current sound is smaller than the preset sound loudness value, selecting the minimum unit volume adjustment or the volume adjustment amplitude to adjust the volume to increase the current volume value step by step until the loudness value of the current sound is equal to the preset sound loudness value.
8. An apparatus according to claim 5 or 6, characterized in that the apparatus further comprises a play-out device for outputting the audio signal in dependence of the actual volume value.
9. The device of claim 5 or 6, further comprising a switch module for turning on or off a function of automatically adjusting the volume.
CN201210486894.0A 2012-11-26 2012-11-26 A kind of method and apparatus of automatic regulating volume Active CN102982823B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210486894.0A CN102982823B (en) 2012-11-26 2012-11-26 A kind of method and apparatus of automatic regulating volume
PCT/CN2013/082233 WO2013189434A2 (en) 2012-11-26 2013-08-23 Automatic volume adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210486894.0A CN102982823B (en) 2012-11-26 2012-11-26 A kind of method and apparatus of automatic regulating volume

Publications (2)

Publication Number Publication Date
CN102982823A CN102982823A (en) 2013-03-20
CN102982823B true CN102982823B (en) 2015-12-23

Family

ID=47856726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210486894.0A Active CN102982823B (en) 2012-11-26 2012-11-26 A kind of method and apparatus of automatic regulating volume

Country Status (2)

Country Link
CN (1) CN102982823B (en)
WO (1) WO2013189434A2 (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982823B (en) * 2012-11-26 2015-12-23 中兴通讯股份有限公司 A kind of method and apparatus of automatic regulating volume
CN103220600A (en) * 2013-04-08 2013-07-24 无锡市崇安区科技创业服务中心 Device for automatically adjusting volume of sounding box
CN104580668A (en) * 2013-10-21 2015-04-29 中兴通讯股份有限公司 Method, device and mobile terminal for ending call
CN105981405A (en) * 2013-12-25 2016-09-28 怀斯迪斯匹有限公司 Systems and methods for using electrostatic microphone
CN103929692B (en) * 2014-03-24 2020-03-24 联想(北京)有限公司 Audio information processing method and electronic equipment
CN104363510B (en) * 2014-10-29 2019-04-30 深圳市金立通信设备有限公司 A kind of playback terminal
CN104682908A (en) * 2015-01-30 2015-06-03 小米科技有限责任公司 Method and device for controlling volume
US9678708B2 (en) 2015-04-24 2017-06-13 Sonos, Inc. Volume limit
CN105024665A (en) * 2015-07-27 2015-11-04 苏州宏展信息科技有限公司 Self-adaptive vehicle play method based on volume detection
WO2017015907A1 (en) * 2015-07-29 2017-02-02 张阳 Automatic volume adjustment method and system
CN105163227A (en) * 2015-07-30 2015-12-16 苏州玄禾物联网科技有限公司 Method for adaptive adjustment of volume of WIFI sound box
CN105120394A (en) * 2015-07-30 2015-12-02 苏州玄禾物联网科技有限公司 Adaptively volume-adjusting WIFI sound box
CN106231108B (en) * 2016-08-10 2019-10-29 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal loudness control method and system
CN106681684A (en) * 2016-12-26 2017-05-17 维沃移动通信有限公司 Method for adjusting loud speaker sound and playing device
CN107241497B (en) * 2017-05-26 2021-01-26 努比亚技术有限公司 Mobile terminal and loudness output adjusting method
CN109217899A (en) * 2017-07-06 2019-01-15 成都鼎桥通信技术有限公司 A kind of speech loudness method of adjustment and device
CN109298847A (en) * 2018-10-18 2019-02-01 珠海格力电器股份有限公司 Volume adjusting method, device and system
CN110233691B (en) * 2019-05-31 2021-07-30 中国神华能源股份有限公司 Broadcast terminal playing volume adjusting method, storage medium and electronic equipment
CN110231087B (en) * 2019-06-06 2021-07-23 江苏省广播电视集团有限公司 High-definition television audio loudness analysis alarm and normalization manufacturing method and device
CN110769350A (en) * 2019-09-29 2020-02-07 惠州市杰德创新科技有限公司 Method for adjusting loudness of loudspeaker and loudspeaker
CN110662142A (en) * 2019-09-29 2020-01-07 惠州市杰德创新科技有限公司 Loudness adjustment method of loudspeaker and loudspeaker
CN111258532A (en) * 2020-02-19 2020-06-09 西安闻泰电子科技有限公司 Volume adaptive adjustment method and device, storage medium and electronic equipment
CN112700784B (en) * 2020-12-24 2023-12-15 惠州市德赛西威汽车电子股份有限公司 Loudness calibration method based on ITU-R BS.1770 and storage medium
CN112911053B (en) * 2021-01-19 2022-09-13 武汉凡鱼科技有限公司 Automatic voice call switching method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409807A (en) * 2008-11-03 2009-04-15 康佳集团股份有限公司 Intelligent control method for television volume
CN102316396A (en) * 2010-07-09 2012-01-11 廖明忠 Method and device for realizing automatic control over sounds in large dynamic range by using sensor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002062888A (en) * 2000-08-21 2002-02-28 Matsushita Electric Ind Co Ltd Electronic music processor, electronic music reproducer, and electronic music distribution system
US6988068B2 (en) * 2003-03-25 2006-01-17 International Business Machines Corporation Compensating for ambient noise levels in text-to-speech applications
KR100669034B1 (en) * 2005-05-20 2007-01-15 주식회사 엔터기술 Digital audio playback device and playback method using same
CN102982823B (en) * 2012-11-26 2015-12-23 中兴通讯股份有限公司 A kind of method and apparatus of automatic regulating volume

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409807A (en) * 2008-11-03 2009-04-15 康佳集团股份有限公司 Intelligent control method for television volume
CN102316396A (en) * 2010-07-09 2012-01-11 廖明忠 Method and device for realizing automatic control over sounds in large dynamic range by using sensor

Also Published As

Publication number Publication date
WO2013189434A2 (en) 2013-12-27
CN102982823A (en) 2013-03-20
WO2013189434A3 (en) 2014-02-20

Similar Documents

Publication Publication Date Title
CN102982823B (en) A kind of method and apparatus of automatic regulating volume
CN104798301B (en) audio loudness control system
JP5238713B2 (en) Hearing aid with user interface
US8666084B2 (en) Method and arrangement for training hearing system users
US12159644B2 (en) Multiband limiter modes and noise compensation methods
CN101227759A (en) Earphone device with automatic volume control function
KR20220108076A (en) Adjustment of audio and non-audio characteristics based on noise metrics and speech intelligibility metrics
CN105446697A (en) Automatic earphone volume adjusting method, device and system
CN103746668A (en) Sound volume control method and system
CN112291604A (en) Method and system for automatically controlling audio output of TV device based on ambient noise
CN104754462A (en) Automatic regulating device and method for volume and earphone
CN103812462B (en) Volume control method and device
US11172294B2 (en) Audio device with speech-based audio signal processing
CN111063363A (en) Voice acquisition method, audio equipment and device with storage function
CN105072552A (en) Hearing device with user interface
KR20220120584A (en) Automatic volume control apparatus and method using ambient noise compensation
CN109117110B (en) Data processing method and device for dynamic voice fusion
CN107404625B (en) Sound effect processing method and device of terminal
CN109068171B (en) Method for limiting volume of specified audio stream in smart television
CN105307012A (en) Television volume adjustment method and device
KR101403884B1 (en) Automatic volume control device
CN103188585B (en) Audio adjustment device and adjustment method thereof
CN105763943A (en) Electronic product and volume control method thereof
CN107615754B (en) Method for adjusting TV volume and digital TV device
CN115202605A (en) Audio processing method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant