Audio data transmission method, device and playback equipment

The audio data of multiple channels is encoded and decoded through the audio sending end, which solves the resource waste and sound quality problems caused by external audio equipment, and realizes an efficient sound quality experience for multi-channel audio playback.

CN112216290BActive Publication Date: 2025-08-15HISENSE VISUAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910613254.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-09
Publication Date
2025-08-15
Estimated Expiration
2039-07-09

AI Technical Summary

Technical Problem

In the prior art, external audio equipment is required to realize multi-channel audio playback, resulting in waste of resources and an inability to form a good audio and video experience.

Method used

The audio data of multiple channels is encoded through the audio sending end, an audio signal with a channel number greater than the rated number of channels is generated, and transmitted to the audio receiver through the audio bus for decoding, ultimately realizing the multi-channel playback effect.

Benefits of technology

Multi-channel audio playback can be achieved without external audio equipment, improving the sound quality experience and avoiding waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112216290B_ABST
    Figure CN112216290B_ABST
Patent Text Reader

Abstract

This application discloses an audio data transmission method, apparatus, and playback device. After an audio transmitter decodes multiple channels of acquired audio data, at least one of the multiple first audio signals obtained contains more channels of audio data than the rated number of channels. Therefore, without the need for external audio equipment, the audio data of more channels can be transmitted to an audio receiver, allowing the audio receiver to transmit the audio data of more channels to a speaker, achieving a multi-channel playback effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of multimedia technology, and in particular to a method, device and playback equipment for transmitting audio data. Background Art

[0002] With the rapid development of multimedia technology, users have higher and higher requirements for the sound quality of audio played by terminals. The playback effects of single or dual channels can no longer meet user needs.

[0003] In related technologies, in order to meet users' demands for sound quality and improve user experience, the sound quality of audio played by a terminal can be improved by connecting an external audio device capable of achieving multi-channel playback effects.

[0004] However, since the speaker of the terminal itself cannot work when the external audio device is connected, a good audio and video experience cannot be formed, and resources are wasted. Summary of the Invention

[0005] The embodiments of the present invention provide an audio data transmission method, apparatus, and playback device, which can solve the problem in related technologies that an external audio device is required to achieve multi-channel audio playback, which cannot provide a good audio-visual experience and causes waste of resources. The technical solution is as follows:

[0006] In one aspect, a method for transmitting audio data is provided, which is applied to an audio transmitting end, wherein the audio transmitting end is connected to an audio receiving end via a plurality of first audio buses, the method comprising:

[0007] Acquire audio data of multiple channels, where the data bit width of the audio data of each channel is the same;

[0008] encoding the audio data of the multiple channels to obtain a plurality of first audio signals corresponding to the plurality of first audio buses, wherein each of the first audio signals includes audio data of at least one channel, and the number of channels of the audio data included in at least one of the first audio signals is greater than a rated number of channels;

[0009] Each channel of the first audio signal is transmitted to the audio receiving end through a corresponding first audio bus.

[0010] Optionally, encoding the audio data of the multiple channels includes:

[0011] encoding the audio data of the multiple channels according to a threshold value of the number of audio channels that the first audio bus can transmit in each sampling period, to obtain a plurality of first audio signals corresponding to the plurality of first audio buses;

[0012] The number of channels of audio data included in each of the first audio signals is less than or equal to the channel number threshold, and the channel number threshold is determined according to the data bit width and a sampling parameter of the first audio bus.

[0013] Optionally, the sampling parameters include: sampling bit width, sampling frequency and sampling mode, and the sampling mode includes single-edge sampling or double-edge sampling;

[0014] The channel number threshold is equal to a product of the rated channel number and at least one parameter among the first ratio, the second ratio, and the sampling coefficient;

[0015] Among them, the first ratio is the ratio of the sampling bit width to the data bit width, the second ratio is the ratio of the sampling frequency to the rated frequency, and the first ratio and the second ratio are both greater than or equal to 1; if the sampling mode is single-edge sampling, the sampling coefficient is 1, if the sampling mode is dual-edge sampling, the sampling coefficient is 2.

[0016] Optionally, the sampling parameters include: sampling bit width, and encoding the audio data of the multiple channels includes:

[0017] If the sampling bit width is a non-integer multiple of the data bit width, split the audio data of the target channel according to the sampling bit width, and combine the split audio data with the audio data of other channels respectively, so that the bit width of the combined audio data is the sampling bit width;

[0018] If the sampling bit width is an integer multiple of the data bit width, the audio data of at least two channels are combined, and the bit width of the combined audio data is the sampling bit width.

[0019] Optionally, the audio data of the multiple channels include: left channel audio data, right channel audio data, left surround channel audio data, right surround channel audio data, left sky channel audio data, right sky channel audio data, center channel audio data and subwoofer channel audio data;

[0020] The audio data of the target channel includes at least one of the center channel audio data and the subwoofer channel audio data.

[0021] In another aspect, a method for transmitting audio data is provided, which is applied to an audio receiving end, wherein the audio receiving end is connected to an audio transmitting end via multiple first audio buses and is connected to multiple speakers via multiple second audio buses, where the number of the second audio buses is greater than the number of the first audio buses. The method comprises:

[0022] receiving a plurality of first audio signals sent by the audio transmitting end through the plurality of first audio buses, wherein each of the first audio signals includes audio data of at least one channel, and the number of channels of the audio data included in at least one of the first audio signals is greater than a rated number of channels;

[0023] decoding the multiple channels of first audio signals according to a decoding method corresponding to the encoding method adopted by the audio transmitting end to obtain multiple channels of second audio signals corresponding to the multiple second audio buses, wherein the number of channels of audio data included in each channel of the second audio signal is less than or equal to the rated number of channels;

[0024] Each channel of the second audio signal is transmitted to a speaker connected to the second audio bus through a corresponding second audio bus.

[0025] Optionally, decoding the multiple channels of first audio signals to obtain multiple channels of second audio signals corresponding to the multiple second audio buses includes:

[0026] Splitting and combining the audio data of the multiple channels included in the multiple channels of the first audio signals according to the sampling bit width of the second audio bus to obtain the multiple channels of the second audio signals;

[0027] The data bit width of the audio data of each channel included in each channel of the second audio signal is the sampling bit width of the second audio bus.

[0028] Optionally, decoding the multiple channels of first audio signals includes:

[0029] The multiple channels of first audio signals are decoded during the process of receiving the multiple channels of first audio signals; or the multiple channels of first audio signals are decoded after the multiple channels of first audio signals are received.

[0030] In another aspect, a device for transmitting audio data is provided, which is applied to an audio transmitting end, wherein the audio transmitting end is connected to an audio receiving end via a plurality of first audio buses, and the device comprises:

[0031] An acquisition circuit, configured to acquire audio data of multiple channels, wherein the audio data of each channel has the same data bit width;

[0032] an encoding circuit, configured to encode the audio data of the multiple channels to obtain a plurality of first audio signals corresponding to the plurality of first audio buses, wherein each of the first audio signals includes audio data of at least one channel, and the number of channels of the audio data included in at least one of the first audio signals is greater than a rated number of channels;

[0033] The first audio signal transmission circuit is configured to transmit each channel of the first audio signal to the audio receiving end through a corresponding first audio bus.

[0034] In another aspect, a device for transmitting audio data is provided, which is applied to an audio receiving end, wherein the audio receiving end is connected to an audio transmitting end via multiple first audio buses and is connected to multiple speakers via multiple second audio buses, where the number of the second audio buses is greater than the number of the first audio buses. The device includes:

[0035] a receiving circuit, configured to receive a plurality of first audio signals transmitted by the audio transmitting end through the plurality of first audio buses, wherein each of the first audio signals includes audio data of at least one channel, and the number of channels of the audio data included in at least one of the first audio signals is greater than a rated number of channels;

[0036] a decoding circuit, configured to decode the multiple channels of first audio signals according to a decoding method corresponding to the encoding method adopted by the audio transmitting end, to obtain multiple channels of second audio signals corresponding to the multiple second audio buses, wherein the number of channels of audio data included in each channel of the second audio signal is less than or equal to the rated number of channels;

[0037] The second audio signal transmission circuit is configured to transmit each channel of the second audio signal to a speaker connected to the second audio bus through a corresponding second audio bus.

[0038] In another aspect, a playback device is provided, the playback device comprising: an audio transmitting end and an audio receiving end;

[0039] The audio transmitting end includes the audio data transmission device as described in the above aspect;

[0040] The audio receiving end includes the audio data transmission device as described in the above aspect.

[0041] The beneficial effects brought about by the technical solution provided by the present invention may include at least:

[0042] In summary, embodiments of the present invention provide a method, apparatus, and playback device for transmitting audio data. Because, after an audio transmitter decodes the acquired audio data across multiple channels, at least one of the multiple first audio signals obtained includes audio data with a number of channels exceeding the rated number of channels, the audio data with more channels can be transmitted to an audio receiver without the need for external audio equipment. This allows the audio receiver to transmit the audio data with more channels to a speaker, achieving a multi-channel playback effect.

[0043] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0045] Figure 1 Schematic diagram of an implementation environment involved in an audio data transmission method provided by an embodiment of the present invention;

[0046] Figure 2 This is a signal timing diagram of an audio bus provided by an embodiment of the present invention;

[0047] Figure 3 This is a flow chart of a method for transmitting audio data provided by an embodiment of the present invention;

[0048] Figure 4 is a flow chart of another audio data transmission method provided by an embodiment of the present invention;

[0049] Figure 5 This is a schematic diagram of audio data encoding provided by an embodiment of the present invention;

[0050] Figure 6 is another schematic diagram of audio data encoding provided by an embodiment of the present invention;

[0051] Figure 7 This is another schematic diagram of audio data encoding provided by an embodiment of the present invention;

[0052] Figure 8 1 is a schematic diagram of another audio data encoding method provided by an embodiment of the present invention;

[0053] Figure 9 1 is a schematic diagram of another audio data encoding method provided by an embodiment of the present invention;

[0054] Figure 10 This is a structural diagram of an audio data transmission method provided by an embodiment of the present invention;

[0055] Figure 11 This is a schematic diagram of the internal structure of an audio transmitting terminal provided by an embodiment of the present invention;

[0056] Figure 12 This is a flow chart of another method for transmitting audio data provided by an embodiment of the present invention;

[0057] Figure 13 This is a flow chart of another method for transmitting audio data provided by an embodiment of the present invention;

[0058] Figure 14 This is a schematic diagram of decoding audio data provided by an embodiment of the present invention;

[0059] Figure 15 is another schematic diagram of decoding audio data provided by an embodiment of the present invention;

[0060] Figure 16 This is another schematic diagram of decoding audio data provided by an embodiment of the present invention;

[0061] Figure 17 This is a flow chart of another method for transmitting audio data provided by an embodiment of the present invention;

[0062] Figure 18 This is a schematic diagram of audio data processing provided by an embodiment of the present invention;

[0063] Figure 19 is another data processing diagram of audio data provided by an embodiment of the present invention;

[0064] Figure 20 is a block diagram of an audio data transmission device provided by an embodiment of the present invention;

[0065] Figure 21 is a block diagram of another audio data transmission device provided by an embodiment of the present invention;

[0066] Figure 22 It is a structural diagram of a playback device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0067] To make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

[0068] Figure 1 FIG. 1 is a schematic diagram of an implementation environment involved in an audio data transmission method provided by an embodiment of the present invention. Figure 1 As shown, the implementation environment may include: an audio transmitter 10, an audio receiver 20 and a plurality of speakers 30. For example, Figure 1 Eight loudspeakers 30 are shown.

[0069] refer to Figure 1One end of the audio transmitting end 10 can be connected to the sound source S1, and the other end can be connected to one end of the audio receiving end 20 through multiple first audio buses L1. The other end of the audio receiving end 20 can be connected to multiple speakers 30 through multiple second audio buses L2, and a power amplifier (AMP) 40 can also be connected between the audio receiving end 20 and the speaker 30.

[0070] The audio transmitter 10 may include a decoder 101 and a re-encoder 102. The decoder 101 may decode the compressed audio data sent by the sound source S1 to obtain audio data of multiple channels, and then send the data to the re-encoder 102. The re-encoder 102 may re-encode the audio data of multiple channels and send the data to the audio receiver 20 via the first audio bus L1. The audio receiver 20 may decode the received audio data of multiple channels, amplify the data through the AMP 40, and then transmit the data to the speaker 30 via the second audio bus L2, thereby realizing the transmission of audio data of multiple channels.

[0071] For example, reference Figure 1 The audio transmitting end 10 can be connected to one end of the audio receiving end 20 via three first audio buses L1, and the other end of the audio receiving end 20 can be connected to five AMPs 40 via five second audio buses L2. Each AMP 40 can be connected to one or two speakers 30.

[0072] Optionally, the audio transmitting end 10 may be a core end of a terminal, and the audio receiving end 20 may be an XMOS chip provided in the terminal. The audio receiving end 20 may also be referred to as a co-audio processor. The first audio bus L1 and the second audio bus L2 may be integrated circuit internal audio buses (inter-IC sound, I2S). The terminal may be a device such as a television, a computer, or a mobile phone.

[0073] Due to cost and algorithm complexity limitations, the audio transmitter 10 can currently support a maximum of three I2S channels. This means the audio transmitter 10 can be connected to the audio receiver 20 via a maximum of three first audio buses L1. However, since a speaker 30 can receive a maximum of two channels (channel, ch) of audio data, each first audio bus L1 can currently only transmit two channels of audio data (i.e., the rated number of channels for each first audio bus L1 is 2). Consequently, the three first audio buses L1 can only transmit a maximum of six channels of audio data, which is quite limited and results in poor sound quality.

[0074] In the above-described implementation environment described in the embodiment of the present invention, the audio transmitting end 10 can encode the audio data of multiple channels through the re-encoder 102 to obtain multiple first audio signals corresponding one-to-one to the multiple first audio buses L1, and transmit the corresponding first audio signal to the audio receiving end 20 through each first audio bus L1. Because the number of channels of audio data included in the at least one encoded first audio signal is greater than the rated number of channels, audio data transmission of more than 6 channels can be achieved. For example, audio data transmission of 8 channels (i.e., audio format of 5.1.2) can be achieved.

[0075] Figure 2 This is a timing diagram of each signal of I2S provided by an embodiment of the present invention. Figure 2 It can be seen that the I2S signal may include: a frame clock WS, a serial clock BCLK, and serial data SDATA.

[0076] Each pulse of the serial clock BCLK corresponds to one bit of audio data, and the frequency of BCLK satisfies the following equation: 2×sampling frequency×sampling bit width. For example, when the sampling frequency is 48 kilohertz (KHZ) and the sampling bit width is 16 bits (bit), the frequency of BCLK is: 2×16×48=1.536 megahertz (MHz). The frame clock WS is used to indicate the audio data of the left and right channels. The first potential of WS indicates that the channel of the audio data being transmitted is the left channel (i.e., Figure 2 L_ch shown); WS is the second potential, which can indicate that the channel of the audio data being transmitted is the right channel (ie Figure 2 The first potential can be a high potential relative to the second potential, or the first potential can be a low potential relative to the second potential. The serial data SDATA is audio data represented by a binary complement.

[0077] In addition to the above signals, to improve data transmission synchronization, the I2S signal can also include a master clock MCLK. The frequency of the master clock MCLK can be 256 times or 384 times the sampling frequency. For example, assuming the sampling frequency is 48 kHz, the frequency of the master clock MCLK is 256 times the sampling frequency, so the frequency of the master clock MCLK can be: 48 × 256 = 12.288 MHz.

[0078] It should be noted that, since I2S always starts collecting from high-bit data when collecting audio data, and in order to make the number of valid bits that the audio transmitting end 10 and the audio receiving end 20 can process different, no matter how many bits of valid data the I2S signal has, such as Figure 2As shown, the most significant bit of the serial data SDATA always appears at the second BCLK pulse after the WS changes (i.e., the start of a frame). This allows the audio transmitter 10 and the audio receiver 20 to have different effective bits. If the effective bit number that the audio transmitter 10 can process is less than the effective bit number that the audio receiver 20 can process, the redundant low-bit data in the collected audio data can be discarded accordingly. If the effective bit number that the audio transmitter 10 can process is more than the effective bit number that the audio receiver 20 can process, the remaining bit number can be automatically supplemented accordingly. This synchronization mechanism makes the connection between the audio transmitter 10 and the audio receiver 20 more convenient and ensures that the transmitted audio data will not be misaligned.

[0079] Optionally, under the unified I2S interface, there are many different data formats. For example, according to the position of SDATA relative to WS and BCLK, it can be divided into left-aligned, right-aligned and I2S format. For example, Figure 2 16-bit left-aligned, 20-bit left-aligned, 24-bit left-aligned, and 24-bit right-aligned are shown. Furthermore, to ensure correct transmission of audio data, the audio transmitter 10 and the audio receiver 20 can use the same data format and length. However, for the I2S format, the data length can be different. WS can change on either the rising or falling edge of BCLK, and the WS timing does not need to be completely symmetrical.

[0080] Figure 3 This is a flow chart of a method for transmitting audio data provided by an embodiment of the present invention. The method can be applied to Figure 1 In the audio transmitting terminal 10 shown, reference is made to Figure 1 The audio transmitting end 10 can be connected to the audio receiving end 20 via a plurality of first audio buses L1. Figure 3 As shown, the method may include:

[0081] Step 301: Acquire audio data of multiple channels.

[0082] In an embodiment of the present invention, the audio transmitting terminal 10 can obtain compressed audio data sent by the sound source S1, or can also obtain compressed audio data sent by other devices (such as external audio equipment). Afterwards, the decoder 101 in the audio transmitting terminal 10 can decode the obtained audio data to obtain audio data of multiple channels. The data bit width of the audio data of each channel can be the same and can be the same as the initial sampling bit width of the first audio bus.

[0083] Step 302: Encode the audio data of multiple channels to obtain multiple first audio signals corresponding to multiple first audio buses.

[0084] In the embodiment of the present invention, each first audio signal may include audio data of at least one channel, and the number of channels of the audio data included in at least one first audio signal may be greater than the rated number of channels.

[0085] The rated number of channels may be the number of channels of audio data that a speaker can receive. Since the number of channels of audio data that a speaker can receive is 2, the rated number of channels is 2. Accordingly, at least one first audio signal may include audio data for more than 2 channels. Compared to related art methods in which each first audio signal includes at most 2 channels of audio data, the audio data transmission method provided in the embodiments of the present invention can achieve audio data transmission for more channels.

[0086] Step 303: Transmit each channel of the first audio signal to the audio receiving end through a corresponding first audio bus.

[0087] For example, assuming that the audio transmitting end 10 encodes audio data of multiple channels to obtain three first audio signals, the audio transmitting end 10 can transmit each of the three first audio signals via a corresponding first audio bus L1 to the audio receiving end 20. The audio receiving end 20 can then decode the received encoded audio data and transmit it to the speaker 30 via multiple second audio buses L2, thereby achieving multi-channel audio data transmission.

[0088] In summary, embodiments of the present invention provide a method for transmitting audio data. After an audio transmitter decodes the acquired audio data for multiple channels, at least one of the multiple first audio signals obtained contains audio data with a number of channels exceeding the rated number of channels. Therefore, without the need for external audio equipment, audio data with more channels can be transmitted to an audio receiver, allowing the audio receiver to transmit the audio data with more channels to a speaker, achieving a multi-channel playback effect.

[0089] Figure 4 This is a flow chart of another audio data transmission method provided by an embodiment of the present invention, which can be applied to Figure 1 In the audio transmitting terminal 10 shown. Figure 4 As shown, the method may include:

[0090] Step 401: Acquire audio data of multiple channels.

[0091] In an embodiment of the present invention, the audio transmitting terminal 10 can obtain compressed audio data sent by the sound source S1 in the terminal when the terminal plays an audio or video file containing audio data. Alternatively, the terminal can also obtain compressed audio data sent by other devices (such as external audio equipment). Afterwards, the decoder 101 in the audio transmitting terminal 10 can decode the obtained audio data to obtain audio data of multiple channels. The data bit width of the audio data of each channel can be the same, and the data bit width can be equal to the initial sampling bit width of the first audio bus.

[0092] For example, assume that when a terminal is playing a video, sound source S1 sends audio data comprising eight channels. Accordingly, the audio transmitting terminal 10 can decode the audio data sent by sound source S1 through the decoder 101 to obtain audio data of the eight channels. Assuming that the initial sampling bit width of the first audio bus L1 is 16 bits, the data bit width of the audio data of each channel can also be 16 bits.

[0093] Optionally, the eight channels of audio data may include: left channel audio data L, right channel audio data R, left surround channel audio data SL, right surround channel audio data SR, left sky channel audio data TOPL, right sky channel audio data TOPR, center channel audio data Center, and subwoofer channel audio data Woofer. This embodiment of the present invention does not limit the number of channels of audio data obtained by the audio transmitting end 10, nor does it limit the type of audio data of each channel.

[0094] Step 402: Determine a threshold value of the number of channels of audio data that can be transmitted by the first audio bus in each sampling period.

[0095] In an embodiment of the present invention, the channel number threshold can be determined based on the data bit width and sampling parameters of the first audio bus. The sampling parameters of the first audio bus L1 may include: sampling bit width, sampling frequency, and sampling mode. The sampling mode may include single-edge sampling (i.e., audio data is collected only on the rising or falling edge of a pulse) or dual-edge sampling (i.e., audio data is collected on both the rising and falling edges of a pulse).

[0096] The channel number threshold N1 may be equal to the product of the rated channel number N0 and at least one parameter among the first ratio w1, the second ratio w2, and the sampling coefficient w3. The first ratio w1 may be the ratio of the sampling bit width to the data bit width; the second ratio w2 may be the ratio of the sampling frequency to the rated frequency. Both the first ratio w1 and the second ratio w2 may be greater than or equal to 1. If the sampling method is single-edge sampling, the sampling coefficient w3 may be 1; if the sampling method is dual-edge sampling, the sampling coefficient w3 may be 2. The rated channel number N0 may be the number of channels of audio data that a speaker can receive. Since the number of channels of audio data that the speaker can receive is 2, the rated channel number N0 may be 2.

[0097] It should be noted that the sampling parameters of the first audio bus L1 are all pre-set in the terminal, and in order to realize multi-channel audio data transmission, at least one of the sampling parameters of the first audio bus L1 can be obtained by adjusting the initial sampling parameters of the first audio bus L1.

[0098] In an embodiment of the present invention, the channel number threshold N1 may be equal to the product of the rated channel number N0 and the first ratio w1, the second ratio w2, and the sampling coefficient w3, whichever is greater than 1. The first ratio w1 will only be greater than 1 after the sampling bit width is adjusted; the second ratio w2 will only be greater than 1 after the sampling frequency is adjusted; and the sampling coefficient w3 will only be greater than 1 if the sampling method is dual-edge sampling. Therefore, if the sampling method is single-edge sampling, the channel number threshold N1 is the product of the rated channel number N0 and the first ratio w1 and the second ratio w2, whichever is greater than 1. When the sampling method is dual-edge sampling, the channel number threshold N1 is the product of the rated channel number N0 and the sampling coefficient w3, and the first ratio w1 and the second ratio w2, whichever is greater than 1.

[0099] For example, assuming that the sampling mode of the first audio bus L1 is single-edge sampling, if only the sampling bit width of the sampling parameters of the first audio bus L1 is adjusted from the initial sampling bit width of the first audio bus L1, then the channel number threshold N1 can be equal to the product of the rated channel number N0 and the first ratio w1, that is, the channel number threshold N1 can satisfy: N1 = N0 × w1. If only the sampling frequency of the sampling parameters of the first audio bus L1 is adjusted from the initial sampling frequency of the first audio bus L1, then the channel number threshold N1 can be equal to the product of the rated channel number N0 and the second ratio w2, that is, the channel number threshold N1 can satisfy: N1 = N0 × w2. If the sampling frequency and sampling bit width in the sampling parameters of the first audio bus L1 are obtained by adjusting the initial sampling parameters of the first audio bus L1, then the channel number threshold N1 can be equal to the product of the rated channel number N0, the first ratio w1, and the second ratio w2, that is, the channel number threshold N1 can satisfy: N1 = N0 × w1 × w2.

[0100] Assuming that the sampling mode of the first audio bus L1 is dual-edge sampling, if the sampling parameters of the first audio bus L1 are all initial sampling parameters, then the channel number threshold N1 can be equal to the product of the rated channel number N0 and the sampling coefficient w3, that is, the channel number threshold N1 can satisfy: N1 = N0 × w3. If only the sampling bit width of the sampling parameters of the first audio bus L1 is adjusted from the initial sampling bit width of the first audio bus L1, then the channel number threshold N1 can be equal to the product of the rated channel number N0, the first ratio w1, and the sampling coefficient w3, that is, the channel number threshold N1 can satisfy: N1 = N0 × w1 × w3. If only the sampling frequency of the sampling parameters of the first audio bus L1 is adjusted from the initial sampling frequency of the first audio bus L1, then the channel number threshold N1 can be equal to the product of the rated channel number N0, the second ratio w2, and the sampling coefficient w3, that is, the channel number threshold N1 can satisfy: N1 = N0 × w2 × w3. If the sampling frequency and sampling bit width in the sampling parameters of the first audio bus L1 are obtained by adjusting the initial sampling parameters of the first audio bus L1, then the channel number threshold N1 can be equal to the product of the rated channel number N0 and the first ratio w1, the second ratio w2 and the sampling coefficient w3, that is, the channel number threshold N1 can satisfy: N1 = N0 × w1 × w2 × w3.

[0101] The above embodiment is described by taking the initial sampling bit width of the first audio bus L1 as 16 bits, that is, the data bit width is 16 bits, the initial sampling frequency is 48 kHz, the initial sampling mode is single-edge sampling, the sampling coefficient w3 is 1, the rated number of channels N0 is 2, and the rated frequency is 48 kHz as an example:

[0102] As an optional implementation, the initial sampling frequency can be kept unchanged and the initial sampling bit width can be increased. Figure 5 While maintaining the initial sampling frequency of the first audio bus L1 at 48 kHz, the initial sampling bit width of the first audio bus L1 can be increased from 16 bits to 24 bits. This means that the sampling bit width of the first audio bus L1 is 24 bits and the sampling frequency is 48 kHz. The first ratio w1 is then 1.5, the second ratio w2 is 1, and the channel number threshold N1 is: N1 = N0 × w1 = 2 × 1.5 = 3. This means that each first audio bus L1 can transmit a maximum of 3 channels of audio data. Accordingly, the three first audio buses L1 can transmit a maximum of 9 channels of audio data.

[0103] For example, reference Figure 6 , under the premise of keeping the initial sampling frequency of the first audio bus L1 at 48KHZ unchanged, the initial sampling bit width of the first audio bus L1 from 16bit can be increased to 32bit, that is, the sampling bit width of the first audio bus L1 is 32bit, the sampling frequency is 48KHZ, then the first ratio w1 is 2, the second ratio w2 is 1, and the channel number threshold N1 is: N1=N0×w1=2×2=4. That is, each first audio bus L1 can transmit up to 4ch of audio data. Correspondingly, it can be guaranteed that three first audio buses L1 can transmit up to 12ch of audio data, and two first audio buses L1 can transmit 8ch of audio data. Therefore, to achieve 8ch of audio data transmission, refer to Figure 6 , only two first audio buses L1 need to be set, which saves costs, and because most of the current audio transmitting terminals 10 are equipped with two first audio buses L1, the compatibility is also strong.

[0104] As another optional implementation, the initial sampling bit width can be kept unchanged and the initial sampling frequency can be increased. Figure 7 and Figure 8 , the initial sampling frequency of 48 kHz can be increased to 96 kHz while maintaining the initial sampling bit width of 16 bits. That is, the sampling bit width of the first audio bus L1 is 16 bits and the sampling frequency is 96 kHz. Then the first ratio w1 is 1, the second ratio w2 is 2, and the channel number threshold N1 is: N1 = N0 × w2 = 2 × 2 = 4. That is, each first audio bus L1 can transmit a maximum of 4 channels of audio data. Accordingly, it can be guaranteed that three first audio buses L1 can transmit a maximum of 12 channels of audio data, and two first audio buses L1 can transmit a maximum of 8 channels of audio data.

[0105] As another optional implementation, both the initial sampling bit width and the initial sampling frequency of the first audio bus L1 can be increased. For example, the sampling frequency of the first audio bus L1 can be adjusted to an integer multiple of the initial sampling frequency. Figure 9 , the initial sampling bit width of 16 bits can be increased to 24 bits, and the initial sampling frequency of 48 kHz can be increased to 96 kHz. Accordingly, the sampling bit width of each first audio bus L1 is 24 bits, and the sampling frequency is 96 kHz, then the first ratio w1 is 1.5, the second ratio w2 is 2, and the channel number threshold N1 is: N1 = N0 × w1 × w2 = 2 × 1.5 × 2 = 6. Each first audio bus L1 can transmit a maximum of 6 channels of audio data. Accordingly, it can be guaranteed that the two first audio buses L1 can transmit a maximum of 12 channels of audio data. For audio data transmission with more than 8 channels, it has wider adaptability.

[0106] As another optional implementation method, the initial sampling bit width and the initial sampling frequency can be kept unchanged, and only the initial sampling mode is adjusted from single-edge sampling to double-edge sampling, that is, w3 is 2. Accordingly, under the premise of the initial sampling bit width of 16 bits and the initial sampling frequency of 48KHZ, the channel number threshold N1 can also be made: N1=N0×w3=2×2=4, that is, each first audio bus L1 can transmit up to 4ch of channel data.

[0107] It should be noted that the above sampling parameter adjustment method is only an example. If audio data transmission with more channels is to be achieved, the sampling parameters of the first audio bus L1 can be adjusted accordingly according to the requirement of the number of channels.

[0108] Step 403: Encode the audio data of multiple channels according to a threshold value of the number of audio channels that can be transmitted by the first audio bus in each sampling period to obtain multiple first audio signals corresponding to the multiple first audio buses.

[0109] In this embodiment of the present invention, after the audio transmitting end 10 determines the threshold value of the number of channels that can be transmitted by the first audio bus L1 within each sampling period, it can use a preset algorithm to split and combine the acquired audio data of multiple channels to obtain multiple first audio signals. The number of channels of audio data included in each first audio signal can be less than or equal to the channel number threshold value.

[0110] If the adjusted sampling bit width of the first audio bus is a non-integer multiple of the data bit width, the audio data of the target channel can be split according to the sampling bit width, and the split audio data can be combined with the audio data of other channels respectively, and the bit width of the combined audio data can be the sampling bit width. If the sampling bit width is an integer multiple of the data bit width, the audio data of at least two channels can be combined, and the bit width of the combined audio data can be the sampling bit width.

[0111] Optionally, the audio data of the target channel includes at least one of center channel audio data (Center) and subwoofer channel audio data (Woofer). Because the center channel audio data (Center) and subwoofer channel audio data (Woofer) are secondary sounds relative to the audio data of other channels, splitting the secondary sounds can prevent loss or errors in the acquired primary sounds (such as the main channel, surround sound, or overhead sound), thereby ensuring reliable multi-channel audio data transmission.

[0112] Take the data width as 16 bits, the rated frequency as 48 kHz, and the sampling mode as single-edge sampling as an example:

[0113] As an optional implementation, such as Figure 5 and Figure 9 As shown, the sampling bit width of the first audio bus L1 is 24 bits. Since the sampling bit width of 24 bits is 1.5 times (i.e., a non-integer multiple) of the data bit width of 16 bits, the audio transmitting end 10 can split the audio data of the target channel according to 24 bits, and combine the split audio data with the audio data of other channels respectively, and make the bit width of the combined audio data equal to the sampling bit width. That is, the encoding method of the audio transmitting end 10 can be: in the first half of each sampling cycle, combine the 16-bit audio data of one channel and the low 8-bit audio data of the split 1 channel; in the second half of each sampling cycle, combine the 16-bit audio data of one channel and the high 8-bit audio data of the split 1 channel.

[0114] Example, reference Figure 5 , assuming that the channel number threshold of each first audio bus L1 is 3, and the audio transmitting terminal 10 obtains 9 channels of audio data from ch0 to ch8, of which ch1, ch4 and ch7 are target channels. Figure 5, the audio transmitting end 10 can split the audio data of each ch in ch1, ch4 and ch7 into two segments of data of low 8 bits and high 8 bits. Afterwards, the two segments of data after ch1 is split, the low 8-bit segment can be combined with the 16-bit audio data of ch0, and the high 8-bit segment can be combined with the 16-bit audio data of ch2, so as to obtain a first audio signal. Among them, the bit width of the audio data after ch0 is combined with the low 8-bit segment of ch1 is 24 bits, and the bit width of the audio data after ch2 is combined with the high 8-bit segment of ch1 is 24 bits. Similarly, the two segments of data after ch4 is split can be combined with ch3 and ch5 respectively to form a first audio signal, and the two segments of data after ch7 is split can be combined with ch6 and ch8 respectively to form a first audio signal. Correspondingly, after encoding, a total of three first audio signals are obtained, and each first audio signal includes audio data of 3 channels.

[0115] For example, reference Figure 9 , assuming that the channel number threshold of each first audio bus L1 is 4, the audio sending end 10 obtains 8ch of audio data including L, R, C, LFE, Rs, Ls, Lfh and Rfh, and Lfh and Rfh are the target channels, then refer to Figure 9 The audio transmitting end 10 can split the audio data of each channel in Lfh and Rfh into two segments of data, namely, a lower 8-bit segment and an upper 8-bit segment. The lower 8-bit segment of the two Lfh data segments is combined with the 16-bit audio data of the L channel, and the upper 8-bit segment of the two Rfh data segments is combined with the 16-bit audio data of the C channel, and the upper 8-bit segment of the two Rfh data segments is combined with the 16-bit audio data of the LFE channel, thereby obtaining a first audio signal. The audio data of the remaining channels are combined into a first audio signal.

[0116] As another optional implementation, refer to Figure 6 , the sampling bit width of the first audio bus L1 is 32 bits, refer to Figure 7 and Figure 8 , the sampling bit width of the first audio bus L1 is 16 bits. Since the sampling bit width of 16 bits is 1 times (i.e., an integer multiple) the data bit width of 16 bits, and the sampling bit width of 32 bits is 2 times (i.e., an integer multiple) the data bit width of 16 bits. Therefore, for Figure 6 The audio transmitting end 10 can combine the audio data of at least two channels according to 16 bits, and the bit width of the combined audio data is the sampling bit width. Figure 7 and Figure 8The audio transmitter 10 can combine the audio data of at least two channels based on 32 bits, and the bit width of the combined audio data is the sampling bit width. In other words, the encoding method of the audio transmitter 10 can be: combining two 1-channel 16-bit audio data in the first half of each sampling period, and combining two 1-channel 16-bit audio data in the second half of each sampling period.

[0117] For example, reference Figure 6 and Figure 8 , assuming that the channel number threshold of each first audio bus L1 is 4, the audio sending end 10 obtains 8ch audio data of L, R, C, LFE, Rs, Ls, Lfh and Rfh, then refer to Figure 6 and Figure 8 The audio transmitting end 10 can combine the audio data of the four channels of L, R, C and LFE into one first audio signal, and combine the audio data of the four channels of Rs, Ls, Lfh and Rfh into one first audio signal in each sampling period. Accordingly, after encoding, a total of two first audio signals are obtained, and each first audio signal includes 4ch audio data.

[0118] Similarly, reference Figure 7 , assuming that the channel number threshold of each first audio bus L1 is 4, the audio sending end 10 obtains 12ch audio data from ch0 to ch11, then refer to Figure 6 The audio transmitting end 10 can combine the audio data of 4 channels, ch0 to ch3, into one first audio signal, combine the audio data of 4 channels, ch4 to ch7, into one first audio signal, and combine the audio data of 4 channels, ch8 to ch11, into one first audio signal. Accordingly, after encoding, a total of three first audio signals are obtained, and each first audio signal includes 4 channels of audio data.

[0119] It should be noted that the embodiment of the present invention does not limit the manner in which the audio transmitting end 10 splits and combines the audio data of multiple channels.

[0120] Step 404: Transmit each channel of the first audio signal to the audio receiving end through a corresponding first audio bus.

[0121] In an embodiment of the present invention, the audio transmitting terminal 10 can transmit all of the encoded first audio signals to the audio receiving terminal 20 via a corresponding first audio bus L1. The audio receiving terminal 20 can pre-store the encoding method of the audio transmitting terminal 10. Accordingly, the audio receiving terminal 20 can decode the received multiple first audio signals according to its pre-stored encoding method and transmit all of them to the speaker 30 via the second audio bus L2, thereby realizing multi-channel audio data transmission.

[0122] For example, Figure 5 As shown, the audio transmitting end 10 encodes the acquired audio data of the channels to obtain three first audio signals, each of which includes 3 channels of audio data. Accordingly, the audio transmitting end 10 can transmit each first audio signal to the audio transmitting end 10 via the corresponding first audio bus L1.

[0123] Optional, such as Figure 10 As shown, the audio transmitter 10 may include an application layer, a hardware abstraction layer (HAL), a driver layer, and a bottom layer (hardware). In actual applications, after starting a multi-channel application, the application layer may send an audio data transmission instruction to the hardware abstraction layer. After receiving the audio data transmission instruction, the hardware abstraction layer may run the relevant code for multi-channel audio data transmission, thereby driving the driver layer to detect the audio device connected to the bottom layer hardware. For example, the audio device may be a USB device.

[0124] Furthermore, when the driver layer detects the audio device, the audio device can send the audio file (i.e. Figure 10 The original audio data shown in the figure is input to the audio transmitting terminal 10. The audio transmitting terminal 10 can decode the original audio data through the decoder 101 to obtain audio data of multiple channels (such as 8ch audio data) and store it in the bottom layer, for example, it can be stored in a memory. Then, the driver layer can inform the hardware abstraction layer of the audio device detected by the bottom layer. At this time, the hardware abstraction layer can send an audio data transmission request to the application layer to inquire whether the application layer sends audio data. When the hardware abstraction layer receives the response instruction of the application layer indicating the transmission of audio data, the encoding method of the multi-channel audio data (that is, the relevant code for audio data transmission) can be sent to the driver layer. The driver layer can then encode the audio data of multiple channels stored in the bottom layer according to the encoding method (that is, execute the above step 403). After encoding, it can be transmitted to an external device through the first audio bus L1. The external device can be an audio receiving terminal 20, or it can be a speaker 30.

[0125] It should be noted that the reference Figure 11, the audio transmitting end 10 may further include an audio processor (Data Acquisition and Processing, DAP). The DAP may be connected to the decoder 101 and the re-encoder 102 respectively. After the decoder 101 decodes the compressed audio data sent by the sound source S1, the audio data of the multiple channels may be sent to the DAP first. The DAP may process the audio data through a preset algorithm to obtain audio data with better effects. The processed audio data is then sent to the re-encoder 102, which executes the above step 403 to implement encoding, and finally transmits the audio data through the first audio bus L1 (i.e., I2S). In addition, refer to Figure 11 The audio processor DAP can also be connected to the mixer MIX, which can mix the mixed audio data in the received audio data to obtain stereo sound and output it.

[0126] The audio data transmission method provided by an embodiment of the present invention encodes received audio data from multiple channels, enabling at least one encoded first audio signal to include more channels than the rated number of channels, that is, more than the number of channels that can be received by the speaker. This method enables the transmission of audio data with multiple channels, even when the first audio bus L1 is relatively small, thus enabling the transmission of 5.1.2-channel audio data. This breaks the traditional signal concept and lays the foundation for the implementation of stereo terminals.

[0127] In summary, embodiments of the present invention provide a method for transmitting audio data. After an audio transmitter decodes the acquired audio data for multiple channels, at least one of the multiple first audio signals obtained contains audio data with a number of channels exceeding the rated number of channels. Therefore, without the need for external audio equipment, audio data with more channels can be transmitted to an audio receiver, allowing the audio receiver to transmit the audio data with more channels to a speaker, achieving a multi-channel playback effect.

[0128] Figure 12 This is a flow chart of a method for transmitting audio data provided by an embodiment of the present invention. The method can be applied to Figure 1 In the audio receiving terminal 20 shown in FIG. Figure 1 The audio receiving end 20 can be connected to the audio transmitting end 10 through multiple first audio buses L1, and connected to multiple speakers 30 through multiple second audio buses L2, and the number of the second audio buses L2 is greater than the number of the first audio buses L1. Figure 12 As shown, the method may include:

[0129] Step 501: Receive multiple first audio signals sent by an audio transmitting terminal via multiple first audio buses.

[0130] In the embodiment of the present invention, each first audio signal may include audio data of at least one channel, and the number of channels of the audio data included in at least one first audio signal is greater than the rated number of channels.

[0131] The rated number of channels may be the number of channels of audio data that a speaker can receive. Since the number of channels of audio data that a speaker can receive is 2, the rated number of channels is 2. Accordingly, compared to the related art, the audio receiving terminal 20 can only receive 6-channel channel data transmitted by three first audio buses. The audio receiving terminal 20 provided in the embodiment of the present invention can receive audio data with more than 6 channels transmitted by the three first audio buses.

[0132] Step 502: Decode the multiple channels of first audio signals according to a decoding method corresponding to the encoding method adopted by the audio transmitting end to obtain multiple channels of second audio signals corresponding to the multiple second audio buses.

[0133] In an embodiment of the present invention, the audio receiving terminal 20 can pre-store a decoding method corresponding to the encoding method used by the audio transmitting terminal. When the audio receiving terminal 20 receives multiple first audio signals, it can decode the multiple first audio signals according to the pre-stored decoding method to obtain multiple second audio signals. In addition, the number of channels of audio data included in each decoded second audio signal can be less than or equal to the rated number of channels. Since the number of channels of audio data that can be received by a speaker is 2, the multiple second audio signals obtained by decoding can ensure that the received audio data of multiple channels are normally transmitted to the speaker, realizing true multi-channel audio data transmission.

[0134] Step 503: Transmit each channel of the second audio signal to a speaker connected to the second audio bus through a corresponding second audio bus.

[0135] For example, assuming that the audio receiving end 20 decodes the received audio data and obtains four second audio signals, each of which includes two channels of audio data, the audio receiving end 20 can transmit each second audio signal to the corresponding speaker 30 through the four second audio buses L2.

[0136] In summary, embodiments of the present invention provide a method for transmitting audio data. Because at least one of the multiple first audio signals received by an audio receiving terminal includes audio data with a number of channels exceeding the rated number of channels, the audio receiving terminal can decode and transmit the audio data from multiple channels to a speaker without requiring external audio equipment, achieving a multi-channel playback effect.

[0137] Figure 13This is a flow chart of another audio data transmission method provided by an embodiment of the present invention, which can be applied to Figure 1 In the audio receiving terminal 20 shown. Figure 13 As shown, the method may include:

[0138] Step 601: Receive multiple channels of first audio signals sent by an audio transmitting end through multiple first audio buses.

[0139] In the embodiment of the present invention, the audio receiving terminal 20 can receive multiple first audio signals via multiple first audio buses L1. Each first audio signal can include audio data of at least one channel, and the number of channels of audio data included in at least one first audio signal is greater than the rated number of channels.

[0140] The rated number of channels may be the number of channels of audio data that a speaker can receive. Since the number of channels of audio data that a speaker can receive is 2, the rated number of channels is 2. Accordingly, compared to the related art, the audio receiving terminal 20 can only receive 6-channel channel data transmitted by three first audio buses. The audio receiving terminal 20 provided in the embodiment of the present invention can receive audio data with more than 6 channels transmitted by the three first audio buses.

[0141] For example, assuming Figure 1 As shown, the audio transmitting terminal 10 is connected to the audio receiving terminal 20 via three first audio buses L1, i.e., the audio receiving terminal 20 includes three first audio signals. The audio receiving terminal 20 can then receive the three first audio signals sent by the audio transmitting terminal 10 via the three first audio buses L1. Each first audio signal can include three channels of audio data.

[0142] Step 602: Determine a decoding method corresponding to the encoding method adopted by the audio transmitting end.

[0143] In the embodiment of the present invention, the audio receiving terminal 20 may pre-store a decoding method corresponding to the encoding method used by the audio transmitting terminal. When the audio receiving terminal 20 receives multiple first audio signals, it may determine the decoding method corresponding to the encoding method used by the audio transmitting terminal.

[0144] Optionally, the decoding method stored in the audio receiving terminal 20 can be pre-configured at the factory based on the encoding method set by the audio transmitting terminal 10. Furthermore, multiple decoding methods can be pre-configured in the audio receiving terminal 20. Accordingly, after acquiring multiple first audio signals, the audio receiving terminal 20 can directly use the pre-configured decoding method to decode the multiple first audio signals. Alternatively, the audio receiving terminal 20 can also receive the encoding method sent in real time by the audio transmitting terminal 10 during the process of transmitting the first audio signal, and then determine the corresponding decoding method based on the encoding method.

[0145] Step 603: Split and combine the audio data of multiple channels included in the multiple channels of first audio signals according to the sampling bit width of the second audio bus to obtain multiple channels of second audio signals.

[0146] In an embodiment of the present invention, the data bit width of the audio data of each channel included in each second audio signal can be the sampling bit width of the second audio bus. The sampling bit width of the second audio bus can be the same as the initial sampling bit width of the first audio bus and the data bit width of the audio data of the channel. For example, the sampling bit width of the second audio bus can be 16 bits.

[0147] Optionally, the embodiment of the present invention is described by taking the sampling bit width of the second audio bus L2 as 16 bits and the sampling frequency as 48 kHz as an example:

[0148] As an optional implementation, if the audio transmitter 10 encodes audio data of multiple channels in the following manner: in the first half sampling period of each sampling period, 16-bit audio data of one channel is combined with the lower 8-bit audio data of the split 1 channel; in the second half sampling period of each sampling period, 16-bit audio data of one channel is combined with the upper 8-bit audio data of the split 1 channel. Then, the decoding manner determined by the audio receiver 20 can be: combining the audio data of the channel corresponding to the first 16 bits of the first half period of each sampling period with the audio data of the channel corresponding to the first 16 bits of the second half period into a second audio signal; combining the audio data of the channel corresponding to the last 8 bits of the first half period of each sampling period with the audio data of the channel corresponding to the last 8 bits of the second half period to obtain 1 channel of audio data; and combining the combined 1 channel of audio data with any 1 channel of audio data to form a second audio signal, wherein any 1 channel of audio data can also be combined.

[0149] For example, reference Figure 14, assuming that the audio data of the channels received by the audio receiving end 20 includes three first audio signals, the first two first audio signals include 3ch audio data, and the last first audio signal includes 2ch audio data, and the audio data of 1ch in the 3ch is the split audio data. Then the audio receiving end 20 can combine the audio data of the first 16-bit channels in the first half sampling period and the audio data of the first 16-bit channels in the second half sampling period of each first audio signal into three second audio signals according to the decoding method and the sampling bit width of the second audio bus. In addition, the audio data of the split channels in the first and second first audio signals are combined to obtain one second audio signal.

[0150] For example, the audio receiving end 20 can combine ch0 and ch1 in the first audio signal of the first channel into a second audio signal, combine ch2 and ch3 in the second audio signal of the first channel into a second audio signal, and combine ch4 and ch5 in the third audio signal of the first channel into a second audio signal. The low 8 bits of ch6 in the first audio signal of the first channel are combined with the high 8 bits of ch6, and the low 8 bits of ch7 in the second audio signal of the first channel are combined with the high 8 bits of ch7, thereby obtaining a second audio signal. Accordingly, refer to Figure 14 , that is, a total of four second audio signals are decoded, each of which includes 2 channels of audio data. Assuming that the audio data of ch0 to ch7 are the main channel audio data, surround channel audio data, overhead channel audio data, center channel audio data, and bass audio data, respectively, the main channel, surround channel, overhead channel data, center channel data, and bass data can be restored.

[0151] As another optional implementation, if the audio transmitter 10 encodes the multi-channel audio data in the following manner: combining two 1-channel, 16-bit audio data in the first half of each sampling period, and combining two 1-channel, 16-bit audio data in the second half of each sampling period, the audio receiver 20 may determine a decoding method that combines the two 1-channel, 16-bit audio data in the first half of each sampling period into one second audio signal; and combines the two 1-channel, 16-bit audio data in the second half of each sampling period into one second audio signal.

[0152] For example, Figure 15 As shown, it is assumed that the audio data of the channel received by the audio receiving end 20 includes three first audio signals, and each first audio signal includes 4ch audio data. Figure 15The audio receiving end 20 can combine the 12-channel audio data included in the three first audio signals into one second audio signal in pairs in sequence according to the decoding method.

[0153] For example, the audio receiving end 20 can combine ch0 and ch1 into one second audio signal, combine ch2 and ch3 into one second audio signal, combine ch4 and ch5 into one second audio signal, combine ch6 and ch7 into one second audio signal, combine ch8 and ch9 into one second audio signal, and combine ch110 and ch11 into one second audio signal. Figure 15 , a total of six second audio signals are decoded, each of which includes 2ch of audio data.

[0154] It should be noted that the audio receiving end 20 can decode the multiple first audio signals while receiving them, i.e., decompress them while receiving them. Alternatively, the audio receiving end 20 can decode the multiple first audio signals after receiving them, i.e., decompress them after receiving them.

[0155] It should also be noted that I2S includes single CLK control, that is, multiple first audio buses L1 share a common CLK control; I2S also includes multi-CLK control, that is, each first audio bus L1 is controlled by a CLK. For I2S with single CLK control, the preferred method of decoding is to receive and disassemble at the same time; for I2S with multi-CLK control, the preferred method of decoding is to receive and then disassemble. For the decoding method of receiving and then disassembling, the audio receiving end 20 can cache the received multiple first audio signals into its internal buffer, and after waiting for the transmission of the multiple first audio signals to be completed, the audio receiving end 20 can initialize the collection of the first bit of each first audio signal as a valid signal, and then execute the decoding in sequence. Figure 12 or Figure 13 The decoding method shown.

[0156] The audio receiving end 20 may also adopt a double-edge sampling method to decode the audio data of the received channel. Figure 16 If the audio receiving terminal 20 receives three first audio signals, each of which includes 4 channels of audio data, then refer to Figure 16 The audio receiving end 20 can use a dual-edge sampling method (ie, audio data is collected at both the rising edge and the falling edge of BCLK) to decode the received three-channel first audio signals to obtain six-channel second audio signals.

[0157] It should be noted that the embodiment of the present invention does not limit the splitting and combining manner of the audio receiving end 20 .

[0158] Step 604: Transmit each second audio signal through a corresponding second audio bus to a speaker connected to the second audio bus.

[0159] In this embodiment of the present invention, after decoding multiple second audio signals, the audio receiving terminal 20 can transmit the multiple second audio signals to the speaker 30 via the second audio bus L2, thereby achieving a multi-channel sound effect. Optionally, the audio receiving terminal 20 can first store the decoded multiple second audio signals separately on multiple second audio buses L2, and then adjust the multiple second audio buses L2 to simultaneously transmit the decoded multiple second audio signals to the speaker 30.

[0160] For example, assuming Figure 15 As shown, after the audio receiving end 20 decodes the received audio data of multiple channels, a total of six second audio signals are obtained. The audio receiving end 20 can then simultaneously transmit each second audio signal to each speaker 30 via the corresponding six second audio buses L2.

[0161] In summary, embodiments of the present invention provide a method for transmitting audio data. Because at least one of the multiple first audio signals received by an audio receiving terminal includes audio data with a number of channels exceeding the rated number of channels, the audio receiving terminal can decode and transmit the audio data from multiple channels to a speaker without requiring external audio equipment, achieving a multi-channel playback effect.

[0162] Figure 17 This is a flow chart of a method for transmitting audio data provided by an embodiment of the present invention. The method can be applied to Figure 1 In the implementation environment shown. Figure 17 As shown, the method may include:

[0163] Step 701: Acquire audio data of multiple channels.

[0164] The above acquisition process may refer to step 401, which will not be described in detail in this embodiment of the present invention.

[0165] Step 702: Encode the audio data of multiple channels according to the threshold of the number of audio channels that can be transmitted by the first audio bus in each sampling period to obtain multiple first audio signals corresponding to the multiple first audio buses.

[0166] The above encoding process may refer to step 402 and step 403, which will not be described in detail in this embodiment of the present invention.

[0167] Step 703: Transmit each channel of the first audio signal to the audio receiving end through a corresponding first audio bus.

[0168] The above transmission process may refer to step 404, which will not be described in detail in this embodiment of the present invention.

[0169] Step 704: Receive multiple channels of first audio signals sent by the audio transmitting end through multiple first audio buses.

[0170] The above receiving process may refer to step 601, which will not be described in detail in this embodiment of the present invention.

[0171] Step 705: Split and combine the audio data of multiple channels included in the multiple channels of first audio signals according to the sampling bit width of the second audio bus to obtain multiple channels of second audio signals.

[0172] The above decoding process may refer to steps 602 and 603, which will not be described in detail in this embodiment of the present invention.

[0173] Step 706: Transmit each second audio signal through a corresponding second audio bus to a speaker connected to the second audio bus.

[0174] The above transmission process may refer to step 604, which will not be described in detail in this embodiment of the present invention.

[0175] The following is an introduction to the overall data processing flow of encoding and decoding methods:

[0176] Figure 18 This is a data processing flow chart provided by an embodiment of the present invention. Figure 18 It can be seen that the sampling bit width of the audio transmitting end 10 is 24 bits and the sampling frequency is 48 kHz; the sampling bit width of the audio receiving end 20 is 16 bits and the sampling frequency is 48 kHz, and the sampling mode of the audio transmitting end 10 and the audio receiving end 20 is single-edge sampling (i.e., sampling is performed only on the rising edge of BCLK). Therefore, it can be seen that the channel number threshold of the first audio bus L1 is 3.

[0177] Accordingly, reference Figure 18 The audio transmitting end 10 can first store the decoded 8-channel audio data in the buffer Buffer, and then use a preset algorithm to encode the 8-channel audio data according to its channel number threshold 3 and the sampling bit width 24 bits to obtain three first audio signals, and transmit the three first audio signals to the audio receiving end 20 through three first audio buses L1. The audio receiving end 20 can decode the three first audio signals according to its sampling bit width 16 bits to obtain a total of four second audio signals, each of which includes 2-channel audio data. Finally, the audio receiving end 20 can transmit the four second audio signals to four AMPs 40 through the corresponding four second audio buses L2, thereby realizing eight-channel audio data transmission.

[0178] Figure 19 This is another data processing flow chart provided by an embodiment of the present invention. Figure 19 It can be seen that the sampling bit width of the audio transmitting end 10 and the audio receiving end 20 are both 16 bits, the sampling frequency is both 48 kHz, and the sampling mode of the audio transmitting end 10 is dual-edge sampling (i.e., sampling is performed on both the rising and falling edges of BCLK), while the sampling mode of the audio receiving end 20 is single-edge sampling. Therefore, it can be seen that the channel number threshold of the first audio bus L1 is 4.

[0179] Accordingly, reference Figure 19 The audio transmitting end 10 first stores the decoded 12-channel audio data in the buffer Buffer, and then encodes the 8-channel audio data through a preset algorithm to obtain three first audio signals, and transmits the three first audio signals to the audio receiving end 20 through three first audio buses L1. Each first audio signal includes 4 channels of audio data. The audio receiving end 20 decodes the three first audio signals according to its sampling bit width of 16 bits to obtain a total of six second audio signals. Each second audio signal includes 2 channels of audio data. Finally, the audio receiving end 20 can transmit the six second audio signals to six AMPs 40 through the corresponding six second audio buses L2, thereby realizing twelve-channel audio data transmission.

[0180] It should be noted that the order of the steps in the audio data transmission method provided in the embodiments of the present invention can be adjusted appropriately, and the number of steps can be increased or decreased accordingly. Any person skilled in the art can easily conceive of variations within the technical scope disclosed in the present invention, and such variations are intended to be covered by the scope of protection of the invention, and therefore will not be described in detail.

[0181] In summary, an embodiment of the present invention provides a method for transmitting audio data. After the audio transmitting end decodes the acquired audio data of multiple channels, at least one of the obtained multiple first audio signals includes audio data with a number of channels greater than the rated number of channels. Furthermore, since the audio receiving end can decode the received multiple first audio signals to obtain multiple audio signals, and the number of channels of audio data included in each second audio signal is less than or equal to the rated number of channels, the transmission of audio data with multiple channels can be achieved without the need for an external speaker, thereby realizing a multi-channel playback effect.

[0182] Figure 20 This is a block diagram of an audio data transmission device provided by an embodiment of the present invention. The device can be applied to Figure 1 The audio transmitting terminal 10 shown in FIG. Figure 1The audio transmitting terminal 10 can be connected to the audio receiving terminal 20 via a plurality of first audio buses L1. Figure 20 , the apparatus may include:

[0183] The acquisition circuit 801 is used to acquire audio data of multiple channels, where the data bit width of the audio data of each channel is the same.

[0184] The encoding circuit 802 is configured to encode the audio data of the multiple channels to obtain a plurality of first audio signals corresponding one-to-one to the plurality of first audio buses, wherein each first audio signal includes audio data of at least one channel, and the number of channels of the audio data included in at least one first audio signal is greater than the rated number of channels.

[0185] The first audio signal transmission circuit 803 is configured to transmit each channel of the first audio signal to the audio receiving end via a corresponding first audio bus.

[0186] Optionally, the encoding circuit 802 can be used to encode audio data of multiple channels according to a threshold of the number of channels of audio data that can be transmitted by the first audio bus in each sampling period, to obtain multiple first audio signals corresponding one-to-one to multiple first audio buses.

[0187] The number of channels of audio data included in each first audio signal is less than or equal to a channel number threshold, and the channel number threshold is determined according to the data bit width and a sampling parameter of the first audio bus.

[0188] Optionally, the sampling parameters may include: sampling bit width, sampling frequency and sampling mode, the sampling mode may include single-edge sampling or dual-edge sampling, and the channel number threshold may be equal to the product of the rated channel number, the first ratio, the second ratio and the sampling coefficient.

[0189] The first ratio is the ratio of the sampling bit width to the data bit width, the second ratio is the ratio of the sampling frequency to the rated frequency, and both the first ratio and the second ratio are greater than or equal to 1. If the sampling mode is single-edge sampling, the sampling coefficient is 1, and if the sampling mode is dual-edge sampling, the sampling coefficient is 2.

[0190] Optionally, the sampling parameters may include a sampling bit width. Accordingly, the encoding circuit 802 may be configured to: if the sampling bit width is a non-integer multiple of the data bit width, split the audio data of the target channel according to the sampling bit width, and combine the split audio data with the audio data of other channels, where the bit width of the combined audio data is the sampling bit width. If the sampling bit width is an integer multiple of the data bit width, combine the audio data of at least two channels, where the bit width of the combined audio data is the sampling bit width.

[0191] Optionally, in this embodiment of the present invention, the audio data of the multiple channels may include left channel audio data, right channel audio data, left surround channel audio data, right surround channel audio data, left sky channel audio data, right sky channel audio data, center channel audio data, and subwoofer channel audio data. The audio data of the target channel may include at least one of the center channel audio data and the subwoofer channel audio data.

[0192] In summary, embodiments of the present invention provide an audio data transmission device. After the encoding circuit decodes the acquired audio data for multiple channels, at least one of the multiple first audio signals obtained includes audio data with a number of channels exceeding the rated number of channels. Therefore, without the need for external audio equipment, the first audio signal transmission circuit can transmit audio data with more channels to an audio receiving end, allowing the audio receiving end to transmit the audio data with more channels to a speaker, achieving a multi-channel playback effect.

[0193] Regarding the audio data transmission device in the above embodiment, the specific manner in which each circuit performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0194] Figure 21 This is a block diagram of an audio data transmission device provided by an embodiment of the present invention. The device can be applied to Figure 1 The audio receiving terminal 20 shown in FIG. Figure 1 The audio receiving end can be connected to the audio transmitting end 10 through multiple first audio buses L1, and connected to multiple speakers 30 through multiple second audio buses L2, and the number of the second audio buses L2 is greater than the number of the first audio buses L1. Figure 21 , the apparatus may include:

[0195] The receiving circuit 901 is configured to receive multiple first audio signals sent by an audio transmitting end via multiple first audio buses, wherein each first audio signal includes audio data of at least one channel, and the number of channels of audio data included in at least one first audio signal is greater than a rated number of channels.

[0196] The decoding circuit 902 is configured to decode the multiple first audio signals according to a decoding method corresponding to the encoding method adopted by the audio transmitting end, thereby obtaining multiple second audio signals corresponding one-to-one to the multiple second audio buses, wherein the number of channels of audio data included in each second audio signal is less than or equal to the rated number of channels.

[0197] The second audio signal transmission circuit 903 is configured to transmit each channel of the second audio signal to a speaker connected to the second audio bus through a corresponding second audio bus.

[0198] Optionally, the decoding circuit 902 may be configured to: split and combine the audio data of multiple channels included in the multiple first audio signals according to the sampling bit width of the second audio bus to obtain the multiple second audio signals, wherein the data bit width of the audio data of each channel included in each second audio signal is the sampling bit width of the second audio bus.

[0199] Optionally, the decoding circuit 902 may be configured to decode the multiple channels of first audio signals during the process of receiving the multiple channels of first audio signals, or decode the multiple channels of first audio signals after receiving the multiple channels of first audio signals.

[0200] In summary, embodiments of the present invention provide an audio data transmission device. Because at least one of the multiple first audio signals received by the decoding circuit contains audio data with a number of channels exceeding the rated number of channels, the decoding circuit can decode and transmit audio data from multiple channels to a speaker without requiring external audio equipment, achieving a multi-channel playback effect.

[0201] Regarding the audio data transmission device in the above embodiment, the specific manner in which each circuit performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0202] Figure 22 This is a structural diagram of a playback device provided by an embodiment of the present invention. The playback device 00 may include: an audio transmitting terminal 10 and an audio receiving terminal 20 ( Figure 22 not shown).

[0203] The audio transmitting terminal 10 may include: Figure 20 The audio receiving terminal 20 may include the following: Figure 21 The transmission device of the audio data shown. And, referring to Figure 22 The playback device 00 may further include a plurality of speakers 30 , and the speakers 30 that emit audio data of different channels may be arranged at different positions of the playback device 00 .

[0204] For example, reference Figure 22The playback device 00 shown includes a total of eight speakers 30, which can respectively emit left channel audio data, right channel audio data, left surround channel audio data, right surround channel audio data, left overhead channel audio data, right overhead channel audio data, center channel audio data, and subwoofer channel audio data. The two speakers 30 that emit left and right channel audio data can be positioned on the left and right sides of the playback device 00, respectively. The two speakers 30 that emit left overhead channel audio data and right overhead channel audio data can be positioned at the top of the playback device 00, respectively. The three speakers 30 that emit left surround channel audio data, right surround channel audio data, and subwoofer channel audio data can be positioned at the bottom of the playback device 00, respectively. Furthermore, the one speaker 30 that emits center channel audio data can be positioned in the middle of the playback device 00.

[0205] An embodiment of the present invention provides a computer-readable storage medium having instructions stored therein. When the computer-readable storage medium is run on a computer, the computer can execute the following instructions: Figure 3 or Figure 4 The audio data transmission method shown in FIG. Figure 12 or and Figure 13 The audio data transmission method shown.

[0206] An embodiment of the present invention provides a mobile terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following can be achieved: Figure 3 or Figure 4 The audio data transmission method shown in FIG. Figure 12 or and Figure 13 The audio data transmission method shown.

[0207] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the audio data transmission device and playback device described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0208] The above descriptions are merely optional embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for transmitting audio data, characterized in that: Applied to an audio transmitting end, the audio transmitting end is connected to an audio receiving end via a plurality of first audio buses, and the method includes: Acquire audio data of multiple channels, where the data bit width of the audio data of each channel is the same; encoding the audio data of the multiple channels according to a threshold value of the number of channels of audio data that can be transmitted by the first audio bus in each sampling period to obtain multiple first audio signals corresponding to the multiple first audio buses, wherein each of the first audio signals includes audio data of at least one channel, the number of channels of the audio data included in at least one of the first audio signals is greater than a rated number of channels, and the number of channels of the audio data included in each of the first audio signals is less than or equal to the channel number threshold, wherein the channel number threshold is determined based on the data bit width and sampling parameters of the first audio bus, wherein the sampling parameters include: sampling bit width, sampling frequency, and sampling mode, and the sampling mode includes single-edge sampling or dual-edge sampling; Each channel of the first audio signal is transmitted to the audio receiving end through a corresponding first audio bus.

2. The method according to claim 1, characterized in that The channel number threshold is equal to a product of the rated channel number and at least one parameter among the first ratio, the second ratio, and the sampling coefficient; Among them, the first ratio is the ratio of the sampling bit width to the data bit width, the second ratio is the ratio of the sampling frequency to the rated frequency, and the first ratio and the second ratio are both greater than or equal to 1; if the sampling mode is single-edge sampling, the sampling coefficient is 1, if the sampling mode is dual-edge sampling, the sampling coefficient is 2.

3. The method according to claim 1 or 2, characterized in that The encoding of the audio data of the multiple channels includes: If the sampling bit width is a non-integer multiple of the data bit width, split the audio data of the target channel according to the sampling bit width, and combine the split audio data with the audio data of other channels respectively, so that the bit width of the combined audio data is the sampling bit width; If the sampling bit width is an integer multiple of the data bit width, the audio data of at least two channels are combined, and the bit width of the combined audio data is the sampling bit width.

4. The method according to claim 3, characterized in that The audio data of the multiple channels include: left channel audio data, right channel audio data, left surround channel audio data, right surround channel audio data, left sky channel audio data, right sky channel audio data, center channel audio data and subwoofer channel audio data; The audio data of the target channel includes at least one of the center channel audio data and the subwoofer channel audio data.

5. A method for transmitting audio data, characterized in that: Applied to an audio receiving end, the audio receiving end is connected to an audio transmitting end via multiple first audio buses and is connected to multiple speakers via multiple second audio buses, where the number of the second audio buses is greater than the number of the first audio buses. The method includes: receiving a plurality of first audio signals sent by the audio transmitting end through the plurality of first audio buses, wherein the plurality of first audio signals are obtained by the audio transmitting end by encoding audio data of a plurality of channels acquired based on a threshold value of the number of channels of audio data that can be transmitted by the first audio bus in each sampling period, each of the first audio signals includes audio data of at least one channel, the number of channels of the audio data included in at least one of the first audio signals is greater than a rated number of channels, the number of channels of the audio data included in each of the first audio signals is less than or equal to the channel number threshold, the channel number threshold being determined based on a data bit width of the audio data of each channel and sampling parameters of the first audio bus, the sampling parameters including: sampling bit width, sampling frequency, and sampling mode, the sampling mode including single-edge sampling or dual-edge sampling; decoding the multiple channels of first audio signals according to a decoding method corresponding to the encoding method adopted by the audio transmitting end to obtain multiple channels of second audio signals corresponding to the multiple second audio buses, wherein the number of channels of audio data included in each channel of the second audio signal is less than or equal to the rated number of channels; Each channel of the second audio signal is transmitted to a speaker connected to the second audio bus through a corresponding second audio bus.

6. The method according to claim 5, characterized in that The decoding of the multiple channels of first audio signals to obtain multiple channels of second audio signals corresponding to the multiple second audio buses includes: Splitting and combining the audio data of the multiple channels included in the multiple channels of the first audio signals according to the sampling bit width of the second audio bus to obtain the multiple channels of the second audio signals; The data bit width of the audio data of each channel included in each channel of the second audio signal is the sampling bit width of the second audio bus.

7. The method according to claim 5 or 6, characterized in that The decoding of the multiple channels of first audio signals includes: The multiple channels of first audio signals are decoded during the process of receiving the multiple channels of first audio signals; or the multiple channels of first audio signals are decoded after the multiple channels of first audio signals are received.

8. An audio data transmission device, characterized in that: Applied to an audio transmitting end, the audio transmitting end is connected to an audio receiving end via a plurality of first audio buses, and the device comprises: An acquisition circuit, configured to acquire audio data of multiple channels, wherein the audio data of each channel has the same data bit width; an encoding circuit, configured to encode the audio data of the multiple channels based on a threshold value for the number of channels of audio data that can be transmitted by the first audio bus in each sampling period, to obtain multiple first audio signals corresponding to the multiple first audio buses, wherein each of the first audio signals includes audio data of at least one channel, the number of channels of the audio data included in at least one of the first audio signals is greater than a rated number of channels, and the number of channels of the audio data included in each of the first audio signals is less than or equal to the channel number threshold, wherein the channel number threshold is determined based on the data bit width and sampling parameters of the first audio bus, wherein the sampling parameters include: sampling bit width, sampling frequency, and sampling mode, wherein the sampling mode includes single-edge sampling or dual-edge sampling; The first audio signal transmission circuit is configured to transmit each channel of the first audio signal to the audio receiving end through a corresponding first audio bus.

9. An audio data transmission device, characterized in that: Applied to an audio receiving end, the audio receiving end is connected to an audio transmitting end via multiple first audio buses and is connected to multiple speakers via multiple second audio buses, where the number of the second audio buses is greater than the number of the first audio buses, the device comprising: a receiving circuit, configured to receive multiple channels of first audio signals sent by the audio transmitting end via the multiple first audio buses, wherein the multiple channels of first audio signals are obtained by the audio transmitting end by encoding audio data of multiple channels acquired based on a channel number threshold for audio data that can be transmitted by the first audio bus in each sampling period, each channel of the first audio signal includes audio data of at least one channel, the number of channels of audio data included in at least one channel of the first audio signal is greater than a rated channel number, the number of channels of audio data included in each channel of the first audio signal is less than or equal to the channel number threshold, and the channel number threshold is determined based on a data bit width of the audio data of each channel and sampling parameters of the first audio bus, wherein the sampling parameters include: sampling bit width, sampling frequency, and sampling mode, and the sampling mode includes single-edge sampling or dual-edge sampling; a decoding circuit, configured to decode the multiple channels of first audio signals according to a decoding method corresponding to the encoding method adopted by the audio transmitting end, to obtain multiple channels of second audio signals corresponding to the multiple second audio buses, wherein the number of channels of audio data included in each channel of the second audio signal is less than or equal to the rated number of channels; The second audio signal transmission circuit is configured to transmit each channel of the second audio signal to a speaker connected to the second audio bus through a corresponding second audio bus.

10. A playback device, characterized in that: The playback device includes: an audio transmitting end and an audio receiving end; The audio transmitting end includes the audio data transmission device according to claim 8; The audio receiving end includes the audio data transmission device according to claim 9.

Citation Information

Patent Citations

  • Audio-channel processing device and audio-channel processing method for video

    CN103237259A