CN109660653A - Method for controlling volume and device - Google Patents
Method for controlling volume and device Download PDFInfo
- Publication number
- CN109660653A CN109660653A CN201710942877.6A CN201710942877A CN109660653A CN 109660653 A CN109660653 A CN 109660653A CN 201710942877 A CN201710942877 A CN 201710942877A CN 109660653 A CN109660653 A CN 109660653A
- Authority
- CN
- China
- Prior art keywords
- sound
- intensity
- voice
- electronic equipment
- environment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72433—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
-
- 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
-
- 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)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present invention provides a kind of method for controlling volume and device, the method include: obtain electronic equipment before playing voice sound in the environment intensity;When determining that the intensity meets volume adjustment trigger condition, the voice broadcast sound volume of the electronic equipment is adjusted.By in this present embodiment, the intensity of the sound in environment is obtained before playing voice, the voice that any electronic equipment that undopes in the sound plays, therefore, the sound can accurately reflect that environment plays voice bring noise condition to electronic equipment, to improve the identification accuracy for the voice bring noise that environment plays electronic equipment, so that the voice broadcast sound volume of electronic equipment adjustment is more accurately suitble to current environment, user experience is improved.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of method for controlling volume and device.
Background technique
The voice service form of sector terminal is mainly the business such as cluster, DMO, and such business mainly puts mould using outer
Formula, since sector terminal application scenarios are not fixed, the noise that has powerful connections is biggish outdoor or workshop scene, to requiring volume very
Greatly, it usually needs downlink volume tune is obtained larger, also have relatively quiet office scene, it is desirable that not cause to periphery excessive
It influences, needs downlink volume tune to obtain smaller, avoid sound from causing customer perception uncomfortable, more there is the field of surrounding scene acute variation
Scape needs terminal uplink and downlink volume gain adjust automatically to adapt to environmental requirement.
In the prior art, ambient noise is monitored in communication process, but call voice and ambient noise mix, therefore,
It needs to distinguish call voice and ambient noise using speech recognition class algorithm, then according to the ambient noise distinguished, control
The volume of terminal.
But due to being likely to contain the nonstationary noises such as voice in ambient noise, possibility will be upper in the prior art
It states the voice in ambient noise and is mistaken for call voice, therefore, the accuracy of environment-identification noise is caused to decline.
Summary of the invention
The embodiment of the present invention provides a kind of method for controlling volume and device, for ambient noise to be recognized accurately, and controls
The volume being adapted with the ambient noise.
In a first aspect, the embodiment of the present invention provides a kind of method for controlling volume, comprising:
Obtain electronic equipment before playing voice sound in the environment intensity;
When determining that the intensity meets volume adjustment trigger condition, the voice broadcast sound volume of the electronic equipment is adjusted.
In a kind of possible design, it is described obtain electronic equipment before playing voice sound in the environment it is strong
Degree, comprising:
When current time and the difference of the acquisition time of upper primary ambient sound are greater than or equal to preset time, described in acquisition
Electronic equipment the first sound in the environment, and obtain the intensity of first sound;
When current time and the difference of the acquisition time of upper primary ambient sound are less than preset time, last acquisition is obtained
Ambient sound intensity.
In a kind of possible design, the method also includes:
At the end of playing voice, acquire the electronic equipment second sound in the environment, and obtain described second
The intensity of sound and the acquisition time for recording the second sound, the intensity of the second sound is for playing language next time
When the difference of the acquisition time of sound and the acquisition time of the second sound is less than preset time before sound, broadcast next time as described
Put before voice sound in the environment intensity.
In a kind of possible design, the voice is point-to-point communication voice, alternatively, more people's communication speech.
In a kind of possible design, before the broadcasting voice, comprising: point-to-point communication or the signaling plane of more people communication are
It establishes but user face is not when setting up;
At the end of the broadcasting voice, comprising: when the signaling plane of the communication does not disconnect but user face has disconnected.
In a kind of possible design, the intensity of the sound includes the intensity of N number of sound packet;The N is whole greater than 0
Number;
The intensity of the determination sound meets volume adjustment trigger condition, comprising:
The quantity that intensity is greater than the sound packet of the first preset strength in N number of sound packet is greater than the first preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;And/or
The quantity that intensity is greater than the sound packet of the second preset strength in N number of sound packet is greater than the second preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;
Wherein, first preset quantity is less than second preset quantity.
Second aspect, the embodiment of the present invention provide a kind of sound volume control device, comprising:
Obtain module, for obtain electronic equipment before playing voice sound in the environment intensity;
Processing module, for adjusting the electronic equipment when determining that the intensity meets volume adjustment trigger condition
Voice broadcast sound volume.
In a kind of possible design, the acquisition module is specifically used for:
When current time and the difference of the acquisition time of upper primary ambient sound are greater than or equal to preset time, described in acquisition
Electronic equipment the first sound in the environment, and obtain the intensity of first sound;
When current time and the difference of the acquisition time of upper primary ambient sound are less than preset time, last acquisition is obtained
Ambient sound intensity.
In a kind of possible design, the acquisition module is also used to:
At the end of playing voice, acquire the electronic equipment second sound in the environment, and obtain described second
The intensity of sound and the acquisition time for recording the second sound, the intensity of the second sound is for playing language next time
When the difference of the acquisition time of sound and the acquisition time of the second sound is less than preset time before sound, broadcast next time as described
Put before voice sound in the environment intensity.
In a kind of possible design, the voice is point-to-point communication voice, alternatively, more people's communication speech;
Before the broadcasting voice, comprising: point-to-point communication or the signaling plane of more people communication have been established but user face is not set up
When;
At the end of the broadcasting voice, comprising: when the signaling plane of the communication does not disconnect but user face has disconnected.
In a kind of possible design, the intensity of the sound includes the intensity of N number of sound packet;The N is whole greater than 0
Number;
The processing module, is specifically used for:
The quantity that intensity is greater than the sound packet of the first preset strength in N number of sound packet is greater than the first preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;And/or
The quantity that intensity is greater than the sound packet of the second preset strength in N number of sound packet is greater than the second preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;
Wherein, first preset quantity is less than second preset quantity.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising: memory, processor and computer journey
Sequence, the processor run method for controlling volume of the computer program execution as described in the first aspect embodiment of the present invention.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, comprising: include: readable storage medium storing program for executing and computer
Program, the computer program is for realizing the method for controlling volume as described in the first aspect embodiment of the present invention.
5th aspect, the embodiment of the present invention provide a kind of program product, and described program product includes computer program, described
Computer program is stored in readable storage medium storing program for executing, at least one processor of electronic equipment can be from the readable storage medium storing program for executing
The computer program is read, at least one described processor executes the computer program and electronic equipment is made to implement such as first
Method for controlling volume described in the aspect embodiment of the present invention.
The embodiment of the present invention provides a kind of method for controlling volume and device, passes through and obtains electronic equipment institute before playing voice
The intensity of sound in the environment;When determining that the intensity meets volume adjustment trigger condition, the electronic equipment is adjusted
Voice broadcast sound volume.By in this present embodiment, obtaining the intensity of the sound in environment before playing voice, undope in the sound
The voice that any electronic equipment plays, therefore, the sound can accurately reflect that environment plays voice band to electronic equipment
Noise condition, to improve the identification accuracy for the voice bring noise that environment plays electronic equipment so that
The voice broadcast sound volume of electronic equipment adjustment is more accurately suitble to current environment, improves user experience.
Detailed description of the invention
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 technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart for the method for controlling volume that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides method for controlling volume flow chart;
Fig. 3 is the structural schematic diagram for the sound volume control device that one embodiment of the invention provides;
Fig. 4 is the structural schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
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
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart for the method for controlling volume that one embodiment of the invention provides, as shown in Figure 1, the side of the present embodiment
Method may include:
S101, obtain electronic equipment before playing voice sound in the environment intensity.
In the present embodiment, before electronic equipment plays voice, obtain the electronic equipment sound in the environment intensity.
The sound may be considered the noise that environment plays voice to electronic equipment.
The voice that the electronic equipment plays can be communication speech, which can be point-to-point communication, alternatively, should
Communication speech can be more people's communications, i.e. group communication.In some embodiments, before the broadcasting voice, comprising: point-to-point logical
When letter or the signaling plane of more people communication have been established but user face is not set up.
Alternatively, the broadcasting voice of the electronic equipment can be in sound or video in the audio of electronic equipment broadcasting
Sound.In some embodiments, before the broadcasting voice, comprising: open the mistake of audio playing software or video jukebox software
Cheng Zhong, alternatively, during user's click play audio file or video file.
It should be noted that the description in the present embodiment before electronic equipment broadcasting voice is not limited to foregoing description.
S102, when determining that the intensity meets volume adjustment trigger condition, adjust the electronic equipment voice play
Volume.
Before getting electronic equipment and playing voice after the intensity of institute's sound in the environment, judge whether the intensity expires
Footsteps amount adjustment trigger conditions, if it is determined that adjusting the voice of the electronic equipment when intensity meets volume adjustment trigger condition
Broadcast sound volume, for example, adjustment electronic equipment loudspeaker volume, then illustrate electronic equipment sound in the environment it is more noisy,
Noise is more, and needing to be adjusted the voice broadcast sound volume of electronic equipment can just allow users to clearly hear electronic equipment
The voice played out.If it is determined that then terminating when the intensity is unsatisfactory for volume adjustment trigger condition, it is also assumed that being that electronics is set
It is standby not need adjustment voice broadcast sound volume, but played out according to current voice broadcast sound volume.
Wherein, how to adjust electronic equipment voice broadcast sound volume can be according to electronic equipment sound in the environment
Intensity and current voice broadcast sound volume be adjusted, be also possible to voice broadcast sound volume raising default volume, etc., this
Embodiment is not limited to this.It implements process referring to associated description in the prior art, and details are not described herein again.
In the present embodiment, by obtain electronic equipment before playing voice sound in the environment intensity;In determination
When the intensity meets volume adjustment trigger condition, the voice broadcast sound volume of the electronic equipment is adjusted.By in this present embodiment,
The intensity of the sound in environment is obtained before playing voice, the voice that any electronic equipment that undopes in the sound plays, therefore,
The sound can accurately reflect that environment plays voice bring noise condition to electronic equipment, to improve environment to electricity
The identification accuracy of the voice bring noise of sub- device plays, so that the voice broadcast sound volume of electronic equipment adjustment is more
Accurately it is suitble to current environment, improves user experience.
Fig. 2 be another embodiment of the present invention provides method for controlling volume flow chart, as shown in Fig. 2, the present embodiment
Method may include:
S201, before playing voice, judge whether the difference of the acquisition time of current time and last ambient sound is less than
Preset time.If it is not, S202 is then executed, if so, executing S203.
Before playing voice, if the environment where playing the current time before sound voice and upper primary acquisition electronic equipment
The difference of acquisition time of sound whether be less than preset time, if it is not, then illustrating the time of last acquisition ambient sound and working as
Preceding lead time is larger, the sound of environment may have occurred variation (can be environment not become, but sound is changed,
Can be environment to be changed), therefore, it is necessary to acquire the current sound in environment, i.e. execution S202.If so, in explanation
The time of one acquisition ambient sound and current time gap are smaller, and the sound in environment may not change, therefore, in order to
Treatment process is saved, treatment effeciency is improved, then executes S203.
S202, the acquisition electronic equipment the first sound in the environment, and obtain the intensity of first sound.
In the present embodiment, it is greater than or equal to preset time in current time and the difference of the acquisition time of upper primary ambient sound
When, acquisition electronic equipment sound in the environment then obtain first sound herein using the sound as the first sound
Intensity.Moreover, the present embodiment the intensity of first sound played into voice as electronic equipment before sound in the environment
Intensity, and be used for the intensity of first sound to execute S204.
S203, the intensity for obtaining the last sound acquired.
In the present embodiment, when current time and the difference of the acquisition time of upper primary ambient sound are less than preset time, then
Currently no longer acquisition electronic equipment institute sound in the environment, but obtain the intensity of the last ambient sound acquired.Moreover,
The intensity for the ambient sound that the present embodiment acquires the last time play voice as electronic equipment before sound in the environment
Intensity, and be used for the intensity of ambient sound of last time acquisition to execute S204.
S204, judge whether the intensity meets volume adjustment trigger condition.If so, S205 is executed, if it is not, then executing
S206。
The voice broadcast sound volume of S205, the adjustment electronic equipment.
S206, voice is played.
In the present embodiment, judge whether the intensity of above-mentioned acquisition meets volume adjustment trigger condition, if above-mentioned acquisition
Intensity meets volume adjustment trigger condition, then the voice broadcast sound volume of electronic equipment is adjusted, after then electronic equipment is according to adjustment
Voice sound broadcast sound volume, play voice.If the intensity of above-mentioned acquisition is unsatisfactory for volume adjustment trigger condition, electricity is not adjusted
Then the broadcast broadcast sound volume of sub- equipment directly plays voice.
Optionally, the method for the present embodiment can also include S207.
S207, at the end of playing voice, acquire the electronic equipment second sound in the environment, and described in obtaining
The intensity of second sound and the acquisition time for recording the second sound.
In the present embodiment, at the end of playing voice, acquisition electronic equipment sound in the environment, referred to herein as second
Sound, then obtains the intensity of the second sound, and the acquisition time of record second sound, and the intensity of the second sound is used
When the difference of the acquisition time of the acquisition time and second sound of sound before broadcasting voice next time is less than preset time,
As it is described play before voice next time sound in the environment intensity.It is, being needed before playing voice next time
When acquiring the difference of the time of the sound of environment and the acquisition time of the second sound less than preset time, by the strong of the second sound
Degree played next time as this electronic equipment before voice sound in the environment intensity.
The voice that the electronic equipment plays can be communication speech, which can be point-to-point communication, alternatively, should
Communication speech can be more people's communications, i.e. group communication.In some embodiments, the broadcasting voice terminates, comprising: point-to-point
When the signaling plane of communication or more people communication does not disconnect but user face has disconnected.
Alternatively, the broadcasting voice of the electronic equipment can be in sound or video in the audio of electronic equipment broadcasting
Sound.In some embodiments, the broadcasting voice terminates, comprising: closes audio playing software or video jukebox software
In the process, alternatively, during user closes played audio file or video file.
It should be noted that the description in the present embodiment before electronic equipment broadcasting voice is not limited to foregoing description.
In addition, executing above-mentioned S201 again before playing voice next time after executing S207.
The present embodiment, by obtain electronic equipment before playing voice and at the end of broadcasting sound in the environment it is strong
Degree;When determining that the intensity meets volume adjustment trigger condition, the voice broadcast sound volume of the electronic equipment is adjusted.Due to this
In embodiment, before playing voice and at the end of obtain the intensity of sound in environment, any electronics that undopes in the sound is set
The standby voice played, therefore, the sound can accurately reflect that environment plays voice bring noise condition to electronic equipment,
To improve the identification accuracy for the voice bring noise that environment plays electronic equipment, so that electronic equipment adjusts
Voice broadcast sound volume more accurately be suitble to current environment, improve user experience.
In some embodiments, above-mentioned volume adjustment trigger condition includes: the sound that intensity of sound is greater than the first preset strength
When the quantity of sound packet is greater than the first preset quantity, the intensity of the sound meets volume adjustment trigger condition;And/or sound is strong
When the quantity that degree is greater than the sound packet of the second preset strength is greater than the second preset quantity, the intensity of the sound meets volume adjustment
Trigger condition.Correspondingly, the intensity of the determination sound meets volume adjustment trigger condition, comprising: in N number of sound
When the quantity that intensity is greater than the sound packet of the first preset strength in packet is greater than the first preset quantity, determine that the intensity of the sound is full
Footsteps amount adjustment trigger conditions;And/or intensity is greater than the quantity of the sound packet of the second preset strength in N number of sound packet
When greater than the second preset quantity, determine that the intensity of the sound meets volume adjustment trigger condition;Wherein, first present count
Amount is less than second preset quantity.
The intensity of sound includes the intensity of N number of sound packet in the present embodiment, and N is the integer greater than 0, and the present embodiment collects
After sound, numeric field coding is carried out to sound and obtains N number of sound packet, which is, for example, the sound packet of 20ms long, so
The intensity of each sound packet is calculated afterwards.The above-mentioned determination intensity meets the feasible realization side of one kind of volume adjustment trigger condition
Formula are as follows: for each sound packet, the intensity of the sound packet is compared with the first preset strength, the second preset strength respectively
Compared with if the intensity of sound packet is greater than the first preset strength, the quantity by intensity greater than the sound packet of the first preset strength adds
1, if the intensity of sound packet is greater than the second preset strength, the quantity that intensity is greater than the sound packet of the second preset strength is added 1.
In addition, the quantity that intensity is also greater than the sound packet of the first preset strength by the present embodiment is compared with the first preset quantity, with
And will be greater than the quantity of the sound packet of the second preset strength and be compared with the second preset quantity, if to be greater than first default for intensity
The quantity of the sound packet of intensity is greater than the first preset quantity, it is determined that the intensity of the sound meets volume adjustment trigger condition, such as
The quantity that fruit intensity is greater than the sound packet of the second preset strength is greater than the second preset quantity, it is determined that the intensity of the sound meets sound
Measure adjustment trigger conditions.
In the present embodiment, by the way that the intensity of sound packet to be compared with the first preset strength, for judging in environment
Happen suddenly very brief nonstationary noise, and by the way that the intensity of sound packet to be compared with the second preset strength, for judging ring
Long-term steady-state noise in border, above two noise can play voice to electronic equipment and impact, and therefore, the present embodiment is logical
Double threshold mechanism is crossed, the volume of electronic equipment can be adjusted accurately to adapt to noise present in environment.
Fig. 3 is the structural schematic diagram for the sound volume control device that one embodiment of the invention provides, as shown in figure 3, the present embodiment
Device may include: to obtain module 11 and processing module 12.
Obtain module 11, for obtain electronic equipment before playing voice sound in the environment intensity;
Processing module 12, for adjusting the electronic equipment when determining that the intensity meets volume adjustment trigger condition
Voice broadcast sound volume.
In some embodiments, the acquisition module 11, is specifically used for:
When current time and the difference of the acquisition time of upper primary ambient sound are greater than or equal to preset time, described in acquisition
Electronic equipment the first sound in the environment, and obtain the intensity of first sound;
When current time and the difference of the acquisition time of upper primary ambient sound are less than preset time, last acquisition is obtained
Ambient sound intensity.
In some embodiments, the acquisition module 11, is also used to:
At the end of playing voice, acquire the electronic equipment second sound in the environment, and obtain described second
The intensity of sound and the acquisition time for recording the second sound, the intensity of the second sound is for playing language next time
When the difference of the acquisition time of sound and the acquisition time of the second sound is less than preset time before sound, broadcast next time as described
Put before voice sound in the environment intensity.
In some embodiments, the voice is point-to-point communication voice, alternatively, more people's communication speech.
In some embodiments, before the broadcasting voice, comprising: point-to-point communication or the signaling plane of more people communication have been established
But when user face is not set up;
At the end of the broadcasting voice, comprising: when the signaling plane of the communication does not disconnect but user face has disconnected.
In some embodiments, the intensity of the sound includes the intensity of N number of sound packet;The N is the integer greater than 0;
The processing module 12, is specifically used for:
The quantity that intensity is greater than the sound packet of the first preset strength in N number of sound packet is greater than the first preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;And/or
The quantity that intensity is greater than the sound packet of the second preset strength in N number of sound packet is greater than the second preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;
Wherein, first preset quantity is less than second preset quantity.
The device of the present embodiment can be used for executing the technical solution of above method embodiment of the present invention, realization principle
Similar with technical effect, details are not described herein again.
Fig. 4 is the structural schematic diagram for the electronic equipment that one embodiment of the invention provides, as shown in figure 4, the dress of the present embodiment
Set may include: memory 21 and processor 22.Wherein, memory 21 is for storing computer program.Processor 22 can be
Central processing unit (Central Processing Unit, CPU), can also be other general processors, Digital Signal Processing
Device (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated
Circuit, ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
Processor 22 is executed for running the computer program:
Obtain electronic equipment before playing voice sound in the environment intensity;
When determining that the intensity meets volume adjustment trigger condition, the voice broadcast sound volume of the electronic equipment is adjusted.
In some embodiments, the present embodiment further include: sound transducer (not shown);Processor 22, is used for:
When current time and the difference of the acquisition time of upper primary ambient sound are greater than or equal to preset time, sound is controlled
Sensor acquire the electronic equipment the first sound in the environment, and obtain the intensity of first sound;
When current time and the difference of the acquisition time of upper primary ambient sound are less than preset time, last acquisition is obtained
Ambient sound intensity.
In some embodiments, processor 22 are also used to:
At the end of playing voice, control sound transducer acquire the electronic equipment second sound in the environment,
And obtain the intensity of the second sound and record the acquisition time of the second sound, the intensity of the second sound is used for
When the difference of the acquisition time of the acquisition time and second sound of sound before playing voice next time is less than preset time, make
For it is described play before voice next time sound in the environment intensity.
Processor 22 is also used to for the acquisition time of the second sound of record being stored in memory 21.
In some embodiments, the voice is point-to-point communication voice, alternatively, more people's communication speech.
In some embodiments, before the broadcasting voice, comprising: point-to-point communication or the signaling plane of more people communication have been established
But when user face is not set up;
At the end of the broadcasting voice, comprising: when the signaling plane of the communication does not disconnect but user face has disconnected.
In some embodiments, the intensity of the sound includes the intensity of N number of sound packet;The N is the integer greater than 0;
The processor 22, is used for:
The quantity that intensity is greater than the sound packet of the first preset strength in N number of sound packet is greater than the first preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;And/or
The quantity that intensity is greater than the sound packet of the second preset strength in N number of sound packet is greater than the second preset quantity
When, determine that the intensity of the sound meets volume adjustment trigger condition;
Wherein, first preset quantity is less than second preset quantity.
The device of the present embodiment can be used for executing the technical solution of the above-mentioned each method embodiment of the present invention, realize former
Reason is similar with technical effect, and details are not described herein again.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps 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 readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes: read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (14)
1. a kind of method for controlling volume characterized by comprising
Obtain electronic equipment before playing voice sound in the environment intensity;
When determining that the intensity meets volume adjustment trigger condition, the voice broadcast sound volume of the electronic equipment is adjusted.
2. the method according to claim 1, wherein acquisition electronic equipment environment where before playing voice
In sound intensity, comprising:
When current time and the difference of the acquisition time of upper primary ambient sound are greater than or equal to preset time, the electronics is acquired
Equipment the first sound in the environment, and obtain the intensity of first sound;
When current time and the difference of the acquisition time of upper primary ambient sound are less than preset time, the ring of last acquisition is obtained
The intensity of border sound.
3. according to the method described in claim 2, it is characterized by further comprising:
At the end of playing voice, acquire the electronic equipment second sound in the environment, and obtain the second sound
Intensity and record the acquisition time of the second sound, the intensity of the second sound is used for before playing voice next time
When the difference of the acquisition time of sound and the acquisition time of the second sound is less than preset time, language is played next time as described
Before sound sound in the environment intensity.
4. according to the method described in claim 3, it is characterized in that, the voice is point-to-point communication voice, alternatively, more people are logical
Believe voice.
5. according to the method described in claim 4, it is characterized in that, before the broadcasting voice, comprising: point-to-point communication or more people
When the signaling plane of communication has been established but user face is not set up;
At the end of the broadcasting voice, comprising: when the signaling plane of the communication does not disconnect but user face has disconnected.
6. method described in -5 any one according to claim 1, which is characterized in that the intensity of the sound includes N number of sound
The intensity of packet;The N is the integer greater than 0;
The intensity of the determination sound meets volume adjustment trigger condition, comprising:
When the quantity that intensity is greater than the sound packet of the first preset strength in N number of sound packet is greater than the first preset quantity, really
The intensity of the fixed sound meets volume adjustment trigger condition;And/or
When the quantity that intensity is greater than the sound packet of the second preset strength in N number of sound packet is greater than the second preset quantity, really
The intensity of the fixed sound meets volume adjustment trigger condition;
Wherein, first preset quantity is less than second preset quantity.
7. a kind of sound volume control device characterized by comprising
Obtain module, for obtain electronic equipment before playing voice sound in the environment intensity;
Processing module, for adjusting the voice of the electronic equipment when determining that the intensity meets volume adjustment trigger condition
Broadcast sound volume.
8. device according to claim 7, which is characterized in that the acquisition module is specifically used for:
When current time and the difference of the acquisition time of upper primary ambient sound are greater than or equal to preset time, the electronics is acquired
Equipment the first sound in the environment, and obtain the intensity of first sound;
When current time and the difference of the acquisition time of upper primary ambient sound are less than preset time, the ring of last acquisition is obtained
The intensity of border sound.
9. device according to claim 7, which is characterized in that the acquisition module is also used to:
At the end of playing voice, acquire the electronic equipment second sound in the environment, and obtain the second sound
Intensity and record the acquisition time of the second sound, the intensity of the second sound is used for before playing voice next time
When the difference of the acquisition time of sound and the acquisition time of the second sound is less than preset time, language is played next time as described
Before sound sound in the environment intensity.
10. device according to claim 9, which is characterized in that the voice is point-to-point communication voice, alternatively, more people
Communication speech;
Before the broadcasting voice, comprising: point-to-point communication or the signaling plane of more people communication have been established but when user face is not set up;
At the end of the broadcasting voice, comprising: when the signaling plane of the communication does not disconnect but user face has disconnected.
11. according to device described in claim 7-10 any one, which is characterized in that the intensity of the sound includes N number of sound
The intensity of sound packet;The N is the integer greater than 0;
The processing module, is specifically used for:
When the quantity that intensity is greater than the sound packet of the first preset strength in N number of sound packet is greater than the first preset quantity, really
The intensity of the fixed sound meets volume adjustment trigger condition;And/or
When the quantity that intensity is greater than the sound packet of the second preset strength in N number of sound packet is greater than the second preset quantity, really
The intensity of the fixed sound meets volume adjustment trigger condition;
Wherein, first preset quantity is less than second preset quantity.
12. a kind of electronic equipment characterized by comprising memory, processor and computer program, the processor fortune
The row computer program executes method for controlling volume as claimed in any one of claims 1 to 6.
13. a kind of storage medium characterized by comprising readable storage medium storing program for executing and computer program, the computer program are used
In realization method for controlling volume as claimed in any one of claims 1 to 6.
14. a kind of program product, which is characterized in that described program product includes computer program, the computer program storage
In readable storage medium storing program for executing, at least one processor of electronic equipment can read the computer from the readable storage medium storing program for executing
Program, at least one described processor execute the computer program and electronic equipment are implemented as claim 1-6 is any one
Method for controlling volume described in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710942877.6A CN109660653A (en) | 2017-10-11 | 2017-10-11 | Method for controlling volume and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710942877.6A CN109660653A (en) | 2017-10-11 | 2017-10-11 | Method for controlling volume and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109660653A true CN109660653A (en) | 2019-04-19 |
Family
ID=66109627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710942877.6A Pending CN109660653A (en) | 2017-10-11 | 2017-10-11 | Method for controlling volume and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109660653A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113176870A (en) * | 2021-06-29 | 2021-07-27 | 深圳小米通讯技术有限公司 | Volume adjustment method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257533A (en) * | 2008-03-30 | 2008-09-03 | 青岛海信移动通信技术股份有限公司 | Mobile terminal for intellectualized controlling sound volume of loudspeaker and its implementing method |
JP2010252255A (en) * | 2009-04-20 | 2010-11-04 | Panasonic Corp | Automatic volume control output device |
CN102088521A (en) * | 2009-12-07 | 2011-06-08 | 宏达国际电子股份有限公司 | Method for improving communication quality based on ambient noise sensing and electronic device |
CN102946483A (en) * | 2012-11-15 | 2013-02-27 | 北京小米科技有限责任公司 | Method for controlling reminding mode and device |
CN103945062A (en) * | 2014-04-16 | 2014-07-23 | 华为技术有限公司 | User terminal volume adjusting method, device and terminal |
CN105975241A (en) * | 2016-04-22 | 2016-09-28 | 北京小米移动软件有限公司 | Volume regulation method and device |
-
2017
- 2017-10-11 CN CN201710942877.6A patent/CN109660653A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257533A (en) * | 2008-03-30 | 2008-09-03 | 青岛海信移动通信技术股份有限公司 | Mobile terminal for intellectualized controlling sound volume of loudspeaker and its implementing method |
JP2010252255A (en) * | 2009-04-20 | 2010-11-04 | Panasonic Corp | Automatic volume control output device |
CN102088521A (en) * | 2009-12-07 | 2011-06-08 | 宏达国际电子股份有限公司 | Method for improving communication quality based on ambient noise sensing and electronic device |
CN102946483A (en) * | 2012-11-15 | 2013-02-27 | 北京小米科技有限责任公司 | Method for controlling reminding mode and device |
CN103945062A (en) * | 2014-04-16 | 2014-07-23 | 华为技术有限公司 | User terminal volume adjusting method, device and terminal |
CN105975241A (en) * | 2016-04-22 | 2016-09-28 | 北京小米移动软件有限公司 | Volume regulation method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113176870A (en) * | 2021-06-29 | 2021-07-27 | 深圳小米通讯技术有限公司 | Volume adjustment method and device, electronic equipment and storage medium |
CN113176870B (en) * | 2021-06-29 | 2021-11-02 | 深圳小米通讯技术有限公司 | Volume adjustment method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10705791B2 (en) | Volume adjustment method and terminal | |
US10410651B2 (en) | De-reverberation control method and device of sound producing equipment | |
US10237651B2 (en) | Audio signal processing method and electronic device for supporting the same | |
CN107509153B (en) | Detection method and device of sound playing device, storage medium and terminal | |
CN107580113B (en) | Reminding method, device, storage medium and terminal | |
CN110782891B (en) | Audio processing method and device, computing equipment and storage medium | |
WO2020048216A1 (en) | Audio effect adjustment method and apparatus, electronic device, and storage medium | |
US20160211817A1 (en) | System and method for dynamically adapting playback volume on an electronic device | |
CN103986839A (en) | Method for automatically setting contextual model and mobile terminal | |
US20210195311A1 (en) | Earphone abnormality processing method, earphone, system, and storage medium | |
CN108369805A (en) | Voice interaction method and device and intelligent terminal | |
CN113949956B (en) | Noise reduction processing method and device, electronic equipment, earphone and storage medium | |
CN112947886B (en) | Method and device for protecting hearing of user and electronic equipment | |
CN108172237B (en) | Voice call data processing method and device, storage medium and mobile terminal | |
CN112911441A (en) | Noise reduction method, apparatus, audio device, and computer-readable storage medium | |
CN114903473A (en) | Hearing detection method, device, electronic equipment and storage medium | |
CN108605067B (en) | Method for playing audio and mobile terminal | |
CN113422866A (en) | Volume adjusting method and device, storage medium and electronic equipment | |
EP2887698B1 (en) | Hearing aid for playing audible advertisement | |
CN109660653A (en) | Method for controlling volume and device | |
US11010126B1 (en) | Headset, control module and method for automatic adjustment of volume of headset, and storage medium | |
CN113660599B (en) | Speaker control method and device, mobile terminal and storage medium | |
CN114979921A (en) | Earphone sound leakage detection method and device and Bluetooth earphone | |
CN110113694A (en) | Method and apparatus for controlling audio broadcasting in the electronic device | |
CN113132880B (en) | Impact noise suppression method and system based on dual-microphone architecture |
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: 20190419 |