Audio signal encoding method and apparatus, electronic device, and storage medium
By determining the scene type of the audio signal and selecting an appropriate encoding format, the problem of poor user experience caused by changes in audio scene in voice communication is solved, and more accurate audio scene information is transmitted.
Patent Information
- Application Number
- CN202280001342.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-05-10
AI Technical Summary
In voice communication, the user's audio context may change, and existing technologies cannot effectively transmit the user's actual audio context information, resulting in a poor user experience.
By acquiring audio signals, determining their corresponding audio scene type, and selecting an appropriate input format for encoding based on the scene type and signal, a target encoded bitstream is generated to ensure that remote users can accurately obtain the audio scene information of local users.
This improves the accuracy of remote users acquiring audio from local users, thus enhancing the user experience.
Smart Images

Figure CN117813652B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to an audio signal encoding method, apparatus, electronic device, and storage medium. Background Technology
[0002] In related technologies, when users establish voice communication, they negotiate an audio format. Throughout the entire voice communication process, the negotiated audio format is consistently used to transmit the audio signal of that format from the local user to the remote user. However, the audio context of the user's voice communication may change, and the audio signal in that format may not be able to provide the remote user with accurate information about the audio context under the changing audio conditions, resulting in a poor user experience. This is a problem that urgently needs to be solved. Summary of the Invention
[0003] This disclosure provides an audio signal encoding method, apparatus, electronic device, and storage medium, which enables remote users to effectively obtain audio scene information of the audio scene in which the local user is located, thereby improving the user experience.
[0004] In a first aspect, embodiments of this disclosure provide an audio signal encoding method, the method comprising: acquiring an audio signal; determining an audio scene type corresponding to the audio signal; determining a target input format audio signal based on the audio scene type and the audio signal; and encoding the target input format audio signal to generate a target encoded bitstream.
[0005] This technical solution involves: acquiring an audio signal; determining the audio scene type corresponding to the audio signal; determining the target input format audio signal based on the audio scene type and the audio signal; and encoding the target input format audio signal to generate a target encoded bitstream. This ensures that the selected audio format signal better represents the audio scene of the local user, enabling remote users to effectively obtain audio scene information about the local user's audio scene and improving the user experience.
[0006] In some embodiments, determining the audio scene type corresponding to the audio signal includes: acquiring audio feature parameters of the audio signal; inputting the audio feature parameters into an audio scene type analysis model to determine the audio scene type corresponding to the audio signal.
[0007] In some embodiments, determining the target input format audio signal based on the audio scene type and the audio signal includes: determining the target audio signal input format based on the audio scene type and / or the audio signal; and determining the target input format audio signal based on the target audio signal input format and the audio signal.
[0008] The step of determining the target audio signal input format based on the audio scene type and the audio signal includes:
[0009] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal, the target audio signal input format is determined to be an object-based signal input format;
[0010] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, the target audio signal input format is determined to be an object-based signal input format and a scene-based signal input format;
[0011] In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, the target audio signal input format is determined to be a scene signal input format.
[0012] In some embodiments, determining the target input format audio signal based on the target audio signal input format and the audio signal includes:
[0013] In response to determining that the target audio signal input format is an object-based signal input format, the target input format audio signal is determined to be an object-based audio signal in the audio signal;
[0014] In response to determining that the target audio signal input format is an object-based signal input format and a scene-based signal input format, the target input format audio signal is determined to be an object-based audio signal and a scene-based audio signal among the audio signals;
[0015] In response to determining that the target audio signal input format is a scene-based signal input format, the target input format audio signal is determined to be a scene-based audio signal among the audio signals.
[0016] In some embodiments, encoding the target input format audio signal to generate a target encoded bitstream includes:
[0017] The target encoding kernel is determined based on the target input format audio signal, or the target encoding kernel is determined based on the audio scene type and the target input format audio signal;
[0018] The target input format audio signal is encoded according to the target encoding kernel to obtain encoding parameters;
[0019] The target encoded bitstream is generated by multiplexing the bitstream according to the encoding parameters.
[0020] In some embodiments, determining the target signal encoding kernel based on the target input format audio signal includes:
[0021] In response to the target input format audio signal being an object-based audio signal, the target encoding kernel for object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, and the target encoding kernel for metadata in the object audio signal is determined to be an object metadata parameter encoding kernel;
[0022] In response to the fact that the target input format audio signal is a scene-based audio signal, the target encoding kernel is determined to be a scene audio data encoding kernel;
[0023] In response to the fact that the target input format audio signal is a channel-based audio signal, the target encoding kernel is determined to be a channel audio data encoding kernel;
[0024] In response to the target input format audio signal being a spatial audio signal based on auxiliary metadata (MASA), the target encoding kernel of the audio data in the MASA audio signal is determined to be a scene audio data encoding kernel, and the target encoding kernel of the spatial auxiliary metadata in the MASA audio signal is determined to be a spatial auxiliary metadata parameter encoding kernel;
[0025] In response to the target input format audio signal being a mixed format audio signal, the target encoding kernel is determined to be the encoding kernel selected by the format audio signal in the mixed format audio signal, wherein the mixed format signal includes at least two of the following: object-based audio signal, scene-based audio signal, channel-based audio signal, and MASA-based audio signal.
[0026] In some embodiments, determining the target encoding kernel based on the audio scene type and the target input format audio signal includes:
[0027] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and / or background audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel of the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel of the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel of the scene audio signal is determined to be a scene audio data encoding kernel;
[0028] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be a scene audio data encoding kernel;
[0029] In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, and the target input format audio signal being a scene-based audio signal, the target encoding kernel based on the scene audio signal is determined to be a scene audio data encoding kernel.
[0030] Secondly, embodiments of this disclosure provide an audio signal encoding device, the audio signal encoding device comprising: a signal acquisition unit configured to acquire an audio signal; a type determination unit configured to determine an audio scene type corresponding to the audio signal; a target signal determination unit configured to determine a target input format audio signal based on the audio scene type and the audio signal; and an encoding processing unit configured to encode the target input format audio signal to generate a target encoded bitstream.
[0031] The type determination unit includes:
[0032] The parameter acquisition module is configured to acquire the audio feature parameters of the audio signal;
[0033] The model processing module is configured to input the audio feature parameters into the audio scene type analysis model to determine the audio scene type corresponding to the audio signal.
[0034] In some embodiments, the target signal determination unit includes: a target format determination module configured to determine a target audio signal input format based on the audio scene type and / or the audio signal; and a target signal determination module configured to determine the target input format audio signal based on the target audio signal input format and the audio signal.
[0035] In some embodiments, the target format determination module is specifically configured as follows:
[0036] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal, the target audio signal input format is determined to be an object-based signal input format;
[0037] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, the target audio signal input format is determined to be an object-based signal input format and a scene-based signal input format;
[0038] In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, the target audio signal input format is determined to be a scene signal input format.
[0039] In some embodiments, the target signal determination module is specifically configured to:
[0040] In response to determining that the target audio signal input format is an object-based signal input format, the target input format audio signal is determined to be an object-based audio signal in the audio signal;
[0041] In response to determining that the target audio signal input format is an object-based signal input format and a scene-based signal input format, the target input format audio signal is determined to be an object-based audio signal and a scene-based audio signal among the audio signals;
[0042] In response to determining that the target audio signal input format is a scene-based signal input format, the target input format audio signal is determined to be a scene-based audio signal among the audio signals.
[0043] In some embodiments, the encoding processing unit includes: an encoding kernel determination module, configured to determine a target encoding kernel for the target input format audio signal, or to determine a target encoding kernel based on the audio scene type and the target input format audio signal; a parameter acquisition module, configured to encode the target input format audio signal according to the target encoding kernel to acquire encoding parameters; and a bitstream generation module, configured to perform bitstream multiplexing according to the encoding parameters to generate the target encoded bitstream.
[0044] In some embodiments, the encoding core determination module is specifically configured as follows:
[0045] In response to the target input format audio signal being an object-based audio signal, the target encoding kernel for object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, and the target encoding kernel for metadata in the object audio signal is determined to be an object metadata parameter encoding kernel;
[0046] In response to the fact that the target input format audio signal is a scene-based audio signal, the target encoding kernel is determined to be a scene audio data encoding kernel;
[0047] In response to the fact that the target input format audio signal is a channel-based audio signal, the target encoding kernel is determined to be a channel audio data encoding kernel;
[0048] In response to the target input format audio signal being a spatial audio MASA audio signal based on auxiliary metadata, the target encoding kernel of the audio data in the MASA audio signal is determined to be a scene audio data encoding kernel, and the target encoding kernel of the spatial auxiliary metadata in the MASA audio signal is determined to be a spatial auxiliary metadata parameter encoding kernel;
[0049] In response to the target input format audio signal being a mixed format audio signal, the target encoding kernel is determined to be the encoding kernel selected by the format audio signal in the mixed format audio signal, wherein the mixed format signal includes at least two of the following: object-based audio signal, scene-based audio signal, channel-based audio signal, and MASA-based audio signal.
[0050] In some embodiments, the encoding core determination module is specifically configured as follows:
[0051] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be a scene audio data encoding kernel;
[0052] In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be a scene audio data encoding kernel;
[0053] In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, and the target input format audio signal being a scene-based audio signal, the target encoding kernel based on the scene audio signal is determined to be a scene audio data encoding kernel.
[0054] Thirdly, embodiments of this disclosure provide an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect above.
[0055] Fourthly, embodiments of this disclosure provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method described in the first aspect above.
[0056] Fifthly, embodiments of this disclosure provide a computer program product, including computer instructions, characterized in that the computer instructions, when executed by a processor, implement the method described in the first aspect above.
[0057] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0058] To more clearly illustrate the technical solutions in the embodiments or background art of this disclosure, the accompanying drawings used in the embodiments or background art of this disclosure will be described below.
[0059] Figure 1 This is a flowchart of an audio signal encoding method provided in an embodiment of this disclosure;
[0060] Figure 2 This is a flowchart of another audio signal encoding method provided in this disclosure embodiment;
[0061] Figure 3 This is a flowchart of yet another audio signal encoding method provided in this disclosure embodiment;
[0062] Figure 4 This is a flowchart of yet another audio signal encoding method provided in this disclosure embodiment;
[0063] Figure 5 This is a flowchart of yet another audio signal encoding method provided in this disclosure embodiment;
[0064] Figure 6 This is a structural diagram of an audio signal encoding device provided in an embodiment of this disclosure;
[0065] Figure 7 This is a structural diagram of a type determination unit in an audio signal encoding apparatus provided in this embodiment of the present disclosure;
[0066] Figure 8This is a structural diagram of a target signal determination unit in an audio signal encoding apparatus provided in this embodiment;
[0067] Figure 9 This is a structural diagram of an encoding processing unit in an audio signal encoding apparatus provided in this embodiment of the present disclosure;
[0068] Figure 10 This is a structural diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0069] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0070] Unless the context otherwise requires, throughout the specification and claims, the term "comprising" is interpreted as open-ended and encompassing, meaning "including, but not limited to." In the description of the specification, terms such as "some embodiments" are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this disclosure. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics mentioned may be included in any suitable manner in any one or more embodiments or examples.
[0071] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0072] At least one of the features described in this disclosure can also be described as one or more, and multiple features can be two, three, four or more, and this disclosure does not impose any limitations. In the embodiments of this disclosure, for a technical feature, the technical features in that technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D", etc., and there is no sequential order or size order among the technical features described by "first", "second", "third", "A", "B", "C" and "D".
[0073] The correspondences shown in the tables of this disclosure can be configured or predefined. The values of the information in each table are merely examples and can be configured to other values; this disclosure is not limiting. When configuring the correspondences between information and parameters, it is not necessarily required to configure all the correspondences shown in each table. For example, the correspondences shown in some rows of the tables in this disclosure may not be configured. Furthermore, appropriate modifications and adjustments can be made based on the above tables, such as splitting, merging, etc. The names of the parameters shown in the headers of the above tables can also use other names that the communication device can understand, and the values or representations of the parameters can also be other values or representations that the communication device can understand. In the implementation of the above tables, other data structures can also be used, such as arrays, queues, containers, stacks, linear lists, pointers, linked lists, trees, graphs, structures, classes, heaps, hash tables, or hash tables, etc.
[0074] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0075] The first generation of mobile communication technology (1G) was the first generation of wireless cellular technology, belonging to analog mobile communication networks. When 1G was upgraded to 2G, mobile phones switched from analog communication to digital communication. The 3G mobile communication system was proposed by the ITU (International Telecommunication Union) for international mobile communications in 2000. 4G is a further improvement on 3G technology. Both data and voice use an all-IP approach, providing real-time HD+Voice service for voice and audio. The EVS codec used can achieve high-quality compression of both voice and audio.
[0076] The voice and audio communication services provided above have expanded from narrowband signals to ultra-wideband and even full-band services, but they are still all mono services. People's demand for high-quality audio is constantly increasing. Compared with mono audio, stereo audio has orientation and distribution for each sound source and can improve clarity.
[0077] With the increase in transmission bandwidth, upgrades in terminal device signal acquisition equipment, improvements in signal processor performance, and upgrades in terminal playback equipment, three signal formats—channel-based multi-channel audio signals, object-based audio signals, and scene-based audio signals—can provide 3D audio services. The 3GPP SA4 immersive voice and audio service (IVAS) codec, which is being standardized, can support the encoding and decoding requirements of these three signal formats. Terminal devices capable of supporting 3D audio services include mobile phones, computers, tablets, conferencing systems, augmented reality (AR) / virtual reality (VR) devices, and automobiles.
[0078] In this embodiment, the audio scene of the local user may be constantly changing. For example, if the local user is communicating with a remote user in a quiet, open outdoor location, using a mono signal format as the input signal format will effectively transmit the local user's audio scene to the remote user. However, if a bird flies by at a certain time, its call is an important audio element that cannot be ignored. If the previous mono audio signal format is still used, the bird's call cannot be effectively transmitted to the remote user. In this case, using a mixed signal format combining a mono audio signal format (the local user's voice) and an object format signal (the bird's call, including the bird's call audio signal and the bird's flight path) is the optimal signal format for the current audio scene. Later, when the local user moves to a noisy open-air plaza, a scene-based signal format should be selected, such as FOA / HOA format, or a spatial audio signal format, such as MASA (Metadata-assisted spatial) format. When a local user arrives at a venue where a symphony orchestra is being played and professional audio recording equipment is available, they can choose to use an audio signal format such as (5.1 / 5.1.4 / 7.1 / 7.1.4). In this embodiment, the local user's terminal device can analyze the audio scene in real time and use the acquired audio scene type to guide the audio signal generator to output the optimal audio format signal. This ensures that the selected audio format signal better represents the local user's audio scene, enabling remote users to effectively obtain audio scene information about the local user's location and improving the user experience.
[0079] Please see Figure 1 , Figure 1 This is a flowchart of an audio signal encoding method provided in an embodiment of this disclosure.
[0080] like Figure 1 As shown, the method may include, but is not limited to, the following steps:
[0081] S1, acquire audio signal.
[0082] It is understandable that when a local user establishes voice communication with any remote user, the local user can establish voice communication with the remote user's terminal device through the local user's terminal device. In this case, the local user's terminal device can obtain the sound information of the local user's environment in real time and obtain the audio signal.
[0083] This includes sound information about the user's environment, such as sounds emitted by the user and sounds from surrounding objects. Examples of surrounding sounds include vehicle noise, bird calls, wind noise, and sounds emitted by other users nearby.
[0084] It should be noted that a terminal device is an entity on the user side used to receive or transmit signals, such as mobile phones, computers, tablets, watches, walkie-talkies, conference system equipment, augmented reality (AR) / virtual reality (VR) devices, and automobiles. Terminal devices can also be called user equipment (UE), mobile station (MS), or mobile terminal (MT). Terminal devices can be automobiles with communication capabilities, smart cars, mobile phones, wearable devices, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminal devices in industrial control, wireless terminal devices in self-driving, wireless terminal devices in remote medical surgery, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, wireless terminal devices in smart homes, and so on. The embodiments disclosed herein do not limit the specific technology or device form used in the terminal device.
[0085] In this embodiment of the disclosure, the terminal device of the local user can acquire audio signals by using a recording device, such as a microphone, which is set in or cooperates with the terminal device to acquire sound information of the environment where the local user is located, and further generate audio signals.
[0086] S2, determine the audio scene type corresponding to the audio signal.
[0087] In this embodiment of the disclosure, based on the acquisition of audio signals, the acquired audio signals can be analyzed to obtain the audio scene type corresponding to the audio signals.
[0088] It is understood that the audio signal may include sound information emitted by the user and / or sound information of surrounding objects. In this embodiment of the disclosure, the audio scene type corresponding to the audio signal can be determined based on the content included in the audio signal.
[0089] In one possible implementation, the audio scene type includes, for example, offices, theaters, cars, train stations, large shopping malls, etc. In this embodiment of the disclosure, for each audio scene type, one audio signal input format can be selected, or multiple audio signal input formats can be selected.
[0090] For example, as shown in Table 1 below:
[0091]
[0092] Table 1
[0093] It is understood that the above examples are for illustrative purposes only, and audio scene types can also be classified in other ways, or in combination with other methods. For example, audio scene types can be classified by the audio signal including only at least one main audio signal, or the audio signal including at least one main audio signal and a background audio signal, or the audio signal including only at least one background audio signal. Audio scene types can be preset as needed, and this disclosure does not impose specific limitations on them.
[0094] In this embodiment of the disclosure, for each audio scene type, one or more audio signal input formats can be selected. The selected audio signal input format can also be determined according to the method of acquiring the audio signal, such as the number of audio channels and spatial layout relationship of the audio signal.
[0095] S3 determines the target input format audio signal based on the audio scene type and audio signal.
[0096] In this embodiment of the disclosure, after acquiring the audio signal and determining the audio scene type corresponding to the audio signal, a target input format audio signal can be further determined based on the audio scene type and the audio signal. Specifically, if the audio signal includes one or more input format audio signals, the target input format audio signal is determined to be one or more input format audio signals among the audio signals based on the audio scene type and the audio signal.
[0097] It is understood that the audio signal may include one or more input format audio signals. In this embodiment of the disclosure, the target input format audio signal can be determined by pre-setting the correspondence between audio scene type and input format audio signal, and then determining the audio scene type based on the audio scene type and the correspondence.
[0098] In this embodiment of the disclosure, the target input format audio signal in the audio signal can also be determined based on the audio scene type, the correspondence, and the input format audio signal included in the audio signal.
[0099] S4 encodes the target input format audio signal to generate the target encoded bitstream.
[0100] In this embodiment of the disclosure, when a target input format audio signal is determined, the target input format audio signal is sent to the remote user's terminal device for communication. First, the target input format audio signal needs to be encoded to generate a target encoded bitstream, which is then sent to the remote user's terminal device. After receiving the target encoded bitstream, the remote user's terminal device decodes the target encoded bitstream to obtain the user's voice information.
[0101] For ease of understanding, this disclosure provides an exemplary embodiment:
[0102] like Figure 2 As shown in this embodiment, an audio signal (audio scene signal) is acquired, the audio scene of the audio signal is analyzed to determine the audio scene type, and the audio signal is input to an audio signal format generator according to the audio scene type and the audio signal to acquire the target input format audio signal (audio format signal).
[0103] Specifically, the target encoding core is determined based on the target input format audio signal and / or audio scene type. For example, if the target input format audio signal is determined to be an object-based audio signal, the target encoding core is determined to be an object audio data encoding core; if the target input format audio signal is determined to be a scene-based audio signal, the target encoding core is determined to be a scene audio data encoding core; if the target input format audio signal is determined to be both an object-based audio signal and a scene-based audio signal, the target encoding core is determined to be both an object audio data encoding core and a scene audio data encoding core, and so on.
[0104] In this embodiment, a defined target encoding core is used to encode the target input format audio signal (audio format signal), and the encoded stream is multiplexed to generate a target encoded stream, which is then sent to the remote user's terminal device. Upon receiving the target encoded stream, the remote user's terminal device decodes it to obtain the user's audio information.
[0105] By implementing the embodiments of this disclosure, an audio signal is acquired; the audio scene type corresponding to the audio signal is determined; a target input format audio signal is determined based on the audio scene type and the audio signal; and the target input format audio signal is encoded to generate a target encoded bitstream. This ensures that the selected audio format signal better represents the audio scene of the local user, enabling remote users to effectively obtain audio scene information about the local user's audio scene, thus improving the user experience.
[0106] Please see Figure 3 , Figure 3 This is a flowchart of another audio signal encoding method provided in the embodiments of this disclosure.
[0107] like Figure 3 As shown, the method may include, but is not limited to, the following steps:
[0108] S10, acquire audio signal.
[0109] The relevant description of S10 can be found in the relevant description in the above embodiments, and the same content will not be repeated here.
[0110] S20, determine the audio scene type corresponding to the audio signal.
[0111] In this embodiment of the disclosure, based on the acquisition of audio signals, the acquired audio signals can be analyzed to obtain the audio scene type corresponding to the audio signals.
[0112] In some embodiments, determining the audio scene type corresponding to the audio signal includes: acquiring audio feature parameters of the audio signal; inputting the audio feature parameters into an audio scene type analysis model to determine the audio scene type corresponding to the audio signal.
[0113] In this embodiment of the disclosure, audio feature parameters of the audio signal are obtained, such as linear prediction cepstral coefficients, zero-crossing rate, and Mel-frequency cepstral coefficients. An audio scene type analysis model is used, such as an HMM (Hidden Markov Model), Gaussian mixture model, or other mathematical models. Having obtained the audio feature parameters of the audio signal, inputting these parameters into the audio scene type analysis model allows the determination of the audio scene type corresponding to the audio signal.
[0114] It is understood that in the embodiments of this disclosure, the audio scene type analysis model can determine the audio scene type of the audio signal based on the audio feature parameters of the audio signal. The audio scene type analysis model can be obtained through pre-training or pre-setting, and can adopt methods in related technologies. The embodiments of this disclosure do not impose specific limitations on this.
[0115] The relevant descriptions of audio scene types can be found in the above embodiments, and will not be repeated here.
[0116] In some embodiments, determining the target audio signal input format based on the audio scene type includes:
[0117] In response to the audio scene type characterization indicating that the audio scene includes at least one main audio signal, the target audio signal input format is determined to be based on the object signal input format;
[0118] In response to the audio scene type characterization that the audio scene includes at least one main audio signal and a background audio signal, the target audio signal input format is determined to be either an object-based signal input format or a scene-based signal input format.
[0119] In response to the audio scene type characterization indicating that the audio scene includes only at least one background audio signal, the target audio signal input format is determined to be a scene-based signal input format.
[0120] In this embodiment of the disclosure, when the audio scene type is determined to represent that the audio scene includes at least one main audio signal, the target audio signal input format can be determined to be based on the object signal input format.
[0121] In this embodiment of the disclosure, when the audio scene type is determined to represent that the audio scene includes at least one main audio signal and a background audio signal, the target audio signal input format can be determined to be an object signal input format and a scene signal input format.
[0122] In this embodiment of the disclosure, determining the audio scene type indicates that the audio scene includes at least one main audio signal and a background audio signal, and can determine that the audio signal is a mixed format audio signal, including input format audio signals of at least two audio scene types.
[0123] In this embodiment of the disclosure, when the audio scene type is determined to represent that the audio scene includes at least one main audio signal and a background audio signal, and the audio signal is determined to be a mixed format audio signal, the target audio signal input format can also be determined to be at least two of the following: based on object signal input format, based on mono format signal, based on stereo format signal, based on MASA format signal, based on channel format signal, based on FOA format signal, and based on HOA format signal.
[0124] In this embodiment of the disclosure, when the audio scene type is determined to represent that the audio scene includes only at least one background audio signal, the target audio signal input format can be determined to be a scene signal input format.
[0125] In some embodiments, determining the target input format audio signal based on the target audio signal input format and the audio signal includes:
[0126] In response to determining that the target audio signal input format is an object-based signal input format, the target input format audio signal is determined to be an object-based audio signal in the audio signal;
[0127] In response to determining that the target audio signal input format is an object-based signal input format and a scene-based signal input format, the target input format audio signal is determined to be an object-based audio signal and a scene-based audio signal among the audio signals;
[0128] In response to determining that the target audio signal input format is a scene-based signal input format, the target input format audio signal is determined to be a scene-based audio signal in the audio signal.
[0129] In this embodiment of the disclosure, when the target audio signal input format is determined to be an object-based signal input format, the target input format audio signal is determined to be an object-based audio signal in the audio signal.
[0130] In this embodiment of the disclosure, when the target audio signal input format is determined to be an object-based signal input format and a scene-based signal input format, the target input format audio signal can be determined to be an object-based audio signal and a scene-based audio signal among the audio signals.
[0131] In this embodiment of the disclosure, when it is determined that the target audio signal input format is a scene-based signal input format, the target input format audio signal can be determined to be a scene-based audio signal in the audio signal.
[0132] S30, determine the target encoding core based on the target input format audio signal, or determine the target encoding core based on the audio scene type and the target input format audio signal.
[0133] In some embodiments, determining a target signal encoding kernel based on a target input format audio signal includes:
[0134] In response to the target input format audio signal being an object-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined as the object audio data encoding kernel, and the target encoding kernel for the metadata in the object audio signal is determined as the object metadata parameter encoding kernel;
[0135] In response to the target input format audio signal being a scene-based audio signal, the target encoding kernel is determined to be the scene audio data encoding kernel;
[0136] In response to the target input format audio signal being a channel-based audio signal, the target encoding kernel is determined to be a channel audio data encoding kernel;
[0137] In response to the target input format audio signal being a spatial audio MASA audio signal based on auxiliary metadata, the target encoding kernel for the audio data in the MASA audio signal is determined to be the scene audio data encoding kernel, and the target encoding kernel for the spatial auxiliary metadata in the MASA audio signal is determined to be the spatial auxiliary metadata parameter encoding kernel.
[0138] In response to the target input format audio signal being a mixed format audio signal, the target encoding kernel is determined to be the encoding kernel selected from the format audio signal in the mixed format audio signal, wherein the mixed format signal includes at least two of the following: object-based audio signal, scene-based audio signal, channel-based audio signal, and MASA-based audio signal.
[0139] In this embodiment of the disclosure, when the target input format audio signal is determined to be an object-based audio signal, wherein the object-based audio signal includes object audio data and metadata, the target encoding kernel of the object audio data in the object-based audio signal can be determined as the object audio data encoding kernel, and the target encoding kernel of the metadata in the object audio signal can be determined as the object metadata parameter encoding kernel.
[0140] In this embodiment of the disclosure, when the target input format audio signal is determined to be a scene-based audio signal, the target encoding kernel can be determined to be a scene audio data encoding kernel.
[0141] In this embodiment of the disclosure, when the target input format audio signal is determined to be a channel-based audio signal, the target encoding core can be determined to be a channel audio data encoding core.
[0142] In this embodiment of the disclosure, when the target input format audio signal is determined to be a spatial audio MASA audio signal based on auxiliary metadata, wherein the MASA audio signal includes audio data and spatial auxiliary metadata, the target encoding kernel of the audio data in the MASA audio signal can be determined to be the scene audio data encoding kernel, and the target encoding kernel of the spatial auxiliary metadata in the MASA audio signal can be determined to be the spatial auxiliary metadata parameter encoding kernel.
[0143] In this embodiment of the disclosure, when it is determined that the target input format audio signal is a mixed format audio signal, the target encoding core can be determined to be the encoding core selected by the format audio signal in the mixed format audio signal, wherein the mixed format signal includes at least two of the following: object-based audio signal, scene-based audio signal, channel-based audio signal, and MASA-based audio signal.
[0144] In some embodiments, determining the target encoding kernel based on the audio scene type and the target input format audio signal includes:
[0145] In response to the audio scene type characterization that the audio scene includes at least one main audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be the object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be the object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be the scene audio data encoding kernel.
[0146] In response to the audio scene type characterization that the audio scene includes at least one main audio signal and a background audio signal, and the target input format audio signal is an object-based audio signal and a scene-based audio signal, the target encoding kernel of the object audio data in the object-based audio signal is determined to be the object audio data encoding kernel, the target encoding kernel of the metadata in the object audio signal is determined to be the object metadata parameter encoding kernel, and the target encoding kernel of the scene audio signal is determined to be the scene audio data encoding kernel.
[0147] In response to the audio scene type characterization that the audio scene includes only at least one background audio signal and the target input format audio signal being a scene-based audio signal, the target encoding kernel based on the scene audio signal is determined to be the scene audio data encoding kernel.
[0148] In this embodiment of the disclosure, when it is determined that the audio scene type characterizes the audio scene as including at least one main audio signal, and the target input format audio signal is an object-based audio signal and a scene-based audio signal, the target encoding kernel of the object audio data in the object-based audio signal can be determined as the object audio data encoding kernel, the target encoding kernel of the metadata in the object audio signal can be determined as the object metadata parameter encoding kernel, and the target encoding kernel of the scene audio signal can be determined as the scene audio data encoding kernel.
[0149] In this embodiment of the disclosure, when the audio scene type is determined to represent that the audio scene includes at least one main audio signal and a background audio signal, and the target input format audio signal is an object-based audio signal and a scene-based audio signal, the target encoding kernel of the object audio data in the object-based audio signal is determined to be the object audio data encoding kernel, the target encoding kernel of the metadata in the object audio signal is determined to be the object metadata parameter encoding kernel, and the target encoding kernel of the scene audio signal is determined to be the scene audio data encoding kernel.
[0150] In this embodiment of the disclosure, when it is determined that the audio scene type characterizes that the audio scene includes only at least one background audio signal, and the target input format audio signal is a scene-based audio signal, the target encoding kernel based on the scene audio signal can be determined as the scene audio data encoding kernel.
[0151] S40: Encode the target input format audio signal according to the target encoding check and obtain the encoding parameters.
[0152] S50 performs bitstream multiplexing based on encoding parameters to generate the target encoded bitstream.
[0153] In this embodiment, the relevant descriptions of S40 and S50 can be found in the relevant descriptions in the above embodiments, and will not be repeated here.
[0154] In one possible implementation, such as Figure 4 As shown in this embodiment, an audio signal is acquired, and the audio scene type corresponding to the audio signal is determined. Based on the audio scene type and / or the audio signal, if the target input format audio signal is determined to be an object-based audio signal, then the target encoding kernel for the object audio data in the object-based audio signal is determined to be the object audio data encoding kernel, and the target encoding kernel for the metadata in the object audio signal is determined to be the object metadata parameter encoding kernel. After that, bitstream multiplexing is performed to obtain the target encoded bitstream. Thus, it can be ensured that the selected audio format signal can better represent the audio scene of the local user, enabling the remote user to obtain the audio scene information of the local user's audio scene and improve the user experience.
[0155] In another possible implementation, such as Figure 5 As shown in this embodiment, an audio signal is acquired, and the audio scene type corresponding to the audio signal is determined. Based on the audio scene type and / or the audio signal, if the target input format audio signal is determined to be a MASA-based audio signal, then the target encoding kernel for the audio data in the MASA-based audio signal is determined to be the scene audio data encoding kernel. The target encoding kernel for the spatial auxiliary metadata in the MASA-based audio signal can also be determined to be the spatial auxiliary metadata parameter encoding kernel. The spatial auxiliary metadata in the MASA-based audio signal is optional. Afterwards, bitstream multiplexing is performed to acquire the target encoded bitstream. This ensures that the selected audio format signal can better represent the audio scene of the local user, enabling the remote user to effectively obtain the audio scene information of the local user's audio scene, thus improving the user experience.
[0156] Figure 6 This is a structural diagram of an audio signal encoding device provided in an embodiment of this disclosure.
[0157] like Figure 6 As shown, the audio signal encoding device 1 includes: a signal acquisition unit 11, a type determination unit 12, a target signal determination unit 13, and an encoding processing unit 14.
[0158] The signal acquisition unit 11 is configured to acquire audio signals.
[0159] The type determination unit 12 is configured to determine the audio scene type corresponding to the audio signal.
[0160] The target signal determination unit 13 is configured to determine the target input format audio signal based on the audio scene type and the audio signal.
[0161] The encoding processing unit 14 is configured to encode the target input format audio signal to generate the target encoded bitstream.
[0162] like Figure 7 As shown, in some embodiments, the type determination unit 12 includes a parameter acquisition module 121 and a model processing module 122.
[0163] The parameter acquisition module 121 is configured to acquire audio feature parameters of the audio signal.
[0164] The model processing module 122 is configured to input audio feature parameters into the audio scene type analysis model to determine the audio scene type corresponding to the audio signal.
[0165] like Figure 8 As shown, in some embodiments, the target signal determination unit 13 includes a target format determination module 131 and a target signal determination module 132.
[0166] The target format determination module 131 is configured to determine the target audio signal input format based on the audio scene type and / or the audio signal.
[0167] The target signal determination module 132 is configured to determine the target input format audio signal based on the target audio signal input format and the audio signal.
[0168] In some embodiments, the target format determination module 131 is specifically configured as follows:
[0169] In response to the audio scene type characterization indicating that the audio scene includes at least one main audio signal, the target audio signal input format is determined to be based on the object signal input format;
[0170] In response to the audio scene type characterization that the audio scene includes at least one main audio signal and a background audio signal, the target audio signal input format is determined to be either an object-based signal input format or a scene-based signal input format.
[0171] In response to the audio scene type characterization indicating that the audio scene includes only at least one background audio signal, the target audio signal input format is determined to be a scene-based signal input format.
[0172] In some embodiments, the target signal determination module 132 is specifically configured as follows:
[0173] In response to determining that the target audio signal input format is an object-based signal input format, the target input format audio signal is determined to be an object-based audio signal in the audio signal;
[0174] In response to determining that the target audio signal input format is an object-based signal input format and a scene-based signal input format, the target input format audio signal is determined to be an object-based audio signal and a scene-based audio signal among the audio signals;
[0175] In response to determining that the target audio signal input format is a scene-based signal input format, the target input format audio signal is determined to be a scene-based audio signal in the audio signal.
[0176] like Figure 9 As shown, in some embodiments, the encoding processing unit 14 includes: an encoding kernel determination module 141, a parameter acquisition module 142, and a code stream generation module 143.
[0177] The encoding core determination module 141 is configured to determine the target encoding core based on the target input format audio signal, or to determine the target encoding core based on the audio scene type and the target input format audio signal.
[0178] The parameter acquisition module 142 is configured to encode the target input format audio signal according to the target encoding kernel and acquire the encoding parameters.
[0179] The bitstream generation module 143 is configured to multiplex the bitstream according to the encoding parameters to generate the target encoded bitstream.
[0180] In some embodiments, the encoding core determination module 141 is specifically configured as follows:
[0181] In response to the target input format audio signal being an object-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined as the object audio data encoding kernel, and the target encoding kernel for the metadata in the object audio signal is determined as the object metadata parameter encoding kernel;
[0182] In response to the target input format audio signal being a scene-based audio signal, the target encoding kernel is determined to be the scene audio data encoding kernel;
[0183] In response to the target input format audio signal being a channel-based audio signal, the target encoding kernel is determined to be a channel audio data encoding kernel;
[0184] In response to the target input format audio signal being a spatial audio MASA audio signal based on auxiliary metadata, the target encoding kernel for the audio data in the MASA audio signal is determined to be the scene audio data encoding kernel, and the target encoding kernel for the spatial auxiliary metadata in the MASA audio signal is determined to be the spatial auxiliary metadata parameter encoding kernel.
[0185] In response to the target input format audio signal being a mixed format audio signal, the target encoding kernel is determined to be the encoding kernel selected from the format audio signal in the mixed format audio signal, wherein the mixed format signal includes at least two of the following: object-based audio signal, scene-based audio signal, channel-based audio signal, and MASA-based audio signal.
[0186] In some embodiments, the encoding core determination module 141 is specifically configured as follows:
[0187] In response to the audio scene type characterization that the audio scene includes at least one main audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be the object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be the object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be the scene audio data encoding kernel.
[0188] In response to the audio scene type characterization that the audio scene includes at least one main audio signal and a background audio signal, and the target input format audio signal is an object-based audio signal and a scene-based audio signal, the target encoding kernel of the object audio data in the object-based audio signal is determined to be the object audio data encoding kernel, the target encoding kernel of the metadata in the object audio signal is determined to be the object metadata parameter encoding kernel, and the target encoding kernel of the scene audio signal is determined to be the scene audio data encoding kernel.
[0189] In response to the audio scene type characterization that the audio scene includes only at least one background audio signal and the target input format audio signal being a scene-based audio signal, the target encoding kernel based on the scene audio signal is determined to be the scene audio data encoding kernel.
[0190] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0191] The audio signal encoding apparatus provided in this disclosure can perform the audio signal encoding method as described in some of the above embodiments, and its beneficial effects are the same as those of the audio signal encoding method described above, so they will not be repeated here.
[0192] Figure 10This is a structural diagram of an electronic device 100 for performing an audio signal encoding method, according to an exemplary embodiment.
[0193] For example, electronic device 100 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0194] like Figure 10 As shown, the electronic device 100 may include one or more of the following components: a processing component 101, a memory 102, a power supply component 103, a multimedia component 104, an audio component 105, an input / output (I / O) interface 106, a sensor component 107, and a communication component 108.
[0195] Processing component 101 typically controls the overall operation of electronic device 100, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 101 may include one or more processors 1011 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 101 may include one or more modules to facilitate interaction between processing component 101 and other components. For example, processing component 101 may include a multimedia module to facilitate interaction between multimedia component 104 and processing component 101.
[0196] Memory 102 is configured to store various types of data to support the operation of electronic device 100. Examples of such data include instructions for any application or method operating on electronic device 100, contact data, phonebook data, messages, pictures, videos, etc. Memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random-Access Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory), magnetic storage, flash memory, magnetic disk, or optical disk.
[0197] Power supply component 103 provides power to various components of electronic device 100. Power supply component 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 100.
[0198] Multimedia component 104 includes a touch display screen that provides an output interface between the electronic device 100 and the user. In some embodiments, the touch display screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 104 includes a front-facing camera and / or a rear-facing camera. When the electronic device 100 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0199] Audio component 105 is configured to output and / or input audio signals. For example, audio component 105 includes a MIC (microphone) configured to receive external audio signals when electronic device 100 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 102 or transmitted via communication component 108. In some embodiments, audio component 105 also includes a speaker for outputting audio signals.
[0200] I / O interface 2112 provides an interface between processing component 101 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.
[0201] Sensor assembly 107 includes one or more sensors for providing state assessments of various aspects of electronic device 100. For example, sensor assembly 107 may detect the on / off state of electronic device 100, the relative positioning of components such as the display and keypad of electronic device 100, changes in position of electronic device 100 or a component of electronic device 100, the presence or absence of user contact with electronic device 100, orientation or acceleration / deceleration of electronic device 100, and temperature changes of electronic device 100. Sensor assembly 107 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 107 may also include an optical sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor, for use in imaging applications. In some embodiments, sensor assembly 107 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0202] Communication component 108 is configured to facilitate wired or wireless communication between electronic device 100 and other devices. Electronic device 100 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 108 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 108 also includes an NFC (Near Field Communication) module to facilitate short-range communication. For example, the NFC module may be implemented based on RFID (Radio Frequency Identification) technology, IrDA (Infrared Data Association) technology, UWB (Ultra Wide Band) technology, BT (Bluetooth) technology, and other technologies.
[0203] In an exemplary embodiment, the electronic device 100 may be implemented by one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), digital signal processing devices (DSPDs), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), controllers, microcontrollers, microprocessors, or other electronic components to execute the aforementioned audio signal encoding method. It should be noted that the implementation process and technical principles of the electronic device in this embodiment are explained in the foregoing description of the audio signal encoding method of this disclosure embodiment, and will not be repeated here.
[0204] The electronic device 100 provided in this embodiment can perform the audio signal encoding method as described in some of the above embodiments, and its beneficial effects are the same as those of the audio signal encoding method described above, so they will not be repeated here.
[0205] To implement the above embodiments, this disclosure also proposes a storage medium.
[0206] When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the audio signal encoding method as described above. For example, the storage medium may be a ROM (Read Only Memory Image), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage device, etc.
[0207] To implement the above embodiments, this disclosure also provides a computer program product that, when executed by the processor of an electronic device, enables the electronic device to perform the audio signal encoding method as described above.
[0208] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0209] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0210] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. An audio signal encoding method, characterized in that, include: Acquire audio signals; Determine the audio scene type corresponding to the audio signal; Based on the audio scene type and the audio signal, determine the target input format audio signal; The target input format audio signal is encoded to generate a target encoded bitstream; The step of determining the target input format audio signal based on the audio scene type and the audio signal includes: Determine the target audio signal input format based on the audio scene type; The target input format audio signal is determined based on the target audio signal input format and the audio signal. Determining the target audio signal input format based on the audio scene type includes: In response to the audio scene type characterizing that the audio scene includes at least one main audio signal, the target audio signal input format is determined to be an object-based signal input format; In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, the target audio signal input format is determined to be an object-based signal input format and a scene-based signal input format; In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, the target audio signal input format is determined to be a scene signal input format.
2. The method as described in claim 1, characterized in that, Determining the audio scene type corresponding to the audio signal includes: Obtain the audio feature parameters of the audio signal; The audio feature parameters are input into the audio scene type analysis model to determine the audio scene type corresponding to the audio signal.
3. The method as described in claim 1, characterized in that, The step of determining the target input format audio signal based on the target audio signal input format and the audio signal includes: In response to determining that the target audio signal input format is an object-based signal input format, the target input format audio signal is determined to be an object-based audio signal in the audio signal; In response to determining that the target audio signal input format is an object-based signal input format and a scene-based signal input format, the target input format audio signal is determined to be an object-based audio signal and a scene-based audio signal among the audio signals; In response to determining that the target audio signal input format is a scene-based signal input format, the target input format audio signal is determined to be a scene-based audio signal among the audio signals.
4. The method according to any one of claims 1 to 3, characterized in that, The process of encoding the target input format audio signal to generate a target encoded bitstream includes: The target encoding kernel is determined based on the target input format audio signal, or the target encoding kernel is determined based on the audio scene type and the target input format audio signal; The target input format audio signal is encoded according to the target encoding kernel to obtain encoding parameters; The target encoded bitstream is generated by multiplexing the bitstream according to the encoding parameters.
5. The method as described in claim 4, characterized in that, The step of determining the target signal encoding kernel based on the target input format audio signal includes: In response to the target input format audio signal being an object-based audio signal, the target encoding kernel for object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, and the target encoding kernel for metadata in the object audio signal is determined to be an object metadata parameter encoding kernel; In response to the fact that the target input format audio signal is a scene-based audio signal, the target encoding kernel is determined to be a scene audio data encoding kernel; In response to the fact that the target input format audio signal is a channel-based audio signal, the target encoding kernel is determined to be a channel audio data encoding kernel; In response to the target input format audio signal being a spatial audio MASA audio signal based on auxiliary metadata, the target encoding kernel of the audio data in the MASA audio signal is determined to be a scene audio data encoding kernel, and the target encoding kernel of the spatial auxiliary metadata in the MASA audio signal is determined to be a spatial auxiliary metadata parameter encoding kernel; In response to the target input format audio signal being a mixed format audio signal, the target encoding kernel is determined to be the encoding kernel selected by the format audio signal in the mixed format audio signal, wherein the mixed format audio signal includes at least two of the following: object-based audio signal, scene-based audio signal, channel-based audio signal, and MASA-based audio signal.
6. The method as described in claim 4, characterized in that, The step of determining the target encoding kernel based on the audio scene type and the target input format audio signal includes: In response to the audio scene type characterizing that the audio scene includes at least one main audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be a scene audio data encoding kernel; In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be a scene audio data encoding kernel; In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, and the target input format audio signal being a scene-based audio signal, the target encoding kernel based on the scene audio signal is determined to be a scene audio data encoding kernel.
7. An audio signal encoding device, characterized in that, include: The signal acquisition unit is configured to acquire audio signals; The type determination unit is configured to determine the audio scene type corresponding to the audio signal; The target signal determination unit is configured to determine a target input format audio signal based on the audio scene type and the audio signal; The encoding processing unit is configured to encode the target input format audio signal to generate a target encoded bitstream; The target signal determination unit includes: The target format determination module is configured to determine the target audio signal input format based on the audio scene type; The target signal determination module is configured to determine the target input format audio signal based on the target audio signal input format and the audio signal; The target format determination module is specifically configured as follows: In response to the audio scene type characterizing that the audio scene includes at least one main audio signal, the target audio signal input format is determined to be an object-based signal input format; In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, the target audio signal input format is determined to be an object-based signal input format and a scene-based signal input format; In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, the target audio signal input format is determined to be a scene signal input format.
8. The apparatus as claimed in claim 7, characterized in that, The type determination unit includes: The parameter acquisition module is configured to acquire the audio feature parameters of the audio signal; The model processing module is configured to input the audio feature parameters into the audio scene type analysis model to determine the audio scene type corresponding to the audio signal.
9. The apparatus as claimed in claim 7, characterized in that, The target signal determination module is specifically configured as follows: In response to determining that the target audio signal input format is an object-based signal input format, the target input format audio signal is determined to be an object-based audio signal in the audio signal; In response to determining that the target audio signal input format is an object-based signal input format and a scene-based signal input format, the target input format audio signal is determined to be an object-based audio signal and a scene-based audio signal among the audio signals; In response to determining that the target audio signal input format is a scene-based signal input format, the target input format audio signal is determined to be a scene-based audio signal among the audio signals.
10. The apparatus according to any one of claims 7 to 9, characterized in that, The encoding processing unit includes: The encoding kernel determination module is configured to determine a target encoding kernel based on the target input format audio signal, or to determine a target encoding kernel based on the audio scene type and the target input format audio signal; The parameter acquisition module is configured to encode the target input format audio signal according to the target encoding kernel and acquire encoding parameters. The bitstream generation module is configured to multiplex the bitstream according to the encoding parameters to generate the target encoded bitstream.
11. The apparatus as claimed in claim 10, characterized in that, The encoding core determination module is specifically configured as follows: In response to the target input format audio signal being an object-based audio signal, the target encoding kernel for object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, and the target encoding kernel for metadata in the object audio signal is determined to be an object metadata parameter encoding kernel; In response to the fact that the target input format audio signal is a scene-based audio signal, the target encoding kernel is determined to be a scene audio data encoding kernel; In response to the fact that the target input format audio signal is a channel-based audio signal, the target encoding kernel is determined to be a channel audio data encoding kernel; In response to the target input format audio signal being a spatial audio MASA audio signal based on auxiliary metadata, the target encoding kernel of the audio data in the MASA audio signal is determined to be a scene audio data encoding kernel, and the target encoding kernel of the spatial auxiliary metadata in the MASA audio signal is determined to be a spatial auxiliary metadata parameter encoding kernel; In response to the target input format audio signal being a mixed format audio signal, the target encoding kernel is determined to be the encoding kernel selected by the format audio signal in the mixed format audio signal, wherein the mixed format audio signal includes at least two of the following: object-based audio signal, scene-based audio signal, channel-based audio signal, and MASA-based audio signal.
12. The apparatus as claimed in claim 10, characterized in that, The encoding core determination module is specifically configured as follows: In response to the audio scene type characterizing that the audio scene includes at least one main audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be a scene audio data encoding kernel; In response to the audio scene type characterizing that the audio scene includes at least one main audio signal and a background audio signal, and the target input format audio signal being an object-based audio signal and a scene-based audio signal, the target encoding kernel for the object audio data in the object-based audio signal is determined to be an object audio data encoding kernel, the target encoding kernel for the metadata in the object audio signal is determined to be an object metadata parameter encoding kernel, and the target encoding kernel for the scene audio signal is determined to be a scene audio data encoding kernel; In response to the audio scene type characterizing that the audio scene includes only at least one background audio signal, and the target input format audio signal being a scene-based audio signal, the target encoding kernel based on the scene audio signal is determined to be a scene audio data encoding kernel.
13. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 6.
15. A computer program product comprising computer instructions, characterized in that, The computer instructions, when executed by a processor, implement the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Audio coding method and device, audio decoding method and device and electronic equipment
CN113948099A
Audio encoding device and audio decoding device
US20160225377A1
