Sound modulation method, electronic device and storage medium

By adaptively searching the pitch period and windowing processing in the sound pitch modification method, the problem of insufficient real-time performance of audio data processing in the existing technology is solved, and more efficient audio data processing is achieved.

CN113782050BActive Publication Date: 2024-08-30ZHEJIANG DAHUA TECH CO LTD
View PDF 21 Cites 0 Cited by

Patent Information

Application Number
CN202111052275.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-08
Publication Date
2024-08-30
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

The existing sound pitch modification method does not have high real-time performance in processing sound, especially when there is no sound segment for a long time, the analysis frame time is too long, so the processing cannot be real-time.

Method used

By obtaining the audio data to be processed, search for pitch periods from short to long according to the duration, adaptively determine the number of pitch periods, and add windows within the allowed range to generate analysis frames, and use a multi-level duration strategy to ensure that the number of pitch periods is greater than the threshold. , to avoid the analysis frame taking too long.

Benefits of technology

It improves the real-time nature of sound processing, ensures that the duration of the analysis frame is within the allowed range, and enhances the real-time processing capabilities of audio data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113782050B
    Figure CN113782050B
Patent Text Reader

Abstract

The present application discloses a method for sound pitch shifting, an electronic device and a computer-readable storage medium. The method comprises: obtaining audio data to be processed; searching for pitch cycles in order of duration from short to long from the current starting point to determine the current first audio frame, wherein the number of pitch cycles of the current first audio frame is greater than the pitch cycle threshold, and the shorter the search duration, the larger the corresponding pitch cycle threshold; windowing the current first audio frame to obtain the current analysis frame; and synthesizing the target audio data using the current analysis frame. In the above manner, the real-time performance of the sound processing during the sound pitch shifting process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of audio processing, and in particular to a sound pitch change method, an electronic device and a computer-readable storage medium. Background Art

[0002] For the purpose of protecting personal information or entertainment, it is often necessary to change the sound in the original audio data by a voice change (sound tone change) method. The sound tone change method is to change the tone of the sound under the premise that the sound speed remains unchanged. For example, in some anonymous video conferences, if personal information is to be protected, it is necessary to use a sound tone change method to process the audio data of the conference process, and change the voice of the speaker during the video conference so that the voice of the speaker in the original audio data cannot be distinguished. However, the existing sound tone change method is not very real-time in processing sound. Summary of the invention

[0003] The present application provides a sound pitch change method, an electronic device and a computer-readable storage medium, which can solve the problem that the existing sound pitch change method has low real-time processing performance for sound.

[0004] In order to solve the above technical problems, a technical solution adopted by the present application is to provide a sound pitch change method. The method includes: obtaining audio data to be processed; searching for pitch cycles in order from short to long duration from the current starting point to determine the current first audio frame, wherein the number of pitch cycles of the current first audio frame is greater than the pitch cycle threshold, and the shorter the search duration, the larger the corresponding pitch cycle threshold; windowing the current first audio frame to obtain the current analysis frame; and synthesizing the target audio data using the current analysis frame.

[0005] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, which includes a processor and a memory connected to the processor, wherein the memory stores program instructions; the processor is used to execute the program instructions stored in the memory to implement the above method.

[0006] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a computer-readable storage medium storing program instructions, which can implement the above method when executed.

[0007] Through the above method, when determining the current first audio frame in the present application, the pitch period is searched in order from short to long in duration from the current starting point, that is, the number of pitch periods is adaptively searched according to the multi-level duration strategy, so as to ensure that after windowing the current first audio frame, the number of pitch periods of the analysis frame obtained is greater than the pitch period threshold and the duration is within the allowable range, so that the duration of the analysis frame will not be too long, thereby improving the real-time performance of sound processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 It is a flowchart of an embodiment of the sound pitch changing method of the present application;

[0009] Figure 2 yes Figure 1 The specific process diagram of S11;

[0010] Figure 3 It is a flowchart of another embodiment of the sound pitch changing method of the present application;

[0011] Figure 4 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0012] Figure 5 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0013] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0014] The terms "first", "second", and "third" in this application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first", "second", and "third" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0015] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments without conflict.

[0016] Before introducing the method provided by this application, the reasons why the existing sound pitch change method cannot process in real time are explained:

[0017] The processing of audio data mentioned in this application is from the perspective of time domain. The audio data to be processed includes multiple sampling points, each of which has a corresponding sampling time point and sequence number. The pitch period is the manifestation of the fundamental pitch period in the time domain, and the position of the pitch period is the starting position of the fundamental pitch period in the time domain, which is expressed as the sequence number of the specific sampling point in the time domain.

[0018] In the existing scheme, the number of pitch periods of the analysis frame used to synthesize the target audio data is fixed. Taking a fixed number M (M ≥ 2) as an example, an analysis frame is defined as the portion of the M pitch period intervals in the original audio data multiplied by a Hanning window of length M_interval. The analysis frame can be expressed by the following formula:

[0019] x s (n)=x(e(n):e(n+M))*h_win n++

[0020] Among them, x s (n) represents the nth analysis frame, x represents the original audio data, h_win represents the Hanning window function, and represents the sequence number of the sampling point corresponding to the nth pitch period.

[0021] Since the pitch cycle only exists in the part with sound in the original audio data, when determining the analysis frame, the pitch cycle can only be searched in the part with sound, but not in the part with noise or silence. When there is no sound in the original audio data for a long time, the time interval between two adjacent pitch cycles will be very long, resulting in a very long analysis frame, which cannot be processed in real time.

[0022] To this end, the method provided by this application is as follows:

[0023] Figure 1 FIG. 1 is a flow chart of an embodiment of the voice pitch change method of the present application. It should be noted that if there is substantially the same result, this embodiment does not necessarily use Figure 1 The process sequence shown is limited. Figure 1 As shown, this embodiment may include:

[0024] S11: Obtaining audio data to be processed.

[0025] The audio data to be processed can be the original audio data obtained, or the data obtained by processing the original audio data. Compared with the former, the latter can change the distribution of the pitch period, and avoid the occurrence of noise between the speech frame and the non-speech frame in the target audio data obtained by sound pitch change. Figure 2 In the latter case, S11 may include the following sub-steps:

[0026] S111: Acquire original audio data.

[0027] The raw audio data can be real-time or non-real-time.

[0028] S112: Divide the original audio data into a plurality of second audio frames.

[0029] The original audio data can be divided into several second audio frames using a window function. The length of the second audio frame / the length of the window can be determined arbitrarily or based on the sampling rate of the original audio data. The sampling rate is proportional to the length of the second audio frame.

[0030] S113: Detect speech frames and non-speech frames in a plurality of second audio frames.

[0031] The speech frame and the non-speech frame can be detected by using VAD (Voice Active Detection) algorithm, which can be Thomas, Rabin, etc.

[0032] S114: Use the speech frame to perform smoothing processing on at least part of the non-speech frames adjacent to the speech frame.

[0033] It is understandable that by using speech frames to smooth non-speech frames, non-speech frames can be converted into transition frames between speech frames and non-speech frames, so that when determining analysis frames later, the pitch cycle can be searched in the transition frames.

[0034] The maximum number N of non-speech frames smoothed with a single speech frame can be determined based on the sampling rate fs. The maximum number of non-speech frames smoothed with a single speech frame is positively correlated with the sampling rate. For example, the number of non-speech frames smoothed with a single speech frame is determined by the following formula:

[0035] N = fs * T1,

[0036]

[0037] T 11 <T 12 v

[0038] Where N is the number of non-speech frames smoothed with one speech frame, fs is the sampling rate, and T 11 and T 12 represents the candidate duration of smoothing, and T1 represents the duration of smoothing.

[0039] The non-speech frame adjacent to the speech frame may be a non-speech frame adjacent to the speech frame or a non-speech frame adjacent to the speech frame. The smoothing process of the non-speech frame using the speech frame may be divided into one-way smoothing process and two-way smoothing process.

[0040] One-way smoothing is to perform only forward smoothing or only reverse smoothing. Forward smoothing is to use the speech frame to smooth the adjacent non-speech frame behind it, and reverse smoothing is to use the speech frame to smooth the adjacent non-speech frame before it. Bidirectional smoothing is to perform both forward smoothing and reverse smoothing.

[0041] The smoothing process (forward smoothing process) of the adjacent non-speech frames after the speech frame can be expressed as follows:

[0042] x n (j) = x n-1 (j)*β+x n (j)*(1-β)n++,

[0043] Among them, x n (j) represents the value of the jth sampling point in the nth frame in the speech frame and the adjacent non-speech frame, x n-1 (j) represents the value of the j-th sampling point in the n-1-th frame, and β represents the smoothing coefficient.

[0044] Using the speech frame to smooth the adjacent non-speech frame (reverse smoothing) can be expressed as follows:

[0045] x n (j) = x n+1 (j)*β+x n (j)*(1-β)n--,

[0046] Among them, x n (j) represents the value of the jth sampling point in the nth frame between the speech frame and its previous adjacent non-speech frame, x n+1 (j) represents the value of the jth sampling point in the n+1th frame.

[0047] When a speech frame is used to smooth multiple adjacent non-speech frames, the non-speech frame farther from the speech frame (or the non-speech frame with a larger frame number difference from the speech frame) has a smaller smoothing coefficient.

[0048] For example, when the number of non-speech frames smoothed with one speech frame is N, the smoothing coefficient β may start from 1 and decrease by 1 / N frame by frame until it reaches 0.

[0049] As an embodiment, in S114, the speech frame is used to perform smoothing processing (forward smoothing processing) on ​​the adjacent non-speech frames.

[0050] As another embodiment, in S114, the speech frame is used to perform smoothing processing (reverse smoothing processing) on ​​the non-speech frame adjacent thereto.

[0051] As another embodiment, in S114, the speech frame is used to smooth the adjacent non-speech frame thereafter, and the speech frame is also used to smooth the adjacent non-speech frame therebefore (bidirectional smoothing).

[0052] As another embodiment, in S114, whether to perform unidirectional smoothing processing or bidirectional smoothing processing is limited by the number of non-speech frames between two adjacent speech frames.

[0053] Specifically, a preset number threshold can be obtained based on the sampling rate, and the preset number threshold is positively correlated with the sampling rate. The preset number threshold can be equal to the maximum number of non-speech frames that are smoothed using a single speech frame.

[0054] The non-speech frame between two adjacent speech frames is taken as the target non-speech frame; if the number of target non-speech frames is greater than or equal to a preset number threshold, one of the two adjacent speech frames (the previous one or the next one) is taken as the first starting speech frame, and the first starting speech frame is used to smooth at least part of the target non-speech frames adjacent to it; if the number of target non-speech frames is less than the preset number threshold, the two adjacent speech frames are taken as the first starting speech frame and the second starting speech frame respectively, and the second starting speech frame is used to smooth at least part of the target non-speech frames adjacent to it, and the third starting speech frame is used to smooth at least part of the target non-speech frames adjacent to it.

[0055] For example, when the number of target non-speech frames is less than N, bidirectional smoothing is used to generate transition frames. First, forward smoothing is performed from the first target non-speech frame, and the smoothing coefficient starts from 1 and decreases by 1 / N frame by frame until the last target non-speech frame. Then, reverse smoothing is performed from the last target non-speech frame, and the smoothing coefficient starts from 1 and decreases by 1 / N frame by frame until the first target non-speech frame. This can be achieved specifically through the following formula:

[0056]

[0057]

[0058] When the target number of non-speech frames is greater than or equal to N, forward smoothing is used to generate transition frames. Smoothing starts from the first non-speech frame, and the smoothing coefficient starts from 1 and decreases by 1 / N frame by frame until it reaches 0. This can be achieved by the following formula:

[0059] x n (j) = x n-1 (j)*β+x n (j)*(1-β)n++,

[0060]

[0061] S12: Searching for pitch cycles in order of duration from short to long from the current starting point to determine the current first audio frame.

[0062] Among them, the number of pitch cycles of the current audio frame is greater than the pitch cycle threshold, and the shorter the search duration is, the larger the corresponding pitch cycle threshold is.

[0063] The current starting point is the time starting point of the duration to be searched when determining the current first audio frame. In this step, in order to avoid the duration of the current first audio frame being too long, an allowable range of the duration to be searched is given. Each duration / duration range of the allowable range has a corresponding pitch cycle threshold, and the larger the pitch cycle threshold corresponding to the short duration / duration range is, the smaller the pitch cycle threshold corresponding to the long duration / duration range is.

[0064] During the search process, the durations are taken as target durations in order from short to long within the allowed range. If the number of pitch periods searched within the target duration is greater than the pitch period threshold corresponding to the target duration, the search is stopped and the part between the first pitch period and the last pitch period searched within the target duration in the audio data to be processed is determined as the current first audio frame.

[0065] If the number of pitch periods searched in all durations is not greater than the corresponding pitch period threshold, that is, the search is performed according to the maximum duration of the allowed range, and the number of pitch periods searched is not greater than the corresponding pitch period threshold, then the current starting point is shifted backward to update the current starting point and restart the search. The number of sampling time points shifted backward depends on factors such as the length of overlap between two adjacent analysis frames and the processing accuracy.

[0066] The following is an example of the search process in this step:

[0067] Given three duration thresholds, the first duration threshold T min , the second duration threshold T mid and the third duration threshold T max , T min <T mid <T max The three duration thresholds are used to divide the allowed range into three parts, namely (0, T min ]、(T min ,T mid ] and (T mid ,T max ]. (0,T min ]The corresponding pitch period threshold is M, (T min ,T mid ]The corresponding pitch period threshold is M-1, (T mid ,T max]The corresponding pitch period threshold is 2. The search duration is T.

[0068] 1) In (0,T min ] The pitch period search is performed in the order of T from short to long; if the number of pitch periods searched is greater than M, the part between the first pitch period and the last pitch period searched according to T in the audio data to be processed is determined as the current first audio frame; if the number of pitch periods searched is not greater than M, proceed to 2).

[0069] 2) In (T min ,T mid ] Perform a pitch period search in the order of T from short to long; if the number of pitch periods searched is greater than M-1, determine the current first audio frame; if the number of pitch periods searched is not greater than M-1, proceed to 3).

[0070] 3) In (T mid ,T max ] within T, perform a pitch period search in order from short to long; if the number of pitch periods searched is greater than 2, determine the current first audio frame; if the number of pitch periods searched is not greater than 2, modify the current starting point (shift the current starting point backward), jump to 1), and repeat the above steps until the current first audio frame is determined.

[0071] S13: Add a window to the current first audio frame to obtain a current analysis frame.

[0072] Adding a window to the current first audio frame, that is, multiplying the current first audio frame by a window function, the window function includes but is not limited to a Hanning window function. Taking the Hanning window function as an example, the current first audio frame can be expressed as:

[0073]

[0074] Wherein, m represents the number of pitch cycles searched in the search time T.

[0075] S14: Synthesize target audio data using the current analysis frame.

[0076] The method of synthesizing the target audio data using the current analysis frame may be SOLA, PSOLA, WSOLA algorithm, etc.

[0077] Through the implementation of this embodiment, when determining the current first audio frame in this application, the pitch period is searched in order from short to long in duration from the current starting point, that is, the number of pitch periods is adaptively searched according to the multi-level duration strategy, thereby ensuring that after windowing the current first audio frame, the number of pitch periods of the analysis frame obtained is greater than the pitch period threshold and the duration is within the allowable range, so that the duration of the analysis frame will not be too long, thereby improving the real-time processing.

[0078] Figure 3 FIG. 1 is a flow chart of another embodiment of the sound pitch changing method of the present application. It should be noted that if there is substantially the same result, this embodiment is not used. Figure 3 The process sequence shown is limited. This embodiment is a further extension of S14. Figure 3 As shown, this embodiment may include:

[0079] S141: Determine the duration of overlap between the current analysis frame and the synthesized intermediate audio data based on the time scale factor.

[0080] The time scale factor is the ratio of the duration of the intermediate audio data obtained after the last superposition to the duration of the data to be processed.

[0081] The overlapping duration is the time length of the tail of the synthesized intermediate audio data overlapping with the head of the current analysis frame. The time scale factor can be preset or specified by the user during the application process. Since the duration of the data to be processed is known, the duration of the intermediate audio data obtained after the last superposition can be determined when the time scale factor is determined.

[0082] The intermediate speech obtained after the last superposition

[0083] The time scale factor is greater than 1 or less than 1. If the time scale factor is greater than 1, it means that the audio data to be processed will be stretched during the processing, making the sound in the audio data to be processed rough; if the time scale factor is less than 1, it means that the audio data to be processed will be compressed during the processing, making the sound in the audio data to be processed sharp.

[0084] S142: superimpose the current analysis frame onto the synthesized intermediate audio data according to the overlapping duration.

[0085] The values ​​of the sampling points where the current analysis frame overlaps with the synthesized intermediate audio data are added correspondingly, and the other parts remain unchanged.

[0086] The intermediate audio data synthesized by superimposing the current analysis frame value can be reflected as follows:

[0087] S143: Sampling the intermediate audio data obtained after the last superposition to obtain target audio data.

[0088] The sampling process is to make the duration of the target audio data consistent with the duration of the audio data to be processed, so as to achieve the pitch change of the sound without changing the speed. Therefore, if the time scale factor is greater than 1, the intermediate audio data is downsampled; if the time scale factor is less than 1, the intermediate audio data is upsampled.

[0089] In addition, before the sampling process, the intermediate audio data obtained after the last superposition may be normalized.

[0090] In addition, to prevent the actual length of the intermediate audio data obtained after the last superposition from being greater than the target length, before S14, the duration of the current analysis frame and the time scale factor may be multiplied to determine the target of the intermediate audio data obtained after the current analysis frame is superimposed; and it is determined whether the actual length of the intermediate audio data obtained after the current analysis frame is superimposed is less than the target length. If so, S14 is executed; otherwise, the current analysis frame does not participate in the synthesis of the target audio data.

[0091] Figure 4 Schematic diagram of the structure of an embodiment of the electronic device of the present application. Figure 4 As shown, the electronic device includes a processor 21 and a memory 22 coupled to the processor 21 .

[0092] The memory 22 stores program instructions for implementing the method of any of the above embodiments; the processor 21 is used to execute the program instructions stored in the memory 22 to implement the steps of the above method embodiments. The processor 21 may also be referred to as a CPU (Central Processing Unit). The processor 21 may be an integrated circuit chip with signal processing capabilities. The processor 21 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0093] Figure 5 Schematic diagram of the structure of an embodiment of a computer-readable storage medium of the present application. Figure 5 As shown, the computer-readable storage medium 30 of the embodiment of the present application stores program instructions 31, and the program instructions 31 are executed to implement the method provided in the above embodiment of the present application. Among them, the program instructions 31 can form a program file and be stored in the above computer-readable storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned computer-readable storage medium 30 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, or a terminal device such as a computer, a server, a mobile phone, and a tablet.

[0094] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0095] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. A method for changing the pitch of a sound, characterized in that: include: Get the audio data to be processed; Searching for pitch cycles in order from short to long duration from the current starting point to determine the current first audio frame, wherein the number of pitch cycles of the current first audio frame is greater than a pitch cycle threshold, and the shorter the duration of the search, the larger the corresponding pitch cycle threshold; Adding a window to the current first audio frame to obtain a current analysis frame; synthesizing target audio data using the current analysis frame; The step of searching the pitch period from the current starting point in order of duration from short to long to determine the current first audio frame includes: In order of the durations from short to long, the durations are sequentially used as target durations; If the number of pitch periods searched within the target duration is greater than the pitch period threshold corresponding to the target duration, the search is stopped, and the portion between the first pitch period and the last pitch period searched within the target duration in the audio data to be processed is determined as the current first audio frame.

2. The method according to claim 1, characterized in that The step of searching the pitch period from the current starting point in order of duration from short to long to determine the current first audio frame includes: If the number of the pitch periods searched in all durations is not greater than the corresponding pitch period threshold, the current starting point is shifted backward to update the current starting point and the search is restarted.

3. The method according to claim 1, characterized in that Before obtaining the audio data to be processed, the method includes: Get the original audio data; Dividing the original audio data into a plurality of second audio frames; Detecting speech frames and non-speech frames in the plurality of second audio frames; The speech frame is used to perform smoothing processing on at least a portion of non-speech frames adjacent to the speech frame.

4. The method according to claim 3, characterized in that The step of using the speech frame to smooth at least a portion of adjacent non-speech frames comprises: Taking a non-speech frame between two adjacent speech frames as a target non-speech frame; If the number of the target non-speech frames is greater than or equal to a preset number threshold, one of the two adjacent speech frames is used as a first starting speech frame, and the first starting speech frame is used to perform smoothing processing on at least part of the target non-speech frames adjacent thereto; If the target non-speech frame quantity is less than the preset quantity threshold, the two adjacent speech frames are respectively used as the second starting speech frame and the third starting speech frame, and the second starting speech frame is used to smooth at least part of the target non-speech frames adjacent to it, and the third starting speech frame is used to smooth at least part of the target non-speech frames adjacent to it.

5. The method according to claim 4, characterized in that The preset number threshold is the maximum number of the non-speech frames that can be smoothed using a single speech frame, and the preset number threshold is positively correlated with the sampling rate of the original audio data.

6. The method according to claim 1, characterized in that The step of synthesizing target audio data by using the current analysis frame comprises: Determining the duration of the overlap between the current analysis frame and the synthesized intermediate audio data based on a time scale factor, wherein the time scale factor is a ratio of the duration of the intermediate audio data obtained after the last superposition to the duration of the current analysis frame; superimposing the current analysis frame onto the synthesized intermediate audio data according to the overlapping duration; The intermediate audio data obtained after the last superposition is sampled to obtain the target audio data.

7. The method according to claim 6, characterized in that Before synthesizing the target audio data using the current analysis frame, the method further comprises: Multiplying the duration of the current analysis frame by the time scale factor to determine a target length of the intermediate audio data obtained after the current analysis frame is superimposed; Determine whether the actual length of the intermediate audio data obtained after the current analysis frame is superimposed is less than the target length; If it is less than, the step of synthesizing the target audio data using the current analysis frame is executed.

8. The method according to claim 6, characterized in that The sampling process of the intermediate audio data obtained after the last superposition to obtain the target audio data further includes: If the time scale factor is greater than 1, downsampling the intermediate audio data; If the time scale factor is less than 1, upsampling is performed on the intermediate audio data.

9. An electronic device, characterized in that: The method comprises a processor and a memory connected to the processor, wherein: The memory stores program instructions; The processor is configured to execute the program instructions stored in the memory to implement the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The storage medium stores program instructions, and when the program instructions are executed, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Adaptive sound source vector quantization device and adaptive sound source vector quantization method

    CN101622664A

  • Real-time voice changing method based on intelligent terminal

    CN105304092A

  • Method and device for adjusting voice data

    CN106469559A

  • Speech conversion method and device, electronic equipment and readable storage medium

    CN107507619A

  • Sound effect adjusting and control method and apparatus, storage medium and electronic device

    CN109389988A