Voice repair method, device, audio equipment and storage medium

By building a phoneme model to identify and repair speech signal frames, the problem of damage and information loss after speech noise reduction is solved, and the communication quality is improved.

CN118314919BActive Publication Date: 2024-10-11GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410733009.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-11
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing voice noise reduction technology may cause damage to the voice signal during the noise removal process, leading to information loss and affecting communication quality.

Method used

By constructing a human voice sample data set corresponding to multiple phonemes, a speech model is established, the speech segment in the denoised speech signal frame is identified, and the target speech model is determined based on the similarity between the speech segment and the speech model, and the speech signal is The frame is repaired to repair the amplitude of the lossy frequency point.

Benefits of technology

Effectively repair the lost or missing voice signals after noise reduction, suppress information loss, and improve communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314919B_ABST
    Figure CN118314919B_ABST
Patent Text Reader

Abstract

The present application discloses a speech repair method, device, audio equipment and storage medium, and relates to the technical field of speech noise reduction. The present application discloses a speech repair method, including: for a speech signal frame after noise reduction, determining a speech frequency segment in the speech signal frame; determining the speech similarity between the speech signal frame and each speech model according to the frequency band similarity between the speech frequency segment and each speech model, wherein each speech model is a spectrum corresponding to a phoneme constructed by a human voice sample data set corresponding to each of a plurality of phonemes; determining a target speech model with the highest speech similarity with the speech signal frame in each speech model, and repairing the speech signal frame according to the target speech model. The present application can be used to repair speech signals that are lost or even missing after noise reduction, thereby improving the quality of communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of speech noise reduction, and in particular to a speech restoration method, apparatus, audio equipment and storage medium. Background Art

[0002] With the development of science and technology, people's requirements for communication quality are increasing. In the field of voice communication, noise interference is a common problem, which affects the clarity and intelligibility of voice. In order to solve this problem, ENC (Environmental Noise Cancellation) noise reduction technology came into being.

[0003] ENC noise reduction is a technology that uses advanced algorithms to eliminate background noise. It analyzes the input voice signal, identifies the noise component, and removes it from the original signal to obtain a purer voice signal.

[0004] However, when faced with complex and ever-changing real-world application scenarios, such as various types of non-steady-state noise and the limited computing power and memory resources of hardware devices, current noise reduction methods may damage the original voice signal while removing noise, or even cause information loss, thereby affecting communication quality.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a speech restoration method, apparatus, audio equipment and storage medium, aiming to solve the technical problem that speech signals may be damaged or even have information lost after noise reduction.

[0007] To achieve the above object, the present application proposes a voice repair method, the method comprising:

[0008] For the noise-reduced speech signal frame, determining a speech frequency segment in the speech signal frame;

[0009] Determining the speech similarity between the speech signal frame and each of the speech models according to the frequency band similarity between the speech band and each of the speech models, wherein each of the speech models is a spectrum corresponding to a phoneme constructed using a human voice sample data set corresponding to each of a plurality of phonemes;

[0010] A target speech model having the highest speech similarity with the speech signal frame is determined among the speech models, and the speech signal frame is repaired according to the target speech model.

[0011] In one embodiment, the step of repairing the speech signal frame according to the target speech model comprises:

[0012] Determine a lossy frequency point outside the speech frequency band in the speech signal frame, and obtain a frequency point amplitude of the speech signal frame at the lossy frequency point;

[0013] Calculate the prior amplitude mean of a plurality of prior speech signal frames before the speech signal frame at the lossy frequency point;

[0014] Obtaining a model amplitude of the target speech model at the lossy frequency point;

[0015] Multiplying the model amplitude by the prior amplitude mean to obtain a reference amplitude;

[0016] The frequency point amplitude and the reference amplitude are weightedly summed to obtain a new amplitude of the speech signal frame at the lossy frequency point to repair the lossy frequency point, wherein the sum of the weight of the frequency point amplitude and the weight of the reference amplitude is one.

[0017] In one embodiment, the step of performing weighted summation of the frequency point amplitude and the reference amplitude to obtain a new amplitude of the speech signal frame at the lossy frequency point includes:

[0018] Calculate the absolute value of the difference between the frequency point amplitude and the model amplitude;

[0019] The reference amplitude and the frequency point amplitude are weighted and summed based on the absolute value of the difference to obtain a new amplitude of the speech signal frame at the lossy frequency point, wherein the weight of the reference amplitude is positively correlated with the absolute value of the difference.

[0020] In one embodiment, the step of determining the speech segment in the speech signal frame comprises:

[0021] Acquire multiple formants in the speech signal frame;

[0022] Determine two target resonance peaks among the resonance peaks whose frequency distance is less than a preset threshold value as a target resonance peak group;

[0023] For each target formant group, determining a first frequency band between two target formants in the target formant group;

[0024] The first frequency band and frequency bands within a preset range on both sides of the first frequency band are used as a speech frequency band.

[0025] In one embodiment, after the step of determining the speech segment in the speech signal frame, the method further includes:

[0026] According to the frequency interval of the speech band, respectively intercepting the model signal within the frequency interval of each of the speech models;

[0027] Calculating the interval similarity between the speech segment and each of the model signals;

[0028] The interval similarities are used as frequency band similarities between the speech segment and each of the speech models.

[0029] In one embodiment, when there are multiple speech segments, the step of determining the speech similarity between the speech signal frame and each speech model according to the frequency band similarity between the speech segment and each speech model comprises:

[0030] For each of the speech models, a weighted average of frequency band similarities between the speech model and each of the speech bands is calculated, wherein a speech band with a lower frequency has a greater corresponding weight;

[0031] The weighted average value is used as the speech similarity between the speech model and the speech signal frame.

[0032] In one embodiment, before the step of determining the speech segment in the speech signal frame after noise reduction, the method further includes:

[0033] For each phoneme of the plurality of phonemes, obtaining an amplitude-frequency curve of each voice sample data in the voice sample data set corresponding to the phoneme;

[0034] Calculate the amplitude mean of each amplitude-frequency curve at each frequency point;

[0035] The amplitude means are normalized, and the normalized amplitude means are used as the amplitudes at each frequency point in the speech model to construct the speech model corresponding to the phoneme.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a speech repair device, the speech repair device comprising:

[0037] A speech segment determination module, configured to determine, for each speech signal frame of the denoised speech signal, a plurality of speech segments in the speech signal frame;

[0038] A similarity determination module, used to determine the speech similarity between the speech signal frame and each of the speech models according to the frequency band similarity between the speech frequency band and each of the speech models, wherein each of the speech models is a spectrum corresponding to a phoneme constructed by using a human voice sample data set corresponding to each of a plurality of phonemes;

[0039] The speech repair module is used to determine the target speech model with the highest speech similarity to the speech signal frame among the speech models, and repair the speech signal frame according to the target speech model.

[0040] In addition, to achieve the above objectives, the present application also proposes an audio device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the speech repair method described above.

[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the speech repair method described above are implemented.

[0042] The present application provides a speech repair method, which first constructs a speech model corresponding to each phoneme according to the phoneme features of a human voice when speaking, then detects multiple speech segments in each frame of a denoised speech signal, and then determines the similarity between the speech signal frame and each speech model according to the similarity between each speech segment and each speech model, and determines the target speech model with the highest similarity among each speech model, that is, the speech model that is most similar to the speech signal frame, and then repairs the speech signal frame according to the target speech model until each frame signal is repaired, thereby repairing the denoised speech signal.

[0043] In summary, the present application matches each speech signal frame in the speech signal by setting multiple speech models divided by phonemes, matches the most similar target speech model, that is, it is considered that the speech signal frame is most similar to the phonemes of the target speech model, and then the speech signal frame is repaired according to the target speech model to restore the phonemes of the speech signal frame. In this way, the entire speech signal is matched and repaired, which can repair the speech signal that is lost or even missing after noise reduction, suppress the information loss and even data loss that may be introduced by the noise reduction process, and thus improve the quality of communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0046] Figure 1 A flowchart of the first embodiment of the speech repair method of the present application is provided;

[0047] Figure 2 A schematic diagram of a formant acquisition process provided in Embodiment 2 of the speech restoration method of the present application;

[0048] Figure 3 A flowchart of the third embodiment of the speech repair method of the present application is provided;

[0049] Figure 4 This is a schematic diagram of the module structure of the speech repair device according to an embodiment of the present application;

[0050] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the voice repair method in the embodiment of the present application.

[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0054] The main solution of the embodiment of the present application is: for the denoised speech signal frame, determine the speech frequency segment in the speech signal frame; determine the speech similarity between the speech signal frame and each speech model according to the frequency band similarity between the speech frequency segment and each speech model, wherein each speech model is a spectrum corresponding to a phoneme constructed with a human voice sample data set corresponding to each of a plurality of phonemes; determine the target speech model with the highest speech similarity with the speech signal frame among the speech models, and repair the speech signal frame according to the target speech model.

[0055] In this embodiment, for the convenience of description, the following description is made with the audio device as the execution subject.

[0056] With the development of science and technology, people's requirements for communication quality are increasing. In the field of voice communication, noise interference is a common problem, which affects the clarity and intelligibility of voice. In order to solve this problem, ENC (Environmental Noise Cancellation) noise reduction technology came into being.

[0057] ENC noise reduction is a technology that uses advanced algorithms to eliminate background noise. It analyzes the input voice signal, identifies the noise component, and removes it from the original signal to obtain a purer voice signal.

[0058] However, when faced with complex and ever-changing real-world application scenarios, such as various types of non-steady-state noise and the limited computing power and memory resources of hardware devices, current noise reduction methods may damage the original voice signal while removing noise, or even cause information loss, thereby affecting communication quality.

[0059] In response to the above problems, the present application provides a speech repair method, which first constructs a speech model corresponding to each phoneme based on the phoneme features of a human voice when speaking, then detects multiple speech segments in each frame of the denoised speech signal, and then determines the similarity between the speech signal frame and each speech model based on the similarity between each speech segment and each speech model, and determines the target speech model with the highest similarity among each speech model, that is, the speech model that is most similar to the speech signal frame, and then repairs the speech signal frame according to the target speech model until each frame signal is repaired, thereby repairing the denoised speech signal.

[0060] In summary, the present application matches each speech signal frame in the speech signal by setting multiple speech models divided by phonemes, matches the most similar target speech model, that is, it is considered that the speech signal frame is most similar to the phonemes of the target speech model, and then the speech signal frame is repaired according to the target speech model to restore the phonemes of the speech signal frame. In this way, the entire speech signal is matched and repaired, which can repair the speech signal that is lost or even missing after noise reduction, suppress the information loss and even data loss that may be introduced by the noise reduction process, and thus improve the quality of communication.

[0061] Based on this, the present application embodiment provides a voice repair method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the speech restoration method of the present application.

[0062] In this embodiment, the voice repair method includes steps S10 to S30:

[0063] Step S10, determining a speech segment in the speech signal frame after noise reduction;

[0064] It should be noted that the speech band is a frequency band containing human voice. It is understandable that the part identified as the speech band has no loss or little loss during the noise reduction process and does not need to be repaired.

[0065] In this embodiment, in order to match the phonemes corresponding to the speech signal frame, the speech segments that may exist in the speech signal frame, that is, the undamaged speech signal segments, can be identified first. There are many ways to obtain the speech segments in a frame of signal. For example, the speech segments in the speech signal frame can be screened out by adaptive filtering, which is not further limited here.

[0066] In addition, before repairing the speech signal, the speech signal needs to be denoised. When performing the denoising process, the speech signal needs to be divided into multiple speech signal frames to facilitate subsequent processing. In order to reduce the spectrum leakage caused by window truncation and improve the frequency resolution during Fourier transform, the speech signal frame needs to be windowed, that is, a window function is superimposed on the signal in the speech signal frame to obtain each windowed speech signal frame.

[0067] Preferably, a Hamming window can be selected as the window function for windowing. Using a Hamming window as the window function can reduce the spectrum leakage caused by the window edge and reduce the height of the side lobe, so that the window function has better frequency resolution capability, taking into account both window smoothness and frequency resolution, and has a lower computational cost.

[0068] After windowing the speech signal frame, the speech signal frame needs to be transformed into the frequency domain. Using Fourier transform to transform the speech signal frame from time domain to frequency domain is simple and direct. There are many types of Fourier transform to choose from. In the preferred scheme, short-time fast Fourier transform can be selected to process the speech signal to make the subsequent processing process more intuitive.

[0069] After obtaining each speech signal frame in the frequency domain, each speech signal frame can be subjected to a noise reduction operation. The noise reduction operation can adopt a traditional noise reduction method. For example, the power spectral density of the background noise can be estimated, and the estimated noise power spectrum can be subtracted from the power spectral density containing the speech signal, or other filtering methods based on mathematical and physical principles can be adopted. Such noise reduction methods have a small amount of computation and can reduce noise in real time, but inevitably require ideal a priori assumptions based on human cognition, which makes traditional noise reduction perform poorly for various types of non-steady-state noise that frequently occur in real scenes.

[0070] Preferably, AI (artificial intelligence) noise reduction can be used, taking a large amount of audio data shared in actual user scenarios as the data source, and establishing an appropriate data model as the basis for adaptive noise reduction. Although the computational complexity of AI noise reduction is large, the noise reduction effect is better than traditional noise reduction methods.

[0071] In a feasible implementation manner, steps A10 to A30 may be further included before step S10:

[0072] Step A10, for each phoneme in the plurality of phonemes, obtaining an amplitude-frequency curve of each voice sample data in the voice sample data set corresponding to the phoneme;

[0073] It should be noted that a phoneme is the smallest unit that makes up a sound when a person speaks. For example, in Mandarin, the 23 initial consonants and 24 finals are each a phoneme. Similarly, similar phonemes exist in other languages. The number and types of phonemes are not further limited here.

[0074] In this embodiment, in order to repair the speech signal of a person when speaking, the human voice can be divided according to phonemes to improve the accuracy and precision of the repair. In order to restore the lost speech signal, it is necessary to first construct a speech model corresponding to each phoneme as a restoration standard. When constructing the speech model, it is necessary to select multiple different samples for each phoneme, and then construct a model corresponding to each phoneme based on each sample. In addition, in order to facilitate similarity detection with the speech signal, the speech model needs to be a spectrum.

[0075] Preferably, the samples need to include samples of different genders and ages. Although the timbre of different people is different, the amplitude curve of the sound is similar when they make the same sound. Therefore, selecting rich samples will not only avoid recognition errors, but also improve the applicability of the model and further improve the accuracy of the model.

[0076] As an example, since human voice is concentrated in the range of 300Hz to 4000Hz, the vocal signals of multiple people for each initial and final consonant in a quiet scene in the 300Hz to 4000Hz spectrum can be collected as samples, and then the speech model of each phoneme can be obtained based on the samples.

[0077] In this embodiment, for each phoneme, each human voice sample needs to be converted first, converting the time domain signal into a signal in the frequency domain, so as to obtain the amplitude-frequency curve of each human voice sample.

[0078] Specifically, Fourier transform may be performed on the vocal samples respectively to convert the signals from the time domain to the frequency domain.

[0079] Step A20, calculating the amplitude mean of each amplitude-frequency curve at each frequency point;

[0080] In this embodiment, the amplitude-frequency curve can be divided into a plurality of discrete amplitudes according to the frequency points, and the amplitude mean at each frequency point can be calculated according to the amplitude at each frequency point in each amplitude-frequency curve.

[0081] Step A30, normalizing the amplitude means, and using the normalized amplitude means as the amplitude at each frequency point in the speech model to construct the speech model corresponding to the phoneme.

[0082] In this embodiment, after calculating the amplitude mean of each frequency point, the amplitude mean needs to be normalized, that is, the model only represents the amplitude-frequency characteristics of the phoneme, and the speech model corresponding to the phoneme can be obtained after normalization.

[0083] As an example, the sample set includes N different human voice samples. When there are multiple different phonemes, the formula for constructing the speech model for a certain phoneme is as follows:

[0084]

[0085] Among them, k refers to the frequency index, frame_len refers to the frame length, the number of frequency indexes is half of the frame length plus one, magnk refers to the amplitude of the i-th sample at k, and refers to the normalized result of the amplitude of the i-th sample at k. N refers to the number of samples. model_magnk refers to the amplitude of the speech model at frequency k, that is, the average amplitude of each sample at frequency k. The speech model of the phoneme can be obtained by combining the amplitudes of all frequency points.

[0086] In this embodiment, the model is constructed by collecting different human voice samples, which can improve the applicability and robustness of the model. Only the amplitude mean is used to construct the speech model, which requires a small storage space and a small amount of calculation, thereby improving the practicality of the algorithm.

[0087] In addition, in another feasible embodiment, the signal of the human voice sample can be preprocessed and then feature extracted to obtain a feature sequence corresponding to the phoneme. When performing similarity matching, the feature sequence of the speech segment is also calculated, and the similarity is judged based on the similarity between the feature sequences.

[0088] It can be understood that the first embodiment of constructing the model provided above has fewer processing steps and less extreme complexity than the second embodiment. Since the second embodiment can better highlight the characteristics of phonemes than the first embodiment, the model constructed by the second embodiment is also more accurate.

[0089] The above are only two feasible implementation methods of constructing a speech model provided in this embodiment. This embodiment does not specifically limit the specific implementation method of constructing a speech model.

[0090] Step S20, determining the speech similarity between the speech signal frame and each of the speech models according to the frequency band similarity between the speech band and each of the speech models, wherein each of the speech models is a spectrum corresponding to a phoneme constructed using a human voice sample data set corresponding to each of a plurality of phonemes;

[0091] It should be noted that each of the speech models used in this embodiment is a spectrum corresponding to a phoneme constructed using a human voice sample data set corresponding to each of the multiple phonemes, and the speech model is constructed in the same manner as the above-mentioned steps for constructing a speech model.

[0092] In this embodiment, it is necessary to first calculate the frequency band similarity between the speech band and each speech model, and then integrate the frequency band similarities calculated for the same speech model to obtain the speech similarity between the entire speech signal frame and each speech model. There are many ways to calculate the frequency band similarity. For example, the Euclidean distance can be used to calculate the speech similarity, which is not further limited here.

[0093] Step S30, determining a target speech model having the highest speech similarity with the speech signal frame among the speech models, and repairing the speech signal frame according to the target speech model.

[0094] In this embodiment, after calculating the speech similarity between the speech signal frame and each speech model, the speech model with the highest speech similarity is selected as the target speech model, that is, the signal characteristics of the speech signal frame are most similar to the target speech model, and the phonemes of the speech signal frame are similar to the phonemes of the target speech model. The target speech model can be used to repair the speech signal frame. There are many ways to repair it. For example, the target speech model can be mapped to the speech signal frame according to the amplitude ratio between the target speech model and the speech signal frame to repair the entire speech signal frame. No further limitation is made here.

[0095] This embodiment can be applied to speech restoration after conventional noise reduction, and can also be applied to speech restoration after AI (artificial intelligence) noise reduction. Since AI noise reduction has a better noise reduction effect, this embodiment can show better performance in AI noise reduction. After noise reduction, the noise is suppressed to a great extent, the speech spectrum information is more prominent, and the resonance peak information can be obtained more accurately, so that the speech damage frequency band, the speech loss frequency band, and the speech band seriously polluted by noise can be effectively repaired, thereby improving the speech fidelity and noise reduction effect; and the computational complexity is low, and it is easy to process in real time.

[0096] The present application matches each speech signal frame in the speech signal by setting multiple speech models divided by phonemes, matches the most similar target speech model, that is, it is considered that the speech signal frame is most similar to the phonemes of the target speech model, and then repairs the speech signal frame according to the target speech model to restore the phonemes of the speech signal frame. In this way, the entire speech signal is matched and repaired, which can repair the speech signal that is lost or even missing after noise reduction, suppresses the information loss and even data loss that may be introduced by the noise reduction process, and thus improves the quality of communication.

[0097] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, in step S20, the step of determining the multiple speech segments in the speech signal frame includes steps B10 to B40:

[0098] Step B10, obtaining a plurality of formant peaks in the speech signal frame;

[0099] It should be noted that resonance peaks refer to some areas where energy is relatively concentrated in the sound spectrum. Resonance peaks are not only the determining factor of sound quality, but also reflect the physical characteristics of the vocal tract (resonance cavity).

[0100] In this embodiment, in order to detect the identifiable speech segment in the speech signal frame, the speech segment can be determined by using the formant as the detection reference. Therefore, it is necessary to first detect multiple formants in the speech signal frame. There are many methods for formant estimation, such as bandpass filter bank method, cepstrum method, linear prediction method, etc. No further limitation is made here.

[0101] Specifically, in a feasible implementation manner, step B10 may include the following steps:

[0102] Step B11, preprocessing the speech signal frame to obtain a processed intermediate frame;

[0103] In this embodiment, there may be many steps for preprocessing the speech signal frame, and a commonly used step is to add a window to the frame signal to reduce the edge effect.

[0104] Step B12, performing Fourier transform on the intermediate frame to obtain a frame signal in the frequency domain;

[0105] In this embodiment, after preprocessing the frame signal to obtain the intermediate frame, it is necessary to perform Fourier transform on the intermediate frame to convert the intermediate frame in the time domain to the frequency domain to obtain the frame signal in the frequency domain, so as to observe and analyze the spectral characteristics of the signal.

[0106] Step B13, after calculating the amplitude of the frame signal, taking the logarithm of the amplitude to obtain the logarithmic amplitude spectrum of the frame signal;

[0107] In this embodiment, after the frame signal is obtained, the amplitude of the frame signal is calculated first, and then the logarithm is taken to obtain the amplitude in the logarithmic domain, that is, the logarithmic amplitude spectrum.

[0108] Step B14, performing inverse Fourier transform on the logarithmic amplitude spectrum to obtain a cepstrum sequence;

[0109] In this embodiment, after the logarithmic amplitude spectrum is obtained, an inverse Fourier transform is performed on the logarithmic amplitude spectrum to obtain a cepstrum sequence.

[0110] Step B15, superimposing a preset window function on the cepstrum sequence, and performing Fourier transform to obtain the envelope of the frame signal;

[0111] In this embodiment, in order to facilitate the detection of the resonance peak, it is also necessary to add a window to the cepstrum sequence and then perform Fourier transform to obtain the envelope of the frame signal. The window function is generally set to a rectangular window, and the width of the window function is related to the resolution of the cepstrum, that is, the sampling frequency and the length of the FFT (Fast Fourier Transform).

[0112] Step B16: taking the multiple extreme values ​​of the envelope as the multiple formant peaks of the speech signal frame.

[0113] In this embodiment, multiple corresponding resonance peaks can be obtained by searching for multiple maximum values ​​in the envelope.

[0114] As an example, see Figure 2 The process of obtaining the resonance peak is as follows: Figure 2 As shown, the frame signal is first preprocessed, then FFT is performed, and then the logarithmic amplitude spectrum is calculated. Then, IFFT (Inverse Fast Fourier Transform) is performed, and the window function is superimposed. After FFT is performed to obtain the envelope line, the extreme value of the envelope is calculated to obtain n resonance peaks.

[0115] In this embodiment, since the noise of the noisy speech is well suppressed after noise reduction, the speech spectrum becomes clearer and fuller, and it is closer to estimating the resonance peak in a high signal-to-noise ratio scenario. At the same time, considering the low computational complexity and easy implementation, the use of the inverse spectrum method can reduce the amount of calculation while ensuring the accuracy of the algorithm, thereby improving the practicability of the algorithm.

[0116] In other feasible implementations, deep learning methods can also be used to obtain resonance peaks, which are more robust to noise, but require more time and resources than the cepstrum method, and are more complex. Linear prediction methods can also be used. The linear prediction method has the lowest computational complexity, but for rapidly changing resonance peaks, the tracking performance may be poor, and the performance is worse than the cepstrum method.

[0117] The above are only two feasible implementation methods of step B10 provided in this embodiment, and this embodiment does not specifically limit the specific implementation method of step B10.

[0118] Step B20, determining two target resonance peaks whose frequency distance is less than a preset threshold value among the resonance peaks as a target resonance peak group;

[0119] Step B30, for each target formant group, determining a first frequency band between two target formant peaks in the target formant group;

[0120] Step B40: Use the first frequency band and frequency bands within a preset range on both sides of the first frequency band as a speech frequency band.

[0121] It should be noted that, in this embodiment, the preset threshold value may be a threshold value set according to actual experience, which is not limited here. The preset range may also be a certain range set according to actual experience, which is not limited here.

[0122] In this embodiment, after the resonance peaks are determined, the speech band of the undamaged speech in the speech signal frame can be determined based on the resonance peaks. First, a preset threshold can be set based on experience. If the distance between the frequency points of two resonance peaks is less than the preset threshold, the frequency band between the two resonance peaks is considered to be an undamaged speech band. In addition, generally speaking, the peak value of the speech signal is not at the beginning and end of the speech signal. Therefore, it is also necessary to expand the frequency band outside the two resonance peaks, and select the frequency band within the preset range outside the two resonance peaks and the frequency band between the two resonance peaks as a speech band.

[0123] As an example, in determining multiple resonance peaks fmt i After (where i is the sequence number of the formant in the same speech signal frame), the local speech audio segment is determined according to the formant:

[0124]

[0125] Among them, j is the serial number of the speech segment in the same speech signal frame, freq start_index is the amplitude at the starting frequency index, freq end_indexis the amplitude at the end frequency index. The speech band is the spectrum consisting of the amplitude at the start frequency index to the amplitude at the end frequency index. The calculation formulas for the start frequency index and the end frequency index are as follows:

[0126]

[0127] Among them, start_index is the starting frequency index, end_index is the ending frequency index, fmt m and fmt n is the frequency index of the mth and nth resonance peaks, n is greater than m, σ is a preset range, Δ is a preset threshold, if the frequency index of the nth resonance peak minus the frequency index of the mth resonance peak is less than the preset threshold, then the starting frequency index of the speech segment is taken as the frequency index of the mth resonance peak minus the preset range, the ending frequency index is the frequency index of the nth resonance peak plus the preset range, and the spectrum between the starting frequency index and the ending frequency index is taken as the speech segment.

[0128] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the first embodiment and / or the second embodiment can be referred to the above introduction, and will not be described in detail later. On this basis, the voice repair method also includes steps C11 to C13:

[0129] Step C11, according to the frequency interval of the speech band, respectively intercepting the model signal within the frequency interval of each speech model;

[0130] Step C12, calculating the interval similarity between the speech segment and each of the model signals;

[0131] Step C13: taking each of the interval similarities as the frequency band similarities between the speech segment and each of the speech models.

[0132] In this embodiment, when calculating the frequency band similarity between each speech segment and each voice model, it is necessary to first unify the lengths between the two, that is, for each speech segment, according to the frequency range of the speech segment, the signal of the frequency range is intercepted in each voice model as the model signal, and then the similarity between each model signal and the speech segment is calculated. There are many ways to calculate the similarity. For example, the similarity between two vectors can be calculated by calculating the Euclidean distance between the vectors, and the similarity can also be calculated by calculating the cosine similarity between the vectors. The calculated result is the frequency band similarity between the speech segment and each voice model.

[0133] Specifically, as an example, the speech segment is:

[0134]

[0135] The value of j ranges from 1 to the number of speech segments, N spk is the number of speech segments, and the model signal of the i-th speech model is:

[0136]

[0137] The formula for calculating similarity is:

[0138]

[0139] ρ j is the similarity between the jth speech segment and the i-th speech model.

[0140] In a feasible implementation, step S30 may include steps S31-S32:

[0141] Step S31, for each of the speech models, calculating a weighted average of frequency band similarities between the speech model and each of the speech bands, wherein the speech band with a lower frequency has a greater corresponding weight;

[0142] Step S32: taking the weighted average as the speech similarity between the speech model and the speech signal frame.

[0143] In this embodiment, after calculating the frequency band similarity between each speech band and each speech model, the speech similarity between the entire speech signal frame and each speech model can be calculated based on the frequency band similarity. During the calculation, for each speech model, the weighted average of the frequency band similarities corresponding to the speech model is calculated. Since the effective information of the human voice is mainly distributed in the lower frequency area, when setting the weight, the weight is negatively correlated with the frequency band size of the speech band. The weighted average calculation results in the speech similarity between the speech signal frame and the speech model.

[0144] As an example, the formula for calculating voice similarity is:

[0145]

[0146] in, is the weight of the similarity of the jth frequency band, ρ cur is the similarity between the speech signal frame and a certain speech model.

[0147] In addition, as an implementation method, when setting the weights, the weights can be set according to the distribution area of ​​the human voice. The frequency band where the human voice is distributed uses the same A weight, and the frequency band where the human voice is not distributed uses the same B weight. The A weight is much larger than the B weight to increase the importance of the human voice area.

[0148] In one possible implementation, please refer to Figure 3 In step S40, the step of repairing the speech signal according to the target speech model may include steps S41 to S45:

[0149] Step S41, determining a lossy frequency point outside the speech frequency band in the speech signal frame, and obtaining a frequency point amplitude of the speech signal frame at the lossy frequency point;

[0150] Step S42, calculating a priori amplitude mean of a plurality of priori speech signal frames before the speech signal frame at the lossy frequency point;

[0151] Step S43, obtaining the model amplitude of the target speech model at the lossy frequency point;

[0152] Step S44, multiplying the model amplitude by the prior amplitude mean to obtain a reference amplitude;

[0153] Step S45, performing weighted summation of the frequency point amplitude and the reference amplitude to obtain a new amplitude of the speech signal frame at the lossy frequency point to repair the lossy frequency point, wherein the sum of the weight of the frequency point amplitude and the weight of the reference amplitude is one.

[0154] In this embodiment, when repairing the speech of the speech signal frame, the region that is not recognized as a speech segment is mainly repaired. Since the overall similarity between the speech signal frame and the target speech model is high, it can be considered that the phonemes of the human voice in the speech signal frame are the same as the target speech model, that is, the target speech model can be used to restore the lost region. In addition, because the same phoneme may last for multiple frames when a person speaks, in order to make the restored signal more consistent with the human voice, it is also necessary to use the prior information of the previous frames to repair the frame.

[0155] First, determine the lossy frequency points in the speech signal frame that are not recognized as speech segments. There can be multiple lossy frequency points. Obtain the prior amplitude mean of the corresponding lossy frequency points in the speech signal in several frames before the speech signal frame, the frequency amplitude of the lossy frequency points in the speech signal frame, and the model amplitude of the lossy frequency points in the target speech model. The comprehensive model amplitude and the prior amplitude mean are used as the reference amplitude. The reference amplitude and the frequency amplitude are weighted and summed to obtain the new amplitude of the frequency point in the speech signal frame. The sum of the weight of the frequency amplitude and the weight of the reference amplitude is one.

[0156] In a feasible implementation manner, in step S45, the step of performing weighted summation of the frequency point amplitude and the reference amplitude to obtain a new amplitude of the speech signal frame at the lossy frequency point may include:

[0157] Calculate the absolute value of the difference between the frequency point amplitude and the model amplitude;

[0158] The reference amplitude and the frequency point amplitude are weighted and summed based on the absolute value of the difference to obtain a new amplitude of the speech signal frame at the lossy frequency point, wherein the weight of the reference amplitude is positively correlated with the absolute value of the difference.

[0159] In this embodiment, the absolute value of the difference between the frequency point amplitude and the model amplitude can reflect the degree of frequency loss. The larger the absolute value of the difference between the frequency point amplitude and the model amplitude, the more serious the loss. In this case, the weight of the reference amplitude should be appropriately increased. In addition, when calculating the reference amplitude, it can also be multiplied by an empirical value obtained from past experience to improve the performance of the algorithm.

[0160] As an example, when it is determined that a certain subband of the current frame has residual noise, the residual noise in the certain subband of the current frame is suppressed according to the prior information of the amplitude of the previous n-1 frames. The specific formula is as follows:

[0161]

[0162]

[0163] in, is the frequency amplitude, is the model amplitude, is the prior amplitude mean, is the weight of the frequency point amplitude. The sum of the weight of the frequency point amplitude and the weight of the reference amplitude is 1. is the new amplitude of the subband in the speech signal frame, is the experience value, is the prior amplitude of the signal subband in the previous few frames.

[0164] In addition, as an example, the loss degree of the lossy frequency point can also be divided by setting the amplitude threshold. If the absolute value of the difference is greater than the amplitude threshold, it means that the loss is large, and the first weight η1 is used as the weight of the frequency amplitude. If the absolute value of the difference is less than or equal to the amplitude threshold, it means that the loss is small, and the second weight η2 is used as the weight of the frequency amplitude. Specifically, the calculation formula is as follows:

[0165]

[0166]

[0167] Among them, η1 is less than η2, and φ is the amplitude threshold.

[0168] Compared with the above-mentioned method of linear weight change, the method of using thresholds for division has less computational complexity but lower accuracy.

[0169] The above are only two feasible implementation methods of the voice restoration provided by this embodiment, and this embodiment does not specifically limit the specific implementation methods of the voice restoration.

[0170] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the speech repair method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0171] This application also provides a voice repair device, please refer to Figure 4 , the speech repair device comprises:

[0172] A speech segment determination module 10, configured to determine, for each speech signal frame of the denoised speech signal, a plurality of speech segments in the speech signal frame;

[0173] A similarity determination module 20 is used to determine the speech similarity between the speech signal frame and each of the speech models according to the frequency band similarity between the speech band and each of the speech models, wherein each of the speech models is a spectrum corresponding to a phoneme constructed by using a human voice sample data set corresponding to each of the plurality of phonemes;

[0174] The speech repair module 30 is used to determine the target speech model with the highest speech similarity to the speech signal frame among the speech models, and repair the speech signal frame according to the target speech model.

[0175] Optionally, the voice repair module 30 is further used for:

[0176] Determine a lossy frequency point outside the speech frequency band in the speech signal frame, and obtain a frequency point amplitude of the speech signal frame at the lossy frequency point;

[0177] Calculate the prior amplitude mean of a plurality of prior speech signal frames before the speech signal frame at the lossy frequency point;

[0178] Obtaining a model amplitude of the target speech model at the lossy frequency point;

[0179] Multiplying the model amplitude by the prior amplitude mean to obtain a reference amplitude;

[0180] The frequency point amplitude and the reference amplitude are weightedly summed to obtain a new amplitude of the speech signal frame at the lossy frequency point to repair the lossy frequency point, wherein the sum of the weight of the frequency point amplitude and the weight of the reference amplitude is one.

[0181] Optionally, the voice repair module 30 is further used for:

[0182] Calculate the absolute value of the difference between the frequency point amplitude and the model amplitude;

[0183] The reference amplitude and the frequency point amplitude are weighted and summed based on the absolute value of the difference to obtain a new amplitude of the speech signal frame at the lossy frequency point, wherein the weight of the reference amplitude is positively correlated with the absolute value of the difference.

[0184] Optionally, the speech segment determination module 10 is further configured to:

[0185] Acquire multiple formants in the speech signal frame;

[0186] Determine two target resonance peaks among the resonance peaks whose frequency distance is less than a preset threshold value as a target resonance peak group;

[0187] For each target formant group, determining a first frequency band between two target formants in the target formant group;

[0188] The first frequency band and frequency bands within a preset range on both sides of the first frequency band are used as a speech frequency band.

[0189] Optionally, the voice repair device further includes:

[0190] The frequency band similarity calculation module is used to intercept the model signals in the frequency interval of each of the voice models according to the frequency interval of the voice band; calculate the interval similarity between the voice band and each of the model signals; and use each of the interval similarities as the frequency band similarity between the voice band and each of the voice models.

[0191] Optionally, the similarity determination module 20 is further used for:

[0192] For each of the speech models, a weighted average of frequency band similarities between the speech model and each of the speech bands is calculated, wherein a speech band with a lower frequency has a greater corresponding weight;

[0193] The weighted average value is used as the speech similarity between the speech model and the speech signal frame.

[0194] Optionally, the voice repair device further includes:

[0195] A modeling module is used to obtain, for each phoneme in the multiple phonemes, the amplitude-frequency curve of each human voice sample data in the human voice sample data set corresponding to the phoneme; calculate the amplitude mean of each amplitude-frequency curve at each frequency point; normalize each amplitude mean value, and use the normalized amplitude mean values ​​as the amplitude at each frequency point in the speech model to construct the speech model corresponding to the phoneme.

[0196] The speech repair device provided by the present application adopts the speech repair method in the above embodiment, which can solve the technical problem that the speech signal will be damaged or even lost after noise reduction. Compared with the prior art, the beneficial effects of the speech repair device provided by the present application are the same as the beneficial effects of the speech repair method provided by the above embodiment, and the other technical features of the speech repair device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0197] The present application provides an audio device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the speech repair method in the above-mentioned embodiment 1.

[0198] Reference below Figure 5 , which shows a schematic diagram of the structure of an audio device suitable for implementing an embodiment of the present application. The audio device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), headphones, VR devices, etc., and fixed terminals such as digital TVs, desktop computers, audio systems, etc. Figure 5 The audio device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0199] like Figure 5As shown, the audio device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the audio device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the audio device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an audio device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0200] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0201] The audio device provided by the present application adopts the voice repair method in the above embodiment, which can solve the technical problem that the voice signal will be damaged or even lost after noise reduction. Compared with the prior art, the beneficial effects of the audio device provided by the present application are the same as the beneficial effects of the voice repair method provided by the above embodiment, and the other technical features in the audio device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0202] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0203] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0204] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the speech repair method in the above-mentioned embodiment.

[0205] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0206] The computer-readable storage medium may be included in the audio device; or may exist independently without being installed in the audio device.

[0207] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the audio device, the audio device:

[0208] For the noise-reduced speech signal frame, determining a speech frequency segment in the speech signal frame;

[0209] Determining the speech similarity between the speech signal frame and each of the speech models according to the frequency band similarity between the speech band and each of the speech models, wherein each of the speech models is a spectrum corresponding to a phoneme constructed using a human voice sample data set corresponding to each of a plurality of phonemes;

[0210] A target speech model having the highest speech similarity with the speech signal frame is determined among the speech models, and the speech signal frame is repaired according to the target speech model.

[0211] Computer program code for performing the operation of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" voice or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0212] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0213] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0214] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned voice repair method, and can solve the technical problem that voice signals may be damaged or even have information lost after noise reduction. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the voice repair method provided in the above-mentioned embodiment, and will not be described in detail here.

[0215] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A voice repair method, characterized in that: The method includes: For the noise-reduced speech signal frame, determining a speech frequency segment in the speech signal frame; Determining the speech similarity between the speech signal frame and each of the speech models according to the frequency band similarity between the speech band and each of the speech models, wherein each of the speech models is an amplitude-frequency curve corresponding to a phoneme and constructed using a human voice sample data set corresponding to each of a plurality of phonemes; A target speech model having the highest speech similarity with the speech signal frame is determined among the speech models, and the speech signal frame is repaired according to the target speech model.

2. The method according to claim 1, characterized in that The step of repairing the speech signal frame according to the target speech model comprises: Determine a lossy frequency point outside the speech frequency band in the speech signal frame, and obtain a frequency point amplitude of the speech signal frame at the lossy frequency point; Calculate the prior amplitude mean of a plurality of prior speech signal frames before the speech signal frame at the lossy frequency point; Obtaining a model amplitude of the target speech model at the lossy frequency point; Multiplying the model amplitude by the prior amplitude mean to obtain a reference amplitude; The frequency point amplitude and the reference amplitude are weightedly summed to obtain a new amplitude of the speech signal frame at the lossy frequency point to repair the lossy frequency point, wherein the sum of the weight of the frequency point amplitude and the weight of the reference amplitude is one.

3. The method according to claim 2, characterized in that The step of performing weighted summation of the frequency point amplitude and the reference amplitude to obtain a new amplitude of the speech signal frame at the lossy frequency point comprises: Calculate the absolute value of the difference between the frequency point amplitude and the model amplitude; The reference amplitude and the frequency point amplitude are weighted and summed based on the absolute value of the difference to obtain a new amplitude of the speech signal frame at the lossy frequency point, wherein the weight of the reference amplitude is positively correlated with the absolute value of the difference.

4. The method according to claim 1, characterized in that The step of determining the speech segment in the speech signal frame comprises: Acquire multiple formants in the speech signal frame; Determine two target resonance peaks among the resonance peaks whose frequency distance is less than a preset threshold value as a target resonance peak group; For each target formant group, determining a first frequency band between two target formants in the target formant group; The first frequency band and frequency bands within a preset range on both sides of the first frequency band are used as a speech frequency band.

5. The method according to claim 1, characterized in that After the step of determining the speech segment in the speech signal frame, the method further comprises: According to the frequency interval of the speech band, respectively intercepting the model signal within the frequency interval of each of the speech models; Calculating the interval similarity between the speech segment and each of the model signals; The interval similarities are used as frequency band similarities between the speech segment and each of the speech models.

6. The method according to claim 1, characterized in that When there are multiple speech segments, the step of determining the speech similarity between the speech signal frame and each speech model according to the frequency band similarity between the speech segment and each speech model comprises: For each of the speech models, a weighted average of frequency band similarities between the speech model and each of the speech bands is calculated, wherein a speech band with a lower frequency has a greater corresponding weight; The weighted average value is used as the speech similarity between the speech model and the speech signal frame.

7. The method according to claim 1, characterized in that Before the step of determining the speech segment in the speech signal frame after noise reduction, the method further includes: For each phoneme of the plurality of phonemes, obtaining an amplitude-frequency curve of each voice sample data in the voice sample data set corresponding to the phoneme; Calculate the amplitude mean of each amplitude-frequency curve at each frequency point; The amplitude means are normalized, and the normalized amplitude means are used as the amplitudes at each frequency point in the speech model to construct the speech model corresponding to the phoneme.

8. A speech repair device, characterized in that: The device comprises: A speech segment determination module, configured to determine, for each speech signal frame of the denoised speech signal, a plurality of speech segments in the speech signal frame; A similarity determination module, used to determine the speech similarity between the speech signal frame and each of the speech models according to the frequency band similarity between the speech band and each of the speech models, wherein each of the speech models is an amplitude-frequency curve corresponding to a phoneme constructed by using a human voice sample data set corresponding to each of a plurality of phonemes; The speech repair module is used to determine the target speech model with the highest speech similarity to the speech signal frame among the speech models, and repair the speech signal frame according to the target speech model.

9. An audio device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the speech repair method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the speech repair method according to any one of claims 1 to 7 are implemented.