An audio processing method, apparatus, electronic device, and storage medium
By using sound effect configuration and device feature matching rendering processing, the playback effect of spatial audio technology on different devices has been improved, solving device dependency and compatibility issues and achieving high-quality audio output.
Patent Information
- Application Number
- CN202510740920.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2026-12-04
AI Technical Summary
Existing spatial audio technologies suffer from strong hardware dependence and poor spatial audio quality, which limits their application.
The audio information is configured with spatial sound effects using sound effect configuration information, and rendering is performed according to the characteristics of different audio output devices. An appropriate rendering mode is selected to optimize the audio output.
It maintains high-quality audio playback across different devices, enhances the layering and spatial sense of the output audio, and solves the problems of strong device dependence, poor compatibility, and insufficient spatial sense.
Smart Images

Figure CN123227135A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an audio processing method, apparatus, electronic device, storage medium, and computer program product. Background Technology
[0002] Spatial audio is a technology that simulates a three-dimensional sound field environment through digital signal processing. Its core goal is to allow listeners to perceive the location, distance, movement trajectory, and spatial reflection characteristics of sound, thereby creating an immersive listening experience that surpasses traditional stereo.
[0003] Currently, spatial audio technology still faces multiple challenges, including strong dependence on hardware devices and poor spatial audio quality, which limit its application. Summary of the Invention
[0004] This application aims to provide an audio processing method, apparatus, electronic device, storage medium, and computer program product.
[0005] The technical solution of this application is implemented as follows:
[0006] Firstly, an audio processing method is provided, applied to a first terminal, including:
[0007] Receive the encoded data of the first audio audio;
[0008] Decode the encoded data of the first audio to determine the first audio information of at least one sound source in the first audio;
[0009] Get the first sound effect configuration information for the first audio;
[0010] Based on the first sound effect configuration information, spatial sound effect configuration is performed on the first audio information of at least one sound source to obtain the second audio information of at least one sound source.
[0011] The first rendering mode is determined based on the characteristic parameters of the audio output device.
[0012] The rendering process is performed based on the first rendering mode and the second audio information from at least one sound source to obtain the target audio information adapted to the audio output device and output it.
[0013] Secondly, an audio processing method is provided, applied to a second terminal, including:
[0014] Acquire raw audio;
[0015] The original audio is preprocessed to obtain the first audio.
[0016] Obtain the second sound effect configuration information for the first audio;
[0017] The configuration information of the first audio and the second sound effect is encoded to obtain the encoded data of the first audio.
[0018] The encoded data of the first audio is sent to the server, so that the server distributes the encoded data of the first audio to one or more first terminals for output.
[0019] Thirdly, an audio processing method is provided for use on a server, including:
[0020] Receive the encoded data of the first audio signal sent by the second terminal;
[0021] Decode the encoded data of the first audio to obtain the decoded data of the first audio and the second sound effect configuration information of the first audio;
[0022] The decoded data of the first audio is subjected to source separation to obtain the first audio information of at least one source in the first audio.
[0023] Encode the first audio information and the second sound effect configuration information of at least one sound source in the first audio to obtain the updated encoded data of the first audio.
[0024] Distribute the updated encoded data of the first audio to one or more first terminal outputs.
[0025] Fourthly, an audio processing device is provided, applied to a first terminal, comprising:
[0026] The first communication unit is used to receive the encoded data of the first audio.
[0027] The first encoding / decoding unit is used to decode the encoded data of the first audio and determine the first audio information of at least one sound source in the first audio.
[0028] The first acquisition unit is used to acquire the first sound effect configuration information of the first audio;
[0029] The first processing unit is configured to perform spatial sound effect configuration on the first audio information of at least one sound source based on the first sound effect configuration information to obtain the second audio information of at least one sound source.
[0030] The first processing unit is also used to determine a first rendering mode based on the characteristic parameters of the audio output device;
[0031] The first processing unit is also used to perform rendering processing based on the first rendering mode and the second audio information of at least one sound source, to obtain target audio information adapted to the audio output device and output it.
[0032] Fifthly, an audio processing device is provided for use in a second terminal, comprising:
[0033] The audio acquisition unit is used to acquire raw audio.
[0034] The second processing unit is used to preprocess the original audio to obtain the first audio.
[0035] The second acquisition unit is used to acquire the second sound effect configuration information of the first audio;
[0036] The second encoding / decoding unit is used to encode the first audio and second sound effect configuration information to obtain the encoded data of the first audio.
[0037] The second communication unit is used to send the encoded data of the first audio to the server, so that the server distributes the encoded data of the first audio to one or more first terminals for output.
[0038] Sixthly, an audio processing apparatus is provided for use in a server, comprising:
[0039] The third communication unit is used to receive the encoded data of the first audio sent by the second terminal;
[0040] The third encoding / decoding unit is used to decode the encoded data of the first audio to obtain the decoded data of the first audio and the second sound effect configuration information of the first audio.
[0041] The third processing unit is used to perform source separation on the decoded data of the first audio to obtain first audio information of at least one source in the first audio.
[0042] The third encoding / decoding unit is used to encode the first audio information and the second sound effect configuration information of at least one sound source in the first audio to obtain the updated encoded data of the first audio.
[0043] The third communication unit is also used to distribute the updated encoded data of the first audio to one or more first terminal outputs.
[0044] A seventh aspect provides an electronic device, comprising: a processor and a memory configured to store a computer program capable of running on the processor.
[0045] When the processor is configured to run a computer program, it executes the steps of the methods described in the first, second, or third aspects.
[0046] Eighthly, a computer-readable storage medium is provided having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
[0047] Ninthly, a computer program product includes a computer program that, when executed by a processor, implements the steps of the aforementioned method.
[0048] This application provides an audio processing method, apparatus, electronic device, and storage medium. It configures spatial sound effects for the first audio information of each sound source using sound effect configuration information, and then performs output rendering based on the characteristics of different audio output devices (such as headphones, speakers, VR / AR devices, etc.). On the one hand, it can provide adapted spatial sound effects for different audio scenarios, enhancing the layering and spatial sense of the output audio; on the other hand, it selects an adapted rendering mode based on the characteristics of different audio output devices, ensuring high-quality playback on different devices, optimizing audio output, and solving the problems of strong device dependence, poor compatibility, and insufficient spatial sense in related technologies. Attached Figure Description
[0049] Figure 1 This is a schematic diagram of the composition framework of an audio processing system according to an embodiment of this application;
[0050] Figure 2 This is a schematic diagram of the first optional flow of the audio processing method provided in the embodiments of this application;
[0051] Figure 3 This is a schematic diagram of the first optional interactive interface for sound effect settings provided in the embodiments of this application;
[0052] Figure 4 This is a schematic diagram of a second optional interactive interface for sound effect settings provided in an embodiment of this application;
[0053] Figure 5 This is a schematic diagram of a second optional audio processing method provided in the embodiments of this application;
[0054] Figure 6 This is a schematic diagram of a third optional audio processing method provided in the embodiments of this application;
[0055] Figure 7 This is a schematic diagram of the fourth optional audio processing method provided in the embodiments of this application;
[0056] Figure 8 This is a schematic diagram of the fifth optional audio processing method provided in the embodiments of this application;
[0057] Figure 9 This is a schematic diagram of the first optional composition structure of the audio processing device in the embodiments of this application;
[0058] Figure 10 This is a schematic diagram of a second optional component structure of the audio processing device in the embodiments of this application;
[0059] Figure 11 This is a schematic diagram of a third optional component structure of the audio processing device in the embodiments of this application;
[0060] Figure 12 This is a schematic diagram of an optional component structure of an electronic device in an embodiment of this application. Detailed Implementation
[0061] In order to gain a more detailed understanding of the features and technical content of the embodiments of this application, the implementation of the embodiments of this application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit the embodiments of this application.
[0062] Before providing a further detailed description of the embodiments of this application, the nouns and terms used in the embodiments of this application are explained, and the nouns and terms used in the embodiments of this application shall be interpreted as follows:
[0063] Figure 1 This is a schematic diagram of the composition framework of an audio processing system according to an embodiment of this application, as shown below. Figure 1 As shown, the audio processing system 100 includes: a first terminal 101, a server 102, and a second terminal 103. The server 102 establishes communication connections with the first terminal 101 and the second terminal 103 respectively to exchange information.
[0064] The second terminal 103 is an audio and video content production terminal, which undertakes the function of audio and video content production and supports real-time live stream push or recorded file upload.
[0065] Server 102 is used to receive audio encoded data from the second terminal 103 and distribute the received audio encoded data to one or more playback clients through a Content Delivery Network (CDN), or to perform certain processing on the audio encoded data before distributing it to one or more playback terminals.
[0066] The first terminal 101 is an audio and video content playback terminal, which supports receiving and playing live streams as well as playing on-demand content.
[0067] It should be noted that the first terminal and the second terminal described in the embodiments of this application may include devices such as mobile phones, tablet computers, laptops, PDAs, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, headphones, cameras, etc. The first terminal and the second terminal may be the same type of terminal, such as both being general-purpose mobile terminals. Alternatively, the first terminal and the second terminal may be different types of terminals, such as the second terminal being a professional live streaming or recording terminal, while the first terminal is a general-purpose mobile terminal.
[0068] It should also be noted that the second terminal can also be used as an audio and video content playback terminal to output audio and video content.
[0069] It should also be noted that the embodiments of this application can be applied to various real-time distribution scenarios, such as game live streaming, music performances, sports event live streaming, educational live streaming, virtual reality (VR) live streaming, and augmented reality (AR) live streaming. , Augmented Reality (AR) live streaming, e-commerce live streaming, Autonomous Sensory Meridian Response (ASMR) live streaming, etc. The proposed embodiments can also be applied to non-real-time distribution scenarios, such as pre-recorded broadcasts and live stream replays.
[0070] Among related technologies, spatial audio technology still faces multiple challenges, including strong dependence on hardware devices and poor spatial audio effects, which limit the application of spatial audio technology.
[0071] Based on this, embodiments of this application provide an audio processing method, apparatus, electronic device, storage medium, and computer program product. These methods configure spatial sound effects for the first audio information of each sound source using sound effect configuration information, and then perform output rendering based on the characteristics of different audio output devices (such as headphones, speakers, VR / AR devices, etc.). On the one hand, this provides adaptive spatial sound effects for different audio scenarios, enhancing the layering and spatial sense of the output audio; on the other hand, it selects an adaptive rendering mode based on the characteristics of different audio output devices, ensuring high-quality playback on different devices, optimizing audio output, and solving the problems of strong device dependence, poor compatibility, and insufficient spatial sense in related technologies.
[0072] Figure 2 This is a schematic diagram of a first optional flow of the audio processing method provided in the embodiments of this application, such as... Figure 2 As shown, the method may specifically include:
[0073] Step 201: Receive the encoded data of the first audio;
[0074] Encoded data refers to digital audio data processed by data compression algorithms. It contains the main spectral information of the original audio and is organized through a specific encoding format for easy storage and transmission. Common encoding formats include lossless encoding (such as FLAC) and lossy encoding (such as MP3, AAC, Opus, etc.). Lossless encoding preserves complete audio details, while lossy encoding achieves higher compression rates by discarding some insignificant audio information.
[0075] For example, low-latency, highly compatible encoding formats such as Opus, Ambisonic, and Advanced Audio Codec (AAC) can be used in live streaming scenarios to meet the needs of real-time playback.
[0076] In some embodiments, the first terminal can receive audio encoded data from a server or other terminals via Web Real-Time Communication (WebRTC), Real-Time Streaming Protocol (RTSP), Reliable Internet Stream Transport (RIST), or Low-Latency HTTP Live Streaming (LL-HLS). These transport protocols not only support efficient data transmission but also provide good fault tolerance and stability in multi-network environments, ensuring the continuity and integrity of the audio data stream.
[0077] Step 202: Decode the encoded data of the first audio to determine the first audio information of at least one sound source in the first audio;
[0078] Decoding refers to the process of restoring encoded audio data to its original form. In this process, the decoder parses audio frames according to the encoding format and determines the audio information of one or more sound sources based on the decoded data. A sound source is an independent sound source in the audio; it can be human voice, musical instruments, environmental noise, etc. In complex audio scenarios, multiple sound sources may exist simultaneously, each with different sound characteristics. Obtaining the audio information of each sound source facilitates subsequent sound effect configuration.
[0079] For example, in game live streaming, footsteps, weapon sounds, and environmental sound effects need to be extracted separately to achieve more accurate spatial positioning.
[0080] In some embodiments, decoding the encoded data of the first audio to determine the first audio information of at least one sound source in the first audio may include: decoding the encoded data of the first audio to obtain the first audio information of at least one sound source in the first audio, wherein the first audio information of at least one sound source is obtained by the server performing sound source separation on the first audio.
[0081] Sound source separation refers to the process of separating mixed audio (such as audio containing human voices, background music, and ambient sounds) using sound source separation technology to extract the first audio information of each independent sound source. This is beneficial for subsequent spatial sound effect adjustments and spatial audio rendering. For example, the first audio information includes at least the temporal and spatial characteristics of each sound source obtained after sound source separation. Spatial characteristics include, but are not limited to, spatial positioning information and / or environmental attributes. This information can be used to construct a three-dimensional sound field model in virtual space, enabling users to perceive the source location and dynamic changes of different sounds.
[0082] Spatial positioning information includes, but is not limited to, the direction, distance, and movement trajectory of the sound source. The direction can be defined by the azimuth and elevation angles of the sound source relative to the listener. The distance is the straight-line distance between the sound source and the listener, which affects the volume attenuation and reverberation intensity.
[0083] Environmental attributes are used to characterize the interaction between a sound source and its environment. These attributes include reverberation, reflection, spatial attenuation, material (such as wood / glass), room size, and sound field width (which refers to the horizontal diffusion range of sound, such as the spaciousness of a concert hall; for example, even with the same room size, the listening experience of a concert hall and a regular conference room can be significantly different). Environmental attributes are mainly reflected in the reverberation. Users can adjust the reverberation level using a slider. For example, a small room has low reverberation, with obvious direct sound and reflections, resulting in a clear and crisp sound. Larger rooms, such as concert halls, have higher reverberation that lasts longer, giving the sound a sense of echo and a more textured feel.
[0084] For example, in a game live streaming scenario, the live streaming space is simultaneously accompanied by the streamer's voice, game object sounds, background music, etc. Through audio source separation technology, the streamer's audio information, the game object's audio information, and the background sound's audio information can be extracted separately, which is beneficial for subsequent sound effect adjustments and spatial audio rendering.
[0085] Servers typically possess high-performance computing capabilities, enabling them to process large amounts of audio data in real time and return high-quality results. By performing audio source separation tasks on servers, the audio information corresponding to each audio source can be accurately separated, providing reliable independent audio sources, which helps improve the accuracy and efficiency of subsequent audio processing.
[0086] For example, sound source separation techniques include, but are not limited to, Independent Component Analysis (ICA), Blind Source Separation (BSS), artificial intelligence, and machine learning techniques.
[0087] In some embodiments, the sound source separation method may include: performing sound source separation based on the spatial location information of multiple audio acquisition devices and the first audio acquired by the multiple audio acquisition devices, and determining the first audio information of at least one sound source.
[0088] In other embodiments, decoding the encoded data of the first audio to determine the first audio information of at least one sound source in the first audio may include: decoding the encoded data of the first audio to obtain decoded data of the first audio; and performing sound source separation on the decoded data of the first audio to obtain the first audio information of at least one sound source in the first audio. In other words, the audio data stream can be distributed to a first terminal, which can then perform tasks such as sound source separation, sound effect configuration, and device adaptation, which is beneficial for achieving low-latency playback.
[0089] Step 203: Obtain the first sound effect configuration information for the first audio;
[0090] The first sound effect configuration information is used for spatial sound effect configuration. For example, the first sound effect configuration information indicates one or more sound effect configuration parameters, or the first sound effect configuration information includes one or more sound effect configuration parameters. In this embodiment, the sound effect configuration parameters are used to configure at least one of the following: direction, distance, intensity, movement trajectory, environmental attributes, etc., of one or more sound sources. The environmental attributes characterize the interaction characteristics between each sound source and the environment; adjustments to the environmental attributes focus on the global sound effect characteristics of all sound sources, while adjustments to direction, distance, intensity, and movement trajectory focus more on a specific sound source.
[0091] In some embodiments, obtaining the first sound effect configuration information of the first audio may include: decoding the encoded data of the first audio to obtain the sound effect template identifier of the first audio; correspondingly, performing spatial sound effect configuration on the first audio information of at least one sound source based on the sound effect configuration information to obtain the second audio information of at least one sound source may include: determining the first sound effect template used by the first audio from at least two preset sound effect templates based on the sound effect template identifier of the first audio, each sound effect template including one or more sound effect configuration parameters; performing spatial sound effect configuration on the first audio information of at least one sound source based on the sound effect configuration parameters in the first sound effect template to obtain the second audio information of at least one sound source.
[0092] This application provides preset scenario-based sound effect templates. Each sound effect template is a set of sound effect configuration parameters pre-designed for different types of audio content. The preset at least two templates may include: game template, concert template, stadium template, education / lecture template, etc.
[0093] Each sound effect template corresponds to a different application scenario (such as game streaming, concerts, sports event streaming, etc.). Each sound effect template includes a series of sound effect configuration parameters, including but not limited to sound direction positioning, distance attenuation coefficient, reverberation intensity, material (such as wood / glass), sound field width, etc. These parameters determine the final spatial audio effect. Different sound effect templates adapt to the sound effect requirements of different scenarios, and you can quickly switch to the spatial audio effect required for the current scenario by using the sound effect template.
[0094] For example, if the sound effect template identifier indicates a game template, it will enhance the spatial positioning of key sound effects such as footsteps and weapon sounds in game missions; if the sound effect template identifier indicates a concert template, it will optimize the spatial sense and reverberation effect of instruments; if the sound effect template identifier indicates a stadium template, it will emphasize the cheers of the audience and the voice of the commentator, and can dynamically adjust the position and intensity of different sound sources to enhance the audience's sense of participation; if the sound effect template identifier indicates an education / lecture template, it will focus the sound on the lecturer, reduce background noise, and enhance the clarity of the speaker, so that the audience can better grasp the key points and information. At least two preset sound effect templates can be sound effect templates cached locally on the first terminal or sound effect templates provided by the server.
[0095] Sound effect template identifiers are pre-defined category tags for different sound effect templates, used to quickly locate the first sound effect template used for the first audio. For example, a game live stream might use a game template, a music performance might use a concert template, and a sporting event might use a stadium template. Sound effect template identifiers can be embedded in metadata during audio encoding. By parsing the encoded data, sound effect template identifiers can be obtained, allowing the first terminal to quickly and accurately determine the sound effect template that matches the audio. This provides a basis for subsequent sound effect configuration, ensuring a high degree of matching between sound effect settings and audio content, and improving the user experience in different audio scenarios.
[0096] In some embodiments, the sound effect template identifier is determined by performing audio scene analysis on the first audio.
[0097] Audio scene analysis refers to identifying and classifying audio content to determine the scene type to which the audio belongs. For example, a system can analyze the presence of features such as audience cheers, commentator voices, and background music to determine whether the current audio belongs to a live sports event, concert, or game broadcast. This analysis can be performed using machine learning models, such as convolutional neural networks (CNNs) or recurrent neural networks (RNNs), to extract audio features and perform classification.
[0098] For example, machine learning models can analyze live stream footage through image recognition to determine the live stream scenario (such as gaming, music, sports, etc.). Furthermore, machine learning models can also analyze audio to identify background sound effects, further confirming the live stream scenario.
[0099] For example, machine learning models can also accurately recommend personalized sound effects settings through user behavior analysis. Specifically, they can analyze users' historical behavior, viewing time, and sound preferences to generate detailed user profiles; based on the generated user profiles, tailor-made sound effect settings can be recommended. Furthermore, by collecting user feedback, user profiles or recommendation results can be generated in real time, thereby optimizing the user experience.
[0100] In other embodiments, the sound effect template identifier is determined based on the user's template selection operation on the second terminal.
[0101] The template selection operation allows users to manually select specific sound effect templates in the interactive interface of the second terminal, such as... Figure 3 As shown, the interactive interface can include options such as game templates, concert templates, stadium templates, and educational / lecture templates. Users select sound effect templates by clicking. For example, during a live broadcast, the host can select a game template, concert template, or educational / lecture template from a preset sound effect template library, depending on whether the content being played is a game, music, or a lecture. Template selection is typically implemented through a visual interactive interface, allowing users to select templates by clicking, swiping, or using voice commands. This operation allows users to flexibly adjust sound effects according to personal preferences, specific scenarios, and audience feedback, improving system flexibility and user experience.
[0102] In other embodiments, obtaining the first sound effect configuration information of the first audio may include: decoding the encoded data of the first audio to obtain the first sound effect configuration parameters of the first audio, wherein the first sound effect configuration parameters are determined based on the user's sound effect configuration operation on the second terminal.
[0103] The sound effect configuration operation allows users to manually configure sound effect parameters in the interactive interface of the second terminal. For example, during a live broadcast, the host can dynamically adjust the sound effect parameters according to whether the content being played is a game, music, or a lecture, and synchronize the sound effect configuration parameters to the audience to obtain personalized spatial sound effects.
[0104] In other embodiments, obtaining the first sound effect configuration information of the first audio may include: decoding the encoded data of the first audio to obtain the sound effect template identifier and the first sound effect configuration parameters of the first audio.
[0105] The sound effect configuration parameters of the sound effect template can be quickly adapted to the sound effect needs of different scenarios. The first sound effect configuration parameter can be dynamically configured to personalize the sound effect and further improve the spatial sound effect.
[0106] It should be noted that the first sound effect configuration information may include the second sound effect configuration information determined by the second terminal, and the second sound effect configuration information includes the sound effect template identifier and / or the first sound effect configuration parameters.
[0107] In other embodiments, the user can select the sound effect template through the interactive interface of the first terminal, or the first terminal can determine the sound effect template based on the analysis of the audio scene.
[0108] It should be noted that when automatically selecting the most suitable sound effect template through scene awareness, a prompt message can also be output to ask the user whether to select the sound effect template. If the user selects or selects the default, the sound effect template can be switched immediately, thus providing the user with flexible sound effect selection and quick configuration functions.
[0109] In other embodiments, obtaining the first sound effect configuration information of the first audio may include: in response to a user's sound effect configuration operation on the first terminal, obtaining the second sound effect configuration parameters of the first audio, wherein the priority of the second sound effect configuration parameters is higher than the priority of the sound effect configuration parameters in the first sound effect template, and / or, the priority of the second sound effect configuration parameters is higher than the priority of the first sound effect configuration parameters.
[0110] Users can personalize sound effect parameters through the interactive interface of the first terminal or by using shortcut keys to generate a second sound effect configuration. The sound effect configuration operation allows users to adjust audio parameters such as direction, intensity, and surround sound according to their preferences, thereby achieving an audio experience more suited to their personal listening habits. For example, in a narration scenario, users can choose to increase the intensity of the narrator's voice while reducing the volume of the background music to ensure that key information is clearly conveyed.
[0111] like Figure 4 As shown, the interactive interface displays the sound effects settings interface, which includes visual controls for adjusting direction, intensity, and surround sound. Users can adjust the direction, intensity, and surround sound of spatial audio using sliders / buttons in the interface. For example, users can choose to direct a sound (such as narration or background music) to a specific location (such as the left, right, or back) to enhance the sense of space and direction; users can choose to reduce the intensity of background sounds while increasing the intensity of narration sounds to ensure that the audience can hear the information clearly; users can choose to adjust the surround sound to create a more immersive auditory environment.
[0112] Furthermore, to ensure a superior listening experience for the primary user, the user-defined second sound effect configuration parameters have a higher priority than the sound effect configuration parameters in the first sound effect template and the first sound effect configuration parameters themselves. This ensures that the user's sound effect adjustments are not overridden by other sound effect configurations.
[0113] It should be noted that the first sound effect configuration information may include the third sound effect configuration information determined by the first terminal, and the third sound effect configuration information includes the sound effect template identifier and / or the second sound effect configuration parameters.
[0114] It should also be noted that the first sound effect configuration information may also include the second sound effect configuration information determined by the second terminal and the third sound effect configuration information determined by the first terminal.
[0115] Step 204: Based on the first sound effect configuration information, perform spatial sound effect configuration on the first audio information of at least one sound source to obtain the second audio information of at least one sound source;
[0116] The second audio information includes at least the temporal and spatial characteristics of each sound source obtained through sound effect configuration.
[0117] Sound effect configuration refers to adjusting the temporal and / or spatial characteristics of each sound source according to sound effect configuration parameters, so that each sound source presents a specific position and effect in virtual space. For example, by adjusting the distance of the sound source, different sound effects at different distances can be simulated; by adjusting the direction of the sound source, stereo positioning in left-right, front-back, and up-down directions can be achieved; and by adjusting the reverberation intensity, sound reflection effects in different room environments can be simulated.
[0118] Step 205: Determine the first rendering mode based on the characteristic parameters of the audio output device;
[0119] The characteristic parameters of an audio output device refer to a set of parameters that describe the capabilities of the currently used audio output device, including brand, model, supported audio formats, performance indicators, number of speakers, speaker location, number of supported channels (such as 5.1, 7.1), maximum frequency response range, etc. These parameters are used to determine which rendering mode to use to adapt to different audio output devices, optimize device compatibility, and ensure high-quality playback of spatial audio on different devices (such as headphones, speakers, VR / AR devices, etc.).
[0120] The first terminal can identify the actual audio output device being used through a smart device detection module, and select the most suitable rendering mode based on the characteristic parameters of the audio output device to adapt to different audio output devices. For example, for headphones, a binaural rendering mode can be selected to enhance the sense of space and immersion; for speakers, the mid and high frequencies will be enhanced to adapt to the environment of open spaces; for multi-channel speaker systems, 5.1 or 7.1 channels can be rendered to achieve a richer sound field effect.
[0121] The rendering mode includes a series of rendering mode parameters, such as HRTF model, reverberation decay, dynamic range, etc.
[0122] Step 206: Render the second audio information based on the first rendering mode and at least one audio source to obtain target audio information that is compatible with the audio output device.
[0123] The system utilizes a first rendering mode adapted to the audio output device and second audio information from at least one audio source for rendering processing, enabling it to present a three-dimensional spatial sound effect during playback. This process typically includes operations such as reverberation simulation, dynamic equalization, and sound field reshaping to enhance the spatiality and realism of the sound.
[0124] In some embodiments, the method may further include: acquiring motion information of a first terminal; updating the target audio information spatially based on the motion information of the first terminal to obtain updated target audio information.
[0125] Motion information refers to the movement state of the first terminal in physical space, including acceleration, angular velocity, displacement, and attitude changes. This information can be collected by the built-in Inertial Measurement Unit (IMU) sensors. Motion information can be used to determine the user's head rotation, body movement, or changes in the posture of the handheld device. Based on the motion information, spatial sound effects are updated for the target audio information. This way, when the listener's head moves, the azimuth and elevation angles of the sound source relative to the listener's head are recalculated in real time, ensuring that the virtual sound source maintains a fixed position in space. This simulates the orientation perception characteristics of a real auditory system, enhances immersion and interactivity, and further improves the user's auditory experience, especially in application scenarios such as VR / AR devices that heavily rely on spatial perception.
[0126] It's important to note that motion information acquisition isn't limited to a single sensor; it can also be combined with multi-source data fusion algorithms to improve data accuracy and stability. For example, combining the short-term, high-precision output of a gyroscope with the low-frequency, stable output of an accelerometer, and then fusing the data using algorithms like Kalman filtering, can yield a more accurate estimation of the motion state. This multi-sensor collaborative approach helps reduce the accumulation of errors from individual sensors and improves the overall system robustness.
[0127] This process may involve technologies such as dynamic reverberation calculation, HRTF mapping, and 3D sound image localization in spatial audio rendering engines. For example, in a VR / AR environment, the system will apply head tracking technology in real time to automatically adjust the direction of sound effects based on the user's head movements. This function allows the sound source image to naturally follow the user's movements, enhancing immersion. Through head tracking sensors, the system can sense changes in the user's perspective and dynamically adjust the direction of sound effects, ensuring a high degree of consistency between sound and visual experience in VR / AR environments.
[0128] For example, in VR concert live streams, users can freely observe different areas of the stage using head-tracking technology, and the music source will dynamically adjust accordingly, creating an immersive auditory experience. In game live streams, the player's movement and changes in perspective directly affect the location of sound effects such as footsteps and weapon fire in the combat environment, enhancing the game's realism and interactivity.
[0129] In some embodiments, the method may further include: acquiring first image information of the video corresponding to the first audio; performing audio-visual synchronization processing on the first image information and the target audio information and outputting it.
[0130] For example, during audio and video acquisition, precise timestamps (such as those based on the system clock or an external synchronization source) are added to each frame of image and audio data. When the video is delayed, the audio rate is dynamically adjusted to align with the timestamps, ensuring precise time alignment between audio and video during playback and preventing audio-visual desynchronization. Furthermore, forward error correction (FEC) or retransmission mechanisms can be combined to reduce synchronization deviations caused by packet loss. If audio-visual misalignment is detected, realignment can be achieved by temporarily accelerating or decelerating a data stream (such as the audio data stream).
[0131] The first terminal can also receive image encoded data from the server or other terminals, decode the image encoded data to obtain first image information, the first image information includes data for representing image content, and the image information may include metadata, such as timestamp, resolution, color space, etc., to assist subsequent image processing operations.
[0132] Figure 5 This is a schematic diagram of a second optional flow of the audio processing method provided in the embodiments of this application, such as... Figure 5 As shown, this method is applied to the first terminal, and the method may specifically include:
[0133] Step 501: Obtain the first audio;
[0134] In this embodiment of the application, to ensure rapid response of audio signals and image updates, a high-efficiency data compression algorithm and a low-latency audio transmission protocol are employed, including:
[0135] Data compression algorithms: Use efficient encoding formats (such as AAC, Opus, etc.) to reduce the size of transmitted data and effectively reduce latency.
[0136] Audio transmission protocol: Using protocols such as WebRTC or RTSP ensures that audio can be transmitted quickly and synchronized to video, reducing latency and providing users with a seamless audio-visual experience.
[0137] Meanwhile, during audio and video acquisition, precise timestamps are added to each frame of image and audio data (e.g., based on the system clock or an external synchronization source). When the video is delayed, the audio rate is dynamically adjusted to align with the timestamps, achieving synchronized audio and video output.
[0138] Step 502: Audio source separation;
[0139] First, acquire the first audio audio, which may come from multiple audio acquisition devices (such as a single microphone, microphone array, mixer, music player, etc.).
[0140] Secondly, by employing source separation technology (such as ICA or BSS), the mixed audio is separated into multiple independent sound sources based on the first audio signal captured by multiple audio acquisition devices and the spatial location information of these devices. This ensures that each sound source is independent and clear, and does not interfere with each other. This process enables better sound location perception. For example:
[0141] Audio source 1: Commentary - the host's voice commentary signal.
[0142] Audio source 2: Background music – background music used to enhance the atmosphere.
[0143] Sound source 3: Ambient sounds – such as audience cheers, the surrounding environment, etc.
[0144] Step 503: Dynamic sound effect adjustment;
[0145] The separated audio sources undergo sound effect adjustments, including but not limited to at least one of the following:
[0146] Distance Adjustment: Simulate sound sources at different distances by modifying the volume and attenuation of the sound effects. Sounds closer should appear louder and clearer, while sounds farther away should have reduced volume and clarity.
[0147] Direction Adjustment: Using planar or 3D sound field models, the direction of the sound source within the virtual space can be dynamically changed. For example, a narrator's voice can be simulated to come from a specific location, enhancing the sense of space.
[0148] Intensity Adjustment: The intensity of each audio source is dynamically adjusted according to the needs of the scene to adapt to the real-time changes in the live broadcast. For example, the volume of the narration is increased in key scenes, while the volume of the background music is appropriately reduced to emphasize the content of the narration.
[0149] Surround Sound Adjustment: Surround sound is related to "environmental attributes," such as room size, materials (e.g., wood / glass), and sound field width—the horizontal diffusion range of sound (e.g., the spaciousness of a concert hall; for example, even with the same room size, the listening experience in a concert hall is significantly different from that in a regular meeting room). This is mainly reflected in the reverberation. Direction, intensity, and distance adjustments focus more on a specific sound source. Adjusting surround sound is more like selecting an environment, analogous to distance adjustment. Users can adjust the reverberation level using a slider. For example, a small room has less reverberation, with more direct sound and reflections, resulting in a clear and crisp sound; a large room like a concert hall has greater reverberation that lasts longer, giving the sound a more textured, lingering quality.
[0150] In this embodiment, the first terminal can provide a visual sound effect settings interface, allowing users to adjust sound effects through the user interface, thereby achieving an audio experience that better suits their personal preferences.
[0151] In some embodiments, the first terminal can also save the current sound effect configuration parameters as a sound effect template for future use, thereby improving the efficiency of sound effect configuration.
[0152] Step 504: Device adaptation;
[0153] First, the system uses a built-in intelligent device detection module to identify the type of audio output device connected to the user in real time. Whether it's high-end headphones, ordinary speakers, or VR / AR devices, the system can quickly distinguish them.
[0154] Combined with a broad device database, device identification algorithms store parameter characteristics of user devices, including brand, model, supported audio formats, and performance metrics. This information will be used to guide the application of optimized algorithms.
[0155] Secondly, audio output optimization
[0156] Once the device is detected, the system will automatically adjust the first rendering mode according to the characteristics of the audio output device type. For example, for headphones, binaural rendering can be performed based on head-related transfer functions; for VR devices, audio output can be further optimized by combining head movement information, so that the sound source can naturally follow the user's movements.
[0157] The audio processing method provided in this application configures spatial sound effects for the first audio information of each sound source using sound effect configuration information, and then performs output rendering based on the characteristics of different output audio devices (such as headphones, speakers, VR / AR devices, etc.). On the one hand, it can provide adapted spatial sound effects for different audio scenarios, enhancing the layering and spatial sense of the output audio; on the other hand, it selects an adapted rendering mode based on the characteristics of different audio output devices, ensuring high-quality playback on different devices, optimizing audio output, and solving the problems of strong device dependence, poor compatibility, and insufficient spatial sense in related technologies.
[0158] Figure 6 This is a schematic diagram of a third optional audio processing method provided in the embodiments of this application, such as... Figure 6 As shown, this method is applied to a second terminal, and the method may specifically include:
[0159] Step 601: Acquire raw audio;
[0160] The raw audio can be an unprocessed audio signal acquired in real time by an audio acquisition device (such as a microphone, recording device, etc.) on a second terminal. This audio signal can come from the user's voice input, ambient sounds, or other sounds.
[0161] Step 602: Preprocess the original audio to obtain the first audio;
[0162] Preprocessing refers to the initial optimization and adjustment of the raw audio to remove unnecessary noise, balance volume, enhance clarity, and so on, thereby improving audio quality and preparing it for subsequent encoding processing. For example, preprocessing includes, but is not limited to, noise reduction, echo cancellation, equalization, and gain control.
[0163] In some embodiments, a suitable preprocessing algorithm may be automatically selected based on different audio scenarios.
[0164] Step 603: Obtain the second sound effect configuration information for the first audio;
[0165] The second sound effect configuration information is determined by the second terminal and is used to instruct the first terminal to configure spatial sound effects. The second sound effect configuration information includes sound effect template identifier and / or first sound effect configuration parameters.
[0166] In some embodiments, obtaining the second sound effect configuration information of the first audio may include: performing audio scene analysis on the first audio to obtain scene information of the first audio; and determining the sound effect template identifier of the first audio based on the scene information of the first audio, wherein the sound effect template identifier of the first audio is used to indicate the first sound effect template used by the first audio, and the first sound effect template includes one or more sound effect configuration parameters.
[0167] In other embodiments, obtaining the second sound effect configuration information of the first audio may include: in response to a user's template selection operation for the first audio, determining a sound effect template identifier for the first audio, wherein the sound effect template identifier of the first audio is used to indicate the first sound effect template used by the first audio, and the first sound effect template includes one or more sound effect configuration parameters.
[0168] In other embodiments, obtaining the second sound effect configuration information of the first audio may include: in response to a user's sound effect configuration operation on the second terminal, obtaining the first sound effect configuration parameters of the first audio.
[0169] In other embodiments, obtaining the second sound effect configuration information of the first audio may include: identifying the sound effect template of the first audio; and obtaining the first sound effect configuration parameters of the first audio in response to the user's sound effect configuration operation for the second terminal.
[0170] Step 604: Encode the first audio and second sound effect configuration information to obtain the encoded data of the first audio;
[0171] Encoding processing combines the pre-processed first audio with sound effect configuration parameters and uses a specific audio encoding format (such as Opus, Ambisonic, AAC, etc.) to convert it into compressed digital audio data for efficient transmission and storage.
[0172] Step 605: Send the encoded data of the first audio to the server, so that the server distributes the encoded data of the first audio to one or more first terminals for output.
[0173] In some embodiments, the second terminal can send / report audio encoded data to the server via WebRTC, RTSP, RIST, LL-HLS, etc. Meanwhile, the server can dynamically adjust the bitrate and transmission path according to network conditions to optimize bandwidth utilization and reduce stuttering.
[0174] In this embodiment, the first audio and its sound effect configuration parameters are sent to the first terminal simultaneously, assisting the first terminal in dynamically adjusting the spatial sound effects based on the sound effect configuration parameters, thereby improving the audio playback effect.
[0175] Figure 7 This is a schematic diagram of the fourth optional flow of the audio processing method provided in the embodiments of this application, as shown below. Figure 7 As shown, this method is applied to a server, and the method may specifically include:
[0176] Step 701: Receive the encoded data of the first audio signal sent by the second terminal;
[0177] Step 702: Decode the encoded data of the first audio to obtain the decoded data of the first audio and the second sound effect configuration information of the first audio;
[0178] Step 703: Perform source separation on the decoded data of the first audio to obtain the first audio information of at least one source in the first audio;
[0179] Sound source separation refers to using sound source separation technology to separate multiple mixed sound signals (such as human voice, background music, and ambient sound) to extract the audio information of each independent sound source, facilitating subsequent spatial positioning and sound effect adjustment. For example, the first audio information refers to the waveform, frequency, amplitude, and other features extracted for each sound source after sound source separation. Furthermore, the first audio information may also include spatial positioning parameters such as the sound source's location coordinates, direction, and other details. This information can be used to construct a three-dimensional audio model in virtual space, allowing users to perceive the source location and dynamic changes of different sounds.
[0180] For example, in a game live streaming scenario, the live streaming space is simultaneously accompanied by the streamer's voice, game object sounds, and background music. Through audio source separation technology, the system can extract the streamer's audio information, the game object's audio information, and the background sound audio information separately, and assign independent spatial attributes to each audio source. In this way, the first terminal can adjust the volume, direction, distance, and environmental attributes (such as reverberation intensity, texture, sound field width, etc.) of each audio source according to the acquired sound effect configuration parameters, thereby obtaining personalized spatial sound effects.
[0181] Servers typically possess high-performance computing capabilities, enabling them to process large amounts of audio data in real time and return high-quality results. By performing source separation tasks on the server, the audio information corresponding to each source can be accurately separated, providing reliable audio information for spatial audio rendering on the first terminal, which helps improve the accuracy and efficiency of subsequent audio processing.
[0182] For example, sound source separation techniques include, but are not limited to, Independent Component Analysis (ICA), Blind Source Separation (BSS), artificial intelligence, and machine learning techniques.
[0183] Step 704: Encode the first audio information and the second sound effect configuration information of at least one sound source in the first audio to obtain the updated encoded data of the first audio;
[0184] For example, it is converted into compressed digital audio data using a specific audio encoding format (such as Opus, Ambisonic, AAC, etc.) for efficient transmission and storage.
[0185] In some embodiments, step 704 can also be replaced by: configuring spatial sound effects on the first audio information of at least one sound source based on the first sound effect configuration information to obtain the second audio information of at least one sound source; encoding the second audio information of at least one sound source in the first audio to obtain the encoded data of the updated first audio.
[0186] In other words, the server can also dynamically adjust the sound effects and then encode the adjusted audio information.
[0187] Step 705: Distribute the updated encoded data of the first audio to one or more first terminal outputs.
[0188] In this embodiment, multiple distributed audio processing nodes are deployed within a specific range. For live streaming scenarios, distributed computing technology is used to process audio processing requests from nearby terminals. Each node is responsible for the real-time assigned audio processing tasks and transmits the results to the user terminal. A load balancing algorithm dynamically allocates audio processing tasks to ensure balanced load on each node. In high-concurrency scenarios, the audio processing nodes are automatically expanded to ensure system stability and efficiency.
[0189] It employs a highly efficient data compression algorithm to reduce bandwidth usage while maintaining sound quality. Simultaneously, it supports dynamic bitrate adjustment, automatically adjusting the audio stream bitrate based on network conditions.
[0190] A multi-level caching mechanism is employed, deploying multiple levels of cache nodes within a specific scope to distribute audio streams as close as possible to reduce transmission latency. Through cache preheating and preloading techniques, audio streams are distributed to cache nodes in advance, ensuring rapid response to user requests.
[0191] Furthermore, the audio is distributed to one or more primary terminals via a Content Delivery Network (CDN). In live streaming scenarios, the CDN sends the live stream audio to all user terminals listening to the live stream. The CDN's efficient distribution mechanism ensures the stability and real-time performance of the audio stream, avoiding issues such as stuttering and latency. This ensures that users worldwide can enjoy a low-latency, high-quality audio experience and supports dynamic routing, selecting the optimal transmission path based on network conditions.
[0192] In this embodiment, by performing source separation on the received multi-source audio (i.e., the first audio), the audio information corresponding to each source can be accurately separated, providing reliable audio information for the spatial audio rendering of the first terminal, which is beneficial to improving the accuracy and efficiency of subsequent audio processing. Utilizing the efficient distribution mechanism of CDN can ensure the stability and real-time performance of the audio stream, avoiding problems such as stuttering and latency.
[0193] Figure 8This is a schematic diagram of the fifth optional flow of the audio processing method provided in the embodiments of this application, as shown below. Figure 8 As shown, this method is applied to a spatial audio processing system, which includes a first terminal, a server, and a second terminal. In a live streaming scenario, the first terminal can be a viewer terminal, and the second terminal can be a live streaming terminal. Specifically, the method may include:
[0194] Step 801: The broadcaster's terminal performs audio acquisition;
[0195] Step 802: The broadcaster terminal determines the sound effect template identifier;
[0196] Step 803: The broadcaster terminal preprocesses the raw audio;
[0197] In some embodiments, the broadcaster terminal can also perform scene recognition based on preprocessed audio data to determine the audio scene.
[0198] Step 804: The broadcaster's terminal encodes and uploads the audio data stream;
[0199] The audio data stream includes audio information and metadata. The metadata may include sound effect template identifiers and / or sound effect configuration parameters, which may be global sound effect configuration parameters, such as reverb type and source gain.
[0200] Step 805: The server decodes the audio data stream and performs source separation and cross-platform distribution;
[0201] The server obtains first audio information from at least one audio source, and re-encodes the first audio information from at least one audio source, as well as the sound effect template identifier and / or sound effect configuration parameters. For example, the sound effect template identifier and / or sound effect configuration parameters can be encapsulated into an SEI frame, or the template identifier and / or sound effect configuration parameters can be transmitted independently through a data channel.
[0202] Step 806: The server distributes the encoded audio data to the viewer's terminal.
[0203] It should be noted that the broadcaster terminal can also act as a viewer terminal to receive audio encoded data distributed by the server, and the broadcaster terminal outputs the target audio information with adjusted sound effects to the broadcaster.
[0204] Step 807: The audience terminal receives and decodes the audio encoded data, and obtains the audio information of at least one audio source and the sound effect template identifier and / or sound effect configuration parameters sent by the broadcaster terminal;
[0205] Step 808: The audience terminal adjusts the sound effects;
[0206] The viewer's terminal adjusts the sound effects based on the sound effect template identifier and / or sound effect configuration parameters sent by the broadcaster.
[0207] For example, the audience terminal can also obtain the audience's customized sound effect configuration parameters and dynamically adjust the sound effects. It should be noted that, to ensure the listening experience of the first terminal user, the first terminal user's customized second sound effect configuration parameters have a higher priority than the sound effect configuration parameters in the first sound effect template and the first sound effect configuration parameters themselves. This ensures that the first terminal user's sound effect adjustments will not be overridden by other sound effect configurations.
[0208] Step 809: The audience terminal performs device adaptation and outputs data.
[0209] The beneficial effects of the audio processing method provided in this application may include:
[0210] 1) Enhance the user's audio experience: Through dynamic sound effect adjustment and scene-based sound effect design, a more realistic and immersive audio experience can be provided, thereby increasing the audience's sense of participation and engagement.
[0211] 2) Supports multiple scenarios: It can adapt to various live streaming scenarios such as games, music, sports, education, VR / AR, and e-commerce. Through scene-based sound effect design, it meets the sound effect needs of different live streaming scenarios, improving the flexibility and versatility of audio processing.
[0212] 3) Personalized customization: Users can adjust the dynamic sound effects according to their own preferences and needs, which enhances the interactivity and personalized experience of users and makes the live broadcast content more closely meet the specific needs of users.
[0213] 4) Compatibility and device adaptability: Through device compatibility optimization, the system can achieve high-quality audio playback on a variety of devices (such as headphones, speakers, VR / AR devices, etc.), ensuring that users have a good sound experience in various environments.
[0214] 5) Broad Application Prospects: It provides a cross-platform spatial audio software development kit (SDK) designed for rapid integration and application of spatial audio functions on mainstream audio and video platforms. This reduces the difficulty and cost of integration and application. The SDK can include multiple functional modules (sound effects engine, signal processing, audio source separation, etc.), which can be selectively integrated according to needs to build specific audio applications.
[0215] To implement the method of the embodiments of this application, based on the same inventive concept, the embodiments of this application also provide a first audio processing device, applied to a first terminal, such as... Figure 9 As shown, the audio processing device 90 may include:
[0216] The first communication unit 901 is used to receive the encoded data of the first audio.
[0217] The first encoding / decoding unit 902 is used to decode the encoded data of the first audio and determine the first audio information of at least one sound source in the first audio.
[0218] The first acquisition unit 903 is used to acquire the first sound effect configuration information of the first audio.
[0219] The first processing unit 904 is used to perform spatial sound effect configuration on the first audio information of at least one sound source based on the first sound effect configuration information to obtain the second audio information of at least one sound source.
[0220] The first processing unit 904 is also used to determine a first rendering mode based on the characteristic parameters of the audio output device;
[0221] The first processing unit 904 is further configured to perform rendering processing based on the first rendering mode and the second audio information of at least one sound source, to obtain target audio information adapted to the audio output device and output it.
[0222] In some embodiments, the first decoding unit 902 is used to decode the encoded data of the first audio to obtain the first audio information of at least one sound source in the first audio, wherein the first audio information of at least one sound source is obtained by the server performing sound source separation on the first audio.
[0223] In some embodiments, the first decoding unit 902 is used to decode the encoded data of the first audio to obtain the decoded data of the first audio.
[0224] The first processing unit 904 is used to perform source separation on the decoded data of the first audio to obtain first audio information of at least one source in the first audio.
[0225] In some embodiments, the first decoding unit 902 is used to decode the encoded data of the first audio to obtain the sound effect template identifier of the first audio;
[0226] The first acquisition unit 903 is used to acquire the sound effect template identifier of the first audio; the first processing unit 904 is used to determine the first sound effect template used by the first audio from at least two preset sound effect templates based on the sound effect template identifier of the first audio, each sound effect template including one or more sound effect configuration parameters; and to perform spatial sound effect configuration on the first audio information of at least one sound source based on the sound effect configuration parameters in the first sound effect template to obtain the second audio information of at least one sound source.
[0227] In some embodiments, the sound effect template identifier is determined by performing audio scene analysis on the first audio; or, the sound effect template identifier is determined based on the user's template selection operation on the second terminal.
[0228] In some embodiments, the first decoding unit 902 is used to decode the encoded data of the first audio to obtain the first sound effect configuration parameters of the first audio, which are determined based on the user's sound effect configuration operation for the second terminal.
[0229] In some embodiments, the first acquisition unit 903 is configured to obtain second sound effect configuration parameters of the first audio in response to a user's sound effect configuration operation on the first terminal, wherein the priority of the second sound effect configuration parameters is higher than the priority of the sound effect configuration parameters in the first sound effect template, and / or the priority of the second sound effect configuration parameters is higher than the priority of the first sound effect configuration parameters.
[0230] In some embodiments, the sound effect configuration parameters are used to configure at least one of the following: the direction, distance, intensity, movement trajectory, and environmental attributes of one or more sound sources.
[0231] In some embodiments, the first acquisition unit 903 is further configured to acquire motion information of the first terminal; the first processing unit 904 is further configured to update the target audio information spatial sound effects based on the motion information of the first terminal to obtain the updated target audio information.
[0232] In some embodiments, the first acquisition unit 903 is further configured to acquire first image information of the video corresponding to the first audio.
[0233] The first processing unit 904 is also used to perform audio-visual synchronization processing on the first image information and the target audio information and output it.
[0234] This application also provides a second audio processing device, applied to a second terminal, such as... Figure 10 As shown, the audio processing device 1000 may include:
[0235] Audio acquisition unit 1001 is used to acquire raw audio;
[0236] The second processing unit 1002 is used to preprocess the original audio to obtain the first audio.
[0237] The second acquisition unit 1003 is used to acquire the second sound effect configuration information of the first audio;
[0238] The second encoding / decoding unit 1004 is used to encode the first audio and second sound effect configuration information to obtain the encoded data of the first audio.
[0239] The second communication unit 1005 is used to send the encoded data of the first audio to the server, so that the server distributes the encoded data of the first audio to one or more first terminals for output.
[0240] In some embodiments, the second processing unit 1002 is used to perform audio scene analysis on the first audio to obtain scene information of the first audio; and determine the sound effect template identifier of the first audio based on the scene information of the first audio; the second acquisition unit 1003 is used to acquire the sound effect template identifier of the first audio; or, the second acquisition unit 1003 is used to determine the sound effect template identifier of the first audio in response to a user's template selection operation for the first audio.
[0241] The sound effect template identifier of the first audio is used to indicate the first sound effect template used by the first audio, and the first sound effect template includes one or more sound effect configuration parameters.
[0242] In some embodiments, the second acquisition unit 1003 is configured to obtain the first audio effect configuration parameters of the first audio in response to a user's audio effect configuration operation for the second terminal.
[0243] This application also provides a third audio processing device, applied to a server, such as... Figure 11 As shown, the audio processing device 1100 may include:
[0244] The third communication unit 1101 is used to receive the encoded data of the first audio sent by the second terminal;
[0245] The third encoding / decoding unit 1102 is used to decode the encoded data of the first audio to obtain the decoded data of the first audio and the second sound effect configuration information of the first audio.
[0246] The third processing unit 1103 is used to perform source separation on the decoded data of the first audio to obtain first audio information of at least one source in the first audio.
[0247] The third encoding / decoding unit 1102 is used to encode the first audio information and the second sound effect configuration information of at least one sound source in the first audio to obtain the updated encoded data of the first audio.
[0248] The third communication unit 1101 is also used to distribute the updated encoded data of the first audio to one or more first terminals for output.
[0249] In practical applications, the aforementioned device can be a terminal device or a chip applied to a terminal device. In this application, the device can implement the functions of multiple units through software, hardware, or a combination of both, enabling the device to execute the audio processing method provided in any of the above embodiments. Furthermore, the technical effects of each technical solution of the device can be referenced to the technical effects of the corresponding technical solutions in the audio processing method; these will not be elaborated upon further in this application.
[0250] Based on the hardware implementation of each unit in the aforementioned audio processing device, embodiments of this application also provide an electronic device, such as... Figure 12 As shown, the electronic device 1200 includes: a processor 1201 and a memory 1202 configured to store computer programs capable of running on the processor;
[0251] When the processor 1201 is configured to run a computer program, it executes the method steps described in the foregoing embodiments.
[0252] Of course, in practical applications, such as Figure 12 As shown, the various components in the electronic device 1200 are coupled together via a bus system 1203. It is understood that the bus system 1203 is used to enable communication between these components. In addition to a data bus, the bus system 1203 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 1203 in the figure.
[0253] In practical applications, the aforementioned processor can be at least one of the following: Application-Specific Integrated Circuit (ASIC), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), controller, microcontroller, and microprocessor. It is understood that, for different devices, the electronic devices used to implement the functions of the aforementioned processor can also be other types, and the embodiments of this application do not specifically limit this.
[0254] The aforementioned memory can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provides instructions and data to the processor.
[0255] It should be noted that the electronic device 1200 can be a first terminal, a second terminal, or a server in the embodiments of this application.
[0256] In an exemplary embodiment, this application also provides an audio processing system, which may include: a first terminal, a second terminal, and a server.
[0257] In an exemplary embodiment, this application also provides a computer-readable storage medium, such as a memory including a computer program, which can be executed by a processor of an electronic device to perform the steps of the aforementioned method.
[0258] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in any one of the embodiments of this application.
[0259] Optionally, the computer program product can be applied to the electronic device in the embodiments of this application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0260] This application also provides a computer program.
[0261] Optionally, the computer program can be applied to the electronic device in the embodiments of this application. When the computer program is run on a computer, it causes the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0262] It should be understood that in the embodiments of this application, data such as user information are involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0263] It should be understood that the terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items. The expressions “having,” “may have,” “comprising,” and “including,” or “may include” and “may contain” used herein may be used to indicate the presence of a corresponding feature (e.g., an element such as a number, function, operation, or component), but do not exclude the presence of additional features.
[0264] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of this invention, first information may also be referred to as second information, and similarly, second information may also be referred to as first information.
[0265] The technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.
[0266] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatus, and devices can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical, or other forms.
[0267] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0268] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0269] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. An audio processing method applied to a first terminal, the method comprising: The method includes: Receive the encoded data of the first audio audio; Decode the encoded data of the first audio to determine the first audio information of at least one sound source in the first audio; Obtain the first sound effect configuration information of the first audio; Based on the first sound effect configuration information, spatial sound effect configuration is performed on the first audio information of the at least one sound source to obtain the second audio information of the at least one sound source; The first rendering mode is determined based on the characteristic parameters of the audio output device. Rendering is performed based on the first rendering mode and the second audio information of the at least one sound source to obtain target audio information adapted to the audio output device and output it.
2. The method of claim 1, wherein, Decoding the encoded data of the first audio to determine the first audio information of at least one sound source in the first audio includes: Decode the encoded data of the first audio to obtain the first audio information of at least one sound source in the first audio, wherein the first audio information of the at least one sound source is obtained by the server through sound source separation of the first audio.
3. The method of claim 1, wherein, Decoding the encoded data of the first audio to determine the first audio information of at least one sound source in the first audio includes: Decode the encoded data of the first audio to obtain the decoded data of the first audio; The decoded data of the first audio is subjected to source separation to obtain first audio information of at least one source in the first audio.
4. The method of claim 1, wherein, The step of obtaining the first sound effect configuration information of the first audio includes: Decode the encoded data of the first audio to obtain the sound effect template identifier of the first audio; The step of configuring spatial sound effects on the first audio information of the at least one sound source based on the first sound effect configuration information to obtain the second audio information of the at least one sound source includes: Based on the sound effect template identifier of the first audio, the first sound effect template used by the first audio is determined from at least two preset sound effect templates, and each sound effect template includes one or more sound effect configuration parameters; Based on the sound effect configuration parameters in the first sound effect template, spatial sound effect configuration is performed on the first audio information of the at least one sound source to obtain the second audio information of the at least one sound source.
5. The method of claim 4, wherein, The sound effect template identifier is determined by performing audio scene analysis on the first audio; Alternatively, the sound effect template identifier may be determined based on the user's template selection operation on the second terminal.
6. The method of claim 1, wherein, The step of obtaining the first sound effect configuration information of the first audio includes: Decode the encoded data of the first audio to obtain the first sound effect configuration parameters of the first audio. The first sound effect configuration parameters are determined based on the user's sound effect configuration operation on the second terminal.
7. The method according to any one of claims 1 to 6, characterized in that, The step of obtaining the first sound effect configuration information of the first audio includes: In response to the user's sound effect configuration operation for the first terminal, a second sound effect configuration parameter for the first audio is obtained, wherein the priority of the second sound effect configuration parameter is higher than the priority of the sound effect configuration parameter in the first sound effect template, and / or the priority of the second sound effect configuration parameter is higher than the priority of the first sound effect configuration parameter.
8. The method of claim 7, wherein, The sound effect configuration parameters are used to configure at least one of the following: the direction, distance, intensity, movement trajectory, and environmental attributes of one or more sound sources.
9. The method of claim 1, wherein, The method further includes: Obtain the motion information of the first terminal; Based on the motion information of the first terminal, the target audio information is updated with spatial sound effects to obtain the updated target audio information.
10. The method of claim 1, wherein, The method further includes: Obtain the first image information of the video corresponding to the first audio; The first image information and the target audio information are processed for audio-visual synchronization and then output.
11. An audio processing method applied to a second terminal, the method comprising: The method includes: Acquire raw audio; The original audio is preprocessed to obtain the first audio. Obtain the second sound effect configuration information of the first audio; The first audio and the second sound effect configuration information are encoded to obtain the encoded data of the first audio. The encoded data of the first audio is sent to the server, so that the server distributes the encoded data of the first audio to one or more first terminals for output.
12. The method of claim 11, wherein, The step of obtaining the second sound effect configuration information of the first audio includes: Perform audio scene analysis on the first audio to obtain scene information of the first audio; Based on the scene information of the first audio, determine the sound effect template identifier of the first audio; Alternatively, in response to the user's template selection operation for the first audio, determine the sound effect template identifier of the first audio; The sound effect template identifier of the first audio is used to indicate the first sound effect template used by the first audio, and the first sound effect template includes one or more sound effect configuration parameters.
13. The method of claim 11, wherein, The step of obtaining the second sound effect configuration information of the first audio includes: In response to the user's audio effect configuration operation for the second terminal, the first audio effect configuration parameters are obtained.
14. An audio processing method applied to a server, comprising: The method includes: Receive the encoded data of the first audio signal sent by the second terminal; Decode the encoded data of the first audio to obtain the decoded data of the first audio and the second sound effect configuration information of the first audio; The decoded data of the first audio is subjected to source separation to obtain first audio information of at least one source in the first audio. Encode the first audio information and the second sound effect configuration information of at least one sound source in the first audio to obtain the updated encoded data of the first audio. The updated encoded data of the first audio is distributed to one or more first terminals for output.
15. An audio processing apparatus applied to a first terminal, characterized in that, The device includes: The first communication unit is used to receive the encoded data of the first audio. The first decoding unit is used to decode the encoded data of the first audio and determine the first audio information of at least one sound source in the first audio. The first acquisition unit is used to acquire the first sound effect configuration information of the first audio; The first processing unit is configured to perform spatial sound effect configuration on the first audio information of the at least one sound source based on the first sound effect configuration information to obtain the second audio information of the at least one sound source. The first processing unit is further configured to determine a first rendering mode based on the characteristic parameters of the audio output device; The first processing unit is further configured to perform rendering processing based on the first rendering mode and the second audio information of the at least one sound source, to obtain target audio information adapted to the audio output device and output it.
16. An audio processing apparatus applied to a second terminal, characterized by comprising: The device includes: The audio acquisition unit is used to acquire raw audio. The second processing unit is used to preprocess the original audio to obtain the first audio. The second acquisition unit is used to acquire the second sound effect configuration information of the first audio; The second encoding unit is used to encode the first audio and the second sound effect configuration information to obtain the encoded data of the first audio. The second communication unit is used to send the encoded data of the first audio to the server, so that the server distributes the encoded data of the first audio to one or more first terminals for output.
17. An audio processing apparatus applied to a server, characterized in that, The device includes: The third communication unit is used to receive the encoded data of the first audio sent by the second terminal; The third decoding unit is used to decode the encoded data of the first audio to obtain the decoded data of the first audio and the second sound effect configuration information of the first audio. The third processing unit is used to perform source separation on the decoded data of the first audio to obtain first audio information of at least one source in the first audio. The third encoding unit is used to encode the first audio information of at least one sound source in the first audio and the second sound effect configuration information to obtain the updated encoded data of the first audio. The third communication unit is also used to distribute the updated encoded data of the first audio to one or more first terminals for output.
18. An electronic device, comprising: The electronic device includes: a processor and a memory configured to store computer programs capable of running on the processor. Wherein, when the processor is configured to run the computer program, it performs the steps of the method according to any one of claims 1 to 14.
19. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.
20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.
