Audio channel metadata generation method and device, equipment and storage medium
By automatically generating audio channel metadata, the problem of low efficiency in generating audio channel metadata in existing technologies is solved, enabling adaptive rendering and immersive experience of multi-channel audio formats, which is suitable for car audio systems, VR devices and cinema systems.
Patent Information
- Application Number
- CN202511475850.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2026-03-06
AI Technical Summary
In existing technologies, audio channel metadata generation requires manual definition, which leads to inefficiency and difficulty in adapting to dynamically changing audio rendering needs.
By confirming the audio file type, audio channel format elements are generated, the audio channel is divided into multiple audio blocks, and common and type attributes are identified to automatically generate metadata, including information such as frequency, audio type, and start and end times.
It enables automatic construction of audio channel format metadata, supports adaptive rendering of mono, 5.1 channel, 7.1 channel and binaural audio formats, enhances the immersive experience of multi-channel audio, and adapts to the audio rendering needs of multiple scenarios such as car audio, VR devices and cinema systems.
Smart Images

Figure CN121617368A_ABST
Abstract
Description
[0001] This application is a divisional application of the patent application filed on April 9, 2025, with application number 202510443663.9 and invention title "A method, apparatus, device and storage medium for generating audio channel metadata". Technical Field
[0002] This invention relates to the field of audio processing technology, and in particular to a method, apparatus, device, and storage medium for generating audio channel metadata. Background Technology
[0003] Audio technology has evolved through several stages, including mono, left and right channels, and surround sound. The advent of surround sound technology, in particular, has made the processing of sound and its associated audio channels increasingly complex. Constraining the order of multiple audio channels can enhance the interaction between speakers in those channels, improving the interactivity and immersiveness of the sound output.
[0004] Audio channels refer to the source or output of sound, and are usually used to describe the spatial relationship of sound. The number of channels is the number of sound sources during recording or the corresponding number of speakers during playback. For example, a 5.1 surround speaker system has 6 different audio signals, and a 7.1 surround speaker system has 8 different audio signals. These different audio signals need to be output using different audio channels.
[0005] Audio has different types, such as direct speaker, matrix, object, higher-order ambient sound, and binaural. These different types of audio channels require tagging-like operations, and these tags belong to metadata. Therefore, a means of generating audio channel metadata is needed to meet the specific needs of audio files during rendering and playback. In existing technologies, metadata generation requires manually defining audio channel types, resulting in inefficiency and difficulty in adapting to dynamically changing audio rendering requirements. Summary of the Invention
[0006] This invention provides a method, apparatus, device, and storage medium for generating audio channel metadata to meet the rendering and playback needs of different types of audio files.
[0007] The first aspect of this application provides a method for generating audio channel metadata, applied to an audio renderer, including:
[0008] Confirm whether the received audio file is mono;
[0009] If so, generate the audio channel format elements corresponding to the audio file;
[0010] The audio channel is divided into multiple audio blocks based on the audio channel format elements;
[0011] Identify the general and type attributes of audio blocks;
[0012] Generate metadata for the corresponding general attributes and metadata for the type attributes.
[0013] Optionally, before confirming whether the received audio file is mono, the method also includes: identifying the audio tracks in the audio file.
[0014] Optionally, the audio channel format element may also include frequency, audio type, and start and end times.
[0015] Optionally, after generating the corresponding audio channel format element of the audio file, it also includes:
[0016] Identify the frequency and generate metadata for the cutoff frequency;
[0017] Identify audio type and generate type attribute metadata;
[0018] Based on the start and end times, determine the audio blocks in the audio channel and the corresponding duration metadata of the audio blocks.
[0019] Optionally, general attributes include gain, importance, head-lock, and headset virtualization.
[0020] Optionally, the type attributes of an audio block include sound bed, matrix, object, scene, and binaural.
[0021] Optionally, generate metadata for the type attributes, including:
[0022] Generate channel audio block metadata about the sound bed, including speaker location labels, sound horizontal angle, sound pitch angle, and origin normalized distance;
[0023] Generate metadata about the matrix audio block, including channel output format, matrix sub-element gain, variable gain, phase, and variable phase;
[0024] Generate object audio block metadata about the object, including location coordinates, channel locking, and object divergence;
[0025] Generate scene audio block metadata about the scene, including decoding equations, order, degree, and normalization format.
[0026] A second aspect of this application provides an audio metadata conversion apparatus, which applies the method provided in the first aspect, including:
[0027] The mono confirmation module is used to confirm whether the received audio file is mono.
[0028] The audio channel format element generation module is used to generate the corresponding audio channel format elements for audio files.
[0029] The audio block partitioning module is used to divide an audio channel into multiple audio blocks based on the audio channel format elements.
[0030] The attribute recognition module is used to identify the general attributes and type attributes of audio blocks;
[0031] The metadata generation module is used to generate metadata for corresponding general attributes and type attributes.
[0032] A third aspect of this application provides an electronic device, including: a memory and one or more processors;
[0033] Memory, used to store one or more programs;
[0034] When one or more programs are executed by one or more processors, the one or more processors implement the audio channel metadata generation method as provided in any embodiment.
[0035] The fourth aspect of this application provides a storage medium containing computer-executable instructions that are implemented by a computer processor in an audio channel metadata generation method as provided in any embodiment.
[0036] As can be seen from the above, this application provides a method for generating audio channel metadata. By determining whether the loaded audio file is a mono file, it automatically constructs audio channel format elements, reducing the reliance on manual configuration. The constructed audio channel format metadata also includes the frequency, audio type, and start and end times of the audio file.
[0037] Metadata with common attributes (gain, importance, head lock) and type attributes (sound bed, matrix, object) is generated by audio blocks as units, enabling adaptive rendering of multiple types of audio files and compatibility with mono, 5.1 channel, 7.1 channel and binaural audio formats.
[0038] Furthermore, for audio types, spatial metadata such as speaker location labels, sound level angles, and origin-normalized distances are generated for audio blocks of types such as sound beds and objects, enhancing the immersive experience of multi-channel audio.
[0039] It can optimize the channel processing order according to real-time rendering needs, and adapt to the audio rendering needs of multiple scenarios such as car audio, VR devices, and cinema systems. Attached Figure Description
[0040] Figure 1 A flowchart illustrating an audio channel metadata generation method provided in an embodiment of the present invention;
[0041] Figure 2This is a flowchart illustrating the processing of audio channel format elements in an audio channel metadata generation method provided by an embodiment of the present invention;
[0042] Figure 3 This is a flowchart illustrating the generation of type attribute metadata in an audio channel metadata generation method provided in an embodiment of the present invention.
[0043] Figure 4 This is a schematic diagram of the structure of an audio channel metadata generation device provided in an embodiment of the present invention;
[0044] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0045] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0046] Example 1
[0047] An audio channel metadata generation method, applied to an audio renderer, such as... Figures 1 to 3 As shown, it includes:
[0048] S10: Confirm whether the received audio file is mono. Before confirming mono, step S00 must be performed: Identify the audio tracks in the audio file. Identification includes recognizing the track format and whether the track is an encoded track. It's important to note that an audio track refers to multiple parallel tracks presented in a Digital Audio Workstation (DAW). These parallel tracks each define their own attributes, such as the number of channels, volume, sampling rate, and bit rate.
[0049] The purpose of identification is to obtain the attributes of the audio track and generate the audio track's metadata, which is then used for later processing.
[0050] As for identifying whether it is an encoded audio track, if it is, subsequent generation of metadata about the audio stream's attributes will be performed, and decoding will also be required; if it is not, a mono determination will be performed.
[0051] An audio file can contain multiple mono files or a single multi-channel file. If the multi-channel file is transmitted via multiple channels, it will be identified as an audio packet.
[0052] S20: If so, generate the corresponding audio channel format element of the audio file; the audio channel can be constructed through the above elements; the above audio channel format elements also include frequency, audio type, start and end time, and the recognition process does not have a sequential requirement.
[0053] The process by which the renderer identifies the audio channel format elements mentioned above is the process of identifying the audio channel.
[0054] Specifically, when the renderer identifies the frequency element, it generates metadata for the cutoff frequency, which includes both high and low cutoff frequencies. The generated metadata also includes metadata for both high and low cutoff frequencies.
[0055] When the renderer identifies the type of input audio, it generates corresponding type attribute metadata. This type attribute metadata includes, but is not limited to, soundbed, matrix, object, scene, and binaural audio. These type attributes define the audio channel type and also define the type attributes of subsequent audio blocks.
[0056] The renderer identifies the start and end times of the input audio block and determines the metadata of the start time and duration of the audio block.
[0057] Specifically, the sampling rate is extracted from the audio file, the cutoff frequency is obtained according to the Nyquist sampling theorem, and the cutoff frequency value is recorded as metadata. Dynamic time warping (DTW) is used to align multi-frame frequency data to reduce noise interference, and the median of the frequencies of 5 consecutive frames is taken to avoid instantaneous spikes.
[0058] The system parses the number of channels in an audio file, maps the number of channels to a standard type, uses Mel spectrum analysis to distinguish between speech and music, identifies ambient sounds, instrument sounds, etc. through machine learning models (such as CNN), records the channel layout and content type, and regularly updates the classification model with new labeled data to adapt to new audio types (such as AI synthesized speech).
[0059] The sample positions corresponding to the start and end times are calculated based on the sampling rate of the audio file. Waveform data of the corresponding sample intervals are extracted from the original audio data to form independent audio blocks. The duration of the independent audio blocks is calculated. Duration metadata is obtained based on the duration of the independent audio blocks. Short blocks with an interval of less than 200ms (such as coughing sounds or interruptions) are merged to achieve millisecond-level audio block annotation and support interactive audio editing.
[0060] S30: Divide the audio channel into multiple audio blocks according to the audio channel format elements; for example, when the type, cutoff frequency, or start and end time of the aforementioned audio channel is determined, the audio channel can be divided into multiple audio blocks.
[0061] S40: Identify the general and type attributes of audio blocks; after an audio channel is divided into multiple audio blocks, it is necessary to identify the general attributes of the audio blocks and the special attributes of the audio blocks under different type attributes.
[0062] The type attributes of the audio block correspond to the identification of the aforementioned input audio type. The type attributes of the audio block include, but are not limited to, sound bed, matrix, object, scene, and binaural. Audio transmission also follows this correspondence; for example, scene-based audio types will be transmitted through the audio blocks of the scene's audio channel.
[0063] S50: Generate metadata for the corresponding general attributes and metadata for the type attributes.
[0064] Common attributes include, but are not limited to, gain, importance, headlocked, and headphone virtualization. The generated metadata is the metadata corresponding to the above attributes.
[0065] As for generating metadata for type attributes, this process needs to be traced back to the process by which the renderer generates the audioChannelFormat element. In this process, the renderer receives the audio file and then obtains the metadata of the attributes of the audioChannelFormat element: audio channel format name, audio channel identifier, audio channel type description information (audio channel type description information, including type tag and / or type definition). As mentioned above, the audio channel format is divided into audio blocks (equivalent to child elements), and the obtained child element data includes the audio block format audioBlockFormat, frequency, and the audio block format attribute metadata includes the audio block format ID, start time, and duration.
[0066] Further, based on the aforementioned generated type definitions (sound bed, matrix, object, scene, and binaural), the sub-elements in the audio block format are read, that is, the aforementioned 5 types are independently identified according to their respective audio block attributes.
[0067] For example:
[0068] S51: Generate channel audio block metadata about the sound bed, including speaker label, azimuth, elevation, and origin normalized distance.
[0069] It's important to note that after the renderer reads the channel audio block metadata of the sound bed, the content it reads must contain, and can only contain, the speaker label, azimuth, elevation, and distance. Otherwise, the format of the channel audio block metadata of the sound bed is incorrect, and the audio file cannot be played. Furthermore, during this process, the aforementioned channel audio block metadata of the sound bed is stored in the renderer's DAW cache and will later be stored as a document.
[0070] S52: Generate metadata about the matrix audio block, including the channel output format outputChannelFormatDRef, matrix sub-element gain MatrixGain, variable gain GainVar, phase Phase, and variable phase PhaseVar;
[0071] S53: Generate object audio block metadata about the object, including position coordinates (including Cartesian and polar coordinates), channel lock (channelLook), and object divergence (objectDivergence).
[0072] S54: Generate scene audio block metadata about the scene, including decoding equations, order, degree, and normalization format.
[0073] Steps S51-S54 can be executed in parallel or selectively, depending on the type attribute of the audio block. Furthermore, the reading, error reporting, and storage of elements in the metadata of different types of audio blocks in steps S52-S54 are similar to those in step S51, and will not be repeated here. Therefore, before steps S51-S54, the audio file type is identified; the type is determined to be one of audio bed, matrix, object, scene, or binaural. Then, one of steps S51-S54 is executed according to the type. If the type is audio bed, step S51 is executed; if the type is matrix, step S52 is executed; if the type is object, step S53 is executed; if the type is scene, step S54 is executed; if the type is binaural, the attribute area and sub-element area of the audio channel metadata do not need to be set with other information. The audio channel name is used to indicate the ear side of the binaural audio corresponding to the audio channel, which includes the left and right ears.
[0074] It should be added here that if the type attribute of the identified audio block is binaural, the generated metadata is the same as the metadata generated by the general attribute, including gain, importance, head lock, and headphone virtualization.
[0075] This application provides a method for generating audio channel metadata. By determining whether the loaded audio file is a mono file, if so, it generates elements for the audio channels required for the file's transmission and generates metadata with general and type attributes in the form of audio blocks. This establishes the metadata for that audio channel, thus meeting the rendering and playback requirements of different types of audio files. The renderer can automatically generate metadata for up to 128 audio input channels and corresponding output metadata.
[0076] Example 2
[0077] Figure 4 A schematic diagram of an audio channel metadata generation device provided in an embodiment of the present invention includes:
[0078] Mono confirmation module 01 is used to confirm whether the received audio file is mono.
[0079] Audio channel format element generation module 02 is used to generate the corresponding audio channel format elements of an audio file.
[0080] Audio block partitioning module 03 is used to partition audio channels into multiple audio blocks according to audio channel format elements;
[0081] Attribute recognition module 04 is used to identify the general attributes and type attributes of audio blocks;
[0082] Metadata generation module 05 is used to generate metadata for corresponding general attributes and metadata for type attributes.
[0083] The audio channel metadata generation apparatus provided in this application has the same technical concept and achieves the same technical effect as the audio channel metadata generation method provided in the foregoing embodiments, and will not be described again here.
[0084] Example 3
[0085] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 5 As shown, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540. The electronic device may have one or more processors 510. Figure 5 Taking a processor 510 as an example, the electronic device may contain one or more memory units 520. Figure 5 Taking a memory 520 as an example, the processor 510, memory 520, input device 530, and output device 540 of this electronic device can be connected via a bus or other means. Figure 5Taking a bus connection as an example, the electronic device can be a computer or a server. This application uses an electronic device as a server for detailed description; the server can be a standalone server or a cluster server.
[0086] Memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules of the audio channel metadata generation apparatus in any embodiment of this application. Memory 520 may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device, etc. In addition, memory 520 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, memory 520 may further include memory remotely located relative to processor 510, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0087] Input device 530 can be used to receive input digital or character information, and to generate key signal inputs related to viewer user settings and function control of electronic devices. It can also be a camera for acquiring images and a sound pickup device for acquiring audio data. Output device 540 may include audio devices such as speakers. It should be noted that the specific composition of input device 530 and output device 540 can be set according to actual conditions.
[0088] The processor 510 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 520, namely, implementing the audio channel metadata generation method.
[0089] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the audio channel metadata generation method described above. They can also perform related operations of the audio channel metadata generation method provided in any embodiment of this application and have corresponding functions and beneficial effects.
[0090] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0091] It is worth noting that in the embodiments of the audio channel metadata generation device described above, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0092] Although the present invention has been described in detail above with general descriptions, specific embodiments, and experiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.
Claims
1. An audio channel metadata generation method applied to an audio renderer, characterized in that, The method comprises: confirming whether the received audio file belongs to a mono track; if yes, generating an audio channel format element corresponding to the audio file; dividing the audio channel into a plurality of audio blocks according to the audio channel format element; identifying the general attribute and the type attribute of the audio block; generating metadata corresponding to the general attribute and the type attribute; the type attribute is a definition of the type attribute of the audio channel and the audio block; if the type of the audio file is determined to be a matrix, the metadata of the type attribute comprises matrix audio block metadata about the matrix, including channel output format, matrix sub-element gain, variable gain, phase, and variable phase.
2. The audio channel metadata generation method of claim 1, wherein, Before the confirmation of whether the received audio file belongs to a mono track, the method further comprises: identifying the audio track in the audio file.
3. The audio channel metadata generation method of claim 1, wherein, The audio channel format element further comprises frequency, audio type, and start and end time.
4. The audio channel metadata generation method of claim 3, wherein, After the generation of the audio channel format element corresponding to the audio file, the method further comprises: identifying the frequency of the audio file to generate metadata of the cutoff frequency; identifying the audio type of the audio file to generate type attribute metadata; determining the audio block in the audio channel and the corresponding duration metadata of the audio block according to the start and end time.
5. The audio channel metadata generation method of claim 1, wherein, The general attribute comprises gain, importance, head-lock, and headphone virtualization.
6. An audio channel metadata generation apparatus applying the method of any one of claims 1 to 5, characterized by The method comprises: a mono track confirmation module for confirming whether the received audio file belongs to a mono track; an audio channel format element generation module for generating an audio channel format element corresponding to the audio file; an audio block division module for dividing the audio channel into a plurality of audio blocks according to the audio channel format element; an attribute identification module for identifying the general attribute and the type attribute of the audio block; a metadata generation module for generating metadata corresponding to the general attribute and the type attribute; the type attribute is a definition of the type attribute of the audio channel and the audio block; if the type of the audio file is determined to be a matrix, the metadata generation module is configured to generate metadata of the type attribute, which comprises matrix audio block metadata about the matrix, including channel output format, matrix sub-element gain, variable gain, phase, and variable phase.
7. An electronic device, comprising: The method comprises: a memory and one or more processors; the memory is configured to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method according to any one of claims 1-5.
8. A storage medium containing computer-executable instructions, wherein: The computer executable instructions are implemented by the computer processor to implement the method according to any one of claims 1-5.
