Audio restoration method and apparatus, and electronic device

The pre-trained audio repair model is used to preprocess and feature encode the damaged audio, automatically determine and fill in the missing content, solve the problem of audio repair relying on manual processing in the existing technology, and improve the repair efficiency and quality.

CN118865989APending Publication Date: 2024-10-29BEIYIN FINANCIAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411001206.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing audio repair methods rely on manual processing, are time-consuming and labor-intensive, and are difficult to meet complex and changing audio repair needs.

Method used

The pre-trained audio repair model is used to preprocess, feature extract and encode the damaged audio data, determine the content to be repaired, and predict the missing content through the target feature vector and repair it to achieve automated audio repair.

Benefits of technology

It improves the efficiency and quality of audio repair, avoids the time-consuming and labor-intensive manual processing, and achieves accurate and automatic repair of damaged audio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865989A_ABST
    Figure CN118865989A_ABST
Patent Text Reader

Abstract

The invention discloses an audio restoration method and device and electronic equipment, relates to the technical field of signal processing, and is used for improving the efficiency and accuracy of audio restoration, and the method comprises the steps: firstly, obtaining to-be-restored audio data, and carrying out the preprocessing of the to-be-restored audio data, and obtaining the preprocessed audio data; further, performing damage analysis on the preprocessed audio data, and determining a damaged audio data segment; and finally, repairing the damaged audio data segment by using a pre-trained audio repairing model to obtain the repaired audio data. Through the method, the damaged position in the audio data can be accurately determined, the damaged audio data segment can be automatically repaired, manual dubbing for repairing the damaged audio data is avoided, and the efficiency of repairing the audio data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal processing technology, and in particular to an audio repair method, device and electronic equipment. Background Art

[0002] With the rapid development of digital technology, audio data has played an increasingly important role in people's daily lives and has been widely used in various fields, such as music, voice, and communications. However, due to various factors, such as poor performance of recording equipment, the influence of environmental noise, and audio data distortion during transmission, audio data often suffers from distortion and noise.

[0003] Therefore, how to repair damaged audio data is a major focus of current research. Traditional audio repair methods mainly rely on manual processing. Workers use known audio to re-dub and repair the damaged audio. Or the damaged audio is cropped, the missing part is re-recorded, and the re-recorded audio is inserted into the cropped position, and the audio is repaired through professional software, so that the repaired audio has a natural and coherent state. For example, the original audio content is "I ate noodles at noon", but the actual audio is "I ate..." at noon, then the audio corresponding to the two words "noodles" is damaged, and the two words "noodles" are recorded again manually, and the recorded content is inserted into the damaged position.

[0004] This method requires professionals to process the damaged audio, and post-processing the audio is time-consuming and labor-intensive. With the growing demand for voice technology, relying on manual audio repair methods will be difficult to meet the complex and changing audio repair needs. Summary of the invention

[0005] The embodiments of the present application provide an audio repair method, device and electronic device for accurately repairing damaged audio data and improving the efficiency and quality of audio repair.

[0006] In a first aspect, an embodiment of the present application provides an audio repair method, the method comprising:

[0007] Acquire audio data to be repaired, and preprocess the audio data to be repaired to obtain preprocessed audio data;

[0008] Performing damage analysis on the preprocessed audio data to determine damaged audio data segments; wherein the preprocessed audio data includes a plurality of audio data segments;

[0009] The pre-trained audio repair model is used to repair the damaged audio data segment to obtain the repaired audio data.

[0010] Through the above method, damaged audio can be automatically repaired, avoiding the time-consuming and labor-intensive problem of repairing damaged audio by manual dubbing.

[0011] In an optional implementation, a pre-trained audio repair model is used to repair the damaged audio data segment to obtain repaired audio data, including:

[0012] Extracting features from the damaged audio data segment to obtain target audio features;

[0013] Encoding the target audio feature to obtain a target feature vector;

[0014] Determining content to be repaired according to the target feature vector;

[0015] The damaged audio data segment is repaired according to the content to be repaired to obtain repaired audio data.

[0016] By performing feature extraction and feature encoding on the damaged audio through the above method, deep feature information of the audio signal can be obtained, so that the damaged content in the audio data can be determined.

[0017] In an optional implementation, determining the content to be repaired according to the target feature vector includes:

[0018] According to the target feature vector, predict the missing content corresponding to the damaged audio data segment, and output a target word probability vector; wherein the target word probability vector represents the probability of occurrence of each word corresponding to the damaged audio data segment;

[0019] According to the target word probability vector, determine the content to be repaired.

[0020] Through the above method, the missing content in the damaged audio data segment can be accurately predicted, so that the damaged audio data segment can be repaired according to the predicted missing content.

[0021] In an optional embodiment, preprocessing includes: noise reduction processing, framing operation and windowing operation; wherein, the framing operation is used to divide the audio data to be repaired into multiple continuous audio data segments according to a preset frame length, and the windowing operation is used to multiply each frame of audio data segment with a preset window function to reduce spectral leakage of the audio data.

[0022] In an optional implementation, repairing the damaged audio data segment according to the content to be repaired to obtain the repaired audio data includes:

[0023] According to the context content and encoding position of the damaged audio data, the damaged content in the damaged audio data segment is replaced by the content to be repaired to obtain the repaired audio data.

[0024] Through the above method, according to the encoding position of the damaged content of the damaged audio data, the damaged audio data segment can be accurately repaired according to the content to be repaired.

[0025] In a second aspect, the present application provides an audio repair device, the device comprising:

[0026] A processing module, used for obtaining audio data to be repaired, and preprocessing the audio data to be repaired to obtain preprocessed audio data;

[0027] A determination module, configured to perform damage analysis on the preprocessed audio data to determine a damaged audio data segment; wherein the preprocessed audio data includes a plurality of audio data segments;

[0028] The repair module is used to repair the damaged audio data segment using a pre-trained audio repair model to obtain repaired audio data.

[0029] In an optional implementation, when the pre-trained audio repair model is used to repair the damaged audio data segment to obtain the repaired audio data, the repair module is specifically used to:

[0030] Extract features from the damaged data segment to obtain target audio features;

[0031] Encode the target audio features to obtain a target feature vector;

[0032] Determine the content to be repaired according to the target feature vector;

[0033] The damaged audio data segment is repaired according to the content to be repaired to obtain repaired audio data.

[0034] In an optional implementation, when determining the content to be repaired according to the target feature vector, the repair module is specifically used to:

[0035] According to the target feature vector, predict the missing content corresponding to the damaged audio segment, and output a target word probability vector; wherein the target word probability vector represents the probability of occurrence of each word corresponding to the damaged audio segment;

[0036] The content to be repaired is determined according to the target word probability vector.

[0037] In an optional embodiment, the preprocessing includes: noise reduction processing, frame operation and windowing operation; wherein the frame operation is used to divide the audio data to be repaired into multiple continuous audio data segments according to a preset frame length or time period, and the windowing operation is used to multiply each frame of audio data segment with a preset window function to reduce spectral leakage of the audio data to be repaired.

[0038] In an optional implementation, when repairing the damaged audio data segment according to the content to be repaired to obtain the repaired audio data, the repair module is specifically used to:

[0039] According to the context content and encoding position of the damaged audio segment, the damaged content in the damaged audio data segment is replaced by the content to be repaired to obtain the repaired audio data.

[0040] In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the audio repair method described in the first aspect above.

[0041] In a fourth aspect, the present application provides a computer-readable storage medium, which includes a program code. When the program code is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the audio repair method described in the first aspect above.

[0042] In a fifth aspect, the present application provides a computer program product, which, when called by a computer, enables the computer to execute the steps of the audio repair method as described in the first aspect.

[0043] In addition, other features and advantages of the present application will be described in the subsequent description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0045] Figure 1 A schematic diagram of an implementation flow of an audio repair method provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of the structure of an audio repair device provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0049] It should be noted that in the description of this application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. A and B are connected, which can represent two situations: A and B are directly connected and A and B are connected through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0050] In addition, the collection, dissemination, and use of data in the technical solution of this application comply with the requirements of relevant national laws and regulations.

[0051] The following is a brief introduction to the design concept of the embodiment of the present application:

[0052] With the rapid development of digital technology, audio data has played an increasingly important role in people's daily lives and has been widely used in various fields, such as music, voice, and communications. However, due to various factors, such as poor performance of recording equipment, the influence of environmental noise, and audio data distortion during transmission, audio data often suffers from distortion and noise.

[0053] Therefore, how to repair damaged audio data is a major focus of current research. Traditional audio repair methods mainly rely on manual processing. Workers use known audio to re-dub and repair the damaged audio. Or the damaged audio is cropped, the missing part is re-recorded, and the re-recorded audio is inserted into the cropped position, and the audio is repaired through professional software, so that the repaired audio has a natural and coherent state. For example, the original audio content is "I ate noodles at noon", but the actual audio is "I ate..." at noon, then the audio corresponding to the two words "noodles" is damaged, and the two words "noodles" are recorded again manually, and the recorded content is inserted into the damaged position.

[0054] This method requires professionals to process the damaged audio, and post-processing the audio is time-consuming and labor-intensive. With the growing demand for voice technology, relying on manual audio repair methods will be difficult to meet the complex and changing audio repair needs.

[0055] In view of this, in order to improve the efficiency and accuracy of audio repair, an embodiment of the present application provides an audio repair method, which includes: first, obtaining audio data to be repaired, and preprocessing the audio data to be repaired to obtain preprocessed audio data; then, performing damage analysis on the preprocessed audio data to determine the damaged audio data segment; wherein the preprocessed audio data includes multiple audio data segments; finally, using a pre-trained audio repair model to repair the damaged audio data segment to obtain repaired audio data. Through the above method, the damaged content of the audio data is determined and filled with appropriate content through the pre-trained audio repair model, and the damaged audio data can be accurately repaired.

[0056] The audio repair method provided by the exemplary embodiment of the present application is described below with reference to the accompanying drawings.

[0057] See also Figure 1 As shown, it is a schematic diagram of an implementation process of an audio repair method provided in an embodiment of the present application. The specific implementation process of the method is as follows:

[0058] S1: Acquire audio data to be repaired, and preprocess the audio data to be repaired to obtain preprocessed audio data.

[0059] In an embodiment of the present application, audio data to be repaired is first obtained. When obtaining the audio data to be repaired, the audio data to be repaired can be obtained from different sources according to the specific application scenario, such as the user's recording, the voice record during the chat, etc. In addition, the audio data to be repaired can be audio data of different language categories, such as Chinese, English or other small languages, dialects, etc. When obtaining the audio data to be repaired, a request message can be sent to the user, and the audio data to be repaired can be obtained from the corresponding storage area after the user's authorization or consent.

[0060] Further, it is necessary to pre-process the audio data to be repaired to obtain the pre-processed audio data. Specifically, in the embodiment of the present application, when the audio data to be repaired is pre-processed, the audio data to be repaired is subjected to noise reduction processing, framing operation and windowing operation. The framing operation can divide the audio data to be repaired into a plurality of continuous audio data segments according to a preset frame length, for example, a 100ms audio data to be repaired is divided into 5 continuous audio data segments according to a frame length of 20ms. Carrying out framing operation on the audio data to be repaired is conducive to converting the non-steady-state audio signal into a steady-state state in a short time. And the windowing operation can multiply each frame of audio data segment with a preset window function to reduce the spectrum leakage of the audio data to be repaired. The specific window function can be set according to actual needs, and the embodiment of the present application is not specifically limited here. The accuracy and stability of the audio data to be repaired are improved by the pre-processing operation.

[0061] By using the above method, the pre-processed audio data is subjected to damage analysis, and the damaged audio data segment can be accurately determined, so that when the audio is subsequently repaired, the damaged audio data segment can be accurately repaired.

[0062] S2: Perform damage analysis on the preprocessed audio data to determine damaged audio data segments.

[0063] In the embodiment of the present application, in step S1, the audio data to be repaired is preprocessed to obtain the preprocessed audio data, and then a damage analysis is performed on the preprocessed audio data to determine the damaged audio data segment.

[0064] It should be noted that after the audio data to be repaired is preprocessed, that is, after the audio data to be repaired is framed, the preprocessed audio data will be divided into a plurality of continuous audio data segments.

[0065] Therefore, when performing damage analysis on the preprocessed audio data, damage analysis can be performed on each audio data segment respectively, so as to accurately determine the damaged audio data segment.

[0066] Specifically, when performing damage analysis on each audio data segment, the continuity and audio quality of each audio data segment can be detected. For example, if an audio data segment originally has a length of 20 seconds, but there is no audio content in the interval of 11 seconds to 14 seconds, then the audio data segment can be determined as a damaged audio data segment, or, when performing audio quality detection, the audio data segment has a large amount of noise and the audio content therein cannot be clearly identified, then the audio data segment can be determined as a damaged audio data segment.

[0067] S3: Use a pre-trained audio repair model to repair the damaged audio data segment to obtain repaired audio data.

[0068] In an embodiment of the present application, the pre-trained audio restoration model may adopt a pre-trained language model (Bidirectional Encoder Representations from Transformers, BERT). The BERT model learns the deep bidirectional representation of language through pre-training, that is, the BERT model can consider the contextual information on both sides of a word when predicting it.

[0069] Specifically, the training of the BERT model is divided into two stages: pre-training and fine-tuning. During pre-training, the input text is first divided into multiple continuous segments, each of which consists of a certain number of words. The Masked Language Model (MLM) is used to randomly mask some words in the input text. Subsequently, the BERT model predicts the masked words based on the context before and after the masked content. Furthermore, for continuous text segments, sentence-level predictions are performed, that is, predicting whether the second sentence is the context of the first sentence.

[0070] After pre-training, the model still needs to go through a fine-tuning stage. During fine-tuning, the BERT model needs to be fine-tuned for specific natural language processing tasks. It can be fine-tuned by adding task-specific output layers to adapt to different natural language processing tasks.

[0071] In an embodiment of the present application, when repairing a damaged audio data segment, the speech content corresponding to the damaged audio data segment is first converted into text, and then the next sentence prediction task (NSP) is used to predict whether the text content appears continuously in the original text to determine the continuity of the text content.

[0072] Further, feature extraction is performed on the damaged audio data segment to obtain target audio features. Exemplarily, in an embodiment of the present application, Mel-scale Frequency Cepstral Coefficients (MFCC), spectral features, etc. of the damaged audio segment can be extracted.

[0073] Then, the extracted target audio features are input into the pre-trained audio repair model, and the target audio features are encoded to obtain target feature vectors. These target feature vectors contain the deep feature information of the audio data segment to be repaired, which can be used for subsequent audio repair. According to the target feature vectors, the content to be repaired can be determined, and then the damaged audio data segment can be repaired according to the content to be repaired to obtain the repaired audio data.

[0074] Specifically, in the embodiment of the present application, the pre-trained audio repair model may include an input layer, an embedding layer, and an output layer; the input layer can preliminarily identify the input damaged audio data segment and convert it into text format; the embedding layer can mark the information processed by the input layer, such as the position of a word in a sentence, and can also determine the position encoding for the input information. For example, the sentence "I am working" is passed to the embedding layer after being processed by the input layer, and can be identified as "I": word subject class, encoding position 0, "at": word action class, encoding position 1, "work": word description class, encoding position 2. Through the target feature vector, the content to be repaired can be determined.

[0075] Furthermore, based on the target feature vector, the missing content corresponding to the damaged audio data segment is predicted, and the target word probability vector is output. When processing text content, the pre-trained audio repair model converts each word in the text into a corresponding word probability vector and inputs it into the Transformer structure of the model. In the Transformer structure, the self-attention mechanism is used to calculate the correlation between each word and other words. When predicting missing content, the missing words are predicted based on the contextual representation of the position and the representation of the entire text. When predicting missing words, a probability distribution is output, and then the word with the highest probability is selected as the content to be repaired. In an embodiment of the present application, the target word probability vector represents the probability of occurrence of each word corresponding to the damaged audio data segment.

[0076] After determining the content to be repaired in the damaged audio segment, the model replaces the damaged content in the damaged audio data segment with the content to be repaired according to the context content and encoding position of the damaged audio segment to obtain the repaired audio data.

[0077] Specifically, for example, the original voice content is "I took medicine, but I still feel uncomfortable", and the actual damaged voice content is "I took..., but I still feel uncomfortable", then the two words "medicine" are lost and damaged, and the pre-trained audio repair model is used to analyze the damaged audio data segment, and it is determined that the optimal content of the missing part is "medicine", then it is filled according to its encoding position in the text, and then, combined with the audio repair algorithm, the damaged audio signal is repaired. For example, according to actual needs, you can choose an audio repair algorithm based on GAN or an audio repair algorithm based on deep autoencoder to repair the complete speech after the filled content.

[0078] Furthermore, after obtaining the repaired audio data, some post-processing operations may be performed, such as denoising and smoothing, to improve the smoothness and audibility of the repaired audio.

[0079] Further, based on the same technical concept, the embodiment of the present application provides an audio repair device, which is used to implement the above method flow of the embodiment of the present application. Figure 3 As shown, the device includes: a processing module 201, a determination module 202 and a repair module 203, wherein:

[0080] The processing module 201 is used to obtain the audio data to be repaired, and pre-process the audio data to be repaired to obtain the pre-processed audio data;

[0081] The determination module 202 is used to perform damage analysis on the preprocessed audio data to determine damaged audio data segments; wherein the preprocessed audio data includes multiple audio data segments;

[0082] The repair module 203 is used to repair the damaged audio data segment using a pre-trained audio repair model to obtain repaired audio data.

[0083] In an optional implementation, when the pre-trained audio repair model is used to repair the damaged audio data segment to obtain the repaired audio data, the repair module 203 is specifically used to:

[0084] Extract features from the damaged data segment to obtain target audio features;

[0085] Encode the target audio features to obtain a target feature vector;

[0086] Determine the content to be repaired according to the target feature vector;

[0087] The damaged audio data segment is repaired according to the content to be repaired to obtain repaired audio data.

[0088] In an optional implementation, when determining the content to be repaired according to the target feature vector, the repair module 203 is specifically configured to:

[0089] According to the target feature vector, predict the missing content corresponding to the damaged audio segment, and output a target word probability vector; wherein the target word probability vector represents the probability of occurrence of each word corresponding to the damaged audio segment;

[0090] The content to be repaired is determined according to the target word probability vector.

[0091] In an optional embodiment, the preprocessing includes: noise reduction processing, framing operation and windowing operation; wherein the framing operation is used to divide the audio data to be repaired into multiple continuous audio data segments according to a preset frame length, and the windowing operation is used to multiply each frame of audio data segment with a preset window function to reduce spectral leakage of the audio data to be repaired.

[0092] In an optional implementation, when repairing the damaged audio data segment according to the content to be repaired to obtain the repaired audio data, the repair module 203 is specifically used to:

[0093] According to the context content and encoding position of the damaged audio segment, the damaged content in the damaged audio data segment is replaced by the content to be repaired to obtain the repaired audio data.

[0094] Based on the same technical concept, the embodiment of the present application also provides an electronic device, which can implement the audio repair method provided in the above embodiment of the present application. In one embodiment, the electronic device can be a server, or a terminal device or other electronic device. Figure 3 As shown, the electronic device may include:

[0095] At least one processor 301, and a memory 302 connected to the at least one processor 301. The specific connection medium between the processor 301 and the memory 302 is not limited in the embodiment of the present application. Figure 3 In the example, the processor 301 and the memory 302 are connected via the bus 300. The bus 300 is connected to the memory 302 via the bus 300. Figure 3 The bus 300 is represented by a bold line, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 300 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 301 can also be called a controller, and there is no limitation on the name.

[0096] In the embodiment of the present application, the memory 302 stores instructions that can be executed by at least one processor 301. The at least one processor 301 can execute an audio repair method discussed above by executing the instructions stored in the memory 302. The processor 301 can implement Figure 2 The functions of each module in the device shown.

[0097] Among them, the processor 301 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 302 and calling data stored in the memory 302, the various functions of the device and process data, the device can be monitored as a whole.

[0098] In one possible design, the processor 301 may include one or more processing units, and the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 302 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0099] The processor 301 may be a general-purpose processor, such as a CPU, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of an audio repair method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0100] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 302 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 302 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 302 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0101] By programming the processor 301, the code corresponding to the frequency offset estimation method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1The steps of an audio repair method in the embodiment shown are as follows: How to design and program the processor 301 is a technique known to those skilled in the art and will not be described in detail here.

[0102] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes an audio repair method discussed above.

[0103] In some possible implementations, the present application also provides various aspects of an audio repair method that can also be implemented in the form of a program product, which includes program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of an audio repair method according to various exemplary implementations of the present application described above in this specification.

[0104] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0105] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0106] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0107] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a server, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0108] Program code for performing the operations of the present application may be written using any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0110] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An audio repair method, characterized in that: The method comprises: Acquire audio data to be repaired, and preprocess the audio data to be repaired to obtain preprocessed audio data; Performing damage analysis on the preprocessed audio data to determine damaged audio data segments; wherein the preprocessed audio data includes multiple audio data segments; The damaged audio data segment is repaired using a pre-trained audio repair model to obtain repaired audio data.

2. The method according to claim 1, characterized in that The method of using a pre-trained audio repair model to repair the damaged audio data segment to obtain repaired audio data includes: Extracting features from the damaged audio data segment to obtain target audio features; Encoding the target audio feature to obtain a target feature vector; Determining content to be repaired according to the target feature vector; The damaged audio data segment is repaired according to the content to be repaired to obtain repaired audio data.

3. The method according to claim 2, characterized in that: The step of determining the content to be repaired according to the target feature vector includes: According to the target feature vector, predict the missing content corresponding to the damaged audio data segment, and output a target word probability vector; wherein the target word probability vector represents the probability of occurrence of each word corresponding to the damaged audio data segment; The content to be repaired is determined according to the target word probability vector.

4. The method according to claim 1, characterized in that The preprocessing includes: noise reduction processing, frame operation and windowing operation; wherein the frame operation is used to divide the audio data to be repaired into multiple continuous audio data segments according to a preset frame length, and the windowing operation is used to multiply each frame of audio data segment with a preset window function to reduce the spectrum leakage of the audio data to be repaired.

5. The method according to claim 2, characterized in that Repairing the damaged audio data segment according to the content to be repaired to obtain repaired audio data includes: According to the context content and encoding position of the damaged audio segment, the damaged content in the damaged audio data segment is replaced by the content to be repaired to obtain repaired audio data.

6. An audio repair device, characterized in that: The device comprises: A processing module, used for acquiring audio data to be repaired, and preprocessing the audio data to be repaired to obtain preprocessed audio data; A determination module, configured to perform damage analysis on the preprocessed audio data to determine a damaged audio data segment; wherein the preprocessed audio data includes a plurality of audio data segments; The repair module is used to repair the damaged audio data segment using a pre-trained audio repair model to obtain repaired audio data.

7. The device according to claim 6, characterized in that When the pre-trained audio repair model is used to repair the damaged audio data segment to obtain the repaired audio data, the repair module is specifically used to: Extracting features from the damaged audio data segment to obtain target audio features; Encoding the target audio feature to obtain a target feature vector; Determining content to be repaired according to the target feature vector; The damaged audio data segment is repaired according to the content to be repaired to obtain repaired audio data.

8. The device according to claim 7, characterized in that When determining the content to be repaired according to the target feature vector, the repair module is specifically used to: According to the target feature vector, predict the missing content corresponding to the damaged audio segment, and output a target word probability vector; the target word probability vector represents the probability of occurrence of each word corresponding to the damaged audio segment; The content to be repaired is determined according to the target word probability vector.

9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

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