CN115188392A - Voice compensation method and device for bluetooth headset - Google Patents

Voice compensation method and device for bluetooth headset Download PDF

Info

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.)
Granted
Application number
CN202210275972.6A
Other languages
Chinese (zh)
Other versions
CN115188392B (en
Inventor
陈锡锦
余伟鹏
韦天师
赖志培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jieli Microelectronics Technology Co ltd
Original Assignee
Shenzhen Jieli Microelectronics Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jieli Microelectronics Technology Co ltd filed Critical Shenzhen Jieli Microelectronics Technology Co ltd
Priority to CN202210275972.6A priority Critical patent/CN115188392B/en
Publication of CN115188392A publication Critical patent/CN115188392A/en
Application granted granted Critical
Publication of CN115188392B publication Critical patent/CN115188392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech 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/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L21/0216Noise filtering characterised by the method used for estimating noise
    • G10L21/0232Processing in the frequency domain
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech 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/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction 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

用于蓝牙耳机的语音补偿方法及装置Voice compensation method and device for bluetooth headset

技术领域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 technique

随着蓝牙耳机消费市场的快速普及,蓝牙耳机已经快速的融入了人们的生活之中。大家已经不满足单单使用蓝牙耳机来听音乐,越来越多的人选择使用蓝牙耳机来进行语音通话。相对于直接使用手机的听筒进行通话,使用蓝牙耳机通话,解放双手的同时,人体接收到的手机端的辐射大幅减少。With the rapid popularization of the Bluetooth headset consumer market, Bluetooth headsets have been rapidly integrated into people's lives. People are no longer satisfied with using Bluetooth headsets to listen to music, and more and more people choose to use Bluetooth headsets for voice calls. Compared with the direct use of the handset of the mobile phone, the use of the Bluetooth headset to talk frees both hands, and the radiation received by the human body from the mobile phone is greatly reduced.

蓝牙耳机语音通话的质量逐渐成为了人们选择一款蓝牙耳机的重要指标。现在使用蓝牙耳机的消费群体主要是大城市的上班族,他们在通勤的路上有很大的通话需求,然而通勤路上有很多噪音,比如汽笛声,轮胎压马路声,发动机噪声等等;又或者蓝牙耳机的消费者在办公区域与用户沟通项目方案,周边噪声(如其他语音)都会影响到远端(通话接收方)听到的声音清晰度。The quality of Bluetooth headset voice calls has gradually become an important indicator for people to choose a Bluetooth headset. At present, the consumers who use Bluetooth headsets are mainly office workers in big cities. They have a great demand for calls on the way to commute. However, there are a lot of noises on the way to commute, such as whistle, tire pressure on the road, engine noise, etc.; or Consumers of Bluetooth headsets communicate project plans with users in the office area, and surrounding noise (such as other voices) will affect the clarity of the sound heard by the far end (the receiver of the call).

现有的的通话上行降噪算法参差不齐,降噪强度过高,语音信号会存在部分丢失,降噪强度过低,又会残留部分环境噪声。为此,对于降噪强度过高的情况,现有技术已经试图通过语音补偿的方式对语音信号进行补偿,但是,现有的语音补偿算法复杂、计算步骤多,误差大。The existing uplink noise reduction algorithms for calls are uneven. If the noise reduction intensity is too high, part of the voice signal will be lost. If the noise reduction intensity is too low, some ambient noise will remain. Therefore, in the case where the noise reduction intensity is too high, the prior art has attempted to compensate the speech signal by means of speech compensation. However, the existing speech compensation algorithm is complicated, has many calculation steps, and has large errors.

发明内容SUMMARY OF THE INVENTION

基于上述现状,本发明的主要目的在于提供一种用于蓝牙耳机的语音补偿方法,算法非常简单,同时语音补偿效果非常好,大幅提升了通话质量。Based on the above situation, the main purpose of the present invention is to provide a voice compensation method for a Bluetooth headset, the algorithm is very simple, the voice compensation effect is very good, and the call quality is greatly improved.

为实现上述目的,本发明采用的技术方案如下:For achieving the above object, the technical scheme adopted in the present invention is as follows:

一种用于蓝牙耳机的语音补偿方法,用于在至少一种预定噪音环境下对蓝牙耳机的上行语音进行补偿,所述方法包括:A voice compensation method for a Bluetooth headset, used for compensating the uplink voice of the Bluetooth headset under at least one predetermined noise environment, the method comprising:

预存至少一种语音补偿谱,每一种语音补偿谱对应一种预定噪音环境,每一种语音补偿谱包括在其所对应的预定噪音环境下多个预设频点上的语音幅度补偿值,所述多个预设频点为分布在所述蓝牙耳机语音通话带宽内的频点;At least one speech compensation spectrum is pre-stored, each speech compensation spectrum corresponds to a predetermined noise environment, and each speech compensation spectrum includes speech amplitude compensation values at a plurality of preset frequency points under its corresponding predetermined noise environment, The plurality of preset frequency points are frequency points distributed within the voice call bandwidth of the Bluetooth headset;

接收当前环境噪音,判断当前噪音环境是否属于所述预定噪音环境中的一种,如果是,则选择当前噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱;Receive the current environmental noise, determine whether the current noise environment belongs to one of the predetermined noise environments, and if so, select the voice compensation spectrum in the predetermined noise environment corresponding to the current noise environment as the current voice compensation spectrum;

接收当前上行音频信号,对所述当前上行音频信号进行降噪处理,得到当前降噪语音信号;receiving the current uplink audio signal, and performing noise reduction processing on the current uplink audio signal to obtain the current noise reduction voice signal;

在当前降噪语音信号的基础上针对每一目标频点叠加所述当前语音补偿谱中与该频点对应的语音幅度补偿值,所述目标频点是所述当前降噪语音信号频段中所包含的频点,并且属于所述多个预设频点的子集。On the basis of the current noise reduction voice signal, for each target frequency point, the voice amplitude compensation value corresponding to the frequency point in the current voice compensation spectrum is superimposed, and the target frequency point is the frequency point in the current noise reduction voice signal frequency band. The included frequency points belong to a subset of the plurality of preset frequency points.

优选地,所述语音幅度补偿值为预先确定的第一语音信号与第二语音信号在所述多个预设频点上的语音幅度差值,Preferably, the voice amplitude compensation value is a predetermined voice amplitude difference between the first voice signal and the second voice signal at the plurality of preset frequency points,

所述第一语音信号为纯净语音信号经过所述降噪处理后的信号;The first voice signal is a pure voice signal after the noise reduction process;

所述第二语音信号为在所述预定噪音环境下,所述纯净语音信号经过所述降噪处理后的信号。The second voice signal is a signal of the pure voice signal after the 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:

预存至少两种噪音幅值谱,每一种噪音幅值谱对应一种预定噪音环境,所述噪音幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;Pre-store at least two noise amplitude spectrums, each of which corresponds to a predetermined noise environment, and the noise amplitude spectrum includes noise amplitudes at multiple preset frequency points in the corresponding predetermined noise environment;

计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;calculating a current environmental noise amplitude spectrum, where the current environmental noise amplitude spectrum includes the amplitudes of the current environmental noise at the plurality of preset frequency points;

分别计算所述当前环境噪音幅值谱与每一种预定噪音环境的噪音幅值谱在对应频点上的幅值差值;respectively calculating the amplitude difference at the corresponding frequency point between the current environmental noise amplitude spectrum and the noise amplitude spectrum of each predetermined noise environment;

分别计算每一种预定噪音环境所对应的各幅值差值的累加值;Calculate the cumulative value of each amplitude difference corresponding to each predetermined noise environment;

将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。The predetermined noise environment corresponding to the minimum accumulated value is determined as the predetermined 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-store at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes noise amplitudes at multiple preset frequency points in the corresponding predetermined noise environment;

计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;calculating a current environmental noise amplitude spectrum, where the current environmental noise amplitude spectrum includes the amplitudes of the current environmental noise at the plurality of preset frequency points;

分别计算所述当前环境噪音幅值谱与每一种预定噪音环境的噪音幅值谱在对应频点上的幅值差值;respectively calculating the amplitude difference at the corresponding frequency point between the current environmental noise amplitude spectrum and the noise amplitude spectrum of each predetermined noise environment;

分别计算每一种预定噪音环境所对应的各幅值差值的累加值;Calculate the cumulative value of each amplitude difference corresponding to each predetermined noise environment;

若任一个累加值小于或等于预设值,则将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。If any one of the accumulated values is less than or equal to the preset value, the predetermined noise environment corresponding to the accumulated value is determined as the predetermined 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-store at least two noise amplitude spectrums, each of which corresponds to a predetermined noise environment, and the noise amplitude spectrum includes noise amplitudes at multiple preset frequency points in the corresponding predetermined noise environment;

将预存的噪音幅值谱按照对应的噪音环境的噪音强度划分等级;Classify the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment;

计算所述当前环境噪音的噪音强度,得到当前噪音强度;Calculate the noise intensity of the current ambient noise to obtain the current noise intensity;

如果当前噪音强度在预设噪音强度等级范围内,则计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;If the current noise intensity is within the preset noise intensity level range, calculating the current ambient noise amplitude spectrum, where the current ambient noise amplitude spectrum includes the amplitudes of the current ambient noise at the plurality of preset frequency points;

分别计算所述当前环境噪音幅值谱与所述当前噪音强度所在的等级范围内预存的噪音幅值谱在对应频点上的幅值差值;respectively calculating the amplitude difference at the corresponding frequency point between the current ambient noise amplitude spectrum and the pre-stored noise amplitude spectrum in the level range where the current noise intensity is located;

分别计算每一种预存的噪声幅值谱所对应的各幅值差值的累加值;Calculate the cumulative value of each amplitude difference corresponding to each pre-stored noise amplitude spectrum;

将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。The predetermined noise environment corresponding to the minimum accumulated value is determined as the predetermined 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-store at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes noise amplitudes at multiple preset frequency points in the corresponding predetermined noise environment;

将预存的噪音幅值谱按照对应的噪音环境的噪音强度划分等级;Classify the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment;

计算所述当前环境噪音的噪音强度,得到当前噪音强度;Calculate the noise intensity of the current ambient noise to obtain the current noise intensity;

如果当前噪音强度在预设噪音强度等级范围内,则计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;If the current noise intensity is within the preset noise intensity level range, calculating the current ambient noise amplitude spectrum, where the current ambient noise amplitude spectrum includes the amplitudes of the current ambient noise at the plurality of preset frequency points;

分别计算所述当前环境噪音幅值谱与所述当前噪音强度所在的等级范围内预存的噪音幅值谱在对应频点上的幅值差值;respectively calculating the amplitude difference at the corresponding frequency point between the current ambient noise amplitude spectrum and the pre-stored noise amplitude spectrum in the level range where the current noise intensity is located;

分别计算每一种预存的噪声幅值谱所对应的各幅值差值的累加值;Calculate the cumulative value of each amplitude difference corresponding to each pre-stored noise amplitude spectrum;

若任一个累加值小于或等于预设值,则将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。If any one of the accumulated values is less than or equal to the preset value, the predetermined noise environment corresponding to the accumulated value is determined as the predetermined noise environment to which the current noise environment belongs.

优选地,所述预设噪音强度等级包括弱噪音、中噪音和强噪音,Preferably, the preset noise intensity level includes weak noise, medium noise and strong noise,

所述弱噪音为噪音强度小于60dB;The weak noise is that the noise intensity is less than 60dB;

所述中噪音为噪音强度大于等于60dB且小于80dB;The medium noise is that the noise intensity is greater than or equal to 60dB and less than 80dB;

所述强噪音为噪音强度大于等于80dB且小于100dB。The strong noise is that the noise intensity is greater than or equal to 80 dB and less than 100 dB.

优选地,所述降噪处理采用深度降噪算法(DNS)。Preferably, the noise reduction process adopts a deep noise reduction algorithm (DNS).

优选地,所述的用于蓝牙耳机的语音补偿方法还包括:Preferably, the voice compensation method for a Bluetooth headset further includes:

当检测到无上行音频信号时,接收环境噪音,判断所述噪音环境是否属于所述预定噪音环境中的一种,如果是,则更新所述噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱。When no uplink audio signal is detected, receive ambient noise, determine whether the noise environment belongs to one of the predetermined noise environments, 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 present invention also provides a voice compensation device for a Bluetooth headset, which is used to compensate the upstream voice of the Bluetooth headset under at least one predetermined noise environment, including a voice compensation spectrum storage module, a voice compensation spectrum selection module, and a noise reduction module. and compensation module, where,

所述语音补偿谱存储模块用于预存至少一种语音补偿谱,每一种语音补偿谱对应一种预定噪音环境,每一种语音补偿谱包括在其所对应的预定噪音环境下多个预设频点上的语音幅度补偿值,所述多个预设频点为分布在所述蓝牙耳机语音通话带宽内的频点;The voice compensation spectrum storage module is used to pre-store at least one voice compensation spectrum, each voice compensation spectrum corresponds to a predetermined noise environment, and each voice compensation spectrum includes a plurality of presets under its corresponding predetermined noise environment. The voice amplitude compensation value on the frequency point, the multiple preset frequency points are the frequency points distributed in the voice call bandwidth of the Bluetooth headset;

所述语音补偿谱选择模块用于判断当前噪音环境是否属于所述预定噪音环境中的一种,如果是,则在所述语音补偿谱存储模块中选择当前噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱;The voice compensation spectrum selection module is used to judge whether the current noise environment belongs to one of the predetermined noise environments, and if so, select the current noise environment corresponding to the predetermined noise environment in the voice compensation spectrum storage module. The speech compensation spectrum is used as the current speech compensation spectrum;

所述降噪模块用于对所述当前上行音频信号进行降噪处理,得到当前降噪语音信号;The noise reduction module is configured to perform noise reduction processing on the current uplink audio signal to obtain a current noise reduction voice signal;

所述补偿模块用于在当前降噪语音信号的基础上针对每一目标频点叠加所述当前语音补偿谱中与该频点对应的语音幅度补偿值,所述目标频点是所述当前降噪语音信号频段中所包含的频点,并且属于所述多个预设频点的子集。The compensation module is used to superimpose the speech amplitude compensation value corresponding to the frequency point in the current speech compensation spectrum for each target frequency point on the basis of the current noise reduction speech signal, and the target frequency point is the current reduction frequency point. The frequency points included in the frequency band of the noisy speech signal belong to a subset of the plurality of preset frequency points.

优选地,还包括语音幅度补偿值计算模块,用于计算预先确定的第一语音信号与第二语音信号在所述多个预设频点上的语音幅度差值,Preferably, it also includes a voice amplitude compensation value calculation module, which is used to calculate the predetermined voice amplitude difference between the first voice signal and the second voice signal at the plurality of preset frequency points,

所述第一语音信号为纯净语音信号经过所述降噪处理后的信号;The first voice signal is a pure voice signal after the noise reduction process;

所述第二语音信号为在所述预定噪音环境下,所处纯净语音信号经过所述降噪处理后的信号。The second voice signal is a signal obtained by the noise reduction processing of the pure voice signal in the predetermined noise environment.

优选地,所述语音补偿谱选择模块包括噪音幅值谱存储模块、噪音幅值谱计算单元、噪音幅值差计算单元和噪音环境判断单元,其中,Preferably, the speech compensation spectrum selection module includes 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 to pre-store at least two kinds of noise amplitude spectra, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes a plurality of noise amplitude spectra corresponding to the predetermined noise environment. The noise amplitude at the preset frequency;

所述噪音幅值谱计算单元用于计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;The noise amplitude spectrum calculation unit is configured to calculate the current ambient noise amplitude spectrum, where the current ambient noise amplitude spectrum includes the amplitude values of the current ambient noise at the plurality of preset frequency points;

所述噪音幅值差计算单元用于分别计算所述当前环境噪音幅值谱与每一种预定噪音环境的噪音幅值谱在对应频点上的幅值差值,并分别计算每一种预定噪音环境所对应的各幅值差值的累加值;The noise amplitude difference calculation unit is used to calculate the amplitude difference between the current environmental noise amplitude spectrum and the noise amplitude spectrum of each predetermined noise environment at the corresponding frequency points, and calculate each predetermined noise amplitude spectrum separately. The cumulative value of the amplitude differences corresponding to the noise environment;

所述噪音环境判断单元用于将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。The noise environment determination unit 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.

优选地,所述语音补偿谱选择模块包括噪音幅值谱存储模块、噪音幅值谱计算单元、噪音幅值差计算单元和噪音环境判断单元,其中,Preferably, the speech compensation spectrum selection module includes 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 to pre-store at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes a plurality of noise amplitude spectra corresponding to the predetermined noise environment. The noise amplitude at the preset frequency;

所述噪音幅值谱计算单元用于计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;The noise amplitude spectrum calculation unit is configured to calculate the current ambient noise amplitude spectrum, where the current ambient noise amplitude spectrum includes the amplitude values of the current ambient noise at the plurality of preset frequency points;

所述噪音幅值差计算单元用于分别计算所述当前环境噪音幅值谱与每一种预定噪音环境的噪音幅值谱在对应频点上的幅值差值,并分别计算每一种预定噪音环境所对应的各幅值差值的累加值;The noise amplitude difference calculation unit is used to calculate the amplitude difference between the current environmental noise amplitude spectrum and the noise amplitude spectrum of each predetermined noise environment at the corresponding frequency points, and calculate each predetermined noise amplitude spectrum separately. The cumulative value of the amplitude differences corresponding to the noise environment;

所述噪音环境判断单元用于当任一个累加值小于或等于预设值时,将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。The noise environment determination unit is configured to determine the predetermined noise environment corresponding to the accumulated value as the predetermined noise environment to which the current noise environment belongs when any accumulated value is less than or equal to the preset value.

优选地,所述语音补偿谱选择模块包括噪音幅值谱存储模块、噪音强度计算单元、噪音强度等级判断单元、噪声幅值谱计算单元、噪音幅值差计算单元和噪音环境判断单元,其中,Preferably, the speech compensation spectrum selection module includes 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 to pre-store at least two kinds of noise amplitude spectra, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes a plurality of noise amplitude spectra corresponding to the predetermined noise environment. The noise amplitude at the preset frequency;

所述噪音强度计算单元用于将预存的噪音幅值谱按照对应的噪音环境的噪音强度划分等级,并计算所述当前环境噪音的噪音强度,得到当前噪音强度;The noise intensity calculation unit is configured to classify the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment, and calculate the noise intensity of the current environmental noise to obtain the current noise intensity;

所述噪音强度等级判断单元用于判断所述当前噪音强度是否在预设噪音强度等级范围内;The noise intensity level judgment unit is used to judge whether the current noise intensity is within a preset noise intensity level range;

所述噪音幅值谱计算单元用于当所述噪音强度等级判断单元判断为是时,计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;The noise amplitude spectrum calculation unit is configured to calculate the current ambient noise amplitude spectrum when the noise intensity level determination unit determines that it is yes, and the current ambient noise amplitude spectrum includes the current ambient noise in the plurality of presets. Amplitude at the frequency point;

所述噪音幅值差计算单元用于分别计算所述当前环境噪音幅值谱与当前噪音强度所在的等级范围内预存的每一种噪音幅值谱在对应频点上的幅值差值,并分别计算当前噪音强度所在的等级范围内每一种预存的噪声幅值谱所对应的各幅值差值的累加值;The noise amplitude difference calculation unit is used to calculate the amplitude difference between the current environmental noise amplitude spectrum and each pre-stored noise amplitude spectrum at the corresponding frequency point within the level range where the current noise intensity is located, and Calculate the cumulative value of each amplitude difference corresponding to each pre-stored noise amplitude spectrum in the level range where the current noise intensity is located;

所述噪音环境判断单元用于将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。The noise environment determination unit 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.

优选地,所述语音补偿谱选择模块包括噪音幅值谱存储模块、噪音强度计算单元、噪音强度等级判断单元、噪音幅值谱计算单元、噪音幅值差计算单元和噪音环境判断单元,其中,Preferably, the speech compensation spectrum selection module includes 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 further configured to pre-store at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes multiple noise levels corresponding to the predetermined noise environment. The noise amplitude at a preset frequency point;

所述噪音强度计算单元用于将预存的噪音幅值谱按照对应的噪音环境的噪音强度划分等级,并计算所述当前环境噪音的噪音强度,得到当前噪音强度;The noise intensity calculation unit is configured to classify the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment, and calculate the noise intensity of the current environmental noise to obtain the current noise intensity;

所述噪音强度等级判断单元用于判断所述当前噪音强度是否在预设噪音强度等级范围内;The noise intensity level judgment unit is used to judge whether the current noise intensity is within a preset noise intensity level range;

所述噪音幅值谱计算单元用于当所述噪音环境判断单元判断为是时,计算当前环境噪音幅值谱,当前环境噪音幅值谱包括所述当前环境噪音在所述多个预设频点上的幅值;The noise amplitude spectrum calculation unit is configured to calculate the current ambient noise amplitude spectrum when the noise environment determination unit determines that it is yes, where the current ambient noise amplitude spectrum includes the current ambient noise at the plurality of preset frequencies. Amplitude at point;

所述噪音幅值差计算单元用于分别计算所述当前环境噪音幅值谱与当前噪音强度所在的等级范围内预存的噪声幅值谱在对应频点上的幅值差值,并分别计算当前噪音强度所在的等级范围内每一种预存的噪声幅值谱所对应的各幅值差值的累加值;The noise amplitude difference calculation unit is used to calculate the amplitude difference between the current environmental noise amplitude spectrum and the pre-stored noise amplitude spectrum at the corresponding frequency point in the level range where the current noise intensity is located, and calculate the current The cumulative value of the amplitude differences corresponding to each pre-stored noise amplitude spectrum within the level range of the noise intensity;

所述噪音环境判断单元用于当任一个累加值小于或等于预设值时,将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。The noise environment determination unit is configured to determine the predetermined noise environment corresponding to the accumulated value as the predetermined noise environment to which the current noise environment belongs when any accumulated value is less than or equal to the preset value.

优选地,所述预设噪音强度等级包括弱噪音、中噪音和强噪音,Preferably, the preset noise intensity level includes weak noise, medium noise and strong noise,

所述弱噪音为噪音强度小于60dB;The weak noise is that the noise intensity is less than 60dB;

所述中噪音为噪音强度大于等于60dB且小于80dB;The medium noise is that the noise intensity is greater than or equal to 60dB and less than 80dB;

所述强噪音为噪音强度大于等于80dB且小于100dB。The strong noise is that the noise intensity is greater than or equal to 80 dB and less than 100 dB.

优选地,所述降噪模块包括深度降噪单元,所述深度降噪单元用于采用深度降噪算法对所述当前上行音频信号进行降噪处理。Preferably, the noise reduction module includes 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.

优选地,所述语音补偿谱选择模块还用于在无上行音频信号时,判断噪音环境是否属于所述预定噪音环境中的一种,如果是,则更新所述噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱。Preferably, the voice compensation spectrum selection module is further configured to determine whether the noise environment belongs to one of the predetermined noise environments when there is no uplink audio signal, and if so, update the predetermined noise environment corresponding to the noise environment The voice compensation spectrum below is used as the current voice compensation spectrum.

本发明还提供一种蓝牙耳机,采用本发明所述的方法对上行语音进行补偿,或者,包括本发明所述的语音补偿装置。The present invention also provides a Bluetooth headset, which uses the method of the present invention to compensate for the uplink voice, or includes the voice compensation device of the present invention.

本发明还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被执行时能够实现本发明所述的方法。The present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the method described in the present invention can be implemented.

本发明还提供一种音频处理芯片,包括处理器和存储器,所述存储器内存储有计算机程序,所述处理器能够执行所述计算式程序以实现本发明所述的方法。The present invention also provides an audio processing chip, comprising a processor and a memory, wherein a computer program is stored in the memory, and the processor can execute the computational program to implement the method of the present invention.

本发明的用于蓝牙耳机的语音补偿方法,针对工作在预定噪音环境下的情况,通过预先存储预定噪音环境对应的语音补偿谱,如果当前的噪声环境是预定噪音环境中的一种,则选用这个预定噪音环境的语音补偿谱对当前降噪语音信号在多个预设频点上进行精准的语音补偿,算法非常简单,同时语音补偿效果非常好,大幅提升了通话质量。The voice compensation method for a Bluetooth headset of the present invention, for the case of working in a predetermined noise environment, pre-stores the voice compensation spectrum corresponding to the predetermined noise environment, if the current noise environment is one of the predetermined noise environments, select The voice compensation spectrum of the predetermined noise environment performs accurate voice compensation on the current noise reduction voice signal at multiple preset frequency points. The algorithm is very simple, and the voice compensation effect is very good, which greatly improves the call quality.

本发明的语音补偿装置,针对工作在预定噪音环境下的情况,通过语音补偿谱存储模块预先存储预定噪音环境对应的语音补偿谱,如果当前的噪声环境是预定噪音环境中的一种,则语音补偿谱选择模块选用这个预定噪音环境的语音补偿谱,补偿模块采用语音补偿谱选择模选定的预定噪音环境的语音补偿谱,对当前降噪语音信号在多个预设频点上进行精准的语音补偿,算法简单,语音补偿效果好,大幅提升了通话质量。The voice compensation device of the present invention, for the case of working in a predetermined noise environment, pre-stores the voice compensation spectrum corresponding to the predetermined noise environment through the voice compensation spectrum storage module. If the current noise environment is one of the predetermined noise environments, the voice compensation The compensation spectrum selection module selects the voice compensation spectrum of the predetermined noise environment, and the compensation module uses the voice compensation spectrum of the predetermined noise environment selected by the voice compensation spectrum selection mode, and accurately performs the current noise reduction voice signal on multiple preset frequency points. Voice compensation, the algorithm is simple, the voice compensation effect is good, and the call quality is greatly improved.

本发明的其他有益效果,将在具体实施方式中通过具体技术特征和技术方案的介绍来阐述,本领域技术人员通过这些技术特征和技术方案的介绍,应能理解所述技术特征和技术方案带来的有益技术效果。Other beneficial effects of the present invention will be illustrated in the specific embodiments through the introduction of specific technical features and technical solutions. Those skilled in the art should be able to understand the technical features and technical solutions through the introduction of these technical features and technical solutions. beneficial technical effects.

附图说明Description of drawings

以下将参照附图对根据本发明的自适应语音补偿方法、装置的优选实施方式进行描述。图中:The 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 picture:

图1为根据本发明的一种优选实施方式的用于蓝牙耳机的语音补偿方法流程图;1 is a flowchart of a voice compensation method for a Bluetooth headset according to a preferred embodiment of the present invention;

图2为根据本发明的一种优选实施方式的判断当前噪音环境是否属于预定噪音环境中的一种的方法流程图;2 is a flowchart of a method for judging whether the current noise environment belongs to one of the predetermined noise environments according to a preferred embodiment of the present invention;

图3为根据本发明的一种优选实施方式的弱噪声环境对应的语音补偿谱(补偿曲线),以及对应的语音补偿曲线;3 is a speech compensation spectrum (compensation curve) corresponding to a weak noise environment according to a preferred embodiment of the present invention, and a corresponding speech compensation curve;

图4为根据本发明的一种优选实施方式的中噪声环境对应的语音补偿谱(补偿曲线),以及对应的语音补偿曲线;4 is a speech compensation spectrum (compensation curve) corresponding to a medium noise environment according to a preferred embodiment of the present invention, and a corresponding speech compensation curve;

图5为根据本发明的一种优选实施方式的强噪声环境对应的语音补偿谱(补偿曲线),以及对应的语音补偿曲线;5 is a speech compensation spectrum (compensation curve) corresponding to a strong noise environment according to a preferred embodiment of the present invention, and a corresponding speech compensation curve;

图6为根据本发明的一种优选实施方式的判断当前噪音环境是否属于预定噪音环境的又一种方法流程图;6 is a flowchart of another method for judging whether the current noise environment belongs to a predetermined noise environment according to a preferred embodiment of the present invention;

图7为根据本发明的一种优选实施方式的判断当前噪音环境是否属于预定噪音环境的另一方法流程图;7 is a flowchart of another method for judging whether the current noise environment belongs to a predetermined noise environment according to a preferred embodiment of the present invention;

图8为根据本发明的一种优选实施方式的判断当前噪音环境是否属于预定噪音环境的另一方法流程图;8 is a flowchart of another method for judging whether the current noise environment belongs to a predetermined noise environment according to a preferred embodiment of the present invention;

图9为根据本发明的一种优选实施方式的判断当前噪音环境是否属于预定噪音环境的另一方法流程图;9 is a flowchart of another method for judging whether the current noise environment belongs to a predetermined noise environment according to a preferred embodiment of the present invention;

图10为根据本发明的一种优选实施方式的用于蓝牙耳机的语音补偿装置结构示意图;10 is a schematic structural diagram of a voice compensation device for a Bluetooth headset according to a preferred embodiment of the present invention;

图11为根据本发明的又一种优选实施方式的用于蓝牙耳机的语音补偿装置结构示意图;11 is a schematic structural diagram of a voice compensation device for a Bluetooth headset according to another preferred embodiment of the present invention;

图12为根据本发明的又一种优选实施方式的语音补偿谱选择模块结构示意图;12 is a schematic structural diagram of a speech compensation spectrum selection module according to another preferred embodiment of the present invention;

图13为根据本发明的另一种优选实施方式的语音补偿谱选择模块结构示意图。FIG. 13 is a schematic structural diagram of a speech compensation spectrum selection module according to another preferred embodiment of the present invention.

具体实施方式Detailed ways

图1为根据本发明的一种优选实施方式用于蓝牙耳机的的语音补偿方法流程图,用于在至少一种预定噪音环境下对蓝牙耳机的上行语音进行补偿,预定噪音环境通常可以是办公室噪音环境,地铁噪音环境,嘈杂的马路噪音环境,嘈杂的风机噪音环境等。1 is a flowchart of a voice compensation method for a Bluetooth headset according to a preferred embodiment of the present invention, for compensating the upstream voice of the Bluetooth headset under at least one predetermined noise environment, and the predetermined noise environment can usually be an office Noise environment, subway noise environment, noisy road noise environment, noisy fan noise environment, etc.

图1中的语音补偿方法包括:The speech compensation method in Figure 1 includes:

步骤101:预存至少一种语音补偿谱,每一种语音补偿谱对应一种预定噪音环境,每一种语音补偿谱包括在其所对应的预定噪音环境下多个预设频点上的语音幅度补偿值,其中,多个预设频点为分布在蓝牙耳机语音通话带宽内的频点。蓝牙耳机语音通话带宽是指蓝牙耳机可传输的语音信号的频率范围,通常是100Hz-8000Hz。通常是在此范围内以1Hz为步进选取频点作为多个预设频点。在技术允许范围内,步进可以大于1Hz,也可以小于1Hz。Step 101: pre-store at least one speech compensation spectrum, each speech compensation spectrum corresponds to a predetermined noise environment, and each speech compensation spectrum includes the speech amplitudes on a plurality of preset frequency points under its corresponding predetermined noise environment Compensation value, wherein the plurality of preset frequency points are frequency points distributed within the bandwidth of the voice call of the Bluetooth headset. The Bluetooth headset voice call bandwidth refers to the frequency range of the voice signal that the Bluetooth headset can transmit, usually 100Hz-8000Hz. Usually, frequency points are selected as multiple preset frequency points in steps of 1Hz within this range. Within the technical allowable range, the step can be larger than 1Hz or smaller than 1Hz.

步骤102:接收当前环境噪音,判断当前噪音环境是否属于预定噪音环境中的一种,如果是,则选择当前噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱。实际使用时,可以在蓝牙耳机启动但未进行语音通话前,先接收当前环境噪音,在判断当前噪音环境是预定噪音环境中的一种时,选择预定噪音环境所对应的语音补偿谱作为当前的语音补偿谱。Step 102: Receive the current environmental noise, determine whether the current noise environment belongs to one of the predetermined noise environments, and if so, select the speech compensation spectrum under the predetermined noise environment corresponding to the current noise environment as the current speech compensation spectrum. In actual use, the current ambient noise can be received before the Bluetooth headset is activated but before the voice call is performed. When it is judged that the current noise environment is one of the predetermined noise environments, the voice compensation spectrum corresponding to the predetermined noise environment is selected as the current noise compensation spectrum. Speech Compensation Spectrum.

步骤103:接收当前上行音频信号,对所述当前上行音频信号进行降噪处理,得到当前降噪语音信号。当使用蓝牙耳机开始进行语音通话时,会对当前上行的音频信号进行降噪处理,得到降噪后的语音信号,其中上行的音频信号中包括了当前环境噪音信号和当前语音信号。Step 103: Receive the current uplink audio signal, perform noise reduction processing on the current uplink audio signal, and obtain the current noise reduction voice signal. When using a Bluetooth headset to start a voice call, the current upstream audio signal is subjected to noise reduction processing to obtain a noise-reduced voice signal, wherein the upstream audio signal includes the current environmental noise signal and the current voice signal.

步骤104:在当前降噪语音信号的基础上针对每一目标频点叠加当前语音补偿谱中与该频点对应的语音幅度补偿值,其中,目标频点是指当前降噪语音信号频段中所包含的频点,并且属于多个预设频点的子集。对当前降噪语音信号频段内的多个频点叠加当前语音补偿谱上的语音幅度补偿值,补偿了由于降噪处理造成的语音信号的损失量。Step 104: on the basis of the current noise reduction voice signal, superimpose the voice amplitude compensation value corresponding to this frequency point in the current voice compensation spectrum for each target frequency point, wherein, the target frequency point refers to all the frequencies in the current noise reduction voice signal frequency band. Included frequency points, and belong to a subset of multiple preset frequency points. The voice amplitude compensation value on the current voice compensation spectrum is superimposed on multiple frequency points in the frequency band of the current noise reduction voice signal, thereby compensating for the loss of the voice signal caused by the noise reduction process.

本发明的语音补偿方法,针对工作在预定噪音环境下的情况,通过预先存储预定噪音环境对应的语音补偿谱,如果当前的噪声环境是预定噪音环境中的一种,则选用这个预定噪音环境的语音补偿谱对当前降噪语音信号在多个预设频点上进行精准的语音补偿,算法非常简单,同时语音补偿效果非常好,大幅提升了通话质量。The speech compensation method of the present invention, for the case of working in a predetermined noise environment, pre-stores the speech compensation spectrum corresponding to the predetermined noise environment, if the current noise environment is one of the predetermined noise environments, select the predetermined noise environment. The voice compensation spectrum performs accurate voice compensation for the current noise reduction voice signal at multiple preset frequency points. The algorithm is very simple, and the voice compensation effect is very good, which greatly improves the call quality.

在可选的实施方式中,步骤101中预存的语音补偿谱中多个预设频点上的语音幅度补偿值是通过提前测试得到的。在具体实施方式中,语音幅度补偿值可以是预先确定的第一语音信号与第二语音信号在多个预设频点上的语音幅度差值,其中,第一语音信号是纯净语音信号经过降噪处理后的信号,第二语音信号是在预定噪音环境下,同样的纯净语音信号经过降噪处理后的信号。这里的降噪处理与步骤103中的降噪处理是同一降噪算法。语音幅度可以选择语音强度的幅值。In an optional implementation manner, the speech amplitude compensation values at multiple preset frequency points in the pre-stored speech compensation spectrum in step 101 are obtained by testing in advance. In a specific implementation manner, the voice amplitude compensation value may be a predetermined voice amplitude difference between the first voice signal and the second voice signal at multiple preset frequency points, wherein the first voice signal is a pure voice signal that has been reduced The signal after noise processing, and the second voice signal is a signal after noise reduction processing of the same pure voice signal in a predetermined noise environment. The noise reduction processing here is the same noise reduction algorithm as the noise reduction processing in step 103 . Speech Amplitude You can select the amplitude of speech intensity.

通常,纯净语音信号经过降噪处理后,语音几乎没有丢失,而在预定噪音环境下,同一纯净语音信号经过降噪处理后就会出现明显的语音丢失,上述实施例通过记录二者在多个预设频点上的差值,从而形成针对预定噪音环境的语音补偿谱,语音补偿值计算简单,且具有针对性,能实现精准的语音补偿。Usually, after the pure voice signal is subjected to noise reduction processing, almost no voice is lost, but in a predetermined noise environment, obvious voice loss will occur after the same pure voice signal is subjected to noise reduction processing. The difference value at the preset frequency point is used to form a voice compensation spectrum for a predetermined noise environment. The calculation of the voice compensation value is simple and targeted, and accurate voice compensation can be achieved.

在可选的实施方式中,步骤102中,判断当前噪音环境是否属于所述预定噪音环境中的一种可是通过判断当前环境噪音的噪音强度来实现的。如图2所示,包括:步骤201:计算当前环境噪音的噪音强度,得到当前噪音强度;步骤202:如果所述噪音强度在预设噪音强度等级范围内,则判断所述当前噪音环境属于所述预定噪音环境中的一种。In an optional implementation manner, in step 102, judging whether the current noise environment belongs to one of the predetermined noise environments may be realized by judging the noise intensity of the current environmental noise. As shown in Figure 2, it includes: Step 201: Calculate the noise intensity of the current environmental noise to obtain the current noise intensity; Step 202: If the noise intensity is within a preset noise intensity level range, determine that the current noise environment belongs to the one of the predetermined noise environments described above.

在具体实施方式中,可以将预设噪音强度等级划分为弱噪音、中噪音和强噪音3个等级,具体可以是弱噪音为噪音强度小于60dB,中噪音为噪音强度大于等于60dB且小于80dB,强噪音为噪音强度大于等于80dB且小于100dB。通过划分噪音强度等级,预存的语音补偿谱就与上述噪音等级相对应,也就是说,弱噪音、中噪音和强噪音分别对应预存一个语音补偿谱,当前噪音如果属于其中一个噪音等级,则选择其对应的语音补偿谱作为当前的语音补偿谱即可。In a specific implementation manner, the preset noise intensity level can be divided into three levels: weak noise, medium noise and strong noise. Specifically, the weak noise can be defined as the noise intensity of less than 60dB, and the medium noise can be defined as the noise intensity greater than or equal to 60dB and less than 80dB. Strong noise is the noise intensity greater than or equal to 80dB and less than 100dB. By dividing the noise intensity level, the pre-stored speech compensation spectrum corresponds to the above noise level, that is to say, weak noise, medium noise and strong noise correspond to a pre-stored speech compensation spectrum. If the current noise belongs to one of the noise levels, select The corresponding speech compensation spectrum can be used as the current speech compensation spectrum.

图3-5分别示例性给出了弱噪音、中噪音和强噪音情况下,对应的语音补偿谱(补偿曲线),以及采用本发明的技术方案实现的语音补偿曲线。图3中下部曲线为弱噪声环境对应的语音补偿谱,上部曲线中,虚曲线为降噪之后得到语音信号,实曲线为根据本发明技术方案进行语音补偿后的通话信号。图4中下部曲线为中噪声环境对应的语音补偿谱,上部曲线中,虚曲线为降噪之后得到语音信号,实曲线为根据本发明技术方案进行语音补偿后的通话信号。图5中下部曲线为强噪声环境对应的语音补偿谱,上部曲线中,虚曲线为降噪之后得到语音信号,实曲线为根据本发明技术方案进行语音补偿后的通话信号。从图3-5中可以明显看出,针对不同噪音环境,预存不同的语音补偿谱,有针对性的进行语音补偿,补偿效果非常好。3-5 exemplarily show the corresponding speech compensation spectrum (compensation curve) in the case of weak noise, medium noise and strong noise, and the speech compensation curve realized by the technical solution of the present invention. The lower curve in FIG. 3 is the speech compensation spectrum corresponding to the weak noise environment. In the upper curve, the dotted curve is the speech signal obtained after noise reduction, and the solid curve is the call signal after speech compensation according to the technical solution of the present invention. The lower curve in FIG. 4 is the speech compensation spectrum corresponding to the medium noise environment. In the upper curve, the dotted curve is the speech signal obtained after noise reduction, and the solid curve is the call signal after speech compensation according to the technical solution of the present invention. The lower curve in Fig. 5 is the speech compensation spectrum corresponding to the strong noise environment. In the upper curve, the dotted curve is the speech signal obtained after noise reduction, and the solid curve is the call signal after speech compensation according to the technical solution of the present invention. It can be clearly seen from Figure 3-5 that, for different noise environments, different speech compensation spectra are pre-stored, and the speech compensation is performed in a targeted manner, and the compensation effect is very good.

在可选的实施方式中,步骤102中,判断当前噪音环境是否属于所述预定噪音环境中的一种可以是通过判断当前环境噪音的噪音类别来实现的。如图6所示,包括:步骤301:预存至少两种噪音幅值谱,每一种噪音幅值谱对应一种预定噪音环境,其中,噪音幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;步骤302:计算当前环境噪音幅值谱,当前环境噪音幅值谱包括当前环境噪音在所述多个预设频点上的幅值;步骤303:分别计算当前环境噪音幅值谱与每一种预定噪音环境的噪声幅值谱在对应频点上的幅值差值;步骤304:分别计算每一种预定噪音环境所对应的各幅值差值的累加值;步骤305:将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。In an optional implementation manner, in step 102, judging whether the current noise environment belongs to one of the predetermined noise environments may be realized by judging the noise category of the current environmental noise. As shown in FIG. 6, it includes: Step 301: Pre-store at least two kinds of noise amplitude spectrum, each noise amplitude spectrum corresponds to a predetermined noise environment, wherein the noise amplitude spectrum includes multiple noise amplitude spectra corresponding to the predetermined noise environment. Noise amplitudes at preset frequency points; Step 302: Calculate the current ambient noise amplitude spectrum, where the current ambient noise amplitude spectrum includes the amplitudes of the current ambient noise at the plurality of preset frequency points; Step 303: Separately Calculate the amplitude difference between the current environmental noise amplitude spectrum and the noise amplitude spectrum of each predetermined noise environment at the corresponding frequency point; Step 304: Calculate the difference between the amplitude differences corresponding to each predetermined noise environment respectively. Accumulated value; Step 305: Determine the predetermined noise environment corresponding to the minimum accumulated value as the predetermined noise environment to which the current noise environment belongs.

通过预存至少两种预定噪音环境的噪音幅值谱,在检测到当前环境噪音后,计算当前环境噪音的幅值谱,再计算当前环境噪音幅值谱与预存的噪音幅值谱中的哪一个最接近,也就是步骤303-305过程中选取最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境,精确定位当前噪音环境,进而可以精确定位当前噪音环境的语音补偿谱,实现语音的精准补偿。By pre-storing the noise amplitude spectrum of at least two predetermined noise environments, after detecting the current ambient noise, calculate the amplitude spectrum of the current ambient noise, and then calculate which of the current ambient noise amplitude spectrum and the pre-stored noise amplitude spectrum is The closest, that is, in the process of steps 303-305, the predetermined noise environment corresponding to the minimum accumulated value is selected to be determined as the predetermined noise environment to which the current noise environment belongs, and the current noise environment can be accurately located, and then the speech compensation spectrum of the current noise environment can be accurately located to achieve Accurate compensation of speech.

图7是又一种判断当前噪音环境是否属于所述预定噪音环境中的一种的方法,包括:步骤401:预存至少一种噪音幅值谱,每一种噪音幅值谱对应一种预定噪音环境,其中,噪音幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;步骤402:计算当前环境噪音幅值谱,当前环境噪音幅值谱包括当前环境噪音在所述多个预设频点上的幅值;步骤403:分别计算当前环境噪音幅值谱与每一种预定噪音环境的噪声幅值谱在对应频点上的幅值差值;步骤404:分别计算每一种预定噪音环境所对应的各幅值差值的累加值;步骤405:若任一个累加值小于或等于预设值,则将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。在具体实施方式中,预设值可根据技术要求、预设环境噪音本身的因素确定,本发明不限制。7 is another method for judging whether the current noise environment belongs to one of the predetermined noise environments, comprising: Step 401: Pre-store at least one noise amplitude spectrum, each noise amplitude spectrum corresponding to a predetermined noise environment, wherein the noise amplitude spectrum includes the noise amplitudes at multiple preset frequency points under the corresponding predetermined noise environment; Step 402: Calculate the current ambient noise amplitude spectrum, where the current ambient noise amplitude spectrum includes the current ambient noise The amplitudes at the plurality of preset frequency points; Step 403: Calculate the amplitude difference between the current environmental noise amplitude spectrum and the noise amplitude spectrum of each predetermined noise environment at the corresponding frequency points; Step 404 : calculate the accumulated value of each amplitude difference corresponding to each predetermined noise environment respectively; Step 405: if any accumulated value is less than or equal to the preset value, then the predetermined noise environment corresponding to the accumulated value is determined as the current The predetermined noise environment to which the noise environment belongs. In a specific implementation manner, the preset value may be determined according to technical requirements and factors of preset environmental noise itself, which is not limited in the present invention.

若最小累加值也非常大时,即,最小累加值大于预设值时,就无法找到所属的预定噪音环境,那么就不适用预定的补偿谱,此时,也可以选择其他的语音补偿方法。若有两个累加值都小于预设值,说明有两个比较接近的预定环境,选其中任意一个的语音补偿谱进行计算都可以。If the minimum accumulated value is also very large, that is, when the minimum accumulated value is greater than the preset value, the predetermined noise environment to which it belongs cannot be found, and the predetermined compensation spectrum is not applicable. At this time, other speech compensation methods can also be selected. If both of the two accumulated values are smaller than the preset value, it means that there are two relatively close predetermined environments, and any one of the speech compensation spectra can be selected for calculation.

在可选的实施方式中,步骤102中,判断当前噪音环境是否属于所述预定噪音环境中的一种可以是先判断当前环境噪音的噪音强度等级,再判断当前噪音是当前噪音等级内的哪种噪音类别来实现的。如图8所示,包括:步骤501,预存至少两种噪声幅值谱,每一种噪声幅值谱对应一种预定噪音环境,噪声幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;步骤502:将预存的噪音幅值谱按照对应的噪音环境的噪音强度划分等级;步骤503,计算当前环境噪音的噪音强度,得到当前噪音强度;步骤504,如果当前噪音强度在预设噪音强度等级范围内,则计算当前环境噪音幅值谱,当前环境噪音幅值谱为当前环境噪音在所述多个预设频点上的幅值;步骤505,分别计算当前环境噪音幅值谱与当前噪音强度所在的等级范围内预存的噪声幅值谱在对应频点上的幅值差值;步骤506,分别计算每一种预存的噪声幅值谱所对应的各幅值差值的累加值;步骤507,将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。In an optional implementation manner, in step 102, determining whether the current noise environment belongs to one of the predetermined noise environments may be determined by first determining the noise intensity level of the current ambient noise, and then determining which of the current noise levels the current noise is. noise category to achieve. As shown in FIG. 8 , it includes: Step 501: Pre-store at least two kinds of noise amplitude spectra, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes a plurality of predicted noises in the corresponding predetermined noise environment. Set the noise amplitude at the frequency point; Step 502: Classify the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment; Step 503, calculate the noise intensity of the current environmental noise, and obtain the current noise intensity; Step 504, if If the current noise intensity is within the range of the preset noise intensity level, the current ambient noise amplitude spectrum is calculated, and the current ambient noise amplitude spectrum is the amplitude value of the current ambient noise at the plurality of preset frequency points; step 505, calculate respectively The amplitude difference between the current ambient noise amplitude spectrum and the pre-stored noise amplitude spectrum at the corresponding frequency point within the level range where the current noise intensity is located; Step 506, calculate the corresponding The accumulated value of the amplitude difference; Step 507 , determine the predetermined noise environment corresponding to the minimum accumulated value as the predetermined noise environment to which the current noise environment belongs.

通过预存至少两个预定噪音环境的噪音幅值谱,并先判断当前环境噪音的噪音等级,只计算当前环境噪音幅值谱与当前噪音等级单位内预存的噪音幅值谱中的哪一个最接近,进而判定当前噪音环境是最接近的噪声幅值谱对应的预定噪音环境。在精确定位当前噪音环境的基础上,进一步缩小比对范围,降低了计算量,提升了语音补偿的速度。By pre-storing the noise amplitude spectrum of at least two predetermined noise environments, and first judging the noise level of the current ambient noise, only which one of the current ambient noise amplitude spectrum and the pre-stored noise amplitude spectrum in the current noise level unit is the closest is calculated. , and further determine that the current noise environment is the predetermined noise environment corresponding to the closest noise amplitude spectrum. On the basis of accurately locating the current noise environment, the comparison range is further narrowed, the amount of calculation is reduced, and the speed of voice compensation is improved.

图9是又一种判断当前噪音环境是否属于所述预定噪音环境中的一种的方法,包括:步骤601,预存至少一种噪声幅值谱,每一种噪声幅值谱对应一种预定噪音环境,噪声幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;步骤602:将预存的噪音幅值谱按照对应的噪音环境的噪音强度划分等级;步骤603,计算当前环境噪音的噪音强度,得到当前噪音强度;步骤604,如果当前噪音强度在预设噪音强度等级范围内,则计算当前环境噪音幅值谱,当前环境噪音幅值谱为当前环境噪音在所述多个预设频点上的幅值;步骤605,分别计算当前环境噪音幅值谱与当前噪音强度所在的等级范围内预存的噪声幅值谱在对应频点上的幅值差值;步骤606,分别计算每一种预存的噪声幅值谱所对应的各幅值差值的累加值;步骤607,若任一个累加值小于或等于预设值,则将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。Fig. 9 is another method for judging whether the current noise environment belongs to one of the predetermined noise environments, including: Step 601, pre-store at least one noise amplitude spectrum, and each noise amplitude spectrum corresponds to a predetermined noise environment, the noise amplitude spectrum includes the noise amplitude values at multiple preset frequency points under the corresponding predetermined noise environment; Step 602: Classify the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment; Step 603 , calculate 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, calculate the current environmental noise amplitude spectrum, and the current environmental noise amplitude spectrum is the current environmental noise at Amplitudes at the plurality of preset frequency points; Step 605, respectively calculating the amplitude difference between the current ambient noise amplitude spectrum and the pre-stored noise amplitude spectrum at the corresponding frequency point within the level range where the current noise intensity is located; Step 606, calculate the cumulative value of each amplitude difference corresponding to each pre-stored noise amplitude spectrum; Step 607, if any cumulative value is less than or equal to the preset value, then the cumulative value corresponding to the predetermined value. The noise environment is determined as a predetermined noise environment to which the current noise environment belongs.

在具体实施方式中,预设噪音强度等级可以包括弱噪音、中噪音和强噪音,弱噪音为噪音强度小于60dB,中噪音为噪音强度大于等于60dB且小于80dB,强噪音为噪音强度大于等于80dB且小于100dB。In a specific embodiment, the preset noise intensity levels may include weak noise, medium noise, and strong noise, where weak noise means that the noise intensity is less than 60dB, medium noise means that the noise intensity is greater than or equal to 60dB and less than 80dB, and strong noise means that the noise intensity is greater than or equal to 80dB and less than 100dB.

在可选的实施方式中,可采用深度降噪算法,也就是DNS(Deep noisesuppression)降噪算法,是神经网络降噪算法的一种。DNS降噪强度(Over_Drive)越大,降噪越强,DNS增益系数(Gain_Floor)越小,降噪越强。通过调整OverDrive参数和GainFloor参数来控制降噪强度。GainFloor是增益的下限,可以防止过小的音过于降噪压制;OverDrive是用于调节降噪强度的,适应不同降噪强度的需求。由于DNS降噪算法降噪比较厉害,同时语音丢失也会比其他算法多一些。所以,对于DNS降噪算法,本发明的语音补偿,由于针对预定噪音环境,可以精确选择语音补偿谱,语音补偿效果非常好。In an optional embodiment, a deep noise reduction algorithm, that is, a DNS (Deep noise suppression) noise reduction algorithm, which is a kind of neural network noise reduction algorithm, may be used. 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. Control the intensity of noise reduction by adjusting the OverDrive parameter and GainFloor parameter. GainFloor is the lower limit of gain, which can prevent too small sound from being suppressed by noise reduction; OverDrive is used to adjust the noise reduction intensity to meet the needs of different noise reduction intensity. Since the DNS noise reduction algorithm is more powerful in noise reduction, at the same time, there will be more voice loss than other algorithms. Therefore, for the DNS noise reduction algorithm, the speech compensation of the present invention can accurately select the speech compensation spectrum for the predetermined noise environment, and the speech compensation effect is very good.

在可选的实施方式中,本发明的语音补偿方法中的降噪处理算法是可根据环境噪音自适应调整降噪强度的。根据当前的环境噪音调整降噪算法的降噪强度,当前环境噪音过大,则增强降噪强度,当前环境噪音小,则减小降噪强度,保证不会对当前语音造成过多损失。In an optional embodiment, the noise reduction processing algorithm in the speech compensation method of the present invention can adaptively adjust the noise reduction intensity according to the environmental noise. Adjust the noise reduction intensity of the noise reduction algorithm according to the current environmental noise. If the current environmental noise is too large, increase the noise reduction intensity. If the current environmental noise is small, reduce the noise reduction intensity to ensure that the current voice will not cause too much loss.

在可选的实施方式中,例如,在蓝牙耳机使用过程中,若用户未进行通话,蓝牙耳机未检测到上行音频信号,可以再次检测当前的噪音环境,判断噪音环境是否属于预定噪音环境中的一种,如果是,则更新所述噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱。从而可以实现在噪音环境发生变化时,及时选取更适合的语音补偿曲线,以做到更精准的对当前语音进行补偿。In an optional embodiment, for example, during the use of the Bluetooth headset, if the user does not make a call and the Bluetooth headset does not detect the upstream audio signal, the current noise environment can be detected again to determine whether the noise environment belongs to the predetermined noise environment. One, if yes, update the speech compensation spectrum in the predetermined noise environment corresponding to the noise environment as the current speech compensation spectrum. Therefore, when the noise environment changes, a more suitable voice compensation curve can be selected in time, so as to compensate the current voice more accurately.

本实施例还公开一种用于蓝牙耳机的语音补偿装置,用于在至少一种预定噪音环境下对蓝牙耳机的上行语音进行补偿,如图10所示,为本实施例公开的一种用于蓝牙耳机的语音补偿装置结构示意图,该语音补偿装置包括:语音补偿谱存储模块701、语音补偿谱选择模块702、降噪模块703和补偿模块704,其中:This embodiment also discloses a voice compensation device for a Bluetooth headset, which is used to compensate the uplink voice of the Bluetooth headset under at least one predetermined noise environment. As shown in FIG. A schematic structural diagram of a voice compensation device for a Bluetooth headset, the voice compensation device 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:

语音补偿谱存储模块701用于预存至少一种语音补偿谱,每一种语音补偿谱对应一种预定噪音环境,每一种语音补偿谱包括在其所对应的预定噪音环境下多个预设频点上的语音幅度补偿值,多个预设频点为分布在所述蓝牙耳机语音通话带宽内的频点;语音补偿谱选择模块702用于判断当前噪音环境是否属于所述预定噪音环境中的一种,如果是,则在语音补偿谱存储模块701中选择当前噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱;降噪模块703用于对当前上行音频信号进行降噪处理,得到当前降噪语音信号;补偿模块704用于在当前降噪语音信号的基础上针对每一目标频点叠加所述当前语音补偿谱中与该频点对应的语音幅度补偿值,目标频点是当前降噪语音信号频段中所包含的频点,并且属于多个预设频点的子集。The voice compensation spectrum storage module 701 is used to pre-store at least one voice compensation spectrum, each voice compensation spectrum corresponds to a predetermined noise environment, and each voice compensation spectrum includes a plurality of preset frequencies under its corresponding predetermined noise environment. The voice amplitude compensation value on the point, a plurality of preset frequency points are the frequency points distributed in the voice call bandwidth of the Bluetooth headset; the voice compensation spectrum selection module 702 is used to determine whether the current noise environment belongs to the predetermined noise environment. One, if yes, select the voice compensation spectrum under the predetermined noise environment corresponding to the current noise environment in the voice compensation spectrum storage module 701 as the current voice compensation spectrum; the noise reduction module 703 is used for noise reduction of the current upstream audio signal processing to obtain the current noise reduction voice signal; the compensation module 704 is used to superimpose the 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, and the target frequency A point is a frequency point included in the frequency band of the current noise reduction speech signal, and belongs to a subset of multiple preset frequency points.

本发明的语音补偿装置,针对工作在预定噪音环境下的情况,通过语音补偿谱存储模块701预先存储预定噪音环境对应的语音补偿谱,如果当前的噪声环境是预定噪音环境中的一种,则语音补偿谱选择模块702选用这个预定噪音环境的语音补偿谱,补偿模块704采用语音补偿谱选择模块702选定的预定噪音环境的语音补偿谱,对当前降噪语音信号在多个预设频点上进行精准的语音补偿,算法简单,语音补偿效果好,大幅提升了通话质量。The voice compensation device of the present invention, for the case of working in a predetermined noise environment, pre-stores the voice compensation spectrum corresponding to the predetermined noise environment through the voice compensation spectrum storage module 701. If the current noise environment is one of the predetermined noise environments, then The speech compensation spectrum selection module 702 selects the speech compensation spectrum of the predetermined noise environment, and the compensation module 704 uses the speech compensation spectrum of the predetermined noise environment selected by the speech compensation spectrum selection module 702 to select the current noise reduction speech signal at a plurality of preset frequency points. Accurate voice compensation is performed on the phone, the algorithm is simple, the voice compensation effect is good, and the call quality is greatly improved.

在可选的实施例中,图10中的语音补偿装置还可包括语音幅度补偿值计算模块705,如图11所示,语音幅度补偿值计算模块705用于计算预先确定的第一语音信号与第二语音信号在多个预设频点上的语音幅度差值,第一语音信号为纯净语音信号经过所述降噪处理后的信号;第二语音信号为在所述预定噪音环境下,所处纯净语音信号经过所述降噪处理后的信号。In an optional embodiment, the voice compensation apparatus in FIG. 10 may further include a voice amplitude compensation value calculation module 705. As shown in FIG. 11 , the voice amplitude compensation value calculation module 705 is used to calculate the predetermined first voice signal and the The difference between the speech amplitudes of the second speech signal at multiple preset frequency points, the first speech signal is the pure speech signal after the noise reduction processing; the second speech signal is in the predetermined noise environment, the where the pure speech signal is processed by the noise reduction.

在可选的实施例中,语音补偿谱选择模块702可计算当前环境噪音的噪音强度,得到当前噪音强度;在当前噪音强度属于预设噪音强度等级范围内时,判断当前噪音环境属于所述预定噪音环境中的一种。在具体实施方式中,预设噪音强度等级可包括弱噪音、中噪音和强噪音,弱噪音可为噪音强度小于60dB,中噪音可为噪音强度大于等于60dB且小于80dB,强噪音可为噪音强度大于等于80dB且小于100dB。In an optional embodiment, the speech compensation spectrum selection module 702 may calculate the noise intensity of the current environmental noise to obtain the current noise intensity; when the current noise intensity falls within the preset noise intensity level range, determine that the current noise environment belongs to the predetermined noise level. One of the noisy environments. In a specific embodiment, the preset noise intensity level may include weak noise, medium noise and strong noise, the weak noise may be the noise intensity less than 60dB, the medium noise may be the noise intensity greater than or equal to 60dB and less than 80dB, and the strong noise may be the noise intensity Greater than or equal to 80dB and less than 100dB.

在可选的实施方式中,如图12所示,语音补偿谱选择模块702可以包括噪音幅值谱存储模块801、噪音幅值谱计算单元802、噪音幅值差计算单元803和噪音环境判断单元804,其中,噪音幅值谱存储模块801用于预存至少两种噪音幅值谱,每一种噪音幅值谱对应一种预定噪音环境,噪音幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值。噪音幅值谱计算单元802用于计算当前环境噪音幅值谱,当前环境噪音幅值谱为所述当前环境噪音在所述多个预设频点上的幅值;噪音幅值差计算单元803用于分别计算当前环境噪音幅值谱与每一种预定噪音环境的噪音幅值谱在对应频点上的幅值差值,并分别计算每一种预定噪音环境所对应的各幅值差值的累加值;噪音环境判断单元804用于将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。In an optional 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 judgment unit 804, wherein the noise amplitude spectrum storage module 801 is used to pre-store at least two kinds of noise amplitude spectra, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes multiple noise amplitude spectra corresponding to the predetermined noise environment. The noise amplitude at a preset frequency point. The noise amplitude spectrum calculation unit 802 is configured to calculate the current ambient noise amplitude spectrum, where the current ambient noise amplitude spectrum is the amplitude of the current ambient noise at the multiple preset frequency points; the noise amplitude difference calculation unit 803 It is used to separately calculate the amplitude difference between the current environmental noise amplitude spectrum and the noise amplitude spectrum of each predetermined noise environment at the corresponding frequency point, and to calculate the amplitude difference corresponding to each predetermined noise environment. The noise environment judgment unit 804 is configured to determine the predetermined noise environment corresponding to the minimum cumulative value as the predetermined noise environment to which the current noise environment belongs.

在可选的实施方式中,图12中的语音补偿谱选择模块中的噪音幅值谱存储模块801预存了至少一种噪音幅值谱,每一种噪音幅值谱对应一种预定噪音环境,噪音幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;噪音幅值谱计算单元802和噪音幅值差计算单元903的作用与上述实施例相同;噪音环境判断单元904用于当任一个累加值小于或等于预设值时,将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。In an optional embodiment, the noise amplitude spectrum storage module 801 in the speech compensation spectrum selection module in FIG. 12 pre-stores at least one noise amplitude spectrum, and each noise amplitude spectrum corresponds to a predetermined noise environment, The noise amplitude spectrum includes the noise amplitudes at multiple preset frequency points in the corresponding predetermined noise environment; the functions of the noise amplitude spectrum calculation unit 802 and the noise amplitude difference calculation unit 903 are the same as those in the above-mentioned embodiment; the noise environment The determination unit 904 is configured to determine the predetermined noise environment corresponding to the accumulated value as the predetermined noise environment to which the current noise environment belongs when any accumulated value is less than or equal to the preset value.

在可选的实施方式中,如图13所示,语音补偿谱选择模块60还可包括噪音幅值谱存储模块901、噪音强度计算单元902、噪音强度等级判断单元903、噪音幅值谱计算单元904、噪音幅值差计算单元905和噪音环境判断单元906,其中,噪音幅值谱存储模块901用于预存至少两种噪声幅值谱,每一种噪音幅值谱对应一种预定噪音环境,所述噪音幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;噪音强度计算单元902用于将预存的噪音幅值谱按照对应的噪音环境的噪音强度划分等级,并计算当前环境噪音的噪音强度,得到当前噪音强度;噪音强度等级判断单元903用于判断当前噪音强度是否在预设噪音强度等级范围内;噪声幅值谱计算单元904用于当噪音强度等级判断单元903判断为是时,计算当前环境噪音幅值谱,当前环境噪音幅值谱为所述当前环境噪音在所述多个预设频点上的幅值;噪音幅值差计算单元905用于分别计算当前环境噪音幅值谱与当前噪音强度等级范围内预存的每一种噪音幅值谱在对应频点上的幅值差值,并分别计算当前噪音强度所在的等级范围内每一种预存的噪声幅值谱所对应的各幅值差值的累加值;噪音环境判断单元906用于将最小累加值对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。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 determination unit 903, and a noise amplitude spectrum calculation unit 904. The noise amplitude difference calculating unit 905 and the noise environment judging unit 906, wherein the noise amplitude spectrum storage module 901 is used to pre-store at least two noise amplitude spectra, each of which corresponds to a predetermined noise environment, The noise amplitude spectrum includes noise amplitudes at multiple preset frequency points under the corresponding predetermined noise environment; the noise intensity calculation unit 902 is configured to divide the pre-stored noise amplitude spectrum according to the noise intensity of the corresponding noise environment level, and calculate the noise intensity of the current ambient noise to obtain the current noise intensity; the noise intensity level judgment unit 903 is used to judge whether the current noise intensity is within the preset noise intensity level range; the noise amplitude spectrum calculation unit 904 is used when the noise intensity When the level determination unit 903 determines that it is yes, it calculates the current ambient noise amplitude spectrum, which is the amplitude of the current ambient noise at the plurality of preset frequency points; the noise amplitude difference calculation unit 905 It is used to calculate the amplitude difference between the current ambient noise amplitude spectrum and each pre-stored noise amplitude spectrum at the corresponding frequency point within the current noise intensity level range, and calculate the amplitude difference of each type of noise amplitude spectrum within the level range of the current noise intensity. The accumulated value of each amplitude difference corresponding to the pre-stored noise amplitude spectrum; the noise environment judgment unit 906 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.

在可选的实施方式中,图13中的噪音幅值谱存储模块901预存了至少一种噪声幅值谱,每一种噪音幅值谱对应一种预定噪音环境,所述噪音幅值谱包括其所对应的预定噪音环境下多个预设频点上的噪音幅值;噪音强度计算单元902、噪音强度等级判断单元903、噪声幅值谱计算单元904和噪音幅值差计算单元905的作用与上述实施例中相同;噪音环境判断单元906用于当任一个累加值小于或等于预设值时,将该累加值所对应的预定噪音环境确定为当前噪音环境所属的预定噪音环境。In an optional embodiment, the noise amplitude spectrum storage module 901 in FIG. 13 pre-stores at least one noise amplitude spectrum, each noise amplitude spectrum corresponds to a predetermined noise environment, and the noise amplitude spectrum includes Noise amplitudes at multiple preset frequency points in the corresponding predetermined noise environment; the functions 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 The same as in the above embodiment; the noise environment determination unit 906 is configured to determine the predetermined noise environment corresponding to the accumulated value as the predetermined noise environment to which the current noise environment belongs when any accumulated value is less than or equal to the preset value.

在可选的实施方式中,预设噪音强度等级可包括弱噪音、中噪音和强噪音,弱噪音为噪音强度小于60dB,中噪音为噪音强度大于等于60dB且小于80dB,强噪音为噪音强度大于等于80dB且小于100dB。In an optional embodiment, the preset noise intensity levels may include weak noise, medium noise, and strong noise, where weak noise is when the noise intensity is less than 60 dB, medium noise is when the noise intensity is greater than or equal to 60 dB and less than 80 dB, and strong noise is when the noise intensity is greater than or equal to 60 dB. Equal to 80dB and less than 100dB.

在可选的实施方式中,降噪模块70中可包括深度降噪单元,深度降噪单元用于采用深度降噪算法(DNS)对当前上行音频信号进行降噪处理。In an optional 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 uplink audio signal by using a deep noise reduction algorithm (DNS).

在可选的实施方式中,降噪模块70还可包括降噪强度调整单元,用于根据环境噪音调整降噪强度。In an optional embodiment, the noise reduction module 70 may further include a noise reduction intensity adjustment unit, configured to adjust the noise reduction intensity according to ambient noise.

在可选的实施方式中,语音补偿谱选择模块60还可用于在蓝牙耳机使用过程中,若用户未进行通话,蓝牙耳机未检测到上行音频信号时,判断噪音环境是否属于预定噪音环境中的一种,如果是,则更新所述噪音环境所对应的预定噪音环境下的语音补偿谱作为当前语音补偿谱。In an optional embodiment, the voice compensation spectrum selection module 60 can also be used to determine whether the noise environment belongs to a predetermined noise environment if the user does not make a call and the Bluetooth headset does not detect an uplink audio signal during the use of the Bluetooth headset. One, if yes, update the speech compensation spectrum in the predetermined noise environment corresponding to the noise environment as the current speech compensation spectrum.

本实施例还公开了一种蓝牙耳机,该蓝牙耳机采用上述任意实施例公开的一种用于蓝牙耳机的语音补偿方法,或者,包括上述任意实施例公开的一种用于蓝牙耳机的语音补偿装置。This embodiment also discloses a Bluetooth headset, which adopts a voice compensation method for a Bluetooth headset disclosed in any of the foregoing embodiments, or includes a voice compensation method for a Bluetooth headset disclosed in any of the foregoing embodiments device.

本实施例还公开了一种计算机可读存储介质,其上存储有计算机程序,存储介质中存储的计算机程序被执行时能够实现上述任意实施例公开的一种用于蓝牙耳机的语音补偿方法。This 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, a voice compensation method for a Bluetooth headset disclosed in any of the foregoing embodiments can be implemented.

本实施例还公开了一种音频处理芯片,包括处理器和存储器,存储器内存储有计算机程序,处理器能够执行上述任意实施例公开的用于蓝牙耳机的语音补偿方法完成语音补偿功能。This embodiment also discloses an audio processing chip, including a processor and a memory, the memory stores a computer program, and the processor can execute the voice compensation method for a Bluetooth headset disclosed in any of the above embodiments to complete the voice compensation function.

依据本发明实施例公开的一用于蓝牙耳机的语音补偿方法,针对工作在预定噪音环境下的情况,通过预先存储预定噪音环境对应的语音补偿谱,如果当前的噪声环境是预定噪音环境中的一种,则选用这个预定噪音环境的语音补偿谱对当前降噪语音信号在多个预设频点上进行精准的语音补偿,算法非常简单,同时语音补偿效果非常好,大幅提升了通话质量。According to a voice compensation method for a Bluetooth headset disclosed in an embodiment of the present invention, for the case of working in a predetermined noise environment, the voice compensation spectrum corresponding to the predetermined noise environment is stored in advance, if the current noise environment is in the predetermined noise environment. One is to use the voice compensation spectrum of the predetermined noise environment to perform accurate voice compensation on the current noise reduction voice signal at multiple preset frequency points. The algorithm is very simple, and the voice compensation effect is very good, which greatly improves the call quality.

需要说明的是,本发明中采用步骤编号(字母或数字编号)来指代某些具体的方法步骤,仅仅是出于描述方便和简洁的目的,而绝不是用字母或数字来限制这些方法步骤的顺序。本领域的技术人员能够明了,相关方法步骤的顺序,应由技术本身决定,不应因步骤编号的存在而被不适当地限制。It should be noted that, in the present invention, step numbers (letters or numbers) are used to refer to some specific method steps, which are only for the purpose of convenience and brevity of description, and are not intended to limit these method steps with letters or numbers. Order. Those skilled in the art can understand that the sequence of related method steps should be determined by the technology itself, and should not be unduly limited due to the existence of step numbers.

本领域的技术人员能够理解的是,在不冲突的前提下,上述各优选方案可以自由地组合、叠加。Those skilled in the art can understand that, under the premise of no conflict, the above preferred solutions can be freely combined and superimposed.

应当理解,上述的实施方式仅是示例性的,而非限制性的,在不偏离本发明的基本原理的情况下,本领域的技术人员可以针对上述细节做出的各种明显的或等同的修改或替换,都将包含于本发明的权利要求范围内。It should be understood that the above-mentioned embodiments are only exemplary rather than restrictive, and those skilled in the art can make various obvious or equivalent to the above-mentioned details without departing from the basic principles of the present invention. Modifications or substitutions will be included within the scope of the claims of the present 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.
CN202210275972.6A 2022-03-21 2022-03-21 Voice compensation method and device for Bluetooth headset Active CN115188392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210275972.6A CN115188392B (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 CN115188392B (en) 2022-03-21 2022-03-21 Voice compensation method and device for Bluetooth headset

Publications (2)

Publication Number Publication Date
CN115188392A true CN115188392A (en) 2022-10-14
CN115188392B CN115188392B (en) 2025-01-10

Family

ID=83511692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210275972.6A Active CN115188392B (en) 2022-03-21 2022-03-21 Voice compensation method and device for Bluetooth headset

Country Status (1)

Country Link
CN (1) CN115188392B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119110223A (en) * 2024-11-11 2024-12-10 东莞市金文华数码科技有限公司 Intelligent compensation control method and related device for audio signal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602155A (en) * 2015-01-14 2015-05-06 中山市天键电声有限公司 Wireless noise reduction earphone based on intelligent mobile terminal
WO2017000771A1 (en) * 2015-06-30 2017-01-05 芋头科技(杭州)有限公司 System for cancelling environment noise and application method thereof
CN110797041A (en) * 2019-10-21 2020-02-14 珠海市杰理科技股份有限公司 Voice noise reduction processing method and device, computer equipment and storage medium
CN112669864A (en) * 2019-10-15 2021-04-16 北京知存科技有限公司 Intelligent voice noise reduction device based on storage and calculation integration, voice input equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602155A (en) * 2015-01-14 2015-05-06 中山市天键电声有限公司 Wireless noise reduction earphone based on intelligent mobile terminal
WO2017000771A1 (en) * 2015-06-30 2017-01-05 芋头科技(杭州)有限公司 System for cancelling environment noise and application method thereof
CN112669864A (en) * 2019-10-15 2021-04-16 北京知存科技有限公司 Intelligent voice noise reduction device based on storage and calculation integration, voice input equipment and system
CN110797041A (en) * 2019-10-21 2020-02-14 珠海市杰理科技股份有限公司 Voice noise reduction processing method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119110223A (en) * 2024-11-11 2024-12-10 东莞市金文华数码科技有限公司 Intelligent compensation control method and related device for audio signal
CN119110223B (en) * 2024-11-11 2025-02-11 东莞市金文华数码科技有限公司 Intelligent compensation control method and related device for audio signals

Also Published As

Publication number Publication date
CN115188392B (en) 2025-01-10

Similar Documents

Publication Publication Date Title
WO2022008862A1 (en) Methods and apparatus for biometric processes
NL2007764C2 (en) Intelligibility control using ambient noise detection.
JP5265056B2 (en) Noise suppressor
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
US20230352038A1 (en) Voice activation detecting method of earphones, earphones and storage medium
CN111508510B (en) Audio processing method and device, storage medium and electronic equipment
US8903097B2 (en) Information processing device and method and program
CN109686378B (en) Voice processing method and terminal
US20110125494A1 (en) Speech Intelligibility
US20150334215A1 (en) Far-end sound quality indication for telephone devices
US9699554B1 (en) Adaptive signal equalization
JP2012529868A (en) System, method, apparatus, and computer-readable medium for phase-based processing of multi-channel signals
US8321215B2 (en) Method and apparatus for improving intelligibility of audible speech represented by a speech signal
CN112911441A (en) Noise reduction method, apparatus, audio device, and computer-readable storage medium
US9185506B1 (en) Comfort noise generation based on noise estimation
CN113164102B (en) Method, device and system for compensating hearing test
US20110125492A1 (en) Speech Intelligibility
US20140341386A1 (en) Noise reduction
CN104409081A (en) Speech signal processing method and device
KR101715198B1 (en) Speech Reinforcement Method Using Selective Power Budget
CN115188392A (en) Voice compensation method and device for bluetooth headset
CN111669682A (en) Method for optimizing sound quality of loudspeaker equipment
US10157627B1 (en) Dynamic spectral filtering
CN111863006A (en) Audio signal processing method, audio signal processing device and earphone
CN113067944B (en) Call volume adjusting method, device, terminal and storage medium

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.

GR01 Patent grant
GR01 Patent grant