Audio data processing method and device, electronic equipment and storage medium

Through the splicing of partial waveforms and overtone waves of the audio periodic wave, the signal distortion problem caused by the rise of harmonic levels during the audio enhancement process is solved, and the audio quality and user experience are improved.

CN119170026APending Publication Date: 2024-12-20济南市市中区都盛信息技术工作室(个体工商户)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411178758.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the existing audio enhancement technology, when the audio base pitch periodic signal is enhanced by superimposed harmonics, the increase in harmonic level causes signal distortion, affecting the audio quality.

Method used

By presetting the partial waveform parameters and overtone parameters of the audio period wave, the audio period wave data is obtained and spliced ​​with the audio overtone 1/2 period wave data to generate target audio enhancement period wave data to improve the audio signal quality.

Benefits of technology

It effectively solves the distortion problem caused by the increase in harmonic level during the audio base pitch periodic signal enhancement process, and improves audio quality and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119170026A_ABST
    Figure CN119170026A_ABST
Patent Text Reader

Abstract

The invention provides an audio data processing method and device, electronic equipment and a storage medium, and relates to the technical field of audio enhancement, and the method comprises the steps: presetting a partial waveform parameter database and an audio overtone parameter database of a to-be-processed audio periodic wave; to-be-processed audio periodic wave data stored in an audio cache region is obtained, and when the computer equipment receives the to-be-processed audio periodic wave data, the received to-be-processed audio periodic wave data are stored in the audio cache region; according to the to-be-processed audio periodic wave data and the corresponding partial waveform parameter of the to-be-processed audio periodic wave, determining partial waveform data of the to-be-processed audio periodic wave; determining audio overtone 1 / 2 periodic wave data according to the audio 1 / 2 periodic wave data to be processed and the corresponding audio overtone 1 / 2 periodic wave parameters; the frequency of the audio overtone 1 / 2 periodic wave is a positive integer multiple of the frequency of the audio 1 / 2 periodic wave to be processed; splicing the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data to obtain target audio enhanced periodic wave data; by adopting the method, the problems that the harmonic level is increased and the distortion of the audio pitch period signal is increased in the related technology of audio pitch period signal enhancement are solved, the audio quality of the to-be-processed audio period signal subjected to audio enhancement is improved, the audio is beautified, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio enhancement technology, and in particular to an audio data processing method, device, electronic product and storage medium. Background Art

[0002] With the development of the multimedia industry and the improvement of users' audio appreciation level, how to improve the quality of audio effects and enhance the artistic appeal of audio works has become a technical problem that technical personnel in this field must solve immediately; audio enhancement is a technology that uses technical means to enhance the sound of audio signals to improve the quality of audio signals and achieve better sound effects.

[0003] At present, audio enhancement usually adopts superimposing harmonics on the audio fundamental pitch periodic wave signal to form a synthetic wave signal to enhance the audio fundamental pitch periodic signal. At the same time, as the harmonic level increases, the distortion of the audio fundamental pitch periodic signal increases, affecting the audio quality of the audio fundamental pitch periodic signal. Summary of the invention

[0004] The present application provides an audio data processing method, device, electronic product and storage medium to solve the problem that the audio fundamental pitch period signal enhancement related technology increases the harmonic level, increases the distortion of the audio fundamental pitch period signal, and affects the audio quality of the audio fundamental pitch period signal.

[0005] In a first aspect, an embodiment of the present application provides an audio data processing method, the method comprising:

[0006] Preset a partial waveform parameter database of the audio periodic wave to be processed and an audio overtone wave parameter database;

[0007] Acquire the audio periodic wave data to be processed stored in the audio buffer area, wherein the computer device stores the received audio periodic wave data to be processed in the audio buffer area when receiving the audio periodic wave data to be processed;

[0008] Determine partial waveform data of the audio periodic wave to be processed according to the audio periodic wave data to be processed and the corresponding partial waveform parameters of the audio periodic wave to be processed;

[0009] Determine the audio overtone 1 / 2 wave data according to the audio 1 / 2 cycle wave data to be processed and the corresponding audio overtone 1 / 2 cycle wave parameter; the audio overtone 1 / 2 cycle wave has a frequency that is a positive integer multiple of the frequency of the audio 1 / 2 cycle wave to be processed;

[0010] The partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data are spliced ​​to obtain the target audio enhanced periodic wave data.

[0011] According to the audio data processing method of the embodiment of the present application, the audio periodic wave data to be processed stored in the audio buffer is obtained, and the audio periodic wave data to be processed is audio periodic cosine wave pulse code modulation PCM data.

[0012] According to the audio data processing method of the embodiment of the present application, the preset partial waveform parameter database of the audio periodic wave to be processed and the audio overtone wave parameter database include:

[0013] The partial waveform parameters of the above-mentioned audio periodic wave to be processed include: a waveform at the starting end and a waveform at the end of the audio 1 / 2 periodic wave to be processed, a ratio coefficient of the total number of sampling points of the audio 1 / 2 periodic wave to be processed corresponding to the end position, and a 1 / 2 periodic wave of the audio periodic wave to be processed, a ratio coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the end position; wherein:

[0014] A waveform at the starting end of the 1 / 2 cycle wave of the audio to be processed, wherein the ratio coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the starting point position is 0, and the ratio coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the end point position is less than 5 / 6;

[0015] The proportion coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the starting point position of the end section of the waveform of the audio to be processed is greater than 1 / 6, and the proportion coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the end point position is 1;

[0016] For a 1 / 2 cycle wave of the audio periodic wave to be processed, the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the starting point position is 1 / 2, and the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the end point position is 1, or the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the starting point position is 0, and the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the end point position is 1 / 2;

[0017] The 1 / 2 cycle wave of the audio to be processed and a 1 / 2 cycle wave of the audio to be processed are respectively waveforms of the decreasing interval and increasing interval of the audio to be processed, or waveforms of the increasing interval and decreasing interval of the audio to be processed.

[0018] The above audio harmonic wave parameters, among which:

[0019] The audio overtone wave, the ratio coefficient of the total number of sampling points of the audio 1 / 2 cycle wave to be processed corresponding to the starting point position is not less than 1 / 6, and the ratio coefficient of the total number of sampling points of the audio 1 / 2 cycle wave to be processed corresponding to the end point position is not more than 5 / 6;

[0020] The audio overtone wave, the multiple of the frequency of the audio 1 / 2 period wave to be processed corresponding to the frequency of the audio overtone 1 / 2 period wave is a positive integer;

[0021] The number of the audio overtone 1 / 2 period waves is a positive integer;

[0022] The waveform includes a waveform at the starting end of the 1 / 2 cycle wave of the audio to be processed, an audio overtone wave, and a waveform at the end of the 1 / 2 cycle wave of the audio to be processed, and the total length of the waveform is the 1 / 2 cycle of the audio to be processed.

[0023] According to the audio data processing method of the embodiment of the present application, the audio overtone 1 / 2 wave data is determined based on the audio 1 / 2 cycle wave data to be processed and the corresponding audio overtone 1 / 2 cycle wave parameters; the audio overtone 1 / 2 cycle wave data is audio 1 / 2 cycle cosine wave pulse code modulation PCM data.

[0024] According to the audio data processing method of the embodiment of the present application, the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data are spliced ​​to obtain the target audio enhanced periodic wave data, including:

[0025] The same value data of the endpoints of part of the waveform of the audio periodic wave to be processed and the endpoints of the audio overtone 1 / 2 periodic wave are merged and processed, and a waveform data of the starting end of the audio 1 / 2 period to be processed, the audio overtone wave data, a waveform data of the end of the audio 1 / 2 period to be processed, and a 1 / 2 period wave data of the audio periodic wave to be processed are obtained in sequence, or a 1 / 2 period wave data of the audio periodic wave to be processed, a waveform data of the starting end of the audio 1 / 2 period to be processed, the audio overtone wave data, and a waveform data of the end of the audio 1 / 2 period to be processed are obtained in sequence to obtain the target audio enhanced periodic wave data.

[0026] In a second aspect, an embodiment of the present application provides an audio data processing device, the device comprising:

[0027] A setting module, used to set some waveform parameters of the audio periodic wave to be processed and audio overtone wave parameters;

[0028] An acquisition module is used to acquire the audio periodic wave data to be processed stored in the audio buffer area, wherein the computer device stores the received audio periodic wave data to be processed in the audio buffer area when receiving the audio periodic wave data to be processed; the audio periodic wave data to be processed is audio periodic cosine wave pulse code modulation PCM data;

[0029] A determination module is used to determine partial waveform data of an audio periodic wave to be processed based on the audio periodic wave data to be processed and the corresponding partial waveform parameters of the audio periodic wave to be processed; determine audio overtone 1 / 2 periodic wave data based on the audio 1 / 2 periodic wave data to be processed and the corresponding audio overtone 1 / 2 periodic wave parameters, wherein the frequency of the audio overtone 1 / 2 periodic wave is a positive integer multiple of the frequency of the audio 1 / 2 periodic wave to be processed; and the audio overtone 1 / 2 periodic wave data is audio 1 / 2 period cosine wave pulse code modulation PCM data.

[0030] The splicing module is used to splice the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data to obtain the target audio enhanced periodic wave data.

[0031] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the audio data processing method described in the first aspect.

[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the audio data processing method as described in the first aspect is implemented.

[0033] The present application obtains partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data, and splices the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 wave data to obtain the target audio enhanced periodic wave data; in order to solve the problems of the related technologies of audio fundamental pitch periodic signal enhancement, such as the increase of harmonic level and the increase of audio fundamental pitch periodic signal distortion, thereby improving the audio quality of the audio enhanced audio periodic signal to be processed, beautifying the audio and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are used to more clearly understand the present solution and do not constitute a limitation of the present application, wherein:

[0035] Figure 1 It is a flowchart of an audio data processing method provided in an embodiment of the present application;

[0036] Figure 2 It is a schematic diagram of a PCM waveform of an audio periodic wave to be processed in an audio data processing method provided in an embodiment of the present application;

[0037] Figure 3 This is a schematic diagram of a PCM waveform of a target audio enhancement periodic wave of an audio data processing method provided in an embodiment of the present application;

[0038] Figure 4is a structural schematic diagram of an audio data processing device provided in an embodiment of the present application;

[0039] Figure 5 This is a block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the embodiments of the present application, the embodiments of the present application will be clearly described below in conjunction with the drawings 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. All other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0041] An embodiment of the present application provides an audio data processing method, through which the audio data processing method can be used to enhance the audio periodic wave data to be processed to obtain target audio enhanced periodic wave data.

[0042] The executor of the technical solution of the present application is a computer device, which is a terminal device or a server, wherein the terminal device includes but is not limited to desktop computers, tablet computers, laptop computers, smart phones, wearable devices, etc., and the server includes but is not limited to a single server, a server group consisting of multiple servers, or a cloud computer server, wherein the computer device can be run alone to implement the present application, and the terminal and the server can also be directly or indirectly connected through wired or wireless communication methods, and implement the present application through interactive operations.

[0043] The specific implementation of the present application can be placed in the above-mentioned computer device in the form of software, hardware, firmware, or a combination of hardware and software.

[0044] Example 1

[0045] The present application embodiment provides an audio data processing method, such as Figure 1 As shown, Figure 1 : is a flowchart of an audio data processing method provided by an embodiment of the present application, the method comprising:

[0046] Step S101, presetting a partial waveform parameter database of the audio periodic wave to be processed and an audio overtone wave parameter database.

[0047] According to the audio data processing method of the embodiment of the present application, the preset partial waveform parameter database of the audio periodic wave to be processed and the audio overtone wave parameter database include:

[0048] The partial waveform parameters of the above-mentioned audio periodic wave to be processed include: a waveform at the starting end and a waveform at the end of the audio 1 / 2 periodic wave to be processed, a ratio coefficient of the total number of sampling points of the audio 1 / 2 periodic wave to be processed corresponding to the end position, and a 1 / 2 periodic wave of the audio periodic wave to be processed, a ratio coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the end position; wherein:

[0049] The waveform at the starting end of the 1 / 2 cycle wave of the audio to be processed has a ratio coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to its starting point position is 0, and the ratio coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to its end point position is less than 5 / 6.

[0050] The proportion coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the starting point position of the end section waveform of the to-be-processed audio is greater than 1 / 6, and the proportion coefficient of the total number of sampling points of the 1 / 2 cycle wave of the to-be-processed audio corresponding to the end point position is 1.

[0051] For a 1 / 2 cycle wave of the audio periodic wave to be processed, the proportional coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to its starting point position is 1 / 2, and the proportional coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to its end point position is 1; or, the proportional coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to its starting point position is 0, and the proportional coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to its end point position is 1 / 2.

[0052] The 1 / 2 cycle wave of the audio to be processed and a 1 / 2 cycle wave of the audio to be processed are respectively waveforms of the decreasing interval and increasing interval of the audio to be processed, or waveforms of the increasing interval and decreasing interval of the audio to be processed.

[0053] The above audio harmonic wave parameters, among which:

[0054] The audio overtone wave has a starting point position corresponding to a total number of digits of sampling points of the audio 1 / 2 cycle wave to be processed that has a proportional coefficient of no less than 1 / 6, and an end point position corresponding to a total number of digits of sampling points of the audio 1 / 2 cycle wave to be processed that has a proportional coefficient of no more than 5 / 6.

[0055] The audio overtone wave, the multiple of the frequency of the audio 1 / 2 period wave to be processed corresponding to the frequency of the audio overtone 1 / 2 period wave is a positive integer.

[0056] The number of the audio overtone 1 / 2 period waves of the audio overtone wave is a positive integer.

[0057] The waveform includes a waveform at the starting end of the 1 / 2 cycle wave of the audio to be processed, an audio overtone wave, and a waveform at the end of the 1 / 2 cycle wave of the audio to be processed, and the total length of the waveform is the 1 / 2 cycle of the audio to be processed.

[0058] Step S102, obtaining the audio periodic wave data to be processed stored in the audio buffer area, wherein the computer device stores the received audio periodic wave data to be processed in the audio buffer area when receiving the audio periodic wave data to be processed;

[0059] The audio periodic wave data to be processed is audio periodic cosine wave pulse code modulation PCM data.

[0060] In a specific implementation, a computer device can obtain audio periodic wave data to be processed. Specifically, the audio periodic wave data to be processed can be data collected by the computer device through a microphone, can be data downloaded by the computer device from a server or uploaded by a user to the computer device, can be data obtained by the computer device from an external storage device, such as a mobile hard disk or flash memory FLASH, and can also be data obtained by the computer device from a read-only memory ROM storage area of ​​the computer device.

[0061] In the embodiment of the present application, the audio periodic wave data to be processed is as follows: Figure 2 , Figure 2 It is a schematic diagram of the pulse code modulation PCM waveform of the audio periodic wave to be processed in the time domain of each sampling point of the audio periodic wave to be processed, where:

[0062] The total number of sampling points of the audio periodic wave to be processed is 2N; waveform ON is a 1 / 2 periodic wave of the audio to be processed, and the total number of sampling points is N, and this waveform is in the decreasing interval of the audio periodic wave to be processed; waveform N-2N is a 1 / 2 periodic wave of the audio periodic wave to be processed, and this waveform is in the increasing interval of the audio periodic wave to be processed.

[0063] Step S103, determining partial waveform data of the audio periodic wave to be processed according to the audio periodic wave data to be processed and the corresponding partial waveform parameters of the audio periodic wave to be processed.

[0064] In this embodiment, after obtaining the audio periodic wave data to be processed, wherein:

[0065] According to the waveform of the starting end of the 1 / 2 cycle wave of the audio to be processed, the proportion coefficient of the total number of sampling points N of the 1 / 2 cycle wave of the audio to be processed corresponding to the starting point position is 0, and the proportion coefficient of the total number of sampling points N of the 1 / 2 cycle wave of the audio to be processed corresponding to the end point position is, for example, 1 / 4, the number of sampling points of the 1 / 2 cycle wave of the audio to be processed is calculated, and the endpoint data of the waveform of the starting end of the 1 / 2 cycle wave of the audio to be processed is obtained. Further, the sampling point data of the waveform of the starting end of the 1 / 2 cycle of the audio to be processed are obtained in sequence.

[0066] According to the proportion coefficient of the total number of sampling points N of the 1 / 2 cycle wave of the audio to be processed corresponding to the starting point position of the waveform of the last segment of the 1 / 2 cycle wave of the audio to be processed, for example 3 / 4, and the proportion coefficient of the total number of sampling points N of the 1 / 2 cycle wave of the audio to be processed corresponding to the end point position is 1, the number of sampling points of the 1 / 2 cycle wave of the audio to be processed is calculated to obtain the endpoint data of the last segment of the waveform of the 1 / 2 cycle wave of the audio to be processed, and further, the sampling point data of the last segment of the waveform of the 1 / 2 cycle of the audio to be processed are obtained in sequence.

[0067] According to a 1 / 2 cycle wave of the audio periodic wave to be processed, the proportion coefficient 1 / 2 of the total number of sampling points of the audio periodic wave to be processed 2N corresponding to its starting point position, and the proportion coefficient 1 of the total number of sampling points of the audio periodic wave to be processed 2N corresponding to its end point position, the number of sampling point bits of the audio periodic wave to be processed is calculated to obtain the endpoint data of a 1 / 2 cycle wave of the audio periodic wave to be processed, and further, the sampling point data of a 1 / 2 cycle wave of the audio periodic wave to be processed are obtained in sequence.

[0068] The pulse code modulation PCM data of the partial waveform of the audio cycle wave to be processed is obtained from the data of a waveform at the starting end of the 1 / 2 cycle of the audio to be processed, the data of a waveform at the end of the 1 / 2 cycle of the audio to be processed, and the data of a 1 / 2 cycle wave of the audio cycle wave to be processed.

[0069] Step S104, determining the audio overtone 1 / 2 period wave data according to the audio 1 / 2 period wave data to be processed and the corresponding audio overtone wave parameters; the audio overtone 1 / 2 period wave has a frequency that is a positive integer multiple of the frequency of the audio 1 / 2 period wave to be processed.

[0070] The audio overtone 1 / 2 cycle wave data is audio 1 / 2 cycle cosine wave pulse code modulation PCM data.

[0071] In this embodiment, after obtaining the audio periodic wave data to be processed, according to the number of audio overtone 1 / 2 periodic waves in the audio overtone wave and the corresponding multiples of the frequency of the audio 1 / 2 periodic wave to be processed, for example: the audio overtone 1 / 2 periodic wave AB waveform, BC waveform, CD waveform, whose frequencies are 4 times, 8 times, and 8 times the frequency of the audio 1 / 2 periodic wave to be processed, respectively, the sampling point data of the pulse code modulation PCM waveform of the audio 1 / 2 periodic wave to be processed are taken at equal intervals of 4 points, 8 points, and 8 points, respectively, to obtain three audio overtone frequency 1 / 2 periodic wave data of 4 times, 8 times, and 8 times the frequency of the audio 1 / 2 periodic wave to be processed; according to the proportional coefficient of the total number of sampling points N of the audio 1 / 2 periodic wave to be processed corresponding to the endpoint position of the audio overtone wave, for example, 1 / 4 and 3 / 4 respectively, the number of sampling points of the audio 1 / 2 periodic wave to be processed is Calculation is performed to obtain the starting point data √2 / 2 of the starting 1 / 2 period wave, the end point data -√2 / 2 of the end 1 / 2 period wave, and the proportional coefficient of the amplitude of the audio 1 / 2 period wave to be processed corresponding to the endpoint amplitude of the audio overtone 1 / 2 period wave, for example, the proportional coefficients of the positive amplitude 1 and the negative amplitude 1 of the audio 1 / 2 period wave to be processed corresponding to the endpoint amplitudes of the three audio overtone 1 / 2 period waves AB waveform, BC waveform, and CD waveform are √2 / 2, 1,1, 1,1, and √2 / 2, respectively. The amplitude of the audio 1 / 2 period wave to be processed is calculated to obtain the endpoint values ​​of the three audio overtone frequency 1 / 2 period waves respectively. Further, the cosine wave pulse code modulation PCM waveform data of the audio overtone 1 / 2 period wave AB waveform, BC waveform, and CD waveform are respectively obtained.

[0072] Step S105, splicing the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data to obtain the target audio enhanced periodic wave data.

[0073] In the embodiment of the present application, the target audio enhancement periodic wave data is as follows: Figure 3 As shown, Figure 3 A schematic diagram of a target audio enhancement periodic wave pulse code modulation PCM waveform of an audio data processing method provided in an embodiment of the present application, wherein:

[0074] The ON waveform is a 1 / 2 cycle wave of the audio to be processed, the N-2N waveform is a 1 / 2 cycle wave of the audio to be processed, the OA waveform is a waveform at the initial end of the 1 / 2 cycle of the audio to be processed, and the ratio coefficients of the total number of sampling points N of the 1 / 2 cycle wave of the audio to be processed corresponding to its starting point position and end point position are 0 and 1 / 4 respectively; the AB waveform, BC waveform, and CD waveform are 1 / 2 cycle waveforms of audio overtones respectively; the frequencies of the AB waveform, BC waveform, and CD waveform are 4 times, 8 times, and 8 times the frequencies of the 1 / 2 cycle wave of the audio to be processed respectively, and the ratio coefficients of the positive amplitude 1 and negative amplitude 1 of the 1 / 2 cycle wave of the audio to be processed corresponding to their endpoint amplitudes are √2 / 2 and 1 respectively. 1, 1, 1, √2 / 2; the DN waveform is a waveform at the end of a 1 / 2 cycle of the audio to be processed, and the ratio coefficients of the total number of sampling points N of the 1 / 2 cycle of the audio to be processed corresponding to its starting point position and the end point position are 3 / 4 and 1 respectively; the N-2N waveform, the ratio coefficients of the total number of sampling points 2N of the audio cycle wave to be processed corresponding to its starting point position and the end point position are 1 / 2 and 1 respectively; a waveform at the initial end of the 1 / 2 cycle of the audio to be processed, a 1 / 2 cycle wave of the audio overtone wave, and a waveform at the end of the 1 / 2 cycle of the audio to be processed are in the decreasing interval of the audio cycle wave to be processed, and a 1 / 2 cycle wave of the audio cycle wave to be processed is in the increasing interval of the audio cycle wave to be processed.

[0075] The endpoints of a waveform OA at the initial end of the 1 / 2 cycle of the audio to be processed, the endpoints of the audio overtone 1 / 2 cycle waves AB, BC, CD, the endpoints of a waveform DN at the end of the 1 / 2 cycle of the audio to be processed, and the endpoints of a 1 / 2 cycle wave N-2N of the audio cycle wave to be processed are merged in sequence for their same value data, and the waveform data of the starting end of the 1 / 2 cycle of the audio to be processed, the audio overtone wave data, the waveform data of the end of the 1 / 2 cycle of the audio to be processed, and the 1 / 2 cycle wave data of the audio cycle wave to be processed are obtained in sequence to obtain the target audio enhanced periodic wave data.

[0076] It should be noted that the audio overtone wave is equivalent to the audio overtone wave, whose frequency is the frequency region of 1 / 1 octave of the center frequency of the audio 1 / 2 period wave to be processed, which can enhance the sound intensity of the audio periodic signal to be processed and improve the clarity and spatial sense of the audio periodic signal to be processed.

[0077] The audio data processing method provided in the above embodiment presets a partial waveform parameter database of the audio periodic wave to be processed and an audio overtone wave parameter database; obtains the audio periodic wave data to be processed stored in the audio buffer area, wherein the computer device, when receiving the audio periodic wave data to be processed, stores the received audio periodic wave data to be processed in the audio buffer area; determines the partial waveform data of the audio periodic wave to be processed according to the audio periodic wave data to be processed and the corresponding partial waveform parameters of the audio periodic wave to be processed; determines the partial waveform data of the audio periodic wave to be processed according to the audio 1 / 2 periodic wave data to be processed and the corresponding audio overtone 1 / 2 periodic wave Parameters, determine the audio overtone 1 / 2 wave data; the frequency of the audio overtone 1 / 2 period wave is a positive integer multiple of the frequency of the audio 1 / 2 period wave to be processed; splice the partial waveform data of the audio period wave to be processed and the audio overtone 1 / 2 period wave data to obtain the target audio enhanced period wave data; implement the audio data processing method described in the embodiment of the present application, solve the problems of audio fundamental pitch period signal enhancement related technologies, increased harmonic levels, and increased distortion of audio fundamental pitch period signals, improve the audio quality of the audio enhanced audio period signal to be processed, beautify the audio, and enhance the user experience.

[0078] Example 2

[0079] The present application embodiment provides an audio data processing device, such as Figure 4 As shown, Figure 4 4 is a schematic diagram of the structure of an audio data processing device provided in an embodiment of the present application. The device 400 includes: a setting module 401, an acquisition module 402, a determination module 403, and a splicing module 404, wherein:

[0080] The setting module 401 is used to set some waveform parameters of the audio periodic wave to be processed and the audio overtone wave parameters.

[0081] The acquisition module 402 is used to acquire the audio periodic wave data to be processed stored in the audio buffer area, wherein when the computer device receives the audio periodic wave data to be processed, it stores the received audio periodic wave data to be processed in the audio buffer area; the audio periodic wave data to be processed is audio periodic cosine wave pulse code modulation PCM data.

[0082] Determination module 403 is used to determine partial waveform data of the audio periodic wave to be processed based on the audio periodic wave data to be processed and the corresponding partial waveform parameters of the audio periodic wave to be processed; determine the audio overtone 1 / 2 periodic wave data based on the audio 1 / 2 periodic wave data to be processed and the corresponding audio overtone 1 / 2 periodic wave parameters, wherein the frequency of the audio overtone 1 / 2 periodic wave is a positive integer multiple of the frequency of the audio 1 / 2 periodic wave to be processed; the audio overtone 1 / 2 periodic wave data is audio 1 / 2 period cosine wave pulse code modulation PCM data.

[0083] The splicing module 404 is used to splice the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data to obtain the target audio enhanced periodic wave data.

[0084] The audio data processing device of the above embodiment is a device for implementing each process of the audio data processing method of the above embodiment, based on and Figure 1 The method shown in the figure has the same principles and corresponding technical features, and has the beneficial effects of the corresponding method embodiments. The explanation of the audio data processing device can refer to the description in Example 1, and will not be repeated here.

[0085] Example 3

[0086] The present application embodiment provides an electronic device, such as Figure 5 As shown, Figure 5 is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device 500 includes at least one processor and a memory, wherein:

[0087] The memory 502 may include a volatile memory, such as a random access memory RAM, and / or a non-volatile memory, such as a read-only memory ROM.

[0088] The processor 501 can be at least one of the following hardwares, or a combination of multiple hardwares: a CPU, a digital signal processor DSP, a field programmable gate array FPGA, or a programmable gate array PLA. The CPU mainly processes the operating system, and the processor 501 is connected to various parts within the electronic device 500 through various interfaces, lines, and the like.

[0089] An embodiment of the present application provides an electronic device, which includes a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor runs the computer program, the processor can execute the various processes of the above-mentioned audio data processing method embodiment, and can also execute the various processes of the above-mentioned audio data processing device embodiment, which will not be repeated here; in addition, the description of achieving the same technical effect by the same method will not be repeated.

[0090] Example 4

[0091] An embodiment of the present application provides a computer-readable storage medium, which may include a read-only memory ROM, a random access memory RAM, a flash memory FLASH, a hard disk storage medium, or an optical disk storage medium, etc., which can store program codes; computer program instructions are stored on the computer storage medium. When the computer program instructions are executed by an electronic device, the electronic device implements the steps of the above-mentioned audio data processing method embodiments and can achieve the same technical effects, which will not be repeated here.

[0092] It should be understood that the various steps in the flowchart of the accompanying drawings can be executed in the order indicated by the arrows, or in other orders; alternatively, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0093] The above description is only an optional embodiment of the present application and is not intended to limit the scope of rights of the present application. Although the present application is described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. An audio data processing method, characterized in that: The method comprises the following steps: Preset a partial waveform parameter database of the audio periodic wave to be processed and an audio overtone wave parameter database; Acquire the audio periodic wave data to be processed stored in the audio buffer area, wherein the computer device stores the received audio periodic wave data to be processed in the audio buffer area when receiving the audio periodic wave data to be processed; Determine partial waveform data of the audio periodic wave to be processed according to the audio periodic wave data to be processed and the corresponding partial waveform parameters of the audio periodic wave to be processed; Determine the audio overtone 1 / 2 cycle wave data according to the audio 1 / 2 cycle wave data to be processed and the corresponding audio overtone 1 / 2 cycle wave parameter; the audio overtone 1 / 2 cycle wave has a frequency that is a positive integer multiple of the frequency of the audio 1 / 2 cycle wave to be processed; Part of the waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data are spliced ​​to obtain the target audio enhanced periodic wave data.

2. The audio data processing method according to claim 1, characterized in that: The audio periodic wave data to be processed stored in the audio buffer area is obtained; the audio periodic wave data to be processed is audio periodic cosine wave pulse code modulation PCM data.

3. The audio data processing method according to claim 1, characterized in that: The preset partial waveform parameter database of the audio periodic wave to be processed and the audio overtone wave parameter database, wherein: The partial waveform parameters of the above-mentioned audio periodic wave to be processed include: a waveform at the starting end and a waveform at the end of the audio 1 / 2 periodic wave to be processed, a ratio coefficient of the total number of sampling points of the audio 1 / 2 periodic wave to be processed corresponding to the end position, and a 1 / 2 periodic wave of the audio periodic wave to be processed, a ratio coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the end position; wherein: A waveform at the starting end of the 1 / 2 cycle wave of the audio to be processed, wherein the ratio coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the starting point position is 0, and the ratio coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the end point position is less than 5 / 6; The proportion coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the starting point position of the end section of the waveform of the audio to be processed is greater than 1 / 6, and the proportion coefficient of the total number of sampling points of the 1 / 2 cycle wave of the audio to be processed corresponding to the end point position is 1; For a 1 / 2 cycle wave of the audio periodic wave to be processed, the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the starting point position is 1 / 2, and the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the end point position is 1, or the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the starting point position is 0, and the proportion coefficient of the total number of sampling points of the audio periodic wave to be processed corresponding to the end point position is 1 / 2; The 1 / 2 cycle wave of the audio to be processed and a 1 / 2 cycle wave of the audio to be processed are respectively the waveforms of the decreasing interval and increasing interval of the audio cycle wave to be processed, or respectively the waveforms of the increasing interval and decreasing interval of the audio cycle wave to be processed; The above-mentioned audio overtone wave parameters include: the proportional coefficient of the amplitude of the audio 1 / 2 cycle wave to be processed corresponding to the endpoint amplitude of the audio overtone 1 / 2 cycle wave and / or the proportional coefficient of the total number of sampling points of the audio 1 / 2 cycle wave to be processed corresponding to the endpoint position of the audio overtone wave; the multiple of the frequency of the audio 1 / 2 cycle wave to be processed corresponding to the frequency of the audio overtone 1 / 2 cycle wave, the multiple is a positive integer; the number of audio overtone 1 / 2 cycle waves, the number is a positive integer; wherein: The audio overtone wave has a starting point position corresponding to a total number of digits of sampling points of the audio 1 / 2 cycle wave to be processed that has a proportional coefficient of no less than 1 / 6, and an end point position corresponding to a total number of digits of sampling points of the audio 1 / 2 cycle wave to be processed that has a proportional coefficient of no more than 5 / 6. The waveform includes a waveform at the starting end of the 1 / 2 cycle wave of the audio to be processed, an audio overtone wave, and a waveform at the end of the 1 / 2 cycle wave of the audio to be processed, and the total length of the waveform is the 1 / 2 cycle of the audio to be processed.

4. The audio data processing method according to claim 1, characterized in that: The audio overtone 1 / 2 cycle wave data is determined based on the audio 1 / 2 cycle wave data to be processed and the corresponding audio overtone 1 / 2 cycle wave parameters; the audio overtone 1 / 2 cycle wave data is audio 1 / 2 cycle cosine wave pulse code modulation PCM data.

5. The audio data processing method according to claim 1, characterized in that: The step of splicing the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data to obtain the target audio enhanced periodic wave data includes: The same value data of the endpoints of part of the waveform of the audio periodic wave to be processed and the endpoints of the audio overtone 1 / 2 periodic wave are merged and processed, and a waveform data of the starting end of the audio 1 / 2 period to be processed, the audio overtone wave data, a waveform data of the end of the audio 1 / 2 period to be processed, and a 1 / 2 period wave data of the audio periodic wave to be processed are obtained in sequence, or a 1 / 2 period wave data of the audio periodic wave to be processed, a waveform data of the starting end of the audio 1 / 2 period to be processed, the audio overtone wave data, and a waveform data of the end of the audio 1 / 2 period to be processed are obtained in sequence to obtain the target audio enhanced periodic wave data.

6. An audio data processing device, the device being used to implement the audio data processing method according to any one of claims 1 to 4, characterized in that: The device comprises: A setting module, used to set some waveform parameters of the audio periodic wave to be processed and audio overtone wave parameters; An acquisition module is used to acquire the audio periodic wave data to be processed stored in the audio buffer area, wherein the computer device stores the received audio periodic wave data to be processed in the audio buffer area when receiving the audio periodic wave data to be processed; the audio periodic wave data to be processed is audio periodic cosine wave pulse code modulation PCM data; A determination module is used to determine partial waveform data of an audio periodic wave to be processed according to the audio periodic wave data to be processed and the corresponding partial waveform parameters of the audio periodic wave to be processed; determine audio overtone 1 / 2 periodic wave data according to the audio 1 / 2 periodic wave data to be processed and the corresponding audio overtone 1 / 2 periodic wave parameters, wherein the frequency of the audio overtone 1 / 2 periodic wave is a positive integer multiple of the frequency of the audio 1 / 2 periodic wave to be processed; and the audio overtone 1 / 2 periodic wave data is audio 1 / 2 periodic cosine wave pulse code modulation PCM data; The splicing module is used to splice the partial waveform data of the audio periodic wave to be processed and the audio overtone 1 / 2 periodic wave data to obtain the target audio enhanced periodic wave data.

7. An electronic device, characterized in that The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the audio data processing method according to any one of claims 1 to 5.

8. A computer storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the audio data processing method according to any one of claims 1 to 5 is implemented.