CN115188392A - Voice compensation method and device for Bluetooth headset - Google Patents
Voice compensation method and device for Bluetooth headset Download PDFInfo
- Publication number
- CN115188392A CN115188392A CN202210275972.6A CN202210275972A CN115188392A CN 115188392 A CN115188392 A CN 115188392A CN 202210275972 A CN202210275972 A CN 202210275972A CN 115188392 A CN115188392 A CN 115188392A
- Authority
- CN
- China
- Prior art keywords
- noise
- environment
- current
- preset
- spectrum
- 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
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000001228 spectrum Methods 0.000 claims abstract description 368
- 230000009467 reduction Effects 0.000 claims abstract description 93
- 238000012545 processing Methods 0.000 claims abstract description 29
- 230000005236 sound signal Effects 0.000 claims abstract description 22
- 238000004364 calculation method Methods 0.000 claims description 53
- 238000004422 calculation algorithm Methods 0.000 claims description 21
- 238000004891 communication Methods 0.000 claims description 14
- 230000007613 environmental effect Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 238000011144 upstream manufacturing Methods 0.000 claims description 3
- 238000011946 reduction process Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 239000007787 solid Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/0208—Noise filtering
- G10L21/0216—Noise filtering characterised by the method used for estimating noise
- G10L21/0232—Processing in the frequency domain
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/0316—Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1083—Reduction of ambient noise
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Noise Elimination (AREA)
Abstract
The invention provides a voice compensation method for a Bluetooth headset, which is used for compensating uplink voice in at least one preset noise environment and comprises the following steps: pre-storing at least one voice compensation spectrum, wherein each voice compensation spectrum corresponds to a preset noise environment and comprises voice amplitude compensation values on a plurality of preset frequency points in the corresponding preset noise environment; receiving the noise of the current environment, judging whether the current noise environment belongs to one of the preset noise environments, if so, selecting a voice compensation spectrum under the preset noise environment corresponding to the current noise environment as a current voice compensation spectrum; receiving a current uplink audio signal, and performing noise reduction processing on the current uplink audio signal to obtain a current noise reduction voice signal; and on the basis of the current noise-reduction voice signal, superposing a voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum aiming at each target frequency point, wherein the target frequency point is the frequency point contained in the frequency band of the current noise-reduction voice signal.
Description
Technical Field
The invention relates to the field of audio processing, in particular to a voice compensation method and device for a Bluetooth headset.
Background
With the rapid popularization of the Bluetooth headset consumer market, the Bluetooth headset is rapidly integrated into the life of people. People have not satisfied listening to music using bluetooth headsets alone, and more people have chosen to use bluetooth headsets for voice calls. Compared with the method that a receiver of a mobile phone is directly used for communication, the method that the Bluetooth headset is used for communication releases hands, and meanwhile radiation of the mobile phone end received by a human body is greatly reduced.
The quality of voice call of the bluetooth headset gradually becomes an important index for people to select a bluetooth headset. At present, consumer groups using bluetooth headsets are mainly office workers in large cities, which have great communication demands on commuting roads, but have many noises on the commuting roads, such as siren sounds, road tire pressure sounds, engine noises and the like; or the communication project scheme of the consumer of the bluetooth headset and the user in the office area, the peripheral noise (such as other voice) can affect the sound definition heard by the far end (the call receiver).
The existing call uplink noise reduction algorithm is uneven, the noise reduction strength is too high, a part of voice signals can be lost, the noise reduction strength is too low, and a part of environmental noise can be remained. For this reason, for the case that the noise reduction intensity is too high, the prior art has attempted to compensate the speech signal by means of speech compensation, but the existing speech compensation algorithm is complex, has many calculation steps, and has large error.
Disclosure of Invention
Based on the current situation, the main purpose of the present invention is to provide a voice compensation method for a bluetooth headset, which has a very simple algorithm and a very good voice compensation effect, and greatly improves the communication quality.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a voice compensation method for a bluetooth headset for compensating for upstream voice of the bluetooth headset in at least one predetermined noise environment, the method comprising:
at least one voice compensation spectrum is prestored, each voice compensation spectrum corresponds to a preset noise environment, each voice compensation spectrum comprises voice amplitude compensation values on a plurality of preset frequency points under the corresponding preset noise environment, and the preset frequency points are frequency points distributed in the voice communication bandwidth of the Bluetooth headset;
receiving the noise of the current environment, judging whether the current noise environment belongs to one of the preset noise environments, if so, selecting a voice compensation spectrum under the preset noise environment corresponding to the current noise environment as a current voice compensation spectrum;
receiving a current uplink audio signal, and performing noise reduction processing on the current uplink audio signal to obtain a current noise reduction voice signal;
and superposing a voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum for each target frequency point on the basis of the current noise-reduction voice signal, wherein the target frequency point is a frequency point contained in the frequency band of the current noise-reduction voice signal and belongs to a subset of the preset frequency points.
Preferably, the voice amplitude compensation value is a voice amplitude difference value of the predetermined first voice signal and the predetermined second voice signal at the plurality of preset frequency points,
the first voice signal is a signal of a pure voice signal after the noise reduction processing;
the second voice signal is a signal obtained by subjecting the pure voice signal to noise reduction processing in the predetermined noise environment.
Preferably, the judging whether the current noise environment belongs to one of the predetermined noise environments includes:
prestoring at least two noise amplitude spectrums, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrums comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference value of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on the corresponding frequency point;
respectively calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment;
and determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
Preferably, the judging whether the current noise environment belongs to one of the predetermined noise environments includes:
pre-storing at least one noise amplitude spectrum, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference value of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on the corresponding frequency point;
respectively calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment;
and if any accumulated value is smaller than or equal to the preset value, determining the preset noise environment corresponding to the accumulated value as the preset noise environment to which the current noise environment belongs.
Preferably, the judging whether the current noise environment belongs to one of the predetermined noise environments includes:
pre-storing at least two noise amplitude spectrums, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrums comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
grading the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment;
calculating the noise intensity of the current environment noise to obtain the current noise intensity;
if the current noise intensity is within the preset noise intensity level range, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference values of the noise amplitude spectrum on corresponding frequency points, wherein the noise amplitude spectrum is prestored in the level range of the current environment noise amplitude spectrum and the current noise intensity;
respectively calculating the accumulated value of each amplitude difference value corresponding to each prestored noise amplitude spectrum;
and determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
Preferably, the judging whether the current noise environment belongs to one of the predetermined noise environments includes:
at least one noise amplitude spectrum is prestored, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
grading the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment;
calculating the noise intensity of the current environment noise to obtain the current noise intensity;
if the current noise intensity is within the preset noise intensity level range, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference values of the noise amplitude spectrum on corresponding frequency points, wherein the noise amplitude spectrum is prestored in the level range of the current environment noise amplitude spectrum and the current noise intensity;
respectively calculating the accumulated value of each amplitude difference value corresponding to each pre-stored noise amplitude spectrum;
and if any accumulated value is less than or equal to the preset value, determining the preset noise environment corresponding to the accumulated value as the preset noise environment to which the current noise environment belongs.
Preferably, the preset noise intensity level includes weak noise, medium noise and strong noise,
the weak noise is noise intensity less than 60dB;
the middle noise is that the noise intensity is more than or equal to 60dB and less than 80dB;
the strong noise is that the noise intensity is more than or equal to 80dB and less than 100dB.
Preferably, the noise reduction processing employs a deep noise reduction algorithm (DNS).
Preferably, the voice compensation method for the bluetooth headset further includes:
and when no uplink audio signal is detected, receiving environmental noise, judging whether the noise environment belongs to one of the preset noise environments, and if so, updating a voice compensation spectrum under the preset noise environment corresponding to the noise environment to serve as the current voice compensation spectrum.
The invention also provides a voice compensation device for the Bluetooth headset, which is used for compensating the uplink voice of the Bluetooth headset in at least one preset noise environment and comprises a voice compensation spectrum storage module, a voice compensation spectrum selection module, a noise reduction module and a compensation module, wherein,
the voice compensation spectrum storage module is used for prestoring at least one voice compensation spectrum, each voice compensation spectrum corresponds to a preset noise environment, each voice compensation spectrum comprises voice amplitude compensation values on a plurality of preset frequency points under the corresponding preset noise environment, and the preset frequency points are frequency points distributed in the voice call bandwidth of the Bluetooth headset;
the voice compensation spectrum selection module is used for judging whether the current noise environment belongs to one of the preset noise environments or not, if so, the voice compensation spectrum under the preset noise environment corresponding to the current noise environment is selected from the voice compensation spectrum storage module to be used as the current voice compensation spectrum;
the noise reduction module is used for carrying out noise reduction processing on the current uplink audio signal to obtain a current noise reduction voice signal;
the compensation module is used for superposing a voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum aiming at each target frequency point on the basis of the current noise reduction voice signal, wherein the target frequency point is a frequency point contained in the current noise reduction voice signal frequency band and belongs to a subset of the plurality of preset frequency points.
Preferably, the voice amplitude compensation value calculating module is further included, configured to calculate voice amplitude difference values of the predetermined first voice signal and the predetermined second voice signal at the multiple preset frequency points,
the first voice signal is a signal of a pure voice signal after the noise reduction processing;
and the second voice signal is a signal obtained by subjecting the pure voice signal to the noise reduction treatment in the preset noise environment.
Preferably, the speech compensation spectrum selection module comprises a noise amplitude spectrum storage module, a noise amplitude spectrum calculation unit, a noise amplitude difference calculation unit and a noise environment judgment unit, wherein,
the noise amplitude spectrum storage module is used for prestoring at least two noise amplitude spectra, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectra comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise amplitude spectrum calculation unit is used for calculating a current environment noise amplitude spectrum, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
the noise amplitude difference calculating unit is used for respectively calculating the amplitude difference values of the current environment noise amplitude spectrum and the noise amplitude spectrum of each preset noise environment on corresponding frequency points, and respectively calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment;
the noise environment judging unit is used for determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
Preferably, the speech compensation spectrum selection module comprises a noise amplitude spectrum storage module, a noise amplitude spectrum calculation unit, a noise amplitude difference calculation unit and a noise environment judgment unit, wherein,
the noise amplitude spectrum storage module is used for prestoring at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise amplitude spectrum calculation unit is used for calculating a current environment noise amplitude spectrum, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
the noise amplitude difference calculation unit is used for calculating the amplitude difference values of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on corresponding frequency points respectively and calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment respectively;
and the noise environment judging unit is used for determining the preset noise environment corresponding to any accumulated value as the preset noise environment to which the current noise environment belongs when the accumulated value is smaller than or equal to the preset value.
Preferably, the speech compensation spectrum selection module comprises a noise amplitude spectrum storage module, a noise intensity calculation unit, a noise intensity level judgment unit, a noise amplitude spectrum calculation unit, a noise amplitude difference calculation unit and a noise environment judgment unit, wherein,
the noise amplitude spectrum storage module is used for prestoring at least two noise amplitude spectra, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectra comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise intensity calculation unit is used for grading the prestored noise amplitude spectrum according to the noise intensity of the corresponding noise environment, and calculating the noise intensity of the current environment noise to obtain the current noise intensity;
the noise intensity level judging unit is used for judging whether the current noise intensity is within a preset noise intensity level range or not;
the noise amplitude spectrum calculation unit is used for calculating a current environment noise amplitude spectrum when the noise intensity level judgment unit judges that the current environment noise amplitude spectrum is positive, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the preset frequency points;
the noise amplitude difference calculation unit is used for calculating the amplitude difference value of each noise amplitude spectrum prestored in the level range of the current environment noise amplitude spectrum and the current noise intensity on the corresponding frequency point respectively, and calculating the accumulated value of each amplitude difference value corresponding to each prestored noise amplitude spectrum in the level range of the current noise intensity;
the noise environment judging unit is used for determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
Preferably, the voice compensation spectrum selection module comprises a noise amplitude spectrum storage module, a noise intensity calculation unit, a noise intensity level judgment unit, a noise amplitude spectrum calculation unit, a noise amplitude difference calculation unit and a noise environment judgment unit, wherein,
the noise amplitude spectrum storage module is also used for prestoring at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise intensity calculation unit is used for grading the prestored noise amplitude spectrum according to the noise intensity of the corresponding noise environment, and calculating the noise intensity of the current environment noise to obtain the current noise intensity;
the noise intensity level judging unit is used for judging whether the current noise intensity is within a preset noise intensity level range or not;
the noise amplitude spectrum calculation unit is used for calculating a current environment noise amplitude spectrum when the noise environment judgment unit judges that the current environment noise amplitude spectrum is positive, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
the noise amplitude difference calculation unit is used for calculating the amplitude difference values of the noise amplitude spectrum on the corresponding frequency points, which are prestored in the level range of the current environment noise amplitude spectrum and the current noise intensity, and calculating the accumulated value of each amplitude difference value corresponding to each prestored noise amplitude spectrum in the level range of the current noise intensity;
and the noise environment judging unit is used for determining the preset noise environment corresponding to any accumulated value as the preset noise environment to which the current noise environment belongs when the accumulated value is smaller than or equal to the preset value.
Preferably, the preset noise intensity level includes weak noise, medium noise and strong noise,
the weak noise is noise intensity less than 60dB;
the middle noise is that the noise intensity is more than or equal to 60dB and less than 80dB;
the strong noise is that the noise intensity is more than or equal to 80dB and less than 100dB.
Preferably, the noise reduction module includes a depth noise reduction unit, and the depth noise reduction unit is configured to perform noise reduction processing on the current uplink audio signal by using a depth noise reduction algorithm.
Preferably, the speech compensation spectrum selection module is further configured to determine whether a noise environment belongs to one of the predetermined noise environments when there is no uplink audio signal, and if so, update the speech compensation spectrum in the predetermined noise environment corresponding to the noise environment as the current speech compensation spectrum.
The invention also provides a Bluetooth headset, which is used for compensating the uplink voice by adopting the method of the invention, or comprises the voice compensation device of the invention.
The invention also provides a computer-readable storage medium, on which a computer program is stored, which computer program, when executed, is able to carry out the method of the invention.
The invention also provides an audio processing chip, which comprises a processor and a memory, wherein the memory stores computer programs, and the processor can execute the calculation formula programs to realize the method.
The voice compensation method for the Bluetooth headset, provided by the invention, is used for pre-storing the voice compensation spectrum corresponding to the preset noise environment aiming at the condition of working in the preset noise environment, and if the current noise environment is one of the preset noise environments, the voice compensation spectrum of the preset noise environment is selected to carry out accurate voice compensation on the current noise reduction voice signal on a plurality of preset frequency points, so that the algorithm is very simple, meanwhile, the voice compensation effect is very good, and the call quality is greatly improved.
The voice compensation device of the invention stores the voice compensation spectrum corresponding to the preset noise environment in advance through the voice compensation spectrum storage module aiming at the condition of working in the preset noise environment, if the current noise environment is one of the preset noise environments, the voice compensation spectrum selection module selects the voice compensation spectrum of the preset noise environment, and the compensation module adopts the voice compensation spectrum of the preset noise environment selected by the voice compensation spectrum selection module to perform accurate voice compensation on the current noise-reduced voice signal on a plurality of preset frequency points.
Other advantages of the present invention will be described in the detailed description, and those skilled in the art will understand the technical features and technical solutions presented in the description.
Drawings
Preferred embodiments of the adaptive speech compensation method and apparatus according to the present invention will be described below with reference to the accompanying drawings. In the figure:
FIG. 1 is a flow chart of a voice compensation method for a Bluetooth headset according to a preferred embodiment of the present invention;
FIG. 2 is a flow chart of a method for determining whether a current noise environment belongs to one of predetermined noise environments in accordance with a preferred embodiment of the present invention;
FIG. 3 is a speech compensation spectrum (compensation curve) corresponding to a low noise environment, and a corresponding speech compensation curve according to a preferred embodiment of the present invention;
FIG. 4 is a speech compensation spectrum (compensation curve) corresponding to a medium noise environment, and a corresponding speech compensation curve according to a preferred embodiment of the present invention;
FIG. 5 is a speech compensation spectrum (compensation curve) corresponding to a strong noise environment, and a corresponding speech compensation curve according to a preferred embodiment of the present invention;
FIG. 6 is a flow chart of yet another method for determining whether a current noise environment belongs to a predetermined noise environment in accordance with a preferred embodiment of the present invention;
FIG. 7 is a flow chart of another method for determining whether a current noise environment belongs to a predetermined noise environment according to a preferred embodiment of the present invention;
FIG. 8 is a flow chart of another method for determining whether a current noise environment belongs to a predetermined noise environment according to a preferred embodiment of the present invention;
FIG. 9 is a flow chart of another method for determining whether a current noise environment belongs to a predetermined noise environment according to a preferred embodiment of the present invention;
fig. 10 is a schematic structural diagram of a voice compensation apparatus for a bluetooth headset according to a preferred embodiment of the present invention;
fig. 11 is a schematic structural view of a voice compensation apparatus for a bluetooth headset according to still another preferred embodiment of the present invention;
FIG. 12 is a schematic diagram of a speech compensation spectrum selection module according to another preferred embodiment of the present invention;
FIG. 13 is a schematic diagram of a speech compensation spectrum selection module according to another preferred embodiment of the present invention.
Detailed Description
Fig. 1 is a flowchart of a voice compensation method for a bluetooth headset according to a preferred embodiment of the present invention, which is used for compensating uplink voice of the bluetooth headset in at least one predetermined noise environment, where the predetermined noise environment may be an office noise environment, a subway noise environment, a noisy road noise environment, a noisy fan noise environment, and the like.
The speech compensation method in fig. 1 includes:
102, receiving the noise of the current environment, judging whether the current noise environment belongs to one of the preset noise environments, if so, selecting the voice compensation spectrum under the preset noise environment corresponding to the current noise environment as the current voice compensation spectrum. In practical use, the current environmental noise can be received before the bluetooth headset is started but voice communication is not performed, and when the current noise environment is judged to be one of the preset noise environments, the voice compensation spectrum corresponding to the preset noise environment is selected as the current voice compensation spectrum.
And 103, receiving a current uplink audio signal, and performing noise reduction processing on the current uplink audio signal to obtain a current noise reduction voice signal. When the Bluetooth headset is used for starting voice communication, the noise reduction processing is carried out on the current uplink audio signal to obtain the noise-reduced voice signal, wherein the uplink audio signal comprises a current environment noise signal and a current voice signal.
And 104, superposing a voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum for each target frequency point on the basis of the current noise-reduction voice signal, wherein the target frequency point refers to the frequency point contained in the current noise-reduction voice signal frequency band and belongs to a subset of a plurality of preset frequency points. And the voice amplitude compensation value on the current voice compensation spectrum is superposed on a plurality of frequency points in the current noise reduction voice signal frequency band, so that the loss of the voice signal caused by noise reduction treatment is compensated.
The voice compensation method of the invention, aiming at the condition of working in the preset noise environment, stores the voice compensation spectrum corresponding to the preset noise environment in advance, if the current noise environment is one of the preset noise environments, selects the voice compensation spectrum of the preset noise environment to carry out accurate voice compensation on the current noise reduction voice signal at a plurality of preset frequency points, has very simple algorithm and very good voice compensation effect, and greatly improves the communication quality.
In an optional embodiment, the speech amplitude compensation values at a plurality of preset frequency points in the speech compensation spectrum pre-stored in step 101 are obtained through a test in advance. In a specific embodiment, the speech amplitude compensation value may be a speech amplitude difference value of a predetermined first speech signal and a predetermined second speech signal at a plurality of preset frequency points, where the first speech signal is a signal of a clean speech signal after noise reduction, and the second speech signal is a signal of the same clean speech signal after noise reduction in a predetermined noise environment. The noise reduction processing here is the same noise reduction algorithm as the noise reduction processing in step 103. The speech amplitude may select the amplitude of the speech intensity.
Generally, the pure speech signal is through the noise reduction processing back, and pronunciation hardly lose, and under predetermined noise environment, will appear obvious pronunciation losing after the same pure speech signal is through noise reduction processing, and above-mentioned embodiment is through the difference of record the two on a plurality of preset frequency points to form the speech compensation spectrum to predetermined noise environment, the speech compensation value is calculated simply, and has pertinence, can realize accurate speech compensation.
In an alternative embodiment, the step 102 of determining whether the current noise environment belongs to one of the predetermined noise environments may be performed by determining the noise intensity of the current environmental noise. As shown in fig. 2, includes: step 201, calculating the noise intensity of the current environment noise to obtain the current noise intensity; and 202, if the noise intensity is in a preset noise intensity level range, judging that the current noise environment belongs to one of the preset noise environments.
In a specific embodiment, the preset noise intensity level may be divided into 3 levels of weak noise, medium noise and strong noise, and specifically, the weak noise may be a noise intensity of less than 60dB, the medium noise may be a noise intensity of 60dB or more and less than 80dB, and the strong noise may be a noise intensity of 80dB or more and less than 100dB. By dividing the noise intensity level, the pre-stored voice compensation spectrum corresponds to the noise level, that is, a voice compensation spectrum is pre-stored for each of the weak noise, the medium noise and the strong noise, and if the current noise belongs to one of the noise levels, the corresponding voice compensation spectrum is selected as the current voice compensation spectrum.
Fig. 3-5 show the corresponding voice compensation spectrum (compensation curve) in the case of weak noise, medium noise and strong noise, respectively, and the voice compensation curve implemented by using the technical solution of the present invention. In fig. 3, the lower curve is a speech compensation spectrum corresponding to a weak noise environment, the dotted curve in the upper curve is a speech signal obtained after noise reduction, and the solid curve is a speech signal after speech compensation according to the technical scheme of the present invention. In fig. 4, the lower curve is a speech compensation spectrum corresponding to a medium noise environment, the dotted curve in the upper curve is a speech signal obtained after noise reduction, and the solid curve is a speech signal after speech compensation according to the technical scheme of the present invention. In fig. 5, the lower curve is a speech compensation spectrum corresponding to a strong noise environment, the dotted curve in the upper curve is a speech signal obtained after noise reduction, and the solid curve is a speech signal after speech compensation according to the technical scheme of the present invention. As is apparent from fig. 3 to 5, different speech compensation spectra are pre-stored for different noise environments, and speech compensation is performed with pertinence, so that the compensation effect is very good.
In an alternative embodiment, the step 102 of determining whether the current noise environment belongs to one of the predetermined noise environments may be performed by determining a noise category of the current environmental noise. As shown in fig. 6, includes: at least two noise amplitude spectrums are prestored, each noise amplitude spectrum corresponds to a preset noise environment, wherein the noise amplitude spectrums comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment; step 302, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points; step 303, respectively calculating the amplitude difference value of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on the corresponding frequency point; 304, respectively calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment; and 305, determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
By prestoring noise amplitude spectrums of at least two kinds of preset noise environments, after the current environment noise is detected, the amplitude spectrum of the current environment noise is calculated, and then which one of the current environment noise amplitude spectrum and the prestoring noise amplitude spectrum is closest is calculated, namely, the preset noise environment corresponding to the minimum accumulated value is selected in the process of the steps 303 to 305 to be determined as the preset noise environment to which the current noise environment belongs, the current noise environment is accurately positioned, and then the voice compensation spectrum of the current noise environment can be accurately positioned, so that the accurate compensation of the voice is realized.
FIG. 7 is yet another method of determining whether a current noise environment belongs to one of the predetermined noise environments, comprising: step 401, pre-storing at least one noise amplitude spectrum, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment; step 402, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the preset frequency points; step 403, respectively calculating the amplitude difference value of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on the corresponding frequency point; step 404, respectively calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment; and 405, if any accumulated value is less than or equal to a preset value, determining the preset noise environment corresponding to the accumulated value as the preset noise environment to which the current noise environment belongs. In a specific embodiment, the preset value may be determined according to technical requirements and factors of the preset environmental noise itself, and the invention is not limited thereto.
If the minimum accumulated value is also very large, that is, if the minimum accumulated value is greater than the preset value, the affiliated predetermined noise environment cannot be found, and the predetermined compensation spectrum is not applicable, and at this time, other voice compensation methods can be selected. If the two accumulated values are smaller than the preset value, two relatively close preset environments are indicated, and any one of the voice compensation spectrums can be selected for calculation.
In an alternative embodiment, in step 102, the determination of whether the current noise environment belongs to one of the predetermined noise environments may be performed by first determining a noise intensity level of the current environment noise, and then determining which noise class is within the current noise level. As shown in fig. 8, includes: step 501, at least two noise amplitude value spectrums are prestored, each noise amplitude value spectrum corresponds to a preset noise environment, and the noise amplitude value spectrums comprise noise amplitude values on a plurality of preset frequency points in the corresponding preset noise environment; 502, grading the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment; step 503, calculating the noise intensity of the current environmental noise to obtain the current noise intensity; step 504, if the current noise intensity is within the preset noise intensity level range, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum is the amplitude of the current environment noise on the plurality of preset frequency points; 505, respectively calculating the amplitude difference values of the noise amplitude spectrum on corresponding frequency points, wherein the noise amplitude spectrum is prestored in the level range of the current environment noise amplitude spectrum and the current noise intensity; step 506, respectively calculating the accumulated value of each amplitude difference value corresponding to each prestored noise amplitude spectrum; in step 507, the predetermined noise environment corresponding to the minimum accumulated value is determined as the predetermined noise environment to which the current noise environment belongs.
The noise amplitude spectrums of at least two preset noise environments are prestored, the noise level of the noise of the current environment is judged firstly, and only which one of the current environment noise amplitude spectrums is closest to the noise amplitude spectrums prestored in the current noise level unit is calculated, so that the current noise environment is judged to be the preset noise environment corresponding to the closest noise amplitude spectrum. On the basis of accurately positioning the current noise environment, the comparison range is further reduced, the calculated amount is reduced, and the speed of voice compensation is increased.
Fig. 9 is a further method of determining whether a current noise environment belongs to one of the predetermined noise environments, comprising: step 601, pre-storing at least one noise amplitude spectrum, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment; step 602, classifying the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment; step 603, calculating the noise intensity of the current environmental noise to obtain the current noise intensity; step 604, if the current noise intensity is within the preset noise intensity level range, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum is the amplitude of the current environment noise on the preset frequency points; 605, respectively calculating the amplitude difference values of the noise amplitude spectrum on the corresponding frequency points, wherein the noise amplitude spectrum is pre-stored in the level range of the current environment noise amplitude spectrum and the current noise intensity; step 606, respectively calculating the accumulated value of each amplitude difference value corresponding to each pre-stored noise amplitude spectrum; in step 607, if any accumulated value is less than or equal to the predetermined value, the predetermined noise environment corresponding to the accumulated value is determined as the predetermined noise environment to which the current noise environment belongs.
In a specific embodiment, the preset noise level may include a weak noise, a medium noise and a strong noise, wherein the weak noise has a noise intensity of less than 60dB, the medium noise has a noise intensity of more than or equal to 60dB and less than 80dB, and the strong noise has a noise intensity of more than or equal to 80dB and less than 100dB.
In an alternative embodiment, a Deep noise reduction algorithm, namely a DNS (Deep noise suppression) noise reduction algorithm, may be used, which is one of the neural network noise reduction algorithms. The larger the DNS noise reduction intensity (Over _ Drive), the stronger the noise reduction, and the smaller the DNS Gain coefficient (Gain _ Floor), the stronger the noise reduction. And controlling the noise reduction intensity by adjusting an over drive parameter and a GainFloor parameter. Gainfloor is the lower limit of gain, and can prevent too small sound from being excessively reduced in noise and suppressed; the over drive is used for adjusting the noise reduction strength to meet the requirements of different noise reduction strengths. Because the DNS noise reduction algorithm has more noise reduction, voice loss can be more than other algorithms. Therefore, for the DNS noise reduction algorithm, the voice compensation of the invention can precisely select the voice compensation spectrum aiming at the preset noise environment, and the voice compensation effect is very good.
In an alternative embodiment, the noise reduction algorithm in the speech compensation method of the present invention is capable of adaptively adjusting the noise reduction strength according to the ambient noise. The noise reduction intensity of the noise reduction algorithm is adjusted according to the current environment noise, the noise reduction intensity is enhanced if the current environment noise is too large, the noise reduction intensity is reduced if the current environment noise is small, and the current voice is guaranteed not to be excessively lost.
In an optional embodiment, for example, in a using process of the bluetooth headset, if the user does not make a call, and the bluetooth headset does not detect the uplink audio signal, the current noise environment may be detected again, and it is determined whether the noise environment belongs to one of the predetermined noise environments, and if so, the speech compensation spectrum in the predetermined noise environment corresponding to the noise environment is updated as the current speech compensation spectrum. Therefore, when the noise environment changes, a more suitable voice compensation curve can be selected in time, and the current voice can be compensated more accurately.
This embodiment also discloses a voice compensation apparatus for a bluetooth headset, which is configured to compensate uplink voice of the bluetooth headset in at least one predetermined noise environment, as shown in fig. 10, and is a schematic structural diagram of the voice compensation apparatus for a bluetooth headset disclosed in this embodiment, the voice compensation apparatus includes: a voice compensation spectrum storage module 701, a voice compensation spectrum selection module 702, a noise reduction module 703 and a compensation module 704, wherein:
the voice compensation spectrum storage module 701 is used for prestoring at least one voice compensation spectrum, each voice compensation spectrum corresponds to a preset noise environment, each voice compensation spectrum comprises voice amplitude compensation values on a plurality of preset frequency points under the corresponding preset noise environment, and the plurality of preset frequency points are frequency points distributed in the voice communication bandwidth of the Bluetooth headset; the speech compensation spectrum selection module 702 is configured to determine whether the current noise environment belongs to one of the predetermined noise environments, and if so, select a speech compensation spectrum in the predetermined noise environment corresponding to the current noise environment in the speech compensation spectrum storage module 701 as a current speech compensation spectrum; the noise reduction module 703 is configured to perform noise reduction processing on the current uplink audio signal to obtain a current noise reduction speech signal; the compensation module 704 is configured to superimpose, on the basis of the current noise-reduced voice signal, a voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum for each target frequency point, where the target frequency point is a frequency point included in the current noise-reduced voice signal frequency band and belongs to a subset of a plurality of preset frequency points.
The voice compensation device of the invention, aiming at the situation of working in the predetermined noise environment, stores the voice compensation spectrum corresponding to the predetermined noise environment in advance through the voice compensation spectrum storage module 701, if the current noise environment is one of the predetermined noise environments, the voice compensation spectrum selection module 702 selects the voice compensation spectrum of the predetermined noise environment, and the compensation module 704 adopts the voice compensation spectrum of the predetermined noise environment selected by the voice compensation spectrum selection module 702 to perform accurate voice compensation on the current noise reduction voice signal on a plurality of preset frequency points, so that the algorithm is simple, the voice compensation effect is good, and the communication quality is greatly improved.
In an optional embodiment, the speech compensation apparatus in fig. 10 may further include a speech amplitude compensation value calculating module 705, as shown in fig. 11, where the speech amplitude compensation value calculating module 705 is configured to calculate speech amplitude difference values of a predetermined first speech signal and a predetermined second speech signal at a plurality of preset frequency points, where the first speech signal is a signal of a pure speech signal after the noise reduction processing; the second voice signal is the signal of the pure voice signal after the noise reduction processing under the preset noise environment.
In an alternative embodiment, the speech compensation spectrum selection module 702 may calculate the noise intensity of the current environmental noise to obtain the current noise intensity; and when the current noise intensity belongs to the preset noise intensity level range, judging that the current noise environment belongs to one of the preset noise environments. In a specific embodiment, the predetermined noise level may include a weak noise, a middle noise and a strong noise, wherein the weak noise may have a noise intensity of less than 60dB, the middle noise may have a noise intensity of greater than or equal to 60dB and less than 80dB, and the strong noise may have a noise intensity of greater than or equal to 80dB and less than 100dB.
In an alternative embodiment, as shown in fig. 12, the speech compensation spectrum selection module 702 may include a noise amplitude spectrum storage module 801, a noise amplitude spectrum calculation unit 802, a noise amplitude difference calculation unit 803, and a noise environment determination unit 804, where the noise amplitude spectrum storage module 801 is configured to pre-store at least two noise amplitude spectra, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectra include noise amplitudes at a plurality of preset frequency points in the corresponding predetermined noise environment. The noise amplitude spectrum calculation unit 802 is configured to calculate a current environment noise amplitude spectrum, where the current environment noise amplitude spectrum is an amplitude of the current environment noise at the multiple preset frequency points; the noise amplitude difference calculation unit 803 is configured to calculate amplitude difference values of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each predetermined noise environment at corresponding frequency points, and calculate an accumulated value of each amplitude difference value corresponding to each predetermined noise environment; the noise environment determination unit 804 is configured to determine the predetermined noise environment corresponding to the minimum accumulated value as the predetermined noise environment to which the current noise environment belongs.
In an alternative embodiment, the noise amplitude spectrum storage module 801 in the speech compensation spectrum selection module in fig. 12 prestores at least one noise amplitude spectrum, where each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes noise amplitudes at a plurality of preset frequency points in the corresponding predetermined noise environment; the noise amplitude spectrum calculation unit 802 and the noise amplitude difference calculation unit 903 function the same as the above-described embodiment; the noise environment determination unit 904 is configured to determine a predetermined noise environment corresponding to any accumulated value as a predetermined noise environment to which the current noise environment belongs when the accumulated value is less than or equal to a preset value.
In an optional embodiment, as shown in fig. 13, the speech compensation spectrum selection module 60 may further include a noise amplitude spectrum storage module 901, a noise intensity calculation unit 902, a noise intensity level judgment unit 903, a noise amplitude spectrum calculation unit 904, a noise amplitude difference calculation unit 905, and a noise environment judgment unit 906, where the noise amplitude spectrum storage module 901 is configured to pre-store at least two noise amplitude spectrums, each of the noise amplitude spectrums corresponds to a predetermined noise environment, and each of the noise amplitude spectrums includes noise amplitudes at a plurality of preset frequency points in the corresponding predetermined noise environment; the noise intensity calculating unit 902 is configured to rank the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment, and calculate the noise intensity of the noise in the current environment to obtain the current noise intensity; the noise intensity level determination unit 903 is configured to determine whether the current noise intensity is within a preset noise intensity level range; the noise amplitude spectrum calculation unit 904 is configured to calculate a current environmental noise amplitude spectrum when the noise intensity level determination unit 903 determines that the current environmental noise amplitude spectrum is the amplitude of the current environmental noise at the multiple preset frequency points; the noise amplitude difference calculation unit 905 is used for calculating the amplitude difference value of the current environment noise amplitude spectrum and each pre-stored noise amplitude spectrum in the current noise intensity level range on the corresponding frequency point respectively, and calculating the accumulated value of each amplitude difference value corresponding to each pre-stored noise amplitude spectrum in the level range of the current noise intensity; the noise environment determination unit 906 is configured to determine a predetermined noise environment corresponding to the minimum accumulated value as the predetermined noise environment to which the current noise environment belongs.
In an alternative embodiment, the noise amplitude spectrum storage module 901 in fig. 13 prestores at least one noise amplitude spectrum, where each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes noise amplitudes at a plurality of preset frequency points in the corresponding predetermined noise environment; the roles of the noise intensity calculation unit 902, the noise intensity level judgment unit 903, the noise amplitude spectrum calculation unit 904, and the noise amplitude difference calculation unit 905 are the same as in the above-described embodiment; the noise environment determination unit 906 is configured to determine, when any one of the accumulated values is less than or equal to a preset value, a predetermined noise environment corresponding to the accumulated value as a predetermined noise environment to which the current noise environment belongs.
In an alternative embodiment, the predetermined noise level may include a weak noise level, a medium noise level and a strong noise level, wherein the weak noise level is a noise level less than 60dB, the medium noise level is a noise level greater than or equal to 60dB and less than 80dB, and the strong noise level is a noise level greater than or equal to 80dB and less than 100dB.
In an alternative embodiment, the noise reduction module 70 may include a deep noise reduction unit, and the deep noise reduction unit is configured to perform noise reduction processing on the current upstream audio signal by using a deep noise reduction algorithm (DNS).
In an alternative embodiment, the noise reduction module 70 may further include a noise reduction intensity adjusting unit for adjusting the noise reduction intensity according to the ambient noise.
In an optional embodiment, the voice compensation spectrum selection module 60 may be further configured to, during a use process of the bluetooth headset, if the user does not make a call and the bluetooth headset does not detect an uplink audio signal, determine whether a noise environment belongs to one of predetermined noise environments, and if so, update the voice compensation spectrum in the predetermined noise environment corresponding to the noise environment as the current voice compensation spectrum.
The embodiment further discloses a bluetooth headset, which adopts the voice compensation method for the bluetooth headset disclosed in any of the above embodiments, or includes the voice compensation device for the bluetooth headset disclosed in any of the above embodiments.
The present embodiment also discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program stored in the storage medium is executed, the method for voice compensation of a bluetooth headset disclosed in any of the above embodiments can be implemented.
The embodiment also discloses an audio processing chip, which comprises a processor and a memory, wherein the memory stores a computer program, and the processor can execute the voice compensation method for the bluetooth headset disclosed by any embodiment to complete the voice compensation function.
According to the voice compensation method for the Bluetooth headset disclosed by the embodiment of the invention, aiming at the condition of working in a preset noise environment, the voice compensation spectrum corresponding to the preset noise environment is stored in advance, and if the current noise environment is one of the preset noise environments, the voice compensation spectrum of the preset noise environment is selected to carry out accurate voice compensation on the current noise-reduced voice signal on a plurality of preset frequency points, so that the algorithm is very simple, the voice compensation effect is very good, and the communication quality is greatly improved.
It should be noted that step numbers (letter or number numbers) are used to refer to some specific method steps in the present invention only for the purpose of convenience and brevity of description, and the order of the method steps is not limited by letters or numbers in any way. It will be clear to a person skilled in the art that the order of the steps of the method concerned, as determined by the technology itself, should not be unduly limited by the presence of step numbers.
It will be appreciated by those skilled in the art that the above-described preferred embodiments may be freely combined, superimposed, without conflict.
It will be understood that the embodiments described above are illustrative only and not restrictive, and that various obvious and equivalent modifications and substitutions for details described herein may be made by those skilled in the art without departing from the basic principles of the invention.
Claims (21)
1. A voice compensation method for a bluetooth headset, for compensating uplink voice of the bluetooth headset in at least one predetermined noise environment, the method comprising:
at least one voice compensation spectrum is prestored, each voice compensation spectrum corresponds to a preset noise environment, each voice compensation spectrum comprises voice amplitude compensation values on a plurality of preset frequency points under the corresponding preset noise environment, and the preset frequency points are frequency points distributed in the voice communication bandwidth of the Bluetooth headset;
receiving the noise of the current environment, judging whether the current noise environment belongs to one of the preset noise environments, if so, selecting a voice compensation spectrum under the preset noise environment corresponding to the current noise environment as a current voice compensation spectrum;
receiving a current uplink audio signal, and performing noise reduction processing on the current uplink audio signal to obtain a current noise reduction voice signal;
and superposing a voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum for each target frequency point on the basis of the current noise-reduction voice signal, wherein the target frequency point is a frequency point contained in the frequency band of the current noise-reduction voice signal and belongs to a subset of the preset frequency points.
2. The voice compensation method for Bluetooth headsets as claimed in claim 1, wherein the voice amplitude compensation value is the voice amplitude difference value of the predetermined first voice signal and the predetermined second voice signal at the plurality of preset frequency points,
the first voice signal is a signal of a pure voice signal after the noise reduction processing;
the second voice signal is a signal obtained by subjecting the pure voice signal to noise reduction processing in the predetermined noise environment.
3. The method of claim 1, wherein the determining whether the current noise environment belongs to one of the predetermined noise environments comprises:
prestoring at least two noise amplitude spectrums, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrums comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference value of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on the corresponding frequency point;
respectively calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment;
and determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
4. The method of claim 1, wherein the determining whether the current noise environment belongs to one of the predetermined noise environments comprises:
at least one noise amplitude spectrum is prestored, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference value of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on the corresponding frequency point;
respectively calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment;
and if any accumulated value is smaller than or equal to the preset value, determining the preset noise environment corresponding to the accumulated value as the preset noise environment to which the current noise environment belongs.
5. The method of claim 1, wherein the determining whether the current noise environment belongs to one of the predetermined noise environments comprises:
prestoring at least two noise amplitude spectrums, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrums comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
grading the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment;
calculating the noise intensity of the current environment noise to obtain the current noise intensity;
if the current noise intensity is within the preset noise intensity level range, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference values of the noise amplitude spectrum on corresponding frequency points, wherein the noise amplitude spectrum is prestored in the level range of the current environment noise amplitude spectrum and the current noise intensity;
respectively calculating the accumulated value of each amplitude difference value corresponding to each prestored noise amplitude spectrum;
and determining the predetermined noise environment corresponding to the minimum accumulated value as the predetermined noise environment to which the current noise environment belongs.
6. The method of claim 1, wherein the determining whether the current noise environment belongs to one of the predetermined noise environments comprises:
pre-storing at least one noise amplitude spectrum, wherein each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
grading the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment;
calculating the noise intensity of the current environment noise to obtain the current noise intensity;
if the current noise intensity is within the preset noise intensity level range, calculating a current environment noise amplitude spectrum, wherein the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
respectively calculating the amplitude difference values of the noise amplitude spectrum on corresponding frequency points, wherein the noise amplitude spectrum is prestored in the level range of the current environment noise amplitude spectrum and the current noise intensity;
respectively calculating the accumulated value of each amplitude difference value corresponding to each prestored noise amplitude spectrum;
and if any accumulated value is smaller than or equal to the preset value, determining the preset noise environment corresponding to the accumulated value as the preset noise environment to which the current noise environment belongs.
7. The voice compensation method for a Bluetooth headset of claim 5 or 6, wherein the preset noise intensity level includes weak noise, middle noise, and strong noise,
the weak noise is that the noise intensity is less than 60dB;
the middle noise is that the noise intensity is more than or equal to 60dB and less than 80dB;
the strong noise is that the noise intensity is more than or equal to 80dB and less than 100dB.
8. A method of speech compensation for a Bluetooth headset according to any of claims 1-7, wherein the noise reduction process employs a deep noise reduction algorithm (DNS).
9. The voice compensation method for a bluetooth headset of any one of claims 1 to 7, further comprising:
and when no uplink audio signal is detected, receiving environmental noise, judging whether the noise environment belongs to one of the preset noise environments, and if so, updating a voice compensation spectrum under the preset noise environment corresponding to the noise environment to be used as a current voice compensation spectrum.
10. A voice compensation device for a Bluetooth headset is used for compensating uplink voice of the Bluetooth headset in at least one preset noise environment, and is characterized by comprising a voice compensation spectrum storage module, a voice compensation spectrum selection module, a noise reduction module and a compensation module, wherein,
the voice compensation spectrum storage module is used for prestoring at least one voice compensation spectrum, each voice compensation spectrum corresponds to a preset noise environment, each voice compensation spectrum comprises voice amplitude compensation values on a plurality of preset frequency points under the corresponding preset noise environment, and the preset frequency points are frequency points distributed in the voice call bandwidth of the Bluetooth headset;
the voice compensation spectrum selection module is used for judging whether the current noise environment belongs to one of the preset noise environments or not, if so, the voice compensation spectrum under the preset noise environment corresponding to the current noise environment is selected from the voice compensation spectrum storage module to be used as the current voice compensation spectrum;
the noise reduction module is used for carrying out noise reduction processing on the current uplink audio signal to obtain a current noise reduction voice signal;
the compensation module is used for superposing a voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum aiming at each target frequency point on the basis of the current noise reduction voice signal, wherein the target frequency point is a frequency point contained in the current noise reduction voice signal frequency band and belongs to a subset of the plurality of preset frequency points.
11. The voice compensation apparatus for Bluetooth headset of claim 10, further comprising a voice amplitude compensation value calculating module for calculating voice amplitude difference values of the predetermined first voice signal and the predetermined second voice signal at the plurality of preset frequency points,
the first voice signal is a signal of a pure voice signal after the noise reduction processing;
and the second voice signal is a signal obtained by subjecting the pure voice signal to the noise reduction processing in the preset noise environment.
12. The speech compensation apparatus for a Bluetooth headset of claim 10, wherein the speech compensation spectrum selection module comprises a noise amplitude spectrum storage module, a noise amplitude spectrum calculation unit, a noise amplitude difference calculation unit, and a noise environment determination unit, wherein,
the noise amplitude spectrum storage module is used for prestoring at least two noise amplitude spectra, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectra comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise amplitude spectrum calculation unit is used for calculating a current environment noise amplitude spectrum, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
the noise amplitude difference calculation unit is used for calculating the amplitude difference values of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on corresponding frequency points respectively and calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment respectively;
the noise environment judging unit is used for determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
13. The speech compensation apparatus for a Bluetooth headset of claim 10, wherein the speech compensation spectrum selection module comprises a noise amplitude spectrum storage module, a noise amplitude spectrum calculation unit, a noise amplitude difference calculation unit, and a noise environment determination unit, wherein,
the noise amplitude spectrum storage module is used for prestoring at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise amplitude spectrum calculation unit is used for calculating a current environment noise amplitude spectrum, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
the noise amplitude difference calculation unit is used for calculating the amplitude difference values of the noise amplitude spectrum of the current environment and the noise amplitude spectrum of each preset noise environment on corresponding frequency points respectively and calculating the accumulated value of each amplitude difference value corresponding to each preset noise environment respectively;
and the noise environment judgment unit is used for determining the preset noise environment corresponding to any accumulated value as the preset noise environment to which the current noise environment belongs when the accumulated value is less than or equal to the preset value.
14. The speech compensation apparatus for a Bluetooth headset of claim 10, wherein the speech compensation spectrum selection module comprises a noise magnitude spectrum storage module, a noise intensity calculation unit, a noise intensity level judgment unit, a noise magnitude spectrum calculation unit, a noise magnitude difference calculation unit, and a noise environment judgment unit, wherein,
the noise amplitude spectrum storage module is used for prestoring at least two noise amplitude spectra, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectra comprise noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise intensity calculation unit is used for grading the prestored noise amplitude spectrum according to the noise intensity of the corresponding noise environment, and calculating the noise intensity of the current environment noise to obtain the current noise intensity;
the noise intensity level judging unit is used for judging whether the current noise intensity is within a preset noise intensity level range or not;
the noise amplitude spectrum calculating unit is used for calculating a current environment noise amplitude spectrum when the noise intensity level judging unit judges that the current environment noise amplitude spectrum is positive, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the preset frequency points;
the noise amplitude difference calculating unit is used for respectively calculating the amplitude difference value of each pre-stored noise amplitude spectrum in the level range of the current environment noise amplitude spectrum and the current noise intensity on the corresponding frequency point, and respectively calculating the accumulated value of each amplitude difference value corresponding to each pre-stored noise amplitude spectrum in the level range of the current noise intensity;
the noise environment judging unit is used for determining the preset noise environment corresponding to the minimum accumulated value as the preset noise environment to which the current noise environment belongs.
15. The speech compensation apparatus for a Bluetooth headset of claim 10, wherein the speech compensation spectrum selection module comprises a noise amplitude spectrum storage module, a noise intensity calculation unit, a noise intensity level judgment unit, a noise amplitude spectrum calculation unit, a noise amplitude difference calculation unit, and a noise environment judgment unit, wherein,
the noise amplitude spectrum storage module is also used for prestoring at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a preset noise environment, and the noise amplitude spectrum comprises noise amplitudes on a plurality of preset frequency points in the corresponding preset noise environment;
the noise intensity calculation unit is used for grading the prestored noise amplitude spectrum according to the noise intensity of the corresponding noise environment, and calculating the noise intensity of the current environment noise to obtain the current noise intensity;
the noise intensity level judging unit is used for judging whether the current noise intensity is within a preset noise intensity level range or not;
the noise amplitude spectrum calculation unit is used for calculating a current environment noise amplitude spectrum when the noise environment judgment unit judges that the current environment noise amplitude spectrum is positive, and the current environment noise amplitude spectrum comprises the amplitudes of the current environment noise on the plurality of preset frequency points;
the noise amplitude difference calculating unit is used for respectively calculating the amplitude difference values of the noise amplitude spectrum prestored in the grade range of the current environment noise amplitude spectrum and the current noise intensity on the corresponding frequency points, and respectively calculating the accumulated value of each amplitude difference value corresponding to each prestored noise amplitude spectrum in the grade range of the current noise intensity;
and the noise environment judging unit is used for determining the preset noise environment corresponding to any accumulated value as the preset noise environment to which the current noise environment belongs when the accumulated value is smaller than or equal to the preset value.
16. The voice compensation apparatus for a Bluetooth headset of claim 14 or 15, wherein the preset noise intensity level includes weak noise, middle noise, and strong noise,
the weak noise is that the noise intensity is less than 60dB;
the middle noise is that the noise intensity is more than or equal to 60dB and less than 80dB;
the strong noise is the noise intensity which is more than or equal to 80dB and less than 100dB.
17. The speech compensation apparatus of any one of claims 10-16, wherein the noise reduction module comprises a deep noise reduction unit, and the deep noise reduction unit is configured to perform noise reduction processing on the current uplink audio signal by using a deep noise reduction algorithm.
18. The speech compensation apparatus according to any one of claims 10-17, wherein the speech compensation spectrum selection module is further configured to determine whether a noise environment belongs to one of the predetermined noise environments when there is no uplink audio signal, and if so, update the speech compensation spectrum in the predetermined noise environment corresponding to the noise environment as the current speech compensation spectrum.
19. A bluetooth headset characterized in that upstream speech is compensated using the method according to any of claims 1-9, or comprising the speech compensation means according to claims 10-18.
20. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed, is adapted to carry out the method of any one of claims 1-9.
21. An audio processing chip comprising a processor and a memory, wherein a computer program is stored in the memory, and wherein the processor is capable of executing the computer program to implement the method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210275972.6A CN115188392A (en) | 2022-03-21 | 2022-03-21 | Voice compensation method and device for Bluetooth headset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210275972.6A CN115188392A (en) | 2022-03-21 | 2022-03-21 | Voice compensation method and device for Bluetooth headset |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115188392A true CN115188392A (en) | 2022-10-14 |
Family
ID=83511692
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210275972.6A Pending CN115188392A (en) | 2022-03-21 | 2022-03-21 | Voice compensation method and device for Bluetooth headset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115188392A (en) |
-
2022
- 2022-03-21 CN CN202210275972.6A patent/CN115188392A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10446167B2 (en) | User-specific noise suppression for voice quality improvements | |
KR101121489B1 (en) | A method and noise suppression circuit incorporating a plurality of noise suppression techniques | |
US8285344B2 (en) | Method and apparatus for adjusting audio for a user environment | |
JP5265056B2 (en) | Noise suppressor | |
CN103236263B (en) | Method, system and mobile terminal for improving call quality | |
CN111554315B (en) | Single-channel voice enhancement method and device, storage medium and terminal | |
US9124708B2 (en) | Far-end sound quality indication for telephone devices | |
US20130218559A1 (en) | Noise reduction apparatus, audio input apparatus, wireless communication apparatus, and noise reduction method | |
CN106507258B (en) | Hearing device and operation method thereof | |
CN103270740B (en) | Sound control apparatus, audio control method and mobile terminal apparatus | |
CN104021798B (en) | For by with variable spectral gain and can dynamic modulation hardness algorithm to the method for audio signal sound insulation | |
WO2008121436A1 (en) | Method and apparatus for quickly detecting a presence of abrupt noise and updating a noise estimate | |
JP2002541753A (en) | Signal Noise Reduction by Time Domain Spectral Subtraction Using Fixed Filter | |
US8423357B2 (en) | System and method for biometric acoustic noise reduction | |
JP2008197200A (en) | Automatic intelligibility adjusting device and automatic intelligibility adjusting method | |
CN110277103A (en) | Noise-reduction method and terminal based on speech recognition | |
CN110931007A (en) | Voice recognition method and system | |
CN108172237A (en) | Voice communication data processing method, device, storage medium and mobile terminal | |
JP5292345B2 (en) | Sound reproduction device having automatic sound quality adjustment function and hands-free telephone device incorporating the same | |
US10157627B1 (en) | Dynamic spectral filtering | |
CN1390348A (en) | A noise suppressor | |
CN115188392A (en) | Voice compensation method and device for Bluetooth headset | |
WO2022198538A1 (en) | Active noise reduction audio device, and method for active noise reduction | |
US11227622B2 (en) | Speech communication system and method for improving speech intelligibility | |
JP2020077933A (en) | Hands-free speech device and method for controlling hands-free speech device |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 518000, A7/F, Fuhua Technology Building, No. 9116 Beihuan Avenue, Songpingshan Community, Xili Street, Nanshan District, Shenzhen, Guangdong Province Applicant after: Shenzhen Jieli Microelectronics Technology Co.,Ltd. Address before: 518000, 4th Floor, Building B, Majialong Sports Center, No. 202 Yiyuan Road, Nantou Street, Nanshan District, Shenzhen City, Guangdong Province Applicant before: Shenzhen Jieli Microelectronics Technology Co.,Ltd. |