Method and system for real-time low-latency synthesis of audio using neural networks and differentiatable digital signal processors
Through machine learning models and overlapping addition technology, combined with additive synthesis and wavetable synthesis, it solves the problem that neural networks and DDSP cannot cooperate in a real-time environment, achieving low latency and high efficiency of audio synthesis, and is suitable for a variety of audio input and output.
Patent Information
- Application Number
- CN202380021607.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-05-19
- Filing Date
- 2023-05-08
- Publication Date
- 2024-09-24
AI Technical Summary
Existing neural networks and digital signal processors (DDSPs) cannot effectively cooperate in real-time environments, resulting in delay and resource-intensive audio synthesis problems, limiting the application of device types and synthesis technologies.
Control signals are extracted through machine learning models, combined with additive synthesis, wavetable synthesis and filtered noise synthesis, using overlapping addition technology and multiple scaling wavetables to achieve real-time and low-latency synthesis of audio output, compatible with sub-components and reducing resource requirements .
It realizes realistic audio synthesis of natural sounds, improves the accuracy and resource utilization efficiency of audio synthesis, meets the needs of real-time applications, and supports multiple audio input and output modes.
Smart Images

Figure CN118696375A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. application No. 17 / 748,882, filed on May 19, 2022, entitled “Methods and systems for real-time and low-latency synthesis of audio using neural networks and differentiable digital signal processors,” the entire contents of which are incorporated herein by reference. Background Art
[0003] In some cases, neural networks can be employed to synthesize natural-sounding audio, such as musical instruments, singing, and speech. In addition, some audio synthesis implementations have begun to utilize neural networks that utilize different digital signal processors (DDSPs) to synthesize natural-sounding audio in an offline environment through batch processing. However, real-time synthesis using neural networks and DDSPs has not yet been achieved because the subcomponents employed when using neural networks and DDSPs together have been proven to be inoperable when used together in a real-time environment. For example, the real-time buffer of the device and the frame size of the neural network may be different, which can significantly limit the utility and / or accuracy of the neural network. In addition, the calculations required to use neural networks and DDSPs together are processor-intensive and memory-intensive, thereby limiting the types of devices that can implement synthesis techniques using neural networks and DDSPs. In addition, some calculations performed when using neural networks with DDSPs introduce delays, making real-time use impractical. Summary of the invention
[0004] The following is a simplified summary of one or more embodiments of the present disclosure in order to provide a basic understanding of such implementations. This summary is not an extensive overview of all contemplated implementations, and is not intended to identify key or important elements of all implementations, nor is it intended to delineate the scope of any or all embodiments. Its sole purpose is to present some concepts of one or more implementations of the present disclosure in a simplified form as a prelude to the detailed implementations presented later.
[0005] In one aspect, a method may include generating a frame by sampling an audio input in increments equal to a buffer size of a host device until a threshold corresponding to a frame size for training a machine learning model is reached; extracting amplitude information, pitch information, and pitch state information from the frame; determining, by the machine learning model, control information for audio reproduction based on the amplitude information, pitch information, and pitch state information, the control information including pitch control information and noise level control information; generating filtered noise information by inverting the noise level control information using an overlap-add technique; generating additive harmonic information based on the pitch control information by combining a plurality of scaled wavetables; and presenting an audio output based on the filtered noise information and the additive harmonic information.
[0006] In another aspect, a device may include an audio capture device; a speaker; a memory storing instructions, at least one processor coupled to the memory and executing the instructions to: capture audio input via the audio capture device; generate frames by sampling the audio input in increments equal to a buffer size of a host device until a threshold corresponding to a frame size for training a machine learning model is reached; extract amplitude information, pitch information, and pitch state information from the frames; determine control information for audio reproduction based on the amplitude information, pitch information, and pitch state information by the machine learning model, the control information including pitch control information and noise level control information; filter the noise level control information using an overlap-add technique to generate filtered noise information; generate additive harmonic information based on the pitch control information by combining multiple scaled wavetables; present an audio output based on the filtered noise information and the additive harmonic information; and reproduce the audio output via the speaker.
[0007] In another aspect, an example computer-readable medium (eg, a non-transitory computer-readable medium) storing instructions for performing the methods described herein and an example device including components for performing the operations of the methods described herein are also disclosed.
[0008] Other advantages and novel features related to the implementation of the present disclosure will be partially set forth in the following description, and in part will become more apparent to those skilled in the art after reading the following or learning through practice. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The detailed description is described with reference to the drawings, in which the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in the same or different figures indicates similar or identical items or features.
[0010] Figure 1 An example architecture of a synthesis module according to some aspects of the present disclosure is shown.
[0011] Figure 2 An example method of frame generation according to some aspects of the present disclosure is shown.
[0012] Figure 3 An example architecture of a synthesis module according to some aspects of the present disclosure is shown.
[0013] Figure 4 An example architecture of a HFAB according to some aspects of the present disclosure is shown.
[0014] Figure 5A is a schematic diagram illustrating generation of control information according to some aspects of the present disclosure.
[0015] Figure 5Bis a schematic diagram illustrating generating control information based on pitch state information according to some aspects of the present disclosure.
[0016] Fig. 6A is a schematic diagram illustrating first example control information according to some aspects of the present disclosure.
[0017] Figure 6B is a schematic diagram illustrating second example control information according to some aspects of the present disclosure.
[0018] Figure 6C is a diagram illustrating third example control information according to some aspects of the present disclosure.
[0019] Figure 7 An example method of amplitude modification according to some aspects of the present disclosure is shown.
[0020] Figure 8 is a diagram illustrating an example architecture of a synthesis processor according to some aspects of the present disclosure.
[0021] Fig. 9 Example techniques performed by a noise synthesizer in accordance with some aspects of the present disclosure are shown.
[0022] Fig.10 Example techniques performed by a wavetable synthesizer in accordance with some aspects of the present disclosure are shown.
[0023] Fig.11 Example techniques performed by a wavetable synthesizer for a double buffer in accordance with aspects of the present disclosure are shown.
[0024] Fig. 12A A graph of pitch-amplitude relationships for musical instruments is shown in accordance with some aspects of the present disclosure.
[0025] Fig. 12B A graph including normalized pitch-amplitude relationships for different musical instruments is shown in accordance with some aspects of the present disclosure.
[0026] ] Fig.13 is a flow chart illustrating an example method for real-time synthesis of audio using a neural network and a DDSP processor according to some aspects of the present disclosure.
[0027] Fig.14 is a block diagram illustrating an example of a hardware implementation for a computing device according to some aspects of the present disclosure. DETAILED DESCRIPTION
[0028] The specific embodiments described below in conjunction with the accompanying drawings are intended to describe various configurations and are not intended to represent the only configuration in which the concepts described herein can be practiced. The specific embodiments include specific details for the purpose of providing a thorough understanding of the various concepts. However, it will be appreciated by those skilled in the art that these concepts can be practiced without these specific details. In some cases, well-known components are shown in block diagram form to avoid obscuring these concepts.
[0029] To synthesize realistic audio that sounds natural, engineers have attempted to employ neural audio synthesis with DDSP. However, current combinations have proven to be infeasible in real-time environments. For example, subcomponents employed when using neural networks and DDSP together have proven to be inoperable when used together in a real-time environment. As another example, the computations required to use neural networks and DDSP together are processor-intensive and memory-intensive, thereby limiting the types of devices that can implement synthesis techniques using neural networks and DDSP. As another example, some computations performed when using neural networks with DDSP introduce latency, making real-time use infeasible.
[0030] The present disclosure describes techniques for real-time and low-latency synthesis of a voice using neural networks and differentiable digital signal processors. Aspects of the present disclosure synthesize realistic audio of natural sounds (e.g., musical instruments, singing, and speech). Specifically, aspects of the present disclosure employ machine learning models to extract control signals that are provided to a series of signal processors that implement additive synthesis, wavetable synthesis, and / or filtered noise synthesis. In addition, aspects of the present disclosure employ new techniques for subcomponent compatibility, delay compensation, and additive synthesis to improve audio synthesis accuracy, reduce the resources required to perform audio synthesis, and meet real-time context requirements. Therefore, the present disclosure can be used to convert a musical performance using a first instrument into a musical performance using another instrument or voice, provide more realistic instrument synthesis, synthesize one or more notes of an instrument based on one or more samples of other notes of the instrument, and summarize the behavior and sound of the instrument.
[0031] Illustrative Environment
[0032] Figure 1An example architecture of a synthesis module 100 according to some aspects of the present disclosure is shown. The synthesis module 100 can be configured to synthesize high-quality audio that is natural sounding. In some examples, the synthesis module 100 can be used by an application of the device 101 (e.g., a social media application) as a real-time audio effect that receives input and instantly generates corresponding audio, or by an application of the device 101 (e.g., a sound production application) as a real-time plug-in and / or effect that receives musical instrument digital interface (MIDI) input and instantly generates corresponding audio. Some examples of the device 101 include a computing device, a smartphone device, a workstation, an Internet of Things (IoT) device, a mobile device, a musical instrument digital interface (MIDI) device, a wearable device, etc. Figure 1 As shown, the synthesis module 100 may include a feature detector 102, a machine learning (ML) model 104, and a synthesis processor 106. As used herein, in some aspects, "real time" may refer to an instant (or instant or concurrent or instantaneous perception) response, for example, a response within a few milliseconds, so that it is almost immediately available when observed by a user. As used herein, in some aspects, "near real time" may refer to a concurrency within a few milliseconds to a few seconds.
[0033] like Figure 1 As shown, the synthesis module 100 can be configured to receive audio input 108 and render audio output 110 in real time or near real time. In some examples, the synthesis module 100 can perform sound conversion by converting the audio input 108 generated by a first musical instrument into the audio output 110 of another musical instrument, perform accurate rendering by synthesizing the audio output 110 with improved quality, perform instrument cloning by synthesizing one or more notes of an instrument based on one or more samples of other notes of the instrument, and / or perform sample library compression by summarizing the behavior and sound of musical instruments. In some aspects, the audio input 108 can be one of a variety of input modalities, for example, the audio input can be voice, instrument, MIDI input, or continuous control (CC) input.
[0034] Additionally, in some aspects, synthesis module 100 can be configured to generate frames by sampling audio input 108 in increments equal to a buffer size of device 101 until a threshold corresponding to a frame size used to train machine learning model 104 is reached, as described with respect to Figure 2 Once a frame is generated, the frame may be provided downstream to the feature detector 102, and the synthesis module 100 may begin generating the next frame based on sampling the audio input 108 received after the threshold is reached. Thus, the synthesis module 100 is configured to synthesize the audio output 110 even when the input / output (I / O) audio buffer does not match the buffer size used to train the ML model 104, as described with respect to Figure 2Therefore, the present disclosure introduces intelligent handling of the mismatch between the system buffer size and the model training buffer size.
[0035] Feature detector 102 may be configured to detect feature information 112 (1)-(n). In some aspects, feature information 112 may include amplitude information, pitch information, and pitch state information for each frame generated by synthesis module 100 from audio input 108. Figure 1 As shown, the feature detector 102 may provide feature information 112 for each frame to the ML model 104 .
[0036] The ML model 104 may be configured to determine control information 114(1)-(n) based on feature information 112(1)-(n) of frames generated by the synthesis module 100. In some examples, the ML model 104 may include a neural network or another type of machine learning model. In some aspects, a "neural network" may refer to a mathematical structure that takes an object as input and produces another object as output through a set of linear and nonlinear operations called layers. Such a structure may have parameters that can be adjusted through a learning phase to produce a specific output and is used, for example, for audio synthesis. In addition, the ML model 104 may be a model that can be used on a number of different devices with different processing and storage capabilities. Some examples of neural networks may include feedforward neural networks, recurrent neural networks (e.g., long short-term memory recurrent neural networks), convolutional neural networks, or other forms of neural networks. For example, in some aspects, the ML model 104 may include a recurrent neural network having at least one recurrent layer. In addition, the ML model 104 may be trained using various training or learning techniques (e.g., back propagation of errors). For example, the ML model 104 may be trained to determine the control information 114. In some aspects, the loss function can be back-propagated through the ML model 104 to update one or more parameters of the ML model 104 (e.g., based on the gradient of the loss function). Various loss functions can be used, such as mean squared error, likelihood loss, cross entropy loss, hinge loss, etc. In some aspects, the loss includes a spectral loss determined between two waveforms. In addition, the parameters can be iteratively updated over multiple training iterations using gradient descent techniques.
[0037] As shown in FIG. 1 , the ML model 104 may receive feature information 112 (1)-(n) from the feature detector 102 and generate corresponding control information 114 (1)-(n), the control information 114 (1)-(n) including control parameters for one or more DDSPs (e.g., additive synthesizers and filtered noise synthesizers) of the synthesis processor 106, the one or more DDSPs being trained to generate the audio output 110 based on the control parameters. As used herein, "DDSP" may refer to a technique that utilizes a strong inductive bias from a DSP combined with modern ML. Some examples of control parameters include pitch control information and noise level control information. In addition, in some aspects, the ML model 104 may provide independent control of pitch and loudness during synthesis via different control parameters of the control information 114 (1)-(n).
[0038] Furthermore, in some aspects, the ML model 104 can be configured to process the control information 114 based on the pitch state information before providing the control information 114 to the synthesis processor 106. For example, rendering the audio output 110 based on a frame lacking pitch may result in chirping artifacts. Therefore, to reduce chirping artifacts within the audio output 110, the ML model 104 can zero out the harmonic distribution of the control information 114 based on the pitch state information indicating that the current frame has no pitch, such as with respect to Figure 5A-8 B described in detail.
[0039] In addition, the synthesis processor 106 may be configured to render the audio output 110 based on the control information 114(1)-(n). For example, the synthesis processor 106 may be configured to generate a noise audio component using an overlap-add technique, generate a harmonic audio component from a plurality of scaled wavetables using the pitch control information, and render the audio output 110 based on the noise audio component and the harmonic audio component. Figure 10-11 As described, the synthesis processor 106 can efficiently synthesize the harmonic audio components of the audio output 110 by dynamically generating a wavetable for each frame and linearly cross-fading the wavetable with the wavetable of the adjacent frame, rather than performing more processor-intensive techniques based on summing sine waves. For example, a user can sing into the microphone of the device 101, the device 101 can capture the singing voice as the audio input 108, and the synthesis module 100 generates each frame while capturing the audio input 108 in real time. In addition, the feature detector 102, the ML model 104, and the synthesis processor 106 can process the frames in real time as they are generated to synthesize the audio output 110, which can be violin notes that are perceived as playing a tune sung by the singing voice.
[0040] Figure 2An example method of frame generation according to some aspects of the present disclosure is shown. As shown in diagram 200, an ML model (e.g., ML model 104) can be configured to output control information 202(1)-(n) (e.g., control information 114) every 480 samples (i.e., the frame size). In a first example, the I / O buffer size of the device implementing the synthesis process can be 128 samples. During frame generation, a synthesis module (e.g., synthesis module 100) can generate a frame including data from the 1st sample of the first buffer 204(1) to the 36th sample of the fourth buffer 204(4), and trigger execution of a synthesis method of the synthesis module on the frame to generate a portion of an audio output (e.g., audio output 110). In a second example, the I / O buffer size of the device implementing the synthesis process can be 256 samples. During frame generation, a synthesis module (e.g., synthesis module 100) may generate a frame including data from a 1st sample of the first buffer 206(1) to a 224th sample of the second buffer 206(2), and trigger execution of a synthesis method of the synthesis module on the frame to generate a portion of an audio output (e.g., audio output 110). In a third example, the I / O buffer size of a device implementing the synthesis process may be 512 samples. During frame generation, a synthesis module (e.g., synthesis module 100) may generate a frame including data from a 1st sample of the first buffer 208(1) to a 480th sample of the first buffer 208(1), and trigger execution of a synthesis method of the synthesis module on the frame to generate a portion of an audio output (e.g., audio output 110). In this way, the synthesis module implements intelligent handling of mismatches between system buffer sizes and model training buffer sizes, thereby allowing the synthesis module to be used in applications that allow real-time or near real-time modification of I / O buffer sizes.
[0041] Figure 3 An example architecture 300 of a feature detector 102 according to some aspects of the present disclosure is shown. Figure 3As shown, the feature detector 102 may include a pitch detector 302 and an amplitude detector 304. In addition, the feature detector 102 may be configured to detect feature information 112 (1)-(n). In some aspects, the pitch detector 302 may be configured to determine pitch state information 306 (is_pitched) and pitch information 308 (midi_pitch). For example, the pitch detector 302 may be configured to use a sparse Viterbi algorithm to determine the pitch state information 306 and the pitch information 308. The pitch state information 306 may indicate whether the audio input 108 is pitched, and the pitch information 308 may indicate one or more attributes of the pitch of the audio input 108. The amplitude detector 304 may be configured to determine amplitude information 310 (amp_ratio). For example, in some aspects, the amplitude detector 304 may be configured to use a single-pole low-pass filter to determine the amplitude information 310.
[0042] In addition, if Figure 3 As shown, the feature information 112 can be delayed compensated. For example, the feature detector 102 may include a delay compensation module 312 configured to receive the pitch state information 306, the pitch information 308, and the amplitude information 310, align the pitch state information 306, the pitch information 308, and the amplitude information 310, and output the pitch state information 306, the pitch information 308, and the amplitude information 310 to the next subsystem within the synthesis module 100, such as the ML model 104. In addition, in some aspects, the delay compensation module 312 supports real-time processing by compensating for the delay caused by the feature detector 102, and such compensation is not required in a non-real-time environment where batch processing is performed.
[0043] Figure 4 An example architecture 400 of an ML model 104 according to some aspects of the present disclosure is shown. Figure 4 As shown, feature information (e.g., pitch state information 306, pitch information 308, and amplitude information 310) may be provided to a downsampler 402 configured to downsample the feature information before the feature information is provided to the ML model 104. In some aspects, the feature information may be downsampled to align with a specified interval of the ML model 104 to predict control information. For example, if the sampling rate of the device 101 is equal to 48,000 Hz and the ML model is trained at 250 frames per second, the downstream sampler 402 may provide every 192 samples to the next subsystem because 48,000 divided by 250 equals 192. Thus, the present disclosure describes configuring a synthesis module (e.g., synthesis module 100) to address a mismatch between a system sampling rate and a model training sampling rate.
[0044] like Figure 4As shown, the down sampler 402 can provide the characteristic information of the downstream samples (e.g., pitch information 308 and amplitude information 310) to the user offset midi 404 and the user offset db 406, respectively, which provide user input capabilities. In addition, the user offset midi 404 and the user offset db 406 can be modulated by other control signals to provide more creative and artistic effects.
[0045] In addition, if Figure 4 As shown, the ML model 104 may include a first clamp and normalizer 408, a second clamp and normalizer 410, a decoder 412, a bias module 414, a midi converter 416, an exponential sigmoid module 418, a window module 420, a pitch management module 422, and a noise management module 424. In addition, the first clamp and normalizer 408 may be configured to receive the pitch information 308, generate a base frequency 426, and provide the base frequency 426 to the decoder 412. In some aspects, the clamp may be in the range of 0 to 127, and the normalization may be in the range of 0 to 1. In addition, the second clamp and normalizer 410 may be configured to receive the amplitude information 310, generate an amplitude 428, and provide the amplitude 428 to the decoder 412. In some aspects, the clamp may be between -120 and 0, and the normalization may be between 0 and 1.
[0046] In addition, the decoder 412 can be configured to generate control information (e.g., harmonic distribution 430, harmonic amplitude 432, and noise level information 434) based on the fundamental frequency 426 and the amplitude 428. In some aspects, the decoder 412 maps the fundamental frequency 426 and the amplitude 428 to control parameters of a synthesizer of the synthesis processor 106. Specifically, the decoder 412 can include a neural network that receives the fundamental frequency 426 and the amplitude 428 as inputs and generates control inputs (e.g., harmonic distribution 430, amplitude 432, and noise level information 434) for the DDSP element(s) of the synthesis processor 106.
[0047] In addition, the exponential sigmoid module 418 can be configured to format the control information (e.g., harmonic distribution 430, harmonic amplitude 432, and noise size information 434 through the bias module 414) to be non-negative by applying an sigmoid nonlinearity. As shown in Figure 4, the exponential sigmoid module 418 can also provide control information to the windowing module 420. In some aspects, the midi converter 416 can receive the pitch information 308 from the user offset midi 404, determine the fundamental frequency 436 in Hz, and provide the fundamental frequency 436 in Hz to the decoder 412 and the windowing module 420.
[0048] The windowing module 420 may be configured to receive the harmonic distribution 430 and the fundamental frequency 436 in Hz, and upstream sample the harmonic distribution 430 using an overlapping Hamming window envelope with predefined values (e.g., a frame size of 128 and a hop size of 64) based on the fundamental frequency 436 in Hz. Figure 5A-5B As described in detail, if the current frame has no pitch, the pitch management module 422 may modify (e.g., zero) the harmonic distribution 430 before providing the harmonic distribution 430 to the synthesis processor 106. In addition, if the noise level information 434 is above the playback Nyquist and 20,000 Hz, the noise management module 424 may modify (e.g., zero) the noise level information 434 before providing the noise level information 434 to the synthesis processor 106.
[0049] In addition, in some aspects, the device 101 can display visual data corresponding to the control information. For example, in some aspects, the device 101 can include a graphical user interface that displays pitch state information 306, harmonic distribution 430, harmonic amplitude 432, and noise level information 434 and / or fundamental frequency 436 in Hz. In addition, the control information 114 can be presented in a thread-safe manner that does not negatively impact the synthesis module that determines the audio output and / or add audio artifacts. For example, in some aspects, double buffering of the harmonic distribution can be employed to allow the harmonic distribution to be safely displayed in the GUI thread.
[0050] Figure 5A-5B is a schematic diagram showing an example of generating control information based on pitch state information according to some aspects of the present disclosure. Figure 5A As shown in the schematic diagram 500 of FIG. 5 , when the pitch state information (e.g., the pitch state information 306) indicates that frames 1 and 2 are pitched, the harmonic distributions 502-504 corresponding to these frames are not reset to zero by the pitch management module (e.g., the pitch management module 422). Figure 5B As shown in the schematic diagram 506 of , when the pitch state information (e.g., pitch state information 306) indicates that frame 1 is pitched, the harmonic distribution 508 of frame 1 is not zeroed by the pitch management module (e.g., pitch management module 422). In addition, when the pitch state information indicates that frame 2 is not pitched, the harmonic distribution 510 corresponding to frame 2 can be zeroed by the pitch management module to generate a zeroed harmonic distribution 512 to reduce the number of chirp artifacts in the sound output (e.g., audio output 110).
[0051] Figures 6A-6C6 is a schematic diagram illustrating example control information according to some aspects of the present disclosure. For example, with respect to schematic diagram 600, an ML model (e.g., ML model) may have been trained at 48,000 Hz. Therefore, the sampling rate of harmonic distribution 602 and noise magnitude 604 may have been defined as 48,000 Hz, as shown in schematic diagram 600. In addition, the present disclosure describes calculating a threshold index, where control signals above the Nyquist frequency should be removed. This is done on a per-frame level based on a target inference sampling rate. For example, with respect to schematic diagram 606, a pitch management module (e.g., pitch management module 422) may identify a threshold indicator (e.g., 44100 kHz) corresponding to a sampling rate that has been configured at a device (e.g., device 101). In addition, the harmonic distribution 608 and the noise magnitude 610 may be trimmed to the threshold indicator and transmitted to a synthesis processor (e.g., synthesis processor 106) as control information (e.g., control information 114). As another example, with respect to diagram 612, a pitch management module (e.g., pitch management module 422) may identify a threshold indicator (e.g., 32,000 Hz) corresponding to a sampling rate that has been configured at a device (e.g., device 101). In addition, harmonic distribution 608 and noise level 610 may be trimmed to the threshold and transmitted to a synthesis processor (e.g., synthesis processor 106) as control information (e.g., control information 114). In some aspects, adjusting the control information may reduce the number of calculations performed downstream by the synthesis processor (e.g., synthesis processor 106), thereby improving real-time performance by reducing the amount of processor and memory resources required to generate a sound output (e.g., audio output 110) based on the control information.
[0052] Figure 7 An example method of amplitude modification according to some aspects of the present disclosure is shown. In some examples, a synthesis module (e.g., synthesis module 100) can employ an amplification modification control module 702 to improve the quality of an audio output (e.g., audio output 110). For example, if the amplitude information 708 (e.g., amplitude information 310) detected by a feature detector (e.g., feature detector 102) does not have a dynamic range calibrated for an associated ML model 704 (e.g., ML model 104), the amplitude information may cause an associated synthesis processor (e.g., synthesis processor 106) to generate substandard audio quality. Therefore, the amplification modification control module 702 can be configured to receive a user input 706 and apply an amplitude transfer curve based on the user input 706. In addition, the amplitude transfer curve can modify the detected amplitude information 708 (e.g., amplitude information 310) to generate a modified amplitude information 710.
[0053] In some examples, user input 706 may include a linear control that allows a user to compress or expand the amplitude against a target threshold. Additionally, a ratio may define how strongly the amplitude is compressed to (or expanded away from) the threshold. For example, a ratio greater than 1:1 (e.g., 2:1) pulls the signal toward the threshold, a ratio less than 1:1 (e.g., 0.5:1) pushes the signal away from the threshold, and a ratio of exactly 1:1 has no effect regardless of the threshold.
[0054] In some examples, the user input 706 can be used as a parameter for transient deformation of the amplitude control signal. In addition, the user input 706 for transient deformation can include an attack input to control the strength of the transient attack. A positive percentage of the attack input can increase the loudness of the transient, a negative percentage of the attack input can reduce the loudness of the transient, and a level of 0% may have no effect. The user input 706 for transient deformation can also include a sustain input to control the strength of the signal between transients. A positive percentage of the sustain input can increase the perceived sustain, a negative percentage of the sustain input can reduce the perceived sustain, and a level of 0% may have no effect. In addition, the user input 706 for transient deformation can also include a time input representing a temporal characteristic. A shorter time may result in a sharper attack, while a longer time may result in a longer attack.
[0055] In some examples, the user input may also include a knee input that defines the interaction between the threshold and the ratio during a transient deformation of the amplitude control signal. In some aspects, the threshold may represent an expected amplitude transfer curve threshold and the ratio may represent an expected amplitude transfer curve ratio. In addition, the user input may include an amplitude transfer curve knee width.
[0056] Figure 8 An example architecture 800 of a synthesis processor 106 according to some aspects of the present disclosure is shown. The synthesis processor 106 can be configured to synthesize an audio output (e.g., audio output 110) based on control information (e.g., control information 114) received from an ML model (e.g., ML model 104). For example, in some aspects, the synthesis processor 106 can be configured to generate an audio output based on parameters of the control information 114 and minimize reconstruction losses between the audio output (i.e., synthesized audio) and an audio input (e.g., audio input 108). As described herein, the control information can include pitch state information 306, fundamental frequency 436 in Hz, harmonic distribution 430, harmonic amplitude 432, and noise level information 434.
[0057] In addition, if Figure 8As shown, the synthesis processor 106 may include a noise synthesizer 802, a pitch smoother 804, a wavetable synthesizer 806, a mixing control 808, and a delay compensation module 810. The noise synthesizer 802 may be configured to provide a filtered noise stream according to a harmonic plus noise model. In addition, in some aspects, the noise synthesizer 802 may be a differentiable filter noise synthesizer that incorporates a linear time-varying finite impulse response (LTV-FIR) filter into a uniform noise stream based on the noise magnitude information 434. For example, Figure 8 As shown, the noise synthesizer 802 can receive the noise level information 434 and generate a noise audio component 812 of the audio output based on the noise level information 434. Fig. 9 As described, the noise synthesizer 802 may generate a noise audio component 812 using an overlap-add technique with a size equal to the buffer size of the device (e.g., device 101). In some aspects, the noise synthesizer 802 may perform an overlap-add technique through a circular buffer to provide real-time overlap-add performance. As described herein, an "overlap-add method" may refer to recombining a longer signal by continuously adding smaller component signals. In some aspects, the size of the noise audio component 812 may not be equal to the frame size and / or buffer size used by the device for training the corresponding ML model. On the contrary, the size of the noise audio component 812 may be equal to a fixed fast Fourier transform (FFT) length depending on the number of noise size information 434. In addition, the fixed FFT length may be greater than the real-time buffer size. Therefore, the noise synthesizer 802 may be configured to write the noise audio component 812 into a circular buffer by an overlap-add technique, and read the noise audio component 812 from the circular buffer according to the real-time buffer size.
[0058] like Figure 8As shown, the pitch smoother 804 may be configured to receive the pitch state information 306 and the fundamental frequency 436 in Hz, and generate a smoothed fundamental frequency 814 in Hz. In addition, the pitch smoother may provide the smoothed fundamental frequency 814 in Hz to the wavetable synthesizer 806. After receiving the smoothed fundamental frequency 436 in Hz, the harmonic distribution 430, and the harmonic amplification 432, the wavetable synthesizer 806 may be configured to convert the harmonic distribution 430 into a first dynamic wavetable by a fast Fourier transform (FFT), scale the first wavetable based on multiplying the first wavetable by the harmonic amplitude 432 to generate a first scaled wavetable, and linearly cross-fade the first scaled wavetable with a second scaled wavetable associated with a frame before the current frame and a third scaled wavetable associated with a frame after the current frame to generate a harmonic audio component 816. As used herein, a wavetable may refer to a time domain representation of a harmonic distribution of a frame. The length of the wavetable is typically 256-4096 samples, and a wavetable collection may contain anywhere from a few to hundreds of wavetables, depending on the use case. In addition, periodic waveforms are synthesized by indexing the wavetable as a lookup table and interpolating between adjacent samples. In some aspects, the wavetable synthesizer 806 may employ a smoothed base frequency 814 in Hz to determine where to read from in the wavetable using phase-accumulated fractional indexing.
[0059] Wavetable synthesis is very suitable for real-time synthesis of periodic and quasi-periodic signals. In many cases, real-world objects that produce sound often exhibit physical properties that can be well described by harmonic oscillations (e.g., vibrating strings, membranes, hollow tubes, and human vocal cords). By using a lookup table consisting of a single-cycle waveform, wavetable synthesis can be as versatile as additive synthesis while requiring less real-time calculations. Therefore, compared with traditional methods, the wavetable synthesizer 806 provides speed and processing benefits, and traditional methods require additive synthesis of a large number of sine waves, which cannot be performed in real time. In addition, in some aspects, the wavetable synthesizer 806 can use a double buffer to store and index the scaled wavetable generated from the audio input 108, thereby providing storage benefits in addition to computational benefits.
[0060] In some aspects, the wavetable synthesizer 806 may be further configured to apply frequency-dependent anti-aliasing to the wavetable. For example, the synthesis processor 106 may be configured to apply frequency-dependent anti-aliasing to the wavetable based on the pitch of the current frame represented by the smoothed fundamental frequency 814 in Hz. Furthermore, frequency-dependent anti-aliasing may be applied to the scaled wavetable before the scaled wavetable is stored in the double buffer.
[0061] In addition, the mixing control 808 can be configured to independently increase or decrease the volume of the noise audio component 812 and the harmonic audio component 816. In some aspects, the mixing control 808 can modify the volume of the noise audio component 812 and / or the harmonic audio component 816 in a real-time and safe manner based on user input. In addition, the mixing control 808 can be configured to apply a smooth gain when modifying the noise audio component 812 and / or the harmonic audio component 816 to prevent audio artifacts. In addition, the mixing control 808 can be implemented using real-time safety techniques to reduce and / or limit audio artifacts.
[0062] In addition, the mixing control 808 can provide the noise audio component 812 and the harmonic audio component 816 to the delay compensation module 810 for alignment. For example, the noise synthesizer 802 can introduce a delay that can be corrected by the delay compensation module. Specifically, in some aspects, the delay compensation module 810 can shift the noise audio component 812 and / or the harmonic audio component 816 so that the noise audio component 812 and / or the harmonic audio component 816 are properly aligned, and combine the noise audio component 812 and the harmonic audio component 816 to form the audio output 110. As described herein, in some examples, the delay compensation module 810 can combine the noise audio component 812 and the harmonic audio component 816 to form an audio output 110 associated with an instrument that is different from the instrument that generates the audio input 108. In some other examples, the delay compensation module 810 can combine the noise audio component 812 and the harmonic audio component 816 to form an audio output 110 of one or more notes of the instrument based on one or more samples of other notes of the instrument captured within the audio input 108.
[0063] Fig. 9 Example techniques performed by a noise synthesizer according to some aspects of the present disclosure are shown. As shown in schematic diagram 900, a noise synthesizer (e.g., noise synthesizer 802) may periodically receive a plurality of control information 902(1)-(n) from an ML model (e.g., ML model 104) according to a predefined period corresponding to a frame size used to train the ML model. For example, the noise synthesizer may receive control information 902 for a single frame every 480 samples. Furthermore, in some cases, the noise synthesizer may not present the noise audio components 904(1)-(n) in blocks of size equal to the frame size or buffer size. Instead, each noise audio component (e.g., noise audio component 812) may be fixed to the size of the FFT window. Furthermore, in some examples, to save memory and provide quick access to the noise audio components 904(1)-(n), the noise synthesizer may store the noise audio components 904 in a circular buffer 906. As shown Fig. 9As shown, the noise synthesizer can overwrite previously used data in the circular buffer 906 by performing a write operation 908 on the circular buffer 906, and access the noise audio components 904 (1)-(n) by performing a read operation 910 from the circular buffer 906. In some examples, the read operation can read enough data (i.e., samples) from the circular buffer 906 to fill the real-time buffer 912 (1)-(n). In addition, as described with respect to Figure 8 As described above, data read from the circular buffer 906 may be provided to a delay compensation module (eg, delay compensation module 810 ) via a mixing control (eg, mixing control 808 ) to be combined with a harmonic audio component (eg, harmonic audio component 816 ) generated based on the audio input 108 .
[0064] Fig.10 An example technique performed by a wavetable synthesizer according to some aspects of the present disclosure is shown. As shown in diagram 1000, a wavetable synthesizer (e.g., wavetable synthesizer 806) may periodically receive a harmonic distribution 1002 within each frame of control information 1004 received from an ML model (e.g., ML model 104). For example, the control information for the first frame 1004(1) may include the first harmonic distribution 1002(1), the control information for the nth frame 1004(n) may include the nth harmonic distribution 1002(n), and so on. Fig.10 As shown, the wavetable synthesizer can be configured to generate a plurality of scaled wavetables 1008 based on the harmonic distribution 1002 and the harmonic amplitude 1010 of the control information 1004. In addition, the noise synthesizer can generate harmonic components by linearly cross-fading the plurality of scaled wavetables 1008. In some aspects, the cross-fading is extensively performed by interpolation.
[0065] Fig.11 An example double buffer employed by a wavetable synthesizer according to some aspects of the present disclosure is shown. Fig.11 As shown, double buffer 1100 may include first memory location 1102 and second memory location 1104. As described in detail herein, a noise synthesizer (e.g., noise synthesizer 802) may receive a plurality of control information 1004(1)-(n) and generate a plurality of scaled wave tables 1008(1)-(N). Further, Figure 1As shown, a wavetable synthesizer (e.g., wavetable synthesizer 806) may be configured to store the first scaled wavetable 1008(1) in the first memory location 1102 and store the second scaled wavetable in the second memory location 1104 during a first time period corresponding to a linear cross-fade of the first scaled wavetable and the second scaled wavetable. Furthermore, during a second time period corresponding to a linear cross-fade of the second scaled wavetable and the third scaled wavetable, the wavetable synthesizer may be configured to overwrite the first scaled wavetable 1008(1) in the first memory location 1102 with the third scaled wavetable in the first memory location 1102.
[0066] Fig. 12A A graph including pitch-amplitude relationships for different musical instruments according to some aspects of the present disclosure is shown. Typically, ML models trained on different datasets will have different minimum, maximum, and average values. In other words, in some cases, each instrument may have a different model, and one or more model parameters may synthesize a high-quality sound for a first model (e.g., a flute) but have lower quality on another model (e.g., a violin). Fig. 12A As shown, the violin may have a first pitch-amplitude relationship 1202, the flute may have a second pitch-amplitude relationship 1204, and the user input may have a third pitch-amplitude relationship 1206 that is different from the pitch-amplitude relationships of the violin and the flute.
[0067] Fig. 12B A graph is shown including normalized pitch-amplitude relationships for different musical instruments according to some aspects within the present disclosure. In some aspects, rather than training directly on amplitude and pitch data for a particular instrument, an ML model (e.g., ML model 104) can be trained using a dataset normalized to a mean of 0 and a standard deviation of 1. Thus, the dataset for each instrument can be normalized. Thus, during real-time inference by the ML model, a user can use the transpose and amplitude tables to control changing the shape of the user input distribution to match the standard distribution of the data whitening process described above. Additionally, when the user changes to the ML model for another instrument, the distribution remains consistent with the distribution expected by the model. Additionally, in some aspects, user offset midi 404 and user offset db 406 can be used to shift the pitch and amplitude to Fig. 12B Inside or outside the boundaries shown in .
[0068] Example Process
[0069] Described below Fig.13The processes in are illustrated as a collection of boxes in a logical flow diagram, which represent a series of operations that can be implemented in hardware, software, or a combination of both. In the context of software, a box represents a computer-executable instruction stored on one or more computer-readable storage media, which, when executed by one or more processors, performs the operations. Generally, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform specific functions or implement specific abstract data types. The order in which the operations are described should not be considered as limiting, and any number of the boxes described may be combined in any order and / or in parallel to implement the processes. The operations described herein may, but need not be, implemented using the synthesis module 100. By way of example and not limitation, the method 1300 is Figure 1-1 2 and 14. For example, these operations may be performed by one or more of the synthesis module 100, the feature detector 102, the ML model 104, the synthesis processor 106, the feature detector 102, the ML model 104, the synthesis processor 106, the pitch detector 302, the amplitude detector 304, the delay compensation module 312, the amplitude modification control module 702, the ML model 704, the noise synthesizer 802, the pitch smoother 804, the wavetable synthesizer 806, the mixing control 808, and the delay compensation module 810.
[0070] Fig.13 is a flow chart illustrating an example method for synthesizing audio in real time using a neural network and a DDSP processor according to some aspects of the present disclosure.
[0071] At block 1302, method 1300 may include generating a frame by sampling the audio input in increments equal to the buffer size of the host device until a threshold corresponding to a frame size for training the machine learning model is reached. For example, ML model 104 may be configured to have a frame size equal to 480 samples, and the I / O buffer size of device 101 may be 128 samples. Thus, synthesis module 100 may sample audio input 108 within buffer 204 of the device, generate a frame including data from sample 1 of first buffer 204(1) to sample 36 of fourth buffer 204(4), and provide the frame to feature detector 102. Furthermore, synthesis module 100 may repeat the frame generation step in real time as device 101 receives the audio input.
[0072] Thus, the device 101, computing device 1400, and / or processor 1401 executing the synthesis module 100 may provide a component for generating frames by sampling the audio input in increments equal to the buffer size of the host device until a threshold corresponding to a frame size used to train a machine learning model is reached.
[0073] At block 1304, method 1300 may include extracting amplitude information, pitch information, and pitch state information from the frame. For example, feature detector 102 may be configured to detect feature information 112. In some aspects, pitch detector 302 of feature detector 102 may be configured to determine pitch state information 306 (is_pitched) and pitch information 308 (midi_pitch), and amplitude detector 304 of feature detector 102 may be configured to determine amplitude information 310 (amp_ratio). Further, downsampler 402 may be configured to downsample feature information 112 before providing feature information 112 to ML model 104. In some aspects, feature information may be downsampled to align with a specified interval of ML model 104 to predict control information. For example, if the sampling rate of device 101 is equal to 48,000 Hz and the ML model is trained at 250 frames per second, downsampler 402 may provide every 192 samples to the next subsystem because 48,000 divided by 250 equals 192.
[0074] Thus, the device 101, computing device 1400 and / or processor 1401 executing the feature detector 102, pitch detector 302, amplitude detector 304 and / or downsampler 402 may provide components for extracting amplitude information, pitch information and pitch state information from a frame.
[0075] At block 1306, method 1300 may include determining, by the machine learning model, control information for audio reproduction based on the amplitude information, the pitch information, and the pitch state information, the control information including the pitch control information and the noise level control information. For example, ML model 104 may receive feature information 112(1) from downsampler 402 and generate corresponding control information 114(1) based on the amplitude information, the pitch information, and the pitch state information detected by feature detector 102. In some aspects, control information 114(1) may include pitch state information 306, fundamental frequency 436 in Hz, harmonic distribution 430, harmonic amplitude 432, and noise level information 434. In addition, control information 114(1) provides independent control of pitch and loudness during synthesis.
[0076] Therefore, the device 101 executing the ML model 104, the computing device 1400 and / or the processor 1401 can provide a component for determining control information for audio reproduction based on amplitude information, pitch information and pitch state information by the machine learning model, the control information including pitch control information and noise level control information.
[0077] At block 1308, method 1300 may include generating filtered noise information by inverting the noise magnitude control information using an overlap-add technique. For example, noise synthesizer 802 may receive noise magnitude information 434 and generate a noise audio component 812 of an audio output based on noise magnitude information 434. In addition, noise synthesizer 802 may employ an overlap-add technique to generate noise audio component 812 (i.e., filtered noise information) having a size equal to a buffer size of device 101. In some aspects, noise synthesizer 802 may perform an overlap-add technique via a circular buffer.
[0078] Thus, the device 101 , computing device 1400 , and / or processor 1401 executing the synthesis processor 106 and / or the noise synthesizer 802 may provide means for generating filtered noise information by inverting the noise level control information using an overlap-add technique.
[0079] At block 1310, method 1300 may include generating additive harmonic information by combining a plurality of scaled wavetables based on the pitch control information. For example, pitch smoother 804 may be configured to receive pitch state information 306 and fundamental frequency 436 in Hz and generate smoothed fundamental frequency 814 in Hz. In addition, pitch smoother 804 may provide smoothed fundamental frequency 814 in Hz to wavetable synthesizer 806. After receiving the smoothed fundamental frequency 436 in Hz, the harmonic distribution 430, and the harmonic amplification 432, the wavetable synthesizer 806 can be configured to convert the harmonic distribution 430 into a first dynamic wavetable via a fast Fourier transform (FFT), scale the first wavetable based on multiplying the first wavetable by the harmonic amplitude 432 to generate a first scaled wavetable, and linearly cross-pollinate the first scaled wavetable with a second scaled wavetable associated with a frame before the current frame and a third scaled wavetable associated with a frame after the current frame to generate a harmonic audio component 816 (i.e., additive harmonic information).
[0080] Thus, the device 101 , computing device 1400 , and / or processor 1401 executing the synthesis processor 106 and / or wavetable synthesizer 806 may provide means for generating additive harmonic information by combining a plurality of scaled wavetables based on pitch control information.
[0081] At block 1312, the method 1300 may include presenting a sound output based on the filtered noise information and the additive harmonic information. For example, the delay compensation module 810 may shift the noise audio component 812 and / or the harmonic audio component 816 so that the noise audio component 812 and / or the harmonic audio component 816 are properly aligned, and the noise audio component 812 and the harmonic audio component 816 are combined to form the audio output 110. Once the audio output 110 is presented, the audio output 110 may be reproduced through a speaker. As described herein, in some examples, the delay compensation module 810 may combine the noise audio component 812 and the harmonic audio component 816 to form an audio output 110 associated with an instrument different from the instrument that produced the audio input 108. In some other examples, the delay compensation module 810 may combine the noise audio component 812 and the harmonic audio component 816 to form an audio output 110 of one or more notes of the instrument based on one or more samples of other notes of the instrument captured within the audio input 108.
[0082] In some examples, the delay compensation module 810 can receive the noise audio component 812 and / or the harmonic audio component 816 from the noise synthesizer 802 and the wavetable synthesizer 806 via the mixing control 808. Furthermore, in some aspects, the mixing control 808 can modify the volume of the noise audio component 812 and / or the harmonic audio component 816 in a real-time and safe manner based on user input.
[0083] Thus, the device 101 , computing device 1400 , and / or processor 1401 executing the synthesis processor 106 and / or the delay compensation module 810 may provide a component for rendering a sound output based on the filtered noise information and the additive harmonic information.
[0084] Although the operations are described as being implemented by one or more computing devices, in other examples, various computing device systems may be employed. For example, a system of multiple devices may be used to cooperate with each other to perform any of the above operations.
[0085] Illustrative Computing Devices
[0086] ] Fig.14 A block diagram of an example computing system / device 1400 (e.g., device 101) suitable for implementing example embodiments of the present disclosure is shown. Synthesis module 100 can be implemented as system / device 1400 or included in system / device 1400. System / device 1400 can be a general purpose computer, a physical computing device, or a portable electronic device, or can be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices connected through a communication network. System / device 1400 can be used to implement any of the processes described herein.
[0087] As shown in the figure, the system / device 1400 includes a processor 1401, which can perform various processes according to a program stored in a read-only memory (ROM) 1402 or a program loaded from a storage unit 1408 to a random access memory (RAM) 1403. In the RAM 1403, data required when the processor 1401 performs various processes, etc. is also stored as needed. The processor 1401, ROM 1402, and RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.
[0088] Processor 1401 may be of any type suitable for the local technology network, and may include one or more of the following: a general purpose computer, a special purpose computer, a microprocessor, a digital signal processor (DSP), a graphics processing unit (GPU), a coprocessor, and a processor based on a multi-core processor architecture, as non-limiting examples. System / device 1400 may have multiple processors, such as application specific integrated circuit chips, which are time-slaved to a clock synchronized with a main processor.
[0089] A number of components in the system / device 1400 are connected to the I / O interface 1405, including an input unit 1406, such as a keyboard, a mouse, a microphone (e.g., an audio capture device for capturing audio input 108), etc.; an output unit 1407, including a display, such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc. (e.g., a speaker for reproducing audio output 110); a storage unit 1408, such as a magnetic disk and an optical disk, etc.; and a communication unit 1409, such as a network card, a modem, a wireless transceiver, etc. The communication unit 1409 allows the system / device 1400 to exchange information / data with other devices through a communication network (e.g., the Internet, various telecommunication networks, etc.).
[0090] The above methods and processes, such as method 1300, may also be performed by processor 1401. In some embodiments, method 1300 may be implemented as a computer software program or a computer program product tangibly contained in a computer-readable medium (e.g., storage unit 1408). In some embodiments, the computer program may be partially or fully loaded and / or embodied in system / device 1400 via ROM 1402 and / or communication unit 1409. The computer program includes computer executable instructions executed by the associated processor 1401. When the computer program is loaded into RAM 1403 and executed by processor 1401, one or more actions of the above method 1300 may be implemented. Alternatively, in other embodiments, processor 1401 may be configured to perform method 1300 in any other suitable manner (e.g., via firmware).
[0091] in conclusion
[0092] Finally, although various embodiments have been described using language specific to structural features and / or methodological acts, it should be understood that the subject matter defined in the accompanying representations is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claimed subject matter.
Claims
1. An audio processing method, comprising: generating frames by sampling the audio input in increments equal to a buffer size of the host device until a threshold corresponding to a frame size used to train the machine learning model is reached; extracting amplitude information, pitch information and pitch state information from the frame; Determining, by the machine learning model, control information for audio reproduction based on the amplitude information, the pitch information, and the pitch state information, the control information comprising pitch control information and noise level control information; generating filtered noise information by inverting the noise level control information using an overlap-add technique; generating additive harmonic information by combining the plurality of scaled wavetables based on the pitch control information; as well as An audio output is presented based on the filtered noise information and the additive harmonic information. 2 . The method of claim 1 , further comprising applying delay compensation to the amplitude information, the pitch information, and the pitch state information before determining the control information.
3. The method of claim 1 , wherein generating the filtered noise information by inverting the noise level control information using an overlap-add technique comprises: receiving the noise level control information based on the frame size from the machine learning model; presenting the filtered noise information in a block size not equal to the frame size; Writing the filtered noise information into a circular buffer by the overlap-add technique; and The filtered noise information is read from the circular buffer at the buffer size.
4. The method of claim 1 , wherein the frame is a first frame, the pitch control information includes harmonic distribution information and harmonic amplitude information, and generating the additive harmonic information comprises: converting the harmonic distribution information into a first dynamic wave table via a fast Fourier transform; determining a first scaled wavetable among the plurality of scaled wavetables based on the harmonic amplitude information and the first dynamic wavetable; and The first scaled wavetable is linearly cross-faded with a second scaled wavetable of the plurality of scaled wavetables, the second scaled wavetable being associated with a second frame.
5. The method of claim 4 , wherein the plurality of scaled wavetables are stored in a double buffer having a first memory location storing the first scaled wavetable and a second memory location storing the second scaled wavetable, and configured to overwrite the first scaled wavetable in the first memory location with a third scaled wavetable from the plurality of scaled wavetables based on a portion of the audio output corresponding to the first scaled wavetable being reproduced.
6. The method of claim 4, wherein determining the first scaling wavetable comprises: The first scaled wavetable is determined based at least in part on filtering the first wavetable over a pitch detected within the pitch information.
7. The method of claim 1, further comprising applying delay compensation to the filtered noise information and the additive harmonic information prior to presenting the audio output.
8. The method of claim 1 , wherein pitch control information includes harmonic distribution information, and determining the control information for the audio reproduction comprises: determining that the pitch state information indicates that the audio input is not pitched; as well as The harmonic distribution information is reset to zero based on the pitch state information.
9. The method of claim 1 , wherein determining the control information for the audio reproduction comprises: determining the control information based on a model sampling rate used to train the machine learning model; determining a target sampling rate for the host device; as well as Based on the target sampling rate being smaller than the model sampling rate, a portion of the pitch control information and / or the noise level control information exceeding the target sampling rate is removed.
10. The method according to claim 1, further comprising: receiving, via a user interface, a mixing input value indicating a relationship for mixing the filtered noise information and the additive harmonic information within the audio output; and Wherein rendering the audio output comprises smoothing a gain applied to the rendering of the audio output based on the mixed input value.
11. The method of claim 1 , further comprising modifying the amplitude information based on user input before determining the control information.
12. A non-transitory computer readable device having instructions thereon, which when executed by at least one computing device, cause the at least one computing device to perform operations comprising: generating frames by sampling the audio input in increments equal to a buffer size of the host device until a threshold corresponding to a frame size used to train the machine learning model is reached; extracting amplitude information, pitch information and pitch state information from the frame; Determining, by the machine learning model, control information for audio reproduction based on the amplitude information, the pitch information, and the pitch state information, the control information comprising pitch control information and noise level control information; generating filtered noise information by inverting the noise level control information using an overlap-add technique; generating additive harmonic information by combining a plurality of scaled wavetables based on the pitch control information; as well as An audio output is presented based on the filtered noise information and the additive harmonic information.
13. The non-transitory computer-readable device of claim 12, wherein the operations further comprise applying delay compensation to the amplitude information, the pitch information, and the pitch state information prior to determining the control information.
14. The non-transitory computer-readable device of claim 12, wherein generating the filtered noise information by inverting the noise magnitude control information using an overlap-add technique comprises: receiving the noise level control information based on the frame size from the machine learning model; presenting the filtered noise information in a block size not equal to the frame size; writing the filtered noise information into a circular buffer via the overlap and add technique; and The filtered noise information is read from the circular buffer at the buffer size.
15. The non-transitory computer-readable device of claim 12, wherein the frame is a first frame, the pitch control information includes harmonic distribution information and harmonic amplitude information, and generating the additive harmonic information comprises: converting the harmonic distribution information into a first dynamic wave table via a fast Fourier transform; determining a first scaled wavetable among the plurality of scaled wavetables based on the harmonic amplitude information and the first dynamic wavetable; and The first scaled wavetable is linearly cross-faded with a second scaled wavetable of the plurality of scaled wavetables, the second scaled wavetable being associated with a second frame.
16. The non-transitory computer-readable device of claim 12, wherein instructions further comprise applying delay compensation to the filtered noise information and the additive harmonic information prior to presenting the audio output.
17. The non-transitory computer-readable device of claim 12, wherein determining the control information for the audio reproduction comprises: determining the control information based on a model sampling rate used to train the machine learning model; determining a target sampling rate for the host device; as well as Based on the target sampling rate being smaller than the model sampling rate, a portion of the pitch control information and / or the noise level control information exceeding the target sampling rate is removed.
18. A system comprising: Audio capture device; speaker; a memory on which instructions are stored; as well as at least one processor coupled to the memory and configured by the instructions to: capturing audio input via the audio capture device; generating frames by sampling the audio input in increments equal to a buffer size of the host device until a threshold corresponding to a frame size used to train the machine learning model is reached; extracting amplitude information, pitch information and pitch state information from the frame; Determine, by the machine learning model, control information for audio reproduction based on the amplitude information, the pitch information, and the pitch state information, the control information comprising pitch control information and noise level control information; filtering the noise level control information using an overlap-add technique to generate filtered noise information; generating additive harmonic information by combining a plurality of scaled wavetables based on the pitch control information; presenting an audio output based on the filtered noise information and the additive harmonic information; as well as The audio output is reproduced via the speaker.
19. The system of claim 18, wherein to generate the filtered noise information by inverting the noise magnitude control information using an overlap and phase technique, the at least one processor is further configured by the instructions to: receiving the noise level control information based on the frame size from the machine learning model; presenting the filtered noise information in a block size not equal to the frame size; writing the filtered noise information into a circular buffer via the overlap-add technique; and The filtered noise information is read from the circular buffer at the buffer size.
20. The system of claim 18, wherein the frame is a first frame, the pitch control information includes harmonic distribution information and harmonic amplitude information, and to generate the additive harmonic information, the at least one processor is further configured by the instructions to: converting the harmonic distribution information into a first dynamic wave table via a fast Fourier transform; determining a first scaled wavetable among the plurality of scaled wavetables based on the harmonic amplitude information and the first dynamic wavetable; and The first scaled wavetable is linearly cross-faded with a second scaled wavetable of the plurality of scaled wavetables, the second scaled wavetable being associated with a second frame.
Citation Information
Cited By
Low-delay zoning pitch detection method, device and equipment based on neural network
CN119580764A
Low-latency band-based pitch detection method, device and equipment based on neural network
CN119580764B
Nondestructive pipeline risk level detection method based on audio processing
CN120089160A
