Signal coding method, signal decoding method, coding device and decoding device, and storage medium

Through the adaptive encoding selection method, the encoding mode is determined based on the audio signal parameters, which solves the problem of loss of audio frequency components in the traditional encoding method, and realizes effective encoding and decoding of human-audible and machine audio in the field of automation.

WO2025145380A1PCT designated stage expired Publication Date: 2025-07-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/070582
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2025-07-10

AI Technical Summary

Technical Problem

Existing audio encoding methods may lead to the loss of effective audio frequency components in the field of automation, especially for machine audio signals, and traditional lossy encoding algorithms based on the frequency range of the human ear cannot meet the needs of machine analysis.

Method used

Adaptive encoding selection method is adopted to determine the encoding mode of a suitable human ear-audible audio signal or machine audio signal based on the parameter information of the audio signal, and indicate the encoding mode through edge information to generate a bit stream for encoding and decoding, ensuring the accuracy of encoding and the retention of effective frequency components.

Benefits of technology

It realizes effective encoding of human-audible audio and machine audio in the field of automation, ensures encoding accuracy, avoids the loss of frequency components caused by lossy encoding in traditional methods, and is suitable for machine analysis scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024070582_10072025_PF_FP_ABST
    Figure CN2024070582_10072025_PF_FP_ABST
Patent Text Reader

Abstract

A signal coding method, a signal decoding method, a coding device and a decoding device (101, 102), and a storage medium. The signal coding method comprises: on the basis of parameter information of an audio signal, determining a corresponding coding mode and side information (S3101), the audio signal being a human-ear-audible audio signal or a machine audio signal, the coding mode being a first coding mode corresponding to the human-ear-audible audio signal or a second coding mode corresponding to the machine audio signal, the first coding mode and the second coding mode having different coding algorithms, and the side information being used for indicating the coding mode; on the basis of the coding mode, coding the audio signal to obtain coded data (S3102); and outputting a bitstream on the basis of the coded data and the side information (S3103). The signal coding method adaptively selects the coding mode suitable for the audio signal on the basis of the parameter information of the input audio signal, thereby ensuring the coding accuracy, reserving effective audio frequency components, and avoiding the inapplicability caused by coding an machine audio on the basis of a human-ear-audible frequency range.
Need to check novelty before this filing date? Find Prior Art

Description

Signal encoding and decoding method, device and storage medium Technical Field

[0001] The present disclosure relates to the field of signal processing technology, and in particular to a signal encoding and decoding method, device, and storage medium. Background Art

[0002] Sound waves can be classified into different types based on their frequency. Among them, sound waves with frequencies below 20Hz are called infrasound; sound waves with frequencies between 20Hz and 20kHz are called audible sound waves; sound waves with frequencies above 20kHz are called ultrasonic waves; and sound waves with frequencies above 500kHz are called megasonic waves. Audible sound waves include audio signals audible to the human ear, such as music or speech. Audio encoding of audio signals can be performed based on the frequency range audible to the human ear and the masking effect.

[0003] Summary of the Invention

[0004] In more and more automated fields, correlated audio coding may result in the loss of valid audio frequency components.

[0005] Embodiments of the present disclosure provide a signal encoding and decoding method, device, and storage medium.

[0006] In a first aspect, an embodiment of the present disclosure provides a signal encoding method, the method comprising:

[0007] Determining a corresponding encoding mode and side information based on parameter information of an audio signal; wherein the audio signal is an audible audio signal or a machine audio signal, the encoding mode is a first encoding mode corresponding to the audible audio signal or a second encoding mode corresponding to the machine audio signal, the first encoding mode and the second encoding mode differ in encoding algorithms, and the side information is used to indicate the encoding mode;

[0008] Encode the audio signal according to the encoding mode to obtain encoded data;

[0009] A bit stream is output according to the coded data and the side information.

[0010] In a second aspect, an embodiment of the present disclosure provides a signal decoding method, the method comprising:

[0011] Determining side information and coded data according to the bitstream, wherein the side information is used to indicate a coding mode;

[0012] Determining a corresponding decoding mode based on the side information; wherein the decoding mode is a first decoding mode corresponding to a human-audible audio signal or a second decoding mode corresponding to a machine-audible audio signal, and the first decoding mode and the second decoding mode differ in decoding algorithms;

[0013] The encoded data is decoded according to the decoding mode to obtain an audio signal.

[0014] In a third aspect, an embodiment of the present disclosure provides an encoding device, including:

[0015] a processing module, configured to determine a corresponding encoding mode and side information based on parameter information of an audio signal; wherein the audio signal is an audible audio signal or a machine audio signal, the encoding mode is a first encoding mode corresponding to the audible audio signal or a second encoding mode corresponding to the machine audio signal, the first encoding mode and the second encoding mode differ in encoding algorithms, and the side information is used to indicate the encoding mode;

[0016] The processing module is further configured to encode the audio signal according to the encoding mode to obtain encoded data;

[0017] The processing module is further configured to output a bit stream according to the encoded data and the side information.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a decoding device, including:

[0019] a processing module, configured to determine side information and coded data based on a bitstream, wherein the side information is used to indicate a coding mode;

[0020] The processing module is further configured to determine a corresponding decoding mode based on the side information; wherein the decoding mode is a first decoding mode corresponding to a human-audible audio signal or a second decoding mode corresponding to a machine-audible audio signal, and the first decoding mode and the second decoding mode differ in decoding algorithms;

[0021] The processing module is further configured to decode the encoded data according to the decoding mode to obtain an audio signal.

[0022] In a fifth aspect, an embodiment of the present disclosure provides a communication device, including:

[0023] one or more processors;

[0024] The communication device is used to execute the method described in the first aspect or the second aspect.

[0025] In a sixth aspect, an embodiment of the present disclosure provides a storage medium, wherein the storage medium stores instructions, wherein:

[0026] When the instruction is executed on a communication device, the communication device is caused to execute the method according to the first aspect or the second aspect.

[0027] In a seventh aspect, an embodiment of the present disclosure provides a communication system, including an encoding device and a decoding device, wherein:

[0028] The encoding device is used to perform the method according to the first aspect;

[0029] The decoding device is used to execute the method described in the second aspect.

[0030] In the disclosed embodiment, a coding mode suitable for the audio signal is adaptively selected based on parameter information of the input audio signal, thereby ensuring the accuracy of the coding and retaining the valid audio frequency components, thereby avoiding the inapplicability problem caused by encoding the machine audio based on the frequency range audible to the human ear. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following drawings required for describing the embodiments are introduced. The following drawings are merely some embodiments of the present disclosure and do not impose specific limitations on the protection scope of the present disclosure.

[0032] FIG1 is a schematic diagram of an architecture provided according to an embodiment of the present disclosure;

[0033] FIG2a is a schematic flow chart of a method according to an embodiment of the present disclosure;

[0034] Figures 2b to 2i are process flow charts provided according to an embodiment of the present disclosure;

[0035] 3a to 3e are schematic diagrams of a method according to an embodiment of the present disclosure;

[0036] FIG4 is a schematic diagram of a processing flow according to an embodiment of the present disclosure;

[0037] FIG5a is a schematic structural diagram of a signal encoding device according to an embodiment of the present disclosure;

[0038] FIG5b is a schematic structural diagram of a signal decoding device according to an embodiment of the present disclosure;

[0039] FIG6a is a schematic diagram of a communication device according to an embodiment of the present disclosure;

[0040] FIG6 b is a schematic diagram of a communication device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] Embodiments of the present disclosure provide a signal encoding and decoding method, device, and storage medium.

[0042] In a first aspect, an embodiment of the present disclosure provides an encoding method, the method comprising:

[0043] Determining a corresponding encoding mode and side information based on parameter information of an audio signal; wherein the audio signal is an audible audio signal or a machine audio signal, the encoding mode is a first encoding mode corresponding to the audible audio signal or a second encoding mode corresponding to the machine audio signal, the first encoding mode and the second encoding mode differ in encoding algorithms, and the side information is used to indicate the encoding mode;

[0044] Encode the audio signal according to the encoding mode to obtain encoded data;

[0045] A bit stream is output according to the coded data and the side information.

[0046] In the above embodiment, based on the parameter information of the input audio signal, the encoding mode suitable for the audio signal is adaptively selected, thereby ensuring the accuracy of the encoding and retaining the valid audio frequency components, avoiding the inapplicability problem caused by encoding the machine audio according to the frequency range audible to the human ear.

[0047] In combination with the embodiments of the first aspect, in some embodiments, the parameter information is used to determine whether the audio signal is the human-audible audio signal or the machine audio signal.

[0048] In conjunction with the embodiments of the first aspect, in some embodiments, encoding the audio signal according to the encoding mode to obtain encoded data includes:

[0049] The human-audible audio signal is encoded according to the first encoding mode to obtain first encoded data; or the machine audio signal is encoded according to the second encoding mode to obtain second encoded data.

[0050] In combination with the embodiments of the first aspect, in some embodiments, the bit value corresponding to the side information has a mapping relationship with the encoding mode, and the bit value corresponding to the side information is an encoded value.

[0051] In conjunction with the embodiments of the first aspect, in some embodiments, the parameter information includes at least one of the following:

[0052] Header information;

[0053] Bandwidth detection results;

[0054] Frequency information;

[0055] User configuration information.

[0056] In the above embodiment, the type or characteristics of the audio signal are obtained according to one or more pieces of parameter information, so that a suitable encoding mode can be adaptively selected according to the audio signal.

[0057] In conjunction with the embodiments of the first aspect, in some embodiments, determining a corresponding encoding mode according to parameter information of an audio signal includes:

[0058] determining a sampling rate of the audio signal according to header information of the audio signal;

[0059] An encoding mode corresponding to the audio signal is determined according to the sampling rate and the first threshold.

[0060] In the above embodiment, the corresponding sampling rate is obtained according to the header information of the audio signal, and then a suitable encoding method is adaptively selected in combination with the sampling rate and the corresponding threshold.

[0061] In conjunction with the embodiments of the first aspect, in some embodiments, determining the encoding mode corresponding to the audio signal according to the sampling rate and the first threshold includes:

[0062] The sampling rate is greater than the first threshold, and the encoding mode is determined to be the second encoding mode; or,

[0063] The sampling rate is less than or equal to the first threshold, and the encoding mode is determined to be the first encoding mode.

[0064] In the above embodiment, when the relationship between the sampling rate and the first threshold is different, different encoding modes are respectively corresponding, so that an encoding mode suitable for the audio signal can be selected based on the sampling rate to ensure encoding accuracy.

[0065] In conjunction with the embodiments of the first aspect, in some embodiments, determining a corresponding encoding mode according to parameter information of an audio signal includes:

[0066] Determining, based on a bandwidth detection result of the audio signal, a maximum effective frequency among different effective audio components within the bandwidth detection result;

[0067] The encoding mode corresponding to the audio signal is determined according to the maximum effective frequency and the second threshold.

[0068] In the above embodiment, the maximum effective frequency of the audio signal is obtained according to the bandwidth detection result of the audio signal, and then a suitable encoding mode is adaptively selected in combination with the maximum effective frequency and the corresponding threshold.

[0069] In conjunction with the embodiments of the first aspect, in some embodiments, determining the encoding mode corresponding to the audio signal according to the maximum effective frequency and the second threshold includes:

[0070] The maximum effective frequency is greater than the second threshold, and the coding mode is determined to be the second coding mode; or,

[0071] The maximum effective frequency is less than or equal to the second threshold, and the encoding mode is determined to be the first encoding mode.

[0072] In the above embodiment, when the relationship between the maximum effective frequency and the second threshold is different, different encoding modes are respectively corresponding, so that the encoding mode applicable to the audio signal is selected based on the maximum effective frequency to ensure encoding accuracy.

[0073] In conjunction with the embodiments of the first aspect, in some embodiments, the frequency information includes a minimum frequency and a maximum frequency, and determining the corresponding encoding mode based on the parameter information of the audio signal includes:

[0074] Determining the lowest frequency and the highest frequency among the effective frequency components of the audio signal;

[0075] According to the lowest frequency and the highest frequency, it is determined that the encoding mode is the first encoding mode or the second encoding mode.

[0076] In conjunction with the embodiments of the first aspect, in some embodiments, determining a corresponding encoding mode according to parameter information of an audio signal includes:

[0077] According to the user configuration information, the first encoding mode or the second encoding mode specified by the user is determined.

[0078] In the above embodiment, the encoding mode specified by the user is selected according to the user configuration information to meet the needs of the user.

[0079] In conjunction with the embodiments of the first aspect, in some embodiments, when the parameter information includes multiple items, the priority of the parameter information satisfies:

[0080] The priority of user configuration information > the priority of header information > the priority of bandwidth detection result.

[0081] In the above embodiment, in different parameter information scenarios, the priorities of different parameter information are different, which facilitates making coding mode decisions based on the priorities of different parameter information.

[0082] In conjunction with the embodiments of the first aspect, in some embodiments, determining a corresponding encoding mode according to parameter information of an audio signal includes:

[0083] The encoding mode is determined based on the parameter information with the highest priority.

[0084] In the above embodiment, when there is a conflict between the decision results of different parameter information, the encoding mode can be effectively selected based on the parameter information with the highest priority.

[0085] In conjunction with the embodiments of the first aspect, in some embodiments, the bit value of the side information corresponding to the first coding mode is a first value;

[0086] The bit value of the side information corresponding to the second coding mode is a second value, and the first value is different from the second value.

[0087] In the above embodiment, the values ​​of the side information included in the bit stream are different when the encoding mode is different, so that the decoding end can accurately know the corresponding encoding mode for accurate decoding.

[0088] In a second aspect, an embodiment of the present disclosure provides a signal decoding method, the method comprising:

[0089] Determining side information and coded data according to the bitstream, wherein the side information is used to indicate a coding mode;

[0090] Determining a corresponding decoding mode based on the side information; wherein the decoding mode is a first decoding mode corresponding to a human-audible audio signal or a second decoding mode corresponding to a machine-audible audio signal, and the first decoding mode and the second decoding mode differ in decoding algorithms;

[0091] The encoded data is decoded according to the decoding mode to obtain an audio signal.

[0092] In the above embodiment, the corresponding encoding mode is determined in combination with the side information, so that a suitable decoding mode is adopted for decoding to improve the decoding accuracy.

[0093] In conjunction with the embodiments of the second aspect, in some embodiments, decoding the encoded data according to the decoding mode to obtain an audio signal includes:

[0094] The encoded data is decoded according to a first decoding mode to obtain a human-audible audio signal, or the encoded data is decoded according to a second decoding mode to obtain a machine audio signal.

[0095] In combination with the embodiments of the second aspect, in some embodiments, the bit value corresponding to the side information has a mapping relationship with the encoding mode, and the bit value corresponding to the side information is an encoded value.

[0096] In conjunction with the embodiments of the second aspect, in some embodiments, determining the corresponding decoding mode according to the side information includes:

[0097] The encoding mode adopted by the encoding end is determined according to the decoded side information, and a decoding mode corresponding to the encoding mode is determined.

[0098] In conjunction with the embodiments of the second aspect, in some embodiments, the encoding mode is determined based on parameter information of the audio signal, where the parameter information includes at least one of the following:

[0099] Header information;

[0100] Bandwidth detection results;

[0101] Frequency information;

[0102] User configuration information.

[0103] In combination with the embodiments of the second aspect, in some embodiments, the header information is used to determine the sampling rate of the audio signal, and when the sampling rate is greater than a first threshold, the encoding mode is the second encoding mode, or when the sampling rate is less than or equal to the first threshold, the encoding mode is the first encoding mode.

[0104] In combination with the embodiments of the second aspect, in some embodiments, the bandwidth detection result is used to determine the maximum effective frequency in different effective audio components, and when the maximum effective frequency is greater than the second threshold, the encoding mode is the second encoding mode, or when the maximum effective frequency is less than or equal to the second threshold, the encoding mode is the first encoding mode.

[0105] In combination with the embodiments of the second aspect, in some embodiments, the user configuration information is used to determine the first encoding mode or the second encoding mode specified by the user.

[0106] In conjunction with the embodiments of the second aspect, in some embodiments, the frequency information includes a minimum frequency and a maximum frequency, and determining the corresponding encoding mode based on the parameter information of the audio signal includes:

[0107] Determining the lowest frequency and the highest frequency among the effective frequency components of the audio signal;

[0108] According to the lowest frequency and the highest frequency, it is determined that the encoding mode is the first encoding mode or the second encoding mode.

[0109] In conjunction with the embodiments of the second aspect, in some embodiments, when the parameter information includes multiple items, the priority of the parameter information satisfies:

[0110] The priority of user configuration information > the priority of header information > the priority of bandwidth detection result.

[0111] In combination with the embodiments of the second aspect, in some embodiments, the encoding mode is determined based on the parameter information with the highest priority.

[0112] In conjunction with the embodiments of the second aspect, in some embodiments, the bit value of the side information corresponding to the first coding mode is a first value;

[0113] The bit value of the side information corresponding to the second coding mode is a second value, and the first value is different from the second value.

[0114] In a third aspect, an embodiment of the present disclosure provides an encoding device, including:

[0115] a processing module, configured to determine a corresponding encoding mode and side information based on parameter information of an audio signal; wherein the audio signal is an audible audio signal or a machine audio signal, the encoding mode is a first encoding mode corresponding to the audible audio signal or a second encoding mode corresponding to the machine audio signal, the first encoding mode and the second encoding mode differ in encoding algorithms, and the side information is used to indicate the encoding mode;

[0116] The processing module is further configured to encode the audio signal according to the encoding mode to obtain encoded data;

[0117] The processing module is further configured to output a bit stream according to the encoded data and the side information.

[0118] In a fourth aspect, an embodiment of the present disclosure provides a decoding device, including:

[0119] a processing module, configured to determine side information and coded data based on a bitstream, wherein the side information is used to indicate a coding mode;

[0120] The processing module is further configured to determine a corresponding decoding mode based on the side information; wherein the decoding mode is a first decoding mode corresponding to a human-audible audio signal or a second decoding mode corresponding to a machine-audible audio signal, and the first decoding mode and the second decoding mode differ in decoding algorithms;

[0121] The processing module is further configured to decode the encoded data according to the decoding mode to obtain an audio signal.

[0122] In a fifth aspect, an embodiment of the present disclosure provides a communication device, including:

[0123] one or more processors;

[0124] The communication device is used to execute the method described in the first aspect or the second aspect.

[0125] In a sixth aspect, an embodiment of the present disclosure provides a storage medium, wherein the storage medium stores instructions, wherein:

[0126] When the instruction is executed on a communication device, the communication device is caused to execute the method according to the first aspect or the second aspect.

[0127] In a seventh aspect, an embodiment of the present disclosure provides a communication system, including an encoding device and a decoding device, wherein:

[0128] The encoding device is used to perform the method according to the first aspect;

[0129] The decoding device is used to execute the method described in the second aspect.

[0130] The embodiments of the present disclosure are not exhaustive and are merely illustrative of some embodiments, and are not intended to be a specific limitation on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain embodiment can also be implemented as an independent embodiment, and the order of the steps in a certain embodiment can be arbitrarily exchanged. In addition, the optional implementation methods in a certain embodiment can be arbitrarily combined; in addition, the embodiments can be arbitrarily combined. For example, some or all steps of different embodiments can be arbitrarily combined, and a certain embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.

[0131] In each embodiment of the present disclosure, unless otherwise specified or provided for by logic, the terms and / or descriptions between the embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form a new embodiment based on their inherent logical relationships.

[0132] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0133] In the embodiments of the present disclosure, unless otherwise specified, elements expressed in the singular, such as "a", "an", "the", "above", "said", "the", "the", etc., may mean "one and only one", or "one or more", "at least one", etc. For example, when using articles such as "a", "an", "the" in English in translation, the noun following the article may be understood as a singular expression or a plural expression.

[0134] In the embodiments of the present disclosure, “plurality” refers to two or more.

[0135] In some embodiments, the terms "at least one," "one or more," "a plurality of," "multiple," etc. may be used interchangeably.

[0136] In some embodiments, descriptions such as "at least one of A and B," "A and / or B," "A in one case, B in another case," or "in response to one case A, in response to another case B" may include the following technical solutions depending on the situation: in some embodiments, A (A is executed independently of B); in some embodiments, B (B is executed independently of A); in some embodiments, execution is selected from A and B (A and B are selectively executed); and in some embodiments, A and B (both A and B are executed). The above is also applicable when there are more branches such as A, B, and C.

[0137] In some embodiments, "A or B" and other descriptions may include the following technical solutions depending on the situation: in some embodiments, A (A is executed independently of B); in some embodiments, B (B is executed independently of A); in some embodiments, execution is selected from A and B (A and B are selectively executed). The above is also applicable when there are more branches such as A, B, C, etc.

[0138] The prefixes such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different description objects and do not constitute any restriction on the position, order, priority, quantity or content of the description objects. For the statement of the description object, please refer to the description in the context of the claims or embodiments, and no unnecessary restriction should be constituted due to the use of prefixes. For example, if the description object is a "field", the ordinal number before the "field" in the "first field" and the "second field" does not limit the position or order between the "fields". "First" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of the "first field" and the "second field". For another example, if the description object is a "level", the ordinal number before the "level" in the "first level" and the "second level" does not limit the priority between the "levels". For another example, the number of description objects is not limited by the ordinal number and can be one or more. Taking "first device" as an example, the number of "devices" can be one or more. In addition, the objects modified by different prefixes can be the same or different. For example, if the description object is "device", then the "first device" and the "second device" can be the same device or different devices, and their types can be the same or different; for another example, if the description object is "information", then the "first information" and the "second information" can be the same information or different information, and their contents can be the same or different.

[0139] In some embodiments, “including A,” “comprising A,” “used to indicate A,” and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.

[0140] In some embodiments, terms such as "in response to...", "in response to determining...", "in the case of...", "at the time of...", "when...", "if...", "if...", etc. can be used interchangeably.

[0141] In some embodiments, terms such as "greater than", "greater than or equal to", "not less than", "more than", "more than or equal to", "not less than", "higher than", "higher than or equal to", "not less than", and "above" can be replaced with each other, and terms such as "less than", "less than or equal to", "not greater than", "less than", "less than or equal to", "not more than", "lower than", "lower than or equal to", "not higher than", and "below" can be replaced with each other.

[0142] In some embodiments, devices and equipment can be interpreted as physical or virtual, and their names are not limited to the names recorded in the embodiments. In some cases, they can also be understood as "equipment", "device", "circuit", "network element", "node", "function", "unit", "section", "system", "network", "chip", "chip system", "entity", "subject", etc.

[0143] In some embodiments, obtaining data, information, etc. may comply with the laws and regulations of the country where the data is obtained.

[0144] In some embodiments, data, information, etc. may be obtained with the user's consent.

[0145] In addition, each element, each row, or each column in the table of the embodiment of the present disclosure can be implemented as an independent embodiment, and the combination of any elements, any rows, and any columns can also be implemented as an independent embodiment.

[0146] Figure 1 is a schematic diagram of an architecture provided according to an embodiment of the present disclosure. As shown in Figure 1, system 100 may include an encoding device 101 and a decoding device 102. Encoding device 101 may be deployed on a server, and decoding device 102 may be deployed on a server or in a more powerful terminal product. The embodiments of the present disclosure do not limit the specific structures of encoding device 101 or decoding device 102. The structural descriptions in the following embodiments are for illustrative purposes only.

[0147] In the embodiments of the present disclosure, computers are used to "listen" to audio signals or audio data in an increasing number of automation fields. For example, in automated manufacturing plants, sensors collect audio data from the product manufacturing process, and computers analyze the audio data to determine whether the product has defects and take subsequent measures. Lossy audio coding algorithms designed based on the human ear's frequency range will not be suitable for machine analysis data scenarios and may lose valid audio components. Therefore, in the increasingly widespread field of automated control, more efficient audio coding methods are needed.

[0148] Figure 2a is a schematic diagram of an interactive process of a signal encoding and decoding method according to an embodiment of the present disclosure. As shown in Figure 2a, the embodiment of the present disclosure relates to an encoding and decoding method, the method comprising:

[0149] In step S2101 , the encoding device 101 obtains an audio signal.

[0150] Optionally, an audio signal (audio input) may be input to the encoding device 101 .

[0151] In some embodiments, the input audio signal may be an audio signal to be encoded.

[0152] Optionally, the input audio signal may be an original audio signal, such as an audio signal that has not been preprocessed.

[0153] In some embodiments, as shown in FIG. 2 b , the encoding device 101 may include a signal analyzer module 2201 , an encoder module 2202 , and a code stream multiplexing module (MUX) 2203 .

[0154] Optionally, the signal analysis module 2201 may be used to perform operations such as signal analysis or preprocessing on the audio signal.

[0155] Optionally, the encoding module 2202 may include encoding modules using different encoding methods or encoding modes. For example, the encoding module 2202 includes a first encoding module and a second encoding module, wherein the first encoding module may be a lossy encoding module for human ears, and the second encoding module may be a lossless encoding module for machines.

[0156] Optionally, the code stream multiplexing module 2203 is configured to generate a bit stream according to the coded data, that is, to write the coded data into the code stream.

[0157] In some embodiments, the input audio signal may include at least one of an infrasound signal, an audible sound signal, and an ultrasonic signal. For example, the audio signal includes audio for human ears, or includes audio for machines.

[0158] Alternatively, infrasound signals can be used in areas such as the ocean and strata, where light and radio waves have little reach. They can be used to explore deep mineral deposits, determine the distribution of hot and cold air masses in the stratosphere, or detect hidden dangers in operating machinery. They can also be used to forecast natural phenomena such as tsunamis, storms, volcanic eruptions, and magnetic storms. Therefore, infrasound can be used to detect weather, earthquakes, and predict typhoons or tsunamis.

[0159] Ultrasonic signals, with their excellent directionality, strong penetration, easy acquisition of concentrated sound energy, and long propagation distances in water, can be used for distance measurement, speed measurement, cleaning, welding, and stone crushing. Ultrasonic signals can also be applied to ultrasonic welding, ultrasonic chemistry, ultrasonic cleaning, ultrasonic machining (such as drilling, engraving, and polishing), ultrasonic therapy, ultrasonic surgery, ultrasonic cosmetic surgery, or ultrasonic motors and levitation. Ultrasonic frequencies used in medical diagnosis range from 1 to 5 MHz.

[0160] Optionally, the audible sound wave signal includes music or speech that is audible or hearable to human ears.

[0161] Alternatively, audio signals in the medical field, such as brain waves, have a frequency range different from that of sound waves audible to the human ear. Brain waves refer to the electrical oscillations generated by the activity of nerve cells in the human brain. Brain waves can be divided into five categories based on frequency: beta waves (conscious, 14-30Hz), alpha waves (bridge consciousness, 8-14Hz), theta waves (subconscious, 4-8Hz), delta waves (unconscious, below 4Hz) and gamma waves (focusing on something, above 30Hz). The combination of these consciousnesses forms a person's internal and external behavior, emotions and learning performance. The audio encoding algorithm used for the human ear compresses brain wave signals, resulting in the loss of audio components.

[0162] Optionally, in actual application scenarios, the audible sound wave signal may be heard by a machine.

[0163] Step S2102: The encoding device 101 determines the corresponding encoding mode and side information according to the parameter information of the audio signal.

[0164] Optionally, the audio signal is an audio signal audible to human ears or a machine audio signal. Optionally, the machine audio signal may include a sound wave signal not audible to human ears, such as an infrasound signal or an ultrasonic signal.

[0165] Optionally, the parameter information of the audio signal is used to indicate the characteristics or usage of the audio signal. For example, the parameter information can be used to determine whether the input audio signal is intended for human ears and / or machines.

[0166] Optionally, the parameter information is used to determine whether the audio signal is a human-audible audio signal or a machine audio signal.

[0167] In some embodiments, the coding mode is a first coding mode corresponding to an audio signal audible to the human ear or a second coding mode corresponding to a machine audio signal; that is, the first coding mode is used to encode the audio signal audible to the human ear, and the second coding mode is used to encode the machine audio signal.

[0168] The first coding mode and the second coding mode are different in coding algorithms, or the first coding mode and the second coding mode are different in coding parameters.

[0169] Optionally, the side information corresponds to the encoding mode and is used to indicate whether the encoding mode used in this encoding is the first encoding mode or the second encoding mode. The name of the side information is for illustration only and may also be referred to as metadata.

[0170] Optionally, the first encoding mode is, for example, a lossy encoding mode for human listening, wherein the lossy encoding mode can filter the frequency of the input audio signal according to the frequency range audible to the human ear and the masking effect, and perform audio encoding so that the distortion is not easily perceived by the human ear.

[0171] In one example, the first encoding mode can utilize the Advanced Audio Coding (AAC) compression algorithm from the Moving Picture Experts Group (MPEG) standard. The AAC compression algorithm uses a psychoacoustic model to achieve lossy compression. This compression algorithm considers the importance of audio components based on the human ear's sensitive frequency bands and masking effects, compressing signal components that are not readily apparent to the human ear. It's worth noting that this compression method loses significant audio components for machine hearing.

[0172] In another example, the first coding mode can also use the Enhanced Voice Services (EVS) algorithm of the 3rd Generation Partnership Project (3GPP). This algorithm considers the importance of audio components based on the human ear's sensitive frequency bands and masking effects, compressing signal components that are not noticeable to the human ear. However, for machine hearing, valid audio components will still be lost.

[0173] Optionally, the second encoding mode is, for example, a lossless encoding mode for machine listening, wherein the lossless encoding mode processes all frequency components of the input audio signal.

[0174] In one example, the second coding mode may adopt the Scalable to Lossless (SLS) algorithm in MPEG-4.

[0175] In some embodiments, as shown in FIG. 2 b , the audio analysis module 2201 of the encoding device 101 may adaptively select the corresponding first encoding mode or second encoding mode according to parameter information of the audio signal.

[0176] In some embodiments, the parameter information includes at least one of the following:

[0177] Header information (header files);

[0178] Bandwidth detection results;

[0179] Frequency information;

[0180] User configuration information (encoder configuration).

[0181] Alternatively, the header information may be a packaged portion corresponding to the audio signal or audio data, and is used to reflect the packaged information of the audio signal or audio data. For example, for an audio signal in WAV format, the audio analysis module 2201 may obtain WAV header information (wav header files).

[0182] Optionally, the bandwidth detection result or frequency information may be obtained by the audio analysis module 2201 performing bandwidth detection on the audio signal.

[0183] Optionally, before encoding, the user may perform encoding configuration, that is, indicate or set corresponding user configuration information.

[0184] Optionally, based on different parameter information, the corresponding encoding method can be determined through the following examples:

[0185] In the first example, step S2102 may include the following steps S2102-11 to S2102-12, specifically:

[0186] In step S2102-11, the encoding device 101 determines the sampling rate of the audio signal according to the header information of the audio signal.

[0187] Optionally, referring to FIG. 2 c , still taking the audio signal in WAV format as an example, the audio analysis module 2201 of the encoding device 101 may obtain and parse WAV header information to obtain the sampling rate (samplerate) of the encapsulated audio signal.

[0188] In step S2102-12, the encoding device 101 determines an encoding mode corresponding to the audio signal according to the sampling rate and the first threshold.

[0189] Optionally, the first threshold may be a predefined or preconfigured frequency threshold.

[0190] Optionally, if the sampling rate is greater than a first threshold, the encoding mode is determined to be the second encoding mode; or, if the sampling rate is less than or equal to the first threshold, the encoding mode is determined to be the first encoding mode.

[0191] For example, the first threshold value may be set to 48 kHz. When the sampling rate is less than or equal to 48 kHz, the audio analysis module 2201 may determine that the encoding mode corresponding to the audio signal is the first encoding mode (e.g., lossy encoding mode); when the sampling rate is greater than 48 kHz, the audio analysis module 2201 may determine that the encoding mode corresponding to the audio signal is the second encoding mode (e.g., lossless encoding mode).

[0192] In the second example, step S2102 may include the following steps S2102-21 to S2102-22, specifically:

[0193] In step S2102-21, the encoding device 101 determines the maximum effective frequency among different effective audio components in the bandwidth detection result according to the bandwidth detection result of the audio signal.

[0194] Optionally, as shown in reference Figure 2d, the audio analysis module 2201 of the encoding device 101 can perform bandwidth detection on the audio signal, such as performing time-frequency conversion, obtaining multiple effective audio components (effective frequency bins) in the frequency domain, and comparing the sizes of each effective audio component, where the maximum value is the maximum effective frequency.

[0195] In step S2102-22, the encoding device 101 determines an encoding mode corresponding to the audio signal according to the maximum effective frequency and the second threshold.

[0196] Optionally, the second threshold may be a predefined or preconfigured frequency threshold.

[0197] Optionally, the second threshold may be the same as or different from the first threshold, such as the second threshold is set to 48 kHz.

[0198] Optionally, if the maximum effective frequency is greater than the second threshold, the encoding mode is determined to be the second encoding mode; or, if the maximum effective frequency is less than or equal to the second threshold, the encoding mode is determined to be the first encoding mode.

[0199] For example, when the maximum effective frequency is greater than 48kHz, such as the maximum effective frequency is 192kHz, the audio analysis module 2201 can determine that the encoding mode corresponding to the audio signal is the second encoding mode (such as lossless encoding mode); when the maximum effective frequency is less than or equal to 48kHz, the audio analysis module 2201 can determine that the encoding mode corresponding to the audio signal is the first encoding mode (such as lossy encoding mode).

[0200] In the third example, step S2102 may include the following steps S2102-31, specifically:

[0201] In step S2102-31, the encoding device 101 determines the first encoding mode or the second encoding mode specified by the user according to the user configuration information.

[0202] Optionally, as shown in FIG2e , when user configuration information exists, the signal analysis module 2201 of the encoding device 101 no longer modifies the encoding mode type, and selects the first encoding mode or the second encoding mode according to the information indicated in the user configuration information.

[0203] In the fourth example, step S2102 may include the following steps S2102-41, specifically:

[0204] In step S2102-41, the encoding device 101 determines the lowest frequency and the highest frequency among the effective frequency components of the audio signal; wherein the aforementioned frequency information includes the lowest frequency and the highest frequency.

[0205] Optionally, during the signal analysis process of the audio signal, such as when performing time-frequency conversion on the audio signal to obtain frequency domain components, the audio analysis module may determine the effective frequency components therein and determine the lowest frequency and the highest frequency therein.

[0206] In step S2102-42, the encoding device 101 determines whether the encoding mode is the first encoding mode or the second encoding mode according to the lowest frequency and the highest frequency.

[0207] Optionally, the encoding device 101 determines whether the audio signal is an audio signal audible to human ears or a machine audio signal based on a frequency range consisting of a lowest frequency and a highest frequency.

[0208] For example, an audio signal audible to the human ear refers to a signal whose frequency range is primarily within the human audible range (20 Hz-20 kHz). If the lowest frequency component of the audio signal's effective frequency components is 20 Hz and the highest frequency component of the audio signal's effective frequency components is 20 kHz, the audio signal can be determined to be audible to the human ear. For details, see Example 7 below.

[0209] For example, a machine audio signal refers to an audio signal whose highest frequency exceeds the upper limit of the human audible frequency range of 20 kHz, or whose highest frequency is lower than the lower limit of the human audible frequency range of 20 Hz. If the lowest frequency of the audio signal's effective frequency component is 20 Hz and the highest frequency of the audio signal's effective frequency component is 30 kHz, the audio signal can be determined to be a machine audio signal.

[0210] In the fifth example, step S2102 may include the following steps S2102-51, specifically:

[0211] In step S2102-51, the encoding device 101 determines the encoding mode according to the parameter information with the highest priority.

[0212] Optionally, as shown in FIG2f , this example can be used in a scenario with multiple parameter information. When the encoding modes selected based on different parameter information are different or conflicting, the encoding mode is determined according to the judgment result of the parameter information with the highest priority.

[0213] Optionally, the priority of the user configuration information is greater than the priority of the header information and greater than the priority of the bandwidth detection result.

[0214] For example, if the encoding mode set in the user configuration information is the second encoding mode for machine audio, if the maximum valid frequency is detected to be 32 kHz (less than the second threshold of 48 kHz), the encoding mode determined based on the bandwidth detection result is the first encoding mode for human audio. In this scenario, the encoding mode corresponding to the user configuration information is selected.

[0215] Optionally, in the above example, the selection result of the encoding mode is also the selection result of the encoding module 2202.

[0216] In step S2103 , the encoding device 101 encodes the audio signal according to the encoding mode to obtain encoded data.

[0217] In some embodiments, the encoding device 101 may encode the human-audible audio signal according to a first encoding mode to obtain first encoded data; or encode the machine audio signal according to a second encoding mode to obtain second encoded data.

[0218] Optionally, the encoding module 2202 of the encoding device 101 receives the output of the audio analysis module 2201, and the encoding module 2202 encodes the audio signal to obtain encoded data.

[0219] In step S2104 , the encoding device 101 outputs a bitstream based on the encoded data and the side information.

[0220] Optionally, the encoding device 101 writes both the encoded data and the side information corresponding to the encoding mode into the bitstream.

[0221] In some embodiments, the output of the audio analysis module 2201 is the selection result of the encoding mode and side information.

[0222] In some embodiments, the bit value corresponding to the side information is mapped to the encoding mode. For example, a first value in the side information indicates that the first encoding mode is used; a second value in the side information indicates that the second encoding mode is used. The first value and the second value are different. For example, the first value is 0 and the second value is 1. The side information of the encoding method is an integer variable, where 0 indicates that it is used for human audio encoding and 1 indicates that it is used for machine audio encoding.

[0223] Optionally, as described in the preceding embodiment, after the audio analysis module 2201 determines the encoding method, the side information value may be configured. For example, if the selected encoding method is the first encoding method for human-ear audio, the side information value is set to 0; if the selected encoding method is the second encoding method for machine-audio audio, the side information value is set to 1.

[0224] In some embodiments, the bit value corresponding to the side information is an encoded value. For example, referring to FIG2g, the signal analyzer processes the audio signal and outputs it to the coding core or simply the core after core selection, and outputs core information (core info). The core information can indicate the coding core group and coding core information used in this encoding. The core information is encoded by the metadata encoding module (Metadata encoding) on ​​the encoder side, and the encoded side information is obtained and written into the bitstream. In conjunction with FIG2i, on the decoding device 102 side, the core information is decoded by the metadata decoding module (metadata decoding) on ​​the decoder side, and the core information can indicate the core used for decoding.

[0225] Optionally, when multiple bit values ​​are required to indicate the encoding mode, these multiple bit values ​​can be encoded to obtain encoded side information, thereby conserving bits occupied by the side information. For example, the side information encoding module can be used to encode the pre-encoded side information (e.g., the multiple bits described above) to obtain the encoded side information. Alternatively, the encoded side information can be referred to as side information encoding parameters. In this example, the encoded side information is written into the bitstream.

[0226] In one example, as shown in FIG2g, the coding module 2202 may include coding cores for different purposes. For example, the coding module 2202 of the first coding mode includes N coding cores, such as coding core 1, coding core 2, etc. Coding core 1 is a speech coding core, and coding core 2 is a music coding core. The side information also needs to indicate the selected coding core while indicating the coding mode. If the selection information of the coding core (i.e., the core information in the figure) is output to the side information coding module or the metadata coding module, the side information coding module obtains the encoded side information. At this time, the encoded side information can be used to indicate the coding mode and coding core, and the bit occupancy can be reduced. Alternatively, the N coding cores in the figure have different usage frequencies, and the coding cores are classified according to their usage frequencies. The two coding cores with the highest usage frequency are encoded with 1 bit, and the coding core with the third highest usage frequency is encoded with more bits.

[0227] In some embodiments, in the encoding device 101 , the audio analysis module 2201 outputs the side information and the encoding module 2202 outputs the encoded data to the bitstream multiplexing module 2203 , and the bitstream multiplexing module 2203 outputs the bitstream to the decoding device 102 .

[0228] In some embodiments, decoding device 102 receives a bitstream.

[0229] In step S2105 , the decoding device 102 determines the side information and the encoded data according to the bit stream.

[0230] In some embodiments, as shown in FIG. 2 h , the decoding device 102 may include a demultiplexing module (DEMUX) 2701 and a decoding module (decoder) 2702 .

[0231] Optionally, the demultiplexing module (DEMUX) 2701 demultiplexes the bit stream to obtain side information. In combination with the description of the above embodiment, the encoding mode used in encoding can be known according to the side information.

[0232] Optionally, the decoding module 2702 corresponds to the encoding module 2202, such as the decoding module 2702 includes a first decoding module and a second decoding module, wherein the first decoding module may be a decoding module for human ears, and the second decoding module may be a decoding module for machines.

[0233] Optionally, the bit value corresponding to the side information has a mapping relationship with the encoding mode.

[0234] Optionally, the bit value corresponding to the side information is an encoded value.

[0235] In one example, the side information may be encoded, as described in the embodiment of step S2104. Referring to FIG. 2i , the decoding device 102 may utilize a side information decoding module or a metadata decoding module to obtain the decoded side information, determine the encoding mode and encoding core used by the encoder based on the decoded side information, and determine a decoding mode corresponding to the encoding mode, thereby facilitating more accurate decoding.

[0236] In step S2106 , the decoding device 102 determines a corresponding decoding mode according to the side information, and decodes the encoded data according to the decoding mode to obtain an audio signal.

[0237] Optionally, the output of the decoding module 2202 may be a compressed audio signal (compressed audio).

[0238] Optionally, the decoding mode is a first decoding mode corresponding to an audio signal audible to the human ear or a second decoding mode corresponding to a machine audio signal. The first decoding mode and the second decoding mode are different in decoding algorithms, and the two decoding modes correspond to corresponding decoding modules respectively.

[0239] In some embodiments, the decoding device 102 may decode the encoded data according to a first decoding mode to obtain a human-audible audio signal, or may decode the encoded data according to a second decoding mode to obtain a machine audio signal.

[0240] In some embodiments, the names of information, etc. are not limited to the names described in the embodiments, and terms such as "information", "message", "signal", "signaling", "report", "configuration", "indication", "instruction", "command", "channel", "parameter", "domain", and "field" can be used interchangeably.

[0241] In some embodiments, "obtain", "get", "get", "receive", "transmit", "bidirectional transmission", "send and / or receive" can be interchangeable, and can be interpreted as receiving from other entities, obtaining from protocols, obtaining from higher layers, obtaining by self-processing, autonomous implementation, etc.

[0242] In some embodiments, terms such as "certain", "preset", "preset", "setting", "indicated", "a certain", "any", and "first" can be interchangeable. "Specific A", "preset A", "preset A", "setting A", "indicated A", "a certain A", "any A", and "first A" can be interpreted as A pre-specified in a protocol, etc., or as A obtained through setting, configuration, or indication, etc., or as specific A, a certain A, any A, or first A, etc., but not limited to this.

[0243] The method involved in the embodiment of the present disclosure may include at least one of steps S2101 to S2106. For example, steps S2102 to S2104 may be implemented as independent embodiments, and steps S2105 to S2106 may be implemented as independent embodiments, but are not limited thereto.

[0244] In some embodiments, step S2101 is optional, and one or more of these steps may be omitted or replaced in different embodiments.

[0245] In some embodiments, reference may be made to other optional implementations described before or after the description corresponding to FIG. 2 a .

[0246] FIG3a is a flow chart of a signal encoding method according to an embodiment of the present disclosure. As shown in FIG3a, the embodiment of the present disclosure relates to a signal encoding method, which is executed by an encoding device 101 and includes:

[0247] Step S3101: Determine the corresponding encoding mode and side information according to the parameter information of the audio signal.

[0248] In some embodiments, optional implementations of step S3101 can refer to steps S2101 to S2102 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0249] Optionally, the audio signal is an audio signal audible to the human ear or a machine audio signal, and the encoding mode is a first encoding mode corresponding to the audio signal audible to the human ear or a second encoding mode corresponding to the machine audio signal, and the first encoding mode and the second encoding mode are different in encoding algorithms.

[0250] Optionally, the side information is used to indicate the encoding mode.

[0251] In some embodiments, parameter information is used to determine whether the audio signal is the human-audible audio signal or the machine audio signal.

[0252] In some embodiments, the bit value corresponding to the side information has a mapping relationship with the encoding mode, and the bit value corresponding to the side information is an encoded value.

[0253] In some embodiments, the bit value of the side information corresponding to the first encoding method is a first value; the bit value of the side information corresponding to the second encoding method is a second value, and the first value is different from the second value.

[0254] In some embodiments, the parameter information includes at least one of the following:

[0255] Header information;

[0256] Bandwidth detection results;

[0257] Frequency information;

[0258] User configuration information.

[0259] In some embodiments, the frequency information includes the lowest frequency and the highest frequency, and determining the corresponding encoding mode according to the parameter information of the audio signal includes:

[0260] Determining the lowest frequency and the highest frequency among the effective frequency components of the audio signal;

[0261] According to the lowest frequency and the highest frequency, it is determined that the encoding mode is the first encoding mode or the second encoding mode.

[0262] In some embodiments, when the parameter information includes multiple items, the priority of the parameter information satisfies:

[0263] The priority of user configuration information > the priority of header information > the priority of bandwidth detection result.

[0264] Step S3102: Encode the audio signal according to the encoding mode to obtain encoded data.

[0265] In some embodiments, optional implementations of step S3102 can be found in step S2103 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0266] In some embodiments, the human-audible audio signal is encoded according to a first encoding mode to obtain first encoded data; or, the machine audio signal is encoded according to a second encoding mode to obtain second encoded data.

[0267] Step S3103: Output a bit stream based on the encoded data and the side information.

[0268] In some embodiments, optional implementations of step S3103 can be found in step S2104 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0269] In some embodiments, reference may be made to other optional implementations described before or after the description corresponding to FIG. 3 a .

[0270] FIG3b is a flow chart of a signal encoding method according to an embodiment of the present disclosure. As shown in FIG3b, the embodiment of the present disclosure relates to a signal encoding method, which is executed by the encoding device 101 and includes:

[0271] Step S3201: Determine the sampling rate of the audio signal according to the header information of the audio signal.

[0272] In some embodiments, optional implementations of step S3201 can be found in steps S2102 and S2102-11 in FIG2a and other related parts of the embodiment involved in FIG2a, which will not be repeated here.

[0273] Step S3202: Determine a coding mode corresponding to the audio signal according to the sampling rate and the first threshold.

[0274] In some embodiments, optional implementations of step S3202 can be found in steps S2102 and S2102-12 in FIG. 2a and other related parts of the embodiment involved in FIG. 2a, which will not be repeated here.

[0275] Optionally, when the sampling rate is greater than a first threshold, the encoding mode is determined to be the second encoding mode; or, when the sampling rate is less than or equal to the first threshold, the encoding mode is determined to be the first encoding mode.

[0276] Step S3203: Output a bitstream according to the side information corresponding to the coding mode and the coded data based on the coding mode.

[0277] In some embodiments, optional implementations of step S3203 may refer to steps S2103 to S2104 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0278] Optionally, for optional implementations of steps S3201 to S3203 , reference may also be made to the embodiment shown in FIG. 2 c .

[0279] In some embodiments, reference may be made to other optional implementations described before or after the description corresponding to FIG. 3 b .

[0280] FIG3c is a flow chart of a signal encoding method according to an embodiment of the present disclosure. As shown in FIG3c, the embodiment of the present disclosure relates to a signal encoding method, which is executed by the encoding device 101 and includes:

[0281] Step S3301: Determine the maximum effective frequency among different effective audio components in the bandwidth detection result according to the bandwidth detection result of the audio signal.

[0282] In some embodiments, optional implementations of step S3301 can be found in steps S2102 and S2102-21 in FIG2a and other related parts of the embodiment involved in FIG2a, which will not be repeated here.

[0283] Step S3302: Determine the encoding mode corresponding to the audio signal according to the maximum effective frequency and the second threshold.

[0284] In some embodiments, optional implementations of step S3302 can be found in steps S2102 and S2102-22 in FIG. 2a and other related parts of the embodiment involved in FIG. 2a, which will not be repeated here.

[0285] Optionally, if the maximum effective frequency is greater than the second threshold, the encoding mode is determined to be the second encoding mode; or, if the maximum effective frequency is less than or equal to the second threshold, the encoding mode is determined to be the first encoding mode.

[0286] Step S3303: Output a bitstream according to the side information corresponding to the coding mode and the coded data based on the coding mode.

[0287] In some embodiments, optional implementations of step S3303 can be found in steps S2103 to S2104 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0288] Optionally, for optional implementations of steps S3301 to S3303 , reference may also be made to the embodiment shown in FIG. 2 d .

[0289] In some embodiments, reference may be made to other optional implementations described before or after the description corresponding to FIG. 3c.

[0290] FIG3 d is a flow chart of a signal encoding method according to an embodiment of the present disclosure. As shown in FIG3 d , the embodiment of the present disclosure relates to a signal encoding method, which is executed by the encoding device 101 and includes:

[0291] Step S3401: Determine the first encoding mode or the second encoding mode specified by the user according to the user configuration information.

[0292] In some embodiments, optional implementations of step S3401 can be found in steps S2102 and S2102-31 in FIG2a and other related parts of the embodiment involved in FIG2a, which will not be repeated here.

[0293] Step S3402: Output a bitstream according to the side information corresponding to the coding mode and the coded data based on the coding mode.

[0294] In some embodiments, optional implementations of step S3402 can be found in steps S2103 to S2104 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0295] Optionally, for optional implementations of steps S3401 to S3402 , reference may also be made to the embodiment shown in FIG. 2 e .

[0296] In some embodiments, reference may be made to other optional implementations described before or after the description corresponding to FIG. 3 d .

[0297] FIG3e is a flow chart of a signal encoding method according to an embodiment of the present disclosure. As shown in FIG3e , the embodiment of the present disclosure relates to a signal encoding method, which is executed by the encoding device 101 and includes:

[0298] Step S3501: Determine the encoding mode based on the parameter information with the highest priority.

[0299] In some embodiments, optional implementations of step S3501 can be found in steps S2102 and S2102-41 in FIG2a and other related parts of the embodiment involved in FIG2a, which will not be repeated here.

[0300] Step S3502: Output a bitstream according to the side information corresponding to the coding mode and the coded data based on the coding mode.

[0301] In some embodiments, optional implementations of step S3502 can be found in steps S2103 to S2104 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0302] In some embodiments, reference may be made to other optional implementations described before or after the description corresponding to FIG. 3e.

[0303] FIG4 is a flow chart of a signal decoding method according to an embodiment of the present disclosure. As shown in FIG4 , the embodiment of the present disclosure relates to a signal decoding method, which is executed by a decoding device 102 and includes:

[0304] Step S4101: Determine side information and coded data according to the bit stream.

[0305] In some embodiments, optional implementations of step S4101 can be found in step S2104 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0306] Optionally, the side information is used to indicate a coding mode, and the bit value of the side information has a mapping relationship with the coding method.

[0307] Optionally, the encoding method is determined according to parameter information of the input audio signal, and the encoding method is a first encoding method for human ear audio or a second encoding method for machine audio.

[0308] In some embodiments, the parameter information includes at least one of the following:

[0309] Header information;

[0310] Bandwidth detection results;

[0311] Frequency information;

[0312] User configuration information.

[0313] In some embodiments, the header information is used to determine the sampling rate of the audio signal, and the encoding method is the second encoding method when the sampling rate is greater than a first threshold, or the encoding method is the first encoding method when the sampling rate is less than or equal to the first threshold.

[0314] In some embodiments, the bandwidth detection result is used to determine the maximum effective frequency among different effective audio components. When the maximum effective frequency is greater than a second threshold, the encoding method is the second encoding method; or, when the maximum effective frequency is less than or equal to the second threshold, the encoding method is the first encoding method.

[0315] In some embodiments, the user configuration information is used to determine the first encoding method or the second encoding method specified by the user.

[0316] In some embodiments, the frequency information includes the lowest frequency and the highest frequency, and determining the corresponding encoding mode according to the parameter information of the audio signal includes:

[0317] Determining the lowest frequency and the highest frequency among the effective frequency components of the audio signal;

[0318] According to the lowest frequency and the highest frequency, it is determined that the encoding mode is the first encoding mode or the second encoding mode.

[0319] In some embodiments, the encoding method is determined based on the parameter information with the highest priority.

[0320] Optionally, when the parameter information includes multiple items, the parameter information satisfies the following order: priority of user configuration information > priority of header information > priority of bandwidth detection result.

[0321] In some embodiments, the bit value of the side information corresponding to the first encoding method is a first value; the bit value of the side information corresponding to the second encoding method is a second value, and the first value is different from the second value.

[0322] Step S4102: Determine the corresponding decoding mode according to the side information.

[0323] In some embodiments, optional implementations of step S4102 can be found in step S2105 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0324] Step S4103: decode the encoded data according to the decoding mode to obtain an audio signal.

[0325] In some embodiments, optional implementations of step S4103 can be found in step S2106 in FIG. 2 a and other related parts of the embodiment involved in FIG. 2 a , which will not be described in detail here.

[0326] Optionally, the decoding mode is a first decoding mode corresponding to an audio signal audible to the human ear or a second decoding mode corresponding to a machine audio signal, and the first decoding mode and the second decoding mode are different in decoding algorithms.

[0327] In some embodiments, reference may be made to other optional implementations described before or after the description corresponding to FIG. 4 .

[0328] The method of the embodiment of the present disclosure proposes a method for adaptive coding selection, which can simultaneously support the coding of audible sounds for human ears and the coding of sounds for machine listening, wherein the sounds for machine listening have a wider frequency range than audible sounds, for example, the sounds for machine listening include infrasound, audible sound waves and ultrasonic waves. Among them, the coding method for machine monitoring is lossless or near lossless, because distortion will affect the performance of the machine using compressed audio data. Among them, adaptive coding selection generates side information written to the bitstream. In the embodiment of the present disclosure, it can be solved that in the application scenario of machine analysis data, the lossy coding algorithm designed based on the frequency range of the human ear will lose effective audio components and cannot meet actual needs.

[0329] To facilitate understanding of the embodiments of the present disclosure, some examples are listed below:

[0330] Example 1:

[0331] Refer to the coding diagram shown in Figure 2b:

[0332] The signal analysis module 2201 is used to analyze the frequency band range of the input audio. The output of the signal analysis module 2201 is the selection result of the encoding module 2202, that is, whether to select the encoding module for human ear audio or the encoding module for machine audio.

[0333] Optionally, in addition to analyzing the audio signal, the signal analysis module 2201 may also analyze the format of the audio signal, such as wav header information.

[0334] Optionally, the signal analysis module 2201 may also specify a specific encoding module according to a user command, such as determining the encoding module according to user configuration information.

[0335] Optionally, when there are multiple conditions, the signal analysis module 2201 can set priorities for different conditions. Optionally, the conditions correspond to the parameter information of the aforementioned embodiment.

[0336] Optionally, the output of the signal analysis module 2201 is the encoding method type or encoding mode, which is written into the bitstream in the form of side information. The side information is used to guide the decoding device to select different decoding methods or decoding modes.

[0337] See the decoding diagram shown in Figure 2h:

[0338] The decoding module 2401 demultiplexes the bit stream and obtains the side information of the encoding method type. According to the side information of the encoding method type, the corresponding decoding module 2402 is selected for decoding.

[0339] Optionally, the output of the decoding module 2402 is compressed audio data.

[0340] Example 2:

[0341] In this example, an audio format analysis method is used to analyze the header information of the audio signal to obtain the sampling rate of the audio signal, compare the sampling rate with a threshold, and adaptively select different encoding methods based on the comparison result between the sampling rate value and the threshold.

[0342] 2c, for an audio input file in wav format, the signal analysis module 2201 can parse the wav header and obtain the audio sampling rate from the wav header and make a judgment.

[0343] Optionally, when the sampling rate is greater than a certain threshold (eg, 48 kHz), the signal analysis module 2201 sets the value of the encoding method type side information to 1.

[0344] Optionally, when the sampling rate is less than or equal to a certain threshold (eg, 48 kHz), the signal analysis module 2201 sets the value of the encoding method type side information to 0.

[0345] Optionally, the encoding method type side information is an integer variable, 0 represents an audible sound encoder, and 1 represents a machine audio encoder.

[0346] Optionally, the signal analysis module 2201 writes the encoding method type (1 bit, value 1) into the bit stream in the form of side information.

[0347] 2f, the decoding device 102 demultiplexes the bit stream and obtains side information (1 bit, value 1) of the encoding method type. According to the side information of the encoding method type, a lossless decoding module is selected for decoding.

[0348] Example 3:

[0349] In this example, the encoding method type can be specified without using a module to determine it. The specified encoding method type can be provided through user encoding configuration.

[0350] As shown in FIG2e , the user can specify the encoding type in the encoding configuration.

[0351] Optionally, the encoding configuration corresponds to the user configuration information of the aforementioned embodiment.

[0352] Optionally, when the user sets the encoding method type to 1, the signal analysis module 2201 no longer modifies the encoding method type parameter, and selects a lossless encoder for encoding according to the value of the encoding method type.

[0353] Optionally, the encoding method type side information is an integer variable, 0 represents audible audio encoding, and 1 represents machine audio encoding.

[0354] Optionally, the decoding of this example may refer to the description of the aforementioned embodiment, such as Example 1 or Example 2.

[0355] Example 4:

[0356] In this example, a signal analysis method is used to analyze the frequency characteristics of the audio signal and compare them with a threshold value. Different encoding methods are adaptively selected based on the comparison result of the frequency characteristic value and the threshold value. The frequency characteristic can be a maximum effective frequency value or an effective frequency band range.

[0357] 2 d , the signal analysis module 2201 determines the encoding module 2202 based on the bandwidth detection result, sets the value of the encoding method type, and writes the encoding method type value into the bitstream.

[0358] Optionally, the maximum effective frequency refers to the maximum value of the frequency of the effective audio component.

[0359] Optionally, the signal analysis module 2201 compares the maximum effective frequency value with a threshold. For example, the maximum effective frequency value obtained by bandwidth detection is 192kHz. Since this value is greater than the threshold of 48kHz, the encoding method type is set to 1 and the lossless encoding method is selected for encoding.

[0360] Optionally, the decoding of this example may refer to the description of the aforementioned embodiment, such as Example 1 or Example 2.

[0361] Example 5:

[0362] In this example, when the signal analysis module 2201 has multiple judgment conditions, different judgment conditions are set with different priorities. When the judgment results of the high priority condition and the low priority condition are different, the judgment result of the high priority condition is finally executed.

[0363] Optionally, the priorities of the three conditions are: encoding configuration > wav header analysis > bandwidth detection.

[0364] Alternatively, if the encoding configuration specifies the encoding method type as 1 (for machine monitoring), since the maximum effective frequency is 32000 Hz, the bandwidth detection determines that the encoding method type is set to 0. In this case, the signal analyzer determines that the encoding method type is 1.

[0365] Optionally, in actual application scenarios, audio within the audible range may be heard by a machine.

[0366] Example 6:

[0367] The signal analysis module 2201 outputs the encoding core selection information, and the side information encoding module encodes the side information. The encoded data of the side information is decoded by the side information decoding module on the decoder side to obtain the decoding core.

[0368] The encoding of the side information can be a linear mapping, such as writing the code or identification of the selected coding core directly into the bitstream.

[0369] The encoding of the side information can also be Huffman coding.

[0370] The metadata can also be encoded using the following method:

[0371] There are N encoding cores for human hearing and one core for machine learning. The N+1 encoding cores have different usage frequencies, and the N encoding cores are categorized by their frequency of use. The two most frequently used encoding cores are encoded with 1 bit, while the third most frequently used encoding core is encoded with more bits.

[0372] Example 7:

[0373] Based on the frequency information of the input audio signal, such as the frequency range, the type of the audio signal can be distinguished.

[0374] For example, an audio signal audible to the human ear refers to an audio signal whose frequency range is mainly within the human ear audible range (20Hz-20KHz). See the following example:

[0375] Example 1:

[0376] The signal analysis determines that the lowest frequency of the effective frequency component of the audio signal is 20 Hz, and the highest frequency of the effective frequency component of the audio signal is 20 kHz. It can be determined that the audio signal is audible to the human ear.

[0377] Example 2:

[0378] Signal analysis determines that the lowest frequency of the effective frequency component of the audio signal is 5 Hz, and the highest frequency of the effective frequency component of the audio signal is 20 kHz. It can be determined that the audio signal is audible to the human ear.

[0379] Example 3:

[0380] Signal analysis determines that the lowest frequency of the effective frequency component of the audio signal is 5 Hz, and the highest frequency of the effective frequency component of the audio signal is 16 kHz. It can be determined that the audio signal is audible to the human ear.

[0381] For another example, a machine audio signal refers to an audio signal whose highest frequency exceeds the upper limit of the human audible frequency range of 20 kHz or whose highest frequency is lower than the lower limit of the human audible frequency range of 20 Hz. See the following examples:

[0382] Example 1:

[0383] Signal analysis determined that the lowest frequency of the effective frequency component of the audio signal is 20 Hz, and the highest frequency of the effective frequency component of the audio signal is 30 KHz. It can be determined that the audio signal is a machine audio signal.

[0384] Example 2:

[0385] Signal analysis determined that the lowest frequency of the effective frequency component of the audio signal is 1 Hz, and the highest frequency of the effective frequency component of the audio signal is 18 Hz. It can be determined that the audio signal is a machine audio signal.

[0386] Example 3:

[0387] Signal analysis determined that the lowest frequency of the effective frequency component of the audio signal is 5Hz, and the highest frequency of the effective frequency component of the audio signal is 30KHz. It can be determined that the audio signal is a machine audio signal.

[0388] The embodiments of the present disclosure further provide an apparatus for implementing any of the above methods. For example, an apparatus is provided, and the apparatus includes units or modules for implementing each step performed by the communication device in any of the above methods.

[0389] It should be understood that the division of the various units or modules in the above device is merely a division of logical functions. In actual implementation, they may be fully or partially integrated into a physical entity, or they may be physically separated. In addition, the units or modules in the device may be implemented in the form of a processor calling software: for example, the device includes a processor, the processor is connected to a memory, and the memory stores instructions. The processor calls the instructions stored in the memory to implement any of the above methods or implement the functions of the various units or modules of the above device, wherein the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor, and the memory is a memory within the device or a memory outside the device. Alternatively, the units or modules in the device can be implemented in the form of hardware circuits, and the functions of some or all of the units or modules can be realized by designing the hardware circuits. The above-mentioned hardware circuits can be understood as one or more processors; for example, in one implementation, the above-mentioned hardware circuit is an application-specific integrated circuit (ASIC), which realizes the functions of some or all of the above units or modules by designing the logical relationship of the components in the circuit; for example, in another implementation, the above-mentioned hardware circuit can be realized by a programmable logic device (PLD). Taking a field programmable gate array (FPGA) as an example, it can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by configuring the configuration file, thereby realizing the functions of some or all of the above units or modules. All units or modules of the above devices can be realized in the form of software called by the processor, or in the form of hardware circuits, or in part by the form of software called by the processor, and the rest by hardware circuits.

[0390] In the embodiments of the present disclosure, the processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationship of the hardware circuit. The logical relationship of the above-mentioned hardware circuit is fixed or reconfigurable. For example, the processor is a hardware circuit implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and implementing the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units or modules. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.

[0391] FIG5a is a schematic diagram of the structure of the encoding device proposed in an embodiment of the present disclosure. As shown in FIG5a, the encoding device 5100 may include: at least one of a transceiver module 5101 and a processing module 5102. In some embodiments, the processing module 5102 is used to determine the corresponding encoding mode and side information based on parameter information of the audio signal; wherein the audio signal is an audible audio signal or a machine audio signal, the encoding mode is a first encoding mode corresponding to the audible audio signal or a second encoding mode corresponding to the machine audio signal, the first encoding mode and the second encoding mode are different in encoding algorithms, and the side information is used to indicate the encoding mode; the processing module is further used to encode the audio signal according to the encoding mode to obtain encoded data; the processing module is further used to output a bitstream based on the encoded data and the side information.

[0392] Optionally, the transceiver module 5101 is used to perform at least one of the communication steps such as sending and / or receiving performed by the encoding device 5100 in any of the above methods, which will not be described in detail here. Optionally, the processing module is used to perform at least one of the other steps performed by the encoding device 5100 in any of the above methods, which will not be described in detail here.

[0393] Figure 5b is a schematic diagram of the structure of a decoding device proposed in an embodiment of the present disclosure. As shown in Figure 5b, decoding device 5200 may include at least one of: a transceiver module 5201, a processing module 5202, etc. In some embodiments, the processing module 5202 is configured to determine side information and encoded data based on a bitstream, wherein the side information indicates an encoding mode; the processing module is further configured to determine a corresponding decoding mode based on the side information; wherein the decoding mode is a first decoding mode corresponding to a human-audible audio signal or a second decoding mode corresponding to a machine-audible audio signal, wherein the first decoding mode and the second decoding mode differ in decoding algorithms; and the processing module is further configured to decode the encoded data according to the decoding mode to obtain an audio signal.

[0394] Optionally, the transceiver module 5201 is configured to execute at least one of the communication steps, such as sending and / or receiving, performed by the decoding device 5200 in any of the above methods, and will not be described in detail here. Optionally, the processing module is configured to execute at least one of the other steps performed by the decoding device 5200 in any of the above methods, and will not be described in detail here.

[0395] Figure 6a is a schematic diagram of the structure of a communication device 6100 proposed in an embodiment of the present disclosure. Communication device 6100 can be a terminal (e.g., user equipment), or a chip, chip system, or processor that supports implementation of any of the above methods. Communication device 6100 can be used to implement the methods described in the above method embodiments. For details, please refer to the description of the above method embodiments.

[0396] As shown in Figure 6a, the communication device 6100 includes one or more processors 6101. The processor 6101 can be a general-purpose processor or a dedicated processor, for example, a baseband processor or a central processing unit. The baseband processor can be used to process the communication protocol and communication data, and the central processing unit can be used to control the communication device (such as a base station, a baseband chip, a terminal device, a terminal device chip, a DU or a CU, etc.), execute programs, and process program data. Optionally, the communication device 6100 is used to perform any of the above methods. Optionally, one or more processors 6101 are used to call instructions to enable the communication device 6100 to perform any of the above methods.

[0397] In some embodiments, the communication device 6100 further includes one or more transceivers 6102. When the communication device 6100 includes one or more transceivers 6102, the transceiver 6102 performs at least one of the communication steps, such as sending and / or receiving, in the above-described method, and the processor 6101 performs at least one of the other steps. In an optional embodiment, the transceiver may include a receiver and / or a transmitter, and the receiver and transmitter may be separate or integrated. Optionally, the terms transceiver, transceiver unit, transceiver, transceiver circuit, interface circuit, and interface may be used interchangeably; the terms transmitter, transmitting unit, transmitter, and transmitting circuit may be used interchangeably; and the terms receiver, receiving unit, receiver, and receiving circuit may be used interchangeably.

[0398] In some embodiments, the communication device 6100 further includes one or more memories 6103 for storing data. Alternatively, all or part of the memories 6103 may be located outside the communication device 6100. In alternative embodiments, the communication device 6100 may include one or more interface circuits 6104. Optionally, the interface circuits 6104 are connected to the memory 6102 and may be configured to receive data from the memory 6102 or other devices, or to send data to the memory 6102 or other devices. For example, the interface circuits 6104 may read data stored in the memory 6102 and send the data to the processor 6101.

[0399] A communication device may be an independent device or a part of a larger device. For example, the communication device may be: 1) an independent integrated circuit (IC), or a chip, or a chip system or subsystem; (2) a collection of one or more ICs, optionally including a storage component for storing data or programs; (3) an ASIC, such as a modem; (4) a module that can be embedded in other devices; (5) a receiver, a terminal device, an intelligent terminal device, a cellular phone, a wireless device, a handheld device, a mobile unit, an in-vehicle device, a network device, a cloud device, an artificial intelligence device, etc.; (6) others, etc.

[0400] FIG6b is a schematic diagram of the structure of a chip 6200 according to an embodiment of the present disclosure. If the communication device 6100 can be a chip or a chip system, reference can be made to the schematic diagram of the structure of the chip 6200 shown in FIG6b , but the present disclosure is not limited thereto.

[0401] The chip 6200 includes one or more processors 6201. The chip 6200 is configured to execute any of the above methods.

[0402] In some embodiments, chip 6200 further includes one or more interface circuits 6202. Terms such as interface circuit, interface, and transceiver pins may be used interchangeably. In some embodiments, chip 6200 further includes one or more memories 6203 for storing data. Alternatively, all or part of memory 6203 may be located external to chip 6200. Optionally, interface circuit 6202 is connected to memory 6203 and may be used to receive data from memory 6203 or other devices, or may be used to send data to memory 6203 or other devices. For example, interface circuit 6202 may read data stored in memory 6203 and send the data to processor 6201.

[0403] In some embodiments, the interface circuit 6202 performs at least one of the communication steps, such as sending and / or receiving, in the above-described method. For example, the interface circuit 6202 performing the communication steps, such as sending and / or receiving, in the above-described method means that the interface circuit 6202 performs data exchange between the processor 6201, the chip 6200, the memory 6203, or the transceiver device. In some embodiments, the processor 6201 performs at least one of the other steps.

[0404] The modules and / or devices described in various embodiments, such as virtual devices, physical devices, and chips, can be arbitrarily combined or separated according to circumstances. Optionally, some or all steps can also be performed collaboratively by multiple modules and / or devices, which is not limited here.

[0405] The present disclosure also proposes a storage medium having instructions stored thereon. When the instructions are executed on the communication device 6100, the communication device 6100 executes any of the above methods. Optionally, the storage medium is an electronic storage medium. Optionally, the storage medium is a computer-readable storage medium, but is not limited thereto and may also be a storage medium readable by other devices. Optionally, the storage medium may be a non-transitory storage medium, but is not limited thereto and may also be a transient storage medium.

[0406] The present disclosure also provides a program product, which, when executed by the communication device 6100, enables the communication device 6100 to perform any of the above methods. Optionally, the program product is a computer program product.

[0407] The present disclosure also proposes a computer program, which, when executed on a computer, causes the computer to perform any one of the above methods. Industrial Applicability

[0408] Based on the parameter information of the input audio signal, the encoding mode suitable for the audio signal is adaptively selected to ensure the accuracy of the encoding and retain the valid audio frequency components, avoiding the inapplicability problem caused by encoding the machine audio according to the frequency range audible to the human ear.

Claims

1. A signal encoding method, the method comprising: Determining a corresponding encoding mode and side information according to parameter information of an audio signal; wherein, the audio signal is an audible audio signal for human ears or a machine audio signal, the encoding mode is a first encoding mode corresponding to the audible audio signal for human ears or a second encoding mode corresponding to the machine audio signal, the first encoding mode and the second encoding mode are different in encoding algorithms, and the side information is used to indicate the encoding mode; Encoding the audio signal according to the encoding mode to obtain encoded data; Outputting a bitstream according to the encoded data and the side information.

2. The method according to claim 1, wherein, The parameter information is used to determine that the audio signal is the audible audio signal for human ears or the machine audio signal.

3. The method according to claim 1, wherein The encoding the audio signal according to the encoding mode to obtain encoded data includes: Encoding the audible audio signal for human ears according to the first encoding mode to obtain first encoded data; or, encoding the machine audio signal according to the second encoding mode to obtain second encoded data.

4. The method according to claim 1, wherein, There is a mapping relationship between the bit value corresponding to the side information and the encoding mode, and the bit value corresponding to the side information is an encoded value.

5. The method according to any one of claims 1 to 4, wherein The parameter information includes at least one of the following: Header information; Bandwidth detection result; Frequency information; User configuration information.

6. The method according to claim 5, wherein, The determining a corresponding encoding mode according to parameter information of an audio signal includes: Determining the sampling rate of the audio signal according to the header information of the audio signal; When the sampling rate is greater than a first threshold, determining the encoding mode as the second encoding mode; or, when the sampling rate is less than or equal to the first threshold, determining the encoding mode as the first encoding mode.

7. The method according to claim 5, wherein, The determining a corresponding encoding mode according to parameter information of an audio signal includes: Determining the maximum effective frequency among different effective audio components in the bandwidth detection result according to the bandwidth detection result of the audio signal; When the maximum effective frequency is greater than a second threshold, determining the encoding mode as the second encoding mode; or, when the maximum effective frequency is less than or equal to the second threshold, determining the encoding mode as the first encoding mode.

8. The method according to claim 5, wherein, The determining a corresponding encoding mode according to parameter information of an audio signal includes: Determining the first encoding mode or the second encoding mode specified by the user according to the user configuration information.

9. The method according to claim 5, wherein The frequency information includes a lowest frequency and a highest frequency, and the determining a corresponding encoding mode according to parameter information of an audio signal includes: Determining the lowest frequency and the highest frequency among the effective frequency components of the audio signal; Determining the encoding mode as the first encoding mode or the second encoding mode according to the lowest frequency and the highest frequency.

10. The method according to claim 5, wherein, When the parameter information includes multiple items, the priority of the parameter information satisfies: The priority of the user configuration information > the priority of the header information > the priority of the bandwidth detection result.

11. The method according to claim 10, wherein, The determining a corresponding encoding mode according to parameter information of an audio signal includes: Determine the encoding mode according to the parameter information with the highest priority.

12. A signal decoding method, the method comprising: Determine side information and encoded data according to a bitstream, wherein the side information is used to indicate an encoding mode; Determine a corresponding decoding mode according to the side information; wherein the decoding mode is a first decoding mode corresponding to an audible audio signal for human ears or a second decoding mode corresponding to a machine audio signal, and the first decoding mode and the second decoding mode are different in decoding algorithms ; Decode the encoded data according to the decoding mode to obtain an audio signal.

13. The method according to claim 12, wherein, The step of decoding the encoded data according to the decoding mode to obtain an audio signal includes: Decode the encoded data according to the first decoding mode to obtain an audible audio signal for human ears, or decode the encoded data according to the second decoding mode to obtain a machine audio signal.

14. The method according to claim 12, wherein There is a mapping relationship between the bit value corresponding to the side information and the encoding mode, and the bit value corresponding to the side information is a value after encoding.

15. The method according to claim 14, wherein, The step of determining a corresponding decoding mode according to the side information includes: Determine the encoding mode adopted by the encoding end according to the decoded side information, and determine the decoding mode corresponding to the encoding mode.

16. An encoding device, comprising: A processing module, configured to determine a corresponding encoding mode and side information according to parameter information of an audio signal; wherein the audio signal is an audible audio signal for human ears or a machine audio signal, the encoding mode is a first encoding mode corresponding to the audible audio signal for human ears or a second encoding mode corresponding to the machine audio signal, the first encoding mode and the second encoding mode are different in encoding algorithms, and the side information is used to indicate the encoding mode; The processing module is further configured to encode the audio signal according to the encoding mode to obtain encoded data; The processing module is further configured to output a bitstream according to the encoded data and the side information.

17. A decoding device, comprising: A processing module, configured to determine side information and encoded data according to a bitstream, wherein the side information is used to indicate an encoding mode; The processing module is further configured to determine a corresponding decoding mode according to the side information; wherein the decoding mode is a first decoding mode corresponding to an audible audio signal for human ears or a second decoding mode corresponding to a machine audio signal, and the first decoding mode and the second decoding mode are different in decoding algorithms; The processing module is further configured to decode the encoded data according to the decoding mode to obtain an audio signal.

18. A communication device, comprising: One or more processors; Wherein, the communication device is configured to execute the method according to any one of claims 1 to 11 or any one of claims 12 to 15.

19. A storage medium, the storage medium stores instructions, wherein When the instructions run on a communication device, the communication device is caused to execute the method according to any one of claims 1 to 11 or any one of claims 12 to 15.

20. A communication system, comprising an encoding device and a decoding device, wherein, the encoding device is configured to perform the method according to any one of claims 1 to 11; the decoding device is configured to perform the method according to any one of claims 12 to 15.

Citation Information

Patent Citations

  • Method and apparatus for encoding audio signal, and method and apparatus for decoding audio signal

    CN101641733A

  • An apparatus and a method for decoding an encoded audio signal

    CN102089814A

  • Information interaction method based on sound waves, electronic equipment and server

    CN107786282A

  • Audio coding method and device, audio decoding method and device, medium and electronic equipment

    CN112992161A

  • Audio coding method and device, storage medium and computer equipment

    CN116580716A