[go: up one dir, main page]

CN101751925B - Tone decoding method and device - Google Patents

Tone decoding method and device Download PDF

Info

Publication number
CN101751925B
CN101751925B CN2008102198562A CN200810219856A CN101751925B CN 101751925 B CN101751925 B CN 101751925B CN 2008102198562 A CN2008102198562 A CN 2008102198562A CN 200810219856 A CN200810219856 A CN 200810219856A CN 101751925 B CN101751925 B CN 101751925B
Authority
CN
China
Prior art keywords
frame
present frame
frequency band
low
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.)
Active
Application number
CN2008102198562A
Other languages
Chinese (zh)
Other versions
CN101751925A (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008102198562A priority Critical patent/CN101751925B/en
Publication of CN101751925A publication Critical patent/CN101751925A/en
Application granted granted Critical
Publication of CN101751925B publication Critical patent/CN101751925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

本发明公开了一种语音解码方法及装置,该方法包括利用为窄频带的当前帧的低频带频谱生成当前帧的高频带频谱;根据一定的判断条件判断该窄带帧是否需要修正,需要修正时,修正该窄带帧的高频带频谱;将根据判断结果进行处理后的当前帧从频域信号变换为时域信号;利用当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减后,输出当前帧的时域信号。相应的,本发明还公开了一种语音解码装置,包括扩展单元、第一修正处理单元、变换单元和衰减单元。本发明实施例通过一种语音解码方法及装置,很好地解决了因不同带宽的语音信号导致听觉上不舒适的问题,提高了语音信号的听觉质量。

Figure 200810219856

The invention discloses a speech decoding method and device. The method includes generating the high frequency spectrum of the current frame by using the low frequency spectrum of the current frame which is a narrow frequency band; judging whether the narrowband frame needs to be corrected according to certain judgment conditions, and needs to be corrected , correct the high frequency spectrum of the narrowband frame; convert the current frame processed according to the judgment result from the frequency domain signal to the time domain signal; use the attenuation factor of the current frame After attenuation, the time domain signal of the current frame is output. Correspondingly, the present invention also discloses a voice decoding device, which includes an expansion unit, a first modification processing unit, a conversion unit and an attenuation unit. The embodiments of the present invention use a voice decoding method and device to well solve the problem of hearing discomfort caused by voice signals with different bandwidths, and improve the auditory quality of the voice signals.

Figure 200810219856

Description

一种语音解码方法及装置A voice decoding method and device

技术领域 technical field

本发明涉及通信技术,尤其涉及一种语音解码方法及装置。The invention relates to communication technology, in particular to a voice decoding method and device.

背景技术 Background technique

针对目前的多速率语音频编解码算法,编码后的码流在网络传输过程中,由于网络状态的不同,网络会对从编码端传输到网络的码流做不同长度的截断。在解码端,解码器就会根据截断后的码流解码出不同带宽或码率的语音频信号,这样就使得接收到的语音频信号会在不同带宽间切换。For the current multi-rate voice and audio encoding and decoding algorithm, during the network transmission process of the coded code stream, due to the different network status, the network will truncate the code stream transmitted from the coder to the network with different lengths. At the decoding end, the decoder will decode voice and audio signals with different bandwidths or bit rates according to the truncated code stream, so that the received voice and audio signals will switch between different bandwidths.

由于解码器中的滤波器状态参数和前后语音频信号之间的联系,带宽切换时,会造成滤波器状态参数不连续,如果不及时地做一些适当的处理,则在带宽切换过程中会出现一些能量激变的现象,从而造成听觉质量变差;而且,当连续信号中出现不同的频带宽度时,也会造成不舒服的听觉效果。Due to the relationship between the filter state parameters in the decoder and the front and rear voice and audio signals, when the bandwidth is switched, the filter state parameters will be discontinuous. If some appropriate processing is not done in time, there will be Some phenomena of sudden changes in energy will cause the quality of hearing to deteriorate; moreover, when different frequency bandwidths appear in continuous signals, it will also cause uncomfortable hearing effects.

现有技术中存在一种频带扩展(Bandwidth Extension,BWE)技术,其将窄频带信号扩展到宽频带信号的方式为:其将当前帧的低频带频谱复制到高频带,然后通过一些参数修正当前帧的低频带频谱,从而使低频带频谱能量更符合高频带频谱的能量。目前,频带扩展技术中,一般地从当前帧的低频信息中获取一些参数信息或从编码端传输少量的当前帧的高频带参数到解码端,来恢复出当前帧的高频带部分的信号。然而,当宽频带语音信号向为窄频带语音信号切换时,为窄频带语音信号的当前帧,其高频部分没有任何信息,现有的频带扩展技术则不能很好地解决上述因不同带宽的语音信号带来的问题。There is a Bandwidth Extension (BWE) technology in the prior art, which extends the narrow-band signal to the wide-band signal in the following way: it copies the low-band spectrum of the current frame to the high-band, and then corrects it through some parameters The low-band spectrum of the current frame, so that the energy of the low-band spectrum is more in line with the energy of the high-band spectrum. At present, in the frequency band extension technology, generally some parameter information is obtained from the low frequency information of the current frame or a small amount of high frequency band parameters of the current frame are transmitted from the encoding end to the decoding end to restore the signal of the high frequency band part of the current frame . However, when the wideband speech signal is switched to a narrowband speech signal, the current frame of the narrowband speech signal does not have any information in the high frequency part, and the existing frequency band extension technology cannot well solve the above problems caused by different bandwidths. Problems with voice signals.

发明内容 Contents of the invention

本发明实施例提供一种语音解码方法及装置,其能够提高语音信号的听觉质量,避免语言信号解码时,不同带宽的语音信号带来的听觉不舒服的问题。Embodiments of the present invention provide a voice decoding method and device, which can improve the auditory quality of voice signals and avoid the problem of hearing discomfort caused by voice signals with different bandwidths when decoding voice signals.

为此,本发明实施例提供了一种语音解码方法,包括:For this reason, the embodiment of the present invention provides a kind of speech decoding method, comprising:

利用为窄频带的当前帧的低频带频谱生成所述当前帧的高频带频谱;generating the high frequency spectrum of the current frame by using the low frequency spectrum of the current frame which is a narrow frequency band;

根据所述当前帧的低频带信息和相对于所述当前帧的前一帧的频带信息,判断所述当前帧是否需要修正,如果判断结果为是,则利用修正因子对所述当前帧的高频带频谱进行修正,如果判断结果为否,则对所述当前帧不进行修正;According to the low frequency band information of the current frame and the frequency band information of the previous frame relative to the current frame, it is judged whether the current frame needs to be corrected. The frequency band spectrum is corrected, and if the judgment result is no, the current frame is not corrected;

将根据所述判断结果进行处理后的所述当前帧从频域信号变换为时域信号;converting the current frame processed according to the judgment result from a frequency domain signal to a time domain signal;

利用所述当前帧的衰减因子对所述当前帧时域信号的高频时域信号进行衰减后,输出所述当前帧的时域信号。After attenuating the high-frequency time-domain signal of the time-domain signal of the current frame by using the attenuation factor of the current frame, the time-domain signal of the current frame is output.

相应地,本发明实施例还提供了一种语音解码装置,包括:Correspondingly, the embodiment of the present invention also provides a speech decoding device, including:

扩展单元,用于利用为窄频带的当前帧的低频带频谱生成所述当前帧的高频带频谱;an extension unit, configured to generate the high frequency spectrum of the current frame by using the low frequency frequency spectrum of the current frame which is a narrow frequency band;

第一修正处理单元,用于根据所述当前帧的低频带信息和相对于所述当前帧的前一帧的频带信息,判断所述当前帧是否需要修正,当判断结果为是时,利用修正因子对所述当前帧的高频带频谱进行修正,当判断结果为否时,对所述当前帧不进行修正;The first correction processing unit is used to judge whether the current frame needs to be corrected according to the low frequency band information of the current frame and the frequency band information of the previous frame relative to the current frame, and when the judgment result is yes, use the correction Correcting the high-frequency spectrum of the current frame by a factor, and not performing correction on the current frame when the judgment result is negative;

变换单元,用于将根据所述判断结果进行处理后的当前帧从频域信号变换为时域信号;A transformation unit, configured to transform the current frame processed according to the judgment result from a frequency-domain signal to a time-domain signal;

衰减单元,用于利用所述当前帧的衰减因子对所述当前帧时域信号的高频时域信号进行衰减后,输出所述当前帧的时域信号。The attenuation unit is configured to use the attenuation factor of the current frame to attenuate the high-frequency time-domain signal of the time-domain signal of the current frame, and then output the time-domain signal of the current frame.

本发明实施例利用窄频带帧的低频带频谱生成该窄频带帧的高频带频谱,并根据一定的判断条件判断该窄频带帧是否需要修正,需要修正时,修正该窄频带帧的高频带频谱,使得将语音信号中的窄频带帧扩展为有效的宽频带帧,很好地解决了因不同带宽的语音信号导致听觉上不舒适的问题,提高了语音信号的听觉质量。The embodiment of the present invention utilizes the low-band spectrum of the narrow-band frame to generate the high-band spectrum of the narrow-band frame, and judges whether the narrow-band frame needs to be corrected according to certain judgment conditions. The band spectrum enables the narrow-band frame in the voice signal to be expanded into an effective wide-band frame, which solves the problem of auditory discomfort caused by voice signals of different bandwidths and improves the auditory quality of the voice signal.

附图说明 Description of drawings

图1是本发明实施例一的一种语音解码方法的流程示意图;Fig. 1 is a schematic flow chart of a speech decoding method according to Embodiment 1 of the present invention;

图2是本发明实施例二的一种语音解码方法的流程示意图;Fig. 2 is a schematic flow chart of a speech decoding method according to Embodiment 2 of the present invention;

图3是本发明实施例的语音解码方法中确定当前帧的衰减因子的流程示意图;Fig. 3 is a schematic flow chart of determining the attenuation factor of the current frame in the speech decoding method of the embodiment of the present invention;

图4是本发明实施例三的一种语音解码方法的流程示意图;4 is a schematic flow chart of a speech decoding method according to Embodiment 3 of the present invention;

图5是本发明实施例四的一种语音解码装置的结构示意图;FIG. 5 is a schematic structural diagram of a speech decoding device according to Embodiment 4 of the present invention;

图6是图5的语音解码装置中的第一修正处理单元的结构示意图;Fig. 6 is a schematic structural diagram of a first correction processing unit in the speech decoding device of Fig. 5;

图7是本发明实施例五的一种语音解码装置的结构示意图。FIG. 7 is a schematic structural diagram of a speech decoding device according to Embodiment 5 of the present invention.

具体实施方式 Detailed ways

本发明实施例提出的一种语音解码方法及装置,其能够提高语音信号的听觉质量,避免语言信号解码时,不同带宽的语音信号带来的听觉不舒服的问题。The speech decoding method and device proposed by the embodiments of the present invention can improve the auditory quality of the speech signal, and avoid the problem of hearing discomfort caused by the speech signals of different bandwidths when the speech signal is decoded.

下面将结合附图,以具体实施例的方式详细阐述本发明实施例的技术方案。The technical solutions of the embodiments of the present invention will be described in detail below in the form of specific embodiments in conjunction with the accompanying drawings.

图1是本发明实施例一的一种语音解码方法的流程图。如图1所示,该方法包括:FIG. 1 is a flowchart of a speech decoding method according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes:

步骤S101、根据为窄频带的当前帧的低频带频谱生成该当前帧的高频带频谱。Step S101, generating a high frequency spectrum of the current frame according to the low frequency frequency spectrum of the current frame which is a narrow frequency band.

步骤S102、根据当前帧的低频带信息和相对于该当前帧的前一帧的频带信息判断该当前帧是否需要修正。如果判断结果为是,则执行步骤S103后再执行步骤S104。如果判断结果为否,则执行步骤S104。Step S102 , judging whether the current frame needs to be corrected according to the low frequency band information of the current frame and the frequency band information of a previous frame relative to the current frame. If the judgment result is yes, execute step S103 and then execute step S104. If the judgment result is no, execute step S104.

在本实施例中,设置前一帧模式位和当前帧模式位,为前一帧模式位设置一个初始值。具体地,根据前一帧模式位的值、当前帧的低频带信息和相对于该当前帧的前一帧的频带信息,确定当前帧模式位的值;然后根据当前帧模式位的值判断当前帧是否需要修正。In this embodiment, the previous frame mode bit and the current frame mode bit are set, and an initial value is set for the previous frame mode bit. Specifically, determine the value of the mode bit of the current frame according to the value of the mode bit of the previous frame, the low frequency band information of the current frame, and the frequency band information of the previous frame relative to the current frame; Whether the frame needs to be corrected.

步骤S103、利用修正因子对当前帧的高频带频谱进行修正。Step S103 , correcting the high frequency spectrum of the current frame by using the correction factor.

例如,通过将当前帧的高频带频谱与修正因子相乘,来对当前帧的高频带频谱进行修正。For example, the high-band spectrum of the current frame is corrected by multiplying the high-band spectrum of the current frame by a correction factor.

在本实施例中,该修正因子的值具体为当前帧的低频带频谱的平均能量值;或者为生成的当前帧的高频带频谱能量与低频带频谱能量的比值再乘以一个小数,使得该修正因子的值小于1,继而使得当前帧的高频带频谱能量值小于其低频带频谱能量值一定的倍数,可选地,使得当前帧的高频带频谱能量值小于其低频带频谱能量值的0.8倍。In this embodiment, the value of the correction factor is specifically the average energy value of the low-band spectrum of the current frame; or the ratio of the generated current frame's high-band spectrum energy to the low-band spectrum energy multiplied by a decimal, so that The value of the correction factor is less than 1, so that the high frequency spectrum energy value of the current frame is less than a certain multiple of its low frequency spectrum energy value, optionally, the high frequency spectrum energy value of the current frame is less than its low frequency spectrum energy value 0.8 times the value.

例如,计算一帧信号的高频带频谱能量值的方式有:该帧的高频带频谱系数的平方和的均值即为该帧的高频带频谱能量值;For example, the way to calculate the high-band spectral energy value of a frame signal is: the mean value of the sum of the squares of the high-frequency spectral coefficients of the frame is the high-frequency spectral energy value of the frame;

同理,计算一帧信号的低频带频谱能量值的方式有:该帧的低频带频谱系数的平方和的均值即为该帧的低频带频谱能量值;Similarly, the way to calculate the low-band spectral energy value of a frame signal is: the mean value of the sum of the squares of the low-band spectral coefficients of the frame is the low-band spectral energy value of the frame;

将一帧信号的高频带频谱能量值与该帧的低频带频谱能量值相比所得到的值,即为该帧的高频带频谱能量与低频带频谱能量的比值。The value obtained by comparing the high frequency spectral energy value of a frame signal with the low frequency spectral energy value of the frame is the ratio of the high frequency spectral energy to the low frequency spectral energy of the frame.

步骤S104、将当前帧从频域信号变换为时域信号。Step S104, converting the current frame from a frequency domain signal to a time domain signal.

步骤S105、利用当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减。Step S105 , using the attenuation factor of the current frame to attenuate the high-frequency time-domain signal of the time-domain signal of the current frame.

在本实施例中,当前帧的衰减因子根据当前帧的帧类型信息、相对于该当前帧的前一帧的帧类型信息及其衰减因子来确定;对于该当前帧后的每一帧,该帧的衰减因子根据该帧的帧类型信息、相对于该帧的前一帧的帧类型信息及其衰减因子来确定。实施时,将确定出的当前帧的衰减因子与当前帧时域信号的高频时域信号相乘。其中,所述帧类型信息为宽频带帧或窄频带帧。具体实施方式详见图3。In this embodiment, the attenuation factor of the current frame is determined according to the frame type information of the current frame, the frame type information of the previous frame relative to the current frame and its attenuation factor; for each frame after the current frame, the The attenuation factor of a frame is determined according to the frame type information of the frame, the frame type information of a previous frame relative to the frame and its attenuation factor. During implementation, the determined attenuation factor of the current frame is multiplied by the high-frequency time-domain signal of the time-domain signal of the current frame. Wherein, the frame type information is a wideband frame or a narrowband frame. The specific implementation mode is shown in Fig. 3 for details.

步骤S106、输出当前帧的时域信号。此处,当前帧的时域信号包括其高频时域信号和低频时域信号。Step S106, outputting the time domain signal of the current frame. Here, the time-domain signal of the current frame includes its high-frequency time-domain signal and low-frequency time-domain signal.

本实施例在语音解码时,且没有为窄频带的当前帧信号的高频部分的任何信息时,避免了由于不同带宽的语音信号之间切换造成的滤波器状态不连续,从而导致的能量激变现象,使得解码出来的连续的语音信号在听觉上更加舒适,提高了主观音质和听觉质量。This embodiment avoids the discontinuity of the filter state caused by the switching between speech signals of different bandwidths, resulting in an energy shock The phenomenon makes the decoded continuous speech signal more comfortable in hearing, and improves the subjective sound quality and auditory quality.

图2是本发明实施例二的一种语音解码方法的流程示意图。如图2所示,对接收到的连续的语音信号进行解码,该方法包括:FIG. 2 is a schematic flowchart of a speech decoding method according to Embodiment 2 of the present invention. As shown in Figure 2, the received continuous speech signal is decoded, the method includes:

步骤S201、判断当前帧是宽频带帧还是窄频带帧。如果当前帧是宽频带帧,则执行步骤S211。如果当前帧是窄频带帧,则执行步骤S202。Step S201, judging whether the current frame is a wideband frame or a narrowband frame. If the current frame is a broadband frame, execute step S211. If the current frame is a narrowband frame, execute step S202.

步骤S202、将当前帧的归一化的低频带频谱乘以相对于该当前帧的前一帧的高频带频域包络复制到高频,生成当前帧的高频带频谱,将当前帧由窄频带帧扩展为宽频带帧。Step S202, multiply the normalized low-band spectrum of the current frame by the high-band frequency domain envelope of the previous frame relative to the current frame and copy it to the high frequency, generate the high-band spectrum of the current frame, and convert the current frame Extend from narrowband frame to wideband frame.

步骤S203、判断相对于该当前帧的前一帧,其原始帧是宽频带帧还是窄频带帧。如果该前一帧的原始帧是宽频带帧,则执行步骤S204后再执行步骤S206。如果该前一帧的原始帧是窄频带帧,则执行步骤S205后再执行步骤S207。Step S203 , judging whether the original frame relative to the previous frame of the current frame is a wideband frame or a narrowband frame. If the original frame of the previous frame is a broadband frame, step S204 is executed and then step S206 is executed. If the original frame of the previous frame is a narrowband frame, step S205 is executed and then step S207 is executed.

步骤S204、根据前一帧的频带信息,计算前一帧的低频带频谱能量值,高频带频谱能量值,和该前一帧的高频带频谱与低频带频谱的能量比值,以及根据当前帧的低频带信息,计算当前帧的低频带频谱能量值,和根据生成的当前帧的高频带信息,计算当前帧的高频带频谱能量值,并计算该当前帧的高频带频谱与低频带频谱的能量比值。Step S204, according to the frequency band information of the previous frame, calculate the energy value of the low frequency band spectrum of the previous frame, the energy value of the high frequency band spectrum, and the energy ratio of the high frequency band spectrum and the low frequency band spectrum of the previous frame, and according to the current The low frequency band information of the frame is used to calculate the low frequency band spectrum energy value of the current frame, and according to the generated high frequency band information of the current frame, the high frequency band spectrum energy value of the current frame is calculated, and the high frequency band spectrum energy value of the current frame is calculated. The energy ratio of the low-band spectrum.

其中,由于当前帧的高频带频谱是通过利用相对于该帧的前一帧的高频带频域包络和复制该当前帧的低频带频谱生成,因此,上述根据生成的当前帧的高频带信息,计算当前帧的高频带频谱能量值,是指根据该当前帧的低频带频谱的能量值和相对于该帧的前一帧高频带频域包络值,计算当前帧的高频带频谱能量值。Wherein, since the high-band spectrum of the current frame is generated by using the high-band frequency envelope of the previous frame relative to the frame and copying the low-band spectrum of the current frame, the above-mentioned high Frequency band information, calculating the energy value of the high frequency band spectrum of the current frame refers to calculating the energy value of the current frame based on the energy value of the low frequency band spectrum of the current frame and the high frequency domain envelope value of the previous frame relative to the frame High frequency band spectral energy value.

在本实施例中,将前一帧的低频带频谱的能量记为Ep1_L,高频带频谱的能量记为Ep1_H,该前一帧的高频带频谱与低频带频谱的能量比记为Egain1;将当前帧的低频带频谱的能量记为Ec2_L,高频带频谱的能量记为Ec2_H,该当前帧的高频带频谱与低频带频谱的能量比记为Egain2In this embodiment, the energy of the low-band spectrum of the previous frame is denoted as E p1_L , the energy of the high-band spectrum is denoted as E p1_H , and the energy ratio of the high-band spectrum and low-band spectrum of the previous frame is denoted as E gain1 ; record the energy of the low-band spectrum of the current frame as E c2_L , the energy of the high-band spectrum as E c2_H , and the energy ratio of the high-band spectrum and the low-band spectrum of the current frame as E gain2 .

在本实施例中,计算一帧信号的低频带频谱能量值、高频带频谱能量值、以及一帧信号的高频带频谱能量与低频带频谱能量的比值的方式,与实施例一的步骤S103中所述的实施方式相同,因此,这里不再赘述。In this embodiment, the method of calculating the low frequency band spectral energy value, the high frequency band spectral energy value of a frame signal, and the ratio of the high frequency band spectral energy to the low frequency band spectral energy of a frame signal is the same as the steps in the first embodiment The implementation manner described in S103 is the same, so details are not repeated here.

步骤S205、根据前一帧的低频带信息,计算前一帧的低频带频谱能量Ep1_L的值,以及根据当前帧的低频带信息,计算当前帧的低频带频谱能量Ec2_L的值。Step S205 : Calculate the value of the low-band spectrum energy E p1_L of the previous frame according to the low-band information of the previous frame, and calculate the value of the low-band spectrum energy E c2_L of the current frame according to the low-band information of the current frame.

步骤S206、根据前一帧模式位的初始值,以及步骤S204中计算出的前一帧的低频带频谱能量Ep1_L的值,和前一帧的高频带频谱与低频带频谱的能量比Egain1的值,以及当前帧的低频带频谱能量Ec2_L的值,和当前帧的高频带频谱与低频带频谱的能量比Egain2的值,确定当前帧模式位的值。Step S206, according to the initial value of the mode bit of the previous frame, and the value of the low-band spectrum energy E p1_L of the previous frame calculated in step S204, and the energy ratio E of the high-band spectrum and the low-band spectrum of the previous frame The value of gain1 , the value of the low-band spectrum energy E c2_L of the current frame, and the value of the energy ratio E gain2 of the high-band spectrum and the low-band spectrum of the current frame determine the value of the mode bit of the current frame.

在本实施例中,将前一帧模式位记为prev_mode,初始值为0,将当前帧模式位记为mode。该步骤具体为:In this embodiment, the previous frame mode bit is recorded as prev_mode with an initial value of 0, and the current frame mode bit is recorded as mode. The steps are specifically:

如果当前帧同时满足以下三个条件,则将mode置成1,该三个条件具体为:If the current frame satisfies the following three conditions at the same time, set mode to 1. The three conditions are:

1、prev_mode=0;1. prev_mode=0;

2、前一帧的高频带频谱和低频带频谱的能量比Egain1小于当前帧的高频带频谱和低频带频谱的能量比Egain22. The energy ratio E gain1 of the high frequency spectrum and the low frequency spectrum of the previous frame is smaller than the energy ratio E gain2 of the high frequency spectrum and the low frequency spectrum of the current frame;

3、前一帧的低频带频谱能量Ep1_L大于当前帧的低频带频谱能量Ec2_L一定的倍数α,在本实施例中,α一般为1.6以上。3. The low-band spectrum energy E p1_L of the previous frame is greater than the low-band spectrum energy E c2_L of the current frame by a certain multiple α. In this embodiment, α is generally above 1.6.

步骤S207、根据前一帧模式位的值,以及步骤S205中计算出的前一帧的低频带频谱能量Ep1_L的值,以及当前帧的低频带频谱能量Ec2_L的值,确定当前帧模式位的值。Step S207, according to the value of the previous frame mode bit, and the value of the low-band spectral energy E p1_L of the previous frame calculated in step S205, and the value of the low-band spectral energy E c2_L of the current frame, determine the current frame mode bit value.

在本实施例中,将前一帧模式位记为prev_mode,将当前帧模式位记为mode。该步骤具体为:In this embodiment, the mode bit of the previous frame is recorded as prev_mode, and the mode bit of the current frame is recorded as mode. The steps are specifically:

如果该帧同时满足以下两个条件,则将mode位置成0,这两个条件具体为:If the frame meets the following two conditions at the same time, the mode position is set to 0. The two conditions are:

1、prev_mode=1;1. prev_mode=1;

2、当前帧的低频带频谱能量Ec2_L大于前一帧的低频带频谱能量Ep1_L一定的倍数δ,在本实施例中,δ一般为1.6以上。2. The low-frequency spectral energy E c2_L of the current frame is greater than the low-frequency spectral energy E p1_L of the previous frame by a certain multiple δ. In this embodiment, δ is generally above 1.6.

步骤S208、判断当前帧模式位的值是否为1。如果该值为1,则判断为需要对当前帧进行修正,执行步骤S210后再执行步骤S211。如果该值为0,则判断为不需要对当前帧进行修正,直接执行步骤S211。Step S208, judging whether the value of the mode bit of the current frame is 1. If the value is 1, it is determined that the current frame needs to be corrected, step S210 is executed and then step S211 is executed. If the value is 0, it is determined that the current frame does not need to be corrected, and step S211 is directly executed.

步骤S209、将当前帧模式位的值赋给前一帧模式位,用来对步骤S207中的前一帧模式位的值进行更新。Step S209, assigning the value of the mode bit of the current frame to the mode bit of the previous frame to update the value of the mode bit of the previous frame in step S207.

步骤S210、利用修正因子对当前帧的高频带频谱进行修正,使其能量和真实的高频带频谱能量更接近。Step S210, using a correction factor to correct the high frequency spectrum of the current frame, so that its energy is closer to the real high frequency spectrum energy.

例如,通过将当前帧的高频带频谱与修正因子相乘,来对当前帧的高频带频谱进行修正。For example, the high-band spectrum of the current frame is corrected by multiplying the high-band spectrum of the current frame by a correction factor.

在本实施例中,该修正因子的值具体为当前帧的低频带频谱的平均能量值;或者为生成的当前帧的高频带频谱能量与低频带频谱能量的比值再乘以一个小数,使得该修正因子的值小于1,继而使得当前帧的高频带频谱能量值小于其低频带频谱能量值一定的倍数,可选地,使得当前帧的高频带频谱能量值小于其低频带频谱能量值的0.8倍。In this embodiment, the value of the correction factor is specifically the average energy value of the low-band spectrum of the current frame; or the ratio of the generated current frame's high-band spectrum energy to the low-band spectrum energy multiplied by a decimal, so that The value of the correction factor is less than 1, so that the high frequency spectrum energy value of the current frame is less than a certain multiple of its low frequency spectrum energy value, optionally, the high frequency spectrum energy value of the current frame is less than its low frequency spectrum energy value 0.8 times the value.

步骤S211、将当前帧从频域信号变换为时域信号。此处,该当前帧包括其低频时域信号和高频时域信号。Step S211, converting the current frame from a frequency domain signal to a time domain signal. Here, the current frame includes its low-frequency time-domain signal and high-frequency time-domain signal.

步骤S212、利用当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减。Step S212, using the attenuation factor of the current frame to attenuate the high-frequency time-domain signal of the time-domain signal of the current frame.

在本实施例中,当前帧的衰减因子根据当前帧的帧类型信息、相对于该当前帧的前一帧的帧类型信息及其衰减因子来确定;对于该当前帧后的每一帧,该帧的衰减因子根据该帧的帧类型信息、相对于该帧的前一帧的帧类型信息及其衰减因子来确定。实施时,将确定出的当前帧的衰减因子与当前帧时域信号的高频时域信号相乘。其中,所述帧类型信息为宽频带帧或窄频带帧。具体实施方式详见图3。In this embodiment, the attenuation factor of the current frame is determined according to the frame type information of the current frame, the frame type information of the previous frame relative to the current frame and its attenuation factor; for each frame after the current frame, the The attenuation factor of a frame is determined according to the frame type information of the frame, the frame type information of a previous frame relative to the frame and its attenuation factor. During implementation, the determined attenuation factor of the current frame is multiplied by the high-frequency time-domain signal of the time-domain signal of the current frame. Wherein, the frame type information is a wideband frame or a narrowband frame. The specific implementation mode is shown in Fig. 3 for details.

步骤S213、输出当前帧的时域信号。Step S213, outputting the time domain signal of the current frame.

上述描述的代码形式为:The code form of the above description is:

if((prev_mode==0)&&(Egain1<Egain2)&&(α*Ec2_L<Ep1_L))α≥1.6if((prev_mode==0)&&(E gain1 <E gain2 )&&(α*E c2_L <E p1_L ))α≥1.6

              mode=1;mode=1;

if((prev_mode==1)&&(δ*Ep1_L<Ec2_L))δ≥1.6if((prev_mode==1)&&(δ*E p1_L <E c2_L ))δ≥1.6

              mode=0;mode=0;

例如:当第i帧时mode被置成1,则判断为需要对第i帧的高频带频谱进行修正,同时将mode值赋给prev_mode;接着对第i+1帧的mode值进行判断,如果mode还被置成1,则做和第i帧同样的操作;接着对第i+2,i+3...帧的mode值进行判断,直到第i+N帧的mode被置成0,判断为不需要对第i+N帧的高频带频谱进行修正。For example: when the mode is set to 1 in the i-th frame, it is judged that the high-band spectrum of the i-th frame needs to be corrected, and the mode value is assigned to prev_mode at the same time; then the mode value of the i+1th frame is judged, If the mode is still set to 1, do the same operation as the i-th frame; then judge the mode value of the i+2, i+3... frame until the mode of the i+N-th frame is set to 0 , it is determined that it is not necessary to correct the high-band spectrum of the i+Nth frame.

本实施例在语音解码时,且没有为窄频带的当前帧信号的高频部分的任何信息时,避免了由于不同带宽的语音信号之间切换造成的滤波器状态不连续,从而导致的能量激变现象,使得解码出来的连续的语音信号在听觉上更加舒适,提高了主观音质和听觉质量。This embodiment avoids the discontinuity of the filter state caused by the switching between speech signals of different bandwidths, resulting in an energy shock The phenomenon makes the decoded continuous speech signal more comfortable in hearing, and improves the subjective sound quality and auditory quality.

图3是本发明实施例的语音解码方法中确定当前帧的衰减因子的流程示意图。本发明实施例二或三中,可选地,可利用当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减的流程示意图。在本发明实施例中,该衰减因子记为β,初始值为1。如图3所示,确定当前帧的衰减因子包括如下步骤:Fig. 3 is a schematic flowchart of determining an attenuation factor of a current frame in a speech decoding method according to an embodiment of the present invention. In Embodiment 2 or 3 of the present invention, optionally, a schematic flowchart of attenuating the high-frequency time-domain signal of the time-domain signal of the current frame by using the attenuation factor of the current frame. In the embodiment of the present invention, the attenuation factor is denoted as β, and its initial value is 1. As shown in Figure 3, determining the attenuation factor of the current frame includes the following steps:

步骤S301、判断当前帧是宽频带帧还是窄频带帧。如果当前帧是宽频带帧,则执行步骤S302。如果当前帧是窄频带帧,则执行步骤S303。Step S301, judging whether the current frame is a wideband frame or a narrowband frame. If the current frame is a broadband frame, execute step S302. If the current frame is a narrowband frame, execute step S303.

步骤S302、当前帧的衰减因子为1。Step S302, the attenuation factor of the current frame is 1.

步骤S303、判断相对于该当前帧的前一帧,其原始帧是宽频带帧还是窄频带帧。如果该前一帧的原始帧是窄频带帧,则执行步骤S304。如果该前一帧的原始帧是宽频带帧,则执行步骤S305。Step S303 , judging whether the original frame relative to the previous frame of the current frame is a wideband frame or a narrowband frame. If the original frame of the previous frame is a narrowband frame, step S304 is performed. If the original frame of the previous frame is a broadband frame, step S305 is executed.

步骤S304、当前帧的衰减因子为前一帧的衰减因子的平方,即β当前帧=β前一 2Step S304 , the attenuation factor of the current frame is the square of the attenuation factor of the previous frame, that is, β current frame = β previous frame 2 .

步骤S305、当前帧的衰减因子为其初始值与一个小数γ相乘的值。在本实施例中,0.5<γ<0.7。Step S305, the attenuation factor of the current frame is the value obtained by multiplying its initial value by a decimal γ. In this embodiment, 0.5<γ<0.7.

可选地,确定当前帧的衰减因子可在判断出当前帧的帧类型及相对于该当前帧的前一帧的原始帧类型后即可执行,可与在执行步骤S204至步骤S211、或步骤S404至步骤S412的过程中并行执行。可选地,还可以是在执行完步骤S211或步骤S412后进行。确定出当前帧的衰减因子后,执行步骤S212或步骤S413,利用确定出的当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减。具体地,将确定出的当前帧的衰减因子与当前帧时域信号的高频时域信号相乘。Optionally, determining the attenuation factor of the current frame can be performed after judging the frame type of the current frame and the original frame type of the previous frame relative to the current frame, which can be performed in step S204 to step S211, or step The process from S404 to step S412 is executed in parallel. Optionally, it may also be performed after step S211 or step S412 is performed. After the attenuation factor of the current frame is determined, step S212 or step S413 is executed to attenuate the high-frequency time-domain signal of the time-domain signal of the current frame by using the determined attenuation factor of the current frame. Specifically, the determined attenuation factor of the current frame is multiplied by the high-frequency time-domain signal of the time-domain signal of the current frame.

步骤S306、将当前帧时域信号的高频时域信号与当前帧的衰减因子相乘。Step S306: Multiply the high-frequency time-domain signal of the time-domain signal of the current frame by the attenuation factor of the current frame.

本发明实施例中,由于当盲扩出的高频带频谱能量比实际的高频带频谱能量大时,会对语音信号的质量造成很大的影响,因此,当不知道实际的高频带频谱能量时,通过对所述当前帧的高频带时域信号进行衰减,尽量让盲扩的高频带频谱能量小些,可以提高解码出来的语音信号的质量。In the embodiment of the present invention, since when the high-frequency spectrum energy of blind expansion is larger than the actual high-frequency spectrum energy, it will have a great impact on the quality of the voice signal, therefore, when the actual high-frequency spectrum energy is not known In order to reduce the spectrum energy, by attenuating the high-band time-domain signal of the current frame, the blind-spread high-frequency spectrum energy should be reduced as much as possible, so that the quality of the decoded speech signal can be improved.

图4是本发明实施例三的一种语音解码方法的流程示意图。如图4所示,对接收到的连续的语音信号进行解码,该方法包括:FIG. 4 is a schematic flowchart of a voice decoding method according to Embodiment 3 of the present invention. As shown in Figure 4, the continuous speech signal that receives is decoded, and this method comprises:

步骤S401、判断当前帧是宽频带帧还是窄频带帧。如果当前帧是宽频带帧,则执行步骤S411。如果当前帧是窄频带帧,则执行步骤S402。Step S401, judging whether the current frame is a wideband frame or a narrowband frame. If the current frame is a broadband frame, execute step S411. If the current frame is a narrowband frame, execute step S402.

步骤S402、将当前帧的低频带频谱直接复制到高频,生成当前帧的高频带频谱,将当前帧由窄频带帧扩展为宽频带帧。Step S402, directly copy the low-band spectrum of the current frame to the high-frequency, generate the high-band spectrum of the current frame, and expand the current frame from a narrow-band frame to a wide-band frame.

步骤S403、判断相对于该当前帧的前一帧,其原始帧是宽频带帧还是窄频带帧。如果该前一帧的原始帧是宽频带帧,则执行步骤S404后再执行步骤S406。如果该前一帧的原始帧是窄频带帧,则执行步骤S405后再执行步骤S407。Step S403 , judging whether the original frame relative to the previous frame of the current frame is a wideband frame or a narrowband frame. If the original frame of the previous frame is a broadband frame, step S404 is executed and then step S406 is executed. If the original frame of the previous frame is a narrowband frame, step S405 is executed and then step S407 is executed.

步骤S404、根据前一帧的频带信息,计算前一帧的低频带频谱能量值,高频带频谱能量值,以及根据当前帧的低频带信息,计算当前帧的低频带频谱能量值。Step S404. Calculate the low-band spectrum energy value and the high-band spectrum energy value of the previous frame according to the frequency band information of the previous frame, and calculate the low-band spectrum energy value of the current frame according to the low-band information of the current frame.

在本实施例中,将前一帧的低频带频谱的能量记为Ep1_L,高频带频谱的能量记为Ep1_H,将当前帧的低频带频谱的能量记为Ec2_LIn this embodiment, the energy of the low-band spectrum of the previous frame is marked as E p1_L , the energy of the high-band spectrum is marked as E p1_H , and the energy of the low-band spectrum of the current frame is marked as E c2_L .

在本实施例中,计算一帧信号的低频带频谱能量值和高频带频谱能量值的方式,与实施例一的步骤S103中所述的实施方式相同,因此,这里不再赘述。In this embodiment, the manner of calculating the low-band spectrum energy value and the high-band spectrum energy value of a frame signal is the same as the implementation manner described in step S103 of Embodiment 1, so details are not repeated here.

步骤S405、根据前一帧的低频带信息,计算前一帧的低频带频谱能量Ep1_L的值,以及根据当前帧的低频带信息,计算当前帧的低频带频谱能量Ec2_L的值。Step S405. Calculate the value of the low-band spectrum energy E p1_L of the previous frame according to the low-band information of the previous frame, and calculate the value of the low-band spectrum energy E c2_L of the current frame according to the low-band information of the current frame.

步骤S406、根据前一帧模式位的初始值,以及步骤S404中计算出的前一帧的低频带频谱能量Ep1_L的值、高频带频谱能量Ep1_H的值,以及当前帧的低频带频谱能量Ec2_L的值,确定当前帧模式位的值。Step S406, according to the initial value of the mode bit of the previous frame, and the value of the low-band spectrum energy E p1_L of the previous frame calculated in step S404, the value of the high-band spectrum energy E p1_H , and the low-band spectrum of the current frame The value of the energy E c2_L determines the value of the current frame mode bit.

在本实施例中,将前一帧模式位记为prev_mode,初始值为0,将当前帧模式位记为mode。该步骤具体为:In this embodiment, the previous frame mode bit is recorded as prev_mode with an initial value of 0, and the current frame mode bit is recorded as mode. The steps are specifically:

如果当前帧同时满足以下三个条件,则将mode置成1,该三个条件具体为:If the current frame satisfies the following three conditions at the same time, set mode to 1. The three conditions are:

1、prev_mode=0;1. prev_mode=0;

2、前一帧的低频带频谱的能量Ep1_H大于当前帧的低频带频谱的能量Ec2_L一定的倍数α,在本实施例中,α一般为1.6以上;2. The energy E p1_H of the low-frequency spectrum of the previous frame is greater than the energy E c2_L of the low-frequency spectrum of the current frame by a certain multiple α. In this embodiment, α is generally above 1.6;

3、前一帧的高频带频谱的能量Ep1_H大于当前帧的低频带频谱的能量Ec2_L3. The energy E p1_H of the high frequency spectrum of the previous frame is greater than the energy E c2_L of the low frequency spectrum of the current frame.

步骤S407、根据前一帧模式位的值,以及步骤S405中计算出的前一帧的低频带频谱能量Ep1_L的值,以及当前帧的低频带频谱能量Ec2_L的值,确定当前帧模式位的值。Step S407, according to the value of the previous frame mode bit, and the value of the low-band spectral energy E p1_L of the previous frame calculated in step S405, and the value of the low-band spectral energy E c2_L of the current frame, determine the current frame mode bit value.

在本实施例中,将前一帧模式位记为prev_mode,将当前帧模式位记为mode。该步骤具体为:In this embodiment, the mode bit of the previous frame is recorded as prev_mode, and the mode bit of the current frame is recorded as mode. The steps are specifically:

如果该帧同时满足以下两个条件,则将mode位置成0,这两个条件具体为:If the frame meets the following two conditions at the same time, the mode position is set to 0. The two conditions are:

1、prev_mode=1;1. prev_mode=1;

2、当前帧的低频带频谱能量Ec2_L大于前一帧的低频带频谱的能量Ep1_H一定的倍数α,在本实施例中,δ一般为1.6以上。2. The energy E c2_L of the low-frequency spectrum of the current frame is greater than the energy E p1_H of the low-frequency spectrum of the previous frame by a certain multiple α. In this embodiment, δ is generally above 1.6.

步骤S408、判断当前帧模式位的值是否为1。如果该值为1,则判断为需要对当前帧进行修正,执行步骤S410后再执行步骤S412。如果该值为0,则判断为不需要对当前帧进行修正,直接执行步骤S411。Step S408, judging whether the value of the mode bit of the current frame is 1. If the value is 1, it is determined that the current frame needs to be corrected, step S410 is executed and then step S412 is executed. If the value is 0, it is determined that the current frame does not need to be corrected, and step S411 is directly executed.

步骤S409、将当前帧模式位的值赋给前一帧模式位,用来对步骤S407中的前一帧模式位的值进行更新。Step S409, assigning the value of the mode bit of the current frame to the mode bit of the previous frame to update the value of the mode bit of the previous frame in step S407.

步骤S410、利用修正因子对当前帧的高频带频谱进行修正,使其能量和真实的高频带频谱能量更接近。Step S410, using a correction factor to correct the high frequency spectrum of the current frame, so that its energy is closer to the real high frequency spectrum energy.

例如,通过将当前帧的高频带频谱与修正因子相乘,来对当前帧的高频带频谱进行修正。For example, the high-band spectrum of the current frame is corrected by multiplying the high-band spectrum of the current frame by a correction factor.

在本实施例中,该修正因子的值具体为当前帧的低频带频谱的平均能量值;或者为生成的当前帧的高频带频谱能量与低频带频谱能量的比值再乘以一个小数,使得该修正因子的值小于1,继而使得当前帧的高频带频谱能量值小于其低频带频谱能量值一定的倍数,可选地,使得当前帧的高频带频谱能量值小于其低频带频谱能量值的0.8倍。In this embodiment, the value of the correction factor is specifically the average energy value of the low-band spectrum of the current frame; or the ratio of the generated current frame's high-band spectrum energy to the low-band spectrum energy multiplied by a decimal, so that The value of the correction factor is less than 1, so that the high frequency spectrum energy value of the current frame is less than a certain multiple of its low frequency spectrum energy value, optionally, the high frequency spectrum energy value of the current frame is less than its low frequency spectrum energy value 0.8 times the value.

步骤S411、将当前帧的高频带频谱与相对于该帧的前一帧的高频频域包络相乘。Step S411: Multiply the high frequency band spectrum of the current frame by the high frequency frequency domain envelope of the previous frame relative to this frame.

步骤S412、将当前帧从频域信号变换为时域信号。此处,该当前帧包括其低频时域信号和高频时域信号。Step S412, converting the current frame from a frequency domain signal to a time domain signal. Here, the current frame includes its low-frequency time-domain signal and high-frequency time-domain signal.

步骤S413、利用当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减。Step S413, using the attenuation factor of the current frame to attenuate the high-frequency time-domain signal of the time-domain signal of the current frame.

在本实施例中,步骤S413与实施例二中的步骤S212的实施方式相同,这里不再赘述。In this embodiment, the implementation manner of step S413 is the same as that of step S212 in the second embodiment, and will not be repeated here.

步骤S414、输出当前帧的时域信号。Step S414, outputting the time domain signal of the current frame.

上述描述的代码形式为:The code form of the above description is:

if((prev_mode==0)&&(Ec2_L<Ep1_H)&&(α*Ec2_L<Ep1_H))α≥1.6if((prev_mode==0)&&(E c2_L <E p1_H )&&(α*E c2_L <E p1_H ))α≥1.6

              mode=1;mode=1;

if((prev_mode==1)&&(δ*Ep1_H<Ec2_L))δ≥1.6if((prev_mode==1)&&(δ*E p1_H <E c2_L ))δ≥1.6

              mode=0;mode=0;

例如:当第i帧时mode被置成1,则判断为需要对第i帧的高频带频谱进行修正,同时将mode值赋给prev_mode;接着对第i+1帧的mode值进行判断,如果mode还被置成1,则做和第i帧同样的操作;接着对第i+2,i+3...帧的mode值进行判断,直到第i+N帧的mode被置成0,判断为不需要对第i+N帧的高频带频谱进行修正。For example: when the mode is set to 1 in the i-th frame, it is judged that the high-band spectrum of the i-th frame needs to be corrected, and the mode value is assigned to prev_mode at the same time; then the mode value of the i+1th frame is judged, If the mode is still set to 1, do the same operation as the i-th frame; then judge the mode value of the i+2, i+3... frame until the mode of the i+N-th frame is set to 0 , it is determined that it is not necessary to correct the high-band spectrum of the i+Nth frame.

本实施例在语音解码时,且没有为窄频带的当前帧信号的高频部分的任何信息时,避免了由于不同带宽的语音信号之间切换造成的滤波器状态不连续,从而导致的能量激变现象,使得解码出来的连续的语音信号在听觉上更加舒适,提高了主观音质和听觉质量。This embodiment avoids the discontinuity of the filter state caused by the switching between speech signals of different bandwidths, resulting in an energy shock The phenomenon makes the decoded continuous speech signal more comfortable in hearing, and improves the subjective sound quality and auditory quality.

图5是本发明实施例四的一种语音解码装置的结构示意图。如图5所示,所述装置包括:扩展单元10,第一修正处理单元11,变换单元12,衰减单元13和衰减因子更新单元14。下面详细描述各单元的具体功能。FIG. 5 is a schematic structural diagram of a speech decoding device according to Embodiment 4 of the present invention. As shown in FIG. 5 , the device includes: an expansion unit 10 , a first correction processing unit 11 , a transformation unit 12 , an attenuation unit 13 and an attenuation factor update unit 14 . The specific functions of each unit are described in detail below.

扩展单元10,用于将为窄频带的当前帧的归一化的低频带频谱,乘以相对于该当前帧的前一帧的高频带频域包络复制到高频,生成当前帧的高频带频谱。The extension unit 10 is used to multiply the normalized low-band spectrum of the current frame of the narrow-band by the high-band frequency domain envelope of the previous frame relative to the current frame and copy it to the high frequency to generate the current frame high frequency spectrum.

本发明实施例中,对于该为窄频带的当前帧后面的每一帧,扩展单元10,还用于判断该帧是否为窄带帧,如果是,将该帧的归一化的低频带频谱乘以相对于该帧的前一帧的高频带频域包络复制到高频,生成当前帧的高频带频谱。In the embodiment of the present invention, for each frame after the current frame that is narrowband, the extension unit 10 is also used to judge whether the frame is a narrowband frame, and if so, multiply the normalized low-band spectrum of the frame by Generates the high-band spectrum of the current frame with the high-band frequency-domain envelope of the previous frame relative to this frame copied to high frequencies.

第一修正处理单元11,用于根据当前帧的低频带信息和相对于该当前帧的前一帧的频带信息,判断扩展为宽频带的当前帧是否需要修正,当判断结果为是时,利用修正因子对该当前帧的高频带频谱进行修正,当判断结果为否时,对该当前帧不进行修正。The first correction processing unit 11 is used to judge whether the current frame expanded to wideband needs to be corrected according to the low frequency band information of the current frame and the frequency band information of the previous frame relative to the current frame, and when the judgment result is yes, use The correction factor corrects the high-frequency spectrum of the current frame, and when the determination result is negative, no correction is performed on the current frame.

相应地,本发明实施例中,对于该为窄频带的当前帧后面的所有窄带帧,第一修正处理单元11,还用于根据该帧的低频带信息和相对于该帧的前一帧的频带信息,判断该帧是否需要修正,当判断结果为是时,利用修正因子对该帧的高频带频谱进行修正,当判断结果为否时,对该帧不进行修正。Correspondingly, in the embodiment of the present invention, for all narrowband frames following the current narrowband frame, the first correction processing unit 11 is also configured to The frequency band information is used to judge whether the frame needs to be corrected. If the judgment result is yes, the high frequency band spectrum of the frame is corrected by the correction factor. When the judgment result is no, the frame is not corrected.

例如,本发明实施例中,该帧为窄频带帧,当相对于该帧的前一帧的原始帧为宽频带帧,则所述该帧的低频带信息为该帧的低频带频谱能量值,和根据该帧的低频带频谱生成的该帧的高频带频谱能量值,及该帧的高频带频谱与低频带频谱能量的比值,所述相对于该帧的前一帧的频带信息为相对于该帧的前一帧的低频带频谱能量值,高频带频谱能量值,和其高频带频谱与低频带频谱的能量比值。For example, in the embodiment of the present invention, the frame is a narrowband frame, and when the original frame relative to the previous frame of the frame is a broadband frame, the low-band information of the frame is the low-band spectrum energy value of the frame , and the high frequency band spectrum energy value of the frame generated according to the low frequency band spectrum of the frame, and the ratio of the high frequency band spectrum to the low frequency band spectrum energy of the frame, the frequency band information of the previous frame relative to the frame is the energy value of the low-band spectrum, the energy value of the high-band spectrum, and the energy ratio of the high-band spectrum to the low-band spectrum of the previous frame relative to the frame.

例如,本发明实施例中,该帧为窄频带帧,当相对于该帧的前一帧的原始帧仍为窄频带帧,则所述该帧的低频带信息为该帧的低频带频谱能量值,所述相对于该帧的前一帧的频带信息为相对于该帧的前一帧的低频带频谱能量值。For example, in the embodiment of the present invention, the frame is a narrowband frame, and when the original frame relative to the previous frame of the frame is still a narrowband frame, the low-band information of the frame is the low-band spectral energy of the frame Value, the frequency band information of the previous frame relative to this frame is the low frequency band spectrum energy value of the previous frame relative to this frame.

图6是图5的语音解码装置中的第一修正处理单元11的结构示意图。如图6所示,该第一修正处理单元11包括:计算单元110,判断单元111,判断结果处理单元112。下面详细描述各单元的具体功能。FIG. 6 is a schematic structural diagram of the first modification processing unit 11 in the speech decoding device of FIG. 5 . As shown in FIG. 6 , the first correction processing unit 11 includes: a calculation unit 110 , a judgment unit 111 , and a judgment result processing unit 112 . The specific functions of each unit are described in detail below.

计算单元110,用于根据前一帧的频带信息,计算前一帧的低频带频谱能量值,高频带频谱能量值,该前一帧的高频带频谱与低频带频谱的能量比值,和用于根据当前帧的低频带信息,计算当前帧的低频带频谱能量值,和用于根据生成的当前帧的高频带信息,计算当前帧的高频带频谱能量值,并计算该当前帧的高频带频谱与低频带频谱的能量比值。Calculation unit 110, for calculating the low-band spectrum energy value of the previous frame, the high-band spectrum energy value, the energy ratio of the high-band spectrum and the low-band spectrum of the previous frame according to the frequency band information of the previous frame, and It is used to calculate the low frequency band spectrum energy value of the current frame according to the low frequency band information of the current frame, and is used to calculate the high frequency band spectrum energy value of the current frame according to the generated high frequency band information of the current frame, and calculate the current frame The energy ratio of the high frequency band spectrum to the low frequency band spectrum.

其中,计算一帧信号的低频带频谱能量值、高频带频谱能量值、以及一帧信号的高频带频谱能量与低频带频谱能量的比值的方式,详见本发明实施例的方法的描述,这里不再赘述。Wherein, the manner of calculating the low-band spectral energy value, the high-frequency spectral energy value of a frame signal, and the ratio of the high-frequency spectral energy to the low-frequency spectral energy of a frame signal is detailed in the description of the method in the embodiment of the present invention , which will not be repeated here.

判断单元111,用于根据前一帧模式位的值,计算单元110计算出的前一帧的低频带频谱能量值,和前一帧的高频带频谱与低频带频谱的能量比值,以及当前帧的低频带频谱能量值,和当前帧的高频带频谱与低频带频谱的能量比值,确定当前帧模式位的值;和根据当前帧模式位的值判断出当前帧是否需要修正。The judging unit 111 is used to calculate the energy value of the low frequency band spectrum of the previous frame calculated by the calculation unit 110 according to the value of the mode bit of the previous frame, and the energy ratio of the high frequency band spectrum and the low frequency band spectrum of the previous frame, and the current The energy value of the low frequency band spectrum of the frame, and the energy ratio of the high frequency band spectrum and the low frequency band spectrum of the current frame determine the value of the mode bit of the current frame; and judge whether the current frame needs to be corrected according to the value of the mode bit of the current frame.

相应地,本发明实施例中,对于该为窄频带的当前帧后面的所有窄带帧,判断单元111,还用于:Correspondingly, in this embodiment of the present invention, for all narrowband frames following the current frame that is a narrowband, the judging unit 111 is further configured to:

例如,该帧为窄频带帧,当相对于该帧的前一帧的原始帧为宽频带帧,则根据前一帧模式位的值,计算单元110计算出的相对于该帧的前一帧的低频带频谱能量值,高频带频谱与低频带频谱的能量比值,及该帧的低频带频谱能量值,高频带频谱与低频带频谱的能量比值,确定当前帧模式位的值;和根据当前帧模式位的值判断出该帧是否需要修正;For example, this frame is a narrowband frame, when the original frame relative to the previous frame of this frame is a wideband frame, then according to the value of the mode bit of the previous frame, the calculation unit 110 calculates the previous frame relative to this frame The energy value of the low-band spectrum, the energy ratio of the high-band spectrum to the low-band spectrum, and the low-band spectrum energy value of the frame, the energy ratio of the high-band spectrum to the low-band spectrum, determine the value of the mode bit of the current frame; and Determine whether the frame needs to be corrected according to the value of the current frame mode bit;

例如,该帧为窄频带帧,当相对于该帧的前一帧的原始帧仍为窄频带帧,则根据前一帧模式位的值,计算单元110计算出的相对于该帧的前一帧的低频带频谱能量值,及该帧的低频带频谱能量值,确定当前帧模式位的值;和根据当前帧模式位的值判断出该帧是否需要修正。For example, this frame is a narrowband frame, when the original frame relative to the previous frame of this frame is still a narrowband frame, then according to the value of the mode bit of the previous frame, the calculation unit 110 calculates the previous frame relative to this frame The low-band spectral energy value of the frame, and the low-frequency spectral energy value of the frame determine the value of the mode bit of the current frame; and determine whether the frame needs to be corrected according to the value of the mode bit of the current frame.

判断结果处理单元112,用于当判断结果为是时,利用修正因子对当前帧的高频带频谱进行修正,当判断结果为否时,对当前帧不进行修正。The judging result processing unit 112 is configured to correct the high frequency band spectrum of the current frame by using the correction factor when the judging result is yes, and not to modify the current frame when the judging result is no.

变换单元12,用于将根据判断结果进行处理后的当前帧从频域信号变换为时域信号。The transformation unit 12 is configured to transform the current frame processed according to the judgment result from a signal in the frequency domain to a signal in the time domain.

衰减单元13,用于利用当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减后,输出当前帧的时域信号。The attenuation unit 13 is configured to use the attenuation factor of the current frame to attenuate the high-frequency time-domain signal of the time-domain signal of the current frame, and then output the time-domain signal of the current frame.

可选地,本发明实施例中,该装置还包括:衰减因子更新单元14,用于根据当前帧的帧类型信息、相对于该当前帧的前一帧的帧类型信息及其衰减因子的值,确定出该衰减因子的当前值。该值用于衰减单元13对高频时域信号进行衰减。所述帧类型信息为宽频带帧或窄频带帧。其中,衰减因子更新单元14更新的过程详见本发明实施例的方法的描述,在此不再赘述。Optionally, in the embodiment of the present invention, the device further includes: an attenuation factor update unit 14, configured to use the frame type information of the current frame, the frame type information of the previous frame relative to the current frame, and the value of the attenuation factor , to determine the current value of the attenuation factor. This value is used by the attenuation unit 13 to attenuate the high frequency time domain signal. The frame type information is wideband frame or narrowband frame. For the updating process of the attenuation factor updating unit 14, refer to the description of the method in the embodiment of the present invention for details, and details are not repeated here.

图7是本发明实施例五的一种语音解码装置的结构示意图。如图7所示,该装置包括:扩展单元10′,第一修正处理单元11′,第二修正处理单元15,变换单元12,衰减单元13和衰减因子更新单元14。下面详细描述各单元的具体功能。FIG. 7 is a schematic structural diagram of a speech decoding device according to Embodiment 5 of the present invention. As shown in FIG. 7 , the device includes: an expansion unit 10 ′, a first correction processing unit 11 ′, a second correction processing unit 15 , a transformation unit 12 , an attenuation unit 13 and an attenuation factor update unit 14 . The specific functions of each unit are described in detail below.

扩展单元10′,用于将为窄频带的当前帧的低频带频谱直接复制到高频,生成当前帧的高频带频谱。The extension unit 10' is configured to directly copy the low-band spectrum of the current frame for the narrow-band to the high frequency, so as to generate the high-band spectrum of the current frame.

本发明实施例中,对于该为窄频带的当前帧后面的每一帧,扩展单元10,还用于判断该帧是否为窄带帧,如果是,将该帧的低频带频谱复制到高频,生成当前帧的高频带频谱。In the embodiment of the present invention, for each frame after the current frame that is a narrowband, the extension unit 10 is also used to judge whether the frame is a narrowband frame, and if so, copy the low-band spectrum of the frame to the high-frequency, Generate a high-band spectrum for the current frame.

第一修正处理单元11′,用于根据当前帧的频带信息和相对于该当前帧的前一帧的低频带信息,判断扩展为宽频带的当前帧是否需要修正,当判断结果为是时,利用修正因子对该当前帧的高频带频谱进行修正,当判断结果为否时,对该当前帧不进行修正。The first correction processing unit 11' is used to judge whether the current frame extended to wideband needs to be corrected according to the frequency band information of the current frame and the low frequency band information of the previous frame relative to the current frame, and when the judgment result is yes, The high-frequency spectrum of the current frame is corrected by using the correction factor, and when the determination result is negative, no correction is performed on the current frame.

相应地,本发明实施例中,对于该为窄频带的当前帧后面的所有窄带帧,第一修正处理单元11′,还用于根据该帧的低频带信息和相对于该帧的前一帧的频带信息,判断该帧是否需要修正,当判断结果为是时,利用修正因子对该帧的高频带频谱进行修正,当判断结果为否时,对该帧不进行修正。Correspondingly, in the embodiment of the present invention, for all narrowband frames following the current narrowband frame, the first modification processing unit 11' is also used to The frequency band information of the frame is used to judge whether the frame needs to be corrected. If the judgment result is yes, the high frequency band spectrum of the frame is corrected by the correction factor. When the judgment result is no, the frame is not corrected.

例如,本发明实施例中,该帧为窄频带帧,当相对于该帧的前一帧的原始帧为宽频带帧,则所述该帧的低频带信息为该帧的低频带频谱能量值,和根据该帧的低频带频谱生成的该帧的高频带频谱能量值,所述相对于该帧的前一帧的频带信息为相对于该帧的前一帧的低频带频谱能量值和高频带频谱能量值。For example, in the embodiment of the present invention, the frame is a narrowband frame, and when the original frame relative to the previous frame of the frame is a broadband frame, the low-band information of the frame is the low-band spectrum energy value of the frame , and the high frequency band spectrum energy value of the frame generated according to the low frequency band spectrum of the frame, the frequency band information of the previous frame relative to the frame is the low frequency band spectrum energy value of the previous frame relative to the frame and High frequency band spectral energy value.

例如,本发明实施例中,该帧为窄频带帧,当相对于该帧的前一帧的原始帧仍为窄频带帧,则所述该帧的低频带信息为该帧的低频带频谱能量值,所述相对于该帧的前一帧的频带信息为相对于该帧的前一帧的低频带频谱能量值。For example, in the embodiment of the present invention, the frame is a narrowband frame, and when the original frame relative to the previous frame of the frame is still a narrowband frame, the low-band information of the frame is the low-band spectral energy of the frame Value, the frequency band information of the previous frame relative to this frame is the low frequency band spectrum energy value of the previous frame relative to this frame.

本发明实施例中,第一修正处理单元11′,包括:计算单元110′,判断单元111′,判断结果处理单元112′。下面详细描述各单元的具体功能。In the embodiment of the present invention, the first correction processing unit 11' includes: a calculation unit 110', a judgment unit 111', and a judgment result processing unit 112'. The specific functions of each unit are described in detail below.

计算单元110′,用于根据前一帧的频带信息计算前一帧的低频带频谱能量值和高频带频谱能量值,和用于根据当前帧的低频带信息计算当前帧的低频带频谱能量值。Calculation unit 110', used to calculate the low-band spectrum energy value and high-band spectrum energy value of the previous frame according to the frequency band information of the previous frame, and to calculate the low-band spectrum energy value of the current frame according to the low-frequency band information of the current frame value.

判断单元111′,用于根据前一帧模式位的值,计算单元110′计算出的前一帧的低频带频谱能量值和高频带频谱能量值,和当前帧的低频带频谱能量值,确定当前帧模式位的值;和根据当前帧模式位的值判断出当前帧是否需要修正。The judging unit 111' is used to calculate the low-band spectrum energy value and the high-band spectrum energy value of the previous frame calculated by the calculation unit 110' according to the value of the mode bit of the previous frame, and the low-band spectrum energy value of the current frame, determining the value of the mode bit of the current frame; and judging whether the current frame needs to be corrected according to the value of the mode bit of the current frame.

相应地,本发明实施例中,对于该为窄频带的当前帧后面的所有窄带帧,判断单元111′,还用于:Correspondingly, in the embodiment of the present invention, for all narrowband frames following the current frame that is a narrowband, the judging unit 111' is further configured to:

例如,该帧为窄频带帧,当相对于该帧的前一帧的原始帧为宽频带帧,则根据前一帧模式位的值,计算单元110′计算出的相对于该帧的前一帧的低频带频谱能量值和高频带频谱能量值,及该帧的低频带频谱能量值,确定当前帧模式位的值;和根据当前帧模式位的值判断出该帧是否需要修正;For example, this frame is a narrowband frame, when the original frame relative to the previous frame of this frame is a wideband frame, then according to the value of the mode bit of the previous frame, the calculation unit 110' calculates the previous frame relative to the frame The low-band spectral energy value and the high-band spectral energy value of the frame, and the low-frequency spectral energy value of the frame, determine the value of the current frame mode bit; and judge whether the frame needs to be corrected according to the value of the current frame mode bit;

例如,该帧为窄频带帧,当相对于该帧的前一帧的原始帧仍为窄频带帧,则根据前一帧模式位的值,计算单元110′计算出的相对于该帧的前一帧的低频带频谱能量值,及该帧的低频带频谱能量值,确定当前帧模式位的值;和根据当前帧模式位的值判断出该帧是否需要修正。For example, this frame is a narrowband frame, when the original frame relative to the previous frame of this frame is still a narrowband frame, then according to the value of the mode bit of the previous frame, the calculation unit 110' calculates the previous frame relative to this frame The low-band spectral energy value of a frame, and the low-frequency spectral energy value of the frame determine the value of the mode bit of the current frame; and determine whether the frame needs to be corrected according to the value of the mode bit of the current frame.

判断结果处理单元112′,用于当判断结果为是时,利用修正因子对当前帧的高频带频谱进行修正,当判断结果为否时,对当前帧不进行修正。The judging result processing unit 112' is configured to correct the high frequency band spectrum of the current frame by using the correction factor when the judging result is yes, and not to modify the current frame when the judging result is no.

第二修正处理单元15,用于当第一修正处理单元11′没有对当前帧的高频带频谱进行修正时,将当前帧的高频带频谱乘以相对于该当前帧的前一帧的高频带频域包络,当第一修正处理单元11′对当前帧的高频带频谱修正过时,对当前帧做不修正的处理。The second correction processing unit 15 is configured to multiply the high frequency frequency spectrum of the current frame by For the high-band frequency domain envelope, when the first correction processing unit 11 ′ has corrected the high-frequency spectrum of the current frame, it does not correct the current frame.

相应地,本发明实施例中,对于该为窄频带的当前帧后面的所有窄带帧,第二修正处理单元15,还用于当第一修正处理单元11′没有对该帧的高频带频谱进行修正时,将该帧的高频带频谱乘以相对于该帧的前一帧的高频带频域包络,当第一修正处理单元11′对该帧的高频带频谱修正过时,对该帧做不修正的处理。Correspondingly, in the embodiment of the present invention, for all narrowband frames following the current frame that is a narrowband, the second correction processing unit 15 is also used to When performing correction, the high frequency band spectrum of the frame is multiplied by the high frequency band frequency domain envelope of the previous frame relative to the frame, when the first correction processing unit 11' has corrected the high frequency band spectrum of the frame, The frame is processed without correction.

变换单元12,用于将根据判断结果进行处理后的当前帧从频域信号变换为时域信号。The transformation unit 12 is configured to transform the current frame processed according to the judgment result from a signal in the frequency domain to a signal in the time domain.

衰减单元13,用于利用当前帧的衰减因子对当前帧时域信号的高频时域信号进行衰减后,输出当前帧的时域信号。The attenuation unit 13 is configured to use the attenuation factor of the current frame to attenuate the high-frequency time-domain signal of the time-domain signal of the current frame, and then output the time-domain signal of the current frame.

可选地,本发明实施例中,该装置还包括:衰减因子更新单元14,用于根据当前帧的帧类型信息、相对于该当前帧的前一帧的帧类型信息及其衰减因子的值,确定出该衰减因子的当前值,该值用于衰减单元13对高频时域信号进行衰减。所述帧类型信息为宽频带帧或窄频带帧。相同地,衰减因子更新单元14更新的过程详见本发明实施例的方法的描述,在此不再赘述。Optionally, in the embodiment of the present invention, the device further includes: an attenuation factor update unit 14, configured to use the frame type information of the current frame, the frame type information of the previous frame relative to the current frame, and the value of the attenuation factor , to determine the current value of the attenuation factor, which is used by the attenuation unit 13 to attenuate the high-frequency time-domain signal. The frame type information is wideband frame or narrowband frame. Similarly, for the updating process of the attenuation factor updating unit 14, refer to the description of the method in the embodiment of the present invention for details, and details are not repeated here.

由以上实施例可知,根据本发明实施例提出的一种语音解码方法及装置,利用窄频带帧的低频带频谱生成该窄频带帧的高频带频谱,并根据一定的判断条件判断该窄频带帧是否需要修正,需要修正时,修正该窄频带帧的高频带频谱,使得将语音信号中的窄频带帧扩展为有效的宽频带帧,很好地解决了因不同带宽的语音信号导致听觉上不舒适的问题,提高了语音信号的听觉质量。As can be seen from the above embodiments, according to a speech decoding method and device proposed in the embodiments of the present invention, the low-band spectrum of the narrow-band frame is used to generate the high-band spectrum of the narrow-band frame, and the narrow-band frequency spectrum is judged according to certain judgment conditions. Whether the frame needs to be corrected, when it needs to be corrected, correct the high-frequency spectrum of the narrow-band frame, so that the narrow-band frame in the voice signal is expanded into an effective wide-band frame, which solves the problem of hearing loss caused by voice signals with different bandwidths. Improve the auditory quality of the speech signal.

同时,将本发明应用在将窄频带帧扩展为宽频带帧的频带扩展技术中,可以有效提升当低频带能量较低时恢复出的高频带信号的性能。At the same time, the application of the present invention in the frequency band extension technique of expanding the narrow-band frame into a wide-band frame can effectively improve the performance of the recovered high-band signal when the low-band energy is low.

以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only a preferred embodiment of the present invention, which certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (14)

1. tone decoding method comprises:
The low-frequency band frequency spectrum that is utilized as the present frame of narrow-band generates the high frequency band frequency spectrum of described present frame;
According to the low-frequency band information of described present frame with respect to the band information of the former frame of described present frame, judge whether described present frame needs to revise, if judged result is for being, then utilize modifying factor that the high frequency band frequency spectrum of described present frame is revised, if judged result is not then revised described present frame for not;
Described present frame after will handling according to described judged result is transformed to time-domain signal from frequency-region signal;
After utilizing the decay factor of described present frame that the high frequency time-domain signal of described present frame time-domain signal is decayed, export the time-domain signal of described present frame.
2. the method for claim 1 is characterized in that, described former frame with respect to described present frame is the broadband frame.
3. method as claimed in claim 2, it is characterized in that, the high frequency band frequency spectrum that the described low-frequency band frequency spectrum that is utilized as the present frame of narrow-band generates described present frame is specially: the high frequency band frequency domain envelope that the normalized low-frequency band frequency spectrum of described present frame be multiply by with respect to the former frame of described present frame copies to high frequency, generates the high frequency band frequency spectrum of described present frame;
Described according to described present frame low-frequency band information and with respect to the band information of the former frame of described present frame, judge whether described present frame needs to revise, and comprising:
The low-frequency band spectrum energy value and the high frequency band spectrum energy value of the described former frame that calculates with the value of former frame pattern position, according to the band information of described former frame, and the low-frequency band spectrum energy value and the high frequency band spectrum energy value of the described present frame that goes out according to the low-frequency band information calculations of described present frame, determine the value of present frame pattern position;
Judge the whether needs correction of described present frame according to the value of described present frame pattern position.
4. method according to claim 2, it is characterized in that, the high frequency band frequency spectrum that the described low-frequency band frequency spectrum that is utilized as the present frame of narrow-band generates described present frame is specially: the low-frequency band frequency spectrum of described present frame is directly copied to high frequency, generate the high frequency band frequency spectrum of described present frame;
Described according to described present frame low-frequency band information and with respect to the band information of the former frame of described present frame, judge whether described present frame needs to revise, and comprising:
The low-frequency band spectrum energy value of the described former frame that calculates with the value of former frame pattern position, according to the band information of described former frame and high frequency band spectrum energy value, and the low-frequency band spectrum energy value of the described present frame that goes out according to the low-frequency band information calculations of described present frame are determined the value of present frame pattern position;
Judge the whether needs correction of described present frame according to the value of described present frame pattern position.
5. method as claimed in claim 4 is characterized in that, the present frame after described will the processing according to described judged result is transformed to time-domain signal from frequency-region signal, also comprises:
If the high frequency band frequency spectrum of described present frame is not revised according to described judged result, then the normalized high frequency band frequency spectrum of present frame be multiply by the high frequency band frequency domain envelope of described former frame after, this present frame is transformed to time-domain signal from frequency-region signal.
6. method as claimed in claim 2 is characterized in that, described method further comprises:
For described be each frame behind the present frame of narrow-band, judge whether this frame is the arrowband frame, if utilize the low-frequency band frequency spectrum of described this frame to generate the high frequency band frequency spectrum of described this frame;
According to the low-frequency band information of described this frame with respect to the band information of the former frame of described this frame, judge whether described this frame needs to revise, if judged result is for being, then utilize modifying factor that the high frequency band frequency spectrum of described this frame is revised, if judged result is not then revised described this frame for not;
Described this frame after will handling according to judged result is transformed to time-domain signal from frequency-region signal;
After utilizing the decay factor of described this frame that the high frequency time-domain signal of described this frame time-domain signal is decayed, the time-domain signal of described this frame of output.
7. method as claimed in claim 6 is characterized in that the decay factor of described present frame is determined according to the frame type information of the former frame of the frame type information of described present frame, described present frame; With
The decay factor of described this frame determines that according to the frame type information and the decay factor thereof of the frame type information of described this frame, described former frame with respect to this frame described frame type information is broadband frame or narrow-band frame.
8. method according to claim 1 is characterized in that, the value of described modifying factor is determined according to the low-frequency band information of described present frame.
9. an audio decoding apparatus is characterized in that, comprising:
Expanding element, the low-frequency band frequency spectrum that is used to be utilized as the present frame of narrow-band generates the high frequency band frequency spectrum of described present frame;
The first correcting process unit, be used for according to the low-frequency band information of described present frame with respect to the band information of the former frame of described present frame, judge whether described present frame needs to revise, when judged result when being, utilize modifying factor that the high frequency band frequency spectrum of described present frame is revised, judged result is not revised described present frame for not the time;
Converter unit is used for the present frame after handling according to described judged result is transformed to time-domain signal from frequency-region signal;
Attenuation units, be used to utilize the decay factor of described present frame that the high frequency time-domain signal of described present frame time-domain signal is decayed after, export the time-domain signal of described present frame.
10. device as claimed in claim 9, it is characterized in that, described expanding element is used for the high frequency band frequency domain envelope that normalized low-frequency band frequency spectrum with described present frame multiply by with respect to the former frame of described present frame and copies to high frequency, generates the high frequency band frequency spectrum of described present frame;
The described first correcting process unit comprises:
Computing unit, be used for calculating the low-frequency band spectrum energy value and the high frequency band spectrum energy value of described former frame, and be used for going out the low-frequency band spectrum energy value and the high frequency band spectrum energy value of described present frame according to the low-frequency band information calculations of described present frame according to the band information of described former frame;
Judging unit is used for low-frequency band spectrum energy value and high frequency band spectrum energy value according to the value of former frame pattern position, described former frame, and the low-frequency band spectrum energy value and the high frequency band spectrum energy value of described present frame, determines the value of present frame pattern position; With judge the whether needs correction of described present frame according to the value of described present frame pattern position;
The judged result processing unit, be used for when judged result when being, utilize modifying factor that the high frequency band frequency spectrum of described present frame is revised, when judged result for not the time, described present frame is not revised.
11. device as claimed in claim 9 is characterized in that, described expanding element is used for the low-frequency band frequency spectrum of described present frame is directly copied to high frequency, generates the high frequency band frequency spectrum of described present frame;
The described first correcting process unit comprises:
Computing unit is used for calculating according to the band information of described former frame the low-frequency band spectrum energy value and the high frequency band spectrum energy value of described former frame, and is used for going out according to the low-frequency band information calculations of described present frame the low-frequency band spectrum energy value of described present frame;
Judging unit is used for low-frequency band spectrum energy value and high frequency band spectrum energy value according to the value of former frame pattern position, described former frame, and the low-frequency band spectrum energy value of described present frame, determines the value of present frame pattern position; With judge the whether needs correction of described present frame according to the value of described present frame pattern position;
The judged result processing unit, be used for when judged result when being, utilize modifying factor that the high frequency band frequency spectrum of described present frame is revised, when judged result for not the time, described present frame is not revised.
12. device as claimed in claim 11 is characterized in that, described device also comprises:
The second correcting process unit, be used for when the described first correcting process unit is not revised the high frequency band frequency spectrum of described present frame, the normalized high frequency band frequency spectrum of described present frame be multiply by the high frequency band frequency domain envelope of described former frame, when the described first correcting process unit is out-of-date to the high frequency band frequency spectrum correction of described present frame, described present frame is done the processing of not revising;
Described converter unit also is used for the described present frame after carrying out correcting process through the described second correcting process unit is transformed to time-domain signal from frequency-region signal.
13. device as claimed in claim 9 is characterized in that, described expanding element, also be used for, for described be each frame behind the present frame of narrow-band, judge whether this frame is the arrowband frame, if generate the high frequency band frequency spectrum of described this frame according to the low-frequency band frequency spectrum of described this frame;
The described first correcting process unit, also be used for according to the low-frequency band information of described this frame with respect to the band information of the former frame of described this frame, judge whether described this frame needs to revise, when judged result when being, utilize modifying factor that the high frequency band frequency spectrum of described this frame is revised, when judged result for not the time, described this frame is not revised.
14. device as claimed in claim 13 is characterized in that, described device also comprises:
The decay factor updating block, be used for according to described present frame frame type information, determine the decay factor of described present frame with respect to the frame type information of the former frame of described present frame; Perhaps
According to the frame type information of described this frame, with respect to the frame type information of the former frame of described this frame and the decay factor that decay factor is determined described this frame thereof, described frame type information is broadband frame or narrow-band frame.
CN2008102198562A 2008-12-10 2008-12-10 Tone decoding method and device Active CN101751925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102198562A CN101751925B (en) 2008-12-10 2008-12-10 Tone decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102198562A CN101751925B (en) 2008-12-10 2008-12-10 Tone decoding method and device

Publications (2)

Publication Number Publication Date
CN101751925A CN101751925A (en) 2010-06-23
CN101751925B true CN101751925B (en) 2011-12-21

Family

ID=42478796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102198562A Active CN101751925B (en) 2008-12-10 2008-12-10 Tone decoding method and device

Country Status (1)

Country Link
CN (1) CN101751925B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8855187B2 (en) 2011-01-12 2014-10-07 Nxp B.V. Signal processing method for enhancing a dynamic range of a signal
CN107369454A (en) * 2014-03-21 2017-11-21 华为技术有限公司 The coding/decoding method and device of language audio code stream

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2571388C2 (en) * 2011-03-18 2015-12-20 Фраунхофер-Гезелльшафт Цур Фердерунг Дер Ангевандтен Форшунг Е.Ф. Frame element length transmission in audio coding
CN102800317B (en) 2011-05-25 2014-09-17 华为技术有限公司 Signal classification method and equipment, and encoding and decoding methods and equipment
CN103295578B (en) 2012-03-01 2016-05-18 华为技术有限公司 A kind of voice frequency signal processing method and device
CN107886966A (en) * 2017-10-30 2018-04-06 捷开通讯(深圳)有限公司 Terminal and its method for optimization voice command, storage device
CN113257268B (en) * 2021-07-02 2021-09-17 成都启英泰伦科技有限公司 Noise reduction and single-frequency interference suppression method combining frequency tracking and frequency spectrum correction

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1272259A (en) * 1997-06-10 2000-11-01 拉斯·古斯塔夫·里杰利德 Enhancing Source Coding with Frequency Band Recurrence
CN1585972A (en) * 2002-08-01 2005-02-23 松下电器产业株式会社 Audio decoding apparatus and audio decoding method
CN1669073A (en) * 2002-07-19 2005-09-14 日本电气株式会社 Audio decoding device, decoding method and program
CN1950686A (en) * 2004-05-14 2007-04-18 松下电器产业株式会社 Encoding device, decoding device, and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1272259A (en) * 1997-06-10 2000-11-01 拉斯·古斯塔夫·里杰利德 Enhancing Source Coding with Frequency Band Recurrence
CN1669073A (en) * 2002-07-19 2005-09-14 日本电气株式会社 Audio decoding device, decoding method and program
CN1585972A (en) * 2002-08-01 2005-02-23 松下电器产业株式会社 Audio decoding apparatus and audio decoding method
CN1950686A (en) * 2004-05-14 2007-04-18 松下电器产业株式会社 Encoding device, decoding device, and method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8855187B2 (en) 2011-01-12 2014-10-07 Nxp B.V. Signal processing method for enhancing a dynamic range of a signal
CN107369454A (en) * 2014-03-21 2017-11-21 华为技术有限公司 The coding/decoding method and device of language audio code stream

Also Published As

Publication number Publication date
CN101751925A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
CN101751925B (en) Tone decoding method and device
JP7427752B2 (en) Device and method for reducing quantization noise in time domain decoders
ES2582475T3 (en) Generating a broadband extension of an extended bandwidth audio signal
CN101964189B (en) Audio signal switching method and device
JP5620515B2 (en) Voice bandwidth extension method and voice bandwidth extension system
EP1772855B1 (en) Method for extending the spectral bandwidth of a speech signal
KR101482830B1 (en) Method and apparatus for bandwidth extension of audio signal
CN103377655B (en) Improve the apparatus and method of tonequality
JP4000261B2 (en) Stereo sound signal processing method and apparatus
CN103035248B (en) Encoding method and device for audio signals
JP2004512561A (en) Error concealment for decoding coded audio signals
JP2010503881A (en) Method and apparatus for voice / acoustic transmitter and receiver
JP2002237785A (en) Method for detecting sid frame by compensation of human audibility
TWI529701B (en) Apparatus and method for generating a frequency enhanced signal using shaping of the enhancement signal
KR20160124877A (en) Voice frequency code stream decoding method and device
CN105225670A (en) A kind of audio coding method and device
US8478586B2 (en) Signal processing apparatus and method, and program
CN101320565B (en) Perception weighting filtering wave method and perception weighting filter thererof
CN102169694A (en) Method and device for generating psychoacoustic model
JP5458057B2 (en) Signal broadening apparatus, signal broadening method, and program thereof
CN112562699B (en) Speech processing method and device thereof
CN108630212B (en) Perception reconstruction method and device for high-frequency excitation signal in non-blind bandwidth extension
CN113254251A (en) Anti-overflow method for audio DSP data
KR20150034507A (en) Method and apparatus fo encoding audio signal
TWI544482B (en) Apparatus and method for generating a frequency enhancement signal using an energy limitation operation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211224

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.