Audio processing method and apparatus, electronic device, and medium
By acquiring audio and video data and performing cross-modal fusion processing, adjusting the spectral and prosodic features of the audio, the problem of lack of contextual support in existing audio processing technologies is solved, high-quality audio generation is achieved, and the emotional depth and scene realism of the audio are enhanced.
Patent Information
- Application Number
- CN202611229970.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-27
AI Technical Summary
Existing audio processing technologies only focus on the signal characteristics within the audio modality, ignoring video information closely related to the audio. This results in generated audio works lacking contextual support, making it difficult to meet the high-quality audio processing needs of diverse scenarios such as film and television production, game sound effects, and virtual reality.
By acquiring audio data and its associated video data, audio information from the audio and visual information from the video data are extracted, cross-modal fusion processing is performed, and the spectral and prosodic features of the audio are adjusted to generate the target audio.
It significantly enhances the emotional depth and realism of audio, better meeting the high-quality audio processing needs of diverse application scenarios such as film and television production, game sound effects, and virtual reality interaction.
Smart Images

Figure CN123185402A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio processing technology, specifically to an audio processing method, apparatus, electronic device, and medium. Background Technology
[0002] With the continuous development of digital signal processing technology, multimedia content is becoming increasingly rich, and users' requirements for audio experience quality are constantly improving.
[0003] Currently, the audio processing solutions of related technologies only focus on the signal characteristics within the audio modality, completely ignoring the video information that is closely related to the audio content. This results in the generated audio works lacking contextual support, making it difficult to meet the needs of diverse scenarios such as film and television production, game sound effects, and virtual reality for high-quality audio processing. Summary of the Invention
[0004] This application provides an audio processing method, apparatus, electronic device, and medium.
[0005] In a first aspect, embodiments of this application provide an audio processing method, the method comprising: Acquire audio data and associated video data; Extract audio information from audio data and visual information related to audio data from video data; Visual and audio information are fused together to obtain fused information; Based on the fused information, the audio data is processed to generate the target audio.
[0006] In some embodiments, the visual information and audio information are fused to obtain fused information, including: Align visual and audio information on the timeline; The aligned visual information is merged with the audio information to obtain the fused information.
[0007] In some embodiments, extracting audio information from audio data and visual information related to audio data from video data includes: Denoise the audio data; Time-frequency analysis is performed on the denoised audio data to extract audio information, including spectral features and / or prosodic features. Based on the audio content in the audio data, extract the visual information from the video data. The visual information includes at least one of the following: motion features, appearance features, and scene features.
[0008] In some embodiments, processing audio data based on fusion information to generate target audio includes: Based on the fused information, adjust the spectral and / or prosodic features of the audio data; The target audio is synthesized based on the adjusted spectral and / or prosodic features.
[0009] In some embodiments, after processing the audio data based on fusion information to generate the target audio, the method further includes: Determine the distortion index and / or signal-to-noise ratio of the target audio in order to evaluate the quality of the target audio based on the distortion index and / or signal-to-noise ratio, and obtain the evaluation result of the target audio; If the evaluation results indicate that the target audio meets the preset quality conditions, the target audio is compressed based on the signal strength of the target audio to obtain the compressed target audio.
[0010] In some embodiments, after compressing the target audio based on its signal strength to obtain the compressed target audio, the method further includes: Obtain the audio conversion type and / or audio adjustment parameters for the target audio input by the user; Based on the audio conversion type and / or audio adjustment parameters, the target audio is converted and / or its parameters are adjusted in order to send the adjusted target audio to the user.
[0011] Secondly, embodiments of this application provide an audio processing apparatus, the apparatus comprising: The acquisition unit is used to acquire audio data and video data associated with the audio data; The extraction unit is used to extract audio information from audio data and visual information related to audio data from video data. The fusion unit is used to fuse visual and audio information to obtain fused information; The processing unit is used to process audio data based on fusion information to generate target audio.
[0012] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor runs the computer program, it performs the method described in any embodiment of the first aspect.
[0013] Fourthly, embodiments of this application provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the methods described in any embodiment of the first aspect.
[0014] Fifthly, embodiments of this application provide a computer program product including a computer program that, when executed by a processor, performs the method described in any embodiment of the first aspect.
[0015] This application provides an audio processing method that involves acquiring audio data and associated video data; extracting audio information from the audio data and visual information related to the audio data from the video data; fusing the visual and audio information to obtain fused information; and processing the audio data based on the fused information to generate target audio. This method expands audio processing beyond simple acoustic parameter adjustments, significantly enhancing the emotional depth and scene realism of the target audio, and better meeting the high-quality audio processing needs of diverse application scenarios such as film and television production, game sound effects, and virtual reality interaction.
[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are merely embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort, and this application can be applied to other similar scenarios based on the provided drawings.
[0018] Figure 1 A flowchart illustrating an audio processing method provided in this application embodiment; Figure 2 A flowchart illustrating the second audio processing method provided in this application embodiment; Figure 3 A schematic diagram illustrating a specific audio processing method provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of an audio processing device 400 provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0019] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. The described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0020] It should be noted that the terms "system," "device," "unit," and / or "module" used in this application are methods of distinguishing different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they can be replaced by other expressions.
[0021] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.
[0022] Currently, most related technologies are based on audio cube technology for audio processing. As a classic method, audio cube technology has long focused on single-modal analysis of the audio signal itself, primarily extracting basic acoustic parameters such as spectrum, pitch, and rhythm. However, audio cube technology is limited to single-modal analysis of the audio signal itself, completely ignoring video information closely related to the audio content.
[0023] In practical applications, video information is crucial for enriching and supplementing audio. For example, the rhythm of a person's hand movements can resonate with the rhythm of the audio, enhancing the overall sense of rhythm; facial expressions can convey emotional nuances that give audio a more delicate emotional color, such as a visual cue of a smile that makes the voice sound warmer; clothing style hints at character traits and helps to create a unique audio style, with different styles of clothing potentially corresponding to different personality traits in audio performance; the timbre base determined by the type of instrument is a key factor in creating a unique atmosphere in music composition; and the environmental atmosphere created by scene lighting and background sound effects can provide audio with a realistic sense of scene, such as recreating a realistic performance atmosphere in music composition by matching the type of instrument with the lighting scene.
[0024] However, the audio processing method based on the Audio Cube in the related technology results in audio works that are like "water without a source," lacking contextual support. In speech synthesis, it is unable to imbue speech with rich emotions using visual cues such as facial expressions; in music composition, it is difficult to recreate the realistic performance atmosphere based on the relationship between instruments and scenes. Ultimately, the generated audio works exhibit mechanical acoustic characteristics, losing the emotional depth and immersive scene feel that can be conveyed in conjunction with visual information, and failing to meet the increasingly diverse audio processing needs.
[0025] This application addresses the problem in related technologies where audio cube technology focuses solely on single-modal audio analysis, neglecting video information closely associated with audio, resulting in a lack of emotional depth and immersive scene in the generated audio works. It provides an audio processing method that introduces video data associated with audio data and extracts visual information from it, performing cross-modal fusion with the audio information. This allows audio processing to move beyond simply adjusting single acoustic parameters, leveraging motion cues, appearance cues, and scene cues from the video to comprehensively regulate the spectral and prosodic features of the audio. In speech synthesis, this enhances the emotional expressiveness of speech by utilizing visual emotional cues such as facial expressions; in music composition, it recreates the realistic performance atmosphere based on the association between instrument type and scene lighting. This effectively overcomes the technical shortcomings of neglecting visual information, resulting in mechanical acoustic features, simplistic emotional expression, and a lack of scene immersion in audio works. It significantly improves the emotional depth and scene realism of the generated audio, better meeting the high-quality audio processing needs of diverse application scenarios such as film and television production, game sound effects, and virtual reality interaction.
[0026] The following is a detailed description of an audio processing method provided in this application, with reference to the accompanying drawings.
[0027] Figure 1 A flowchart of an audio processing method provided in an embodiment of this application is shown. Figure 1 As shown, the audio processing method includes steps 101-104.
[0028] Step 101: Obtain audio data and video data associated with the audio data.
[0029] In the embodiments of this application, audio data refers to sound wave information recorded in the form of digital signals, including speech, music, ambient sound effects, etc., and is usually stored in pulse code modulation (PCM) format or other compression coding formats. Its core parameters include sampling rate, bit depth and number of channels.
[0030] Video data refers to image information recorded in the form of a frame sequence, including image frames and their temporal relationship. It usually contains spatial domain information such as color, brightness, and texture, as well as temporal domain information such as inter-frame motion.
[0031] Associating with audio data refers to the synchronization or correspondence between video data and audio data in time. Examples include audio tracks recorded simultaneously during video shooting, the timeline correspondence between images and dubbing in film and television works, or independent audio and video data that have been mapped after being time-annotated.
[0032] In this application, audio and video naturally possess temporal synchronization and semantic correlation within multimedia content. Acquiring correlated audio and video data essentially lays the data foundation for subsequent cross-modal fusion. Compared to single-modal data, correlated audio and video data can provide richer information dimensions. Audio reflects the temporal evolution of acoustic events, while video reflects visual events within the same time window. Together, they constitute a multimodal representation of the same physical scene or semantic event. By synchronously acquiring both types of data, the feasibility of temporal correspondence in subsequent processing is ensured, laying the data prerequisite for cross-modal feature alignment.
[0033] Step 102: Extract the audio information from the audio data and the visual information related to the audio data from the video data.
[0034] In the embodiments of this application, audio information refers to parametric features extracted from audio data that can characterize the acoustic properties of sound. Specifically, these include spectral features and / or prosodic features; spectral features reflect information about the frequency components of sound and their energy distribution, such as short-time spectral envelope, harmonic structure, formant positions, etc., used to characterize timbre and speech content; prosodic features reflect the suprasegmental features of sound that change over time, including fundamental frequency trajectory (corresponding to pitch perception), duration structure (corresponding to rhythm and speech rate), energy envelope (corresponding to loudness and stress), etc., used to characterize intonation, emotion, and rhythm.
[0035] Visual information refers to visual cues extracted from image frame sequences of video data that can be recognized and quantified by machines. In this application, it specifically refers to visual features that are semantically related to the audio content, including at least one of motion features, appearance features, and scene features. Motion features are the displacement, velocity, acceleration, and temporal patterns of targets in the image, such as hand movement trajectories and facial muscle movements (expression changes). Appearance features are the static attributes of targets in the image, such as the outline, texture, and color distribution of the subject, including clothing style and musical instrument shapes. Scene features are the attributes of the background environment in the image, such as light intensity and distribution, the spatial layout of background objects, and environmental sound source information inferred through visual cues.
[0036] The correlation between visual information and audio data in this application refers to the inherent semantic relationship between the extracted visual information and audio information. For example, facial expression changes are related to the emotional tendency of speech, hand movement rhythm is related to audio rhythm, instrument appearance is related to timbre expectation, and scene lighting is related to auditory atmosphere perception.
[0037] Step 103: The visual information and audio information are fused together to obtain fused information.
[0038] In the embodiments of this application, fusion processing refers to the process of integrating information from different modalities (audio information and visual information) according to certain rules or models to generate a unified comprehensive feature representation that includes multimodal semantics.
[0039] Fusion information refers to the comprehensive feature data obtained after fusion processing. In essence, it is a joint feature vector or feature tensor that integrates audio acoustic attributes and video visual attributes, containing cross-modal correlation information that a single modality does not possess.
[0040] Step 104: Based on the fusion information, process the audio data to generate the target audio.
[0041] In some embodiments, processing audio data refers to the process of adjusting, transforming, or reconstructing the acoustic parameters of the original audio data based on the cross-modal synthesis features contained in the fusion information. Specifically, this includes modifying the parameters of spectral features and prosodic features.
[0042] Target audio refers to audio data that has been processed and generated, possessing expressive characteristics different from the original audio. Target audio undergoes perceptible changes in its acoustic properties compared to the original audio, such as changes in timbre, emotional tone, and stylistic adjustments.
[0043] Specifically, the fused information includes the correspondence between visual and audio features, such as the correlation pattern between the intensity of a smile in a facial expression and the warmth in speech, or the expected correspondence between instrument type and timbre base. Based on these cross-modal correlations, the spectral features of the audio are adjusted, such as changing the timbre through spectral envelope transformation to match the appearance of the instrument or character in the visual image; prosodic features are adjusted, such as modifying the fundamental frequency trajectory and duration structure to match the intonation and rhythm to match the emotional expression (facial changes) and movement rhythm (gesture speed) in the visual image. After adjustment, the modified spectral and prosodic features are reconstructed into a time-domain waveform signal through a vocoder or neural network speech synthesis model, and the final output is the playable target audio. The expressiveness of the target audio no longer depends solely on the acoustic parameters in the audio domain, but incorporates the emotions, rhythms, and scene context encoded by the visual information, making the generated audio and video content more synergistically integrated at the perceptual level.
[0044] In summary, the audio processing method proposed in this application acquires audio data and its associated video data, extracts acoustic features from the audio domain and semantically related visual features from the video domain, and generates a cross-modal joint representation by temporal alignment and feature-level fusion of the two types of features. Based on this fused information, the spectral and prosodic parameters of the audio are comprehensively regulated and reconstructed, so that the motion rhythm, emotional tendency and scene context contained in the visual information can effectively play a role in the audio generation process. This solves the problem of insufficient audio expressiveness caused by modal isolation and realizes high-quality audio output with audiovisual collaboration.
[0045] Figure 2 This is a flowchart illustrating another data processing method provided in an embodiment of the present disclosure. Figure 2 based on Figure 1 The illustrated embodiment further defines steps 102 and 104. Figure 2 In the illustrated embodiment, step 102 includes steps 202, 203, and 204, and step 104 includes steps 206 and 207. For example... Figure 2 As shown, the method may include: Step 201: Obtain audio data and video data associated with the audio data.
[0046] Step 202: Denoise the audio data.
[0047] In some embodiments, this application can perform silent frame removal, sampling rate normalization, and denoising processing on the acquired audio data. The denoising processing employs a wavelet threshold denoising algorithm, specifically including: Wavelet decomposition: Decomposes the audio signal S of audio data into a low-frequency approximate component A and a high-frequency detail component. ,..., (where n is the number of decomposition levels), which can be expressed as: , It is important to note that noise is typically concentrated in the high-frequency components. middle.
[0048] Thresholding: for each layer of high-frequency components Set a threshold of T, retain coefficients whose absolute value is greater than T (these coefficients correspond to valid signals), and set the coefficients of the remaining values to zero. The mathematical expression is: , in, For indicator functions, specifically defined as: , In other words, when If true, the indicator function I outputs 1, in which case the original coefficients of the high-frequency components are retained; otherwise, it outputs 0, setting the corresponding coefficients to 0.
[0049] Signal reconstruction: reconstructing the processed high-frequency components ,..., And the unknown low-frequency component A is reconstructed into a denoised signal through inverse wavelet transform, i.e. .
[0050] Step 203: Perform time-frequency analysis on the denoised audio data to extract audio information, including spectral features and / or prosodic features.
[0051] In some embodiments, the spectral features of the denoised audio signal are extracted using short-time Fourier transform, and a window function is used in this process. Its definition is as follows: , Where n is the sampling point and satisfies N represents the window length. This window function plays a crucial role in determining the time-frequency resolution tradeoff. From the perspective of suppressing spectral leakage, this function achieves smooth decay to zero at the window boundaries through cosine modulation. Since signals in practical signal processing are often infinitely long, while the short-time Fourier transform can only handle finite-length signal segments, signal truncation can cause spectral leakage. The smooth boundary characteristics of this window function effectively mitigate this adverse effect. In terms of meeting the requirements of real signal analysis, its symmetry matches the conjugate symmetry requirement in real signal spectral analysis. Real signal spectra possess conjugate symmetry, and the symmetry of this window function helps maintain this characteristic, making the analysis results more closely resemble the inherent laws of real signals. In terms of improving spectral resolution and signal-to-noise ratio, the balanced characteristics of the main lobe width and side lobe attenuation of this window function make it superior to rectangular or flat-top windows in tasks such as speech enhancement and harmonic analysis. The main lobe width determines the spectral resolution; a narrower main lobe facilitates better differentiation of different frequency components. Side lobe attenuation affects the degree of spectral leakage; faster side lobe attenuation reduces the impact of spectral leakage on the analysis results, thereby improving the signal-to-noise ratio. In speech enhancement tasks, it can extract speech features more accurately and remove noise interference. In harmonic analysis, it can identify harmonic components more accurately. Through this optimization scheme, the quality of spectral feature extraction is improved on the basis of audio denoising, providing a reliable data foundation for subsequent audio analysis and processing.
[0052] In some embodiments, this application can also extract prosodic features from the denoised audio information through fundamental frequency analysis, namely the baseline values of the three prosodic parameters: pitch, rhythm, and energy (for example, pitch can be extracted using autocorrelation and rhythm speed can be obtained by detecting the energy envelope).
[0053] Specifically, prosodic features are used to characterize the suprasonic acoustic properties of audio signals in the time dimension. Their core parameters include pitch, rhythm, and energy. Pitch corresponds to the fundamental frequency (F0) in acoustics, which is the frequency of vocal cord vibration. This application uses an autocorrelation method to extract the fundamental frequency trajectory: after short-time framing of the audio signal, the autocorrelation function of each frame is calculated. The fundamental frequency period of the frame is determined based on the peak position of the autocorrelation function, and then converted into the fundamental frequency value. Based on this, smoothing processing is used to eliminate overtone and half-frequency errors, forming a continuous fundamental frequency profile for subsequent emotional tone modulation. Rhythm corresponds to the temporal structure of the audio. This application obtains rhythm information by detecting changes in the energy envelope of the audio signal. Specifically, this includes: calculating the short-time energy or root mean square (RMS) amplitude of each frame signal to form an energy envelope curve; performing peak detection on the envelope curve to locate beat points; and calculating the time interval between adjacent beat points to determine the audio's beat speed (BPM) and rhythmic pattern. Energy corresponds to the perception of loudness in audio. This application obtains the temporal variation of energy by calculating the root mean square value of short-time energy for each frame of the signal. This parameter reflects the dynamic range of sound intensity and its pattern of change over time, such as accent position and crescendo / decrescendo trends. Through fundamental frequency analysis, this application can extract prosodic parameters such as pitch trajectory, rhythmic pattern, and energy profile from the denoised audio, and use the baseline values of these parameters as a reference for feature adjustment in subsequent audio processing.
[0054] In some embodiments, after extracting prosodic features and / or spectral features, this application may further encode the extracted features into an input format suitable for convolutional neural networks, recurrent neural networks, or hybrid models of convolutional neural networks and recurrent neural networks.
[0055] Step 204: Extract visual information from the video data based on the audio content in the audio data. The visual information includes at least one of motion features, appearance features, and scene features.
[0056] In some embodiments, motion features include hand movement trajectory features and / or facial expression change features; appearance features include clothing features of video objects and / or type of musical instruments used; scene features include scene lighting features and / or background sound effects features.
[0057] Specifically, extracting motion features from video data includes: detecting and tracking key hand points in a video frame sequence, calculating the displacement vector, velocity, and acceleration of the hand in consecutive frames to form a time series of hand motion trajectories, used to characterize the rhythmic pattern and intensity changes of hand gestures, which has a temporal correspondence with the rhythm of the audio; and locating and tracking facial feature points (such as feature points in the mouth, eyes, and eyebrows) in a video frame sequence, detecting the positional offset and deformation degree of feature points in consecutive frames to form a time series of facial expression changes, used to characterize visual cues of emotional tendencies (such as a smile corresponding to a pleasant emotion, and a furrowed brow corresponding to a tense emotion), which has a semantic correlation with the emotional expression in the audio.
[0058] Extracting appearance features from video data specifically includes: performing image segmentation and classification on target areas in video frames to extract visual attributes such as color distribution, texture structure, and style outline of the subject's clothing, forming a vectorized representation of clothing style, which can reflect the subject's role positioning or style tendency; and / or, detecting and recognizing musical instrument targets in video frames to extract visual attributes such as the instrument's size, structural category (e.g., string instruments, wind instruments, percussion instruments, etc.), and brand logo, forming a category label for the instrument type, which has a cross-modal correspondence with the timbre base of the audio (e.g., guitar corresponds to a bright and crisp timbre expectation, cello corresponds to a warm and mellow timbre expectation).
[0059] Extracting scene features from video data specifically includes: analyzing global and local illumination in video frames to extract parameters such as intensity, direction, and color temperature of the illumination, forming a visual quantitative representation of scene lighting; different lighting conditions have a psychological mapping relationship with the immersive feeling of the auditory atmosphere (e.g., dim light corresponds to a tranquil atmosphere, and bright light corresponds to a lively atmosphere); and / or, through semantic understanding of the background area in the video frame and audio environmental sound analysis, extracting the category information of the background environment (e.g., indoor, outdoor, concert venue, natural countryside, etc.), and using this background environment category to associate the spatial perception features of environmental sound effects in the audio.
[0060] In this application, motion features, appearance features, and scene features are synchronized with audio information on the timeline, so that each visual feature has a clear temporal location, which facilitates subsequent frame-by-frame or segmented fusion processing with audio features, providing comprehensive visual context support for audio processing.
[0061] Step 205: The visual information and audio information are fused to obtain fused information.
[0062] In some embodiments, after extracting audio and visual information, cross-modal fusion processing is required. The specific process is as follows: First, the extracted visual and audio information are aligned on the timeline. This involves determining the correspondence between audio feature vectors and visual feature vectors at the same physical moment based on the timestamps or frame indexes carried by the audio and video data, ensuring that each pair of aligned features originates from the same time segment, thus establishing an accurate temporal matching basis for cross-modal association. Subsequently, the aligned visual and audio information are merged to generate fused information.
[0063] In this application, the merging method can employ feature concatenation technology, which involves linking audio and visual feature vectors end-to-end to form a higher-dimensional joint feature vector that simultaneously contains acoustic and visual attributes. Alternatively, a weighted fusion technique can be used, where audio and visual features are assigned weight coefficients and then combined linearly or non-linearly. These weight coefficients can be adaptively adjusted or preset based on the importance of the audio and visual modalities in different application scenarios. The fused information generated after the above merging maintains the discriminative information of each modality in the feature space while establishing a cross-modal association structure between visual and audio. Compared to the limitations of performing single-modal analysis only on audio features, this application, by introducing visual information related to the audio content and performing precise alignment and fusion on the timeline, enables subsequent audio processing to utilize both acoustic cues and visual context, providing a rich information foundation for generating more expressive, emotionally profound, and immersive target audio.
[0064] Step 206: Based on the fusion information, adjust the spectral characteristics and / or prosodic characteristics of the audio data.
[0065] Step 207: Based on the adjusted spectral features and / or prosodic features, synthesize the target audio.
[0066] In some embodiments, after obtaining the fusion information, the spectral features and / or prosodic features extracted from the audio data are adjusted based on the fusion information to generate an audio work with the target expressiveness.
[0067] Specifically, in terms of spectral feature adjustment, parameters such as the spectral envelope and formant structure of audio are transformed based on visual semantic cues carried in the fused information (such as the expected timbre corresponding to the type of musical instrument and the voice image corresponding to the appearance of a character), thereby realizing the simulation and conversion of sound or accent. For example, the spectral features of male speech are adjusted to the spectral features of female speech, or the spectral features of one accent (such as a local dialect) are converted to the spectral features of another accent (such as standard Mandarin). Visual semantic cues provide cross-modal basis for spectral adjustment, so that the converted timbre matches the object attributes in the visual scene.
[0068] In terms of rhythmic feature adjustment, the fundamental frequency trajectory (corresponding to pitch perception) and temporal structure (corresponding to rhythm perception) are adjusted based on the visual dynamic cues and emotional cues carried in the fused information (such as the beat information corresponding to hand movement rhythm and the emotional tendency corresponding to facial expression changes). This gives the audio different emotional colors or musical styles. For example, when the visual information indicates a high-energy movement rhythm and a positive expression, the fundamental frequency level is increased and the beat interval is shortened to speed up the rhythm and generate a cheerful audio style. When the visual information indicates a low-energy static state and a relaxed expression, the fundamental frequency level is decreased and the beat interval is lengthened to slow down the rhythm and generate a tranquil audio style. When there are regular periodic changes in the movement rhythm in the visual information, the adjustment of rhythmic features is synchronized with the visual movement cycle to enhance the audiovisual coordination effect.
[0069] After the above-mentioned spectral and prosodic features are adjusted, this application uses speech synthesis technology, such as parameter-based vocoder synthesis or neural network-based end-to-end speech synthesis model, to reconstruct the adjusted spectral and prosodic features into time-domain waveform signals, and finally synthesizes an audio work with the target expressiveness. The audio maintains semantic consistency and temporal synergy with the visual information in the video content in terms of timbre, emotion and rhythm.
[0070] In some embodiments, after obtaining the target audio, this application can perform a quality assessment on the generated audio through objective and subjective evaluation, so as to determine whether to output the target audio based on the quality assessment results.
[0071] The subjective evaluation involves organizing listeners to conduct blind listening tests on the target audio. The listeners subjectively score the audio based on preset evaluation dimensions (such as naturalness of sound quality, emotional expressiveness, audiovisual coordination, etc.) and calculate statistical values (such as average score or median) based on the scores of all listeners as the subjective quality score.
[0072] Objective evaluation measures the quality level of audio signals by calculating quantifiable parameters such as the distortion level of the target audio and / or signal-to-noise ratio. For example, total harmonic distortion measures the degree of nonlinear distortion within the signal, and signal-to-noise ratio measures the energy ratio of the signal to the background noise.
[0073] This application can combine objective quantitative indicators and subjective perceptual scores to form a comprehensive evaluation of the target audio quality. When both the objective and subjective evaluation results reach their corresponding preset thresholds, the target audio is determined to meet the preset quality conditions, and the target audio is output. Otherwise, a feedback optimization process is triggered to further adjust the target audio, thereby ensuring that the output audio meets the quality requirements of the application scenario in both signal fidelity and auditory perception experience.
[0074] Specifically, for the objective evaluation stage of audio feature extraction, this application can use both distortion index and signal-to-noise ratio to quantify audio quality.
[0075] Regarding the distortion index, this application can first calculate the harmonic component power integral of the target audio and... This application involves performing spectral analysis on the target audio to extract the power of the 2nd to Kth order harmonic components. Then, the integral sum of the harmonic component power is calculated using the following formula: , in, Let K be the power of the kth harmonic component (k=2, 3, ..., K), where K is the maximum order of harmonic analysis. Typically, K=10, covering the sensitive range of the human ear.
[0076] Subsequently, this application can also calculate the power of the fundamental frequency component. That is, extracting the fundamental frequency component power of the target speech signal. , Define fundamental frequency power: = ,in, The power of the fundamental frequency component reflects the core energy of the speech signal and is used as a reference for quantifying harmonic distortion.
[0077] Finally, based on the harmonic power integral and With fundamental frequency power The ratio of these values is used to calculate the harmonic distortion index, i.e., the distortion level index D: .
[0078] Based on the numerical range of the distortion index D, this application classifies speech quality levels as follows: When D≤10%, there is no obvious harmonic distortion and the voice quality is excellent; When 10% < D ≤ 30%, there is slight harmonic distortion, but the voice quality is acceptable. When D > 30%, harmonic distortion is significant and speech quality deteriorates. In other words, the larger the D value, the higher the proportion of harmonic components relative to the fundamental frequency, and the more severe the speech distortion.
[0079] The signal-to-noise ratio (SNR) is a measure of the energy ratio of a signal to noise, and its formula is: ,in, To characterize the effective audio power of speech segment energy, To reflect the background noise power of environmental noise energy, for example: when yes At 1000 times the normal frequency, the SNR is 30dB, indicating excellent sound quality.
[0080] Understandably, this application first determines the distortion level index of the target audio, and then determines the signal-to-noise ratio of the target audio if the distortion level index is less than or equal to a preset threshold. If the signal-to-noise ratio is greater than or equal to the preset threshold, the target audio is determined to meet the preset quality conditions.
[0081] In other words, this application first determines the degree of internal signal distortion through total harmonic distortion (THD), and then assesses the impact of noise through signal-to-noise ratio (SNR). This forms a complementary evaluation system of "internal purity + external interference," avoiding the blind spots of a single indicator and achieving precise location of the root cause of the problem. THD focuses on the harmonic distortion of the signal itself, quantifying the loss of "naturalness" and "purity" of speech caused by device nonlinearity or coding compression. SNR measures the energy ratio of the signal to the background noise, reflecting the masking effect of environmental or circuit noise on speech. If only THD is used, the problem of decreased speech intelligibility in low-distortion but high-noise scenarios may be ignored. If only SNR is used, the sound quality degradation caused by severe harmonic distortion in high SNR scenarios may be masked. Through layered evaluation, it can first ensure that there is no significant distortion inside the signal, and then verify that the noise interference is controllable. This provides a scientific basis for "addressing the root cause before addressing the symptoms" for audio quality optimization, significantly improving the comprehensiveness and reliability of the evaluation results.
[0082] If the target audio meets the preset quality conditions, this application can further compress the target audio based on the signal strength of the target audio to obtain the compressed target audio.
[0083] Specifically, to improve the audio listening experience, dynamic range compression is used to adjust the relationship between the input signal x(n) and the output signal y(n), as follows: , in, The intensity value of the input signal (the input signal refers to the target audio) at discrete time point n; T is the intensity value of the output signal (the output signal refers to the target audio after dynamic range compression) at discrete time point n; T is the compression threshold, used to define the intensity boundary of whether the signal needs to be compressed, for example, T = 20dBFS means that compression is triggered when the input signal exceeds -20dB; R is the compression ratio, which controls the degree of signal attenuation beyond the threshold (0 < R ≤ 1, no compression effect when R = 1).
[0084] When using dynamic range compression to improve the listening experience, the output signal According to the input signal Dynamic adjustment of intensity: When the input signal strength is lower than the compression threshold T, the output signal remains consistent with the input signal, i.e. = ; When the input signal strength reaches or exceeds the compression threshold T, the output signal strength is the threshold T plus the portion of the input signal exceeding the threshold. The product of the compression ratio R, i.e. = For example, when R=0.5, the output signal only increases by 0.5dB for every 1dB the input signal exceeds the threshold, and the dynamic range compression effect is strong. When R=1, the output signal remains linear with the input signal, and the dynamic range compression function is turned off.
[0085] This application achieves improved listening experience by suppressing excessively high peak values and enhancing subtle details without altering the timbre and melody, thus generating a final deliverable version that is truly available for users to listen to.
[0086] After obtaining the compressed target audio, this application further includes: acquiring the audio conversion type and / or audio adjustment parameters input by the user for the target audio; and performing type conversion and / or parameter adjustment on the target audio according to the audio conversion type and / or audio adjustment parameters, so as to send the adjusted target audio to the user. In other words, this application provides a user interface that allows users to select the conversion type, adjust parameters, and preview the audio conversion effect in real time, and finally save or share the audio file. This interactive method enables users to participate more intuitively in the audio processing process, personalize their creations according to their needs and preferences, and improves user participation and satisfaction.
[0087] In summary, this application acquires audio data and associated video data, performs denoising on the audio data, and extracts spectral and prosodic features. Simultaneously, it extracts motion, appearance, and scene features from the video data. Visual and audio information are aligned on the timeline, and feature splicing or weighted fusion is used to generate comprehensive features. Based on these comprehensive features, the spectral and prosodic features of the audio data are adjusted, and target audio is generated using speech synthesis technology. Subsequently, the target audio undergoes quality detection through objective evaluation using a dual-index system of distortion and signal-to-noise ratio, as well as subjective evaluation through blind listening tests. When the evaluation results meet preset conditions, dynamic range compression is used for optimization. Finally, an interactive interface allows users to convert the target audio type and adjust parameters. This application effectively overcomes the shortcomings of audio works that suffer from mechanical acoustic features, simplistic emotional expression, and lack of scene immersion caused by ignoring video information associated with audio and only adjusting a single acoustic parameter. By using visual cues such as facial expressions, hand gestures, instrument types, and scene lighting, it comprehensively regulates the spectral envelope and prosodic parameters of the audio across modalities. This ensures that the generated audio maintains semantic consistency and temporal synergy with the visual information in the video content in terms of timbre, emotion, and rhythm, significantly improving the emotional expressiveness and scene realism of the audio. It can better meet the needs of diverse application scenarios such as film and television production, game sound effects, and virtual reality interaction for high-quality immersive audio processing.
[0088] Furthermore, for ease of understanding, such as Figure 3 The diagram shown is a schematic representation of a specific audio processing method provided in this application.
[0089] Reference Figure 3The audio processing method specifically includes the following steps: First, S1 preprocessing and feature analysis is performed, which involves preprocessing the acquired audio data such as denoising and time-frequency analysis to extract the spectral and prosodic features of the audio data; simultaneously or sequentially, S2 cross-modal alignment and fusion is performed, which involves extracting visual information from the video data associated with the audio data and aligning and fusing the visual and audio information on the time axis to generate comprehensive features (i.e., fused information); then, S3 feature adjustment and generation is performed, which involves adjusting the spectral and / or prosodic features of the audio data based on the fused comprehensive features and generating the target audio using speech synthesis technology; then, S4 quality assessment and optimization is performed, which involves quality detection of the generated target audio through a combination of objective and subjective assessments, and optimization processing such as dynamic range compression is performed on the target audio based on the assessment results; finally, S5 interaction and output is performed, which allows users to select conversion types and adjust parameters through an interactive interface, preview the audio conversion effect in real time, and finally output the data for users to save or share. If the evaluation result of the S4 quality assessment and optimization step indicates that the target audio does not meet the preset quality conditions, it will be fed back to the S3 feature control and generation step for readjustment and synthesis to form a closed-loop optimization and ensure that the output audio meets the quality requirements.
[0090] This application constructs a complete closed loop from data preprocessing to cross-modal fusion and personalized output through the collaborative design of S1-S5. In S1, wavelet threshold denoising and short-time Fourier transform window function optimization significantly improve the basic audio quality and suppress spectral leakage, providing high-precision data support for subsequent processing. In S2, video features such as hand trajectories, facial expressions, clothing, and musical instruments related to the audio content are extracted, and cross-modal time axis alignment and fusion are achieved through feature splicing technology, breaking through the limitations of traditional single-modal analysis. In S3, sound simulation conversion and dynamic adjustment of prosodic parameters are realized based on comprehensive features, giving the audio richer emotional expressiveness and scene adaptability. In S4, a dual-index evaluation system of harmonic distortion and signal-to-noise ratio is constructed and combined with dynamic range compression technology to form a complementary quality optimization scheme of "internal purity + external interference" to accurately locate the root cause of the problem. In S5, the interactive interface allows users to adjust parameters and preview the effect in real time. The final audio work can deeply integrate visual information, effectively restore the atmosphere of the real scene, and completely solve the problems of prominent mechanical acoustic features and single emotional expression in traditional solutions, meeting diverse audio processing needs.
[0091] It is understandable that the specific implementation process of each step in S1-S5 can be referred to Figures 1 to 2 The specific implementation examples are not described in detail here.
[0092] In order to implement the above embodiments, this application also provides an audio processing device. Figure 4This is a schematic diagram of the structure of an audio processing device 400 provided in an embodiment of this application. Figure 4 As shown, the device includes: Acquisition unit 410 is used to acquire audio data and video data associated with the audio data; Extraction unit 420 is used to extract audio information from audio data and visual information related to audio data from video data; The fusion unit 430 is used to fuse visual information and audio information to obtain fused information; The processing unit 440 is used to process audio data based on fusion information to generate target audio.
[0093] In some embodiments, the fusion unit 430 is configured to: Align visual and audio information on the timeline; The aligned visual information is merged with the audio information to obtain the fused information.
[0094] In some embodiments, the extraction unit 420 is configured to: Denoise the audio data; Time-frequency analysis is performed on the denoised audio data to extract audio information, including spectral features and / or prosodic features. Based on the audio content in the audio data, extract the visual information from the video data. The visual information includes at least one of the following: motion features, appearance features, and scene features.
[0095] In some embodiments, the processing unit 440 is configured to: Based on the fused information, adjust the spectral and / or prosodic features of the audio data; The target audio is synthesized based on the adjusted spectral and / or prosodic features.
[0096] In some embodiments, the processing unit 440 is configured to: After processing the audio data based on the fused information to generate the target audio, the distortion index and / or signal-to-noise ratio of the target audio are determined, so as to evaluate the quality of the target audio based on the distortion index and / or signal-to-noise ratio and obtain the evaluation result of the target audio. If the evaluation results indicate that the target audio meets the preset quality conditions, the target audio is compressed based on the signal strength of the target audio to obtain the compressed target audio.
[0097] In some embodiments, the processing unit 440 is configured to: Based on the signal strength of the target audio, the target audio is compressed to obtain the compressed target audio. Then, the audio conversion type and / or audio adjustment parameters input by the user for the target audio are obtained. Based on the audio conversion type and / or audio adjustment parameters, the target audio is converted and / or its parameters are adjusted in order to send the adjusted target audio to the user.
[0098] The methods and apparatus provided in the embodiments of this application have been described above. To implement the functions of the methods provided in the embodiments of this application, the electronic device may include a hardware structure and software modules, and may implement the above functions in the form of a hardware structure, software modules, or a hardware structure plus software modules. One of the above functions may be executed in the form of a hardware structure, software modules, or a hardware structure plus software modules.
[0099] Figure 5 This is a block diagram illustrating an electronic device 500 for implementing the above-described audio processing method according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, computer, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0100] Reference Figure 5 The electronic device 500 may include a communication interface 501, capable of interacting with other devices; a processor 502, connected to the communication interface 501 to enable interaction with other devices, used to execute the methods provided by one or more of the above-described technical solutions when running a computer program; and a memory 503, on which the computer program is stored. Specifically, the specific processing procedure of the processor 502 can refer to the audio processing method described in the above embodiments of this disclosure.
[0101] Of course, in practical applications, the various components in electronic device 500 are coupled together through bus system 504. It can be understood that bus system 504 is used to realize the connection and communication between these components. In addition to a data bus, bus system 504 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in... Figure 5 The general designated all buses as Bus System 504.
[0102] The memory 503 in this embodiment is used to store various types of data to support the operation of the electronic device 500. Examples of such data include any computer program used to operate on the electronic device 500.
[0103] The methods disclosed in the embodiments of this application can be applied to processor 502, or implemented by processor 502. Processor 502 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 502 or by instructions in the form of software. The processor 502 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 502 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 503. Processor 502 reads the information in memory 503 and combines its hardware to complete the steps of the aforementioned method.
[0104] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0105] Embodiments of this disclosure also propose a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the audio processing methods described in the above embodiments of this disclosure.
[0106] Embodiments of this disclosure also provide a computer program product, including a computer program that is executed by a processor using the audio processing methods described in the above embodiments of this disclosure.
[0107] Embodiments of this disclosure also propose a chip including one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory, which, when executed by the processor, cause the electronic device to perform the audio processing method described in the above embodiments of this disclosure.
[0108] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0109] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0110] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0111] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (control method), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0112] It should be understood that various parts of the embodiments of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0113] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0114] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc.
[0115] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. An audio processing method, characterized in that, include: Acquire audio data and video data associated with the audio data; Extract the audio information from the audio data and the visual information related to the audio data from the video data; The visual information and the audio information are fused together to obtain fused information; Based on the fusion information, the audio data is processed to generate the target audio.
2. The method according to claim 1, characterized in that, The process of fusing the visual information with the audio information to obtain fused information includes: Align the visual information with the audio information on the timeline; The aligned visual information is combined with the audio information to obtain the fused information.
3. The method according to claim 1, characterized in that, The extraction of audio information from the audio data and visual information related to the audio data from the video data includes: The audio data is then denoised. Time-frequency analysis is performed on the denoised audio data to extract audio information, which includes spectral features and / or prosodic features. Based on the audio content in the audio data, visual information of the video data is extracted, and the visual information includes at least one of motion features, appearance features, and scene features.
4. The method according to claim 3, characterized in that, The step of processing the audio data based on the fusion information to generate the target audio includes: Based on the fusion information, adjust the spectral characteristics and / or prosodic characteristics of the audio data; The target audio is synthesized based on the adjusted spectral features and / or prosodic features.
5. The method according to claim 1, characterized in that, After processing the audio data based on the fusion information to generate the target audio, the method further includes: Determine the distortion level index and / or signal-to-noise ratio of the target audio, and perform a quality assessment of the target audio based on the distortion level index and / or signal-to-noise ratio to obtain the assessment result of the target audio; If the evaluation result indicates that the target audio meets the preset quality conditions, the target audio is compressed based on the signal strength of the target audio to obtain the compressed target audio.
6. The method according to claim 5. Characterized by, After compressing the target audio based on its signal strength to obtain the compressed target audio, the method further includes: Obtain the audio conversion type and / or audio adjustment parameters input by the user for the target audio; Based on the audio conversion type and / or the audio adjustment parameters, the target audio is converted and / or its parameters are adjusted to send the adjusted target audio to the user.
7. An audio processing device, characterized in that, The device includes: The acquisition unit is used to acquire audio data and video data associated with the audio data; An extraction unit is used to extract audio information from the audio data and visual information related to the audio data from the video data. The fusion unit is used to fuse the visual information and the audio information to obtain fused information; The processing unit is used to process the audio data based on the fusion information to generate the target audio.
8. An electronic device, characterized in that, include: The processor and the memory used to store computer programs that can run on the processor. When the processor is used to run the computer program, it performs the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, performs the method according to any one of claims 1 to 6.
