Audio encoding and decoding method, device, equipment, storage medium and product

Through feature splitting and merging of audio frames, combined with vector quantization mapping, the problem of high transmission bit rate in hybrid encoding is solved, and the efficiency of audio encoding and decoding is improved.

CN118609581BActive Publication Date: 2024-10-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411098135.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-22
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Among existing audio coding methods, hybrid coding has the problem of high transmission bit rate, resulting in low coding efficiency.

Method used

By obtaining the audio features of the audio frame, splitting them into first and second type features, merging the first type features based on inter-frame correlation, and performing vector quantization mapping to reduce the transmission bit rate.

Benefits of technology

On the basis of ensuring the encoding quality, the encoding efficiency is improved, the transmission bit rate is reduced, and the performance of audio encoding and decoding is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609581B_ABST
    Figure CN118609581B_ABST
Patent Text Reader

Abstract

The present application relates to an audio encoding and decoding method, device, equipment, storage medium and product. The method comprises: obtaining audio features of each audio frame in the audio to be encoded; splitting the audio features to obtain a first type of split features and a second type of split features of each audio frame, wherein the amount of information of the first type of split features is greater than the amount of information of the second type of split features; merging the first type of split features of each audio frame according to the inter-frame correlation of each audio frame to obtain an inter-frame merged feature corresponding to the first type of split features; vector quantization mapping of the inter-frame merged features to obtain a merged quantization feature, and vector quantization mapping of the second type of split features of each audio frame to obtain a target quantization feature; encoding conversion based on the merged quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded. The present method can improve the efficiency of audio encoding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an audio encoding and decoding method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of computer technology, audio coding technology has emerged. Common audio coding methods include waveform coding, parameter coding and hybrid coding. At present, hybrid coding that combines the advantages of waveform coding and parameter coding is usually used for audio coding, for example, Speex is used for audio coding. When hybrid coding is used for encoding, it not only utilizes analysis and synthesis technology, but also uses the waveform information of the audio signal, thereby significantly improving the quality of the audio signal. However, audio coding through hybrid coding methods has the problem of high transmission bit rate, which leads to reduced coding efficiency. Summary of the invention

[0003] Based on this, it is necessary to provide an audio encoding and decoding method, device, computer equipment, computer-readable storage medium and computer program product that can reduce the transmission bit rate and improve the encoding and decoding efficiency in response to the above technical problems.

[0004] In a first aspect, the present application provides an audio coding method. The method comprises:

[0005] Obtaining audio features of each audio frame in the audio to be encoded;

[0006] Splitting the audio features to obtain first-category split features of each audio frame and second-category split features of each audio frame, wherein the information content of the first-category split features is greater than that of the second-category split features;

[0007] The first-category split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merged features corresponding to the first-category split features;

[0008] Perform vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and perform vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features;

[0009] Encoding conversion is performed based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

[0010] In a second aspect, the present application further provides an audio encoding device. The device comprises:

[0011] A feature acquisition module, used to acquire audio features of each audio frame in the audio to be encoded;

[0012] A feature splitting module is used to split the audio features to obtain a first-category split feature of each audio frame and a second-category split feature of each audio frame, wherein the information content of the first-category split feature is greater than that of the second-category split feature;

[0013] A feature merging module, used to merge the first-category split features of each audio frame according to the inter-frame correlation of each audio frame to obtain an inter-frame merged feature corresponding to the first-category split features;

[0014] A quantization module is used to perform vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and to perform vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features;

[0015] The encoding module is used to perform encoding conversion based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

[0016] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0017] Obtaining audio features of each audio frame in the audio to be encoded;

[0018] Splitting the audio features to obtain first-category split features of each audio frame and second-category split features of each audio frame, wherein the information content of the first-category split features is greater than that of the second-category split features;

[0019] The first-category split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merged features corresponding to the first-category split features;

[0020] Perform vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and perform vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features;

[0021] Encoding conversion is performed based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

[0022] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0023] Obtaining audio features of each audio frame in the audio to be encoded;

[0024] Splitting the audio features to obtain first-category split features of each audio frame and second-category split features of each audio frame, wherein the information content of the first-category split features is greater than that of the second-category split features;

[0025] The first-category split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merged features corresponding to the first-category split features;

[0026] Perform vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and perform vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features;

[0027] Encoding conversion is performed based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

[0028] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0029] Obtaining audio features of each audio frame in the audio to be encoded;

[0030] Splitting the audio features to obtain first-category split features of each audio frame and second-category split features of each audio frame, wherein the information content of the first-category split features is greater than that of the second-category split features;

[0031] The first-category split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merged features corresponding to the first-category split features;

[0032] Perform vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and perform vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features;

[0033] Encoding conversion is performed based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

[0034] The above-mentioned audio encoding method, device, computer equipment, storage medium and computer program product obtain the audio features of each audio frame in the audio to be encoded. Then the audio features are split to obtain the first type of split features of each audio frame and the second type of split features of each audio frame, and the information amount of the first type of split features is greater than the information amount of the second type of split features. At this time, the first type of split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merge features corresponding to the first type of split features. The inter-frame merge features are vector quantized and mapped to obtain the merged quantized features, and the second type of split features of each audio frame are vector quantized and mapped to obtain the target quantized features. Finally, the merged quantized features and the target quantized features are encoded and converted to obtain the audio encoding result of the audio to be encoded. That is, the split features with large information amount are merged according to the inter-frame correlation, and then the merged features are quantized and encoded, so that the transmission bit rate can be reduced as much as possible, and the encoding efficiency can be improved on the basis of ensuring the encoding quality.

[0035] In a first aspect, the present application provides an audio decoding method. The method comprises:

[0036] Acquire audio coding data, and decode and convert the audio coding data to obtain a combined quantization feature and a target quantization feature;

[0037] The merged quantization feature is split based on the inter-frame correlation of each audio frame corresponding to the audio coding data to obtain the first type of split feature of each audio frame, and the second type of split feature of each audio frame is obtained based on the target quantization feature;

[0038] Merge the first-category split features and the second-category split features to obtain audio features of each audio frame;

[0039] Reconstruct the audio features of each audio frame to obtain the audio corresponding to the audio encoding data.

[0040] In a second aspect, the present application also provides an audio decoding device. The device comprises:

[0041] A decoding module is used to obtain audio coding data and decode and convert the audio coding data to obtain a combined quantization feature and a target quantization feature;

[0042] A splitting module, used for splitting the merged quantization features based on the inter-frame correlation of the audio coding data corresponding to each audio frame to obtain the first type of split features of each audio frame, and obtaining the second type of split features of each audio frame based on the target quantization features;

[0043] A merging module, used to merge the first type of split features and the second type of split features to obtain audio features of each audio frame;

[0044] The reconstruction module is used to reconstruct the audio based on the audio features of each audio frame to obtain the audio corresponding to the audio coding data.

[0045] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0046] Acquire audio coding data, and decode and convert the audio coding data to obtain a combined quantization feature and a target quantization feature;

[0047] The merged quantization feature is split based on the inter-frame correlation of each audio frame corresponding to the audio coding data to obtain the first type of split feature of each audio frame, and the second type of split feature of each audio frame is obtained based on the target quantization feature;

[0048] Merge the first-category split features and the second-category split features to obtain audio features of each audio frame;

[0049] Reconstruct the audio features of each audio frame to obtain the audio corresponding to the audio encoding data.

[0050] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0051] Acquire audio coding data, and decode and convert the audio coding data to obtain a combined quantization feature and a target quantization feature;

[0052] The merged quantization feature is split based on the inter-frame correlation of each audio frame corresponding to the audio coding data to obtain the first type of split feature of each audio frame, and the second type of split feature of each audio frame is obtained based on the target quantization feature;

[0053] Merge the first-category split features and the second-category split features to obtain audio features of each audio frame;

[0054] Reconstruct the audio features of each audio frame to obtain the audio corresponding to the audio encoding data.

[0055] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0056] Acquire audio coding data, and decode and convert the audio coding data to obtain a combined quantization feature and a target quantization feature;

[0057] The merged quantization feature is split based on the inter-frame correlation of each audio frame corresponding to the audio coding data to obtain the first type of split feature of each audio frame, and the second type of split feature of each audio frame is obtained based on the target quantization feature;

[0058] Merge the first-category split features and the second-category split features to obtain audio features of each audio frame;

[0059] Reconstruct the audio features of each audio frame to obtain the audio corresponding to the audio encoding data.

[0060] The above-mentioned audio decoding method, device, computer equipment, storage medium and computer program product obtain audio coding data and decode and convert the audio coding data to obtain the merged quantization feature and the target quantization feature. Then, the merged quantization feature is split based on the inter-frame correlation of each audio frame corresponding to the audio coding data to obtain the first type of split feature of each audio frame, and the second type of split feature of each audio frame is obtained based on the target quantization feature. The first type of split feature and the second type of split feature are merged to obtain the audio feature of each audio frame. Finally, the audio feature of each audio frame is reconstructed to obtain the audio corresponding to the audio coding data. That is, the first type of split feature of each audio frame is split by the decoded merged quantization feature through the inter-frame correlation, and then the second type of split feature of each audio frame is obtained using the target quantization feature. Finally, the first type of split feature and the second type of split feature are merged to obtain the audio feature of each audio frame, that is, by splitting and merging the quantization feature, the efficiency of obtaining the audio feature is improved. Then, the audio feature of each audio frame is used to reconstruct the audio corresponding to the audio coding data, which improves the efficiency of obtaining the audio, that is, improves the efficiency of audio decoding, and can improve the intelligibility of the obtained audio on the basis of ensuring the quality of the decoded audio. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A diagram showing an application environment of an audio coding method in an embodiment;

[0062] Figure 2 is a schematic flow chart of an audio encoding method in one embodiment;

[0063] Figure 3 A schematic diagram of a process of feature splitting in an embodiment;

[0064] Figure 4 A schematic diagram of audio feature division in a specific embodiment;

[0065] Figure 5 A schematic diagram of a process of feature splitting in another embodiment;

[0066] Figure 6A schematic diagram of audio feature division in another specific embodiment;

[0067] Figure 7 is a schematic diagram of partially merging vector quantization codebooks in a specific embodiment;

[0068] Figure 8 is a schematic diagram of some individual vector quantization codebooks in a specific embodiment;

[0069] Fig. 9 is a flowchart of an audio decoding method in an embodiment;

[0070] Fig.10 is a flowchart of an audio encoding method in a specific embodiment;

[0071] Fig.11 A schematic diagram of an application framework of an audio encoding method in a specific embodiment;

[0072] Fig.12 is a structural block diagram of an audio encoding device in one embodiment;

[0073] Fig.13 is a structural block diagram of an audio decoding device in one embodiment;

[0074] Fig.14 is an internal structure diagram of a computer device in one embodiment;

[0075] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0077] The audio encoding method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the audio acquisition device 102 communicates with the encoding end 104, and the encoding end 104 communicates with the decoding end 106 through the network. The encoding end 104 can obtain the audio to be encoded through the audio acquisition device 102, and then obtain the audio features of each audio frame in the audio to be encoded. The encoding end 104 splits the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame. The information amount of the first type of split features is greater than the information amount of the second type of split features. The encoding end 104 merges the first type of split features of each audio frame according to the inter-frame correlation of each audio frame to obtain the inter-frame merge features corresponding to the first type of split features. The encoding end 104 performs vector quantization mapping on the inter-frame merge features to obtain the merged quantization features, and performs vector quantization mapping on the second type of split features of each audio frame to obtain the target quantization features. The encoding end 104 performs encoding conversion based on the merged quantization features and the target quantization features to obtain the audio encoding result of the audio to be encoded. Finally, the encoding end 104 can transmit the audio encoding result to the decoding end 106 for decoding and use. Among them, both the encoding end 104 and the decoding end 106 can be computer devices, which can be terminals or servers. The terminal can be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be an individual physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a smart TV, etc., but is not limited to this. The encoding end and the decoding end can be directly or indirectly connected by wired or wireless communication, and this application is not limited here.

[0078] In one embodiment, Figure 2 As shown, an audio coding method is provided, which is applied to Figure 1 The encoding end in the example is used for explanation. It can be understood that the encoding end can be a terminal, a server, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the following steps are included:

[0079] S202: Acquire audio features of each audio frame in the audio to be encoded.

[0080] Among them, the audio to be encoded refers to the audio to be encoded, and the audio to be encoded can be audio in different languages, for example, the audio to be encoded can be Chinese audio, English audio, Japanese audio, etc. The audio to be encoded can also be audio with different accents, for example, the audio to be encoded can be audio in dialects of different regions. The audio to be encoded can also be voice audio, song audio, synthesized audio, etc. The audio to be encoded may include multiple audio frames. The multiple audio frames can be obtained by dividing the audio to be encoded into frames. An audio frame refers to the amount of data within a preset sampling time, and usually the amount of data in units of 2.5ms~60ms is one frame of audio. The audio feature is the result of numerically representing a certain attribute of the audio signal. The audio feature may include time domain features and frequency domain features. Preferably, the audio feature may be an MFCC (MelFrequency Cepstral Coefficient) feature, for example, it may be a 70-dimensional MFCC feature.

[0081] In some embodiments, the encoding end can directly obtain the audio features of each audio frame in the audio to be encoded. For example, when the encoding end is a server, the audio features of each audio frame in the audio to be encoded can be obtained from a database. When the encoding end is a terminal, the audio features of each audio frame in the audio to be encoded uploaded by the user can also be obtained.

[0082] In some embodiments, the encoding end can obtain the audio to be encoded through an audio acquisition device, and then extract the audio features of each audio frame in the audio to be encoded. The audio acquisition device can be a device integrated in the encoding end, or it can be a separate device. For example, the audio acquisition device can be a microphone, a recording device, a sound card device, etc. The encoding end can obtain the audio to be encoded from a third party, and the third party can be the Internet, other equipment with audio, and a service provider for extracting audio data services, etc. Then, feature extraction is performed on the audio to be encoded to obtain the audio features of each audio frame. The encoding end can also obtain the audio to be encoded from a database, and then extract the audio features of each audio frame in the audio to be encoded.

[0083] S204, split the audio features to obtain first-type split features of each audio frame and second-type split features of each audio frame, wherein the information content of the first-type split features is greater than that of the second-type split features.

[0084] Among them, the amount of information is used to characterize the amount of information contained in each feature dimension in the audio feature. The first type of split feature refers to the first type of feature obtained by splitting from the audio feature, and the amount of information contained in the feature dimension of the first type of feature is greater than the amount of information contained in other feature dimensions in the audio feature. The second type of split feature refers to the second type of feature obtained by splitting from the audio feature, and the amount of information contained in the feature dimension of the second type of split feature is less than the amount of information contained in the feature dimension of the first type of split feature. That is, the amount of information of the feature dimension in the first type of split feature is greater than the amount of information of the dimension in the second type of split feature. Moreover, when the first type of split feature includes multiple feature dimensions, the amount of information of the first feature dimension in the first type of split feature is also greater than the amount of information of the last feature dimension. Similarly, the amount of information of the first feature dimension in the second type of split feature is also greater than the amount of information of the last feature dimension. At this time, the amount of information of the last feature dimension in the first type of split feature is also greater than the amount of information of the first feature dimension in the second type of split feature. The amount of information of the split feature is positively correlated with the variance of the feature dimension in the corresponding split feature, that is, the greater the variance of the feature dimension in the split feature, the more information of the split feature.

[0085] In this embodiment, before performing vector quantization, the encoding end needs to decompose the audio features of each audio frame according to the amount of information of the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame. For example, the 70-dimensional MFCC features can be decomposed according to the amount of information contained in each feature dimension in the MFCC features to obtain each sub-vector feature. Each sub-vector feature includes the first type of split features and the second type of split features.

[0086] In some embodiments, the encoding end can obtain splitting information determined in advance based on the amount of information of the audio feature, and then split the audio feature according to the pre-set splitting information to obtain the first type of splitting features and the second type of splitting features, which can improve the splitting efficiency.

[0087] S206: Merge the first-category split features of each audio frame according to the inter-frame correlation of each audio frame to obtain an inter-frame merged feature corresponding to the first-category split features.

[0088] The inter-frame correlation of each audio frame is used to characterize the correlation between different audio frames. The closer the two audio frames are to each other, the higher the correlation between the audio frames. The inter-frame merge feature refers to the feature obtained by merging the first-class split features of all related audio frames.

[0089] In this embodiment, the encoding end may determine the relevant audio frames according to the inter-frame correlation of each audio frame, and then merge the first-class split features of all relevant audio frames to obtain the inter-frame merged features. The merging may be concatenating the first-class split features of all relevant audio frames, or performing feature operations, such as addition, subtraction, multiplication and division operations of feature vectors.

[0090] In one embodiment, the encoding end can obtain preset related audio frames, and then merge the first type of split features of all related audio frames to obtain inter-frame merged features, and unrelated audio frames obtain different inter-frame merged features.

[0091] S208, performing vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and performing vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features.

[0092] Among them, vector quantization (VQ) is a lossy compression technology based on block coding rules. The basic principle of vector quantization is to replace the input vector with the index of the codeword in the codebook that best matches the input vector for transmission and storage, and only a simple table lookup operation is required during decoding. The merged quantized feature is a feature obtained by vector quantization of the inter-frame merged feature. The merged quantized feature can be the feature that is most similar to the inter-frame merged feature in the cluster of the trained merged quantized feature. The target quantized feature refers to the feature obtained by vector quantization of the second-category split feature. The target quantized feature can be the feature that is most similar to the target quantized feature in the cluster of the trained second-category split feature.

[0093] In this embodiment, when performing vector quantization mapping, the encoding end may obtain a pre-trained vector quantization codebook, and then use the vector quantization codebook to perform vector quantization mapping on the corresponding features. Different features are pre-trained with corresponding vector quantization codebooks. Then, the vector quantization feature most similar to the inter-frame merged feature is searched in the vector quantization codebook corresponding to the inter-frame merged feature, and the most similar vector quantization feature is used as the merged quantization feature corresponding to the inter-frame merged feature. At the same time, the encoding end searches for the vector quantization feature most similar to the second-class split feature in the vector quantization codebook corresponding to the second-class split feature, and uses the most similar vector quantization feature as the target quantization feature corresponding to the second-class split feature. The encoding end traverses each inter-frame merged feature and each second-class split feature. When the traversal is completed, the merged quantization features corresponding to all inter-frame merged features and the target quantization features corresponding to all second-class split features are obtained.

[0094] S210, performing encoding conversion based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

[0095] In this embodiment, encoding conversion refers to the conversion of features after vector quantization mapping into data in a compressed format for easy storage and transmission. The audio encoding result of the audio to be encoded refers to the compressed data that is easy to store and transmit. For example, the compression format can be a binary format, and the audio encoding result of the audio to be encoded can be binary audio encoding data. The encoding end performs encoding conversion on the merged quantization features and the target quantization features according to the pre-set encoding conversion format. For example, each merged quantization feature can be binary-encoded to obtain the binary data corresponding to each merged quantization feature, and each target quantization feature can be binary-encoded to obtain the binary data corresponding to each target quantization feature. Finally, all the binary data are spliced ​​to obtain the audio encoding result of the audio to be encoded.

[0096] In some embodiments, the encoding end may also obtain the pre-set index information of the merged quantization feature and the target quantization feature, and use the index information of all the merged quantization features and the index information of all the target quantization features as the audio encoding result of the audio to be encoded. Since the merged quantization feature and the target quantization feature are both features in the vector quantization codebook, that is, when the vector quantization codebook is trained, the index information of each feature in the vector quantization codebook can be generated, so that the index information can be used as the encoding result.

[0097] The above-mentioned audio encoding method, device, computer equipment, storage medium and computer program product obtain the audio features of each audio frame in the audio to be encoded. Then the audio features are split to obtain the first type of split features of each audio frame and the second type of split features of each audio frame, and the information amount of the first type of split features is greater than the information amount of the second type of split features. At this time, the first type of split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merge features corresponding to the first type of split features. The inter-frame merge features are vector quantized and mapped to obtain the merged quantized features, and the second type of split features of each audio frame are vector quantized and mapped to obtain the target quantized features. Finally, the merged quantized features and the target quantized features are encoded and converted to obtain the audio encoding result of the audio to be encoded. That is, the split features with large information amount are merged according to the inter-frame correlation, and then the merged features are quantized and encoded, so that the transmission bit rate can be reduced as much as possible, and the encoding efficiency can be improved on the basis of ensuring the encoding quality.

[0098] In one embodiment, S204, that is, splitting the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame, includes the steps of:

[0099] Based on the amount of information of each feature dimension in the audio feature, determine the first splitting dimension range corresponding to the first type of splitting feature and the second splitting dimension range corresponding to the second type of splitting feature; split the audio feature according to the first splitting dimension range corresponding to the first type of splitting feature to obtain the first type of splitting feature; split the audio feature according to the second splitting dimension range corresponding to the second type of splitting feature to obtain the second type of splitting feature.

[0100] Among them, the dimension range refers to the range of feature dimensions that need to be split from the audio feature, and is a range including the starting dimension and the ending dimension. The first split dimension range refers to the dimension range of the first type of split features that need to be split in the audio feature, that is, the feature values ​​in the first type of split features are the feature values ​​within the first split dimension range in the audio feature. The second split dimension range refers to the dimension range of the second type of split features that need to be split in the audio feature, that is, the feature values ​​in the second type of split features are the feature values ​​within the second split dimension range in the audio feature. For example, the audio feature is a 70-dimensional MFCC feature. The first split dimension range is 1 to 10, and the second split dimension range can be 10 to 70, then the audio feature is split into feature values ​​from the 1st dimension to the 10th dimension, thereby obtaining the first type of split features, and the feature values ​​of the remaining dimensions are used as the second type of split features. Feature dimensions are used to characterize the feature values ​​contained in the feature, and different feature dimensions can have different feature values ​​or the same features. The audio feature includes at least two feature dimensions, and the sum of the first split dimension range and the second split dimension range is equal to the sum of the feature dimensions of the audio feature.

[0101] In this embodiment, the encoding end can determine the first split dimension range from the feature dimension of the audio feature according to the amount of information of each feature dimension in the audio feature, and then determine the second split dimension range according to the feature dimension of the audio feature and the first split dimension range. At this time, the encoding end divides the feature values ​​in the audio feature according to the first split dimension range and the second split dimension range, that is, the feature values ​​in the first split dimension range in the audio feature are obtained as the first type of split features, and then the feature values ​​in the second split dimension range in the audio feature are obtained as the second type of split features.

[0102] In one embodiment, the encoding end can obtain a split dimension range that is pre-set according to the amount of information of each feature dimension in the audio feature, and then split the audio feature according to the pre-set split dimension range to obtain a first type of split feature and a second type of split feature. The pre-set split dimension range can be determined based on human experience or according to the amount of information of the feature dimension in the audio feature. By directly using the pre-set split dimension range for splitting, feature splitting can be completed quickly, thereby improving the efficiency of feature splitting.

[0103] In one embodiment, the amount of information of the first type of split features is positively correlated with the variance of each feature dimension in the first type of split features, and the amount of information of the second type of split features is positively correlated with the variance of each feature dimension in the first type of split features. That is, the larger the variance of each feature dimension in the first type of split features, the larger the amount of information of the first type of split features, and the variance of each feature dimension in the first type of split features is greater than the variance of each feature dimension in the second type of split features, that is, the amount of information of the feature is determined by the variance of the feature dimension in the feature, which can make the amount of information specific, and can avoid splitting features with large variance into second type of split features and features with small variance into first type of split features, thereby improving the accuracy of the obtained amount of information, and thus improving the accuracy of the obtained split features. In some embodiments, the positive correlation can be a positive proportional relationship, that is, the amount of information of the first type of split features is positively proportional to the variance of each feature dimension in the first type of split features, and the amount of information of the second type of split features is positively proportional to the variance of each feature dimension in the first type of split features.

[0104] In the above embodiment, the split dimension range is determined by using the amount of information. Then the audio features are split according to the split dimension range to obtain the first type of split features and the second type of split features, so that the amount of information of the first type of split features is greater than the amount of information of the second type of split features, that is, the accuracy of feature splitting is improved.

[0105] In one embodiment, the first type of split features include energy dimension features, and the second type of split features include various non-energy dimension features;

[0106] like Figure 3 As shown, S204, that is, splitting the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame, includes:

[0107] S302, determining an energy dimension range corresponding to the energy dimension feature and a non-energy dimension range corresponding to each non-energy dimension feature based on the information amount of each feature dimension in the audio feature.

[0108] S304, determining a corresponding energy dimension value from the audio feature according to the energy dimension range, and using the energy dimension value as the energy dimension feature.

[0109] S306, determining corresponding non-energy dimension values ​​from the audio features in sequence according to the non-energy dimension ranges corresponding to the non-energy dimension features, and determining each non-energy dimension feature based on the non-energy dimension value.

[0110] Among them, the audio feature can represent the distribution of the energy of the audio signal spectrum in different frequency intervals. At this time, the energy dimension feature is a feature used to characterize the volume (ie, energy) of the audio frame. The non-energy dimension feature is the energy information used to characterize the spectrum of the audio frame. The energy dimension range refers to the dimensional range where the characteristic value in the energy dimension feature of the audio feature is located. When the energy dimension feature has only one dimension, the dimensional range is one-dimensional. The non-energy dimension range refers to the dimensional range where the characteristic value in each non-energy dimension feature in the audio feature is located. Different non-energy dimension features can have different amounts of information, and the amount of information of the non-energy dimension feature is positively correlated with the variance of the characteristic value in the non-energy dimension feature. Generally, the non-energy dimension feature with a larger termination dimension in the non-energy dimension range contains less information, and the non-energy dimension feature with a smaller termination dimension in the non-energy dimension range contains more information. Different non-energy dimension features correspond to different dimensional ranges.

[0111] In this embodiment, the encoding end can determine the energy dimension range according to the amount of information of each feature dimension in the audio feature, and then determine each non-energy dimension range according to the amount of information of each feature dimension in the audio feature. In some embodiments, the encoding end can obtain the features corresponding to each dimensional range based on human experience, and then calculate the variance of the feature dimension in the features corresponding to each dimensional range, and determine the amount of information of each dimensional range according to the size of the variance. Finally, the dimensional range with the largest amount of information can be used as the energy dimension range, and the other dimensional ranges can be used as the non-energy dimension range. At this time, the encoding end determines the corresponding energy dimension value from the audio feature according to the energy dimension range, and uses the energy dimension value as the energy dimension feature. The encoding end can directly use the energy dimension feature as the first type of split feature. At the same time, the corresponding non-energy dimension value is determined from the audio feature in sequence according to the non-energy dimension range corresponding to each non-energy dimension feature, and all non-energy dimension values ​​corresponding to each non-energy dimension range are used as the corresponding non-energy dimension feature. The encoding end can use each non-energy dimension feature as a different second type of split feature.

[0112] In some embodiments, the energy dimension range and each non-energy dimension range can be determined in advance according to the information amount of each feature dimension in the audio feature. Then, when performing feature splitting, the pre-set energy dimension range and each non-energy dimension range are directly obtained for splitting. For example, Figure 4As shown, it is a schematic diagram of audio feature division, where, when the audio feature is a 70-dimensional MFCC feature, the first dimension of the MFCC feature is the energy dimension, and the eigenvalue of the first dimension is used as the energy dimension feature. Then, the MFCC features from the second dimension to the 70th dimension are used to determine the range of each non-energy dimension according to the amount of information, for example, it can be the second dimension to the fourth dimension, the fifth dimension to the seventh dimension, the eighth dimension to the tenth dimension, the eleventh dimension to the fourteenth dimension, the fifteenth dimension to the twenty-second dimension, the twenty-third dimension to the thirty-third dimension, the thirty-first dimension to the fifty-third dimension, and the fifty-first dimension to the seventieth dimension. Then, the corresponding eigenvalue is directly determined from the MFCC feature according to each non-energy dimension range, thereby obtaining each non-energy dimension feature.

[0113] In the above embodiment, the energy dimension range and each non-energy dimension range are determined according to the amount of information, and finally the energy dimension features and each non-energy dimension features are obtained by splitting the audio features according to the energy dimension range and each non-energy dimension range. That is, the second type of split features can also be further split into different features according to the amount of information, thereby further improving the accuracy of feature splitting.

[0114] In one embodiment, the first type of split features include energy dimension features and first type non-energy dimension features, and the second type of split features include second type non-energy dimension features;

[0115] like Figure 5 As shown, S204, split the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame, including:

[0116] S502, based on the amount of information of each feature dimension in the audio feature, determine the energy dimension range corresponding to the energy dimension feature, the first type of non-energy dimension range corresponding to the first type of non-energy dimension features, and the second type of non-energy dimension range corresponding to each second type of non-energy dimension feature.

[0117] S504, determining a corresponding energy dimension value from the audio feature according to the energy dimension range, and using the energy dimension value as the energy dimension feature.

[0118] S506, determining the corresponding first-class non-energy dimension values ​​from the audio features in turn according to the first-class non-energy dimension ranges corresponding to the first-class non-energy dimension features, and determining each first-class non-energy dimension feature based on the first-class non-energy dimension value.

[0119] S508, determining the corresponding second-class non-energy dimension values ​​from the audio features in turn according to the second-class non-energy dimension ranges corresponding to each second-class non-energy dimension feature, and determining each second-class non-energy dimension feature based on the second-class non-energy dimension value.

[0120] It is understandable that the encoding end can also use the non-energy dimension feature as the first type of splitting feature. In this case, the non-energy dimension feature is the first type of non-energy dimension feature included in the first type of splitting feature. The first type of non-energy dimension feature included in the first type of splitting feature may include at least one. That is, when the encoding end splits the audio feature, it first determines the dimension range to be split according to the amount of information of each feature dimension in the audio feature, and can determine the energy dimension range, each first type of non-energy dimension range and each second type of non-energy dimension range. Then, the corresponding dimension value is split from the audio feature according to the energy dimension range to obtain the energy dimension feature, and the corresponding dimension value is split from the audio feature according to each first type of non-energy dimension range to obtain each first type of non-energy dimension feature, and the corresponding dimension value is split from the audio feature according to each second type of non-energy dimension range to obtain each second type of non-energy dimension feature. Usually, the amount of information of the first type of non-energy dimension feature is greater than that of the second type of non-energy dimension feature. For example, Figure 6 As shown, it is a schematic diagram of audio feature division, wherein, when the audio feature is a 70-dimensional MFCC feature, the first dimension of the MFCC feature is the energy dimension, and the eigenvalue of the first dimension is used as the energy dimension feature. Then, the MFCC features of the 2nd to 30th dimensions are used to determine the first-class non-energy dimension features according to the amount of information, for example, the 2nd to 4th dimensions, the 5th to 7th dimensions, the 8th to 10th dimensions, the 11th to 14th dimensions, the 15th to 22nd dimensions, and the 23rd to 30th dimensions. Then, the corresponding eigenvalues ​​are directly determined from the MFCC features according to the range of each first-class non-energy dimension to obtain each first-class non-energy dimension feature. Then, the MFCC features of the 30th to 70th dimensions are used to determine the range of each second-class non-energy dimension according to the amount of information, for example, the 31st to 50th dimensions and the 51st to 70th dimensions. Then, the corresponding eigenvalues ​​are directly determined from the MFCC features according to the range of each second-class non-energy dimension, thereby obtaining each second-class non-energy dimension feature.

[0121] In the above embodiment, the energy dimension range, the first type of non-energy dimension range, and the second type of non-energy dimension range are determined according to the amount of information of each feature dimension in the audio feature. Then, the energy dimension feature, the first type of non-energy dimension feature, and the second type of non-energy dimension feature are separated from the audio feature according to the energy dimension range, the first type of non-energy dimension range, and the second type of non-energy dimension range, so that the first type of non-energy dimension feature with more information can also be merged and encoded according to the inter-frame correlation in the subsequent feature merging process, so as to further reduce the transmission bit rate and improve the audio coding efficiency.

[0122] In one embodiment, S206, the first-category split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merged features corresponding to the first-category split features, including:

[0123] The number of merged frames is obtained, and at least two related audio frame combinations are determined from each audio frame based on the inter-frame correlation of each audio frame and the number of merged frames, wherein the related audio frame combination includes related audio frames of the number of merged frames; first-category split features corresponding to the related audio frames of the number of merged frames are respectively merged to obtain inter-frame merged features corresponding to the related audio frame combination; at least two related audio frame combinations are traversed to obtain inter-frame merged features corresponding to at least two related audio frame combinations.

[0124] The number of merged frames refers to the number of audio frames to be feature merged in the pre-set audio frames, and the number of merged frames can be determined based on the inter-frame correlation of the audio frames, or can be determined by a pre-test. The related audio frame combination refers to a combination formed by related audio frames. Each related audio frame combination includes related audio frames of the number of merged frames.

[0125] In this embodiment, the encoding end can obtain a preset number of merged frames. Then, the audio frames of the merged frame number can be obtained in sequence according to the time sequence of each audio frame and combined to obtain each related audio frame combination. At this time, the encoding end merges all the first-class split features corresponding to each related audio frame combination, for example, it can be directly spliced, or the sum of the features can be calculated, or the product of the features can be calculated, etc., so as to obtain the inter-frame merged features corresponding to each related audio frame combination. For example, there are 12 audio frames in the audio to be encoded, and the number of merged frames is 3. At this time, the adjacent 3 audio frames can be combined in sequence to obtain 4 related audio frame combinations. At this time, all the first-class split features corresponding to the 4 related audio frame combinations are merged to obtain the inter-frame merged features corresponding to the 4 related audio frame combinations.

[0126] In one embodiment, the number of merged frames corresponding to the energy dimension feature may be different from the number of merged frames corresponding to the first type of non-energy dimension feature. For example, the number of merged frames corresponding to the energy dimension feature may be 3 frames, and the number of merged frames corresponding to the first type of non-energy dimension feature may be 2 frames. That is, different features use different numbers of merged frames for feature merging and encoding, which can improve encoding efficiency while ensuring encoding quality.

[0127] In some embodiments, the first type of split features include energy dimension features and first type non-energy dimension features. At this time, when the encoder merges the first type of split features, it can obtain the number of merged frames of the energy dimension features and the number of merged frames of the first type non-energy dimension features. The number of merged frames of the energy dimension features and the number of merged frames of the first type non-energy dimension features can be the same or different. Then the encoder determines at least two energy dimension audio frame combinations from each audio frame according to the number of merged frames of the energy dimension features and the inter-frame correlation of each audio frame. Each energy dimension audio frame combination includes audio frames with a corresponding number of merged frames. Then, the energy dimension features corresponding to all audio frames in the same energy dimension audio frame combination are merged to obtain the energy dimension merged feature corresponding to each energy dimension audio frame combination, and the energy dimension merged feature is used as the inter-frame merged feature. At the same time, the encoding end determines at least two first-class audio frame combinations from each audio frame according to the number of merged frames of the first-class non-energy dimensional features and the inter-frame correlation of each audio frame, each first-class audio frame combination includes audio frames of the corresponding number of merged frames, and then merges the first-class non-energy dimensional features corresponding to all audio frames in each first-class audio frame combination to obtain the first-class non-energy dimensional merged features corresponding to the first-class audio frame combination, and uses the first-class non-energy dimensional merged features as inter-frame merged features. That is, by merging the energy dimensional features and each first-class non-energy dimensional features respectively, the inter-frame merged features corresponding to the energy dimensional features and the inter-frame merged features corresponding to the first-class non-energy dimensional features are obtained, thereby improving the accuracy of the obtained inter-frame merged features.

[0128] In the above embodiment, at least two related audio frame combinations are determined according to the number of merged frames, and then the related audio frame combinations are merged according to the corresponding first-category splitting features to obtain corresponding inter-frame merging features, that is, merging is performed by merging the number of merged frames, which can improve the encoding efficiency while ensuring the encoding quality.

[0129] In some embodiments, traversing at least two related audio frame combinations to obtain inter-frame merging features corresponding to at least two related audio frame combinations respectively includes the steps of:

[0130] Obtain each uncombined audio frame, and when the number of each uncombined audio frame is less than the number of merged frames, determine the audio frames to be copied from each uncombined audio frame, and calculate the difference between the number of merged frames and the number of uncombined audio frames to obtain the number to be copied; copy the audio frames to be copied based on the number to be copied to obtain copied audio frames, and combine the uncombined audio frames and the copied audio frames to obtain a copied audio frame combination; merge the first type of split features corresponding to each audio frame in the copied audio frame combination to obtain the inter-frame merge features corresponding to the copied audio frame combination.

[0131] Among them, the uncombined audio frame refers to the audio frame that has not yet formed a combination among the audio frames of the audio to be encoded. The audio frame to be copied refers to the audio frame that needs to be copied itself, which is determined from the uncombined audio frames. For example, the audio frame to the last time can be obtained according to the time sequence of the audio frames as the audio frame to be copied. For example, when there is only one uncombined audio frame, the uncombined audio frame can be directly used as the audio frame to be copied. The number to be copied refers to the number of audio frames missing in the relevant audio frame combination. The copied audio frame refers to the audio frame obtained by copying the audio frame itself. The copied audio frame combination refers to the relevant audio frame combination including the copied audio frame.

[0132] In this embodiment, the encoding end determines that when the number of each uncombined audio frame is greater than the number of merged frames, it means that the combination has not been completed at this time. At this time, the audio frames of the adjacent merged frames are continuously combined in time order from each uncombined audio frame to obtain a related audio frame combination. Then the encoding end determines that when the number of each uncombined audio frame is less than the number of merged frames, it means that the remaining audio frames cannot be combined to obtain a related audio frame combination. At this time, the encoding end determines the number of missing audio frames, that is, calculates the difference between the number of merged frames and the number of uncombined audio frames to obtain the number to be copied. Since the related audio frame combination is all related audio frames, and the audio frame is most related to itself, it can be understood that the audio frame missing in the related audio frame combination is obtained by copying the audio frame itself. At this time, the encoding end can copy the audio frame to be copied according to the number of missing audio frames to obtain the audio frame copied by itself, and then combine the audio frame copied by itself with each uncombined audio frame to obtain the copied audio frame combination. Finally, the encoding end splices the first type of split features corresponding to each audio frame in the copied audio frame combination to obtain the corresponding inter-frame merge features.

[0133] In a specific embodiment, there are 13 audio frames in the audio to be encoded, and the number of merged frames is 3. At this time, the three adjacent audio frames can be combined in sequence to obtain four related audio frame combinations and one remaining uncombined audio frame. At this time, the encoder copies the remaining audio frame to obtain two copied audio frames, and then combines the remaining audio frame and the two copied audio frames to obtain the fifth related audio frame combination. Finally, the encoder merges all the first-category split features corresponding to the five related audio frame combinations to obtain the inter-frame merge features corresponding to the five related audio frame combinations.

[0134] In the above embodiment, by obtaining each uncombined audio frame, when the number of each uncombined audio frame is less than the number of merged frames, the audio frame to be copied is copied according to the number to be copied to obtain a copied audio frame, and each uncombined audio frame and the copied audio frame are combined to obtain a copied audio frame combination. Finally, the first type of split features corresponding to each audio frame in the copied audio frame combination are merged to obtain an inter-frame merge feature corresponding to the copied audio frame combination, that is, by combining with the audio frame that is copied itself, a related audio frame combination is obtained and then feature merging is performed to obtain an inter-frame merge feature, which can avoid the problem that the remaining audio frames cannot be merged and cannot be encoded, improve the accuracy of the obtained inter-frame merge feature, and thus improve the accuracy of audio encoding.

[0135] In one embodiment, S208, i.e., performing vector quantization mapping on the inter-frame merged features to obtain the merged quantized features, comprises the steps of:

[0136] A merged vector quantization codebook corresponding to the inter-frame merged feature is obtained, where the merged vector quantization codebook includes each merged quantization codeword; the similarity between the inter-frame merged feature and each merged quantization codeword is calculated, and a target merged quantization codeword is determined from each merged quantization codeword based on the similarity; and the target merged quantization codeword is used as the merged quantization feature.

[0137] Among them, the merged vector quantization codebook refers to the codebook used when merging inter-frame merged features for vector quantization. The codebook can be obtained by clustering training using inter-frame merged features during training, that is, clustering is performed using inter-frame merged features during training to obtain various cluster clusters, and the centroid vector features of each cluster cluster are used as merged quantization codewords to obtain the codebook. The merged vector quantization codebook includes various merged quantization codewords, and the merged quantization codewords refer to the vector quantization features obtained by clustering training. The target merged quantization codeword refers to the vector quantization feature after vector quantization mapping corresponding to the inter-frame merged features of the audio to be encoded.

[0138] In this embodiment, when performing vector quantization mapping, the encoding end can obtain the merged vector quantization codebook corresponding to the inter-frame merged feature from the database, or can obtain the pre-set merged vector quantization codebook, or can obtain the uploaded merged vector quantization codebook. At this time, the encoding end calculates the similarity between the inter-frame merged feature and each merged quantization codeword through a similarity algorithm. The similarity algorithm can be a distance similarity algorithm, for example, a Euclidean distance algorithm, a cosine distance algorithm, and the like. Then the encoding end sorts the similarity of each merged quantization codeword, and selects the merged quantization codeword with the maximum similarity as the merged quantization feature according to the sorting result.

[0139] In the above embodiment, by calculating the similarity between the inter-frame merged features and each merged quantization codeword in the merged vector quantization codebook, and determining the merged quantization features from each merged quantization codeword based on the similarity, that is, using the merged vector quantization codebook to determine the merged quantization features, the efficiency and accuracy of the obtained merged quantization features can be improved.

[0140] It is understandable that the merged vector quantization codebook may be pre-trained or may be trained in real time. In some embodiments, obtaining the merged vector quantization codebook corresponding to the inter-frame merged feature includes the steps of:

[0141] The training audio features of each training audio frame are obtained; the training audio features are split based on the information amount of each feature dimension in the training audio features to obtain the first-category training split features of each training audio frame; the first-category training split features of each training audio frame are merged according to the inter-frame correlation of each training audio frame to obtain each training merged feature; cluster training is performed based on each training merged feature to obtain each first-category clustering cluster, and a merged vector quantization codebook is obtained based on the cluster center features in each first-category clustering cluster.

[0142] Among them, the training audio frame refers to the audio frame used in training. The training audio feature is the feature corresponding to the training audio frame, which can be an MFCC feature. The first-category training split feature refers to the first-category split feature during training, which is a split feature that needs to be merged. The split feature is a feature obtained by splitting the training audio feature and is part of the training audio feature. Usually, the amount of information in the first-category training split feature is greater than the amount of information in the remaining audio features in the training audio feature. The training merge feature refers to the inter-frame merge feature used in training. The first-category cluster refers to the category set aggregated from the training merge features, and different categories of training merge features belong to different first-category clusters.

[0143] Specifically, the encoding end can obtain the training audio features of each training audio frame from the database, or can obtain the training audio features of each training audio frame from the service provider providing data services. The encoding end can also obtain the training audio, then divide the training audio into frames to obtain each training audio frame, and then extract the training audio features of each training audio frame. Then the encoding end splits the training audio features according to the amount of information of each feature dimension in the training audio features to obtain the first type of training split features of each training audio frame, wherein the first type of training split features can be split from the training audio features according to the dimensional range of the first type of training split features, and the dimensional range of the first type of training split features is determined according to the amount of information of the training audio features. Then the encoding end can obtain the number of merged frames, merge the first type of training split features of each training audio frame according to the number of merged frames and the correlation between frames, and obtain each training merged feature, wherein different types of first type of training split features can have different numbers of merged frames, for example, the energy dimension features included in the first type of training split features during training and the first type of non-energy dimension features included in the first type of training split features during training can have different numbers of merged frames. Then the encoder uses each training merge feature as a training sample for cluster training and performs cluster training using a clustering algorithm. When the cluster training is completed, each first-class cluster cluster is obtained, where the clustering algorithm can be a K-means clustering algorithm, an LBG (approaching the optimal regeneration codebook through a training vector set and a certain iterative algorithm) algorithm, etc. Finally, the encoder calculates the cluster center feature in each first-class cluster cluster, that is, it can calculate the mean of all training merge features in the first-class cluster cluster to obtain the cluster center feature, and then use all cluster center features as a merged vector quantization codebook, which is the codebook corresponding to the inter-frame merge feature. For example, Figure 7 , which is a schematic diagram of a partial merged vector quantization codebook, wherein each dot identifies a cluster center of a different first-class cluster, and each cluster center is used as a merged quantization codeword to obtain a merged vector quantization codebook.

[0144] In one embodiment, cluster training is performed using the training merged features corresponding to the energy dimension features to obtain a merged vector quantization codebook corresponding to the energy dimension features, and cluster training is performed using the training merged features corresponding to the first type of non-energy dimension features to obtain a merged vector quantization codebook corresponding to the first type of non-energy dimension features. Then, the merged vector quantization codebook corresponding to the energy dimension features is used to perform vector quantization mapping on the inter-frame merged features corresponding to the energy dimension features, and the merged vector quantization codebook corresponding to the first type of non-energy dimension features is used to perform vector quantization mapping on the inter-frame merged features corresponding to the first type of non-energy dimension features, thereby obtaining merged quantization features corresponding to the energy dimension features and merged quantization features corresponding to the first type of non-energy dimension features.

[0145] In the above embodiment, cluster training is performed by using each training merge feature to obtain each first-class cluster cluster, and a merged vector quantization codebook is obtained based on the cluster center features in each first-class cluster cluster, that is, the optimal codebook can be searched through cluster training, thereby improving the accuracy of the merged vector quantization codebook.

[0146] In one embodiment, S208, that is, performing vector quantization mapping on the second type split features of each audio frame to obtain target quantized features, includes the steps of:

[0147] Obtain an individual vector quantization codebook corresponding to the second type of split feature, the individual vector quantization codebook including each individual quantization codeword; calculate the similarity between the second type of split feature and each individual quantization codeword, and determine the target individual quantization codeword from each individual quantization codeword based on the similarity, and use the target individual quantization codeword as the target quantization feature; traverse the second type of split feature of each audio frame in turn to obtain the target quantization feature of each audio frame.

[0148] Among them, the individual vector quantization codebook refers to the codebook used when vector quantizing the second type of split features. The codebook can be obtained by clustering training using the second type of split features during training, that is, clustering is performed using the second type of split features during training to obtain each cluster cluster, and the centroid vector feature of each cluster cluster is used as the merged quantization codeword to obtain the codebook. The individual vector quantization codebook includes individual quantization codewords, and the individual quantization codewords are vector quantization features obtained through clustering training. The target individual quantization codeword refers to the vector quantization feature after vector quantization mapping corresponding to the second type of split features of the audio to be encoded.

[0149] In this embodiment, when performing vector quantization mapping, the encoding end can obtain the individual vector quantization codebook corresponding to the second type of split feature from the database, or obtain the pre-set individual vector quantization codebook, or obtain the uploaded individual vector quantization codebook, wherein the second type of split features of different dimensions have different individual vector quantization codebooks. At this time, the encoding end calculates the similarity between the second type of split features and each individual quantization codeword in the individual vector quantization codebook through a similarity algorithm, and the similarity algorithm can be a distance similarity algorithm, for example, it can be a Euclidean distance algorithm, a cosine distance algorithm, and the like. Then the encoding end sorts the similarities of all individual quantization codewords, and selects the individual quantization codeword with the maximum similarity as the target quantization feature according to the sorting result. Finally, the encoding end traverses each second type of split feature of each audio frame in turn to obtain the target quantization feature corresponding to each second type of split feature, wherein the second type of split features of different dimensions use the corresponding individual vector quantization codebook for vector quantization mapping to obtain the corresponding target quantization feature.

[0150] In the above embodiment, by calculating the similarity between the second type of split features and each individual quantization codeword in the individual vector quantization codebook, and determining the target quantization feature from each individual quantization codeword based on the similarity, that is, using the individual vector quantization codebook to determine the target quantization feature, the efficiency and accuracy of the obtained target quantization feature can be improved.

[0151] It is understandable that the individual vector quantization codebook can be obtained by pre-training or by real-time training. In some embodiments, obtaining the individual vector quantization codebook corresponding to the second type of split feature includes the steps of:

[0152] The training audio features of each training audio frame are obtained; the training audio features are split based on the information amount of each feature dimension in the training audio features to obtain the second-category training split features of each training audio frame; clustering training is performed based on the second-category training split features of each training audio frame to obtain each second-category clustering cluster, and individual vector quantization codebooks are obtained based on the cluster center features in each second-category clustering cluster.

[0153] Among them, the second type of training split feature refers to the second type of split feature during training, which is a split feature that does not need to be merged. The split feature is a feature split from the training audio feature and is part of the training audio feature. Usually, the amount of information in the second type of training split feature is less than the amount of information in the remaining audio features in the training audio feature. The second cluster refers to the set obtained by aggregating the second type of training split features, and different types of second type training split features belong to different second type clusters.

[0154] Specifically, the encoding end can obtain the training audio features of each training audio frame from the database, or obtain the training audio features of each training audio frame from the service provider providing data services. The encoding end can also obtain the training audio, and then divide the training audio into frames to obtain each training audio frame, and then extract the training audio features of each training audio frame. The encoding end then splits the training audio features according to the amount of information of each feature dimension in the training audio features to obtain the second type of training split features of each training audio frame, wherein the second type of training split features can be split from the training audio features according to the dimensional range of the second type of training split features, and the dimensional range of the second type of training split features is determined according to the amount of information of the training audio features. The encoding end then uses the second type of training split features as training samples for clustering training using a clustering algorithm for clustering training. When the clustering training is completed, each second type of cluster cluster is obtained, wherein the clustering algorithm can also be a K-means clustering algorithm, an LBG‌ algorithm, and the like. Finally, the encoder calculates the cluster center feature in each second-class cluster, that is, it can calculate the mean of all second-class training split features in the second-class cluster to obtain the cluster center feature, and then use all cluster center features as individual vector quantization codebooks, which are the codebooks corresponding to the second-class split features. For example, Figure 8 , which is a schematic diagram of a part of individual vector quantization codebooks, wherein each dot represents a cluster center of a different second-class cluster, and each cluster center is used as an individual quantization codeword to obtain an individual vector quantization codebook.

[0155] In some embodiments, the encoding end may use the second type of split features in the same dimensional range as training samples, and may obtain individual vector quantization codebooks corresponding to the second type of split features in the same dimensional range through clustering training. In some embodiments, the encoding end may also use the second type of split features in different dimensional ranges, and may obtain individual vector quantization codebooks corresponding to the second type of split features in different dimensional ranges through clustering training.

[0156] In some embodiments, when splitting, the first type of split features and the second type of split features can be split simultaneously, and then the first split features are used for clustering training to obtain a merged vector quantization codebook, and the second type of split features are used for clustering training using the same clustering algorithm to obtain an individual vector quantization codebook, thereby improving the efficiency of vector quantization codebook generation.

[0157] In the above embodiment, clustering training is performed using each second-category split feature to obtain each second-category clustering cluster, and an individual vector quantization codebook is obtained based on the cluster center features in each second-category clustering cluster. That is, the optimal codebook can be searched through clustering training, thereby improving the accuracy of obtaining the individual vector quantization codebook.

[0158] In a specific embodiment, the k-means clustering algorithm (k-means) clustering algorithm can be used for clustering training, that is, m samples can be selected from n samples as the initial cluster center, and then the distance between other samples and the cluster center is calculated, and the other samples are divided into clusters with the smallest distance or the highest similarity according to the distance. Then the cluster center is calculated for each new cluster, which can be the mean of all samples in the cluster to obtain the cluster center. At this time, the above process is repeated, and the iteration ends when the distortion measurement function of the k-means clustering algorithm converges, and the trained cluster is obtained, and then the trained cluster center is calculated, and all cluster centers are used as codebooks. Among them, the distortion measurement function used by the k-means algorithm is the mean square error Euclidean distance. When the merged vector quantization codebook is to be trained, the sample is a training merge feature. When the individual vector quantization codebook is to be trained, the sample is a second type of training split feature.

[0159] The specific steps of the k-means algorithm are as follows:

[0160] (1) Select m sample points from the sample as the initial cluster centers Usually, the first m samples in the sample set can be selected as the initial clustering centers.

[0161] (2) In the kth iteration, all samples in the sample set are divided into m clusters according to the following criteria. For any sample X, the formula For clustering training, we have ,in, For Clustering centered on .

[0162] (3) Based on the results obtained in step (2), the new cluster center can be calculated for each cluster using the formula Calculate, where It is clustering The total number of samples in the cluster. The distance of all samples in is the shortest to the cluster center, that is, to make the formula The result obtained is the smallest.

[0163] (4) When When , it means that the cluster center no longer changes, that is, the algorithm converges and the cluster training is completed. Otherwise, jump to step (2) and continue cluster training.

[0164] That is, the codebook is obtained by training the k-means algorithm, thereby improving the accuracy of the obtained codebook.

[0165] In one embodiment, S210, i.e., performing coding conversion based on the combined quantization feature and the target quantization feature to obtain an audio coding result of the audio to be coded, includes the steps of:

[0166] Obtain the number of quantization bits corresponding to the merged quantization feature and the number of quantization bits corresponding to the target quantization feature; perform encoding conversion on the merged quantization feature based on the number of quantization bits corresponding to the merged quantization feature to obtain merged coded data, and perform encoding conversion based on the number of quantization bits corresponding to the target quantization feature to obtain target coded data; obtain an audio coding result of the audio to be encoded based on the merged coded data and the target coded data.

[0167] Among them, the number of quantization bits refers to the number of binary bits used to represent the quantization level, and the number of quantization bits can be obtained through testing or set by human experience. The number of quantization bits corresponding to the merged quantization feature refers to the number of bits to be obtained by encoding and converting the merged quantization feature. The number of quantization bits corresponding to the target quantization feature refers to the number of bits to be obtained by encoding and converting the target quantization feature. The merged coded data refers to the binary data corresponding to the merged quantization feature. The target coded data refers to the binary data corresponding to the target quantization feature. The number of quantization bits corresponding to the merged quantization feature may be the same as or different from the number of quantization bits corresponding to the target quantization feature. The number of quantization bits corresponding to different merged quantization features may be different or the same. The number of quantization bits corresponding to different target quantization features may be different or the same. For example, the number of quantization bits of the merged quantization feature corresponding to the energy dimension feature in the first type of split feature may be different from or the same as the number of quantization bits of the merged quantization feature corresponding to the first type of non-energy dimension feature. The number of quantization bits of the merged quantization feature corresponding to different first type non-energy dimension features may also be different or the same. The number of quantization bits of the target quantization feature corresponding to different second type non-energy dimension features may be different or the same.

[0168] In this embodiment, the encoding end can obtain the number of quantization bits, which can be determined in advance through testing, or determined by calculating the variance of each dimensional value in the corresponding feature, or determined by human experience. Different quantization features have different numbers of quantization bits. The encoding end can obtain the number of quantization bits corresponding to each different combined quantization feature, and at the same time obtain the number of quantization bits corresponding to each different target quantization feature. Then, the corresponding quantization feature is encoded and converted according to the number of quantization bits, that is, each different combined quantization feature and each different target quantization feature can be encoded and converted, so as to obtain the combined encoding data corresponding to each different combined quantization feature and the target encoding data corresponding to each target quantization feature. Finally, the encoding end splices all the combined encoding data and all the target encoding data in the time sequence of the audio to be encoded, so as to obtain the audio encoding result of the audio to be encoded. The number of bits for vector quantization is determined according to the variance of the feature parameters of each dimension in the quantization feature.

[0169] In a specific embodiment, the allocation of quantization bits may be as shown in Table 1 below:

[0170] Table 1 Quantization bit allocation table

[0171]

[0172] Table 1 includes two different bit numbers allocated for vector quantization mapping. C represents dimension, C01 represents the first dimension, and C02-C04 represents the second to fourth dimensions. C01 (3 frames 1 vector) means that the feature values ​​of the first dimension of 3 adjacent audio frames are concatenated to obtain an inter-frame merged feature, and the number of bits allocated to the inter-frame merged feature during vector quantization mapping is 12. C02-C04 (2 frames 1 vector) means that the feature values ​​of the second to fourth dimensions of 2 adjacent audio frames are concatenated in sequence to obtain an inter-frame merged feature, and the number of bits allocated to the inter-frame merged feature during vector quantization mapping is 14, and so on.

[0173] The first type of vector quantization mapping is to quantize the first dimension separately and optimize the quantization performance through the correlation between speech frames, that is, to obtain the inter-frame merged features through merging, and to perform vector quantization mapping on the inter-frame merged features to obtain the merged quantized features, and then to encode the merged quantized features according to the 12-dimensional bit number to obtain the merged coded data. The dimensions of other MFCC features are vector quantized and mapped using the inter-dimensional correlation, that is, to perform vector quantization mapping on the second type of split features, such as the features of C02-C04, to obtain the target quantized features, and then to encode the target quantized features according to the bit number of 12 to obtain the target coded data corresponding to the features of C02-C04. The selection of the quantization bit number can be determined based on the variance of each MFCC dimension, and the bit rate obtained by the vector quantization mapping is The second quantization vector quantization mapping is to consider the inter-dimensional correlation from the second dimension to the thirtieth dimension, and combine the inter-frame correlation to further reduce the number of quantization bits to achieve the goal of low bit rate. That is, the inter-frame merged features corresponding to C02-C04 are vector quantized to obtain merged quantized features, and then the merged quantized features are encoded according to the number of bits of 12 to obtain the merged coded data corresponding to the features of C02-C04, and so on. The bit rate obtained by this vector quantization mapping is That is, the bit rate can be reduced, thereby improving the encoding efficiency.

[0174] In the above embodiment, the combined quantization feature is converted by encoding according to the quantization bit number corresponding to the combined quantization feature to obtain the combined coded data, and the target coded data is obtained by converting by encoding according to the quantization bit number corresponding to the target quantization feature. Finally, the combined coded data and the target coded data are used to obtain the audio coding result of the audio to be encoded, that is, the quantization bit number is obtained for conversion, so that the efficiency of the obtained audio coding result can be improved on the basis of ensuring the audio coding quality.

[0175] In one embodiment, Fig. 9 As shown, an audio decoding method is provided, which is applied to Figure 1 The decoding end in the example is used for explanation. It can be understood that the decoding end can be a terminal, a server, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the following steps are included:

[0176] S902, obtaining audio coding data, and decoding and converting the audio coding data to obtain a combined quantization feature and a target quantization feature.

[0177] Among them, audio coding data refers to data obtained by encoding audio. The audio coding data can be obtained by audio coding through any embodiment of the above-mentioned audio coding method. For example, the audio coding data can be the audio features of each audio frame in the audio to be encoded are split to obtain the first type of split features of each audio frame and the second type of split features of each audio frame, the information amount of the first type of split features is greater than the information amount of the second type of split features, and then the first type of split features of each audio frame are merged according to the inter-frame correlation of each audio frame to obtain the inter-frame merge features corresponding to the first type of split features. At this time, the inter-frame merge features are vector quantized and mapped to obtain the merged quantized features, and the second type of split features of each audio frame are vector quantized and mapped to obtain the target quantized features, and finally, the encoding conversion is performed based on the merged quantized features and the target quantized features to obtain the audio coding data of the audio to be encoded.

[0178] In this embodiment, the decoding end can obtain the audio coded data transmitted by the encoding end, and then decode the audio coded data. The decoding process is usually the inverse process of the audio encoding process. The decoding end can also obtain the audio coded data from the database for decoding. The decoding end can also obtain the audio coded data transmitted by the business service end for decoding. The decoding end can also obtain the audio coded data uploaded by the user for decoding. At this time, the decoding end decodes and converts the audio coded data, that is, converts the binary data into quantized features, thereby obtaining a merged quantized feature and a target quantized feature. In some embodiments, the merged quantized feature may include at least two, and the target quantized feature may also include at least two.

[0179] S904, splitting the merged quantization features based on the inter-frame correlation of the audio coding data corresponding to each audio frame to obtain the first type of split features of each audio frame, and obtaining the second type of split features of each audio frame based on the target quantization features.

[0180] S906: Merge the first-category split features and the second-category split features to obtain audio features of each audio frame.

[0181] S908: Reconstruct based on the audio features of each audio frame to obtain audio corresponding to the audio encoding data.

[0182] In this embodiment, when the decoder obtains the merged quantization feature, it is necessary to split it according to the merging process during encoding, that is, it is necessary to split the merged quantization feature according to the inter-frame correlation of each audio frame, so as to obtain the first type of split feature of each audio frame. At the same time, the decoder can directly use the target quantization feature as the second type of split feature. At this time, the decoder merges the first type of split feature and the second type of split feature of the same audio frame to obtain the audio feature of each audio frame. Finally, the decoder reconstructs according to the audio features of each audio frame, which can be phase reconstruction. Phase reconstruction refers to recovering the phase information of the audio signal from the amplitude spectrum, and then reconstructing the audio spectrum through the phase information, wherein phase reconstruction can be performed through linear frequency modulation or group delay technology. When the reconstruction is completed, the decoder obtains the audio corresponding to the audio encoding data.

[0183] In some embodiments, the merged quantized features may include merged quantized features corresponding to energy dimension features and merged quantized features corresponding to the first type of non-energy dimension features. In this case, the merged quantized features corresponding to the energy dimension features may be split to obtain energy dimension features of each audio frame, and the merged quantized features corresponding to the first type of non-energy dimension features may be split to obtain the first type of non-energy dimension features of each audio frame. Then, the energy dimension features, the first type of non-energy dimension features, and the second type of split features of the same audio frame are merged to obtain the audio features of each audio frame.

[0184] The above-mentioned audio decoding method, device, computer equipment, storage medium and computer program product obtain audio coding data and decode and convert the audio coding data to obtain the merged quantization feature and the target quantization feature. Then, the merged quantization feature is split based on the inter-frame correlation of each audio frame corresponding to the audio coding data to obtain the first type of split feature of each audio frame, and the second type of split feature of each audio frame is obtained based on the target quantization feature. The first type of split feature and the second type of split feature are merged to obtain the audio feature of each audio frame. Finally, the audio feature of each audio frame is reconstructed to obtain the audio corresponding to the audio coding data. That is, the first type of split feature of each audio frame is split by the decoded merged quantization feature through the inter-frame correlation, and then the second type of split feature of each audio frame is obtained using the target quantization feature. Finally, the first type of split feature and the second type of split feature are merged to obtain the audio feature of each audio frame, that is, by splitting and merging the quantization feature, the efficiency of obtaining the audio feature is improved. Then, the audio feature of each audio frame is used to reconstruct the audio corresponding to the audio coding data, which improves the efficiency of obtaining the audio, that is, improves the efficiency of audio decoding, and can improve the intelligibility of the obtained audio on the basis of ensuring the quality of the decoded audio.

[0185] In a specific embodiment, Fig.10As shown, an audio encoding method is provided, which is applied to an encoding end, and the encoding end can be a computer device, and the computer device can be a terminal or a server. The audio encoding method specifically includes the following steps:

[0186] S1002, obtaining audio to be encoded, extracting audio features of each audio frame in the audio to be encoded, and obtaining an energy dimension range, a first type of non-energy dimension range, and a second type of non-energy dimension range corresponding to the audio features;

[0187] S1004, determine the corresponding energy dimension value from the audio feature according to the energy dimension range, use the energy dimension value as the energy dimension feature, and determine the corresponding first-class non-energy dimension value from the audio feature in turn according to the first-class non-energy dimension range corresponding to each first-class non-energy dimension feature, and determine each first-class non-energy dimension feature based on the first-class non-energy dimension value.

[0188] S1006, determining the corresponding second-class non-energy dimension values ​​from the audio features in turn according to the second-class non-energy dimension ranges corresponding to each second-class non-energy dimension feature, and determining each second-class non-energy dimension feature based on the second-class non-energy dimension value.

[0189] S1008, obtaining the number of merged frames corresponding to the energy dimension feature and the number of merged frames corresponding to each first-category non-energy dimension feature, and determining related audio frame combinations from each audio frame according to the number of merged frames, merging the energy dimension features in the corresponding related audio frame combinations according to the number of merged frames corresponding to the energy dimension feature, and obtaining the inter-frame merged features corresponding to the energy dimension feature.

[0190] S1010, merging the first-category non-energy dimensional features in the corresponding related audio frame combination according to the number of merged frames corresponding to each first-category non-energy dimensional feature, to obtain inter-frame merged features corresponding to each first-category non-energy dimensional feature.

[0191] S1012, obtaining a merged vector quantization codebook of inter-frame merged features corresponding to energy dimension features, and calculating the similarity between the inter-frame merged features and each merged quantization codeword in the merged vector quantization codebook, and determining a target merged quantization codeword from each merged quantization codeword based on the similarity, and using the target merged quantization codeword as the merged quantization feature corresponding to the energy dimension feature.

[0192] S1014, obtaining a merged vector quantization codebook of inter-frame merged features corresponding to the first type of non-energy dimensional features, and calculating the similarity between the inter-frame merged features and each merged quantization codeword in the merged vector quantization codebook, and determining a target merged quantization codeword from each merged quantization codeword based on the similarity, and taking the target merged quantization codeword as the merged quantization feature corresponding to the first type of non-energy dimensional features.

[0193] S1016, obtaining the individual vector quantization codebook corresponding to the second type of split feature, and calculating the similarity between the second type of split feature and each individual quantization codeword in the individual vector quantization codebook, and determining the target individual quantization codeword from each individual quantization codeword based on the similarity, taking the target individual quantization codeword as the target quantization feature, traversing the second type of split features of each audio frame in turn, and obtaining the target quantization feature of each audio frame.

[0194] S1018, obtaining the number of quantization bits corresponding to the merged quantization feature and the number of quantization bits corresponding to the target quantization feature, encoding and converting the merged quantization feature based on the number of quantization bits corresponding to the merged quantization feature to obtain merged coded data, and encoding and converting based on the number of quantization bits corresponding to the target quantization feature to obtain target coded data, and obtaining an audio coding result of the audio to be encoded based on the merged coded data and the target coded data.

[0195] In the above embodiment, the audio features are split and then merged to obtain inter-frame merged features and second-type split features, and then the inter-frame merged features and the second-type split features are respectively vector quantized and mapped and encoded. This can reduce the quantization bit rate and improve the audio encoding efficiency while ensuring the encoding quality. The audio encoding result is then used for decoding, so that the intelligibility of the decoded audio can be improved while ensuring the decoded audio quality, thereby improving the recognition rate of the decoded audio.

[0196] In a specific embodiment, Fig.11As shown, a schematic diagram of an application framework of an audio encoding and decoding method is provided. Specifically, a computer device can obtain the original audio as a training sample, then extract the MFCC features of the original audio, and use the MFCC features of the original audio to generate a codebook using the K-means clustering algorithm, thereby obtaining the vector quantization codebook required for vector quantization encoding. Then the original audio to be encoded can be obtained, and the MFCC features of the original audio to be encoded can be extracted by the MFCC algorithm. The specific calculation process of the MFCC feature can be to first perform pre-emphasis, frame division and windowing on the original audio to be encoded. Then the processed audio is converted into the frequency domain, that is, a fast Fourier transform is performed to obtain the actual frequency of the audio. At this time, the actual frequency is converted into a Mel frequency, and then a triangular filter of a feature dimension is set on the Mel frequency axis, and the center frequency of the triangular filter is set to be equally spaced on the Mel frequency axis. Then the output of each triangular filter is calculated according to the amplitude spectrum of the audio signal, and then the logarithm of the output of all triangular filters is calculated, and finally a discrete cosine transform is performed to obtain the MFCC feature. Then the computer device performs vector quantization encoding on the MFCC feature. When performing vector quantization encoding, the MFCC features are first split, wherein the splitting can be performed according to the splitting range shown in Table 1 to obtain the split features that need to be merged and the split features that do not need to be merged. Then the split features that need to be merged are merged according to the number of merged frames shown in Table 1 to obtain inter-frame merged features. At this time, the inter-frame merged features and the split features that do not need to be merged are used to find the most similar vector quantization codewords using the corresponding vector quantization codebook, so as to obtain merged quantization features and target quantization features, and finally the merged quantization features and the target quantization features are encoded and converted to obtain the audio encoding result of the original audio to be encoded. Then the computer device can also perform vector quantization decoding on the audio encoding result of the original audio to be encoded. When performing vector quantization decoding, decoding is performed through the inverse process of vector quantization encoding, that is, amplitude reconstruction is performed to obtain MFCC features, and then phase reconstruction is performed using MFCC features to obtain synthetic audio. That is, through the above-mentioned vector quantization encoding process and vector quantization decoding process, the quality of the obtained synthetic audio can be improved while improving the performance of audio encoding, and the intelligibility of the synthetic audio can be improved.

[0197] In a specific embodiment, the audio encoding and decoding method can be applied to a real-time voice communication scenario. Specifically, a user can perform real-time voice communication through a voice communication function in an instant messaging application. During real-time voice communication, a terminal running an instant messaging application obtains the user's real-time voice through a voice acquisition device, and then can encode the real-time voice through the method of any embodiment of the above-mentioned audio encoding method to obtain the encoded data of the real-time voice. Then, the terminal running the instant messaging application transmits the encoded data of the real-time voice through the server of the instant messaging application to the terminal receiving the real-time voice. The receiving terminal receives the encoded data of the real-time voice through the running instant messaging application, and decodes the encoded data of the real-time voice through the method of any embodiment of the above-mentioned audio decoding method to obtain the real-time voice. Then, the received real-time voice is displayed in the running instant messaging application. At this time, the user of the receiving terminal can choose to play the real-time voice, that is, the intelligibility of the real-time voice can be guaranteed on the basis of improving the efficiency of voice encoding and decoding, and the recognition rate of the real-time voice is improved, so that the user can more clearly recognize the specific content of the real-time voice, thereby improving the user experience. The audio encoding and decoding method can be applied to other scenarios that require audio encoding and decoding, that is, it can be applied to audio and video playback platforms, and can also be applied to live broadcast platforms that require voice transmission, etc.

[0198] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0199] Based on the same inventive concept, the embodiment of the present application also provides an audio encoding device for implementing the audio encoding method and an audio decoding device for implementing the audio decoding method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more audio encoding device and audio decoding device embodiments provided below can refer to the limitations of the audio encoding method and audio decoding method above, and will not be repeated here.

[0200] In one embodiment, Fig.12As shown, an audio encoding device 1200 is provided, comprising: a feature acquisition module 1202, a feature separation module 1204, a feature merging module 1206, a quantization module 1208 and an encoding module 1210, wherein:

[0201] The feature acquisition module 1202 is used to acquire the audio features of each audio frame in the audio to be encoded;

[0202] A feature splitting module 1204 is used to split the audio features to obtain a first type of split features of each audio frame and a second type of split features of each audio frame, wherein the information content of the first type of split features is greater than that of the second type of split features;

[0203] A feature merging module 1206 is used to merge the first-category split features of each audio frame according to the inter-frame correlation of each audio frame to obtain an inter-frame merged feature corresponding to the first-category split features;

[0204] The quantization module 1208 is used to perform vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and perform vector quantization mapping on the second type split features of each audio frame to obtain target quantized features;

[0205] The encoding module 1210 is used to perform encoding conversion based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

[0206] In one embodiment, the feature splitting module 1204 is also used to determine the first splitting dimension range corresponding to the first type of splitting feature and the second splitting dimension range corresponding to the second type of splitting feature based on the information amount of the audio feature; split the audio features according to the first splitting dimension range corresponding to the first type of splitting feature to obtain the first type of splitting feature; split the audio features according to the second splitting dimension range corresponding to the second type of splitting feature to obtain the second type of splitting feature.

[0207] In one embodiment, the first type of split features includes energy dimension features, and the second type of split features includes various non-energy dimension features; the feature splitting module 1204 is also used to determine the energy dimension range corresponding to the energy dimension feature and the non-energy dimension range corresponding to each non-energy dimension feature based on the amount of information of the audio feature; determine the corresponding energy dimension value from the audio feature according to the energy dimension range, and use the energy dimension value as the energy dimension feature; determine the corresponding non-energy dimension value from the audio feature in turn according to the non-energy dimension range corresponding to each non-energy dimension feature, and determine each non-energy dimension feature based on the non-energy dimension value.

[0208] In one embodiment, the first type of split features includes energy dimension features and first type non-energy dimension features, and the second type of split features includes second type non-energy dimension features; the feature splitting module 1204 is also used to determine the energy dimension range corresponding to the energy dimension feature, the first type non-energy dimension range corresponding to the first type non-energy dimension feature, and the second type non-energy dimension range corresponding to each second type non-energy dimension feature based on the amount of information of the audio feature; determine the corresponding energy dimension value from the audio feature according to the energy dimension range, and use the energy dimension value as the energy dimension feature; determine the corresponding first type non-energy dimension value from the audio feature in turn according to the first type non-energy dimension range corresponding to each first type non-energy dimension feature, and determine each first type non-energy dimension feature based on the first type non-energy dimension value; determine the corresponding second type non-energy dimension value from the audio feature in turn according to the second type non-energy dimension range corresponding to each second type non-energy dimension feature, and determine each second type non-energy dimension feature based on the second type non-energy dimension value.

[0209] In one embodiment, the feature merging module 1206 is also used to obtain the number of merged frames, determine at least two related audio frame combinations from each audio frame based on the inter-frame correlation of each audio frame and the number of merged frames, and the related audio frame combination includes related audio frames of the number of merged frames; merge the first type of split features corresponding to the related audio frames of the number of merged frames to obtain the inter-frame merged features corresponding to the related audio frame combination; traverse at least two related audio frame combinations to obtain the inter-frame merged features corresponding to at least two related audio frame combinations.

[0210] In one embodiment, the feature merging module 1206 is also used to obtain each uncombined audio frame, and when the number of each uncombined audio frame is less than the number of merged frames, determine the audio frames to be copied from each uncombined audio frame, and calculate the difference between the number of merged frames and the number of uncombined audio frames to obtain the number to be copied; copy the audio frames to be copied based on the number to be copied to obtain copied audio frames, and combine the uncombined audio frames and the copied audio frames to obtain a copied audio frame combination; merge the first type of split features corresponding to each audio frame in the copied audio frame combination to obtain the inter-frame merged features corresponding to the copied audio frame combination.

[0211] In one embodiment, the quantization module 1208 is also used to obtain a merged vector quantization codebook corresponding to the inter-frame merged feature, the merged vector quantization codebook including each merged quantization codeword; calculate the similarity between the inter-frame merged feature and each merged quantization codeword, and determine a target merged quantization codeword from each merged quantization codeword based on the similarity; and use the target merged quantization codeword as the merged quantization feature.

[0212] In one embodiment, the quantization module 1208 is also used to obtain training audio features of each training audio frame; split the training audio features based on the amount of information of each feature dimension in the training audio features to obtain first-class training split features of each training audio frame; merge the first-class training split features of each training audio frame according to the inter-frame correlation of each training audio frame to obtain each training merged feature; perform clustering training based on each training merged feature to obtain each first-class cluster cluster, and obtain a merged vector quantization codebook based on the cluster center features in each first-class cluster cluster.

[0213] In one embodiment, the quantization module 1208 is also used to obtain an individual vector quantization codebook corresponding to the second type of split features, the individual vector quantization codebook including each individual quantization codeword; calculate the similarity between the second type of split features and each individual quantization codeword, and determine the target individual quantization codeword from each individual quantization codeword based on the similarity, and use the target individual quantization codeword as the target quantization feature; traverse the second type of split features of each audio frame in turn to obtain the target quantization feature of each audio frame.

[0214] In one embodiment, the quantization module 1208 is also used to obtain training audio features of each training audio frame; split the training audio features based on each feature dimension in the information volume of the training audio features to obtain second-class training split features of each training audio frame; perform clustering training based on the second-class training split features of each training audio frame to obtain each second-class cluster cluster, and obtain an individual vector quantization codebook based on the cluster center features in each second-class cluster cluster.

[0215] In one embodiment, the encoding module 1210 is also used to obtain the number of quantization bits corresponding to the merged quantization feature and the number of quantization bits corresponding to the target quantization feature; based on the number of quantization bits corresponding to the merged quantization feature, the merged quantization feature is encoded and converted to obtain merged encoded data, and based on the number of quantization bits corresponding to the target quantization feature, the encoding and conversion is performed to obtain target encoded data; based on the merged encoded data and the target encoded data, an audio encoding result of the audio to be encoded is obtained.

[0216] In one embodiment, Fig.13 As shown, an audio decoding device 1300 is provided, including: a decoding module 1302, a splitting module 1304, a merging module 1306 and a reconstruction module 1308, wherein:

[0217] The decoding module 1302 is used to obtain the audio coding data, and decode and convert the audio coding data to obtain the combined quantization feature and the target quantization feature;

[0218] A splitting module 1304 is used to split the merged quantization feature based on the inter-frame correlation of each audio frame corresponding to the audio coding data to obtain a first type of split feature of each audio frame, and to obtain a second type of split feature of each audio frame based on the target quantization feature;

[0219] A merging module 1306 is used to merge the first type of split features and the second type of split features to obtain audio features of each audio frame;

[0220] The reconstruction module 1308 is used to reconstruct the audio based on the audio features of each audio frame to obtain the audio corresponding to the audio coding data.

[0221] Each module in the above-mentioned audio encoding device and audio decoding device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or individually provided in a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0222] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as audio features, merged vector quantization codebooks and individual vector quantization codebooks. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an audio encoding and audio decoding method is implemented.

[0223] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.15As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an audio decoding method or an audio encoding method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0224] Those skilled in the art will understand that Fig.13 or Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0225] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0226] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0227] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0228] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0229] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0230] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0231] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An audio encoding method, characterized in that: The method comprises: Obtaining audio features of each audio frame in the audio to be encoded; Splitting the audio features to obtain first-category split features of each audio frame and second-category split features of each audio frame, wherein the amount of information of the first-category split features is greater than the amount of information of the second-category split features; Merging the first-category split features of the audio frames according to the inter-frame correlation of the audio frames to obtain inter-frame merged features corresponding to the first-category split features; Performing vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and performing vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features; Encoding conversion is performed based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

2. The method according to claim 1, characterized in that The step of splitting the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame includes: Determine, based on the information amount of each feature dimension in the audio feature, a first split dimension range corresponding to the first type of split feature and a second split dimension range corresponding to the second type of split feature; Splitting the audio features according to a first splitting dimension range corresponding to the first type of splitting features to obtain the first type of splitting features; The audio features are split according to a second split dimension range corresponding to the second type of split features to obtain the second type of split features.

3. The method according to claim 1, characterized in that The first type of splitting features include energy dimension features, and the second type of splitting features include various non-energy dimension features; The step of splitting the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame includes: Determine, based on the information amount of each feature dimension in the audio feature, an energy dimension range corresponding to the energy dimension feature and a non-energy dimension range corresponding to each non-energy dimension feature; Determine a corresponding energy dimension value from the audio feature according to the energy dimension range, and use the energy dimension value as the energy dimension feature; According to the non-energy dimension ranges corresponding to the non-energy dimension features, the corresponding non-energy dimension values ​​are determined in sequence from the audio features, and the non-energy dimension features are determined based on the non-energy dimension values.

4. The method according to claim 1, characterized in that: The first type of split features include energy dimension features and first type non-energy dimension features, and the second type of split features include second type non-energy dimension features; The step of splitting the audio features to obtain the first type of split features of each audio frame and the second type of split features of each audio frame includes: Determine, based on the information amount of each feature dimension in the audio feature, an energy dimension range corresponding to the energy dimension feature, a first type of non-energy dimension range corresponding to each of the first type of non-energy dimension features, and a second type of non-energy dimension range corresponding to each of the second type of non-energy dimension features; Determine a corresponding energy dimension value from the audio feature according to the energy dimension range, and use the energy dimension value as the energy dimension feature; Determine the corresponding first-category non-energy dimension values ​​from the audio features in sequence according to the first-category non-energy dimension ranges corresponding to the first-category non-energy dimension features, and determine the first-category non-energy dimension features based on the first-category non-energy dimension values; According to the second type non-energy dimension ranges corresponding to each of the second type non-energy dimensional features, the corresponding second type non-energy dimensional values ​​are determined in sequence from the audio features, and the second type non-energy dimensional features are determined based on the second type non-energy dimensional values.

5. The method according to claim 1, characterized in that Merging the first-category split features of the audio frames according to the inter-frame correlation of the audio frames to obtain inter-frame merge features corresponding to the first-category split features, including: Acquire the number of merged frames, and determine at least two related audio frame combinations from the audio frames based on the inter-frame correlation of the audio frames and the number of merged frames, wherein the related audio frame combinations include related audio frames of the number of merged frames; Merging the first type of split features corresponding to the related audio frames of the merged frame number to obtain the inter-frame merged features corresponding to the related audio frame combination; The at least two related audio frame combinations are traversed to obtain inter-frame merging features respectively corresponding to the at least two related audio frame combinations.

6. The method according to claim 5, characterized in that The traversing the at least two related audio frame combinations to obtain the inter-frame merging features respectively corresponding to the at least two related audio frame combinations includes: Acquire each uncombined audio frame, and when the number of the uncombined audio frames is less than the number of merged frames, determine the audio frames to be copied from the uncombined audio frames, and calculate the difference between the number of merged frames and the number of the uncombined audio frames to obtain the number to be copied; The audio frames to be copied are copied based on the number of audio frames to be copied to obtain copied audio frames, and the uncombined audio frames and the copied audio frames are combined to obtain a combined copied audio frame; The first type of split features corresponding to each audio frame in the duplicate audio frame combination are merged to obtain an inter-frame merge feature corresponding to the duplicate audio frame combination.

7. The method according to claim 1, characterized in that The step of performing vector quantization mapping on the inter-frame merged features to obtain merged quantized features includes: Obtaining a merged vector quantization codebook corresponding to the inter-frame merged feature, wherein the merged vector quantization codebook includes each merged quantization codeword; Calculating the similarity between the inter-frame merged features and the merged quantization codewords, and determining a target merged quantization codeword from the merged quantization codewords based on the similarity; The target merged quantization codeword is used as the merged quantization feature.

8. The method according to claim 7, characterized in that The obtaining a merged vector quantization codebook corresponding to the inter-frame merged feature includes: Obtaining training audio features of each training audio frame; Splitting the training audio features based on the information amount of each feature dimension in the training audio features to obtain a first type of training split features of each training audio frame; Merging the first type of training split features of the training audio frames according to the inter-frame correlation of the training audio frames to obtain training merged features; Cluster training is performed based on the training combined features to obtain first-category clusters, and the combined vector quantization codebook is obtained based on cluster center features in the first-category clusters.

9. The method according to claim 1, characterized in that: The step of performing vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features includes: Obtaining an individual vector quantization codebook corresponding to the second type of split features, wherein the individual vector quantization codebook includes individual quantization codewords; Calculating the similarity between the second-type split features and the individual individual quantization codewords, and determining a target individual quantization codeword from the individual individual quantization codewords based on the similarity, and using the target individual quantization codeword as the target quantization feature; The second type of split features of each audio frame are traversed in sequence to obtain the target quantized features of each audio frame.

10. The method according to claim 9, characterized in that The obtaining the individual vector quantization codebook corresponding to the second type of split features includes: Obtaining training audio features of each training audio frame; Splitting the training audio features based on each feature dimension in the information volume of the training audio features to obtain a second type of training split features for each training audio frame; Cluster training is performed based on the second type of training split features of each training audio frame to obtain each second type of cluster clusters, and the individual vector quantization codebook is obtained based on the cluster center features in each second type of cluster clusters.

11. The method according to claim 1, characterized in that: The performing encoding conversion based on the combined quantization feature and the target quantization feature to obtain the audio encoding result of the audio to be encoded includes: Obtaining the number of quantization bits corresponding to the combined quantization feature and the number of quantization bits corresponding to the target quantization feature; Performing encoding conversion on the combined quantization feature based on the number of quantization bits corresponding to the combined quantization feature to obtain combined coded data, and performing encoding conversion based on the number of quantization bits corresponding to the target quantization feature to obtain target coded data; An audio encoding result of the audio to be encoded is obtained based on the combined encoded data and the target encoded data.

12. The method according to claim 1, characterized in that The amount of information of the first type of split features is positively correlated with the variance of each feature dimension in the first type of split features, and the amount of information of the second type of split features is positively correlated with the variance of each feature dimension in the first type of split features.

13. An audio decoding method, characterized in that: The method comprises: Acquire audio coding data, and decode and convert the audio coding data to obtain a combined quantization feature and a target quantization feature; Splitting the merged quantization feature based on the inter-frame correlation of each audio frame corresponding to the audio encoding data to obtain a first type of split feature of each audio frame, and obtaining a second type of split feature of each audio frame based on the target quantization feature; Merging the first-category split features and the second-category split features to obtain audio features of each audio frame; Reconstruction is performed based on the audio features of each audio frame to obtain audio corresponding to the audio encoding data.

14. An audio encoding device, characterized in that: The device comprises: A feature acquisition module, used to acquire audio features of each audio frame in the audio to be encoded; A feature splitting module, used for splitting the audio features to obtain a first type of split features of each audio frame and a second type of split features of each audio frame, wherein the information amount of the first type of split features is greater than the information amount of the second type of split features; A feature merging module, configured to merge the first-category split features of the audio frames according to the inter-frame correlation of the audio frames to obtain inter-frame merged features corresponding to the first-category split features; A quantization module, used for performing vector quantization mapping on the inter-frame merged features to obtain merged quantized features, and performing vector quantization mapping on the second-category split features of each audio frame to obtain target quantized features; The encoding module is used to perform encoding conversion based on the combined quantization feature and the target quantization feature to obtain an audio encoding result of the audio to be encoded.

15. An audio decoding device, characterized in that: The device comprises: A decoding module, used to obtain audio coding data, and decode and convert the audio coding data to obtain a combined quantization feature and a target quantization feature; A splitting module, configured to split the merged quantization feature based on the inter-frame correlation of each audio frame corresponding to the audio encoding data to obtain a first type of split feature of each audio frame, and to obtain a second type of split feature of each audio frame based on the target quantization feature; A merging module, used for merging the first-category split features and the second-category split features to obtain the audio features of each audio frame; The reconstruction module is used to reconstruct the audio based on the audio features of each audio frame to obtain the audio corresponding to the audio encoding data.

16. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 13 are implemented.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.