CN101067927A - Sound volume adjusting method and device - Google Patents
Sound volume adjusting method and device Download PDFInfo
- Publication number
- CN101067927A CN101067927A CNA2007100985234A CN200710098523A CN101067927A CN 101067927 A CN101067927 A CN 101067927A CN A2007100985234 A CNA2007100985234 A CN A2007100985234A CN 200710098523 A CN200710098523 A CN 200710098523A CN 101067927 A CN101067927 A CN 101067927A
- Authority
- CN
- China
- Prior art keywords
- volume
- module
- end signal
- remote signaling
- far
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000011664 signaling Effects 0.000 claims description 73
- 238000001514 detection method Methods 0.000 claims description 68
- 230000033228 biological regulation Effects 0.000 claims description 5
- 238000012360 testing method Methods 0.000 abstract 3
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 230000006854 communication Effects 0.000 description 5
- 239000000203 mixture Substances 0.000 description 5
- 238000009499 grossing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000002085 persistent effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
This invention discloses a volume adjusting method including detecting phone state of near end signal and far end signal to adjust volume of the near end signal. This invention also discloses a volume adjusting device including: a test module of near end state, a test module of far end and a volume adjusting module of the near end, which realizes automatic adjustment of phone volume and increases its efficiency and increases session quality of double-speaking state by testing phone state of near and far ends at the same time, reduces signal distortion because of too fast gain-adjustment by applying a volume adjusting mode based on sample blocks and reduces zipper noise.
Description
Technical field
The present invention relates to the voice process technology field, be specifically related to a kind of method for regulation of sound volume and device of voice signal.
Background technology
Speech real time communication system as: during ip voice (VoIP), voice-enabled chat, teleconference etc. are used; little phenomenon when big when the call voice volume appears in regular meeting; need both call sides by manual setting button relevant etc., obtain suitable volume with voice collecting and broadcast sound volume.Like this, the shortcoming of bringing is: volume is adjusted consumed time and may can't be guaranteed than long and adjusted volume effect, because: the caller is by the manual adjustment volume, subjective, each amplitude of adjusting can't reliably be controlled, and therefore, adjusting consumed time can be longer; Simultaneously, the caller just adjusts according to the sensation of people's ear is subjective, can only be rough adjustment, can't realize the adjustment that quantizes, thereby can't guarantee adjusted volume effect.
Summary of the invention
In view of this, the invention provides a kind of method for regulation of sound volume and device,, improve volume and adjust efficient to realize the automatic adjusting of speech volume in the communication process.
Technical scheme of the present invention is achieved in that
A kind of method for regulation of sound volume comprises:
Detect the voice status of near end signal and remote signaling,, adjust the volume of near end signal according to the voice status of near end signal and remote signaling.
The volume that described voice status according near end signal and remote signaling is adjusted near end signal comprises:
Judge whether remote signaling is voice, if, the volume of minimizing near end signal; If be not, judge whether near end signal is voice, if, according to predefined best volume, adjust the volume of near end signal, otherwise, keep the volume of near end signal constant.
Further comprise before the voice status of described detection near end signal and remote signaling: preestablish maximum adjustment gain and minimum the adjustment and gain,
The described volume of adjusting near end signal according to predefined best volume comprises: according to the volume of described best volume and current near end signal, calculate and adjust gain, judge that whether the adjustment gain that calculates is greater than the described maximum gain of adjusting, if greater than, according to the described maximum volume that near end signal is adjusted in gain of adjusting; If be not more than, whether judge the adjustment gain that calculates less than the described minimum gain of adjusting, if, according to the described minimum volume that near end signal is adjusted in gain of adjusting, otherwise, the volume of near end signal adjusted according to the adjustment gain that calculates.
Further comprise before the voice status of described detection near end signal: determine that near-end is set up with far-end and communicate by letter, begin to gather the near end signal of predetermined length, the average volume of the near end signal that calculating is gathered, with this volume as the near-end noise threshold value;
The voice status of described detection near end signal comprises: whether judge near end signal less than described near-end noise threshold value, if the judgement near end signal is a noise; Otherwise the judgement near end signal is voice.
Further comprise before the voice status of described detection remote signaling: determine that near-end is set up with far-end and communicate by letter, begin to gather the remote signaling of predetermined length, the average volume of the remote signaling that calculating is gathered, with this volume as the far-end noise threshold value;
The voice status of described detection remote signaling comprises: whether judge remote signaling less than described far-end noise threshold value, if the judgement remote signaling is a noise; Otherwise the judgement remote signaling is voice.
Further comprise before the voice status of described detection near end signal and remote signaling: preestablish sample block length,
Described near end signal is: length equals the near-end sample block of predefined sample block length, and described remote signaling is: length equals the far-end sample block of predefined sample block length.
The volume of described minimizing near-end sample block comprises: search zero crossing in current near-end sample block, reduce the volume of the sample point after the zero crossing in the current near-end sample block.
The volume of described adjustment near end signal comprises: search zero crossing in current near-end sample block, adjust the volume of the sample point after the zero crossing in the current near-end sample block.
A kind of volume adjusting apparatus comprises: near-end state detection module, far-end state detection module and near-end Audio Control Module, wherein:
The near-end state detection module receives the outside near end signal of sending, and detects the voice status of this near end signal, and the voice status information of this near end signal is sent to the near-end Audio Control Module;
The far-end state detection module receives the outside remote signaling of sending, and detects the voice status of this remote signaling, and the voice status information of this remote signaling is sent to the near-end Audio Control Module;
The near-end Audio Control Module, the voice status information of reception near end signal and remote signaling according to the voice status of near end signal and remote signaling, is carried out the volume adjustment near end signal.
Described near-end Audio Control Module comprises: adjust judge module and adjusting module, wherein:
Adjust judge module, receive the voice status information of near end signal and remote signaling, when remote signaling is voice, send the minimizing indication to adjusting module; When remote signaling is noise and near end signal when being voice, send the best indication of adjusting to adjusting module;
Adjusting module receives and adjusts the minimizing indication that judge module is sent, and reduces the volume of current near end signal according to this indication; Receive and adjust the best adjustment indication that judge module is sent,, adjust the volume of near end signal according to this indication and predefined best volume.
Described near-end Audio Control Module further comprises: adjust gain and limit module, preserving maximum adjustment gain and minimum the adjustment gains, receive the adjustment gain that adjusting module is sent,, then should maximum adjustment gain output to adjusting module if detect this adjustment gain greater than maximum adjustment gain; If detect this adjustment gain, then should minimum adjustment gain output to adjusting module less than minimum adjustment gain; Otherwise, will keep indication to send to adjusting module;
Described adjusting module should being adjusted gain and sending to and adjust gain and limit module further after determine adjusting gain according to predefined best volume, limited the adjustment gain of module output or kept indicating the volume of adjustment near end signal according to adjusting gain.
Described device further comprises: the near-end noise threshold calculation module, be used for setting up when communicating by letter at definite near-end and far-end, gather the near end signal of predetermined length, calculate the average volume of the near end signal of being gathered, this volume is outputed to the near-end state detection module as the near-end noise threshold value.
Described near-end state detection module comprises: the near-end volume computing module and first state detection module, wherein:
Near-end volume computing module, the volume of the outside near end signal of sending of calculating sends to first state detection module with this volume;
First state detection module, the volume of the near end signal that near-end noise threshold value that reception near-end noise threshold calculation module is sent and near-end volume computing module are sent is if the volume of near end signal determines that less than the near-end noise threshold value near end signal is a noise; Otherwise, determine that near end signal is voice, the near end signal state of determining is sent to the near-end Audio Control Module.
Described device further comprises: the far-end noise threshold calculation module, be used for setting up when communicating by letter at definite near-end and far-end, gather the remote signaling of predetermined length, calculate the average volume of the remote signaling of being gathered, this volume is outputed to the far-end state detection module as the far-end noise threshold value.
Described far-end state detection module comprises: the far-end volume computing module and second state detection module, wherein:
Far-end volume computing module, the volume of the outside remote signaling of sending of calculating sends to second state detection module with this volume;
Second state detection module, the volume of the remote signaling that far-end noise threshold value that reception far-end noise threshold calculation module is sent and far-end volume computing module are sent is if the volume of remote signaling determines that less than the far-end noise threshold value remote signaling is a noise; Otherwise, determine that remote signaling is voice, the remote signaling state of determining is sent to the near-end Audio Control Module.
Described device further comprises: the zero crossing detection module, receive the outside near end signal of sending, and in current near-end sample block, search zero crossing, the positional information of this zero crossing is sent to the near-end Audio Control Module,
Described near-end Audio Control Module receives the positional information of described zero crossing, begins to adjust the volume of current near-end sample block from described zero crossing.
Compared with prior art, the present invention is by detecting the voice status of near end signal and remote signaling, voice status according near end signal and remote signaling, adjust the volume of near end signal, realized the automatic adjustment of speech volume in the communication process, improve volume and adjusted efficient, and simultaneously near-end and remote signaling have been carried out voice status detection, the speech quality in the time of can improving double speaking state (double-talk);
Further, the present invention adopts based on the volume of sample block and adjusts mode, has reduced because of adjusting the distorted signals that change in gain is introduced too soon;
Simultaneously, the present invention has introduced from zero crossing and has begun to carry out the mechanism that volume is adjusted, and has reduced the zipper noise, has improved speech quality;
In addition, adopt the noise threshold that dynamically generates to detect the voice status of near-end and remote signaling among the present invention, improved accuracy in detection, thereby improved the accuracy that volume is adjusted.
Description of drawings
The process flow diagram of the adjustment volume that Fig. 1 provides for the embodiment of the invention;
The process flow diagram of the detection sample block state that Fig. 2 provides for the embodiment of the invention;
The realization volume adjusting device composition diagram that Fig. 3 provides for the embodiment of the invention;
The composition diagram of the near-end state detection module that Fig. 4 provides for the embodiment of the invention;
The composition diagram of the far-end state detection module that Fig. 5 provides for the embodiment of the invention;
The composition diagram of the near-end Audio Control Module that Fig. 6 provides for the embodiment of the invention.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
The process flow diagram of the adjustment volume that Fig. 1 provides for the embodiment of the invention, as shown in Figure 1, its concrete steps are as follows:
Step 101: preestablish sample block length.
The length of sample block can rule of thumb wait setting, and the length of selecting is 10~20ms usually.
Step 102: detect the voice status of current near-end sample block and far-end sample block simultaneously, that is: detecting near-end sample block and far-end sample block is voice or noise.
The voice status of mentioning in the embodiment of the invention comprises: voice and noise.
Step 103: judge whether the far-end sample block is voice, if, execution in step 104; Otherwise, execution in step 105.
Step 104: according to predefined adjustment step-length, reduce the volume of near-end sample block, go to step 107.
Usually, set adjusting step-length is 0.5, that is: nearly the volume of end sample piece is reduced to original 1/2.
Step 105: judge whether the near-end sample block is voice, if, execution in step 106; Otherwise, go to step 107.
When near-end sample block and far-end sample block are noise simultaneously, the near-end sample block is not carried out the volume adjustment.
Step 106:, adjust the volume of near-end sample block, execution in step 107 according to predefined best volume.
This step can specifically be expressed as follows:
Calculate the volume of current near-end sample block, calculate the ratio of the volume of predefined best volume and current near-end sample block then, with of the adjustment gain of this ratio as current near-end sample block, the volume of each sample point in the current near section sample block be multiply by this adjustment gain, obtain through the adjusted near end signal of volume.Wherein, best volume is generally chosen half of volume of full width of cloth signal, and for example: if 16 digit pulse coded modulation (PCM) modes of employing are encoded to signal, then best volume can be chosen for 2
14=16384.
Excessive or too small in order to prevent each volume adjusting range, can set in advance maximum adjustment gain and minimum adjustment and gain, when the adjustment gain that calculates gains greater than the maximum adjustment, maximum adjustment gain is gained as current adjustment; When the adjustment that calculates gain gain less than the minimum adjustment, as current adjustment gain, maximum usually to adjust gain be 10 promptly with minimum adjustment gain: 20dB, minimumly adjust that to gain be 0.1 promptly :-20dB.
Step 107: begin to handle next near-end sample block and far-end sample block, go to step 102.
It is pointed out that step 101 embodiment illustrated in fig. 1~107 are equally applicable to only comprise in the sample block situation of a sample point.
In addition, for two adjacent near-end sample block, if last sample point of previous near-end sample block and first sample point of a back sample block have all carried out the volume adjustment, and it is different to adjust gain, then may cause the discontinuous of this two sample point, this will cause the distortion of near end signal.If distortion occurs in high-octane sample point place, this distortion might can be perceived by people's ear, and this phenomenon is commonly referred to the zipper noise.In order to reduce the zipper noise, when the near-end sample block is adjusted, can allow the adjustment starting point occur in the zero crossing place.Zero crossing refers to, if the opposite in sign of the value of the value of the previous sample point of a sample point and this sample point, then this sample point is a zero crossing.For example: if x (i-1)<0 and x (i)>0 or x (i-1)>0 and x (i)<0 claims that then x (i) is a zero crossing.
Therefore, in the step 104 of embodiment one, can also in current near-end sample block, seek zero crossing before reducing the volume of near-end sample block,, then begin to reduce the volume of each sample point of current near-end sample block from this zero crossing if find; Otherwise, begin to reduce the volume of each sample point of this near-end sample block from the starting point of current near-end sample block.
Simultaneously, in the step 106 of embodiment one, can also in current near-end sample block, seek zero crossing before adjusting the volume of near-end sample block,, then begin to adjust the volume of each sample point of current near-end sample block from this zero crossing if find; Otherwise, begin to adjust the volume of each sample point of this near-end sample from the starting point of current near-end sample block.
Below the process that near-end sample block and far-end sample block are carried out state-detection mentioned in the step 102 to embodiment one be described in detail, in following examples, sample block is the general designation of near-end sample block and far-end sample block.
The process flow diagram of the state of the detection sample block that Fig. 2 provides for the embodiment of the invention, as shown in Figure 2, its concrete steps are as follows:
Step 201: carry out smoothing processing to the received signal.
This step can adopt existing signal smoothing method, for example: according to volume evaluation indexes such as peak value rank, RMS ranks signal is carried out smoothly.To be example with the RMS rank as the volume evaluation index, smoothing formula is as follows:
x
rms(n)=(1-TAV)*x
rms(n-1)+TAV*x
2(n) (1)
Wherein, x (n) is a n sample of signal point, x
Rms(n) be n signal sampling point after level and smooth, x
Rms(n-1) be (n-1) individual signal sampling point after level and smooth,
TAV is a smoothing factor, and its value is relevant with the changes in amplitude of signal, and is specific as follows:
When the amplitude of signal is in ascent stage, TAV=0.1, x
2(n)>x
Rms(n-1);
When the amplitude of signal is in the decline stage, TAV=0.01, x
2(n)<x
Rms(n-1).
Can obtain from formula (1), the transition function that formula (1) is corresponding is:
From formula (2) as can be seen, H (z) is a low-pass filter, and purpose is square x to input signal
2(n) carry out smothing filtering.
Step 202: the volume E that calculates current sample block
Rms
Wherein, N is the length of current sample block.
Step 203: judge E
RmsWhether<SDL sets up, if judge that current sample block is a noise; Otherwise, judge that current sample block is voice.
Wherein, SDL is a noise threshold, and concrete value can rule of thumb be determined, perhaps, owing to set up communication when both sides begin to converse at both call sides, has one period quiet duration, therefore, can utilize the quiet persistent signal of this section to calculate SDL:
Wherein, N is the length of each sample block, and M is the number of the sample block that comprised in the quiet persistent signal that is adopted, and usually, the length of the quiet persistent signal of choosing is 1~2 second; x
i(k) be k sample point in i the sample block.
When communicating pair is set up communication, need gather the microphone of near-end and the signal of loudspeaker output simultaneously, the SDL that will obtain according to the calculated signals of microphone output is as the noise threshold of near-end sample block, and the SDL that will obtain according to the calculated signals of loudspeaker output is as the noise threshold of far-end sample block.
The realization volume adjusting device composition diagram that Fig. 3 provides for the embodiment of the invention, as shown in Figure 3, it mainly comprises: near-end state detection module 31, far-end state detection module 32 and near-end Audio Control Module 33, wherein:
Near-end state detection module 31: receive near end signal, detect the voice status of this near end signal, the voice status information of this near end signal is sent to near-end Audio Control Module 33.
Far-end state detection module 32: receive remote signaling, detect the voice status of this remote signaling, the voice status information of this remote signaling is sent to near-end Audio Control Module 33.
Near-end Audio Control Module 33: receive the outside near end signal of sending, the voice status information of the near end signal that reception near-end state detection module 31 is sent, the voice status information of the remote signaling that reception far-end state detection module 32 is sent, voice status information according near end signal and remote signaling, determine the voice status of near end signal and remote signaling, according to the voice status of this near end signal and remote signaling, near end signal is carried out the volume adjustment.
As shown in Figure 3, this device also can comprise: near-end noise threshold calculation module 30 and/or far-end noise threshold calculation module 34, wherein:
Near-end noise threshold calculation module 30: be used for setting up when communicate by letter at definite near-end and far-end, gather the near end signal of predetermined length, the average volume of the near end signal that calculating is gathered outputs to near-end state detection module 31 with this volume as the near-end noise threshold value.
Far-end noise threshold calculation module 34: be used for setting up when communicate by letter at definite near-end and far-end, gather the remote signaling of predetermined length, the average volume of the remote signaling that calculating is gathered outputs to far-end state detection module 32 with this volume as the far-end noise threshold value.
This device also can comprise: zero crossing detection module 35: receive the outside near end signal of sending, in current near-end sample block, search zero crossing, the positional information of this zero crossing is sent to near-end Audio Control Module 33,
Accordingly, near-end Audio Control Module 33 further receives the positional information of described zero crossing, begins to adjust the volume of current near-end sample block from described zero crossing.
As shown in Figure 4, near-end state detection module 31 comprises: the near-end volume computing module 311 and first state detection module 312, wherein:
Near-end volume computing module 311: calculate the volume of the outside near-end sample block of sending, this volume is sent to first state detection module 312.
First state detection module 312: the volume of the near-end sample block that near-end noise threshold value that reception near-end noise threshold calculation module 30 is sent and near-end volume computing module 311 are sent, if the volume of near-end sample block determines that less than the near-end noise threshold value near-end sample block is a noise; Otherwise, determine that the near-end sample block is voice, the voice status information of the near-end sample block determined is sent to near-end Audio Control Module 33.
As shown in Figure 5, far-end state detection module 32 comprises: the far-end volume computing module 321 and second state detection module 322, wherein:
Far-end volume computing module 321: calculate the volume of the outside far-end sample block of sending, this volume is sent to second state detection module 322.
Second state detection module 322: the volume of the far-end sample block that far-end noise threshold value that reception far-end noise threshold calculation module 34 is sent and far-end volume computing module 321 are sent, if the volume of far-end sample block determines that less than the far-end noise threshold value far-end sample block is a noise; Otherwise, determine that the far-end sample block is voice, the voice status information of the far-end sample block determined is sent to near-end Audio Control Module 33.
As shown in Figure 6, near-end Audio Control Module 33 comprises: adjust judge module 331 and adjusting module 332, wherein:
Adjust judge module 331: the voice status information of the near-end sample block that reception near-end state detection module 31 is sent, the voice status information that the far-end sample that reception far-end state detection module 32 is sent is determined, when far-end sample block state is voice, send the minimizing indication to adjusting module 332; When far-end sample block state is noise and near-end sample block state when being voice, send the best indication of adjusting to adjusting module 332.
Adjusting module 332: receive and adjust the minimizing indication that judge module 331 is sent, reduce the volume of current near-end sample block according to this indication; Receive and adjust the best adjustment indication that judge module 331 is sent,, adjust the volume of near-end sample block according to this indication and predefined best volume.
Near-end Audio Control Module 33 also can comprise: adjust gain and limit module 333: preserve maximum and adjust gain and minimum adjustment gain, receive the adjustment gain that adjusting module 332 is sent, if detect this adjustment gain, then should maximum adjustment gain output to adjusting module 332 greater than maximum adjustment gain; If detect this adjustment gain, then should minimum adjustment gain output to adjusting module 332 less than minimum adjustment gain; Otherwise, will keep indication to send to adjusting module 332;
Accordingly, adjusting module 332 is further after determining to adjust gain according to predefined best volume, should adjust gain and sending to and adjust gain and limit module 333, and limiting the adjustment gain of module 333 outputs or keep indication, adjusting the volume of near end signal according to adjusting gain.
The above only is process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (16)
1, a kind of method for regulation of sound volume is characterized in that, comprising:
Detect the voice status of near end signal and remote signaling,, adjust the volume of near end signal according to the voice status of near end signal and remote signaling.
2, the method for claim 1 is characterized in that, the volume that described voice status according near end signal and remote signaling is adjusted near end signal comprises:
Judge whether remote signaling is voice, if, the volume of minimizing near end signal; If be not, judge whether near end signal is voice, if, according to predefined best volume, adjust the volume of near end signal, otherwise, keep the volume of near end signal constant.
3, method as claimed in claim 2 is characterized in that, further comprises before the voice status of described detection near end signal and remote signaling: preestablish maximum adjustment gain and minimum the adjustment and gain,
The described volume of adjusting near end signal according to predefined best volume comprises: according to the volume of described best volume and current near end signal, calculate and adjust gain, judge that whether the adjustment gain that calculates is greater than the described maximum gain of adjusting, if greater than, according to the described maximum volume that near end signal is adjusted in gain of adjusting; If be not more than, whether judge the adjustment gain that calculates less than the described minimum gain of adjusting, if, according to the described minimum volume that near end signal is adjusted in gain of adjusting, otherwise, the volume of near end signal adjusted according to the adjustment gain that calculates.
4, the method for claim 1, it is characterized in that, further comprise before the voice status of described detection near end signal: determine that near-end is set up with far-end and communicate by letter, begin to gather the near end signal of predetermined length, calculate the average volume of the near end signal gathered, with this volume as the near-end noise threshold value;
The voice status of described detection near end signal comprises: whether judge near end signal less than described near-end noise threshold value, if the judgement near end signal is a noise; Otherwise the judgement near end signal is voice.
5, the method for claim 1, it is characterized in that, further comprise before the voice status of described detection remote signaling: determine that near-end is set up with far-end and communicate by letter, begin to gather the remote signaling of predetermined length, calculate the average volume of the remote signaling gathered, with this volume as the far-end noise threshold value;
The voice status of described detection remote signaling comprises: whether judge remote signaling less than described far-end noise threshold value, if the judgement remote signaling is a noise; Otherwise the judgement remote signaling is voice.
6, as each described method in the claim 1~5, it is characterized in that, further comprise before the voice status of described detection near end signal and remote signaling: preestablish sample block length,
Described near end signal is: length equals the near-end sample block of predefined sample block length, and described remote signaling is: length equals the far-end sample block of predefined sample block length.
7, method as claimed in claim 6 is characterized in that, the volume of described minimizing near-end sample block comprises: search zero crossing in current near-end sample block, reduce the volume of the sample point after the zero crossing in the current near-end sample block.
8, method as claimed in claim 6 is characterized in that, the volume of described adjustment near end signal comprises: search zero crossing in current near-end sample block, adjust the volume of the sample point after the zero crossing in the current near-end sample block.
9, a kind of volume adjusting apparatus is characterized in that, comprising: near-end state detection module, far-end state detection module and near-end Audio Control Module, wherein:
The near-end state detection module receives the outside near end signal of sending, and detects the voice status of this near end signal, and the voice status information of this near end signal is sent to the near-end Audio Control Module;
The far-end state detection module receives the outside remote signaling of sending, and detects the voice status of this remote signaling, and the voice status information of this remote signaling is sent to the near-end Audio Control Module;
The near-end Audio Control Module, the voice status information of reception near end signal and remote signaling according to the voice status of near end signal and remote signaling, is carried out the volume adjustment near end signal.
10, device as claimed in claim 9 is characterized in that, described near-end Audio Control Module comprises: adjust judge module and adjusting module, wherein:
Adjust judge module, receive the voice status information of near end signal and remote signaling, when remote signaling is voice, send the minimizing indication to adjusting module; When remote signaling is noise and near end signal when being voice, send the best indication of adjusting to adjusting module;
Adjusting module receives and adjusts the minimizing indication that judge module is sent, and reduces the volume of current near end signal according to this indication; Receive and adjust the best adjustment indication that judge module is sent,, adjust the volume of near end signal according to this indication and predefined best volume.
11, device as claimed in claim 10, it is characterized in that, described near-end Audio Control Module further comprises: adjust gain and limit module, preserving maximum adjustment gain and minimum the adjustment gains, receive the adjustment gain that adjusting module is sent, if detect this adjustment gain, then should maximum adjustment gain output to adjusting module greater than maximum adjustment gain; If detect this adjustment gain, then should minimum adjustment gain output to adjusting module less than minimum adjustment gain; Otherwise, will keep indication to send to adjusting module;
Described adjusting module should being adjusted gain and sending to and adjust gain and limit module further after determine adjusting gain according to predefined best volume, limited the adjustment gain of module output or kept indicating the volume of adjustment near end signal according to adjusting gain.
12, device as claimed in claim 9, it is characterized in that, described device further comprises: the near-end noise threshold calculation module, be used for setting up when communicating by letter at definite near-end and far-end, gather the near end signal of predetermined length, calculate the average volume of the near end signal of being gathered, this volume is outputed to the near-end state detection module as the near-end noise threshold value.
13, device as claimed in claim 12 is characterized in that, described near-end state detection module comprises: the near-end volume computing module and first state detection module, wherein:
Near-end volume computing module, the volume of the outside near end signal of sending of calculating sends to first state detection module with this volume;
First state detection module, the volume of the near end signal that near-end noise threshold value that reception near-end noise threshold calculation module is sent and near-end volume computing module are sent is if the volume of near end signal determines that less than the near-end noise threshold value near end signal is a noise; Otherwise, determine that near end signal is voice, the near end signal state of determining is sent to the near-end Audio Control Module.
14, device as claimed in claim 9, it is characterized in that, described device further comprises: the far-end noise threshold calculation module, be used for setting up when communicating by letter at definite near-end and far-end, gather the remote signaling of predetermined length, calculate the average volume of the remote signaling of being gathered, this volume is outputed to the far-end state detection module as the far-end noise threshold value.
15, device as claimed in claim 14 is characterized in that, described far-end state detection module comprises: the far-end volume computing module and second state detection module, wherein:
Far-end volume computing module, the volume of the outside remote signaling of sending of calculating sends to second state detection module with this volume;
Second state detection module, the volume of the remote signaling that far-end noise threshold value that reception far-end noise threshold calculation module is sent and far-end volume computing module are sent is if the volume of remote signaling determines that less than the far-end noise threshold value remote signaling is a noise; Otherwise, determine that remote signaling is voice, the remote signaling state of determining is sent to the near-end Audio Control Module.
16, device as claimed in claim 9 is characterized in that, described device further comprises: the zero crossing detection module, receive the outside near end signal of sending, in current near-end sample block, search zero crossing, the positional information of this zero crossing is sent to the near-end Audio Control Module
Described near-end Audio Control Module receives the positional information of described zero crossing, begins to adjust the volume of current near-end sample block from described zero crossing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100985234A CN101067927B (en) | 2007-04-19 | 2007-04-19 | Sound volume adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100985234A CN101067927B (en) | 2007-04-19 | 2007-04-19 | Sound volume adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101067927A true CN101067927A (en) | 2007-11-07 |
CN101067927B CN101067927B (en) | 2010-11-10 |
Family
ID=38880459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007100985234A Expired - Fee Related CN101067927B (en) | 2007-04-19 | 2007-04-19 | Sound volume adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101067927B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103337242A (en) * | 2013-05-29 | 2013-10-02 | 华为技术有限公司 | Voice control method and control device |
CN104168518A (en) * | 2013-05-16 | 2014-11-26 | 海尔集团公司 | Intercommunication equipment control method and control apparatus, and intercom system |
CN106504765A (en) * | 2016-10-20 | 2017-03-15 | 广州视源电子科技股份有限公司 | Automatic gain control method and device for audio signal |
CN106601269A (en) * | 2016-12-28 | 2017-04-26 | 北京小米移动软件有限公司 | Terminal state determining method and apparatus |
CN106683683A (en) * | 2016-12-28 | 2017-05-17 | 北京小米移动软件有限公司 | Terminal state determining method and device |
CN106791245A (en) * | 2016-12-28 | 2017-05-31 | 北京小米移动软件有限公司 | Determine the method and device of filter coefficient |
CN108259654A (en) * | 2016-12-28 | 2018-07-06 | 上海大唐移动通信设备有限公司 | The setting method and device of terminal volume in a kind of network quality test |
CN109994104A (en) * | 2019-01-14 | 2019-07-09 | 珠海慧联科技有限公司 | A kind of adaptive In Call control method and device |
CN111277784A (en) * | 2018-12-05 | 2020-06-12 | 中兴通讯股份有限公司 | Volume automatic control method, device, terminal and readable storage medium |
CN111711881A (en) * | 2020-06-29 | 2020-09-25 | 深圳市科奈信科技有限公司 | Self-adaptive volume adjustment method according to environmental sound and wireless earphone |
CN112130801A (en) * | 2019-06-07 | 2020-12-25 | 雅马哈株式会社 | Acoustic device and acoustic processing method |
CN113299310A (en) * | 2020-02-21 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Sound signal processing method and device, electronic equipment and readable storage medium |
CN115695642A (en) * | 2022-09-26 | 2023-02-03 | 展讯通信(天津)有限公司 | Method and device for adjusting call volume |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030091180A1 (en) * | 1998-12-23 | 2003-05-15 | Patrik Sorqvist | Adaptive signal gain controller, system, and method |
US20020173864A1 (en) * | 2001-05-17 | 2002-11-21 | Crystal Voice Communications, Inc | Automatic volume control for voice over internet |
JP2006148816A (en) * | 2004-11-24 | 2006-06-08 | Nec Corp | Relay control apparatus, inter-multi-point conference system, and inter-multi-point conference method |
CN100505530C (en) * | 2005-06-24 | 2009-06-24 | 腾讯科技(深圳)有限公司 | Volume control method and system |
US20070033030A1 (en) * | 2005-07-19 | 2007-02-08 | Oded Gottesman | Techniques for measurement, adaptation, and setup of an audio communication system |
-
2007
- 2007-04-19 CN CN2007100985234A patent/CN101067927B/en not_active Expired - Fee Related
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168518B (en) * | 2013-05-16 | 2018-03-20 | 海尔集团公司 | Talk back equipment control method, control device and intercom system |
CN104168518A (en) * | 2013-05-16 | 2014-11-26 | 海尔集团公司 | Intercommunication equipment control method and control apparatus, and intercom system |
CN103337242B (en) * | 2013-05-29 | 2016-04-13 | 华为技术有限公司 | A kind of sound control method and opertaing device |
CN105513596A (en) * | 2013-05-29 | 2016-04-20 | 华为技术有限公司 | Voice control method and control device |
CN105513596B (en) * | 2013-05-29 | 2020-03-27 | 华为技术有限公司 | Voice control method and control equipment |
CN103337242A (en) * | 2013-05-29 | 2013-10-02 | 华为技术有限公司 | Voice control method and control device |
CN106504765A (en) * | 2016-10-20 | 2017-03-15 | 广州视源电子科技股份有限公司 | Automatic gain control method and device for audio signal |
CN106504765B (en) * | 2016-10-20 | 2019-08-13 | 广州视源电子科技股份有限公司 | Automatic gain control method and device for audio signal |
CN106683683A (en) * | 2016-12-28 | 2017-05-17 | 北京小米移动软件有限公司 | Terminal state determining method and device |
CN108259654A (en) * | 2016-12-28 | 2018-07-06 | 上海大唐移动通信设备有限公司 | The setting method and device of terminal volume in a kind of network quality test |
CN106791245A (en) * | 2016-12-28 | 2017-05-31 | 北京小米移动软件有限公司 | Determine the method and device of filter coefficient |
CN106791245B (en) * | 2016-12-28 | 2021-07-06 | 北京小米移动软件有限公司 | Method and device for determining filter coefficients |
CN108259654B (en) * | 2016-12-28 | 2019-10-22 | 上海大唐移动通信设备有限公司 | The setting method and device of terminal volume in a kind of test of network quality |
CN106601269A (en) * | 2016-12-28 | 2017-04-26 | 北京小米移动软件有限公司 | Terminal state determining method and apparatus |
CN111277784A (en) * | 2018-12-05 | 2020-06-12 | 中兴通讯股份有限公司 | Volume automatic control method, device, terminal and readable storage medium |
CN109994104A (en) * | 2019-01-14 | 2019-07-09 | 珠海慧联科技有限公司 | A kind of adaptive In Call control method and device |
CN109994104B (en) * | 2019-01-14 | 2021-05-14 | 珠海慧联科技有限公司 | Self-adaptive call volume control method and device |
CN112130801A (en) * | 2019-06-07 | 2020-12-25 | 雅马哈株式会社 | Acoustic device and acoustic processing method |
CN113299310A (en) * | 2020-02-21 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Sound signal processing method and device, electronic equipment and readable storage medium |
CN113299310B (en) * | 2020-02-21 | 2022-05-13 | 阿里巴巴集团控股有限公司 | Sound signal processing method and device, electronic equipment and readable storage medium |
CN111711881A (en) * | 2020-06-29 | 2020-09-25 | 深圳市科奈信科技有限公司 | Self-adaptive volume adjustment method according to environmental sound and wireless earphone |
CN111711881B (en) * | 2020-06-29 | 2022-02-18 | 深圳市科奈信科技有限公司 | Self-adaptive volume adjustment method according to environmental sound and wireless earphone |
CN115695642A (en) * | 2022-09-26 | 2023-02-03 | 展讯通信(天津)有限公司 | Method and device for adjusting call volume |
Also Published As
Publication number | Publication date |
---|---|
CN101067927B (en) | 2010-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101067927A (en) | Sound volume adjusting method and device | |
CN1168207C (en) | Method and apparatus for automatically adjusting speaker and microphone gains within a mobile telephone | |
CN1175398C (en) | Sound activation detection method for identifying speech and music from noise environment | |
CN1127840C (en) | AC-center clipper for noise and echo suppression in communications system | |
CN1192356C (en) | Decoding method and systme comprising adaptive postfilter | |
CN1223109C (en) | Enhancement of near-end voice signals in an echo suppression system | |
CN1320521C (en) | Method and device for selecting coding speed in variable speed vocoder | |
CN1204760C (en) | Method and apparatus for early detection of DTMF signals in voice transmission over IP network | |
CN1320782C (en) | Echo processing appts. | |
CN1885711A (en) | Volume control method and system | |
CN1121766C (en) | Portable terminal equipment for controlling receiving/transmitting phonetic electric level | |
CN1248339A (en) | Apparatus and method for rate determination in commuincation system | |
CN1111973C (en) | Echo cancelling system for digital telephony applications | |
CN1780354A (en) | Network communication system | |
CN1167391A (en) | Noise-reducing talking device and method | |
CN1317194A (en) | Digital adaptive filter and acoustic echo canceller using the same | |
CN1741376A (en) | AGC circuit | |
CN1727860A (en) | Gain-constrained noise suppression | |
CN1879393A (en) | Two-way communications device having a single transducer | |
CN88102826A (en) | Volume range control circuit | |
CN1716764A (en) | System and method for adjusting an audio signal | |
CN1592236A (en) | Method and device for testing speech quality | |
CN1736039A (en) | Echo suppression device | |
CN1780332A (en) | Method and device for testing speech quality | |
CN100346577C (en) | Signal coding device and signal decoding device, and signal coding method and signal decoding method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20151222 Address after: 519031 Guangdong city of Zhuhai province Hengqin Baohua Road No. 6, room 105 -478 Patentee after: Guangdong Zhongxing Electronics Co.,Ltd. Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor Patentee before: VIMICRO Corp. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20101110 |
|
CF01 | Termination of patent right due to non-payment of annual fee |