Voice band extension method, device and encoding method based on deep learning
The deep learning method is used to extract vowel and fricative features in narrow-band speech and perform frequency band expansion, which solves the problems of poor frequency band expansion effect and high resource occupation in the existing technology, and achieves better sound quality and user experience.
Patent Information
- Application Number
- CN202210636744.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-07
AI Technical Summary
The existing technology fails to effectively distinguish vowels and fricatives in the frequency band expansion of narrowband speech signals, resulting in poor band expansion effects, high storage space and computational requirements, and is not suitable for embedded Bluetooth systems.
Using a speech band expansion method based on deep learning, the characteristic parameters of vowels and fricatives are extracted by processing audio data with low-latency improved discrete cosine transform and long-term post-filter, and are input into the pre-trained neural network model to generate Full-bandwidth spectrum coefficients for more accurate frequency band expansion.
It improves the effect of frequency band expansion, improves sound quality and user experience, reduces storage and computing requirements, and is suitable for embedded Bluetooth systems.
Smart Images

Figure CN115035908B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio coding and decoding technology, and in particular to a voice band expansion method, device and encoding method based on deep learning. Background Art
[0002] At present, narrowband speech signals are still widely used, such as AMR-NB, which still occupies an important position in mobile phone systems. Its sampling rate is 8kHz and its effective bandwidth is 300-3400Hz, but the sound quality is average and the intelligibility is not ideal. In the prior art, a simple method is blind bandwidth extension (BBWE). Taking Bluetooth headset calls as an example, when the Bluetooth headset receives a narrowband audio code stream, it is first decoded into a narrowband speech signal (effective bandwidth 300-3400Hz), and then BBWE is used to expand its bandwidth to a broadband speech signal for playback (50-7000Hz). This method does not require updating the entire communication system, but only needs to perform bandwidth expansion at the audio signal receiving end, which improves the sound quality and intelligibility at a low cost. The disadvantage is that the processing effect of fricative sounds in audio data is not good. Due to the different characteristics of vowels and fricative sounds, the main energy of vowels is concentrated in low-frequency components, and its low-frequency harmonic structure is similar to that of high-frequency harmonics, and it decays rapidly in the high-frequency part, while fricative sounds have no obvious periodic components, and their main energy is concentrated in high-frequency components. The existing technical solution does not make a distinction when expanding the bandwidth, resulting in poor band expansion effect, affecting the final sound quality; at the same time, this processing method requires a large storage space and a large amount of calculation, and is not suitable for embedded Bluetooth systems that have limited storage space and calculation amount. Summary of the invention
[0003] To address the problem that when expanding narrowband speech, existing methods do not distinguish between vowels and fricatives in narrowband speech data and perform indiscriminate frequency band expansion, resulting in poor frequency band expansion effect and affecting user experience, the present application proposes a speech band expansion method, device and encoding method based on deep learning.
[0004] In the first aspect, the present application proposes a voice band expansion method based on deep learning, comprising: encoding the audio data to a low-latency improved discrete cosine transform, obtaining the spectral coefficients corresponding to the audio data, and performing feature extraction to obtain a first feature parameter having vowel and fricative information; resampling and long-term post-filter processing of the audio data, and performing feature extraction on the processed result to obtain a second feature parameter having vowel and fricative information; inputting the first feature parameter and the second feature parameter into a pre-trained neural network model to generate full-bandwidth spectral coefficients corresponding to the audio data.
[0005] Optionally, after encoding the audio data to a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain a first feature parameter having vowel and fricative sound information, including: feature extraction of the spectral coefficients to obtain spectral entropy, wherein, under the condition that the spectral entropy is less than a spectral entropy threshold, the audio data of the segment corresponds to speech data; under the condition that the spectral entropy is not less than a spectral entropy threshold, the audio data of the segment corresponds to non-speech data; feature extraction of the spectral coefficients to obtain subband energy, wherein under the condition that the subband energy of the low frequency band is greater than a first energy threshold, the audio data contains vowels, and under the condition that the subband energy of the high frequency band is greater than a second energy threshold, the audio data contains fricative sounds.
[0006] Optionally, after encoding the audio data to a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain first feature parameters having vowel and fricative sound information, further comprising: feature extraction of the spectral coefficients to obtain the spectrum centroid, wherein, in a low-frequency band, under the condition that the spectrum centroid is less than a first threshold, the audio data contains vowels; and in a high-frequency band, under the condition that the spectrum centroid is greater than a second threshold, the audio data contains fricative sounds.
[0007] Optionally, the audio data is resampled and processed by a long-term post filter, and features are extracted from the processed results to obtain a second feature parameter having vowel and fricative sound information, including: processing the audio data by a long-term post filter to obtain a fundamental tone existence flag corresponding to the audio data, wherein under the condition that the fundamental tone existence flag is a first value, the audio data contains vowels, and under the condition that the fundamental tone existence flag is a second value, the audio data contains fricative sounds.
[0008] Optionally, the audio data is resampled and processed by a long-term post-filter, and features are extracted from the processed results to obtain second feature parameters having vowel and fricative sound information. The method also includes: processing the audio data by a long-term post-filter to obtain normalized autocorrelation values, pitch delay parameters and long-term post-filter activation parameters corresponding to the audio data.
[0009] Optionally, the neural network pre-training model process includes: resampling the full-bandwidth speech to obtain narrow-band speech; extracting features from the narrow-band speech to obtain first feature parameters and second feature parameters corresponding to the narrow-band speech; and performing model training using the first feature parameters, second feature parameters and broadband language corresponding to the narrow-band speech, so that the trained network model can obtain the predicted bandwidth spectrum coefficients of the broadband speech based on the first feature parameters and second feature parameters corresponding to the narrow-band speech.
[0010] Optionally, the neural network pre-training model process also includes: comparing the predicted bandwidth spectrum coefficient with the actual bandwidth spectrum coefficient of the broadband speech to obtain a comparison result; optimizing the network model according to the comparison result so that the error between the predicted bandwidth spectrum coefficient and the actual bandwidth spectrum coefficient is lower than a preset threshold.
[0011] In the second aspect, the present application proposes a speech band extension device based on deep learning, including: a first feature extraction module, which encodes the audio data to a low-latency improved discrete cosine transform, obtains the spectral coefficients corresponding to the audio data, and performs feature extraction to obtain a first feature parameter with vowel and fricative sound information; a second feature extraction module, which resamples and performs long-term post-filter processing on the audio data, and performs feature extraction on the processed result to obtain a second feature parameter with vowel and fricative sound information; a frequency band extension module, which inputs the first feature parameter and the second feature parameter into a pre-trained neural network model to generate full-bandwidth spectral coefficients corresponding to the audio data.
[0012] On the third aspect, the present application proposes an audio encoding method based on deep learning speech band expansion, including: encoding the audio data to a low-latency improved discrete cosine transform, obtaining the spectral coefficients corresponding to the audio data, and performing feature extraction to obtain a first feature parameter having vowel and fricative sound information; resampling and long-term post-filter processing of the audio data, and performing feature extraction on the processed result to obtain a second feature parameter having vowel and fricative sound information; inputting the first feature parameter and the second feature parameter into a pre-trained neural network model to generate full-bandwidth spectral coefficients corresponding to the audio data; updating the encoding parameters of the encoder, and continuing to encode the audio data according to the full-bandwidth spectral coefficients to obtain an encoding result having full-bandwidth spectral coefficients.
[0013] In a fourth aspect, the present application proposes a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed, the computer executes the method in scheme one or scheme three.
[0014] This application utilizes the parameters in the encoding process of audio data and performs feature extraction to obtain the features of vowels and fricatives in the audio data. When performing frequency band expansion through a network model, it fully considers the differences between vowels and fricatives in the original audio data to perform more accurate frequency band expansion, improve the effect of frequency band expansion, and enhance user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings in the following description exemplarily show some embodiments of the present application.
[0016] Figure 1 is a schematic diagram of an implementation of a voice band extension method based on deep learning of the present application;
[0017] Figure 2 is a schematic diagram of an example of the neural network model training process of the present application;
[0018] Figure 3 is a schematic diagram of an implementation of a voice band extension device based on deep learning of the present application;
[0019] Figure 4 It is a schematic diagram of an implementation of the audio encoding method for deep learning speech band extension of the present application.
[0020] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0021] The preferred embodiments of the present application are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present application can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present application.
[0022] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0023] At present, narrowband speech signals are still widely used, such as AMR-NB, which still occupies an important position in mobile phone systems. Its sampling rate is 8kHz and its effective bandwidth is 300-3400Hz, but the sound quality is average and the intelligibility is not ideal. In the prior art, a simple method is blind bandwidth extension (BBWE). Taking Bluetooth headset calls as an example, when the Bluetooth headset receives a narrowband audio code stream, it is first decoded into a narrowband speech signal (effective bandwidth 300-3400Hz), and then BBWE is used to expand its bandwidth to a broadband speech signal for playback (50-7000Hz). This method does not require updating the entire communication system, but only needs to perform bandwidth expansion at the audio signal receiving end, which improves the sound quality and intelligibility at a low cost. The disadvantage is that the processing effect of fricative sounds in audio data is not good. Due to the different characteristics of vowels and fricative sounds, the main energy of vowels is concentrated in low-frequency components, and its low-frequency harmonic structure is similar to that of high-frequency harmonics, and it decays rapidly in the high-frequency part, while fricative sounds have no obvious periodic components, and their main energy is concentrated in high-frequency components. The existing technical solution does not make a distinction when expanding the bandwidth, resulting in poor band expansion effect, affecting the final sound quality; at the same time, this processing method requires a large storage space and a large amount of calculation, and is not suitable for embedded Bluetooth systems that have limited storage space and calculation amount.
[0024] In view of the above problems, the present application proposes a method, device and encoding method for speech band expansion based on deep learning. The band expansion method includes: encoding the audio data to a low-delay improved discrete cosine transform, obtaining the spectral coefficients corresponding to the audio data, and performing feature extraction to obtain a first feature parameter with vowel and fricative information; resampling and long-term post-filter processing of the audio data, and performing feature extraction on the processing result to obtain a second feature parameter with vowel and fricative information; inputting the first feature parameter and the second feature parameter into a pre-trained neural network model to generate the full-bandwidth spectral coefficients corresponding to the audio data.
[0025] The present application utilizes the original parameters in the audio data encoding process to obtain different characteristic parameters about vowels and fricatives in the audio data through feature extraction. Then, the first characteristic parameter and the second characteristic parameter are processed through a pre-trained neural network model, and the frequency band of the audio data is expanded, so that the expanded broadband speech retains the characteristics of the vowels and fricatives of the original audio data, improves the processing effect of the frequency band expansion, and enhances the user experience. This solves the problem that the existing technology does not consider the characteristics of the audio data itself when expanding the frequency band, and blindly expands it, which may cause the broadband speech obtained after the bandwidth expansion to lose the characteristics of the original audio data, and further improves the sound quality effect when the user is listening.
[0026] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The specific embodiments described below can be combined with each other to form new embodiments. The same or similar ideas or processes described in one embodiment may not be repeated in other embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0027] Figure 1 An implementation of the voice band extension method based on deep learning of the present application is shown.
[0028] exist Figure 1 In the illustrated embodiment, the deep learning-based voice band expansion method of the present application includes process S101, encoding the audio data to a low-delay improved discrete cosine transform, obtaining spectral coefficients corresponding to the audio data, and performing feature extraction to obtain a first feature parameter having vowel and fricative information.
[0029] In this embodiment, the frequency band expansion method of the present application utilizes the existing encoding process of audio data, and extracts features through the intermediate parameters obtained in the encoding process, specifically analyzing the information about vowels and fricatives in the audio data, that is, after the low-latency improved discrete cosine transform, the corresponding spectral coefficients of the audio data are obtained, and the spectral coefficients are feature extracted to obtain the first characteristic parameters. The first characteristic parameters include spectral entropy, subband energy, and spectrum centroid, etc. The first characteristic parameters are then used to perform subsequent neural network model training to expand the frequency band. The new full-bandwidth spectral coefficients obtained after the frequency band expansion can maintain the characteristics of the vowels and fricatives of the original audio data, maintain the audio quality, and improve the user experience.
[0030] Optionally, after encoding the audio data to a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain a first feature parameter having vowel and fricative sound information, including: feature extraction of the spectral coefficients to obtain spectral entropy, wherein, under the condition that the spectral entropy is less than a spectral entropy threshold, the audio data of the segment corresponds to speech data; under the condition that the spectral entropy is not less than a spectral entropy threshold, the audio data of the segment corresponds to non-speech data; feature extraction of the spectral coefficients to obtain subband energy, wherein under the condition that the subband energy of the low frequency band is greater than a first energy threshold, the audio data contains vowels, and under the condition that the subband energy of the high frequency band is greater than a second energy threshold, the audio data contains fricative sounds.
[0031] In this optional embodiment, the spectral coefficients of the original audio data obtained during the encoding process are used to obtain the spectral entropy corresponding to the audio data. The spectral entropy mainly reflects the distribution of the spectrum and is an important information for distinguishing whether the audio data is speech or non-speech. For the speech part, the energy distribution is often uneven, and the corresponding spectral entropy value is small; while for the non-speech part, that is, silence or background noise, the corresponding energy distribution is relatively uniform, and the spectral entropy value is large. Therefore, the spectral entropy can reflect the speech or non-speech characteristics of the audio data currently being encoded.
[0032] Specifically, under the condition that the spectral entropy is less than the spectral entropy threshold, the audio data of the segment corresponds to speech data; under the condition that the spectral entropy is not less than the spectral entropy threshold, the audio data of the segment corresponds to non-speech data. The spectral entropy threshold can be selected within the range of 0.5-0.6. Preferably, the spectral entropy threshold can be selected as 0.55. It should be noted that the selection of the spectral entropy threshold can be reasonably selected according to the actual judgment requirements. The above is only a preferred embodiment and does not impose specific limits on this application.
[0033] In this optional embodiment, the subband energy of the audio data can be determined by the spectrum coefficient. The subband energy reflects the distribution of energy in different subbands, which helps to distinguish vowels, fricatives and silence in the audio data, and guides the synthesized high-frequency spectrum envelope to meet the characteristics of different audio types during neural network training. Silence usually has very little energy in all subbands; vowels have larger energy in low-frequency subbands, smaller energy in high-frequency subbands, and the energy decays rapidly; fricatives have smaller energy in low-frequency subbands, and larger energy in high-frequency subbands.
[0034] Specifically, under the condition that the sub-band energy of the low-frequency band is greater than the first energy threshold, the audio data contains vowels, and under the condition that the sub-band energy of the high-frequency band is greater than the second energy threshold, the audio data contains friction sounds. In order to facilitate the simple calculation of sub-band energy, the sub-band energies here are converted into normalized sub-band energies. The first energy threshold is 0.7, and the second energy threshold is 0.5. It should be noted that the selection of the first energy threshold and the second energy threshold can be reasonably selected according to the actual judgment requirements. The above is only a preferred embodiment and does not impose specific limits on this application.
[0035] Optionally, after encoding the audio data to a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain first feature parameters having vowel and fricative sound information, further comprising: feature extraction of the spectral coefficients to obtain the spectrum centroid, wherein, in a low-frequency band, under the condition that the spectrum centroid is less than a first threshold, the audio data contains vowels; and in a high-frequency band, under the condition that the spectrum centroid is greater than a second threshold, the audio data contains fricative sounds.
[0036] In this optional embodiment, for vowels contained in the audio data, the main spectrum energy is concentrated in the low frequency, and the spectrum centroid is relatively small; for fricative sounds in the audio data, the main spectrum energy is concentrated in the high frequency, and the spectrum centroid is relatively large, guiding the synthesized spectrum during neural network training to conform to the actual energy distribution. Therefore, under the condition that the spectrum centroid is less than the first threshold in the low frequency band, the audio data contains vowels; under the condition that the spectrum centroid is greater than the second threshold in the high frequency band, the audio data contains fricative sounds. The vowels and fricative sounds in the audio data are judged by the spectrum centroid. Among them, the value range of the first threshold is 0.3-0.4, and preferably, the first threshold is 0.35; the value range of the second threshold is 0.6-0.7, and preferably, the second threshold is 0.65. It should be noted that the selection of the first threshold and the second threshold can be reasonably selected according to the actual judgment requirements. The above is only a preferred embodiment and does not impose specific limits on this application.
[0037] The features of spectral entropy, subband energy, and spectral centroid in the first feature parameter are used to represent speech and non-speech, vowels, and fricatives in the audio data, thereby guiding the high-frequency spectrum synthesized during neural network training to conform to the features of different audio types. The present application reflects the features of vowels and fricatives in the audio data from different angles through the first feature parameter and the second feature parameter. By combining the two, the comprehensiveness of the feature parameters is ensured, thereby effectively improving the accuracy of the neural network during frequency band expansion.
[0038] Specifically, the audio data in PCM format is input, and the low-latency improved discrete cosine transform output spectral coefficients are completed, as briefly described below;
[0039] t(n)=x s (ZN F +n),forn=0…2·N F -1-Z
[0040] t(2n F -Z+n)=0,forn=0…Z-1
[0041]
[0042] k=0…N F -1
[0043] where x s (n) is the input time domain audio pcm signal. Taking the configuration of 8kHz and 10ms as an example, the length of one frame is 80 sampling points, that is, N F =80, X(k) is the frequency domain spectrum coefficient after discrete cosine transformation, which contains 80 effective spectrum coefficients.
[0044] exist Figure 1In the illustrated embodiment, the deep learning-based voice band expansion method of the present application includes process S102, resampling and long-term post-filter processing of the audio data, and feature extraction of the processed results to obtain a second feature parameter having vowel and fricative information.
[0045] In this implementation, in the encoding process of the original audio data, after completing the resampling and long-term post-filter processing, feature extraction is performed on the obtained processing result to obtain the second feature parameter reflecting the vowel and fricative information in the audio data. The second feature parameter includes a pitch presence flag, a normalized autocorrelation value, a pitch delay parameter, and a long-term post-filter activation parameter.
[0046] Optionally, the audio data is resampled and processed by a long-term post filter, and features are extracted from the processed results to obtain a second feature parameter having vowel and fricative sound information, including: processing the audio data by a long-term post filter to obtain a fundamental tone existence flag corresponding to the audio data, wherein under the condition that the fundamental tone existence flag is a first value, the audio data contains vowels, and under the condition that the fundamental tone existence flag is a second value, the audio data contains fricative sounds.
[0047] In this optional embodiment, after processing the resampled audio data using a long-term post-filter, relevant information is output to obtain a pitch existence flag Pitchresent. When the pitch existence flag is a first value 1, it indicates that the current frame of the currently encoded audio data is usually a vowel, and when the pitch existence flag is a second value 0, the current frame is generally a fricative sound, noise or silence. Therefore, the pitch existence flag can further reflect the distinction between vowels and fricative sounds in the audio data to be encoded. This provides guidance for the subsequent neural network model to perform frequency band expansion.
[0048] Optionally, the audio data is resampled and processed by a long-term post-filter, and features are extracted from the processed results to obtain second feature parameters having vowel and fricative sound information. The method also includes: processing the audio data by a long-term post-filter to obtain normalized autocorrelation values, pitch delay parameters and long-term post-filter activation parameters corresponding to the audio data.
[0049] In this optional embodiment, the normalized autocorrelation value is an important indicator of whether the fundamental tone exists. According to the LC3 specification, when it exceeds the threshold of 0.6, the fundamental tone existence flag is set to 1, indicating that the fundamental tone exists. Otherwise, it indicates that the fundamental tone does not exist or the fundamental tone of the current frame is at the beginning stage. The fundamental tone delay Pitch_lag indicates the specific value of the fundamental tone of the current frame in the encoded audio data; the long-term post-filter activation parameter Ltpf_active indicates whether the long-term post-filter is activated.
[0050] The first characteristic parameter and the second characteristic parameter mentioned above are important information for distinguishing vowels from fricatives. In the process of frequency band expansion of the neural network model, the high-frequency spectrum details generated during the training of the neural network are guided to conform to the characteristics of vowels or fricatives.
[0051] The calculation process of the first characteristic parameter is briefly described as follows:
[0052]
[0053] Where X(-1) = X(N F )=0
[0054] Subband division: Divide all spectral coefficients obtained from each frame of audio signal into uniform subbands. For example, when the sampling rate is 8kHz and the frame length is 10ms, the discrete cosine transform outputs 80 spectral coefficients for each frame of audio, which can be divided into 8 subbands, each with 10 spectral coefficients. The pseudo-spectral coefficients are: X pseudo (0), X pseudo (1), …X pseudo (79), the spectral coefficient of the first subband is: X pseudo (0), X pseudo (1), …X pseudo (9), the spectral coefficient of the second subband is: X pseudo (10), X pseudo (11), …X pseudo (19), the spectral coefficient of the 8th subband is: X pseudo (70), X pseudo (71), …X pseudo (79).
[0055] Subband energy calculation:
[0056]
[0057] As described above, in one embodiment, the subband number SUBBAND_NUM is 8 and the subband width SUBBAND_WIDTH is 10.
[0058] Calculate the total subband energy:
[0059]
[0060] Calculate the energy probability of each subband: SUBBAND_ENERYG_PROB(k)=SUBBAND ENERYG(k) / SUBBAND_ENERYG_TOTAL
[0061] For k=1to SUBBAND_NUM
[0062] Calculate the spectral entropy:
[0063]
[0064] The calculation of sub-band energy is detailed in the third step above.
[0065] Calculation of the spectrum centroid:
[0066]
[0067] exist Figure 1 In the illustrated implementation, the deep learning-based voice band extension method of the present application includes process S103, inputting the first feature parameter and the second feature parameter into a pre-trained neural network model to generate full-bandwidth spectrum coefficients corresponding to the audio data.
[0068] In this embodiment, after respectively obtaining the first characteristic parameter and the second characteristic parameter reflecting the vowel and fricative information in the encoded audio data, the frequency band of the audio data is expanded using a pre-trained neural network model to obtain full-bandwidth spectrum coefficients.
[0069] Optionally, the neural network pre-training model process includes: resampling the full-bandwidth speech to obtain narrow-band speech; extracting features from the narrow-band speech to obtain first feature parameters and second feature parameters corresponding to the narrow-band speech; and performing model training using the first feature parameters, second feature parameters and broadband language corresponding to the narrow-band speech, so that the trained network model can obtain the predicted bandwidth spectrum coefficients of the broadband speech based on the first feature parameters and second feature parameters corresponding to the narrow-band speech.
[0070] In this optional embodiment, when training the neural network model, when obtaining training data for training, prepare a wideband speech, for example, with an effective bandwidth of 8KHz, for training the neural network. The source of the wideband speech can be based on public speech materials or self-recording, where the sampling rate is 16kHz and its effective bandwidth is 8kHz. Then, by resampling, the wideband speech is resampled to 8kHz to generate a narrowband speech with an effective bandwidth of 4kHz. Then, feature extraction of the narrowband speech is performed to obtain the first feature parameter and the second feature parameter corresponding to the narrowband speech. That is, the spectral coefficient, spectral entropy, subband energy, spectral centroid and fundamental tone presence mark corresponding to the narrowband speech are obtained respectively. At the same time, the spectral coefficient of the wideband speech is obtained. The spectral coefficient of the narrowband speech is represented by X(k), k=0~79, and the spectral coefficient of the wideband speech is represented by X W(k), k = 0 to 159. In the training procedure of the neural network model, the first characteristic parameter, the second characteristic parameter, and the spectrum coefficient of the narrowband speech are input into the model for training to obtain the predicted bandwidth spectrum coefficient of the wideband speech.
[0071] Optionally, the neural network pre-training model process also includes: comparing the predicted bandwidth spectrum coefficient with the actual bandwidth spectrum coefficient of the broadband speech to obtain a comparison result; optimizing the network model according to the comparison result so that the error between the predicted bandwidth spectrum coefficient and the actual bandwidth spectrum coefficient is lower than a preset threshold.
[0072] In this optional embodiment, in order to ensure the processing effect of the trained neural network model, the predicted bandwidth spectrum coefficient output by the model and the actual bandwidth spectrum coefficient of the broadband language are compared, and then the neural network model is optimized according to the comparison results until the difference between the predicted bandwidth spectrum coefficient and the actual bandwidth spectrum coefficient is small enough to meet the conditions, and the training of the neural network model is completed.
[0073] Specifically, Figure 2 An example of the neural network model training process of the present application is shown.
[0074] exist Figure 2 In the example shown, the neural network model includes an offline training part and an actual use part of online reasoning. In the offline training part, first obtain a broadband speech, such as a broadband speech with a sampling rate of 16KHz and an effective bandwidth of 8KHz, and then perform broadband feature extraction on the broadband speech to obtain the spectrum coefficient of the broadband speech. In addition, the broadband speech is resampled to obtain a narrowband speech with a sampling rate of 8KHz and an effective bandwidth of 4KHz. Then, feature extraction is performed on the obtained narrowband speech to obtain the first feature parameter and the second feature parameter corresponding to the narrowband speech. The spectrum coefficient of the broadband speech, the spectrum coefficient of the narrowband speech, the first feature parameter and the second feature parameter are used to train the neural network. Under the condition that the difference between the predicted bandwidth spectrum coefficient and the actual bandwidth spectrum coefficient of the broadband speech is less than the preset threshold, the model training is completed and the neural network parameters are fixed. In the online reasoning stage of the neural network model, the corresponding full-bandwidth spectrum coefficient is obtained by processing the narrowband speech, and the frequency band is expanded. Then, the remaining encoding steps are performed on the narrowband speech that has completed the frequency band expansion, and the encoding is completed, and then it is sent to the receiving end through Bluetooth communication for decoding and displayed to the user. The neural network used in the present invention can be based on DNN, CNN, RNN, LSTM, etc., and this application is not limited.
[0075] Specifically, speech encoding and decoding is an integral process. After the audio encoding end expands the frequency band, the audio decoding end decodes the encoded result after the frequency band expansion accordingly. Therefore, before performing the frequency band expansion of the present application, it is necessary to determine whether the Bluetooth receiving end supports the decoding process of full-bandwidth speech. For example, if the sampling rate of the voice signal at the Bluetooth transmitting end is 8kHz, the parameters are negotiated with the Bluetooth receiving end at 16kHz: if the Bluetooth receiving end can receive 16kHz speech, the two parties establish a call connection at a sampling rate of 16kHz, and the Bluetooth transmitting end starts encoding of the frequency band expansion function; if the Bluetooth receiving end cannot support 16kHz speech and can only support 8kHz speech, the two parties establish a call connection at a sampling rate of 8kHz, and the Bluetooth transmitting end starts encoding in normal mode without performing the frequency band expansion process.
[0076] The deep learning-based voice band expansion method of the present application utilizes the parameters in the encoding process of the audio data and performs feature extraction to obtain the features of vowels and fricatives in the audio data, and when performing band expansion through the network model, fully considers the differences between vowels and fricatives in the original audio data, performs more accurate band expansion, improves the effect of band expansion, and enhances user experience. The present application can generate a full-band signal during encoding, effectively improving the sound quality and enhancing the user experience; in the reasoning process of the neural network model, the features used utilize the existing parameters of the LC3 encoder during encoding plus a small amount of calculation, avoiding the feature extraction operation of the time-frequency transform in the prior art; the present invention takes a narrowband speech signal with a sampling rate of 8kHz as an example, and the principle is also applicable to signals with other sampling rates, such as expanding a 16kHz speech signal to 24kHz or 32kHz; the present invention can be applied to a configuration with a frame length of 10ms and a configuration with a frame length of 7.5ms; the present invention takes the Bluetooth field as an example, and other fields can also be applied.
[0077] Figure 3 An embodiment of a voice band extension device based on deep learning of the present application is shown.
[0078] exist Figure 3 In the illustrated implementation manner, the deep learning-based speech band extension device of the present application includes: a first feature extraction module 301, which encodes the audio data into a low-delay improved discrete cosine transform, obtains the spectral coefficients corresponding to the audio data, and performs feature extraction to obtain a first feature parameter having vowel and fricative information; a second feature extraction module 302, which resamples and performs long-term post-filter processing on the audio data, and performs feature extraction on the processed result to obtain a second feature parameter having vowel and fricative information; a frequency band extension module 303, which inputs the first feature parameter and the second feature parameter into a pre-trained neural network model to generate full-bandwidth spectral coefficients corresponding to the audio data.
[0079] Optionally, in the first feature extraction module 301, feature extraction is performed on the spectral coefficients to obtain spectral entropy, wherein, under the condition that the spectral entropy is less than the spectral entropy threshold, the audio data of the segment corresponds to speech data; under the condition that the spectral entropy is not less than the spectral entropy threshold, the audio data of the segment corresponds to non-speech data; feature extraction is performed on the spectral coefficients to obtain subband energy, wherein under the condition that the subband energy of the low frequency band is greater than the first energy threshold, the audio data contains vowels, and under the condition that the subband energy of the high frequency band is greater than the second energy threshold, the audio data contains fricative sounds.
[0080] Optionally, in the first feature extraction module 301, feature extraction is performed on the spectral coefficients to obtain the spectrum centroid, wherein, in the low frequency band, when the spectrum centroid is less than a first threshold, the audio data contains vowels; and in the high frequency band, when the spectrum centroid is greater than a second threshold, the audio data contains friction sounds.
[0081] Optionally, in the second feature extraction module 302, the audio data is processed by a long-term post filter to obtain a fundamental tone existence flag corresponding to the audio data, wherein when the fundamental tone existence flag is a first value, the audio data contains vowels, and when the fundamental tone existence flag is a second value, the audio data contains fricative sounds.
[0082] Optionally, in the second feature extraction module 302, the audio data is processed by a long-term post-filter to obtain a normalized autocorrelation value, a pitch delay parameter, and a long-term post-filter activation parameter corresponding to the audio data.
[0083] Optionally, the neural network pre-training model process includes: resampling the full-bandwidth speech to obtain narrow-band speech; extracting features from the narrow-band speech to obtain first feature parameters and second feature parameters corresponding to the narrow-band speech; and performing model training using the first feature parameters, second feature parameters and broadband language corresponding to the narrow-band speech, so that the trained network model can obtain the predicted bandwidth spectrum coefficients of the broadband speech based on the first feature parameters and second feature parameters corresponding to the narrow-band speech.
[0084] Optionally, the neural network pre-training model process also includes: comparing the predicted bandwidth spectrum coefficient with the actual bandwidth spectrum coefficient of the broadband speech to obtain a comparison result; optimizing the network model according to the comparison result so that the error between the predicted bandwidth spectrum coefficient and the actual bandwidth spectrum coefficient is lower than a preset threshold.
[0085] The deep learning-based speech band expansion device of the present application utilizes parameters in the encoding process of audio data and performs feature extraction to obtain features about vowels and fricatives in the audio data. When performing frequency band expansion through a network model, it fully considers the differences between vowels and fricatives in the original audio data to perform more accurate frequency band expansion, improve the effect of frequency band expansion, and enhance user experience.
[0086] Figure 4 An embodiment of the audio coding method of the present application based on deep learning speech band extension is shown.
[0087] exist Figure 4 In the illustrated embodiment, the audio encoding method based on deep learning speech band expansion of the present application includes process S401, encoding the audio data to a low-delay improved discrete cosine transform, obtaining spectral coefficients corresponding to the audio data, and performing feature extraction to obtain first feature parameters having vowel and fricative sound information; process S402, resampling and long-term post-filter processing of the audio data, and performing feature extraction on the processed result to obtain second feature parameters having vowel and fricative sound information; process S403, inputting the first feature parameters and the second feature parameters into a pre-trained neural network model to generate full-bandwidth spectral coefficients corresponding to the audio data; process S404, updating the encoding parameters of the encoder, and continuing to encode the audio data according to the full-bandwidth spectral coefficients to obtain an encoding result having full-bandwidth spectral coefficients.
[0088] Specifically, after completing the bandwidth expansion, the encoding parameters of the encoder need to be updated so as to perform subsequent encoding on the audio data after the bandwidth expansion. The update of the encoder parameters is mainly N F For example, the audio data with a sampling rate of 8KHz and an effective bandwidth of 4KHz is band-expanded to broadband voice data with a sampling rate of 16KHz and a bandwidth of 8KHz. Therefore, in order to ensure the normal encoding of the audio data after the band expansion, the sampling rate is adjusted from 8KHz to 16KHz, and the number of single-frame spectral coefficients N is F Adjusted from 80 to 160. After the update is completed, the original bandwidth detection is skipped, and the bandwidth indication is set to WB, corresponding to a signal with an 8kHz bandwidth; and the remaining steps of the standard LC3 encoding are performed, including impulse detection, transform domain noise shaping, time domain noise shaping, quantization, noise level estimation, arithmetic coding residual coding and bitstream encapsulation, and finally the bitstream is output. For the specific description of process S401 to process S403, please refer to the description of the above embodiment, and this application will not repeat them here.
[0089] In a specific embodiment of the present application, a computer-readable storage medium stores computer instructions, wherein the computer instructions are operated to execute the voice band extension method based on deep learning or the audio encoding method based on deep learning voice band extension described in any embodiment. The storage medium can be directly in hardware, in a software module executed by a processor, or in a combination of the two.
[0090] The software modules may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from and write information to the storage medium.
[0091] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. In an alternative, the storage medium may be integrated with the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.
[0092] In a specific embodiment of the present application, a computer device includes a processor and a memory, the memory storing computer instructions, wherein: the processor operates the computer instructions to execute the deep learning-based voice band extension method or the deep learning-based voice band extension audio encoding method described in any embodiment.
[0093] In the embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0095] The above are merely embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structural transformations made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A voice band extension method based on deep learning, characterized in that: include: After encoding the audio data into a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain a first feature parameter having vowel and fricative information; Resampling and long-term post-filter processing are performed on the audio data, and feature extraction is performed on the processing result to obtain a second feature parameter having vowel and fricative information; The first characteristic parameter and the second characteristic parameter are input into a pre-trained neural network model to generate full-bandwidth spectrum coefficients corresponding to the audio data.
2. The voice band extension method based on deep learning according to claim 1, characterized in that: After encoding the audio data into a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain first feature parameters having vowel and fricative information, including: Performing feature extraction on the spectral coefficients to obtain spectral entropy, wherein, under the condition that the spectral entropy is less than a spectral entropy threshold, the audio data of the segment corresponds to speech data; under the condition that the spectral entropy is not less than the spectral entropy threshold, the audio data of the segment corresponds to non-speech data; Under the condition that the audio data is speech data, features are extracted from the spectral coefficients to obtain subband energy, wherein under the condition that the subband energy of the low frequency band is greater than a first energy threshold, the audio data contains vowels, and under the condition that the subband energy of the high frequency band is greater than a second energy threshold, the audio data contains fricative sounds.
3. The voice band extension method based on deep learning according to claim 2, characterized in that: After encoding the audio data into a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain first feature parameters having vowel and fricative information, further comprising: Feature extraction is performed on the spectral coefficients to obtain a spectrum centroid, wherein, in a low frequency band, under the condition that the spectrum centroid is less than a first threshold, the audio data contains vowels; in a high frequency band, under the condition that the spectrum centroid is greater than a second threshold, the audio data contains fricative sounds.
4. The voice band extension method based on deep learning according to claim 1, characterized in that: The resampling and long-term post-filter processing of the audio data and feature extraction of the processing result to obtain a second feature parameter having vowel and fricative information include: The audio data is processed by the long-term post-filter to obtain a fundamental tone existence flag corresponding to the audio data, wherein under the condition that the fundamental tone existence flag is a first value, the audio data contains vowels, and under the condition that the fundamental tone existence flag is a second value, the audio data contains fricative sounds.
5. The voice band extension method based on deep learning according to claim 4, characterized in that: The resampling and long-term post-filter processing of the audio data and feature extraction of the processing result to obtain a second feature parameter having vowel and fricative information also includes: The audio data is processed by the long-term post-filter to obtain a normalized autocorrelation value, a pitch delay parameter, and a long-term post-filter activation parameter corresponding to the audio data.
6. The voice band extension method based on deep learning according to claim 1, characterized in that: The pre-training model process of the neural network includes: Resample the full-bandwidth speech to obtain narrow-band speech; Performing feature extraction on the narrowband speech to obtain the first feature parameter and the second feature parameter corresponding to the narrowband speech; Model training is performed using the first feature parameter, the second feature parameter and the broadband speech corresponding to the narrowband speech, so that the trained network model can obtain the predicted bandwidth spectrum coefficient of the broadband speech according to the first feature parameter and the second feature parameter corresponding to the narrowband speech.
7. The voice band extension method based on deep learning according to claim 6, characterized in that: The neural network pre-training model process also includes: Comparing the predicted bandwidth spectrum coefficient with the actual bandwidth spectrum coefficient of the wideband speech to obtain a comparison result; The network model is optimized according to the comparison result so that the error between the predicted bandwidth spectrum coefficient and the actual bandwidth spectrum coefficient is lower than a preset threshold.
8. A voice band extension device based on deep learning, characterized in that: include: A first feature extraction module, which encodes the audio data into a low-delay improved discrete cosine transform, obtains spectral coefficients corresponding to the audio data, and performs feature extraction to obtain first feature parameters having vowel and fricative information; A second feature extraction module, which performs resampling and long-term post-filter processing on the audio data, and performs feature extraction on the processing result to obtain a second feature parameter having vowel and fricative information; A frequency band extension module inputs the first characteristic parameter and the second characteristic parameter into a pre-trained neural network model to generate full-bandwidth spectrum coefficients corresponding to the audio data.
9. An audio coding method based on deep learning speech band extension, characterized in that: include: After encoding the audio data into a low-delay improved discrete cosine transform, spectral coefficients corresponding to the audio data are obtained, and feature extraction is performed to obtain a first feature parameter having vowel and fricative information; Resampling and long-term post-filter processing are performed on the audio data, and feature extraction is performed on the processing result to obtain a second feature parameter having vowel and fricative information; Inputting the first characteristic parameter and the second characteristic parameter into a pre-trained neural network model to generate full-bandwidth spectrum coefficients corresponding to the audio data; The encoding parameters of the encoder are updated, and the audio data is further encoded according to the full-bandwidth spectrum coefficients to obtain an encoding result with full-bandwidth spectrum coefficients.
10. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed, the computer executes the voice band extension method based on deep learning according to any one of claims 1 to 7 or the audio encoding method based on deep learning voice band extension according to claim 9.
Citation Information
Patent Citations
Method for expanding artificial voice bandwidth
CN103258543B
LC3 encoding and decoding system, LC3 encoder and optimization method thereof
CN111833891A
