CN108307022A - Method for controlling volume and device - Google Patents
Method for controlling volume and device Download PDFInfo
- Publication number
- CN108307022A CN108307022A CN201810061824.8A CN201810061824A CN108307022A CN 108307022 A CN108307022 A CN 108307022A CN 201810061824 A CN201810061824 A CN 201810061824A CN 108307022 A CN108307022 A CN 108307022A
- Authority
- CN
- China
- Prior art keywords
- volume
- default
- frequency range
- speech player
- distance
- 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/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/605—Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user
-
- 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/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Environmental & Geological Engineering (AREA)
- Multimedia (AREA)
- Circuit For Audible Band Transducer (AREA)
- Stereophonic System (AREA)
Abstract
A kind of method for controlling volume of offer of the embodiment of the present invention and device, this method include:The speech play pattern of the speech player of terminal device is obtained, the speech play pattern includes handset mode and speaker mode;When the speech play pattern is speaker mode, the distance between the speech player and barrier are obtained;When the distance between the speech player and the barrier are less than or equal to the first pre-determined distance, the broadcast sound volume of the speech player is reduced under the speaker mode.For realizing the hearing of protection user.
Description
Technical field
The present embodiments relate to Audiotechnica field more particularly to a kind of method for controlling volume and device.
Background technology
Currently, the speech player of many terminal device (such as mobile phone, tablet computer etc.) equipment have handset mode and
Speaker mode, the volume that speech player plays under handset mode is smaller, and in loudspeaker mode, speech player plays
Volume it is larger.
In actual application, the audio that terminal device plays as needed automatically adjusts the pattern of speech player,
For example, when user by it is non-it is hands-free in the form of receive calls when, terminal device by the mode tuning of speech player be handset mode,
When terminal device plays multimedia audio (such as terminal device receive incoming call, play music etc.), terminal device is by voice
The mode tuning of player is speaker mode.During user's using terminal equipment, user does not know that terminal is set sometimes
Which kind of pattern standby speech player is currently at, if user is direct when it is speaker mode not know speech player currently
When speech player is placed in one's ear, then the hearing noise of user is damaged.For example, user is to listen cylinder mould in speech player
During answering voice SMS when formula, speech player is placed in one's ear by user, if terminal device receives incoming call at this time,
Then the mode tuning of speech player is played incoming ring tone by terminal device to speaker mode, and with larger volume, this can
The hearing of user can be damaged.
From the foregoing, it will be observed that in the prior art, when the speech player of terminal device has handset mode and speaker mode
When, during user's using terminal equipment, the hearing noise of user may be damaged.
Invention content
A kind of method for controlling volume of offer of the embodiment of the present invention and device, for realizing the hearing of protection user.
In a first aspect, the embodiment of the present invention provides a kind of method for controlling volume, including:
Obtain terminal device speech player speech play pattern, the speech play pattern include handset mode and
Speaker mode;
The speech play pattern be speaker mode when, obtain between the speech player and barrier away from
From;
When the distance between the speech player and the barrier are less than or equal to the first pre-determined distance, described
The broadcast sound volume of the speech player is reduced under speaker mode.
In a kind of possible embodiment, the broadcasting that the speech player is reduced under the speaker mode
Volume, including:
It obtains and presets correspondence, the default correspondence includes multiple default frequency ranges and each default frequency range
Corresponding volume adjustment algorithm;
According to the volume adjustment algorithm in the default correspondence, in the audio played respectively to the speech player
Each of the volume of default frequency range be adjusted.
In alternatively possible embodiment, the volume adjustment algorithm according in the default correspondence, point
The volume of the default frequency range of each of the other audio played to the speech player is adjusted, including:
When the distance between the speech player and the barrier are equal to the first pre-determined distance, the voice is broadcast
It puts device and plays and each preset the volume adjustment of frequency range in audio to corresponding first default volume;
When the distance between the speech player and the barrier are less than the first pre-determined distance, according to the voice
The distance between player and the barrier determine each corresponding volume reduction amount of default frequency range, default according to each
The corresponding first default volume of frequency range and volume reduction amount reduce and each preset frequency range in the audio that the speech player plays
Corresponding volume.
In alternatively possible embodiment, for the first default frequency range, according to the speech player and the barrier
Hinder the distance between object, determines the corresponding volume reduction amount of the described first default frequency range, including:
The corresponding second default volume of the described first default frequency range is obtained, the second default volume is the speech play
Minimum effective volume of the device under the speaker mode, when the audio of the broadcasting first default frequency range;
In advance according to the distance between the speech player and the barrier, first pre-determined distance, described first
If the corresponding first default volume of frequency range and the second default volume, determine that the corresponding volume of the described first default frequency range reduces
Amount.
In alternatively possible embodiment, it is described according between the speech player and the barrier away from
From, first pre-determined distance, the first default corresponding first default volume of frequency range and the second default volume, determine
The corresponding volume reduction amount of the first default frequency range, including:
The corresponding volume reduction amount of the described first default frequency range is determined according to following formula one:
Wherein, the Δ y is the corresponding volume reduction amount of the described first default frequency range, the y1For the described first default frequency
The corresponding first default volume of section, the y2For the corresponding second default volume of first frequency range, the h1It is default for described first
Distance, the h2For the distance between the speech player and the barrier.
Second aspect, the embodiment of the present invention provide a kind of sound volume control device, including the first acquisition module, the second acquisition mould
Block and control module, wherein
First acquisition module is used for, and obtains the speech play pattern of the speech player of terminal device, the voice
Play mode includes handset mode and speaker mode;
Second acquisition module is used for, and when the speech play pattern is speaker mode, is obtained the voice and is broadcast
Put the distance between device and barrier;
The control module is used for, when the distance between the speech player and the barrier are less than or equal to first
When pre-determined distance, the broadcast sound volume of the speech player is reduced under the speaker mode.
In a kind of possible embodiment, the control module includes acquiring unit and adjusting unit, wherein
The acquiring unit is used for, obtain preset correspondence, the default correspondence include multiple default frequency ranges,
And each corresponding volume adjustment algorithm of default frequency range;
The adjusting unit is used for, according to the volume adjustment algorithm in the default correspondence, respectively to the voice
The volume that each of audio of player plays presets frequency range is adjusted.
In alternatively possible embodiment, the adjusting unit is specifically used for:
When the distance between the speech player and the barrier are equal to the first pre-determined distance, the voice is broadcast
It puts device and plays and each preset the volume adjustment of frequency range in audio to corresponding first default volume;
When the distance between the speech player and the barrier are less than the first pre-determined distance, according to the voice
The distance between player and the barrier determine each corresponding volume reduction amount of default frequency range, default according to each
The corresponding first default volume of frequency range and volume reduction amount reduce and each preset frequency range in the audio that the speech player plays
Corresponding volume.
In alternatively possible embodiment, for the first default frequency range, the adjusting unit is specifically used for:
The corresponding second default volume of the described first default frequency range is obtained, the second default volume is the speech play
Minimum effective volume of the device under the speaker mode, when the audio of the broadcasting first default frequency range;
In advance according to the distance between the speech player and the barrier, first pre-determined distance, described first
If the corresponding first default volume of frequency range and the second default volume, determine that the corresponding volume of the described first default frequency range reduces
Amount.
In alternatively possible embodiment, the adjusting unit is specifically used for:
The corresponding volume reduction amount of the described first default frequency range is determined according to following formula one:
Wherein, the Δ y is the corresponding volume reduction amount of the described first default frequency range, the y1For the described first default frequency
The corresponding first default volume of section, the y2For the corresponding second default volume of first frequency range, the h1It is default for described first
Distance, the h2For the distance between the speech player and the barrier.
Method for controlling volume and device provided in an embodiment of the present invention, the voice for obtaining the speech player of terminal device are broadcast
Mode playback, speech play pattern include handset mode and speaker mode;When speech play pattern is speaker mode, obtain
The distance between speech player and barrier;It is preset when the distance between speech player and barrier are less than or equal to first
Apart from when, in loudspeaker mode reduce speech player broadcast sound volume.In above process, when determine speech player with
When the distance between barrier is less than or equal to pre-determined distance, then the broadcasting of speech player can be reduced in loudspeaker mode
Volume, and then speech player is avoided to damage the hearing noise of user, and then the hearing of protection user may be implemented.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is the application scenarios schematic diagram of method for controlling volume provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of method for controlling volume provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the broadcast sound volume method provided in an embodiment of the present invention for reducing speech player;
Fig. 4 is the structural schematic diagram one of sound volume control device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram two of sound volume control device provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the application scenarios schematic diagram of method for controlling volume provided in an embodiment of the present invention.Fig. 1 is referred to, terminal is set
It is provided with speech player A and range sensor B in standby 101, the distance between speech player A and range sensor B are less than
Pre-determined distance.Wherein, terminal device 101 can be the equipment such as mobile phone, tablet computer.Speech player A have handset mode and
Speaker mode.Range sensor B can detect the distance between barrier, wherein due to speech player A and apart from biography
The distance between sensor B is relatively close, therefore, the distance between range sensor B and barrier and speech player A and barrier
The distance between approximately equal.
In this application, when terminal device is speaker mode, voice can be acquired by range sensor and broadcast
Put the distance between device and barrier, when determine the distance between speech player and barrier be less than or equal to pre-determined distance
When, then the broadcast sound volume of speech player can be reduced in loudspeaker mode, and then speech player is avoided to listen user
Power noise damages.
In the following, technical solution shown in the application is described in detail by specific embodiment.Under it should be noted that
The several specific embodiments in face can be combined with each other, and for same or analogous content, no longer carry out weight in various embodiments
Multiple explanation.
Fig. 2 is the flow diagram of method for controlling volume provided in an embodiment of the present invention.Refer to Fig. 2, this method can be with
Including:
S201, obtain terminal device speech player speech play pattern, speech play pattern includes handset mode
And speaker mode.
The executive agent of the embodiment of the present invention can be terminal device, or the volume control being arranged in terminal device
Device processed.Optionally, sound volume control device can by software realization, alternatively, sound volume control device can also by software and
Hardware is implemented in combination with.
When speech player is handset mode, speech player plays audio, speech play by the first voice channel
The volume for the audio that device plays is less than the first volume threshold.When speech player is speaker mode, speech player passes through
Second voice channel plays audio, and the sound for the audio that speech player plays is less than or equal to the second volume threshold.Wherein, first
Voice channel and the second voice channel are different.First volume threshold is less than the second volume threshold.
Due to voice channel of the speech player under handset mode, different from voice channel in loudspeaker mode,
Therefore, speech player (switches to speaker mode from handset mode, or is cut from speaker mode when carrying out pattern switching
Shift to handset mode), it needs to consume longer time.
Optionally, can be that working condition is arranged in speech player, when the speech play pattern of speech player is receiver
When pattern, it sets the working condition of speech player to receiver state, when the speech play pattern of speech player is to raise one's voice
When device pattern, it sets the working condition of speech player to loudspeaker status.Correspondingly, can be according to the work of speech player
Make state, obtains the speech play pattern of speech player.
S202, speech play pattern be speaker mode when, obtain the distance between speech player and barrier.
Optionally, when it is speaker mode to determine the speech play pattern of speech player, terminal device can be passed through
In range sensor obtain the distance between speech player and barrier.
Optionally, in order to save energy consumption, can the speech play pattern for determining speech player be speaker mode when,
Start range sensor, so that range sensor acquires the distance between speech player and barrier, and obtains Distance-sensing
The distance that device collects.In this way, range sensor is not necessarily to be constantly in working condition, and then the energy of terminal device can be saved
Consumption.
S203, when the distance between speech player and barrier be less than or equal to the first pre-determined distance when, in loud speaker
Pattern declines the broadcast sound volume for sound player of speaking in a low voice.
Optionally, the first pre-determined distance can be 10 centimetres, 8 centimetres, 5 centimetres etc..In actual application, Ke Yigen
First pre-determined distance is set according to actual needs, the embodiment of the present invention is not especially limited this.
It optionally, can when being less than or equal to the first pre-determined distance at a distance from determining speech player between barrier
The broadcast sound volume of speech player is reduced to default decibel, the volume of speech player can also be reduced and preset decibel,
And then it avoids damaging the hearing of user.
It should be noted that the method for the broadcast sound volume to reducing speech player carries out in the embodiment shown in fig. 3
It is described in detail, it will not be described herein.
Method for controlling volume provided in an embodiment of the present invention obtains the speech play mould of the speech player of terminal device
Formula, speech play pattern include handset mode and speaker mode;When speech play pattern is speaker mode, voice is obtained
The distance between player and barrier;When the distance between speech player and barrier are less than or equal to the first pre-determined distance
When, the broadcast sound volume of speech player is reduced in loudspeaker mode.In above process, when determining speech player and obstacle
When the distance between object is less than or equal to pre-determined distance, then the broadcasting sound of speech player can be reduced in loudspeaker mode
Amount, and then speech player is avoided to damage the hearing noise of user, and then the hearing of protection user may be implemented.
On the basis of any one above-mentioned embodiment, in the following, providing embodiment shown in Fig. 3 to reducing speech player
The process (S203 in embodiment illustrated in fig. 2) of broadcast sound volume be described in detail.
Fig. 3 is the schematic diagram of the broadcast sound volume method provided in an embodiment of the present invention for reducing speech player.Refer to figure
3, this method may include:
S301, it obtains and presets correspondence, default correspondence includes multiple default frequency ranges and each default frequency range
Corresponding volume adjustment algorithm.
Optionally, the frequency range that can play audio in loudspeaker mode according to speech player divides multiple preset
Frequency range.
For example, it is assumed that the audiorange that speech player plays audio in loudspeaker mode is 100Hz-8KHz, then may be used
100Hz-8KHz is divided into multiple default frequency ranges.For example, 100Hz-8KHz can be divided into three frequency ranges, respectively
100Hz-1KHz, 1KHz-4KHz, 4KHz-8KHz in actual application, it is more can to divide this according to actual needs certainly
A default frequency range, the embodiment of the present invention are not especially limited this.
Each default frequency range is corresponding with volume adjustment algorithm, and the corresponding volume adjustment algorithm of the default frequency range of difference can phase
Together, it can also be different.
Optionally, volume adjustment algorithm can be:By the volume decrease of speech player down to default volume, alternatively, by language
The volume of sound player, which reduces, presets volume, alternatively, by the volume decrease of speech player down to speech player and barrier it
Between the corresponding volume of distance.
It should be noted that above-mentioned only illustrate volume adjustment algorithm in exemplary fashion, not to volume adjustment algorithm
Restriction can be set according to actual needs volume adjustment algorithm in actual application, the embodiment of the present invention does not make this
It is specific to limit.
S302, basis preset the volume adjustment algorithm in correspondence, respectively in the audio of speech player broadcasting
The volume of each default frequency range is adjusted.
Optionally, when speech player is different from the distance between barrier, the volume of each default frequency range is carried out
The mode of adjusting is also different, specifically, may include the possible situation of the following two kinds:
The first possible situation:The distance between speech player and barrier are equal to the first pre-determined distance.
In that case, directly speech player can be played and each presets the volume adjustment of frequency range in audio to right
The the first default volume answered.
Optionally, each default corresponding first default volume of frequency range may be the same or different.
Optionally, since low frequency speech components are used to be promoted the reduction degree and identification of voice sound, High frequency speech component is used
In the reproducibility for promoting information, hence, it can be determined that low frequency speech components and the corresponding first default volume of High frequency speech component
The first default volume corresponding more than intermediate frequency speech components, that is, the amplitude that low frequency speech components and High frequency speech component are reduced
It is smaller, this way it is possible to avoid voice is distorted after adjusting.
For example, the correspondence of default frequency range and the first default volume can be as shown in table 1:
Table 1
| Default frequency range | First default volume |
| 100Hz-1KHz | 130 decibels |
| 1KHz-4KHz | 110 decibels |
| 4KHz-8KHz | 130 decibels |
As shown in Table 1, when the distance between speech player and barrier are equal to the first pre-determined distance, by speech play
Device needs the decibel (amplitude) of the speech components of 100Hz-1KHz frequency ranges in the audio played to be adjusted to 130 decibels, and voice is broadcast
Putting device needs the decibel of the speech components of 1KHz-4KHz frequency ranges in the audio played to be adjusted to 110 decibels, and speech player is needed
The decibel of the speech components of 4KHz-8KHz frequency ranges is adjusted to 130 decibels in the audio to be played.
It should be noted that table 1 only illustrates the correspondence for presetting frequency range and the first default component in exemplary fashion,
Not to the restriction of the correspondence, in actual application, the correspondence is can be set according to actual needs, the present invention
Embodiment is not especially limited this.
Second of possible situation:The distance between speech player and barrier are less than the first pre-determined distance.
In that case, according to the distance between speech player and barrier, determine that each default frequency range is corresponding
Volume reduction amount presets the corresponding first default volume of frequency range and volume reduction amount according to each, reduces speech player and broadcasts
The corresponding volume of frequency range is each preset in the audio put.
Optionally, determine that the process of each corresponding volume reduction amount of default frequency range is identical, in the following, to determine that first is pre-
If being illustrated for the process of the volume reduction amount of frequency range:
The corresponding second default volume of the first default frequency range is obtained, the second default volume is speech player in loud speaker mould
The effective volume of minimum under formula, when playing the audio of the first default frequency range, according to the distance between speech player and barrier,
First pre-determined distance, the corresponding first default volume of the first default frequency range and the second default volume, determine the first default frequency range pair
The volume reduction amount answered.
Optionally, each default corresponding second default volume of frequency range may be the same or different.
Optionally, since low frequency speech components are used to be promoted the reduction degree and identification of voice sound, High frequency speech component is used
In the reproducibility for promoting information, hence, it can be determined that low frequency speech components and the corresponding second default volume of High frequency speech component
The second default volume corresponding more than intermediate frequency speech components, that is, the amplitude that low frequency speech components and High frequency speech component are reduced
It is smaller, this way it is possible to avoid voice is distorted after adjusting.
For example, the correspondence of default frequency range and the second default volume can be as shown in table 2:
Table 2
| Default frequency range | Second default volume |
| 100Hz-1KHz | 70 decibels |
| 1KHz-4KHz | 50 decibels |
| 4KHz-8KHz | 70 decibels |
It should be noted that table 2 only illustrates the correspondence for presetting frequency range and the second default component in exemplary fashion,
Not to the restriction of the correspondence, in actual application, the correspondence is can be set according to actual needs, the present invention
Embodiment is not especially limited this.
It optionally, can be according to the corresponding volume reduction amount of first default frequency range of the determination of following formula one:
Wherein, Δ y is the corresponding volume reduction amount of the first default frequency range, y1It is preset for the first default frequency range corresponding first
Volume, y2For the corresponding second default volume of the first default frequency range, h1For the first pre-determined distance, h2For speech player and obstacle
The distance between object.
It optionally, can be with after determining and obtaining the corresponding first default volume of the first default frequency range and volume reduction amount
By the difference of the corresponding volume adjustment of the first default frequency range to the first default volume and volume reduction amount.
In the embodiment shown in fig. 3, different volume adjustments is carried out to the volume of different frequency range so as to low frequency voice
The amplitude that component and High frequency speech component reduce is smaller, this way it is possible to avoid voice is distorted after adjusting.
In the following, by specific example, technical solution shown in the application is described in detail.
Illustratively, it is assumed that the correspondence such as table 3 of the default frequency range of division and the first default volume, the second default volume
It is shown:
Table 3
| Default frequency range | First default volume | Second default volume |
| 100Hz-1KHz | 130 decibels | 80 decibels |
| 1KHz-4KHz | 110 decibels | 50 decibels |
| 4KHz-8KHz | 130 decibels | 80 decibels |
Assume again that the first pre-determined distance is 10 centimetres, the broadcasting sound of the speech player of terminal device in loudspeaker mode
Amount is 180 decibels.
In actual application, when the speech play pattern of speech player is speaker mode, when detecting language
When sound player is equal to the first pre-determined distance at a distance from barrier (such as human ear), then directly by the language of 100Hz-1KHz frequency ranges
The decibel value of cent amount is adjusted to 130 decibels, and the decibel value of the speech components of 1KHz-4KHz frequency ranges is adjusted to 110 decibels, will
The decibel value of the speech components of 4KHz-8KHz frequency ranges is adjusted to 110 decibels.
When it is 4 centimetres (being less than 10 centimetres) to detect speech player at a distance from barrier (such as human ear), then lead to
It crosses following formula two and determines the corresponding final volume of 100Hz-1KHz and 4KHz-8KHz frequency ranges:
The corresponding final volume of 1KHz-4KHz frequency ranges is determined by following formula three:
From the foregoing, it will be observed that when detecting that speech player is equal to 4 centimetres at a distance from barrier (such as human ear), it will
The decibel value of the speech components of 100Hz-1KHz frequency ranges is adjusted to 100 decibels, by the decibel of the speech components of 1KHz-4KHz frequency ranges
Value is adjusted to 74 decibels, and the decibel value of the speech components of 4KHz-8KHz frequency ranges is adjusted to 100 decibels.
Fig. 4 is the structural schematic diagram one of sound volume control device provided in an embodiment of the present invention.Fig. 4 is referred to, which can
To include the first acquisition module 11, the second acquisition module 12 and control module 13, wherein
First acquisition module 11 is used for, and obtains the speech play pattern of the speech player of terminal device, institute's predicate
Sound play mode includes handset mode and speaker mode;
Second acquisition module 12 is used for, and when the speech play pattern is speaker mode, obtains the voice
The distance between player and barrier;
The control module 13 is used for, when the distance between the speech player and the barrier are less than or equal to the
When one pre-determined distance, the broadcast sound volume of the speech player is reduced under the speaker mode.
Sound volume control device shown in the embodiment of the present invention can execute technical solution shown in above method embodiment,
Realization principle and advantageous effect are similar, are no longer repeated herein.
Fig. 5 is the structural schematic diagram two of sound volume control device provided in an embodiment of the present invention.The base of embodiment shown in Fig. 4
On plinth, Fig. 5 is referred to, the control module 13 includes acquiring unit 131 and adjusting unit 132, wherein
The acquiring unit 131 is used for, and is obtained and is preset correspondence, the default correspondence includes multiple default frequencies
Section and each corresponding volume adjustment algorithm of default frequency range;
The adjusting unit 132 is used for, according to the volume adjustment algorithm in the default correspondence, respectively to institute's predicate
The volume of the default frequency range of each of audio that sound player plays is adjusted.
In a kind of possible embodiment, the adjusting unit 132 is specifically used for:
When the distance between the speech player and the barrier are equal to the first pre-determined distance, the voice is broadcast
It puts device and plays and each preset the volume adjustment of frequency range in audio to corresponding first default volume;
When the distance between the speech player and the barrier are less than the first pre-determined distance, according to the voice
The distance between player and the barrier determine each corresponding volume reduction amount of default frequency range, default according to each
The corresponding first default volume of frequency range and volume reduction amount reduce and each preset frequency range in the audio that the speech player plays
Corresponding volume.
In alternatively possible embodiment, for the first default frequency range, the adjusting unit 132 is specifically used for:
The corresponding second default volume of the described first default frequency range is obtained, the second default volume is the speech play
Minimum effective volume of the device under the speaker mode, when the audio of the broadcasting first default frequency range;
In advance according to the distance between the speech player and the barrier, first pre-determined distance, described first
If the corresponding first default volume of frequency range and the second default volume, determine that the corresponding volume of the described first default frequency range reduces
Amount.
In alternatively possible embodiment, the adjusting unit 132 is specifically used for:
The corresponding volume reduction amount of the described first default frequency range is determined according to following formula one:
Wherein, the Δ y is the corresponding volume reduction amount of the described first default frequency range, the y1For the described first default frequency
The corresponding first default volume of section, the y2For the corresponding second default volume of first frequency range, the h1It is default for described first
Distance, the h2For the distance between the speech player and the barrier.
Sound volume control device shown in the embodiment of the present invention can execute technical solution shown in above method embodiment,
Realization principle and advantageous effect are similar, are no longer repeated herein.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than to it
Limitation;Although the embodiment of the present invention is described in detail with reference to foregoing embodiments, those skilled in the art
It should be understood that:Its still can with technical scheme described in the above embodiments is modified, either to which part or
All technical features carries out equivalent replacement;And these modifications or replacements, it does not separate the essence of the corresponding technical solution this hair
The range of bright example scheme.
Claims (10)
1. a kind of method for controlling volume, which is characterized in that including:
The speech play pattern of the speech player of terminal device is obtained, the speech play pattern includes handset mode and raises one's voice
Device pattern;
When the speech play pattern is speaker mode, the distance between the speech player and barrier are obtained;
When the distance between the speech player and the barrier are less than or equal to the first pre-determined distance, raise one's voice described
The broadcast sound volume of the speech player is reduced under device pattern.
2. according to the method described in claim 1, it is characterized in that, described reduce the voice under the speaker mode and broadcast
The broadcast sound volume of device is put, including:
It obtains and presets correspondence, the default correspondence includes that multiple default frequency ranges and each default frequency range correspond to
Volume adjustment algorithm;
It is every in the audio played respectively to the speech player according to the volume adjustment algorithm in the default correspondence
The volume of a default frequency range is adjusted.
3. according to the method described in claim 2, it is characterized in that, the volume adjustment according in the default correspondence
The volume of algorithm, the default frequency range of each of audio played respectively to the speech player is adjusted, including:
When the distance between the speech player and the barrier are equal to the first pre-determined distance, by the speech player
It plays and each presets the volume adjustment of frequency range in audio to corresponding first default volume;
When the distance between the speech player and the barrier are less than the first pre-determined distance, according to the speech play
The distance between device and the barrier determine each corresponding volume reduction amount of default frequency range, frequency range are preset according to each
Corresponding first default volume and volume reduction amount reduce and each preset frequency range correspondence in the audio that the speech player plays
Volume.
4. according to the method described in claim 3, it is characterized in that, the first default frequency range is directed to, according to the speech player
The distance between described barrier determines the corresponding volume reduction amount of the described first default frequency range, including:
The corresponding second default volume of the described first default frequency range is obtained, the second default volume is that the speech player exists
The effective volume of minimum under the speaker mode, when the audio of the broadcasting first default frequency range;
According to the distance between the speech player and the barrier, first pre-determined distance, the first default frequency
The section corresponding first default volume and second default volume determines the corresponding volume reduction amount of the described first default frequency range.
5. method according to claim 3 or 4, which is characterized in that described according to the speech player and the obstacle
The distance between object, first pre-determined distance, the corresponding first default volume of the first default frequency range and described second pre-
If volume, the corresponding volume reduction amount of the described first default frequency range is determined, including:
The corresponding volume reduction amount of the described first default frequency range is determined according to following formula one:
Wherein, the Δ y is the corresponding volume reduction amount of the described first default frequency range, the y1For the described first default frequency range pair
Answer the first default volume, the y2For the corresponding second default volume of first frequency range, the h1For described first it is default away from
From the h2For the distance between the speech player and the barrier.
6. a kind of sound volume control device, which is characterized in that including the first acquisition module, the second acquisition module and control module,
In,
First acquisition module is used for, and obtains the speech play pattern of the speech player of terminal device, the speech play
Pattern includes handset mode and speaker mode;
Second acquisition module is used for, and when the speech play pattern is speaker mode, obtains the speech player
The distance between barrier;
The control module is used for, and is preset when the distance between the speech player and the barrier are less than or equal to first
Apart from when, the broadcast sound volume of the speech player is reduced under the speaker mode.
7. device according to claim 6, which is characterized in that the control module include acquiring unit and adjust unit,
Wherein,
The acquiring unit is used for, obtain preset correspondence, the default correspondence include multiple default frequency ranges and often
The corresponding volume adjustment algorithm of one default frequency range;
The adjusting unit is used for, according to the volume adjustment algorithm in the default correspondence, respectively to the speech play
The volume of the default frequency range of each of audio that device plays is adjusted.
8. device according to claim 7, which is characterized in that the adjusting unit is specifically used for:
When the distance between the speech player and the barrier are equal to the first pre-determined distance, by the speech player
It plays and each presets the volume adjustment of frequency range in audio to corresponding first default volume;
When the distance between the speech player and the barrier are less than the first pre-determined distance, according to the speech play
The distance between device and the barrier determine each corresponding volume reduction amount of default frequency range, frequency range are preset according to each
Corresponding first default volume and volume reduction amount reduce and each preset frequency range correspondence in the audio that the speech player plays
Volume.
9. device according to claim 8, which is characterized in that be directed to the first default frequency range, the adjusting unit is specifically used
In:
The corresponding second default volume of the described first default frequency range is obtained, the second default volume is that the speech player exists
The effective volume of minimum under the speaker mode, when the audio of the broadcasting first default frequency range;
According to the distance between the speech player and the barrier, first pre-determined distance, the first default frequency
The section corresponding first default volume and second default volume determines the corresponding volume reduction amount of the described first default frequency range.
10. device according to claim 8 or claim 9, which is characterized in that the adjusting unit is specifically used for:
The corresponding volume reduction amount of the described first default frequency range is determined according to following formula one:
Wherein, the Δ y is the corresponding volume reduction amount of the described first default frequency range, the y1For the described first default frequency range pair
Answer the first default volume, the y2For the corresponding second default volume of first frequency range, the h1For described first it is default away from
From the h2For the distance between the speech player and the barrier.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810061824.8A CN108307022A (en) | 2018-01-23 | 2018-01-23 | Method for controlling volume and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810061824.8A CN108307022A (en) | 2018-01-23 | 2018-01-23 | Method for controlling volume and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108307022A true CN108307022A (en) | 2018-07-20 |
Family
ID=62866348
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810061824.8A Pending CN108307022A (en) | 2018-01-23 | 2018-01-23 | Method for controlling volume and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108307022A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112307161A (en) * | 2020-02-26 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Method and apparatus for playing audio |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101030763A (en) * | 2006-03-01 | 2007-09-05 | 华硕电脑股份有限公司 | Mobile device and method capable of dynamically adjusting volume |
| CN101937682A (en) * | 2010-09-16 | 2011-01-05 | 华为终端有限公司 | A method and device for processing and answering voice |
| CN102981422A (en) * | 2012-11-23 | 2013-03-20 | 广州华多网络科技有限公司 | Volume adjusting method and system |
| KR20140133536A (en) * | 2012-02-03 | 2014-11-19 | 모토로라 모빌리티 엘엘씨 | Motion based compensation of uplinked audio |
| CN105376386A (en) * | 2015-11-13 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | Call terminal and adaptive volume adjustment method and system thereof |
| CN106231103A (en) * | 2016-08-03 | 2016-12-14 | Tcl通讯(宁波)有限公司 | A kind of method and system realizing volume and brightness regulation based on Proximity Sensor |
| CN106534541A (en) * | 2016-11-15 | 2017-03-22 | 广东小天才科技有限公司 | Volume adjusting method and device and terminal equipment |
-
2018
- 2018-01-23 CN CN201810061824.8A patent/CN108307022A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101030763A (en) * | 2006-03-01 | 2007-09-05 | 华硕电脑股份有限公司 | Mobile device and method capable of dynamically adjusting volume |
| CN101937682A (en) * | 2010-09-16 | 2011-01-05 | 华为终端有限公司 | A method and device for processing and answering voice |
| KR20140133536A (en) * | 2012-02-03 | 2014-11-19 | 모토로라 모빌리티 엘엘씨 | Motion based compensation of uplinked audio |
| CN102981422A (en) * | 2012-11-23 | 2013-03-20 | 广州华多网络科技有限公司 | Volume adjusting method and system |
| CN105376386A (en) * | 2015-11-13 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | Call terminal and adaptive volume adjustment method and system thereof |
| CN106231103A (en) * | 2016-08-03 | 2016-12-14 | Tcl通讯(宁波)有限公司 | A kind of method and system realizing volume and brightness regulation based on Proximity Sensor |
| CN106534541A (en) * | 2016-11-15 | 2017-03-22 | 广东小天才科技有限公司 | Volume adjusting method and device and terminal equipment |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112307161A (en) * | 2020-02-26 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Method and apparatus for playing audio |
| CN112307161B (en) * | 2020-02-26 | 2022-11-22 | 北京字节跳动网络技术有限公司 | Method and apparatus for playing audio |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101455710B1 (en) | Method and apparatus for audio intelligibility enhancement and computing apparatus | |
| US8265298B2 (en) | Loudspeaker system | |
| US9208766B2 (en) | Computer program product for adaptive audio signal shaping for improved playback in a noisy environment | |
| EP3512185B1 (en) | Volume adjustment method and terminal | |
| US6944287B2 (en) | Portable terminal | |
| US8744091B2 (en) | Intelligibility control using ambient noise detection | |
| CN103078997A (en) | Mobile terminal volume setting method, system and mobile terminal | |
| EP3038255B1 (en) | An intelligent volume control interface | |
| JP6785907B2 (en) | How to arrange wireless speakers, wireless speakers and terminal devices | |
| US20070165834A1 (en) | System and method for adjusting hands-free phone | |
| CN110277103A (en) | Noise-reduction method and terminal based on speech recognition | |
| WO2019039128A1 (en) | Control device, control method, and program | |
| CN102740209B (en) | Mobile terminal and audio signal processing method and device thereof | |
| CN100531242C (en) | Apparatus and method for sound reproduction in portable electronic device | |
| CN108307022A (en) | Method for controlling volume and device | |
| US20230021379A1 (en) | Apparatus, Method and Computer Program for Enabling Audio Zooming | |
| CN106231108B (en) | A kind of mobile terminal loudness control method and system | |
| JP2010141571A (en) | Volume control method, audio signal reproduction device, and program | |
| JP3731228B2 (en) | Audio signal transmitting / receiving apparatus and reception volume control method | |
| US8618403B2 (en) | Tone control apparatus | |
| CN119865544A (en) | Voice call processing method, mobile terminal and storage medium | |
| JP2001007670A (en) | Signal processing unit | |
| CN115550820A (en) | Loudspeaker control method, device, electronic device and storage medium | |
| CN117202011A (en) | Volume control method, electronic device and storage medium | |
| KR20100072479A (en) | Apparatus for compensating low frequency band audio signal based on listenr's characteristics |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180720 |