WO2021004048A1 - Display device and audio data transmission method - Google Patents

Display device and audio data transmission method Download PDF

Info

Publication number
WO2021004048A1
WO2021004048A1 PCT/CN2020/070902 CN2020070902W WO2021004048A1 WO 2021004048 A1 WO2021004048 A1 WO 2021004048A1 CN 2020070902 W CN2020070902 W CN 2020070902W WO 2021004048 A1 WO2021004048 A1 WO 2021004048A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
audio data
channels
channel
sampling
Prior art date
Application number
PCT/CN2020/070902
Other languages
French (fr)
Chinese (zh)
Inventor
黄飞
李见
Original Assignee
海信视像科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201910614701.7A external-priority patent/CN112216310B/en
Priority claimed from CN201910615836.5A external-priority patent/CN112218019B/en
Priority claimed from CN201910616404.6A external-priority patent/CN112218016B/en
Priority claimed from CN201910613254.3A external-priority patent/CN112216290A/en
Priority claimed from CN201910659488.1A external-priority patent/CN112218020B/en
Priority claimed from CN201910710346.3A external-priority patent/CN112218210B/en
Application filed by 海信视像科技股份有限公司 filed Critical 海信视像科技股份有限公司
Publication of WO2021004048A1 publication Critical patent/WO2021004048A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/008Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/60Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/025Systems for the transmission of digital non-picture data, e.g. of text during the active part of a television frame
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Definitions

  • This application relates to the field of multimedia technology, in particular to a display device and a method for transmitting audio data.
  • the embodiments of the present application provide a display device and a method for transmitting audio data, which can solve the problem of requiring an external audio device to implement multi-channel audio playback in related technologies, which cannot form a better audio-visual experience and causes a waste of resources.
  • the technical solution is as follows:
  • each of the first audio signals includes at least one channel of audio data, And the number of audio data channels included in at least one of the first audio signals is greater than the rated number of channels;
  • the encoding the audio data of the multiple channels includes:
  • the audio data of the multiple channels are encoded to obtain multiple audio data corresponding to the multiple first audio buses.
  • the sampling parameter includes: sampling bit width
  • the encoding of the audio data of the multiple channels includes:
  • sampling bit width is an integer multiple of the data bit width
  • the audio data of at least two of the channels are combined, and the bit width of the combined audio data is the sampling bit width.
  • the audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
  • the decoding the multiple channels of first audio signals to obtain multiple channels of second audio signals corresponding to the multiple channels of second audio buses includes:
  • 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.
  • decode the multiple channels of first audio signals In the process of receiving the multiple channels of first audio signals, decode the multiple channels of first audio signals; or, after receiving the multiple channels of first audio signals, perform the decoding on the multiple channels of first audio signals To decode.
  • the second audio signal transmission circuit is used to transmit each channel of the second audio signal to a speaker connected to the second audio bus through a corresponding one of the second audio buses.
  • a playback device includes: an audio sending end and an audio receiving end;
  • the speaker is configured to reproduce sound
  • An audio processor configured to obtain audio data of multiple channels
  • the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
  • the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
  • the threshold of the number of channels is equal to a product of the rated number of channels and at least one parameter among the first ratio, the second ratio, and the sampling coefficient;
  • the audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
  • the number of audio data channels included in each second audio signal is less than or equal to the rated number of channels
  • the embodiments of the present application provide a display device and a method for transmitting audio data. Since the audio sending end decodes the acquired audio data of the multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the rated number of channels. Therefore, without external audio equipment, more channels of audio data can be transmitted to the audio receiving end, so that the audio receiving end can transmit more channels of audio data to the speaker to achieve multi-channel playback.
  • FIG. 2 is a signal timing diagram of an audio bus provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another audio data encoding provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of still another audio data encoding provided by an embodiment of the present application.
  • Figure 22 is a schematic structural diagram of a playback device provided by an embodiment of the present application.
  • Step 401 Acquire audio data of multiple channels.
  • the audio data of the target channel can be split according to the sampling bit width, and the split audio data can be divided with The audio data of other channels are combined, and the bit width of the combined audio data may 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 is the sampling bit width.
  • the sampling bit width of the first audio bus L1 is 32 bits
  • the sampling bit width of the first audio bus L1 is 16 bits. Since the sampling bit width of 16bit is 1 times (ie, an integer multiple) of the data bit width of 16bit, the sampling bit width of 32bit is 2 times (ie, an integer multiple) of the data bit width of 16bit. Therefore, for FIG. 6, the audio sending end 10 may combine 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. With respect to Figures 7 and 8, the audio sending end 10 can combine 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. That is, the encoding method of the audio sending end 10 can be: the combination of two 1ch 16bit audio data in the first half of each sampling period, and the combination of the second half of each sampling period. Two 1ch 16bit audio data.
  • the audio sending end 10 obtains a total of 8 channels of L, R, C, LFE, Rs, Ls, Lfh, and Rfh.
  • the audio transmitter 10 can combine the audio data of the 4 channels of L, R, C, and LFE into a first audio signal in each sampling period, and combine Rs, Ls, The audio data of 4 channels of Lfh and Rfh is combined into a first audio signal. Accordingly, after encoding, a total of two first audio signals are obtained, and each of the first audio signals includes 4ch audio data.
  • the audio sending end 10 may transmit each encoded first audio signal to the audio receiving end 20 through a corresponding first audio bus L1.
  • the audio receiving terminal 20 may pre-store the encoding method of the audio transmitting terminal 10, and accordingly, the audio receiving terminal 20 may decode the received multiple first audio signals according to the pre-stored encoding method, and pass the first audio signal.
  • the second audio bus L2 is all transmitted to the speaker 30 to realize multi-channel audio data transmission.
  • the audio sending end 10 may also include an audio processor (Data Acquisition and Processing, DAP).
  • DAP Data Acquisition and Processing
  • the DAP can be connected to the decoder 101 and the re-encoder 102 respectively.
  • the decoder 101 decodes the compressed audio data sent by the sound source S1
  • it can first send the audio data of the multiple channels to the DAP, and the DAP can process the audio data through a preset algorithm to obtain better results Audio data.
  • the processed audio data is sent to the re-encoder 102, and the re-encoder 102 executes the above-mentioned step 403 to realize encoding, and finally realizes the transmission of audio data through the first audio bus L1 (ie, I2S).
  • the embodiment of the present application provides a method for transmitting audio data. Since the audio sending end decodes the acquired audio data of the multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the rated number of channels. Therefore, without external audio equipment, more channels of audio data can be transmitted to the audio receiving end, so that the audio receiving end can transmit more channels of audio data to the speaker to achieve multi-channel playback.
  • Step 502 According to the decoding method corresponding to the encoding method adopted by the audio sending end, decode the multiple first audio signals to obtain multiple second audio signals corresponding to the multiple second audio buses.
  • FIG. 13 is a flowchart of another audio data transmission method provided by an embodiment of the present application, and the method may be applied to the audio receiving terminal 20 shown in FIG. 1. As shown in Figure 13, the method may include:
  • the rated number of channels may be the number of channels of audio data that can be received by a speaker. Since the number of audio channels that can be received by a speaker is 2, the rated number of channels is 2.
  • the audio receiving terminal 20 can only receive 6-channel channel data sent by three first audio buses, and the audio receiving terminal 20 provided in the embodiment of the present application can receive more than 6-channel audio sent by three first audio buses. Audio data of the number of channels.
  • Step 602 Determine a decoding mode corresponding to the coding mode adopted by the audio sending end.
  • Step 603 According to the sampling bit width of the second audio bus, split and combine audio data of multiple channels included in the multiple first audio signals to obtain multiple second audio signals.
  • the data bit width of the audio data of each channel included in each second audio signal may be the sampling bit width of the second audio bus.
  • the sampling bit width of the second audio bus may 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.
  • the sampling bit width of the second audio bus may be 16 bits.
  • the decoding method determined by the audio receiving terminal 20 can be: the audio data of the channel corresponding to the first 16 bits of the first half of each sampling period and the audio data of the channel corresponding to the first 16 bits of the second half of the period Combine into a second audio signal, and combine the audio data of the channel corresponding to the last 8bit of the first half of each sampling period with the audio data of the channel corresponding to the last 8bit of the second half of the period to get 1ch Audio data, and the combined 1ch audio data and any 1ch audio data are combined into a second audio signal, and the any 1ch audio data may also be combined.
  • the audio data of the channel received by the audio receiving terminal 20 includes three channels of first audio signals
  • the first two channels of first audio signals include 3ch audio data
  • the last channel of first audio signals includes 2ch audio Data
  • the audio data of 1ch in the 3ch is the split audio data.
  • the audio receiving end 20 can combine the audio data of the first 16-bit channel in the first half of the sampling period and the audio data of the first half of the sampling period in each channel of the first audio signal according to the decoding mode and the sampling bit width of the second audio bus.
  • the audio data of the first 16bit channels is combined into three second audio signals.
  • the audio data of the split channels in the first audio signal and the second audio signal are combined to obtain a second audio signal.
  • each channel of second audio signals includes 2ch audio data.
  • the audio data of ch0 to ch7 are respectively the main channel audio data, surround channel audio data, sky sound channel audio data, center sound audio data and bass audio data, the main channel, surround channel, and sky can be restored Audio channel data, center sound data, and bass data.
  • the encoding method is: a combination of two 1ch 16-bit audio data in the first half of each sampling period, And two 1ch 16bit audio data are combined in the second half of each sampling period.
  • the decoding method determined by the audio receiving terminal 20 can be: Combine two 1ch 16bit audio data in the first half of each sampling period into a second audio signal; 2 1ch 16bit audio data in the second half period The audio data is combined into a second audio signal.
  • the audio data of the channel received by the audio receiving terminal 20 includes three first audio signals, and each first audio signal includes 4ch audio data.
  • the audio receiving terminal 20 may combine the 12ch audio data included in the three channels of first audio signals in sequence to form one channel of second audio signals in a decoding manner.
  • the audio receiving terminal 20 may combine ch0 and ch1 into a second audio signal, combine ch2 and ch3 into a second audio signal, combine ch4 and ch5 into a second audio signal, and combine ch6 and ch3 into a second audio signal.
  • ch7 is combined into a second audio signal
  • ch8 and ch9 are combined into a second audio signal
  • ch110 and ch11 are combined into a second audio signal.
  • a total of six channels of second audio signals are obtained by decoding, and each channel of second audio signals includes 2ch audio data.
  • I2S includes single CLK control, that is, multiple first audio buses L1 share one CLK control; I2S also includes multiple CLK control, that is, each first audio bus L1 is controlled by one CLK respectively.
  • the decoding method is preferentially used for decoding while receiving and dismantling; for I2S controlled by multiple CLKs, the decoding method is preferentially used for receiving and dismantling.
  • the audio receiving terminal 20 can also decode the received audio data of the channel by means of double-edge sampling.
  • double-edge sampling method that is, collecting audio data on both the rising and falling edges of BCLK
  • the audio receiving terminal 20 can simultaneously transmit each channel of second audio signals to each speaker 30 through the corresponding six second audio buses L2.
  • step 401 For the foregoing acquisition process, reference may be made to step 401, which is not described in detail in the embodiment of the present application.
  • step 402 and step 403 which are not described in detail in the embodiment of the present application.
  • step 404 For the foregoing transmission process, reference may be made to step 404, which is not described in detail in the embodiment of the present application.
  • Step 706 Transmit each second audio signal through a corresponding second audio bus to the speaker connected to the second audio bus.
  • Fig. 18 is a data processing flowchart provided by an embodiment of the present application.
  • the sampling bit width of the audio transmitting terminal 10 is 24bit and the sampling frequency is 48KHZ
  • the sampling bit width of the audio receiving terminal 20 is 16bit and the sampling frequency is 48KHZ
  • the sampling mode of the terminal 20 is single-edge sampling (that is, sampling is performed only on the rising edge of BCLK). Therefore, it can be seen that the threshold of the number of channels of the first audio bus L1 is 3.
  • Fig. 19 is another data processing flowchart provided by an embodiment of the present application.
  • the sampling bit width of the audio sending end 10 and the audio receiving end 20 are both 16 bits
  • the sampling frequency is both 48KHZ
  • the sampling method of the audio sending end 10 is double-edge sampling (that is, at the rising of BCLK Both edge and falling edge are sampled)
  • the sampling mode of the audio receiving terminal 20 is single-edge sampling. Therefore, it can be seen that the threshold of the number of channels of the first audio bus L1 is 4.
  • the audio sending end 10 stores the decoded 12ch audio data in the buffer Buffer, and then uses a preset algorithm to encode the 8ch audio data to obtain three channels of first audio
  • the three first audio signals are transmitted to the audio receiving terminal 20 through the three first audio buses L1, and each of the first audio signals includes 4ch audio data.
  • the audio receiving terminal 20 decodes the three first audio signals according to the sampling bit width of 16 bits to obtain a total of six second audio signals, and each second audio signal includes 2ch audio data.
  • the audio receiving terminal 20 can transmit the six second audio signals to the six AMPs 40 through the corresponding six second audio buses L2, so as to realize twelve-channel audio data transmission.
  • the embodiment of the present application provides a method for transmitting audio data. Since the audio sending end decodes the acquired audio data of the multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the rated number of channels. And because the audio receiving end can decode the received multiple channels of first audio signals to obtain multiple channels of audio signals, and the number of audio data channels included in each channel of the second audio signal is less than or equal to the rated channel number. Therefore, there is no need for an external speaker, which can realize the transmission of more channel audio data, and then realize the multi-channel playback effect.
  • the acquisition circuit 801 is used to acquire audio data of multiple channels, and the audio data of each channel has the same data bit width.
  • the encoding circuit 802 may be used to encode audio data of multiple channels according to the threshold of the number of channels of audio data that can be transmitted by the first audio bus in each sampling period, to obtain the Multiple first audio signals corresponding to one first audio bus.
  • 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.
  • the channel number threshold may be equal to the rated channel number, the first ratio, and the second The product of the ratio and the sampling coefficient.
  • the sampling parameter may include: sampling bit width.
  • the encoding circuit 802 can be used to: if the sampling bit width is a non-integer multiple of the data bit width, according to the sampling bit width, the audio data of the target channel is split, and the split audio data are respectively The audio data of other channels are combined, and 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.
  • audio data of 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 center channel audio data and subwoofer channel audio data.
  • the embodiment of the present application provides an audio data transmission device. Since the encoding circuit decodes the acquired audio data of multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the number of rated channels. Therefore, without external audio equipment, more channels of audio data can be transmitted to the audio receiving end through the first audio signal transmission circuit, so that the audio receiving end can transmit more channels of audio data to the speaker, realizing multi-channel audio Play effect.
  • FIG. 21 is a block diagram of an audio data transmission device provided by an embodiment of the present application.
  • the device may be applied to the audio receiving terminal 20 shown in FIG. 1.
  • the audio receiving terminal may pass through multiple first audio buses.
  • L1 is connected to the audio sending end 10 and connected to a plurality of speakers 30 through a plurality of second audio buses L2, and the number of the second audio buses L2 is greater than the number of the first audio buses L1.
  • the device may include:
  • the second audio signal transmission circuit 903 is configured to transmit each second audio signal to a speaker connected to the second audio bus through a corresponding second audio bus.
  • the decoding circuit 902 may be used to: according to the sampling bit width of the second audio bus, split and combine audio data of multiple channels included in the multiple first audio signals to obtain multiple second audio data. audio signal.
  • 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.
  • the embodiment of the present application provides an audio data transmission device. Since among the multiple channels of first audio signals received by the decoding circuit, at least one channel of the first audio signal includes audio data channels greater than the rated channel number. Therefore, without external audio equipment, the decoding circuit can decode the audio data of more channels and transmit it to the speakers to achieve multi-channel playback.
  • FIG. 22 is a schematic structural diagram of a playback device provided by an embodiment of the present application.
  • the playback device 00 may include: an audio transmitting terminal 10 and an audio receiving terminal 20 (not shown in FIG. 22).
  • the audio sending end 10 may include an audio data transmission device as shown in FIG. 20.
  • the audio receiving terminal 20 may include an audio data transmission device as shown in FIG. 21.
  • the playback device 00 may further include multiple speakers 30, and the speakers 30 that emit audio data of different channels may be arranged at different positions of the playback device 00.
  • the playback device 00 includes 8 speakers 30.
  • the 8 speakers 30 can respectively emit left channel audio data, right channel audio data, left surround channel audio data, and right surround sound.
  • the two speakers 30 that emit left-channel audio data and right-channel audio data may be relatively disposed on the left and right sides of the playback device 00.
  • Two speakers 30 that emit left sky channel audio data and right sky channel audio data may be respectively arranged on the top of the playback device 30.
  • Three speakers 30 that emit left surround channel audio data, right surround channel audio data, and subwoofer channel data may be respectively arranged at the bottom position of the playback device 30.
  • a speaker 30 that emits audio data of the center sound channel may be arranged in the middle of the playback device 30.
  • FIG. 23 is a schematic diagram of a display device provided in Embodiment 1 of the present application.
  • the present application also provides a display device, which at least includes: a display screen 91 configured to present image data; and a speaker 92 configured to reproduce sound data .
  • the display device may further include: a backlight assembly 94 located below the display screen 91.
  • a backlight assembly 94 located below the display screen 91.
  • the backlight assembly may include an LED light bar or a light panel that automatically emits light.
  • the display device may further include: a back plate 95.
  • the back plate 95 is stamped to form some convex structures, and components such as speakers 92 are fixed on the convex structures by screws or hooks.
  • the display device may further include: a rear case 98 covering the back of the display screen 91 to hide components of the display device such as the backlight assembly 94, the speaker 92, etc., to achieve a beautiful effect.
  • FIG. 24 is a block diagram of the hardware configuration of the display device provided in Embodiment 1 of the present application.
  • the display device 200 may include a tuner and demodulator 220, a communicator 230, a detector 240, an external device interface 250, a controller 210, a memory 290, a user input interface, a video processor 260-1, and audio processing. 260-2, display screen 280, audio input interface 272, power supply.
  • the tuner and demodulator 220 which receives broadcast and television signals through wired or wireless means, can perform modulation and demodulation processing such as amplification, mixing and resonance, and is used to demodulate the television channel selected by the user from multiple wireless or cable broadcast and television signals
  • modulation and demodulation processing such as amplification, mixing and resonance
  • the audio and video signals carried in the frequency, and additional information (such as EPG data signals).
  • the tuner and demodulator 220 can receive signals in many ways according to different TV signal broadcasting systems, such as terrestrial broadcasting, cable broadcasting, satellite broadcasting, or Internet broadcasting; and according to different modulation types, it can be digital modulation or alternatively. Analog modulation method; and according to different types of received TV signals, analog and digital signals can be demodulated.
  • the tuner demodulator 220 may also be in an external device, such as an external set-top box.
  • the set-top box outputs TV audio and video signals through modulation and demodulation, and inputs them to the display device 200 through the input/output interface 250.
  • the communicator 230 is a component for communicating with external devices or external servers according to various communication protocol types.
  • the communicator 230 may include a WIFI module 231, a Bluetooth communication protocol module 232, a wired Ethernet communication protocol module 233 and other network communication protocol modules or near field communication protocol modules.
  • the display apparatus 200 may establish a connection between a control signal and a data signal with an external control device or content providing device through the communicator 230.
  • the communicator may receive the control signal of the remote controller 100 according to the control of the controller.
  • the detector 240 may further include a temperature sensor.
  • the display device 200 may adaptively adjust the display color temperature of the image.
  • the color temperature of the display device 200 when the temperature is relatively high, the color temperature of the display device 200 can be adjusted to be colder; when the temperature is relatively low, the color temperature of the display device 200 can be adjusted to be warmer.
  • the external device interface 250 provides a component for the controller 210 to control data transmission between the display device 200 and other external devices.
  • the external device interface can be connected to external devices such as set-top boxes, game devices, notebook computers, etc. in a wired/wireless manner, and can receive external devices such as video signals (such as moving images), audio signals (such as music), and additional information (such as EPG). ) And other data.
  • the external device interface 250 may include: a high-definition multimedia interface (HDMI) terminal 251, a composite video blanking synchronization (CVBS) terminal 252, an analog or digital component terminal 253, a universal serial bus (USB) terminal 254, red, green, and blue ( RGB) terminal (not shown in the figure) and any one or more.
  • HDMI high-definition multimedia interface
  • CVBS composite video blanking synchronization
  • USB universal serial bus
  • RGB red, green, and blue
  • the controller 210 controls the operation of the display device 200 and responds to user operations by running various software control programs (such as an operating system and various application programs) stored on the memory 290.
  • various software control programs such as an operating system and various application programs
  • the controller 210 includes a random access memory RAM 213, a read only memory ROM 214, a graphics processor 216, a CPU processor 212, a communication interface 218, and a communication bus.
  • RAM213 and ROM214, graphics processor 216, CPU processor 212, and communication interface 218 are connected by a bus.
  • the graphics processor 216 is used to generate various graphics objects, such as icons, operation menus, and user input instructions to display graphics. Including an arithmetic unit, which performs operations by receiving various interactive commands input by the user, and displays various objects according to display attributes. As well as including a renderer, various objects obtained based on the arithmetic unit are generated, and the rendering result is displayed on the display screen 280.
  • the CPU processor 212 is configured to execute operating system and application program instructions stored in the memory 290. And according to receiving various interactive instructions input from the outside, to execute various applications, data and content, so as to finally display and play various audio and video content.
  • the communication interface may include the first interface 218-1 to the nth interface 218-n. These interfaces may be network interfaces connected to external devices via a network.
  • the controller 210 may control the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display screen 280, the controller 210 may perform an operation related to the object selected by the user command.
  • the object may be any one of the selectable objects, such as a hyperlink or an icon.
  • Operations related to the selected object for example: display operations connected to hyperlink pages, documents, images, etc., or perform operations corresponding to the icon.
  • the user command for selecting the UI object may be a command input through various input devices (for example, a mouse, a keyboard, a touch pad, etc.) connected to the display device 200 or a voice command corresponding to a voice spoken by the user.
  • the memory 290 includes storing various software modules used to drive and control the display device 200.
  • various software modules stored in the memory 290 include: a basic module, a detection module, a communication module, a display control module, a browser module, and various service modules.
  • the basic module is the underlying software module used for signal communication between various hardware in the display device 200 and sending processing and control signals to the upper module.
  • the detection module is a management module used to collect various information from various sensors or user input interfaces, and perform digital-to-analog conversion and analysis management.
  • the memory 290 is also used to store and receive external data and user data, images of various items in various user interfaces, and visual effect diagrams of focus objects.
  • the user may input a user command on a graphical user interface (GUI) displayed on the display screen 280, and the user input interface receives the user input command through the graphical user interface (GUI).
  • GUI graphical user interface
  • the user can input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
  • the video processor 260-1 is used to receive video signals, and perform video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to the standard codec protocol of the input signal.
  • the video signal directly displayed or played on the display screen 280.
  • the demultiplexing module is used to demultiplex the input audio and video data stream. For example, if MPEG-2 is input, the demultiplexing module will demultiplex into a video signal and an audio signal.
  • the video decoding module is used to process the demultiplexed video signal, including decoding and scaling.
  • the display screen 280 is used to receive image signals input from the video processor 260-1, to display video content and images, and a menu control interface.
  • the display screen 280 includes a display screen component for presenting a picture and a driving component for driving image display.
  • the displayed video content can be from the video in the broadcast signal received by the tuner and demodulator 220, or from the video content input by the communicator or the external device interface.
  • the display screen 280 simultaneously displays a user manipulation interface UI generated in the display device 200 and used for controlling the display device 200.
  • the speaker is configured to reproduce sound
  • each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data with a number of channels greater than a rated channel number;
  • the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
  • the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
  • the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
  • the sampling bit width, sampling frequency, and sampling mode, the sampling mode includes single-edge sampling or dual-edge sampling;
  • the threshold of the number of channels is equal to a product of the rated number of channels and at least one of the first ratio, the second ratio, and the sampling coefficient;
  • 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
  • the first ratio and the second ratio are Are greater than or equal to 1;
  • the sampling coefficient is 1, and if the sampling mode is dual-edge sampling, the sampling coefficient is 2.
  • the audio data of the multiple channels includes: 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 audio channel audio data and subwoofer channel audio data;
  • the audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
  • the application also provides a display device, including:
  • the display screen is configured to present an image screen
  • the speaker is configured to reproduce sound
  • the audio processor is configured to receive multiple channels of first audio signals, where each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data More than the number of rated channels;
  • a controller configured to decode the multiple channels of first audio signals to obtain multiple channels of second audio signals, and transmit them to the speaker;
  • the number of audio data channels included in each second audio signal is less than or equal to the rated number of channels
  • the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
  • the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
  • the embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, it can be implemented as shown in Figure 1 or Figure 4
  • the audio data transmission method shown, and the audio data transmission method shown in FIG. 12 or and FIG. 13 are realized.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Stereophonic System (AREA)

Abstract

Disclosed are an audio processing method and device, and a display device. Sound source data is decoded into original audio data corresponding to each channel; and since the total number of channels is greater than the total number of channels of all the first I2S bus interfaces, the original audio data is encoded again according to preset encoding rules, and the original audio data of all the channels can be output via at least two first I2S bus interfaces.

Description

显示装置、音频数据的传输方法Display device and audio data transmission method
本专利申请要求于2019年7月9日提交的、申请号为201910614701.7;于2019年7月9日提交的、申请号为201910613160.6;于2019年7月9日提交的、申请号为201910613254.3;于2019年7月9日提交的、申请号为201910615836.5;于2019年7月9日提交的、申请号为201910616404.6;于2019年8月2日提交的、申请号为201910710346.3;于2019年7月9日提交的、申请号为2019106185413;于2019年7月22日提交的、申请号为201910659488.1的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。This patent application requires the application number of 201910614701.7 filed on July 9, 2019; the application number of 201910613160.6 filed on July 9, 2019; the application number of 201910613254.3 filed on July 9, 2019; The application number submitted on July 9, 2019 is 201910615836.5; the application number submitted on July 9, 2019 is 201910616404.6; the application number submitted on August 2, 2019 is 201910710346.3; on July 9, 2019 The priority of the Chinese patent application filed on July 22, 2019 with application number 2019106185413; application number 201910659488.1 filed on July 22, 2019, the full text of which is incorporated herein by reference.
技术领域Technical field
本申请涉及多媒体技术领域,特别涉及一种显示装置、音频数据的传输方法。This application relates to the field of multimedia technology, in particular to a display device and a method for transmitting audio data.
背景技术Background technique
随着多媒体技术的快速发展,用户对终端播放音频时的音质要求越来越高,单声道或者双声道的播放效果已经无法满足用户需求。With the rapid development of multimedia technology, users have higher and higher requirements for the sound quality when playing audio on the terminal, and the single-channel or dual-channel playback effect can no longer meet the needs of users.
相关技术中,为了满足用户对音质的需求,改善用户体验,可以通过外接能够实现多声道播放效果的音响设备来提高终端播放音频时的音质。In the related art, in order to meet the user's demand for sound quality and improve user experience, the sound quality of the terminal when playing audio can be improved by connecting an external audio device that can achieve multi-channel playback effects.
但是,由于外接音响设备时,终端自身的扬声器即无法工作,因此无法形成较好的影音体验,且会造成资源浪费。However, when external audio equipment is connected, the terminal's own speakers cannot work, so a good audio-visual experience cannot be formed, and resources will be wasted.
申请内容Application content
本申请实施例提供了一种显示装置、音频数据的传输方法,可以解决相关技术中需要外接音响设备实现多声道音频播放,无法形成较好的影音体验,且造成资源浪费的问题。所述技术方案如下:The embodiments of the present application provide a display device and a method for transmitting audio data, which can solve the problem of requiring an external audio device to implement multi-channel audio playback in related technologies, which cannot form a better audio-visual experience and causes a waste of resources. The technical solution is as follows:
在一些实施例中提供了一种音频数据的传输方法,应用于音频发送端,所述音频发送端通过多条第一音频总线与音频接收端连接,所述方法包括:In some embodiments, an audio data transmission method is provided, which is applied to an audio sending end, and the audio sending end is connected to an audio receiving end through a plurality of first audio buses, and the method includes:
获取多个声道的音频数据,每个声道的音频数据的数据位宽相同;Acquire audio data of multiple channels, and the audio data of each channel has the same data bit width;
对所述多个声道的音频数据进行编码,得到与所述多条第一音频总线对应的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;Encoding the audio data of the multiple channels to obtain multiple first audio signals corresponding to the multiple first audio buses, wherein each of the first audio signals includes at least one channel of audio data, And the number of audio data channels included in at least one of the first audio signals is greater than the rated number of channels;
将每路所述第一音频信号,通过对应的一条所述第一音频总线传输至所述音频接收端。Each channel of the first audio signal is transmitted to the audio receiving end through a corresponding one of the first audio bus.
在一些实施例中,所述对所述多个声道的音频数据进行编码,包括:In some embodiments, the encoding the audio data of the multiple channels includes:
根据所述第一音频总线在每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到与所述多条第一音频总线对应的多路第一音频信号;According to the threshold value of the number of audio channels of the audio data that can be transmitted by the first audio bus in each sampling period, the audio data of the multiple channels are encoded to obtain multiple audio data corresponding to the multiple first audio buses. First audio signal;
其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值,所述声道数阈值根据所述数据位宽和所述第一音频总线的采样参数确定。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels, and the threshold of the number of channels is based on the data bit width and the sampling parameters of the first audio bus determine.
在一些实施例中,所述采样参数包括:采样位宽、采样频率和采样方式,所述采样方式包括单沿采样或双沿采样;In some embodiments, the sampling parameters include: sampling bit width, sampling frequency, and sampling mode, and the sampling mode includes single-edge sampling or dual-edge sampling;
所述声道数阈值等于所述额定声道数与第一比值、第二比值以及采样系数中的至少一个参数的乘积;The threshold of the number of channels is equal to a product of the rated number of channels and at least one of the first ratio, the second ratio, and the sampling coefficient;
其中,所述第一比值为所述采样位宽与所述数据位宽的比值,所述第二比值为所述采样频率与额定频率的比值,且所述第一比值和所述第二比值均大于或等于1;若所述采样方式为单沿采样,所述采样系数为1,若所述采样方式为双沿采样,所述采样系数为2。Wherein, 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 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.
在一些实施例中,所述采样参数包括:采样位宽,所述对所述多个声道的音频数据进行编码,包括:In some embodiments, the sampling parameter includes: sampling bit width, and 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, the audio data of the target channel is split according to the sampling bit width, and the split audio data is separated from the audio data of other channels. The data is combined, and 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 of the channels are combined, and the bit width of the combined audio data is the sampling bit width.
在一些实施例中,所述多个声道的音频数据包括:左声道音频数据,右声道音频数据,左环绕声道音频数据,右环绕声道音频数据,左天空声道音频数据,右天空声道音频数据,中置音声道音频数据和重低音声道音频数据;In some embodiments, the audio data of the multiple channels includes: 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 audio channel audio data and subwoofer channel audio data;
所述目标声道的音频数据包括:所述中置音声道音频数据和所述重低音声道音频数据中的至少一种。The audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
在一些实施例中,提供了一种音频数据的传输方法,应用于音频接收端,所述音频接收端通过多条第一音频总线与音频发送端连接,并通过多条第二音频总线与多个扬声器连接,所述第二音频总线的数量大于所述第一音频总线的数量,所述方法包括:In some embodiments, a method for transmitting audio data is provided, which is applied to an audio receiving end, and the audio receiving end is connected to the audio sending end through a plurality of first audio buses, and is connected to the audio receiving end through a plurality of second audio buses. Two speakers are connected, the number of the second audio buses is greater than the number of the first audio buses, and the method includes:
接收所述音频发送端通过所述多条第一音频总线发送的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;Receiving multiple channels of first audio signals sent by the audio sending end through the multiple first audio buses, wherein each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal The number of channels of audio data included in the signal is greater than the number of rated channels;
按照与所述音频发送端采用的编码方式相对应的解码方式,对所述多路第一音频信号进行解码,得到与所述多条第二音频总线对应的多路第二音频信号,其中每路所述第二音频信号包括的音频数据的声道数小于或等于额定声道数;According to the decoding method corresponding to the encoding method adopted by the audio sending end, the multiple channels of first audio signals are decoded to obtain multiple channels of second audio signals corresponding to the multiple second audio buses, wherein each The number of channels of audio data included in the second audio signal is less than or equal to the number of rated channels;
将每路所述第二音频信号通过对应的一条所述第二音频总线,传输至与所述第二音频总线连接的扬声器。Each channel of the second audio signal is transmitted to the speaker connected to the second audio bus through a corresponding one of the second audio bus.
在一些实施例中,所述对所述多路第一音频信号进行解码,得到与所述多条第二音频总线对应的多路第二音频信号包括:In some embodiments, the decoding the multiple channels of first audio signals to obtain multiple channels of second audio signals corresponding to the multiple channels of second audio buses includes:
根据所述第二音频总线的采样位宽,对所述多路第一音频信号包括的多个声道的音频数据进行拆分和组合,得到所述多路第二音频信号;Split and combine 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 the multiple channels of second audio signals;
其中,每路所述第二音频信号包括的每个声道的音频数据的数据位宽,均为所述第二音频总线的采样位宽。Wherein, 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.
在一些实施例中,所述对所述多路第一音频信号进行解码,包括:In some embodiments, the decoding of the multiple channels of first audio signals includes:
在接收所述多路第一音频信号的过程中,对所述多路第一音频信号进行解码;或者,在接收完所述多路第一音频信号时,对所述多路第一音频信号进行解码。In the process of receiving the multiple channels of first audio signals, decode the multiple channels of first audio signals; or, after receiving the multiple channels of first audio signals, perform the decoding on the multiple channels of first audio signals To decode.
在一些实施例中,提供了一种音频数据的传输装置,应用于音频发送端,所述音频发送端通过多条第一音频总线与音频接收端连接,所述装置包括:In some embodiments, an audio data transmission device is provided, which is applied to an audio sending end, the audio sending end is connected to an audio receiving end through a plurality of first audio buses, and the device includes:
获取电路,用于获取多个声道的音频数据,每个声道的音频数据的数据位宽相同;The acquisition circuit is used to acquire audio data of multiple channels, and the data bit width of the audio data of each channel is the same;
编码电路,用于对所述多个声道的音频数据进行编码,得到与所述多条第一音频总线对应的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;The encoding circuit is used to encode the audio data of the multiple channels to obtain multiple first audio signals corresponding to the multiple first audio buses, wherein each of the first audio signals includes at least one audio Channels of audio data, and the number of channels of audio data included in at least one of the first audio signals is greater than the number of rated channels;
第一音频信号传输电路,用于将每路所述第一音频信号,通过对应的一条所述第一音频总线传输至所述音频接收端。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 one of the first audio buses.
在一些实施例中,提供了一种音频数据的传输装置,应用于音频接收端,所述音频接收端通过多条第一音频总线与音频发送端连接,并通过多条第二音频总线与多个扬声器连接,所述第二音频总线的数量大于所述第一音频总线的数量,所述装置包括:In some embodiments, an audio data transmission device is provided, which is applied to an audio receiving end, and the audio receiving end is connected to the audio sending end through multiple first audio buses, and is connected to the multiple audio data through multiple second audio buses. Two speakers are connected, the number of the second audio buses is greater than the number of the first audio buses, and the device includes:
接收电路,用于接收所述音频发送端通过所述多条第一音频总线发送的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;The receiving circuit is configured to receive multiple channels of first audio signals sent by the audio sending end via the multiple first audio buses, wherein each channel of the first audio signal includes at least one channel of audio data, and at least one channel of audio data The number of audio channels of the audio data included in the first audio signal is greater than the number of rated channels;
解码电路,用于按照与所述音频发送端采用的编码方式相对应的解码方式,对所述多路第一音频信号进行解码,得到与所述多条第二音频总线对应的多路第二音频信号,其中每路所述第二音频信号包括的音频数据的声道数小于或等于额定声道数;The decoding circuit is used to decode the multiple channels of first audio signals according to the decoding method corresponding to the encoding method adopted by the audio sending end to obtain multiple channels of second audio signals corresponding to the multiple second audio buses. An audio signal, where the number of audio data channels included in each second audio signal is less than or equal to the rated number of channels;
第二音频信号传输电路,用于将每路所述第二音频信号通过对应的一条所述第二音频总线,传输至与所述第二音频总线连接的扬声器。The second audio signal transmission circuit is used to transmit each channel of the second audio signal to a speaker connected to the second audio bus through a corresponding one of the second audio buses.
在一些实施例中,提供了一种播放设备,所述播放设备包括:音频发送端和音频接收端;In some embodiments, a playback device is provided, and the playback device includes: an audio sending end and an audio receiving end;
所述音频发送端包括如上述方面所述的音频数据的传输装置;The audio sending end includes the audio data transmission device as described in the foregoing aspect;
所述音频接收端包括如上述方面所述的音频数据的传输装置。The audio receiving end includes the audio data transmission device as described in the foregoing aspect.
本申请还提供一种显示装置,包括:The application also provides a display device, including:
显示屏,被配置为呈现图像画面;The display screen is configured to present an image screen;
扬声器,被配置为再现声音;The speaker is configured to reproduce sound;
音频处理器,被配置为获取多个声道的音频数据;An audio processor configured to obtain audio data of multiple channels;
控制器,被配置为对所述多个声道的音频数据进行编码,得到多路第一音频信号;A controller configured to encode the audio data of the multiple channels to obtain multiple first audio signals;
其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;Wherein each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data with a number of channels greater than a rated channel number;
在一些实施例中,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;In some embodiments, the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
在一些实施例中,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;In some embodiments, the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
在一些实施例中,采样位宽、采样频率和采样方式,所述采样方式包括单沿采样或双沿采样;In some embodiments, the sampling bit width, sampling frequency, and sampling mode, the sampling mode includes single-edge sampling or dual-edge sampling;
所述声道数阈值等于所述额定声道数与第一比值、第二比值以及采样系数 中的至少一个参数的乘积;The threshold of the number of channels is equal to a product of the rated number of channels and at least one parameter among the first ratio, the second ratio, and the sampling coefficient;
其中,所述第一比值为所述采样位宽与所述数据位宽的比值,所述第二比值为所述采样频率与额定频率的比值,且所述第一比值和所述第二比值均大于或等于1;Wherein, 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 Are greater than or equal to 1;
若所述采样方式为单沿采样,所述采样系数为1,若所述采样方式为双沿采样,所述采样系数为2。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.
在一些实施例中,若所述采样位宽为所述数据位宽的非整数倍,根据所述采样位宽,对目标声道的音频数据进行拆分,并将拆分得到的音频数据分别与其他声道的音频数据进行组合,组合后的音频数据的位宽为所述采样位宽;In some embodiments, if the sampling bit width is a non-integer multiple of the data bit width, the audio data of the target channel is split according to the sampling bit width, and the audio data obtained by the split is separately Combine with audio data of other channels, and 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 of the channels are combined, and the bit width of the combined audio data is the sampling bit width.
在一些实施例中,所述多个声道的音频数据包括:左声道音频数据,右声道音频数据,左环绕声道音频数据,右环绕声道音频数据,左天空声道音频数据,右天空声道音频数据,中置音声道音频数据和重低音声道音频数据;In some embodiments, the audio data of the multiple channels includes: 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 audio channel audio data and subwoofer channel audio data;
所述目标声道的音频数据包括:所述中置音声道音频数据和所述重低音声道音频数据中的至少一种。The audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
本申请还提供一种显示装置,包括:The application also provides a display device, including:
显示屏,被配置为呈现图像画面;The display screen is configured to present an image screen;
扬声器,被配置为再现声音;The speaker is configured to reproduce sound;
音频处理器,被配置为接收多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;The audio processor is configured to receive multiple channels of first audio signals, where each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data More than the number of rated channels;
控制器,被配置为对所述多路第一音频信号进行解码,得到多路第二音频信号,并传输给所述扬声器;A controller configured to decode the multiple channels of first audio signals to obtain multiple channels of second audio signals, and transmit them to the speaker;
其中每路所述第二音频信号包括的音频数据的声道数小于或等于额定声道数;Wherein, the number of audio data channels included in each second audio signal is less than or equal to the rated number of channels;
将每路所述第二音频信号传输至所述扬声器。Transmitting each channel of the second audio signal to the speaker.
在一些实施例中,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;In some embodiments, the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
本申请提供的技术方案带来的有益效果至少可以包括:The beneficial effects brought about by the technical solution provided in this application can at least include:
综上所述,本申请实施例提供了一种显示装置、音频数据的传输方法。由于音频发送端对获取到的多个声道的音频数据进行解码后,得到的多路第一音频信号中至少一路第一音频信号包括的音频数据的声道数大于额定声道数。因此无需外接音响设备,即可将更多声道的音频数据传输至音频接收端,使得音频接收端将更多声道的音频数据传输至扬声器,实现多声道的播放效果。In summary, the embodiments of the present application provide a display device and a method for transmitting audio data. Since the audio sending end decodes the acquired audio data of the multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the rated number of channels. Therefore, without external audio equipment, more channels of audio data can be transmitted to the audio receiving end, so that the audio receiving end can transmit more channels of audio data to the speaker to achieve multi-channel playback.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and cannot limit the application.
附图说明Description of the drawings
为了更清楚地说明本申请的实施例,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施 例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图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 application;
图2是本申请实施例提供的一种音频总线的信号时序图;2 is a signal timing diagram of an audio bus provided by an embodiment of the present application;
图3是本申请实施例提供的一种音频数据的传输方法流程图;FIG. 3 is a flowchart of a method for transmitting audio data provided by an embodiment of the present application;
图4是本申请实施例提供的另一种音频数据的传输方法流程图;4 is a flowchart of another audio data transmission method provided by an embodiment of the present application;
图5是本申请实施例提供的一种音频数据的编码示意图;FIG. 5 is a schematic diagram of encoding audio data provided by an embodiment of the present application;
图6是本申请实施例提供的另一种音频数据的编码示意图;Figure 6 is a schematic diagram of another audio data encoding provided by an embodiment of the present application;
图7是本申请实施例提供的又一种音频数据的编码示意图;FIG. 7 is a schematic diagram of another audio data encoding provided by an embodiment of the present application;
图8是本申请实施例提供的再一种音频数据的编码示意图;FIG. 8 is a schematic diagram of still another audio data encoding provided by an embodiment of the present application;
图9是本申请实施例提供的再一种音频数据的编码示意图;FIG. 9 is a schematic diagram of still another audio data encoding provided by an embodiment of the present application;
图10是本申请实施例提供的一种音频数据的传输方法结构示意图;10 is a schematic structural diagram of a method for transmitting audio data provided by an embodiment of the present application;
图11是本申请实施例提供的一种音频发送端的内部结构示意图;FIG. 11 is a schematic diagram of the internal structure of an audio sending end provided by an embodiment of the present application;
图12是本申请实施例提供的又一种音频数据的传输方法流程图;FIG. 12 is a flowchart of yet another audio data transmission method provided by an embodiment of the present application;
图13是本申请实施例提供的再一种音频数据的传输方法流程图;FIG. 13 is a flowchart of yet another audio data transmission method provided by an embodiment of the present application;
图14是本申请实施例提供的一种音频数据的解码示意图;FIG. 14 is a schematic diagram of decoding audio data provided by an embodiment of the present application;
图15是本申请实施例提供的另一种音频数据的解码示意图;15 is a schematic diagram of another audio data decoding provided by an embodiment of the present application;
图16是本申请实施例提供的又一种音频数据的解码示意图;FIG. 16 is a schematic diagram of another audio data decoding provided by an embodiment of the present application;
图17是本申请实施例提供的再一种音频数据的传输方法流程图;FIG. 17 is a flowchart of yet another audio data transmission method provided by an embodiment of the present application;
图18是本申请实施例提供的一种音频数据的数据处理示意图;18 is a schematic diagram of data processing of audio data provided by an embodiment of the present application;
图19是本申请实施例提供的另一种音频数据的数据处理示意图;FIG. 19 is a schematic diagram of data processing of another audio data provided by an embodiment of the present application;
图20是本申请实施例提供的一种音频数据的传输装置的框图;20 is a block diagram of an audio data transmission device provided by an embodiment of the present application;
图21是本申请实施例提供的另一种音频数据的传输装置的框图;21 is a block diagram of another audio data transmission device provided by an embodiment of the present application;
图22是本申请实施例提供的一种播放设备的结构示意图;Figure 22 is a schematic structural diagram of a playback device provided by an embodiment of the present application;
图23是本申请实施例提供的显示装置示意图;FIG. 23 is a schematic diagram of a display device provided by an embodiment of the present application;
图24是本申请实施例提供的显示装置的硬件配置框图。FIG. 24 is a block diagram of the hardware configuration of a display device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
图1是本申请实施例提供的一种音频数据的传输方法所涉及的实施环境示意图。如图1所示,该实施环境可以包括:音频发送端10、音频接收端20和多个扬声器30。例如,图1示出了八个扬声器30。FIG. 1 is a schematic diagram of an implementation environment involved in an audio data transmission method provided by an embodiment of the present application. As shown in FIG. 1, the implementation environment may include: an audio sending end 10, an audio receiving end 20, and multiple speakers 30. For example, FIG. 1 shows eight speakers 30.
参考图1,该音频发送端10的一端可以与声源S1连接,另一端可以通过多条第一音频总线L1与音频接收端20的一端连接,该音频接收端20的另一端可以通过多条第二音频总线L2与多个扬声器30连接,且该音频接收端20与扬声器30之间还可以连接有功率放大器(power amplifier,AMP)40。1, one end of the audio sending terminal 10 can be connected to the sound source S1, the other end can be connected to one end of the audio receiving terminal 20 through multiple first audio buses L1, and the other end of the audio receiving terminal 20 can be connected through multiple The second audio bus L2 is connected to a plurality of speakers 30, and a power amplifier (AMP) 40 may also be connected between the audio receiving terminal 20 and the speakers 30.
该音频发送端10可以包括解码器101和重编码器102,解码器101可以对声源S1发送的压缩后的音频数据进行解码,得到多个声道的音频数据,并发送至重编码器102。重编码器102可以对该多个声道的音频数据进行重编码,并通过第一音频总线L1发送至音频接收端20。该音频接收端20可以将接收到的多个声道的音频数据进行解码,并经AMP 40放大处理后通过第二音频总线L2传输至扬声器30,实现多个声道的音频数据传输。The audio sending end 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 send it to the re-encoder 102 . The re-encoder 102 may re-encode the audio data of the multiple channels, and send it to the audio receiving terminal 20 through the first audio bus L1. The audio receiving terminal 20 can decode the received audio data of multiple channels, and after being amplified by the AMP 40, transmit it to the speaker 30 through the second audio bus L2, so as to realize the transmission of audio data of multiple channels.
例如,参考图1,音频发送端10可以通过三条第一音频总线L1与音频接 收端20的一端连接,该音频接收端20的另一端可以通过五条第二音频总线L2与五个AMP 40一一对应连接。且每个AMP 40可以与一个或两个扬声器30连接。For example, referring to FIG. 1, the audio sending end 10 can be connected to one end of the audio receiving end 20 through three first audio buses L1, and the other end of the audio receiving end 20 can be connected to five second audio buses L2 and five AMP 40 one by one. Corresponding connection. And each AMP 40 can be connected to one or two speakers 30.
在一些实施例中,该音频发送端10可以为终端的机芯端,该音频接收端20可以为终端内设置的XMOS芯片,该音频接收端20也可以称为协音频处理器。该第一音频总线L1和第二音频总线L2可以为集成电路内置音频总线(inter—IC sound,I2S)。该终端可以为电视机、电脑或手机等设备。In some embodiments, the audio transmitting terminal 10 may be a core terminal of a terminal, the audio receiving terminal 20 may be an XMOS chip provided in the terminal, and the audio receiving terminal 20 may also be called a co-audio processor. The first audio bus L1 and the second audio bus L2 may be an integrated circuit built-in audio bus (inter-IC sound, I2S). The terminal can be a television, computer, or mobile phone.
受成本和算法复杂度的限制,目前音频发送端10最多能够支持3路I2S,即音频发送端10最多可以通过3条第一音频总线L1与音频接收端20连接。而由于一个扬声器30最多可以接收两个声道(channel,ch)的音频数据,因此目前每条第一音频总线L1仅可以传输2ch的音频数据(即每条第一音频总线L1的额定声道数可以为2),相应的,该3条第一音频总线L1最多仅可以实现6ch的音频数据传输,局限性较大,且音质效果较差。Limited by cost and algorithm complexity, the audio sending end 10 can currently support up to 3 I2S channels, that is, the audio sending end 10 can be connected to the audio receiving end 20 through up to three first audio buses L1. Since one speaker 30 can receive audio data of two channels (channels, ch) at most, currently each first audio bus L1 can only transmit 2ch audio data (that is, the rated channel of each first audio bus L1). The number can be 2). Correspondingly, the three first audio buses L1 can only realize up to 6ch audio data transmission, which has greater limitations and poor sound quality.
本申请实施例介绍的上述实施环境中的音频发送端10可以通过重编码器102对多个声道的音频数据进行编码,得到与该多条第一音频总线L1一一对应的多路第一音频信号,并通过每条第一音频总线L1将对应的一路第一音频信号发送至音频接收端20。由于编码得到的至少一路第一音频信号包括的音频数据的声道数大于额定声道数,因此可以实现6ch以上声道的音频数据传输,例如,可以实现8ch(即声音格式为5.1.2)的音频数据传输。The audio sending end 10 in the foregoing implementation environment described in the embodiments of the present application may encode audio data of multiple channels through the re-encoder 102 to obtain multiple first audio buses that correspond one-to-one to the multiple first audio buses L1. Audio signal, and send a corresponding first audio signal to the audio receiving terminal 20 through each first audio bus L1. Since the number of audio data channels included in the encoded at least one first audio signal is greater than the number of rated channels, audio data transmission of more than 6 channels can be realized, for example, 8 channels (that is, the sound format is 5.1.2) can be realized Audio data transmission.
图2是本申请实施例提供的一种I2S的各信号时序图。参考图2可以看出,I2S信号可以包括:帧时钟WS、串行时钟BCLK以及串行数据SDATA。FIG. 2 is a timing diagram of various I2S signals provided by an embodiment of the present application. It can be seen with reference to FIG. 2 that the I2S signal may include: the frame clock WS, the serial clock BCLK, and the serial data SDATA.
其中,串行时钟BCLK的每个脉冲对应音频数据的一位数据,且BCLK的 频率满足:2×采样频率×采样位宽。例如,当采样频率为48千赫兹(KHZ),采样位宽为16比特(bit)时,该BCLK的频率即为:2×16×48=1.536兆赫兹(MHz)。帧时钟WS用于指示左右声道的音频数据,其中,WS为第一电位可以表示正在传输的音频数据的声道为左声道(即图2所示的L_ch);WS为第二电位可以表示正在传输的音频数据的声道为右声道(即图2所示的R_ch),且WS的频率可以等于采样频率。其中,第一电位相对于第二电位可以为高电位,或者,第一电位相对于第二电位也可以为低电位。串行数据SDATA即是用二进制补码表示的音频数据。Among them, each pulse of the serial clock BCLK corresponds to one bit of audio data, and the frequency of BCLK satisfies: 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 the 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, where WS is the first potential to indicate that the channel of the audio data being transmitted is the left channel (ie L_ch as shown in Figure 2); WS is the second potential. It means that the channel of the audio data being transmitted is the right channel (that is, R_ch shown in Figure 2), and the frequency of WS can be equal to the sampling frequency. The first potential may be a high potential relative to the second potential, or the first potential may be a low potential relative to the second potential. The serial data SDATA is audio data expressed in twos complement.
除上述信号之外,为了使得数据传输同步性更好,I2S信号还可以包括主时钟MCLK,主时钟MCLK的频率可以是采样频率的256倍或384倍。例如,假设采样频率为48KHZ,主时钟MCLK的频率为采样频率的256倍,则主时钟MCLK的频率即可以为:48×256=12.288MHz。In addition to the above signals, in order to make the data transmission synchronization better, the I2S signal may also include the master clock MCLK, and the frequency of the master clock MCLK may be 256 times or 384 times the sampling frequency. For example, assuming that the sampling frequency is 48KHZ and the frequency of the main clock MCLK is 256 times the sampling frequency, the frequency of the main clock MCLK can be: 48×256=12.288 MHz.
需要说明的是,由于I2S在采集音频数据时,总是从高位数据开始采集,且为了使得音频发送端10和音频接收端20能够处理的有效位数可以不同,因此无论I2S的信号有多少位有效数据。It should be noted that when I2S collects audio data, it always starts from the high-order data, and in order to make the effective number of bits that can be processed by the audio transmitting end 10 and the audio receiving end 20 can be different, no matter how many bits the I2S signal has valid data.
如图2所示,串行数据SDATA的最高位总是出现在WS变化(即一帧开始)后的第2个BCLK脉冲处。这样,即可以使得音频发送端10和音频接收端20的有效位数不同。若音频发送端10能够处理的有效位数少于音频接收端20能够处理的有效位数,相应的,即可以放弃采集到的音频数据中多余的低位数据。若音频发送端10能够处理的有效位数多于音频接收端20能够处理的有效位数,相应的,即可自动补足剩余的位数。这种同步机制使得音频发送端10和音频接收端20的连接更为方便,且可以保证传输的音频数据不会发生错位。As shown in Figure 2, the highest bit of the serial data SDATA always appears at the second BCLK pulse after the WS change (that is, the start of a frame). In this way, the effective number of bits of the audio transmitting terminal 10 and the audio receiving terminal 20 can be made different. If the effective number of bits that can be processed by the audio sending end 10 is less than the effective number of bits that can be processed by the audio receiving end 20, correspondingly, the excess low-bit data in the collected audio data can be discarded. If the effective number of bits that can be processed by the audio sending end 10 is more than the effective number of bits that can be processed by the audio receiving end 20, the remaining number of bits can be automatically supplemented accordingly. This synchronization mechanism makes the connection between the audio sending end 10 and the audio receiving end 20 more convenient, and can ensure that the transmitted audio data will not be misaligned.
在一些实施例中,目前在统一的I2S接口下,出现了多种不同的数据格式。例如,根据SDATA相对于WS和BCLK的位置不同可以分为左对齐、右对齐和I2S格式。例如,图2示出了16bit左对齐、20bit左对齐、24bit左对齐以及24bit右对齐。并且,为了保证音频数据的正确传输,音频发送端10和音频接收端20可以采用相同的数据格式和长度。而对于I2S格式来说数据长度可以不同。WS可以在BCLK的上升沿或者下降沿发生改变,并且WS的时序无需要完全对称。In some embodiments, currently under a unified I2S interface, there are multiple different data formats. For example, according to the position of SDATA relative to WS and BCLK, it can be divided into left-justified, right-justified and I2S format. For example, Figure 2 shows 16bit left justification, 20bit left justification, 24bit left justification, and 24bit right justification. Moreover, in order to ensure the correct transmission of audio data, the audio sending end 10 and the audio receiving end 20 may use the same data format and length. For the I2S format, the data length can be different. WS can change on the rising or falling edge of BCLK, and the timing of WS does not need to be completely symmetrical.
图3是本申请实施例提供的一种音频数据的传输方法流程图,该方法可以应用于图1所示的音频发送端10中,参考图1,该音频发送端10可以通过多条第一音频总线L1与音频接收端20连接。如图3所示,该方法可以包括:FIG. 3 is a flow chart of a method for transmitting audio data provided by an embodiment of the present application. The method can be applied to the audio transmitting terminal 10 shown in FIG. 1. Referring to FIG. 1, the audio transmitting terminal 10 may pass multiple first The audio bus L1 is connected to the audio receiving terminal 20. As shown in Figure 3, the method may include:
步骤301、获取多个声道的音频数据。Step 301: Acquire audio data of multiple channels.
在本申请实施例中,音频发送端10可以获取声源S1发送的压缩后的音频数据,或者也可以获取其他设备(如外接音响设备)发送的压缩后的音频数据。之后,音频发送端10中的解码器101可以对获取到的音频数据进行解码,得到多个声道的音频数据。其中,每个声道的音频数据的数据位宽可以相同,且可以与第一音频总线的初始采样位宽相同。In the embodiment of the present application, the audio sending terminal 10 may obtain the compressed audio data sent by the sound source S1, or may also obtain the compressed audio data sent by other devices (such as external audio equipment). After that, the decoder 101 in the audio sending terminal 10 may decode the acquired audio data to obtain audio data of multiple channels. Wherein, the data bit width of the audio data of each channel may be the same, and may be the same as the initial sampling bit width of the first audio bus.
步骤302、对多个声道的音频数据进行编码,得到与多条第一音频总线对应的多路第一音频信号。Step 302: Encode audio data of multiple channels to obtain multiple first audio signals corresponding to multiple first audio buses.
在本申请实施例中,每路第一音频信号均可以包括至少一个声道的音频数据,且至少一路第一音频信号包括的音频数据的声道数可以大于额定声道数。In the embodiment of the present application, each channel of the first audio signal may include at least one channel of audio data, and the number of channels of the audio data included in the at least one channel of the first audio signal may be greater than the rated channel number.
其中,该额定声道数可以为一个扬声器能够接收到的音频数据的声道数。由于一个扬声器可以接收到的音频数据的声道数为2,因此,该额定声道数即为 2。相应的,至少一路第一音频信号可以包括2ch以上声道的音频数据。相对于相关技术中每路第一音频信号最多包括2ch的音频数据,本申请实施例提供的音频数据传输方法可以实现更多声道的音频数据传输。Wherein, the rated number of channels may be the number of channels of audio data that can be received by a speaker. Since the number of channels of audio data that can be received by a speaker is 2, the rated number of channels is 2. Correspondingly, at least one first audio signal may include audio data of more than 2 channels. Compared with the first audio signal in the related art that each channel of the first audio signal includes at most 2ch of audio data, the audio data transmission method provided in the embodiment of the present application can implement audio data transmission of more channels.
步骤303、将每路第一音频信号,通过对应的一条第一音频总线传输至音频接收端。Step 303: Transmit each first audio signal to the audio receiving end through a corresponding first audio bus.
例如,假设音频发送端10对多个声道的音频数据进行编码后,得到三路第一音频信号,则该音频发送端10可以将该三路第一音频信号中的每路第一音频信号,通过对应的一条第一音频总线L1传输至音频接收端20。音频接收端20可以再将接收到的编码后的音频数据进行解码后,通过多条第二音频总线L2传输至扬声器30,从而实现多声道的音频数据的传输。For example, assuming that the audio sending end 10 obtains three first audio signals after encoding the audio data of multiple channels, the audio sending end 10 may each of the three first audio signals , Which is transmitted to the audio receiving terminal 20 through a corresponding first audio bus L1. The audio receiving terminal 20 may decode the received encoded audio data and transmit it to the speaker 30 through multiple second audio buses L2, thereby realizing the transmission of multi-channel audio data.
综上所述,本申请实施例提供了一种音频数据的传输方法。由于音频发送端对获取到的多个声道的音频数据进行解码后,得到的多路第一音频信号中至少一路第一音频信号包括的音频数据的声道数大于额定声道数。因此无需外接音响设备,即可将更多声道的音频数据传输至音频接收端,使得音频接收端将更多声道的音频数据传输至扬声器,实现多声道的播放效果。In summary, the embodiment of the present application provides a method for transmitting audio data. Since the audio sending end decodes the acquired audio data of the multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the rated number of channels. Therefore, without external audio equipment, more channels of audio data can be transmitted to the audio receiving end, so that the audio receiving end can transmit more channels of audio data to the speaker to achieve multi-channel playback.
图4是本申请实施例提供的另一种音频数据的传输方法流程图,该方法可以应用于图1所示的音频发送端10中。如图4所示,该方法可以包括:FIG. 4 is a flowchart of another audio data transmission method provided by an embodiment of the present application, and the method can be applied to the audio sending end 10 shown in FIG. 1. As shown in Figure 4, the method may include:
步骤401、获取多个声道的音频数据。Step 401: Acquire audio data of multiple channels.
在本申请实施例中,音频发送端10可以获取终端在播放包含音频数据的音视频文件时,终端内的声源S1发送的压缩后的音频数据。或者,终端也可以获取其他设备(如外接音响设备)发送的压缩后的音频数据。之后,音频发送端10中的解码器101可以对获取到的音频数据进行解码,得到多个声道的音频数 据。其中,每个声道的音频数据的数据位宽可以相同,且该数据位宽可以等于第一音频总线的初始采样位宽。In the embodiment of the present application, the audio sending terminal 10 may obtain the compressed audio data sent by the sound source S1 in the terminal when the terminal is playing an audio and video file containing audio data. Alternatively, the terminal can also obtain compressed audio data sent by other devices (such as external audio equipment). After that, the decoder 101 in the audio sending terminal 10 can decode the acquired 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.
在一些实施例中,假设终端在播放视频时,声源S1发送了包括八个声道的音频数据,相应的,音频发送端10即可通过解码器101对声源S1发送的音频数据进行解码得到八个声道的音频数据。假设第一音频总线L1的初始采样位宽为16bit,则每个声道的音频数据的数据位宽即可以均为16bit。In some embodiments, it is assumed that when the terminal is playing a video, the sound source S1 sends audio data including eight channels. Accordingly, the audio sending end 10 can decode the audio data sent by the sound source S1 through the decoder 101 Obtain eight channels of audio data. 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 be 16 bits.
在一些实施例中,该八个声道的音频数据可以包括:左声道音频数据L,右声道音频数据R,左环绕声道音频数据SL,右环绕声道音频数据SR,左天空声道音频数据TOPL,右天空声道音频数据TOPR,中置音声道音频数据Center和重低音声道音频数据Woofer。本申请实施例对音频发送端10获取到的音频数据的声道数,以及各个声道的音频数据类型均不做限定。In some embodiments, 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 sound Channel audio data TOPL, right sky channel audio data TOPR, center audio channel audio data Center, and subwoofer channel audio data Woofer. The embodiment of the present application does not limit the number of audio channels of the audio data acquired by the audio sending end 10 and the audio data type of each channel.
步骤402、确定第一音频总线在每个采样周期内能够传输的音频数据的声道数阈值。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.
在本申请实施例中,该声道数阈值可以根据数据位宽和第一音频总线的采样参数确定。其中,第一音频总线L1的采样参数可以包括:采样位宽、采样频率和采样方式,采样方式可以包括单沿采样(即仅脉冲的上升沿或下降沿时采集音频数据)或双沿采样(即脉冲的上升沿和下降沿均采集音频数据)。In the embodiment of the present application, the threshold of the number of channels may be determined according to the data bit width and the sampling parameters of the first audio bus. Among them, 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 (that is, only collecting audio data at the rising or falling edge of the pulse) or double-edge sampling ( That is, the rising and falling edges of the pulse collect audio data).
其中,该声道数阈值N1可以等于额定声道数N0与第一比值w1、第二比值w2和采样系数w3中的至少一个参数的乘积。该第一比值w1可以为采样位宽与数据位宽的比值;该第二比值w2可以为采样频率与额定频率的比值。且该第一比值w1和第二比值w2可以均大于或等于1,若采样方式为单沿采样,采样系数w3可以为1,若采样方式为双沿采样,采样系数w3可以为2。额定声 道数N0可以为一个扬声器能够接收到的音频数据的声道数,由于扬声器能够接收到的音频数据的声道数为2,则该额定声道数N0即可以为2。Wherein, 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. And the first ratio w1 and the second ratio w2 may both be greater than or equal to 1. If the sampling mode is single-edge sampling, the sampling coefficient w3 may be 1, and if the sampling mode is dual-edge sampling, the sampling coefficient w3 may be 2. The number of rated channels N0 can 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 number of rated channels N0 can be considered as 2.
需要说明的是,该第一音频总线L1的采样参数均是终端中预先设定的,且为了实现多声道的音频数据传输,该第一音频总线L1的采样参数中的至少一个采样参数可以是对第一音频总线L1的初始采样参数进行调整得到的。It should be noted that the sampling parameters of the first audio bus L1 are all preset 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 may be It is obtained by adjusting the initial sampling parameters of the first audio bus L1.
在本申请实施例中,该声道数阈值N1可以等于额定声道数N0与第一比值w1、第二比值w2和采样系数w3中大于1的参数的乘积。由于对采样位宽调整后,第一比值w1才会大于1;对采样频率调整后,第二比值w2才会大于1;采样方式为双沿采样,采样系数w3才会大于1。因此若采样方式为单沿采样,该声道数阈值N1即为额定声道数N0与第一比值w1和第二比值w2中大于1的参数的乘积;当采样采样方式为双沿采样时,该声道数阈值N1即为额定声道数N0与采样系数w3,以及第一比值w1和第二比值w2中大于1的参数的乘积。In the embodiment of the present application, 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 of a parameter greater than 1. After the sampling bit width is adjusted, the first ratio w1 will be greater than 1; after the sampling frequency is adjusted, the second ratio w2 will be greater than 1; the sampling method is double-edge sampling, and the sampling coefficient w3 will be greater than 1. 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 of the parameter greater than 1. When the sampling method is double-edge sampling, The channel number threshold N1 is the product of the rated channel number N0, the sampling coefficient w3, and the first ratio w1 and the second ratio w2 of the parameter greater than 1.
例如,假设该第一音频总线L1的采样方式为单沿采样,若该第一音频总线L1的采样参数中仅采样位宽是对第一音频总线L1的初始采样位宽进行调整得到的,则该声道数阈值N1即可以等于额定声道数N0与第一比值w1的乘积,即该声道数阈值N1可以满足:N1=N0×w1。若该第一音频总线L1的采样参数中仅采样频率是对第一音频总线L1的初始采样频率进行调整得到的,则该声道数阈值N1即可以等于额定声道数N0与第二比值w2的乘积,即该声道数阈值N1可以满足:N1=N0×w2。若该第一音频总线L1的采样参数中的采样频率和采样位宽均是对第一音频总线L1的初始采样参数进行调整得到的,则该声道数阈值N1即可以等于额定声道数N0与第一比值w1和第二比值w2的乘积,即 该声道数阈值N1可以满足:N1=N0×w1×w2。For example, assuming that the sampling mode of the first audio bus L1 is single-edge sampling, if only the sampling bit width in the sampling parameters of the first audio bus L1 is obtained by adjusting the initial sampling bit width of the first audio bus L1, then The channel number threshold N1 may be equal to the product of the rated channel number N0 and the first ratio w1, that is, the channel number threshold N1 may satisfy: N1=N0×w1. If only the sampling frequency of the sampling parameters of the first audio bus L1 is obtained by adjusting the initial sampling frequency of the first audio bus L1, the channel number threshold N1 can be equal to the rated channel number N0 and the second ratio w2 The product of, 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, the channel number threshold N1 can be equal to the rated channel number N0 The product of the first ratio w1 and the second ratio w2, that is, the channel number threshold N1 can satisfy: N1=N0×w1×w2.
假设该第一音频总线L1的采样方式为双沿采样,若第一音频总线L1的采样参数均为初始采样参数,则该声道数阈值N1即可以等于额定声道数N0与采样系数w3的乘积,即该声道数阈值N1可以满足:N1=N0×w3。若该第一音频总线L1的采样参数中仅采样位宽是对第一音频总线L1的初始采样位宽进行调整得到的,则该声道数阈值N1即可以等于额定声道数N0与第一比值w1和采样系数w3的乘积,即该声道数阈值N1可以满足:N1=N0×w1×w3。Assuming that the sampling mode of the first audio bus L1 is double-edge sampling, if the sampling parameters of the first audio bus L1 are all initial sampling parameters, the channel number threshold N1 can be equal to the number of channels N0 and the sampling coefficient w3. The product, that is, the channel number threshold N1 can satisfy: N1=N0×w3. If only the sampling bit width in the sampling parameters of the first audio bus L1 is obtained by adjusting the initial sampling bit width of the first audio bus L1, the channel number threshold N1 can be equal to the rated channel number N0 and the first The product of the ratio w1 and the sampling coefficient w3, that is, the channel number threshold N1 can satisfy: N1=N0×w1×w3.
若该第一音频总线L1的采样参数中仅采样频率是对第一音频总线L1的初始采样频率进行调整得到的,则该声道数阈值N1即可以等于额定声道数N0与第二比值w2和采样系数w3的乘积,即该声道数阈值N1可以满足:N1=N0×w2×w3。If only the sampling frequency of the sampling parameters of the first audio bus L1 is obtained by adjusting the initial sampling frequency of the first audio bus L1, the channel number threshold N1 can be equal to the rated channel number N0 and the second ratio w2 And the product of the sampling coefficient w3, that is, the channel number threshold N1 can satisfy: N1=N0×w2×w3.
若第一音频总线L1的采样参数中的采样频率和采样位宽均是对第一音频总线L1的初始采样参数进行调整得到的,则该声道数阈值N1即可以等于额定声道数N0与第一比值w1、第二比值w2以及采样系数w3的乘积,即该声道数阈值N1可以满足:N1=N0×w1×w2×w3。If the sampling frequency and sampling bit width in the sampling parameters of the first audio bus L1 are both obtained by adjusting the initial sampling parameters of the first audio bus L1, the channel number threshold N1 can be equal to the rated channel number N0 and The product of 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.
以第一音频总线L1的初始采样位宽为16bit,即数据位宽为16bit,初始采样频率为48KHZ,初始采样方式为单沿采样,采样系数w3为1,额定声道数N0为2,额定频率为48KHZ为例,对上述实施例进行举例介绍:The initial sampling bit width of the first audio bus L1 is 16bit, that is, the data bit width is 16bit, the initial sampling frequency is 48KHZ, the initial sampling method is single-edge sampling, the sampling coefficient w3 is 1, the rated channel number N0 is 2, and the rated The frequency is 48KHZ as an example, and the above-mentioned embodiment will be described as an example:
作为一种在一些实施例中实现方式,可以保持初始采样频率不变,并增大初始采样位宽。例如,参考图5,可以在保持第一音频总线L1的初始采样频率48KHZ不变的前提下,将第一音频总线L1的初始采样位宽16bit增大为24bit,也即是第一音频总线L1的采样位宽为24bit,采样频率为48KHZ。则第一比值 w1即为1.5;第二比值w2即为1,声道数阈值N1即为:N1=N0×w1=2×1.5=3,即每条第一音频总线L1最多可以传输3ch的音频数据,相应的,即可保证三条第一音频总线L1最多可以传输9ch的音频数据。As an implementation in some embodiments, the initial sampling frequency can be kept unchanged and the initial sampling bit width can be increased. For example, referring to FIG. 5, the initial sampling bit width of the first audio bus L1 can be increased from 16 bits to 24 bits on the premise that the initial sampling frequency of the first audio bus L1 remains unchanged at 48KHZ, that is, the first audio bus L1 The sampling bit width is 24bit, and the sampling frequency is 48KHZ. Then the first ratio w1 is 1.5; the second ratio w2 is 1, and the channel number threshold N1 is: N1=N0×w1=2×1.5=3, that is, each first audio bus L1 can transmit at most 3ch Audio data, correspondingly, can ensure that the three first audio buses L1 can transmit up to 9ch of audio data.
例如,参考图6,可以在保持第一音频总线L1的初始采样频率48KHZ不变的前提下,将第一音频总线L1的初始采样位宽16bit增大为32bit,也即是,第一音频总线L1的采样位宽为32bit,采样频率为48KHZ,则第一比值w1即为2,第二比值w2即为1,声道数阈值N1即为:N1=N0×w1=2×2=4。即每条第一音频总线L1最多可以传输4ch的音频数据,相应的,可以保证三条第一音频总线L1最多可以传输12ch的音频数据,两条第一音频总线L1即可以传输8ch的音频数据。因此若要实现8ch的音频数据传输,参考图6,仅需设置两条第一音频总线L1即可,节省了成本,且由于目前大部分音频发送端10均设置2条第一音频总线L1,因此兼容性也较强。For example, referring to Figure 6, it is possible to increase the initial sampling bit width of the first audio bus L1 from 16 bits to 32 bits on the premise that the initial sampling frequency of the first audio bus L1 remains unchanged at 48KHZ, that is, the first audio bus The sampling bit width of L1 is 32bit and 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 ensured that the three first audio buses L1 can transmit up to 12ch of audio data, and the two first audio buses L1 can transmit 8ch of audio data. Therefore, to realize 8ch audio data transmission, referring to Fig. 6, only two first audio buses L1 need to be set up, which saves costs, and since most of the audio sending ends 10 currently have two first audio buses L1, Therefore, the compatibility is also strong.
在一些实施例中可以保持初始采样位宽不变,增大初始采样频率。例如,参考图7和图8,可以在保持初始采样位宽16bit不变的前提下,将初始采样频率48KHZ增大为96KHZ。也即是第一音频总线L1的采样位宽为16bit,采样频率为96KHZ,则第一比值w1即为1,第二比值w2即为2,声道数阈值N1即为:N1=N0×w2=2×2=4。即每条第一音频总线L1最多均可以传输4ch的音频数据。相应的,可以保证三条第一音频总线L1最多传输12ch的音频数据,两条第一音频总线L1最多传输8ch的音频数据。In some embodiments, the initial sampling bit width can be kept unchanged, and the initial sampling frequency can be increased. For example, referring to Figures 7 and 8, the initial sampling frequency of 48KHZ can be increased to 96KHZ while keeping the initial sampling bit width of 16bit unchanged. That is, the sampling bit width of the first audio bus L1 is 16bit and the sampling frequency is 96KHZ, 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 4ch audio data at most. Correspondingly, it can be guaranteed that the three first audio buses L1 can transmit up to 12ch of audio data, and the two first audio buses L1 can transmit up to 8ch of audio data.
在一些实施例中,可以既增大第一音频总线L1的初始采样位宽,也增大第一音频总线L1的初始采样频率。例如,可以将第一音频总线L1的采样频率调整为初始采样频率的整数倍。参考图9,可以既将初始采样位宽16bit增大为24bit, 又将初始采样频率48KHZ增大为96KHZ。相应的,每条第一音频总线L1的采样位宽即为24bit,采样频率即为96KHZ,则第一比值w1即为1.5,第二比值w2即为2,声道数阈值N1即为:N1=N0×w1×w2=2×1.5×2=6。每条第一音频总线L1最多即可以传输6ch的音频数据。相应的,可保证两条第一音频总线L1最多传输12ch的音频数据。对于8ch以上声道数的音频数据传输,适应性更广。In some embodiments, the initial sampling bit width of the first audio bus L1 and the initial sampling frequency of the first audio bus L1 may be increased. For example, the sampling frequency of the first audio bus L1 may be adjusted to an integer multiple of the initial sampling frequency. Referring to Figure 9, the initial sampling bit width can be increased from 16bit to 24bit, and the initial sampling frequency from 48KHZ to 96KHZ. Correspondingly, the sampling bit width of each first audio bus L1 is 24bit, and the sampling frequency is 96KHZ, 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 up to 6ch audio data. Correspondingly, it can be ensured that the two first audio buses L1 can transmit up to 12 channels of audio data. For audio data transmission with more than 8ch channels, the adaptability is wider.
在一些实施例中,可以保持初始采样位宽和初始采样频率均不变,仅将初始采样方式由单沿采样调整为双沿采样,即使得w3为2,相应的,在初始采样位宽16bit,且初始采样频率48KHZ的前提下,也可以使得声道数阈值N1为:N1=N0×w3=2×2=4,即可以使得每条第一音频总线L1最多可以传输4ch的声道数据。In some embodiments, 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, correspondingly, the initial sampling bit width is 16bit And under the premise of 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 .
需要说明的是,上述采样参数调整方式仅是举例说明,若要实现更多声道数量的音频数据传输,可以根据声道数量的要求,对第一音频总线L1的采样参数进行对应调整。It should be noted that the above-mentioned sampling parameter adjustment method is only an example. To realize audio data transmission with more channels, the sampling parameters of the first audio bus L1 can be adjusted according to the requirement of the number of channels.
步骤403、根据第一音频总线在每个采样周期内能够传输的音频数据的声道数阈值,对多个声道的音频数据进行编码,得到与多条第一音频总线对应的多路第一音频信号。Step 403: According to the threshold value of the number of audio channels of the audio data that can be transmitted by the first audio bus in each sampling period, the audio data of the multiple channels are encoded to obtain multiple first audio buses corresponding to the multiple first audio buses. audio signal.
在本申请实施例中,当音频发送端10确定了第一音频总线L1在每个采样周期内能够传输的声道数阈值后,可以采用预设算法对获取到的多个声道的音频数据进行拆分和组合,得到多路第一音频信号。其中,每路第一音频信号包括的音频数据的声道数可以小于等于声道数阈值。In the embodiment of the present application, after the audio sending end 10 determines the threshold of the number of channels that can be transmitted by the first audio bus L1 in each sampling period, a preset algorithm can be used to compare the acquired audio data of multiple channels. Split and combine to obtain multiple first audio signals. Wherein, the number of audio channels of the audio data included in each channel of the first audio signal may be less than or equal to the threshold of the number of channels.
其中,若第一音频总线调整后的采样位宽为数据位宽的非整数倍,则可以 根据采样位宽,对目标声道的音频数据进行拆分,并将拆分得到的音频数据分别与其他声道的音频数据进行组合,组合后的音频数据的位宽可以为采样位宽。若采样位宽为数据位宽的整数倍,则可以将至少两个声道的音频数据进行组合,组合后的音频数据的位宽为采样位宽。Among them, 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 divided with The audio data of other channels are combined, and the bit width of the combined audio data may 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 is the sampling bit width.
在一些实施例中,该目标声道的音频数据包括:中置音声道音频数据Center和重低音声道音频数据Woofer中的至少一种。由于该中置音声道音频数据Center和重低音声道音频数据Woofer相对于其他声道的音频数据为次要声音,因此对次要声音进行拆分,可以避免获取到的主要声音(如主声道、环绕音或天空音)丢失或错误,保证多声道音频数据传输的可靠性。In some embodiments, the audio data of the target channel includes at least one of center channel audio data Center and subwoofer channel audio data Woofer. Since the center channel audio data Center and the subwoofer channel audio data Woofer are secondary sounds relative to the audio data of other channels, the secondary sounds are split to avoid the acquired primary sounds (such as the main sound). Channel, surround sound or sky sound) is missing or wrong, to ensure the reliability of multi-channel audio data transmission.
以数据位宽为16bit,额定频率为48KHZ,采样方式为单沿采样举例介绍:Take the data bit width as 16bit, the rated frequency as 48KHZ, and the sampling method as single-edge sampling.
在一些实施例中,如图5和图9所示,第一音频总线L1的采样位宽为24bit,由于采样位宽24bit为数据位宽16bit的1.5倍(即非整数倍),因此音频发送端10可以根据24bit,对目标声道的音频数据进行拆分,并将拆分得到的音频数据分别与其他声道音频数据进行组合,且使组合后的音频数据的位宽为采样位宽。In some embodiments, as shown in Figures 5 and 9, 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 (that is, non-integer multiples) of the data bit width of 16 bits, the audio transmission The terminal 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, and make the bit width of the combined audio data the sampling bit width.
也即是,该音频发送端10的编码方式可以为:在每个采样周期的前半个采样周期中,组合一个ch的16bit的音频数据,以及拆分后的1ch的低8bit音频数据,在每个采样周期的后半个采样周期中,组合一个ch的16bit的音频数据,以及拆分后的1ch的高8bit音频数据。That is, the encoding method of the audio sending end 10 can be: in the first half of each sampling period, the 16-bit audio data of one ch is combined, and the low 8bit audio data of 1ch after the splitting is performed in each sampling period. In the second half of the sampling period, the 16-bit audio data of one ch is combined, and the high 8bit audio data of the split 1ch is combined.
在一些实施例中,参考图5,假设每条第一音频总线L1的声道数阈值为3,且音频发送端10获取到ch0至ch8共9ch的音频数据,其中ch1、ch4和ch7为目标声道。则参考图5,音频发送端10可以将ch1、ch4和ch7中每个ch的音频数据均拆分为低8bit和高8bit的两段数据。之后,可以将ch1拆分后的两 段数据中,低8bit的一段数据与ch0的16bit的音频数据组合,高8bit的一段数据与ch2的16bit的音频数据组合,从而得到一路第一音频信号。In some embodiments, referring to FIG. 5, it is assumed that the threshold of the number of channels of each first audio bus L1 is 3, and the audio sending end 10 obtains a total of 9 ch audio data from ch0 to ch8, where ch1, ch4, and ch7 are targets Soundtrack. Referring to FIG. 5, the audio sending end 10 can split the audio data of each ch of ch1, ch4, and ch7 into two pieces of data of low 8bit and high 8bit. After that, the two pieces of data after ch1 can be split, the low 8bit piece of data is combined with the 16bit audio data of ch0, and the high 8bit piece of data is combined with the 16bit audio data of ch2 to obtain a first audio signal.
其中,ch0与ch1的低8bit的一段数据组合后的音频数据的位宽为24bit,ch2与ch1的高8bit的一段数据组合后的音频数据的位宽以为24bit。同理,可以将ch4拆分后的两段数据分别与ch3和ch5组合为一路第一音频信号,将ch7拆分后的两段数据分别与ch6和ch8组合为一路第一音频信号。相应的,编码后即共得到三路第一音频信号,且每路第一音频信号均包括3个声道的音频数据。Among them, the bit width of the audio data after the combination of the lower 8bit data of ch0 and ch1 is 24bit, and the bit width of the audio data after the combination of ch2 and the higher 8bit data of ch1 is 24bit. In the same way, the two pieces of data split from ch4 can be combined with ch3 and ch5 to form a first audio signal, and the two pieces of data split from ch7 are combined with ch6 and ch8 to form a first audio signal. Correspondingly, three channels of first audio signals are obtained after encoding, and each channel of the first audio signals includes audio data of 3 channels.
例如,参考图9,假设每条第一音频总线L1的声道数阈值为4,音频发送端10获取到L、R、C、LFE、Rs、Ls、Lfh和Rfh共8ch的音频数据,Lfh和Rfh为目标声道,则参考图9,音频发送端10可以将Lfh和Rfh中每个ch的音频数据均拆分为低8bit和高8bit的两段数据,并将Lfh拆分后的两段数据,低8bit的一段数据与L声道的16bit音频数据组合,高8bit的一段数据与R声道的16bit音频数据组合;将Rfh拆分后的两段数据,低8bit的一段数据与C声道的16bit音频数据组合,高8bit的一段数据与LFE声道的16bit音频数据组合,从而得到一路第一音频信号。其余声道的音频数据组合为一路第一音频信号。For example, referring to Figure 9, assuming that the threshold of the number of channels of each first audio bus L1 is 4, the audio sending end 10 obtains L, R, C, LFE, Rs, Ls, Lfh, and Rfh a total of 8 channels of audio data, Lfh And Rfh are the target channels, refer to Figure 9, the audio transmitter 10 can split the audio data of each ch in Lfh and Rfh into two pieces of low 8bit and high 8bit data, and split the two pieces of Lfh. Segment data, a segment of low 8bit data is combined with 16bit audio data of L channel, a segment of high 8bit data is combined with 16bit audio data of R channel; two segments of data after splitting Rfh, a segment of low 8bit data is combined with C The 16bit audio data of the channel is combined, and a segment of high 8bit data is combined with the 16bit audio data of the LFE channel to obtain a first audio signal. The audio data of the remaining channels are combined into a first audio signal.
在一些实施例中,参考图6,第一音频总线L1的采样位宽为32bit,参考图7和图8,第一音频总线L1的采样位宽均为16bit。由于采样位宽16bit为数据位宽16bit的1倍(即整数倍),采样位宽32bit为数据位宽16bit的2倍(即整数倍)。因此对于图6,音频发送端10可以根据16bit,将至少两个声道的音频数据进行组合,组合后的音频数据的位宽即为采样位宽。对于图7和图8,音频发送端10可以根据32bit,将至少两个声道的音频数据进行组合,组合后的音 频数据的位宽即为采样位宽。也即是,该音频发送端10的编码方式可以为:在每个采样周期的前半个采样周期中的组合2个1ch的16bit的音频数据,以及在每个采样周期的后半个采样周期组合2个1ch的16bit的音频数据。In some embodiments, referring to FIG. 6, the sampling bit width of the first audio bus L1 is 32 bits, and referring to FIGS. 7 and 8, the sampling bit width of the first audio bus L1 is 16 bits. Since the sampling bit width of 16bit is 1 times (ie, an integer multiple) of the data bit width of 16bit, the sampling bit width of 32bit is 2 times (ie, an integer multiple) of the data bit width of 16bit. Therefore, for FIG. 6, the audio sending end 10 may combine 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. With respect to Figures 7 and 8, the audio sending end 10 can combine 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. That is, the encoding method of the audio sending end 10 can be: the combination of two 1ch 16bit audio data in the first half of each sampling period, and the combination of the second half of each sampling period. Two 1ch 16bit audio data.
例如,参考图6和图8,假设每条第一音频总线L1的声道数阈值均为4,音频发送端10获取到L、R、C、LFE、Rs、Ls、Lfh和Rfh共8ch的音频数据,则参考图6和图8,音频发送端10可以在每个采样周期内,将L、R、C和LFE4个声道的音频数据组合为一路第一音频信号,将Rs、Ls、Lfh和Rfh4个声道的音频数据组合为一路第一音频信号,相应的,编码后即共得到两路第一音频信号,且每路第一音频信号均包括4ch的音频数据。For example, referring to Figures 6 and 8, assuming that the threshold of the number of channels of each first audio bus L1 is 4, the audio sending end 10 obtains a total of 8 channels of L, R, C, LFE, Rs, Ls, Lfh, and Rfh. For audio data, refer to Figures 6 and 8. The audio transmitter 10 can combine the audio data of the 4 channels of L, R, C, and LFE into a first audio signal in each sampling period, and combine Rs, Ls, The audio data of 4 channels of Lfh and Rfh is combined into a first audio signal. Accordingly, after encoding, a total of two first audio signals are obtained, and each of the first audio signals includes 4ch audio data.
同理,参考图7,假设每条第一音频总线L1的声道数阈值为4,音频发送端10获取到ch0至ch11共12ch的音频数据,则参考图6,音频发送端10可以将ch0至ch3共4个声道的音频数据组合为一路第一音频信号,将ch4至ch7共4个声道的音频数据组合为一路第一音频信号,将ch8至ch11共4个声道的音频数据组合为一路第一音频信号,相应的,编码后即共得到三路第一音频信号,且每路第一音频信号均包括4ch的音频数据。Similarly, referring to Figure 7, assuming that the threshold of the number of channels of each first audio bus L1 is 4, and the audio sending end 10 obtains a total of 12 channels of audio data from ch0 to ch11, referring to Fig. 6, the audio sending end 10 can set ch0 Combine the audio data of 4 channels to ch3 into a first audio signal, combine the audio data of 4 channels from ch4 to ch7 into a first audio signal, and combine the audio data of 4 channels from ch8 to ch11 The first audio signal is combined into one channel. Accordingly, after encoding, a total of three channels of first audio signal are obtained, and each channel of the first audio signal includes 4ch audio data.
需要说明的是,本申请实施例对音频发送端10对多个声道的音频数据的拆分和组合方式也不做限定。It should be noted that the embodiment of the present application does not limit the splitting and combining manners of the audio data of multiple channels by the audio sending end 10.
步骤404、将每路第一音频信号,通过对应的一条第一音频总线传输至音频接收端。Step 404: Transmit each channel of the first audio signal to the audio receiving end through a corresponding first audio bus.
在本申请实施例中,音频发送端10可以将编码后的每路第一音频信号,通过对应的一条第一音频总线L1全部传输至音频接收端20。音频接收端20中可以预先存储有音频发送端10的编码方式,相应的,音频接收端20即可以根据 其预先存储的编码方式,对接收到的多路第一音频信号进行解码,并通过第二音频总线L2全部传输至扬声器30,实现多声道的音频数据传输。In the embodiment of the present application, the audio sending end 10 may transmit each encoded first audio signal to the audio receiving end 20 through a corresponding first audio bus L1. The audio receiving terminal 20 may pre-store the encoding method of the audio transmitting terminal 10, and accordingly, the audio receiving terminal 20 may decode the received multiple first audio signals according to the pre-stored encoding method, and pass the first audio signal. The second audio bus L2 is all transmitted to the speaker 30 to realize multi-channel audio data transmission.
在一些实施例中,如图5所示,音频发送端10对获取到的声道的音频数据进行编码后共得到三路第一音频信号,每路第一音频信号共包括3ch的音频数据。相应的,音频发送端10即可通过对应的第一音频总线L1将每路第一音频信号传输至音频发送端20。In some embodiments, as shown in FIG. 5, the audio sending end 10 encodes the acquired audio data of the channel to obtain a total of three channels of first audio signals, and each channel of the first audio signal includes 3 channels of audio data in total. Correspondingly, the audio sending end 10 can transmit each channel of the first audio signal to the audio sending end 20 through the corresponding first audio bus L1.
在一些实施例中,如图10所示,该音频发送端10可以包括应用层、硬件抽象层(Hardware Abstraction Layer,HAL)、驱动层和底层(硬件)。在实际应用中,应用层在启动多声道应用程序后,可以向硬件抽象层发送音频数据传输指令。硬件抽象层接收到该音频数据传输指令后,即可运行多声道音频数据传输的相关代码,从而驱动该驱动层检测底层硬件连接的音频(Audio)设备。例如,该音频设备可以为USB设备。In some embodiments, as shown in FIG. 10, the audio sending end 10 may include an application layer, a hardware abstraction layer (HAL), a driver layer, and a bottom layer (hardware). In practical applications, the application layer can send audio data transmission instructions to the hardware abstraction layer after starting the multi-channel application. After the hardware abstraction layer receives the audio data transmission instruction, it can run the relevant code for multi-channel audio data transmission, thereby driving the driver layer to detect the audio device connected to the underlying hardware. For example, the audio device may be a USB device.
在一些实施例中,当驱动层检测到音频设备时,该音频设备即可将音频文件(即图10所示的原始音频数据)输入至音频发送端10。该音频发送端10可以通过解码器101将该原始音频数据进行解码得到多个声道的音频数据(如8ch的音频数据)并存储至底层,例如可以存储至存储器中。然后,驱动层可以将底层检测到的音频设备告知硬件抽象层,此时,硬件抽象层可以向应用层发送音频数据传输请求,以询问应用层是否发出音频数据。In some embodiments, when the driver layer detects an audio device, the audio device can input the audio file (ie, the original audio data shown in FIG. 10) to the audio sending terminal 10. The audio sending end 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, can be stored in a memory. Then, the driver layer can inform the hardware abstraction layer of the audio devices detected by the bottom layer. At this time, the hardware abstraction layer can send an audio data transmission request to the application layer to ask the application layer whether to send audio data.
当硬件抽象层接收到应用层的指示传输音频数据的应答指令后,可以将多声道音频数据的编码方式(即音频数据传输的相关代码)发送至驱动层。驱动层进而可以根据该编码方式对存储至底层的多个声道的音频数据进行编码处理(即执行上述步骤403)。编码处理后,即可以通过第一音频总线L1传输至外 部设备。该外部设备可以为音频接收端20,或者也可以为扬声器30。After the hardware abstraction layer receives the application layer's response instruction indicating the transmission of audio data, it can send the encoding method of the multi-channel audio data (that is, the relevant code for audio data transmission) to the driver layer. The driver layer may further encode the audio data of multiple channels stored in the bottom layer according to the encoding method (that is, perform the above step 403). After the encoding process, it can be transmitted to the external device through the first audio bus L1. The external device may be the audio receiving terminal 20, or may also be a speaker 30.
需要说明的是,参考图11,该音频发送端10还可以包括音频处理器(Data Acquisition and Processing,DAP)。该DAP可以分别与解码器101和重编码器102连接。当解码器101将声源S1发送的压缩后的音频数据解码后,可以先将该多个声道的音频数据发送至DAP,DAP可以通过预设算法对音频数据进行处理,得到更好效果的音频数据。然后再将处理后的音频数据发送至重编码器102,由重编码器102执行上述步骤403实现编码,最后再通过第一音频总线L1(即I2S)实现音频数据的传输。It should be noted that, referring to FIG. 11, the audio sending end 10 may also include an audio processor (Data Acquisition and Processing, DAP). The DAP can 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, it can first send the audio data of the multiple channels to the DAP, and the DAP can process the audio data through a preset algorithm to obtain better results Audio data. Then the processed audio data is sent to the re-encoder 102, and the re-encoder 102 executes the above-mentioned step 403 to realize encoding, and finally realizes the transmission of audio data through the first audio bus L1 (ie, I2S).
另外,参考图11,该音频处理器DAP还可以与混音器MIX连接,混音器MIX可以将接收到音频数据中能够混合的音频数据进行混合得到立体声后并输出。In addition, referring to FIG. 11, the audio processor DAP can also be connected to a mixer MIX, and the mixer MIX can mix the audio data that can be mixed in the received audio data to obtain stereo sound and output it.
本申请实施例提供的音频数据传输方法,通过对接收到的多个声道的音频数据进行编码,使得编码后的至少一路第一音频信号包括的音频数据的声道数可以大于额定声道数,即可以大于扬声器能够接收到的声道数。在第一音频总线L1较少的情况下,也可以实现较多声道的音频数据传输,实现了5.1.2声道的音频数据的传输,打破了传统信号的概念,为立体声终端的实现打下了基础。The audio data transmission method provided by the embodiments of the present application encodes the received audio data of multiple channels, so that the number of audio data channels included in at least one first audio signal after encoding can be greater than the number of rated channels , Which can be greater than the number of channels that the speaker can receive. In the case that the first audio bus L1 is small, more channels of audio data transmission can also be realized, which realizes the transmission of 5.1.2 channel audio data, breaking the concept of traditional signals, and laying the foundation for the realization of stereo terminals Foundation.
综上所述,本申请实施例提供了一种音频数据的传输方法。由于音频发送端对获取到的多个声道的音频数据进行解码后,得到的多路第一音频信号中至少一路第一音频信号包括的音频数据的声道数大于额定声道数。因此无需外接音响设备,即可将更多声道的音频数据传输至音频接收端,使得音频接收端将更多声道的音频数据传输至扬声器,实现多声道的播放效果。In summary, the embodiment of the present application provides a method for transmitting audio data. Since the audio sending end decodes the acquired audio data of the multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the rated number of channels. Therefore, without external audio equipment, more channels of audio data can be transmitted to the audio receiving end, so that the audio receiving end can transmit more channels of audio data to the speaker to achieve multi-channel playback.
图12是本申请实施例提供的一种音频数据的传输方法流程图,该方法可以 应用于图1所示的音频接收端20中,参考图1,音频接收端20可以通过多条第一音频总线L1与音频发送端10连接,并通过多条第二音频总线L2与多个扬声器30连接,第二音频总线L2的数量大于第一音频总线L1的数量。如图12所示,该方法可以包括:FIG. 12 is a flowchart of a method for transmitting audio data provided by an embodiment of the present application. The method can be applied to the audio receiving terminal 20 shown in FIG. 1. Referring to FIG. 1, the audio receiving terminal 20 may pass multiple first audio The bus L1 is connected to the audio sending terminal 10 and is connected to a plurality of speakers 30 through a plurality of second audio buses L2. The number of the second audio buses L2 is greater than the number of the first audio buses L1. As shown in Figure 12, the method may include:
步骤501、接收音频发送端通过多条第一音频总线发送的多路第一音频信号Step 501: Receive multiple first audio signals sent by the audio transmitter through multiple first audio buses
在本申请实施例中,每路第一音频信号可以包括至少一个声道的音频数据,且至少一路第一音频信号包括的音频数据的声道数大于额定声道数。In the embodiment of the present application, each channel of the first audio signal may include at least one channel of audio data, and the number of channels of the audio data included in the at least one channel of the first audio signal is greater than the rated channel number.
其中,该额定声道数可以为一个扬声器能够接收到的音频数据的声道数。由于一个扬声器可以接收到的音频数据的声道数为2,因此,该额定声道数即为2。相应的,相对于相关技术,音频接收端20仅能接收三条第一音频总线发送的6ch的声道数据,本申请实施例提供的音频接收端20可以接收三条第一音频总线发送的6ch以上声道数的音频数据。Wherein, the rated number of channels may be the number of channels of audio data that can be received by a speaker. Since the number of audio channels that can be received by a speaker is 2, the rated number of channels is 2. Correspondingly, with respect to the related technology, the audio receiving terminal 20 can only receive 6-channel channel data sent by three first audio buses, and the audio receiving terminal 20 provided in the embodiment of the present application can receive more than 6-channel audio sent by three first audio buses. Audio data of the number of channels.
步骤502、按照与音频发送端采用的编码方式相对应的解码方式,对多路第一音频信号进行解码,得到与多条第二音频总线对应的多路第二音频信号。Step 502: According to the decoding method corresponding to the encoding method adopted by the audio sending end, decode the multiple first audio signals to obtain multiple second audio signals corresponding to the multiple second audio buses.
在本申请实施例中,音频接收端20可以预先存储与音频发送端采用的编码方式相对应的解码方式。当音频接收端20接收到多路第一音频信号后,即可按照预先存储的解码方式对多路第一音频信号进行解码,得到多路第二音频信号,且,解码后的每路第二音频信号包括的音频数据的声道数可以小于或等于额定声道数。由于一个扬声器能够接收到的音频数据的声道数为2,因此通过解码得到该多路第二音频信号,可以使得接收到的多个声道的音频数据均正常传输至扬声器,实现真正意义上的多声道音频数据传输。In the embodiment of the present application, the audio receiving end 20 may pre-store a decoding method corresponding to the encoding method adopted by the audio sending end. After the audio receiving terminal 20 receives multiple channels of first audio signals, it can decode the multiple channels of first audio signals according to the pre-stored decoding method to obtain multiple channels of second audio signals, and each channel of the second audio signal after decoding The number of channels of audio data included in the audio signal may be less than or equal to the number of rated channels. Since the number of channels of audio data that can be received by a speaker is 2, the multiple channels of second audio signals can be obtained by decoding, so that the received audio data of multiple channels can be transmitted to the speaker normally, realizing a true sense Multi-channel audio data transmission.
步骤503、将每路第二音频信号通过对应的一条第二音频总线,传输至与第二音频总线连接的扬声器。Step 503: Transmit each second audio signal through a corresponding second audio bus to a speaker connected to the second audio bus.
例如,假设音频接收端20对接收到的音频数据解码后,得到四路第二音频信号,每路第二音频信号包括两个声道的音频数据,则音频接收端20即可以通过四条第二音频总线L2将各路第二音频信号传输至与其对应连接的扬声器30。For example, assuming that the audio receiving end 20 decodes the received audio data to obtain four second audio signals, and each second audio signal includes two channels of audio data, the audio receiving end 20 can pass four second audio signals. The audio bus L2 transmits each second audio signal to the speaker 30 connected to it.
综上所述,本申请实施例提供了一种音频数据的传输方法。由于音频接收端接收到的多路第一音频信号中,至少一路第一音频信号包括的音频数据的声道数大于额定声道数。因此无需外接音响设备,音频接收端即可将较多声道的音频数据进行解码后传输至扬声器,实现多声道的播放效果。In summary, the embodiment of the present application provides a method for transmitting audio data. Since among the multiple channels of first audio signals received by the audio receiving end, the number of audio data channels included in at least one of the first audio signals is greater than the number of rated channels. Therefore, without external audio equipment, the audio receiving end can decode more channels of audio data and transmit it to the speakers to achieve multi-channel playback.
图13是本申请实施例提供的另一种音频数据的传输方法流程图,该方法可以应用于图1所示的音频接收端20中。如图13所示,该方法可以包括:FIG. 13 is a flowchart of another audio data transmission method provided by an embodiment of the present application, and the method may be applied to the audio receiving terminal 20 shown in FIG. 1. As shown in Figure 13, the method may include:
步骤601、接收音频发送端通过多条第一音频总线发送的多路第一音频信号Step 601: Receive multiple first audio signals sent by the audio transmitter through multiple first audio buses
在本申请实施例中,音频接收端20可以通过多条第一音频总线L1接收到多路第一音频信号。且每路第一音频信号可以包括至少一个声道的音频数据,至少一路第一音频信号包括的音频数据的声道数大于额定声道数。In the embodiment of the present application, the audio receiving terminal 20 may receive multiple first audio signals through multiple first audio buses L1. Moreover, each channel of the first audio signal may include at least one channel of audio data, and the number of channels of the audio data included in the at least one channel of the first audio signal is greater than the rated channel number.
其中,该额定声道数可以为一个扬声器能够接收到的音频数据的声道数。由于一个扬声器可以接收到的音频数据的声道数为2,因此,该额定声道数即为2。相应的,相对于相关技术,音频接收端20仅能接收三条第一音频总线发送的6ch的声道数据,本申请实施例提供的音频接收端20可以接收三条第一音频总线发送的6ch以上声道数的音频数据。Wherein, the rated number of channels may be the number of channels of audio data that can be received by a speaker. Since the number of audio channels that can be received by a speaker is 2, the rated number of channels is 2. Correspondingly, with respect to the related technology, the audio receiving terminal 20 can only receive 6-channel channel data sent by three first audio buses, and the audio receiving terminal 20 provided in the embodiment of the present application can receive more than 6-channel audio sent by three first audio buses. Audio data of the number of channels.
在一些实施例中,假设如图1所示,音频发送端10共通过三条第一音频总 线L1与音频接收端20连接,即共包括三路第一音频信号。则音频接收端20即可接收到音频发送端10通过三条第一音频总线L1发送的三路第一音频信号,每路第一音频信号可以包括3个声道的音频数据。In some embodiments, it is assumed that, as shown in Fig. 1, the audio sending end 10 is connected to the audio receiving end 20 through three first audio buses L1, that is, there are three first audio signals in total. Then, the audio receiving terminal 20 can receive three channels of first audio signals sent by the audio sending terminal 10 through the three first audio buses L1, and each channel of the first audio signals may include 3 channels of audio data.
步骤602、确定与音频发送端采用的编码方式相对应的解码方式。Step 602: Determine a decoding mode corresponding to the coding mode adopted by the audio sending end.
在本申请实施例中,音频接收端20可以预先存储与音频发送端采用的编码方式相对应的解码方式。当音频接收端20接收到多路第一音频信号后,即可确定出与音频发送端采用的编码方式相对应的解码方式。In the embodiment of the present application, the audio receiving end 20 may pre-store a decoding method corresponding to the encoding method adopted by the audio sending end. After the audio receiving end 20 receives the multiple channels of first audio signals, the decoding mode corresponding to the encoding mode adopted by the audio transmitting end can be determined.
在一些实施例中,该音频接收端20中存储的解码方式可以是在出厂时,根据音频发送端10设置的编码方式预先配置好的。并且,可以在音频接收端20中预先配置多种解码方式。相应的,在获取到多路第一音频信号后,该音频接收端20即可以直接采用预先配置好的解码方式对该多路第一音频信号进行解码。或者,音频接收端20也可以接收音频发送端10在发送第一音频信号的过程中,实时发送的编码方式,然后再根据该编码方式确定对应的解码方式。In some embodiments, the decoding mode stored in the audio receiving terminal 20 may be pre-configured according to the encoding mode set by the audio transmitting terminal 10 at the factory. In addition, multiple decoding methods can be pre-configured in the audio receiving terminal 20. Correspondingly, after acquiring multiple channels of first audio signals, the audio receiving terminal 20 can directly decode the multiple channels of first audio signals by using a pre-configured decoding mode. Alternatively, the audio receiving terminal 20 may also receive the encoding mode sent by the audio transmitting terminal 10 in real time during the process of sending the first audio signal, and then determine the corresponding decoding mode according to the encoding mode.
步骤603、根据第二音频总线的采样位宽,对多路第一音频信号包括的多个声道的音频数据进行拆分和组合,得到多路第二音频信号。Step 603: According to the sampling bit width of the second audio bus, split and combine audio data of multiple channels included in the multiple first audio signals to obtain multiple second audio signals.
在本申请实施例中,每路第二音频信号包括的每个声道的音频数据的数据位宽,可以均为第二音频总线的采样位宽。该第二音频总线的采样位宽与第一音频总线的初始采样位宽,以及声道的音频数据的数据位宽可以相同。例如,该第二音频总线的采样位宽可以为16bit。In the embodiment of the present application, the data bit width of the audio data of each channel included in each second audio signal may be the sampling bit width of the second audio bus. The sampling bit width of the second audio bus may 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 may be 16 bits.
在一些实施例中,本申请实施例以第二音频总线L2的采样位宽为16bit,采样频率为48KHZ为例进行说明:In some embodiments, the embodiment of the present application takes the sampling bit width of the second audio bus L2 of 16 bits and the sampling frequency of 48KHZ as an example for description:
在一些实施例中,若音频发送端10在对多个声道的音频数据进行编码时, 编码方式为:在每个采样周期的前半个采样周期中,组合一个ch的16bit的音频数据,以及拆分后的1ch的低8bit音频数据,在每个采样周期的后半个采样周期中,组合一个ch的16bit的音频数据,以及拆分后的1ch的高8bit音频数据。In some embodiments, if the audio transmitter 10 encodes audio data of multiple channels, the encoding method is: in the first half of each sampling period, the 16-bit audio data of one ch is combined, and After splitting the 1ch low 8bit audio data, in the second half of each sampling period, combine the 16bit audio data of one ch and the high 8bit audio data of the split 1ch.
则音频接收端20确定的解码方式即可以为:将每个采样周期内的前半个周期的前16bit对应的声道的音频数据,和后半个周期中的前16bit对应的声道的音频数据组合为一路第二音频信号,并将每个采样周期内的前半个周期的后8bit对应的声道的音频数据,与后半个周期中的后8bit对应的声道的音频数据组合得到1ch的音频数据,并将该组合后的1ch的音频数据与任一个1ch的音频数据组合为一路第二音频信号,该任一个1ch的音频数据也可以为组合后的。The decoding method determined by the audio receiving terminal 20 can be: the audio data of the channel corresponding to the first 16 bits of the first half of each sampling period and the audio data of the channel corresponding to the first 16 bits of the second half of the period Combine into a second audio signal, and combine the audio data of the channel corresponding to the last 8bit of the first half of each sampling period with the audio data of the channel corresponding to the last 8bit of the second half of the period to get 1ch Audio data, and the combined 1ch audio data and any 1ch audio data are combined into a second audio signal, and the any 1ch audio data may also be combined.
例如,参考图14,假设音频接收端20接收到的声道的音频数据包括三路第一音频信号,前两路第一音频信号包括3ch的音频数据,最后一路第一音频信号包括2ch的音频数据,且该3ch中1ch的音频数据为拆分后的音频数据。则音频接收端20可以按照解码方式,根据第二音频总线的采样位宽,将各路第一音频信号中,前半个采样周期中的前16bit声道的音频数据,以及后半个采样周期中的前16bit声道的音频数据组合为三路第二音频信号。并且,将第一路和第二路第一音频信号中被拆分的声道的音频数据进行组合得到一路第二音频信号。For example, referring to Figure 14, it is assumed that the audio data of the channel received by the audio receiving terminal 20 includes three channels of first audio signals, the first two channels of first audio signals include 3ch audio data, and the last channel of first audio signals 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 channel in the first half of the sampling period and the audio data of the first half of the sampling period in each channel of the first audio signal according to the decoding mode and the sampling bit width of the second audio bus. The audio data of the first 16bit channels is combined into three second audio signals. In addition, the audio data of the split channels in the first audio signal and the second audio signal are combined to obtain a second audio signal.
在一些实施例中,音频接收端20可以将第一路第一音频信号中的ch0和ch1组合为一路第二音频信号,将第二路第一音频信号中的ch2和ch3组合为一路第二音频信号,将第三路第一音频信号中的ch4和ch5组合为一路第二音频信号。并将第一路第一音频信号中的ch6的低8bit和ch6的高8bit组合,将 第二路第一音频信号中的ch7的低8bit和ch7的高8bit组合,从而得到一路第二音频信号。In some embodiments, the audio receiving terminal 20 may combine ch0 and ch1 in the first audio signal of the first channel into a second audio signal, and combine ch2 and ch3 in the first audio signal of the second channel into a second audio signal. Audio signal, combining ch4 and ch5 in the third first audio signal into a second audio signal. Combine the low 8bit of ch6 and the high 8bit of ch6 in the first channel of the first audio signal, and combine the low 8bit of ch7 and the high 8bit of ch7 in the second channel of the first audio signal to obtain a second audio signal .
相应的,参考图14,即共解码得到四路第二音频信号,每路第二音频信号包括2ch的音频数据。假设ch0至ch7的音频数据分别为主声道音频数据,环绕声道音频数据、天空音声道音频数据、中置音音频数据和低音音频数据,则可以还原出主声道,环绕声道、天空音声道的数据、中置音数据和低音数据。Correspondingly, referring to FIG. 14, that is, a total of four channels of second audio signals are obtained by decoding, and each channel of second audio signals includes 2ch audio data. Assuming that the audio data of ch0 to ch7 are respectively the main channel audio data, surround channel audio data, sky sound channel audio data, center sound audio data and bass audio data, the main channel, surround channel, and sky can be restored Audio channel data, center sound data, and bass data.
在一些实施例中,若音频发送端10在对多个声道的音频数据进行编码时,编码方式为:在每个采样周期的前半个采样周期中的组合2个1ch的16bit的音频数据,以及在每个采样周期的后半个采样周期组合2个1ch的16bit的音频数据。则音频接收端20确定的解码方式即可以为:将每个采样周期内的前半个周期的2个1ch的16bit音频数据组合为一路第二音频信号;后半个周期的2个1ch的16bit的音频数据组合为一路第二音频信号。In some embodiments, if the audio sending end 10 encodes audio data of multiple channels, the encoding method is: a combination of two 1ch 16-bit audio data in the first half of each sampling period, And two 1ch 16bit audio data are combined in the second half of each sampling period. Then, the decoding method determined by the audio receiving terminal 20 can be: Combine two 1ch 16bit audio data in the first half of each sampling period into a second audio signal; 2 1ch 16bit audio data in the second half period The audio data is combined into a second audio signal.
在一些实施例中,如图15所示,假设音频接收端20接收到的声道的音频数据包括三路第一音频信号,每路第一音频信号包括4ch的音频数据。则参考图15,音频接收端20可以按照解码方式,将该三路第一音频信号包括的12ch的音频数据,按顺序两两组合为一路第二音频信号。In some embodiments, as shown in FIG. 15, it is assumed that the audio data of the channel received by the audio receiving terminal 20 includes three first audio signals, and each first audio signal includes 4ch audio data. Referring to FIG. 15, the audio receiving terminal 20 may combine the 12ch audio data included in the three channels of first audio signals in sequence to form one channel of second audio signals in a decoding manner.
在一些实施例中,音频接收端20可以将ch0和ch1组合为一路第二音频信号,将ch2和ch3组合为一路第二音频信号,将ch4和ch5组合为一路第二音频信号,将ch6和ch7组合为一路第二音频信号,将ch8和ch9组合为一路第二音频信号,将ch110和ch11组合为一路第二音频信号。相应的,参考图15,共解码得到六路第二音频信号,每路第二音频信号包括2ch的音频数据。In some embodiments, the audio receiving terminal 20 may combine ch0 and ch1 into a second audio signal, combine ch2 and ch3 into a second audio signal, combine ch4 and ch5 into a second audio signal, and combine ch6 and ch3 into a second audio signal. ch7 is combined into a second audio signal, ch8 and ch9 are combined into a second audio signal, and ch110 and ch11 are combined into a second audio signal. Correspondingly, referring to FIG. 15, a total of six channels of second audio signals are obtained by decoding, and each channel of second audio signals includes 2ch audio data.
需要说明的是,音频接收端20可以在接收多路第一音频信号的过程中,对 多路第一音频信号进行解码,即边收边拆。或者,音频接收端20可以在接收完多路第一音频信号时,对多路第一音频信号进行解码,即收完再拆。It should be noted that the audio receiving terminal 20 may decode the multiple channels of first audio signals in the process of receiving multiple channels of first audio signals, that is, receive and disassemble the multiple channels. Alternatively, the audio receiving terminal 20 may decode the multiple channels of first audio signals after receiving the multiple channels of first audio signals, that is, disassemble them after receiving them.
还需要说明的是,I2S包括单CLK控制,即多条第一音频总线L1共用一个CLK控制;I2S还包括多CLK控制,即各条第一音频总线L1分别用一个CLK控制。对于单CLK控制的I2S,优先采用边收边拆的方式进行解码;对于多CLK控制的I2S,优先采用收完再拆的方式进行解码。It should also be noted that I2S includes single CLK control, that is, multiple first audio buses L1 share one CLK control; I2S also includes multiple CLK control, that is, each first audio bus L1 is controlled by one CLK respectively. For I2S controlled by a single CLK, the decoding method is preferentially used for decoding while receiving and dismantling; for I2S controlled by multiple CLKs, the decoding method is preferentially used for receiving and dismantling.
对于收完再拆的解码方式,音频接收端20可以将接收到的多路第一音频信号缓存至其内部缓存器,等待多路第一音频信号传输完成后,音频接收端20可以初始化采集每路第一音频信号的第一位作为有效信号,然后再依次执行图12或图13所示的解码方式。For the decoding method of receiving and disassembling, the audio receiving terminal 20 can buffer the received multiple channels of first audio signals into its internal buffer, and after waiting for the completion of the multiple channels of first audio signal transmission, the audio receiving terminal 20 can initialize the acquisition The first bit of the first audio signal is used as a valid signal, and then the decoding method shown in Figure 12 or Figure 13 is executed in sequence.
对于音频接收端20,其也可以采用双沿采样的方式对接收到的声道的音频数据进行解码。参考图16,若音频接收端20接收到三路第一音频信号,每路第一音频信号包括4ch的音频数据。则参考图16,音频接收端20可以采用双沿采样的方式(即在BCLK的上升沿和下降沿均采集音频数据)对接收到的三路第一音频信号进行解码,得到六路第二音频信号。For the audio receiving terminal 20, it can also decode the received audio data of the channel by means of double-edge sampling. Referring to FIG. 16, if the audio receiving terminal 20 receives three channels of first audio signals, each channel of the first audio signals includes 4ch audio data. Referring to FIG. 16, the audio receiving terminal 20 can use a double-edge sampling method (that is, collecting audio data on both the rising and falling edges of BCLK) to decode the three received first audio signals to obtain six second audio signals .
需要说明的是,本申请实施例对音频接收端20的拆分组合方式也不做限定。It should be noted that the embodiment of the present application does not limit the splitting and combining manner of the audio receiving end 20 either.
步骤604、将每路第二音频信号通过对应的一条第二音频总线,传输至与第二音频总线连接的扬声器。Step 604: Transmit each second audio signal through a corresponding second audio bus to a speaker connected to the second audio bus.
在本申请实施例中,音频接收端20在解码得到多路第二音频信号后,可以通过第二音频总线L2将该多路第二音频信号传输至扬声器30中,实现多声道音效效果。在一些实施例中,音频接收端20可以将解码得到的多路第二音频信号先分别存储至多条第二音频总线L1上,最后,可以调整多条第二音频总线 L2将解码后的多路第二音频信号同时传输至扬声器30。In the embodiment of the present application, after the audio receiving terminal 20 obtains multiple channels of second audio signals through decoding, the multiple channels of second audio signals can be transmitted to the speaker 30 through the second audio bus L2 to achieve a multi-channel sound effect. In some embodiments, the audio receiving terminal 20 may store the decoded multiple second audio signals on the multiple second audio buses L1, and finally, the multiple second audio buses L2 may be adjusted to convert the decoded multiple The second audio signal is simultaneously transmitted to the speaker 30.
在一些实施例中,假设如图15所示,音频接收端20对接收到的多个声道的音频数据进行解码后,共得到六路第二音频信号。则音频接收端20可以通过对应的六条第二音频总线L2将每路第二音频信号同时传输至各个扬声器30。In some embodiments, it is assumed that as shown in FIG. 15, after the audio receiving end 20 decodes the received audio data of multiple channels, a total of six channels of second audio signals are obtained. Then, the audio receiving terminal 20 can simultaneously transmit each channel of second audio signals to each speaker 30 through the corresponding six second audio buses L2.
综上所述,本申请实施例提供了一种音频数据的传输方法。由于音频接收端接收到的多路第一音频信号中,至少一路第一音频信号包括的音频数据的声道数大于额定声道数。因此无需外接音响设备,音频接收端即可将较多声道的音频数据进行解码后传输至扬声器,实现多声道的播放效果。In summary, the embodiment of the present application provides a method for transmitting audio data. Since among the multiple channels of first audio signals received by the audio receiving end, the number of audio data channels included in at least one of the first audio signals is greater than the number of rated channels. Therefore, without external audio equipment, the audio receiving end can decode more channels of audio data and transmit it to the speakers to achieve multi-channel playback.
图17是本申请实施例提供的一种音频数据的传输方法流程图,该方法可以应用于图1所示的实施环境中。如图17所示,该方法可以包括:FIG. 17 is a flowchart of a method for transmitting audio data provided by an embodiment of the present application. The method can be applied to the implementation environment shown in FIG. 1. As shown in Figure 17, the method may include:
步骤701、获取多个声道的音频数据。Step 701: Acquire audio data of multiple channels.
上述获取过程可以参考步骤401,本申请实施例对此不作赘述。For the foregoing acquisition process, reference may be made to step 401, which is not described in detail in the embodiment of the present application.
步骤702、根据第一音频总线在每个采样周期内能够传输的音频数据的声道数阈值,对多个声道的音频数据进行编码,得到与多条第一音频总线一一对应的多路第一音频信号。Step 702: According to the threshold of the number of audio channels of the audio data that can be transmitted by the first audio bus in each sampling period, encode the audio data of the multiple channels to obtain the multiple channels corresponding to the multiple first audio buses. The first audio signal.
上述编码过程可以参考步骤402和步骤403,本申请实施例对此不作赘述。For the foregoing encoding process, reference may be made to step 402 and step 403, which are not described in detail in the embodiment of the present application.
步骤703、将每路第一音频信号,通过对应的一条第一音频总线传输至音频接收端。Step 703: Transmit each first audio signal to the audio receiving end through a corresponding first audio bus.
上述传输过程可以参考步骤404,本申请实施例对此不作赘述。For the foregoing transmission process, reference may be made to step 404, which is not described in detail in the embodiment of the present application.
步骤704、接收音频发送端通过多条第一音频总线发送的多路第一音频信号。Step 704: Receive multiple first audio signals sent by the audio sending end through multiple first audio buses.
上述接收过程可以参考步骤601,本申请实施例对此不作赘述。For the foregoing receiving process, reference may be made to step 601, which is not described in detail in the embodiment of the present application.
步骤705、根据第二音频总线的采样位宽,对多路第一音频信号包括的多个声道的音频数据进行拆分和组合,得到多路第二音频信号。Step 705: According to the sampling bit width of the second audio bus, split and combine audio data of multiple channels included in the multiple first audio signals to obtain multiple second audio signals.
上述解码过程可以参考步骤602和603,本申请实施例对此不作赘述。For the foregoing decoding process, reference may be made to steps 602 and 603, which are not repeated in this embodiment of the present application.
步骤706、将每路第二音频信号通过对应的一条第二音频总线,传输至与第二音频总线连接的扬声器。Step 706: Transmit each second audio signal through a corresponding second audio bus to the speaker connected to the second audio bus.
上述传输过程可以参考步骤604,本申请实施例对此不作赘述。For the foregoing transmission process, reference may be made to step 604, which is not described in detail in this embodiment of the present application.
下述为对编码方式和解码方式的整体数据处理流程进行介绍:The following is an introduction to the overall data processing flow of encoding and decoding methods:
图18是本申请实施例提供的一种数据处理流程图。参考图18可以看出,该音频发送端10的采样位宽为24bit,采样频率为48KHZ;该音频接收端20的采样位宽为16bit,采样频率为48KHZ,且该音频发送端10和音频接收端20的采样方式均为单沿采样(即均仅在BCLK的上升沿进行采样)。因此可知,该第一音频总线L1的声道数阈值即为3。Fig. 18 is a data processing flowchart provided by an embodiment of the present application. With reference to Figure 18, it can be seen that the sampling bit width of the audio transmitting terminal 10 is 24bit and the sampling frequency is 48KHZ; the sampling bit width of the audio receiving terminal 20 is 16bit and the sampling frequency is 48KHZ, and the audio transmitting terminal 10 and the audio receiving The sampling mode of the terminal 20 is single-edge sampling (that is, sampling is performed only on the rising edge of BCLK). Therefore, it can be seen that the threshold of the number of channels of the first audio bus L1 is 3.
相应的,参考图18,音频发送端10可以先将解码后的8ch的音频数据存储至缓存器Buffer中,然后通过预设算法,根据其声道数阈值3,以及采样位宽24bit对该8ch声道的音频数据进行编码操作得到三路第一音频信号,并将该三路第一音频信号通过三条第一音频总线L1传输至音频接收端20。音频接收端20可以根据其采样位宽16bit,对该三路第一音频信号进行解码共得到四路第二音频信号,每路第二音频信号包括2ch的音频数据。最后,音频接收端20可以将该四路第二音频信号通过对应的四条第二音频总线L2传输至四个AMP40,实现八声道的音频数据传输。Correspondingly, referring to FIG. 18, the audio sending end 10 may first store the decoded 8ch audio data in the buffer, and then use a preset algorithm to determine the 8ch according to its channel number threshold of 3 and the sampling bit width of 24bit. The audio data of the channel is encoded to obtain three first audio signals, and the three first audio signals are transmitted to the audio receiving terminal 20 through the three first audio buses L1. The audio receiving terminal 20 can decode the three first audio signals to obtain a total of four second audio signals according to the sampling bit width of 16 bits, and each second audio signal includes 2ch audio data. Finally, the audio receiving terminal 20 can transmit the four second audio signals to the four AMP40 through the corresponding four second audio buses L2 to realize eight-channel audio data transmission.
图19是本申请实施例提供的另一种数据处理流程图。参考图19可以看出,该音频发送端10和音频接收端20的采样位宽均为16bit,采样频率均为48KHZ, 且该音频发送端10的采样方式为双沿采样(即在BCLK的上升沿和下降沿均进行采样),音频接收端20的采样方式为单沿采样。因此可知,该第一音频总线L1的声道数阈值即为4。Fig. 19 is another data processing flowchart provided by an embodiment of the present application. With reference to Figure 19, it can be seen that the sampling bit width of the audio sending end 10 and the audio receiving end 20 are both 16 bits, the sampling frequency is both 48KHZ, and the sampling method of the audio sending end 10 is double-edge sampling (that is, at the rising of BCLK Both edge and falling edge are sampled), the sampling mode of the audio receiving terminal 20 is single-edge sampling. Therefore, it can be seen that the threshold of the number of channels of the first audio bus L1 is 4.
相应的,参考图19,音频发送端10将解码后的12ch的音频数据先存储至缓存器Buffer中,然后通过预设算法,对该8ch声道的音频数据进行编码操作得到三路第一音频信号,并将该三路第一音频信号通过三条第一音频总线L1传输至音频接收端20,每路第一音频信号包括4ch的音频数据。音频接收端20根据其采样位宽16bit,对该三路第一音频信号进行解码共得到六路第二音频信号,每路第二音频信号包括2ch的音频数据。最后,音频接收端20可以将该六路第二音频信号通过对应的六条第二音频总线L2传输至六个AMP 40,实现十二声道的音频数据传输。Correspondingly, referring to FIG. 19, the audio sending end 10 stores the decoded 12ch audio data in the buffer Buffer, and then uses a preset algorithm to encode the 8ch audio data to obtain three channels of first audio The three first audio signals are transmitted to the audio receiving terminal 20 through the three first audio buses L1, and each of the first audio signals includes 4ch audio data. The audio receiving terminal 20 decodes the three first audio signals according to the sampling bit width of 16 bits to obtain a total of six second audio signals, and each second audio signal includes 2ch audio data. Finally, the audio receiving terminal 20 can transmit the six second audio signals to the six AMPs 40 through the corresponding six second audio buses L2, so as to realize twelve-channel audio data transmission.
需要说明的是,本申请实施例提供的音频数据的传输方法的步骤的先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减。任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在申请的保护范围之内,因此不再赘述。It should be noted that the sequence of the steps of the audio data transmission method provided in the embodiments of the present application can be adjusted appropriately, and the steps can also be increased or decreased according to the situation. Any person familiar with the technical field can easily think of a method of change within the technical scope disclosed in this application, which should be covered by the protection scope of the application, and therefore will not be repeated.
综上所述,本申请实施例提供了一种音频数据的传输方法。由于音频发送端对获取到的多个声道的音频数据进行解码后,得到的多路第一音频信号中至少一路第一音频信号包括的音频数据的声道数大于额定声道数。且由于音频接收端可以对接收到的多路第一音频信号进行解码,得到多路音频信号,且每路第二音频信号包括的音频数据的声道数小于或等于额定声道数。因此无需外接音响,即可以实现较多声道音频数据的传输,进而实现多声道的播放效果。In summary, the embodiment of the present application provides a method for transmitting audio data. Since the audio sending end decodes the acquired audio data of the multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the rated number of channels. And because the audio receiving end can decode the received multiple channels of first audio signals to obtain multiple channels of audio signals, and the number of audio data channels included in each channel of the second audio signal is less than or equal to the rated channel number. Therefore, there is no need for an external speaker, which can realize the transmission of more channel audio data, and then realize the multi-channel playback effect.
图20是本申请实施例提供的一种音频数据的传输装置的框图,该装置可以 应用于图1所示的音频发送端10,参考图1,该音频发送端10可以通过多条第一音频总线L1与音频接收端20连接。参考图20,该装置可以包括:FIG. 20 is a block diagram of an audio data transmission device provided by an embodiment of the present application. The device may be applied to the audio sending end 10 shown in FIG. 1. Referring to FIG. 1, the audio sending end 10 may pass multiple first audio The bus L1 is connected to the audio receiving terminal 20. Referring to FIG. 20, the device may include:
获取电路801,用于获取多个声道的音频数据,每个声道的音频数据的数据位宽相同。The acquisition circuit 801 is used to acquire audio data of multiple channels, and the audio data of each channel has the same data bit width.
编码电路802,用于对多个声道的音频数据进行编码,得到与多条第一音频总线一一对应的多路第一音频信号,其中每路第一音频信号均包括至少一个声道的音频数据,且至少一路第一音频信号包括的音频数据的声道数大于额定声道数。The encoding circuit 802 is used to encode audio data of multiple channels to obtain multiple first audio signals corresponding to multiple first audio buses one-to-one, wherein each of the first audio signals includes at least one channel Audio data, and the number of channels of audio data included in at least one first audio signal is greater than the number of rated channels.
第一音频信号传输电路803,用于将每路第一音频信号,通过对应的一条第一音频总线传输至音频接收端。The first audio signal transmission circuit 803 is configured to transmit each channel of the first audio signal to the audio receiving end through a corresponding first audio bus.
在一些实施例中,该编码电路802可以用于:根据第一音频总线在每个采样周期内能够传输的音频数据的声道数阈值,对多个声道的音频数据进行编码,得到与多条第一音频总线一一对应的多路第一音频信号。In some embodiments, the encoding circuit 802 may be used to encode audio data of multiple channels according to the threshold of the number of channels of audio data that can be transmitted by the first audio bus in each sampling period, to obtain the Multiple first audio signals corresponding to one first audio bus.
其中,每路第一音频信号包括的音频数据的声道数小于或等于声道数阈值,声道数阈值根据数据位宽和第一音频总线的采样参数确定。Wherein, the number of audio channels of the 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 according to the data bit width and the sampling parameters of the first audio bus.
在一些实施例中,采样参数可以包括:采样位宽、采样频率和采样方式,采样方式可以包括单沿采样或双沿采样,声道数阈值可以等于额定声道数、第一比值、第二比值以及采样系数的乘积。In some embodiments, 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. The channel number threshold may be equal to the rated channel number, the first ratio, and the second The product of the ratio and the sampling coefficient.
其中,第一比值为采样位宽与数据位宽的比值,第二比值为采样频率与额定频率的比值,且第一比值和第二比值均大于或等于1。若采样方式为单沿采样,采样系数为1,若采样方式为双沿采样,采样系数为2。Wherein, 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, and if the sampling mode is double-edge sampling, the sampling coefficient is 2.
在一些实施例中,采样参数可以包括:采样位宽。相应的,编码电路802 即可以用于:若采样位宽为数据位宽的非整数倍,根据采样位宽,对目标声道的音频数据进行拆分,并将拆分得到的音频数据分别与其他声道的音频数据进行组合,组合后的音频数据的位宽为采样位宽。若采样位宽为数据位宽的整数倍,将至少两个声道的音频数据进行组合,组合后的音频数据的位宽为采样位宽。In some embodiments, the sampling parameter may include: sampling bit width. Correspondingly, the encoding circuit 802 can be used to: if the sampling bit width is a non-integer multiple of the data bit width, according to the sampling bit width, the audio data of the target channel is split, and the split audio data are respectively The audio data of other channels are combined, and 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.
在一些实施例中,在本申请实施例中,多个声道的音频数据可以包括:左声道音频数据,右声道音频数据,左环绕声道音频数据,右环绕声道音频数据,左天空声道音频数据,右天空声道音频数据,中置音声道音频数据和重低音声道音频数据。目标声道的音频数据可以包括:中置音声道音频数据和重低音声道音频数据中的至少一种。In some embodiments, in the embodiments of the present application, audio data of 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 center channel audio data and subwoofer channel audio data.
综上所述,本申请实施例提供了一种音频数据的传输装置。由于编码电路对获取到的多个声道的音频数据进行解码后,得到的多路第一音频信号中至少一路第一音频信号包括的音频数据的声道数大于额定声道数。因此无需外接音响设备,即可通过第一音频信号传输电路将更多声道的音频数据传输至音频接收端,使得音频接收端将更多声道的音频数据传输至扬声器,实现多声道的播放效果。In summary, the embodiment of the present application provides an audio data transmission device. Since the encoding circuit decodes the acquired audio data of multiple channels, the number of audio data channels included in at least one of the obtained multiple first audio signals is greater than the number of rated channels. Therefore, without external audio equipment, more channels of audio data can be transmitted to the audio receiving end through the first audio signal transmission circuit, so that the audio receiving end can transmit more channels of audio data to the speaker, realizing multi-channel audio Play effect.
关于上述实施例中的音频数据的传输装置,其中各个电路执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the audio data transmission device in the foregoing 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.
图21是本申请实施例提供的一种音频数据的传输装置的框图,该装置可以应用于图1所示的音频接收端20,参考图1,该音频接收端可以通过多条第一音频总线L1与音频发送端10连接,并通过多条第二音频总线L2与多个扬声器 30连接,且该第二音频总线L2的数量大于第一音频总线L1的数量。参考图21,该装置可以包括:FIG. 21 is a block diagram of an audio data transmission device provided by an embodiment of the present application. The device may be applied to the audio receiving terminal 20 shown in FIG. 1. Referring to FIG. 1, the audio receiving terminal may pass through multiple first audio buses. L1 is connected to the audio sending end 10 and connected to a plurality of speakers 30 through a plurality of second audio buses L2, and the number of the second audio buses L2 is greater than the number of the first audio buses L1. Referring to FIG. 21, the device may include:
接收电路901,用于接收音频发送端通过多条第一音频总线发送的多路第一音频信号,其中每路第一音频信号包括至少一个声道的音频数据,且至少一路第一音频信号包括的音频数据的声道数大于额定声道数。The receiving circuit 901 is configured to receive multiple first audio signals sent by the audio sending end through multiple first audio buses, wherein each first audio signal includes at least one channel of audio data, and at least one first audio signal includes The number of channels of audio data is greater than the number of rated channels.
解码电路902,用于按照与音频发送端采用的编码方式相对应的解码方式,对多路第一音频信号进行解码,得到与多条第二音频总线一一对应的多路第二音频信号,其中每路第二音频信号包括的音频数据的声道数小于或等于额定声道数。The decoding circuit 902 is configured to decode the multiple channels of first audio signals according to the decoding method corresponding to the encoding method adopted by the audio sending end to obtain multiple channels of second audio signals corresponding to multiple second audio buses one-to-one, The number of audio data channels included in each second audio signal is less than or equal to the rated number of channels.
第二音频信号传输电路903,用于将每路第二音频信号通过对应的一条第二音频总线,传输至与第二音频总线连接的扬声器。The second audio signal transmission circuit 903 is configured to transmit each second audio signal to a speaker connected to the second audio bus through a corresponding second audio bus.
在一些实施例中,解码电路902可以用于:根据第二音频总线的采样位宽,对多路第一音频信号包括的多个声道的音频数据进行拆分和组合,得到多路第二音频信号。其中,每路第二音频信号包括的每个声道的音频数据的数据位宽,均为第二音频总线的采样位宽。In some embodiments, the decoding circuit 902 may be used to: according to the sampling bit width of the second audio bus, split and combine audio data of multiple channels included in the multiple first audio signals to obtain multiple second audio data. audio signal. 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.
在一些实施例中,解码电路902可以用于:在接收多路第一音频信号的过程中,对多路第一音频信号进行解码。或者,在接收完多路第一音频信号时,对多路第一音频信号进行解码。In some embodiments, the decoding circuit 902 may be used to decode multiple channels of first audio signals in the process of receiving multiple channels of first audio signals. Or, when the multiple channels of first audio signals are received, the multiple channels of first audio signals are decoded.
综上所述,本申请实施例提供了一种音频数据的传输装置。由于解码电路接收到的多路第一音频信号中,至少一路第一音频信号包括的音频数据的声道数大于额定声道数。因此无需外接音响设备,解码电路即可将较多声道的音频数据进行解码后传输至扬声器,实现多声道的播放效果。In summary, the embodiment of the present application provides an audio data transmission device. Since among the multiple channels of first audio signals received by the decoding circuit, at least one channel of the first audio signal includes audio data channels greater than the rated channel number. Therefore, without external audio equipment, the decoding circuit can decode the audio data of more channels and transmit it to the speakers to achieve multi-channel playback.
关于上述实施例中的音频数据的传输装置,其中各个电路执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the audio data transmission device in the foregoing 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.
图22是本申请实施例提供的一种播放设备的结构示意图,该播放设备00可以包括:音频发送端10和音频接收端20(图22中未示出)。FIG. 22 is a schematic structural diagram of a playback device provided by an embodiment of the present application. The playback device 00 may include: an audio transmitting terminal 10 and an audio receiving terminal 20 (not shown in FIG. 22).
其中,该音频发送端10可以包括如图20所示的音频数据的传输装置。该音频接收端20可以包括如图21所示的音频数据的传输装置。并且,参考图22,该播放设备00还可以包括多个扬声器30,且发出不同声道音频数据的扬声器30可以设置在播放设备00的不同位置。Wherein, the audio sending end 10 may include an audio data transmission device as shown in FIG. 20. The audio receiving terminal 20 may include an audio data transmission device as shown in FIG. 21. In addition, referring to FIG. 22, the playback device 00 may further include multiple speakers 30, and the speakers 30 that emit audio data of different channels may be arranged at different positions of the playback device 00.
例如,参考图22,其示出的播放设备00共包括8个扬声器30,该8个扬声器30可以分别发出左声道音频数据,右声道音频数据,左环绕声道音频数据,右环绕声道音频数据,左天空声道音频数据,右天空声道音频数据,中置音声道音频数据和重低音声道音频数据。其中,发出左声道音频数据和右声道音频数据的2个扬声器30可以相对设置在播放设备00的左右两侧。发出左天空声道音频数据和右天空声道音频数据的2个扬声器30可以分别设置在播放设备30的顶部。发出左环绕声道音频数据、右环绕声道音频数据和重低音声道数据的3个扬声器30可以分别设置在播放设备30的底部位置。且发出中置音声道音频数据的1个扬声器30可以设置在播放设备30的中部位置。For example, referring to FIG. 22, it shows that the playback device 00 includes 8 speakers 30. The 8 speakers 30 can respectively emit left channel audio data, right channel audio data, left surround channel audio data, and right surround sound. Channel audio data, left sky channel audio data, right sky channel audio data, center channel audio data and subwoofer channel audio data. Among them, the two speakers 30 that emit left-channel audio data and right-channel audio data may be relatively disposed on the left and right sides of the playback device 00. Two speakers 30 that emit left sky channel audio data and right sky channel audio data may be respectively arranged on the top of the playback device 30. Three speakers 30 that emit left surround channel audio data, right surround channel audio data, and subwoofer channel data may be respectively arranged at the bottom position of the playback device 30. In addition, a speaker 30 that emits audio data of the center sound channel may be arranged in the middle of the playback device 30.
图23是本申请实施例一提供的显示装置示意图,参考图23,本申请还提供一种显示装置,至少包括:显示屏91,被配置为呈现图像数据;扬声器92,被配置为再现声音数据。FIG. 23 is a schematic diagram of a display device provided in Embodiment 1 of the present application. Referring to FIG. 23, the present application also provides a display device, which at least includes: a display screen 91 configured to present image data; and a speaker 92 configured to reproduce sound data .
在一些实施示例中,显示装置还可以包括:背光组件94,背光组件94位于显示屏91下方。通常是一些光学组件,用于供应充足的亮度与分布均匀的光 源,使显示屏91能正常显示影像。在一些相关技术中,背光组件可以包括LED灯条,还可以包括自动发光的灯板。In some implementation examples, the display device may further include: a backlight assembly 94 located below the display screen 91. Usually some optical components are used to supply sufficient brightness and uniformly distributed light sources so that the display screen 91 can display images normally. In some related technologies, the backlight assembly may include an LED light bar or a light panel that automatically emits light.
在一些实施例中,显示装置还可以包括:背板95,通常背板95上面冲压形成一些凸包结构,扬声器92等器件,通过螺钉或者挂钩固定在凸包上。In some embodiments, the display device may further include: a back plate 95. Usually, the back plate 95 is stamped to form some convex structures, and components such as speakers 92 are fixed on the convex structures by screws or hooks.
在一些实施例中,显示装置还可以包括:后壳98,其盖设在显示屏91的背面上,以隐藏背光组件94,扬声器92等显示装置的零部件,起到美观的效果。In some embodiments, the display device may further include: a rear case 98 covering the back of the display screen 91 to hide components of the display device such as the backlight assembly 94, the speaker 92, etc., to achieve a beautiful effect.
在一些实施例中,显示装置还可以包括:主板96和电源板97,他们可以独立成两块板子设置,也可以是合并在一块板子上。In some embodiments, the display device may further include: a main board 96 and a power supply board 97, which may be arranged as two boards independently, or may be combined on one board.
在一些实施例中,显示装置还包括遥控器93。In some embodiments, the display device further includes a remote control 93.
图24是本申请实施例一提供的显示装置的硬件配置框图。如20所示,显示装置200中可以包括调谐解调器220、通信器230、检测器240、外部装置接口250、控制器210、存储器290、用户输入接口、视频处理器260-1、音频处理器260-2、显示屏280、音频输入接口272、供电电源。FIG. 24 is a block diagram of the hardware configuration of the display device provided in Embodiment 1 of the present application. As shown in 20, the display device 200 may include a tuner and demodulator 220, a communicator 230, a detector 240, an external device interface 250, a controller 210, a memory 290, a user input interface, a video processor 260-1, and audio processing. 260-2, display screen 280, audio input interface 272, power supply.
调谐解调器220,通过有线或无线方式接收广播电视信号,可以进行放大、混频和谐振等调制解调处理,用于从多个无线或有线广播电视信号中解调出用户所选择电视频道的频率中所携带的音视频信号,以及附加信息(例如EPG数据信号)。The tuner and demodulator 220, which receives broadcast and television signals through wired or wireless means, can perform modulation and demodulation processing such as amplification, mixing and resonance, and is used to demodulate the television channel selected by the user from multiple wireless or cable broadcast and television signals The audio and video signals carried in the frequency, and additional information (such as EPG data signals).
调谐解调器220,可根据用户选择,以及由控制器210控制,响应用户选择的电视频道频率以及该频率所携带的电视信号。The tuner and demodulator 220 can be selected by the user and controlled by the controller 210 to respond to the TV channel frequency selected by the user and the TV signal carried by the frequency.
调谐解调器220,根据电视信号广播制式不同,可以接收信号的途径有很多种,诸如:地面广播、有线广播、卫星广播或互联网广播等;以及根据调制 类型不同,可以数字调制方式,也可以模拟调制方式;以及根据接收电视信号种类不同,可以解调模拟信号和数字信号。The tuner and demodulator 220 can receive signals in many ways according to different TV signal broadcasting systems, such as terrestrial broadcasting, cable broadcasting, satellite broadcasting, or Internet broadcasting; and according to different modulation types, it can be digital modulation or alternatively. Analog modulation method; and according to different types of received TV signals, analog and digital signals can be demodulated.
在其他一些示例性实施例中,调谐解调器220也可在外置设备中,如外置机顶盒等。这样,机顶盒通过调制解调后输出电视音视频信号,经过输入/输出接口250输入至显示装置200中。In some other exemplary embodiments, the tuner demodulator 220 may also be in an external device, such as an external set-top box. In this way, the set-top box outputs TV audio and video signals through modulation and demodulation, and inputs them to the display device 200 through the input/output interface 250.
通信器230是用于根据各种通信协议类型与外部设备或外部服务器进行通信的组件。例如:通信器230可以包括WIFI模块231,蓝牙通信协议模块232,有线以太网通信协议模块233等其他网络通信协议模块或近场通信协议模块。The communicator 230 is a component for communicating with external devices or external servers according to various communication protocol types. For example, the communicator 230 may include a WIFI module 231, a Bluetooth communication protocol module 232, a wired Ethernet communication protocol module 233 and other network communication protocol modules or near field communication protocol modules.
显示装置200可以通过通信器230与外部控制设备或内容提供设备之间建立控制信号和数据信号的连接。例如,通信器可根据控制器的控制接收遥控器100的控制信号。The display apparatus 200 may establish a connection between a control signal and a data signal with an external control device or content providing device through the communicator 230. For example, the communicator may receive the control signal of the remote controller 100 according to the control of the controller.
检测器240,是显示装置200用于采集外部环境或与外部交互的信号的组件。检测器240可以包括光接收器242,用于采集环境光线强度的传感器,可以通过采集环境光来自适应显示参数变化等;还可以包括图像采集器241,如相机、摄像头等,可以用于采集外部环境场景,以及用于采集用户的属性或与用户交互手势,可以自适应变化显示参数,也可以识别用户手势,以实现与用户之间互动的功能。The detector 240 is a component of the display device 200 for collecting signals from the external environment or interacting with the outside. The detector 240 may include a light receiver 242, a sensor used to collect the intensity of ambient light, which can adaptively display parameter changes by collecting ambient light, etc.; it may also include an image collector 241, such as a camera, a camera, etc., which can be used to collect external Environmental scenes, as well as gestures used to collect user attributes or interact with users, can adaptively change display parameters, and can also recognize user gestures to achieve the function of interaction with users.
在其他一些示例性实施例中,检测器240,还可包括温度传感器,如通过感测环境温度,显示装置200可自适应调整图像的显示色温。In some other exemplary embodiments, the detector 240 may further include a temperature sensor. For example, by sensing the ambient temperature, the display device 200 may adaptively adjust the display color temperature of the image.
在一些实施例中,当温度偏高的环境时,可调整显示装置200显示图像色温偏冷色调;当温度偏低的环境时,可以调整显示装置200显示图像色温偏暖色调。In some embodiments, when the temperature is relatively high, the color temperature of the display device 200 can be adjusted to be colder; when the temperature is relatively low, the color temperature of the display device 200 can be adjusted to be warmer.
在其他一些示例性实施例中,检测器240还可包括声音采集器,如麦克风,可以用于接收用户的声音,包括用户控制显示装置200的控制指令的语音信号,或采集环境声音,用于识别环境场景类型,显示装置200可以自适应环境噪声。In some other exemplary embodiments, the detector 240 may also include a sound collector, such as a microphone, which may be used to receive the user's voice, including the voice signal of the user's control instruction for controlling the display device 200, or to collect environmental sound for Recognizing the environmental scene type, the display device 200 can adapt to the environmental noise.
外部装置接口250,提供控制器210控制显示装置200与外部其他设备间数据传输的组件。外部装置接口可按照有线/无线方式与诸如机顶盒、游戏装置、笔记本电脑等的外部设备连接,可接收外部设备的诸如视频信号(例如运动图像)、音频信号(例如音乐)、附加信息(例如EPG)等数据。The external device interface 250 provides a component for the controller 210 to control data transmission between the display device 200 and other external devices. The external device interface can be connected to external devices such as set-top boxes, game devices, notebook computers, etc. in a wired/wireless manner, and can receive external devices such as video signals (such as moving images), audio signals (such as music), and additional information (such as EPG). ) And other data.
其中,外部装置接口250可以包括:高清多媒体接口(HDMI)端子251、复合视频消隐同步(CVBS)端子252、模拟或数字分量端子253、通用串行总线(USB)端子254、红绿蓝(RGB)端子(图中未示出)等任一个或多个。Among them, the external device interface 250 may include: a high-definition multimedia interface (HDMI) terminal 251, a composite video blanking synchronization (CVBS) terminal 252, an analog or digital component terminal 253, a universal serial bus (USB) terminal 254, red, green, and blue ( RGB) terminal (not shown in the figure) and any one or more.
控制器210,通过运行存储在存储器290上的各种软件控制程序(如操作系统和各种应用程序),来控制显示装置200的工作和响应用户的操作。The controller 210 controls the operation of the display device 200 and responds to user operations by running various software control programs (such as an operating system and various application programs) stored on the memory 290.
如图24所示,控制器210包括随机存取存储器RAM213、只读存储器ROM214、图形处理器216、CPU处理器212、通信接口218、以及通信总线。其中,RAM213和ROM214以及图形处理器216、CPU处理器212、通信接口218通过总线相连接。As shown in FIG. 24, the controller 210 includes a random access memory RAM 213, a read only memory ROM 214, a graphics processor 216, a CPU processor 212, a communication interface 218, and a communication bus. Among them, RAM213 and ROM214, graphics processor 216, CPU processor 212, and communication interface 218 are connected by a bus.
ROM213,用于存储各种系统启动的指令。如在收到开机信号时,显示装置200电源开始启动,CPU处理器212运行ROM中系统启动指令,将存储在存储器290的操作系统拷贝至RAM214中,以开始运行启动操作系统。当操作系统启动完成后,CPU处理器212再将存储器290中各种应用程序拷贝至RAM214中,然后,开始运行启动各种应用程序。ROM213, used to store various system startup instructions. For example, when the power-on signal is received, the power of the display device 200 starts to start, and the CPU processor 212 runs the system start-up instruction in the ROM, and copies the operating system stored in the memory 290 to the RAM 214 to start the operating system. After the operating system is started up, the CPU processor 212 copies various application programs in the memory 290 to the RAM 214, and then starts to run and start various application programs.
图形处理器216,用于产生各种图形对象,如:图标、操作菜单、以及用 户输入指令显示图形等。包括运算器,通过接收用户输入各种交互指令进行运算,根据显示属性显示各种对象。以及包括渲染器,产生基于运算器得到的各种对象,进行渲染的结果显示在显示屏280上。The graphics processor 216 is used to generate various graphics objects, such as icons, operation menus, and user input instructions to display graphics. Including an arithmetic unit, which performs operations by receiving various interactive commands input by the user, and displays various objects according to display attributes. As well as including a renderer, various objects obtained based on the arithmetic unit are generated, and the rendering result is displayed on the display screen 280.
CPU处理器212,用于执行存储在存储器290中操作系统和应用程序指令。以及根据接收外部输入的各种交互指令,来执行各种应用程序、数据和内容,以便最终显示和播放各种音视频内容。The CPU processor 212 is configured to execute operating system and application program instructions stored in the memory 290. And according to receiving various interactive instructions input from the outside, to execute various applications, data and content, so as to finally display and play various audio and video content.
在一些示例性实施例中,CPU处理器212,可以包括多个处理器。多个处理器可包括一个主处理器以及多个或一个子处理器。主处理器,用于在预加电模式中执行显示装置200一些操作,和/或在正常模式下显示画面的操作。多个或一个子处理器,用于执行在待机模式等状态下的一种操作。In some exemplary embodiments, the CPU processor 212 may include multiple processors. The multiple processors may include one main processor and multiple or one sub-processors. The main processor is used to perform some operations of the display device 200 in the pre-power-on mode, and/or to display images in the normal mode. Multiple or one sub-processor, used to perform an operation in the standby mode and other states.
通信接口,可包括第一接口218-1到第n接口218-n。这些接口可以是经由网络被连接到外部设备的网络接口。The communication interface may include the first interface 218-1 to the nth interface 218-n. These interfaces may be network interfaces connected to external devices via a network.
控制器210可以控制显示装置200的整体操作。例如:响应于接收到用于选择在显示屏280上显示UI对象的用户命令,控制器210便可以执行与由用户命令选择的对象有关的操作。The controller 210 may control the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display screen 280, the controller 210 may perform an operation related to the object selected by the user command.
其中,所述对象可以是可选对象中的任何一个,例如超链接或图标。与所选择的对象有关操作,例如:显示连接到超链接页面、文档、图像等操作,或者执行与图标相对应程序的操作。用于选择UI对象用户命令,可以是通过连接到显示装置200的各种输入装置(例如,鼠标、键盘、触摸板等)输入命令或者与由用户说出语音相对应的语音命令。Wherein, the object may be any one of the selectable objects, such as a hyperlink or an icon. Operations related to the selected object, for example: display operations connected to hyperlink pages, documents, images, etc., or perform operations corresponding to the icon. The user command for selecting the UI object may be a command input through various input devices (for example, a mouse, a keyboard, a touch pad, etc.) connected to the display device 200 or a voice command corresponding to a voice spoken by the user.
存储器290,包括存储用于驱动和控制显示装置200的各种软件模块。如:存储器290中存储的各种软件模块,包括:基础模块、检测模块、通信模块、 显示控制模块、浏览器模块、和各种服务模块等。The memory 290 includes storing various software modules used to drive and control the display device 200. For example, various software modules stored in the memory 290 include: a basic module, a detection module, a communication module, a display control module, a browser module, and various service modules.
其中,基础模块是用于显示装置200中各个硬件之间信号通信、并向上层模块发送处理和控制信号的底层软件模块。检测模块是用于从各种传感器或用户输入接口中收集各种信息,并进行数模转换以及分析管理的管理模块。Among them, the basic module is the underlying software module used for signal communication between various hardware in the display device 200 and sending processing and control signals to the upper module. The detection module is a management module used to collect various information from various sensors or user input interfaces, and perform digital-to-analog conversion and analysis management.
例如:语音识别模块中包括语音解析模块和语音指令数据库模块。显示控制模块是用于控制显示屏280进行显示图像内容的模块,可以用于播放多媒体图像内容和UI界面等信息。通信模块,是用于与外部设备之间进行控制和数据通信的模块。浏览器模块,是用于执行浏览服务器之间数据通信的模块。服务模块,是用于提供各种服务以及各类应用程序在内的模块。For example: the voice recognition module includes a voice analysis module and a voice command database module. The display control module is a module for controlling the display screen 280 to display image content, and can be used to play information such as multimedia image content and UI interfaces. The communication module is a module used for control and data communication with external devices. The browser module is a module used to perform data communication between browsing servers. The service module is a module used to provide various services and various applications.
同时,存储器290还用于存储接收外部数据和用户数据、各种用户界面中各个项目的图像以及焦点对象的视觉效果图等。At the same time, the memory 290 is also used to store and receive external data and user data, images of various items in various user interfaces, and visual effect diagrams of focus objects.
用户输入接口276,用于将用户的输入信号发送给控制器210,或者,将从控制器输出的信号传送给用户。在一些实施例中,控制装置(例如移动终端或遥控器)可将用户输入的诸如电源开关信号、频道选择信号、音量调节信号等输入信号发送至用户输入接口,再由用户输入接口276转送至控制器;或者,控制装置可接收经控制器处理从用户输入接口输出的音频、视频或数据等输出信号,并且显示接收的输出信号或将接收的输出信号输出为音频或振动形式。The user input interface 276 is used to send a user's input signal to the controller 210, or to transmit a signal output from the controller to the user. In some embodiments, the control device (for example, a mobile terminal or a remote control) can send input signals input by the user, such as a power switch signal, a channel selection signal, and a volume adjustment signal, to the user input interface, and then the user input interface 276 forwards it to the user input interface. Controller; or, the control device may receive output signals such as audio, video or data output from the user input interface processed by the controller, and display the received output signal or output the received output signal as audio or vibration.
在一些实施例中,用户可在显示屏280上显示的图形用户界面(GUI)输入用户命令,则用户输入接口通过图形用户界面(GUI)接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户输入接口通过传感器识别出声音或手势,来接收用户输入命令。In some embodiments, the user may input a user command on a graphical user interface (GUI) displayed on the display screen 280, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
视频处理器260-1,用于接收视频信号,根据输入信号的标准编解码协议, 进行解压缩、解码、缩放、降噪、帧率转换、分辨率转换、图像合成等视频数据处理,可得到直接在显示屏280上显示或播放的视频信号。The video processor 260-1 is used to receive video signals, and perform video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to the standard codec protocol of the input signal. The video signal directly displayed or played on the display screen 280.
在一些实施例中,视频处理器260-1,包括解复用模块、视频解码模块、图像合成模块、帧率转换模块、显示格式化模块等。In some embodiments, the video processor 260-1 includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, and the like.
其中,解复用模块,用于对输入音视频数据流进行解复用处理,如输入MPEG-2,则解复用模块进行解复用成视频信号和音频信号等。Among them, the demultiplexing module is used to demultiplex the input audio and video data stream. For example, if MPEG-2 is input, the demultiplexing module will demultiplex into a video signal and an audio signal.
视频解码模块,用于对解复用后的视频信号进行处理,包括解码和缩放处理等。The video decoding module is used to process the demultiplexed video signal, including decoding and scaling.
图像合成模块,如图像合成器,其用于将图形生成器根据用户输入或自身生成的GUI信号,与缩放处理后视频图像进行叠加混合处理,以生成可供显示的图像信号。An image synthesis module, such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator with the zoomed video image according to user input or itself to generate an image signal for display.
帧率转换模块,用于对输入视频的帧率进行转换,如将输入的24Hz、25Hz、30Hz、60Hz视频的帧率转换为60Hz、120Hz或240Hz的帧率,其中,输入帧率可以与源视频流有关,输出帧率可以与显示屏的更新率有关。输入有通常的格式采用如插帧方式实现。Frame rate conversion module, used to convert the frame rate of the input video, such as converting the frame rate of the input 24Hz, 25Hz, 30Hz, 60Hz video to the frame rate of 60Hz, 120Hz or 240Hz, where the input frame rate can be compared with the source The video stream is related, and the output frame rate can be related to the update rate of the display. The input has a usual format, such as frame insertion.
显示格式化模块,用于将帧率转换模块输出的信号,改变为符合诸如显示器显示格式的信号,如将帧率转换模块输出的信号进行格式转换以输出RGB数据信号。The display formatting module is used to change the signal output by the frame rate conversion module into a signal that conforms to a display format such as a display, such as format conversion of the signal output by the frame rate conversion module to output RGB data signals.
显示屏280,用于接收源自视频处理器260-1输入的图像信号,进行显示视频内容和图像以及菜单操控界面。显示屏280包括用于呈现画面的显示屏组件以及驱动图像显示的驱动组件。显示视频内容,可以来自调谐解调器220接收的广播信号中的视频,也可以来自通信器或外部设备接口输入的视频内容。 显示屏280,同时显示显示装置200中产生且用于控制显示装置200的用户操控界面UI。The display screen 280 is used to receive image signals input from the video processor 260-1, to display video content and images, and a menu control interface. The display screen 280 includes a display screen component for presenting a picture and a driving component for driving image display. The displayed video content can be from the video in the broadcast signal received by the tuner and demodulator 220, or from the video content input by the communicator or the external device interface. The display screen 280 simultaneously displays a user manipulation interface UI generated in the display device 200 and used for controlling the display device 200.
以及,根据显示屏280类型不同,还包括用于驱动显示的驱动组件。或者,倘若显示屏280为一种投影显示器,还可以包括一种投影装置和投影屏幕。And, depending on the type of the display screen 280, a driving component for driving the display is also included. Alternatively, if the display screen 280 is a projection display, it may also include a projection device and a projection screen.
音频处理器260-2,用于接收音频信号,根据输入信号的标准编解码协议,进行解压缩和解码,以及降噪、数模转换、和放大处理等音频数据处理,得到可以在扬声器272中播放的音频信号。The audio processor 260-2 is used to receive audio signals, and perform decompression and decoding according to the standard codec protocol of the input signal, as well as audio data processing such as noise reduction, digital-to-analog conversion, and amplification processing, and the result can be in the speaker 272 The audio signal to be played.
音频输出接口270,用于在控制器210的控制下接收音频处理器260-2输出的音频信号,音频输出接口可包括扬声器272,或输出至外接设备的发生装置的外接音响输出端子274,如:外接音响端子或耳机输出端子等。The audio output interface 270 is used to receive the audio signal output by the audio processor 260-2 under the control of the controller 210. The audio output interface may include a speaker 272 or output to an external audio output terminal 274 of a generator of an external device, such as : External audio terminal or headphone output terminal, etc.
在其他一些示例性实施例中,视频处理器260-1可以包括一个或多个芯片组成。音频处理器260-2,也可以包括一个或多个芯片组成。In some other exemplary embodiments, the video processor 260-1 may include one or more chips. The audio processor 260-2 may also include one or more chips.
以及,在其他一些示例性实施例中,视频处理器260-1和音频处理器260-2,可以为单独的芯片,也可以与控制器210一起集成在一个或多个芯片中。And, in some other exemplary embodiments, the video processor 260-1 and the audio processor 260-2 may be separate chips, or they may be integrated with the controller 210 in one or more chips.
供电电源275,用于在控制器210控制下,将外部电源输入的电力为显示装置200提供电源供电支持。供电电源275可以包括安装显示装置200内部的内置电源电路,也可以是安装在显示装置200外部的电源,如在显示装置200中提供外接电源的电源接口。The power supply 275 is used to provide power supply support for the display device 200 with power input from an external power supply under the control of the controller 210. The power supply 275 may include a built-in power circuit installed inside the display device 200, or may be a power supply installed outside the display device 200, such as a power interface for providing an external power supply in the display device 200.
本申请提供一种显示装置,包括:This application provides a display device, including:
显示屏,被配置为呈现图像画面;The display screen is configured to present an image screen;
扬声器,被配置为再现声音;The speaker is configured to reproduce sound;
音频处理器,被配置为获取多个声道的音频数据;An audio processor configured to obtain audio data of multiple channels;
控制器,被配置为对所述多个声道的音频数据进行编码,得到多路第一音频信号;A controller configured to encode the audio data of the multiple channels to obtain multiple first audio signals;
其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;Wherein each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data with a number of channels greater than a rated channel number;
在一些实施例中,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;In some embodiments, the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
在一些实施例中,,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;In some embodiments, the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
在一些实施例中,,采样位宽、采样频率和采样方式,所述采样方式包括单沿采样或双沿采样;In some embodiments, the sampling bit width, sampling frequency, and sampling mode, the sampling mode includes single-edge sampling or dual-edge sampling;
所述声道数阈值等于所述额定声道数与第一比值、第二比值以及采样系数中的至少一个参数的乘积;The threshold of the number of channels is equal to a product of the rated number of channels and at least one of the first ratio, the second ratio, and the sampling coefficient;
其中,所述第一比值为所述采样位宽与所述数据位宽的比值,所述第二比值为所述采样频率与额定频率的比值,且所述第一比值和所述第二比值均大于或等于1;Wherein, 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 Are greater than or equal to 1;
若所述采样方式为单沿采样,所述采样系数为1,若所述采样方式为双沿采样,所述采样系数为2。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.
在一些实施例中,若所述采样位宽为所述数据位宽的非整数倍,根据所述采样位宽,对目标声道的音频数据进行拆分,并将拆分得到的音频数据分别与其他声道的音频数据进行组合,组合后的音频数据的位宽为所述采样位宽;In some embodiments, if the sampling bit width is a non-integer multiple of the data bit width, the audio data of the target channel is split according to the sampling bit width, and the audio data obtained by the split is separately Combine with audio data of other channels, and 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 of the channels are combined, and the bit width of the combined audio data is the sampling bit width.
在一些实施例中,所述多个声道的音频数据包括:左声道音频数据,右声道音频数据,左环绕声道音频数据,右环绕声道音频数据,左天空声道音频数据,右天空声道音频数据,中置音声道音频数据和重低音声道音频数据;In some embodiments, the audio data of the multiple channels includes: 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 audio channel audio data and subwoofer channel audio data;
所述目标声道的音频数据包括:所述中置音声道音频数据和所述重低音声道音频数据中的至少一种。The audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
本申请还提供一种显示装置,包括:The application also provides a display device, including:
显示屏,被配置为呈现图像画面;The display screen is configured to present an image screen;
扬声器,被配置为再现声音;The speaker is configured to reproduce sound;
音频处理器,被配置为接收多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;The audio processor is configured to receive multiple channels of first audio signals, where each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data More than the number of rated channels;
控制器,被配置为对所述多路第一音频信号进行解码,得到多路第二音频信号,并传输给所述扬声器;A controller configured to decode the multiple channels of first audio signals to obtain multiple channels of second audio signals, and transmit them to the speaker;
其中每路所述第二音频信号包括的音频数据的声道数小于或等于额定声道数;Wherein, the number of audio data channels included in each second audio signal is less than or equal to the rated number of channels;
将每路所述第二音频信号传输至所述扬声器。Transmitting each channel of the second audio signal to the speaker.
在一些实施例中,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;In some embodiments, the controller is configured to encode the audio data of the multiple channels according to the threshold value of the number of audio channels of the audio data that can be transmitted in each sampling period to obtain multiple first audio signals;
其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
具体的实现方式参考上述的实施例介绍,这里不再赘述。The specific implementation manner is introduced with reference to the foregoing embodiment, and details are not described herein again.
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该计算机可读存储介质在计算机上运行时,可以使得该计算机执行如图1或图4所示的音频数据的传输方法,以及执行如图12或和图13所示的音频数据的传输方法。The embodiment of the present application provides a computer-readable storage medium that stores instructions in the computer-readable storage medium. When the computer-readable storage medium runs on a computer, the computer can execute the steps shown in FIG. 1 or FIG. 4 The audio data transmission method shown in Figure 12 or Figure 13 is executed.
本申请实施例提供了一种移动终端,包括存储器,处理器及存储在该存储器上并可在处理器上运行的计算机程序,该处理器执行该计算机程序时,可以实现如图1或图4所示的音频数据的传输方法,以及实现如图12或和图13所示的音频数据的传输方法。The embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it can be implemented as shown in Figure 1 or Figure 4 The audio data transmission method shown, and the audio data transmission method shown in FIG. 12 or and FIG. 13 are realized.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的音频数据的传输装置和播放设备的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the audio data transmission device and playback device described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. .
以上所述仅为本申请的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only examples of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of this application shall be included in the scope of protection of this application. Inside.

Claims (19)

  1. 一种音频数据的传输方法,其特征在于,应用于音频发送端,所述音频发送端通过多条第一音频总线与音频接收端连接,所述方法包括:An audio data transmission method, characterized in that it is applied to an audio sending end, the audio sending end is connected to an audio receiving end through a plurality of first audio buses, and the method includes:
    获取多个声道的音频数据,每个声道的音频数据的数据位宽相同;Acquire audio data of multiple channels, and the audio data of each channel has the same data bit width;
    对所述多个声道的音频数据进行编码,得到与所述多条第一音频总线对应的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;Encoding the audio data of the multiple channels to obtain multiple first audio signals corresponding to the multiple first audio buses, wherein each of the first audio signals includes at least one channel of audio data, And the number of audio data channels included in at least one of the first audio signals is greater than the rated number of channels;
    将每路所述第一音频信号,通过对应的一条所述第一音频总线传输至所述音频接收端。Each channel of the first audio signal is transmitted to the audio receiving end through a corresponding one of the first audio bus.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述多个声道的音频数据进行编码,包括:The method according to claim 1, wherein said encoding audio data of said multiple channels comprises:
    根据所述第一音频总线在每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到与所述多条第一音频总线对应的多路第一音频信号;According to the threshold value of the number of audio channels of the audio data that can be transmitted by the first audio bus in each sampling period, the audio data of the multiple channels are encoded to obtain multiple audio data corresponding to the multiple first audio buses. First audio signal;
    其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值,所述声道数阈值根据所述数据位宽和所述第一音频总线的采样参数确定。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels, and the threshold of the number of channels is based on the data bit width and the sampling parameters of the first audio bus determine.
  3. 根据权利要求2所述的方法,其特征在于,所述采样参数包括:采样位宽、采样频率和采样方式,所述采样方式包括单沿采样或双沿采样;The method according to claim 2, 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;
    所述声道数阈值等于所述额定声道数与第一比值、第二比值以及采样系数中的至少一个参数的乘积;The threshold of the number of channels is equal to a product of the rated number of channels and at least one of the first ratio, the second ratio, and the sampling coefficient;
    其中,所述第一比值为所述采样位宽与所述数据位宽的比值,所述第二比 值为所述采样频率与额定频率的比值,且所述第一比值和所述第二比值均大于或等于1;若所述采样方式为单沿采样,所述采样系数为1,若所述采样方式为双沿采样,所述采样系数为2。Wherein, 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 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.
  4. 根据权利要求2或3所述的方法,其特征在于,所述采样参数包括:采样位宽,所述对所述多个声道的音频数据进行编码,包括:The method according to claim 2 or 3, wherein the sampling parameter comprises: a sampling bit width, and the encoding of audio data of the multiple channels comprises:
    若所述采样位宽为所述数据位宽的非整数倍,根据所述采样位宽,对目标声道的音频数据进行拆分,并将拆分得到的音频数据分别与其他声道的音频数据进行组合,组合后的音频数据的位宽为所述采样位宽;If the sampling bit width is a non-integer multiple of the data bit width, the audio data of the target channel is split according to the sampling bit width, and the split audio data is separated from the audio data of other channels. The data is combined, and 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 of the channels are combined, and the bit width of the combined audio data is the sampling bit width.
  5. 根据权利要求4所述的方法,其特征在于,所述多个声道的音频数据包括:左声道音频数据,右声道音频数据,左环绕声道音频数据,右环绕声道音频数据,左天空声道音频数据,右天空声道音频数据,中置音声道音频数据和重低音声道音频数据;The method of claim 4, wherein the audio data of the multiple channels comprises: 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 sound channel audio data and subwoofer channel audio data;
    所述目标声道的音频数据包括:所述中置音声道音频数据和所述重低音声道音频数据中的至少一种。The audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
  6. 一种音频数据的传输方法,其特征在于,应用于音频接收端,所述音频接收端通过多条第一音频总线与音频发送端连接,并通过多条第二音频总线与多个扬声器连接,所述第二音频总线的数量大于所述第一音频总线的数量,所述方法包括:An audio data transmission method, characterized in that it is applied to an audio receiving end, the audio receiving end is connected to an audio sending end through multiple first audio buses, and is connected to multiple speakers through multiple second audio buses, The number of the second audio buses is greater than the number of the first audio buses, and the method includes:
    接收所述音频发送端通过所述多条第一音频总线发送的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第 一音频信号包括的音频数据的声道数大于额定声道数;Receiving multiple channels of first audio signals sent by the audio sending end through the multiple first audio buses, wherein each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal The number of channels of audio data included in the signal is greater than the number of rated channels;
    按照与所述音频发送端采用的编码方式相对应的解码方式,对所述多路第一音频信号进行解码,得到与所述多条第二音频总线对应的多路第二音频信号,其中每路所述第二音频信号包括的音频数据的声道数小于或等于额定声道数;According to the decoding method corresponding to the encoding method adopted by the audio sending end, the multiple channels of first audio signals are decoded to obtain multiple channels of second audio signals corresponding to the multiple second audio buses, wherein each The number of channels of audio data included in the second audio signal is less than or equal to the number of rated channels;
    将每路所述第二音频信号通过对应的一条所述第二音频总线,传输至与所述第二音频总线连接的扬声器。Each channel of the second audio signal is transmitted to the speaker connected to the second audio bus through a corresponding one of the second audio bus.
  7. 根据权利要求6所述的方法,其特征在于,所述对所述多路第一音频信号进行解码,得到与所述多条第二音频总线对应的多路第二音频信号包括:The method according to claim 6, wherein the decoding the multiple channels of first audio signals to obtain multiple channels of second audio signals corresponding to the multiple channels of second audio buses comprises:
    根据所述第二音频总线的采样位宽,对所述多路第一音频信号包括的多个声道的音频数据进行拆分和组合,得到所述多路第二音频信号;Split and combine 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 the multiple channels of second audio signals;
    其中,每路所述第二音频信号包括的每个声道的音频数据的数据位宽,均为所述第二音频总线的采样位宽。Wherein, 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.
  8. 根据权利要求6或7所述的方法,其特征在于,所述对所述多路第一音频信号进行解码,包括:The method according to claim 6 or 7, wherein said decoding said multiple channels of first audio signals comprises:
    在接收所述多路第一音频信号的过程中,对所述多路第一音频信号进行解码;或者,在接收完所述多路第一音频信号时,对所述多路第一音频信号进行解码。In the process of receiving the multiple channels of first audio signals, decode the multiple channels of first audio signals; or, after receiving the multiple channels of first audio signals, perform the decoding on the multiple channels of first audio signals To decode.
  9. 一种音频数据的传输装置,其特征在于,应用于音频发送端,所述音频发送端通过多条第一音频总线与音频接收端连接,所述装置包括:An audio data transmission device, characterized in that it is applied to an audio sending end, the audio sending end is connected to an audio receiving end through a plurality of first audio buses, and the device includes:
    获取电路,用于获取多个声道的音频数据,每个声道的音频数据的数据位宽相同;The acquisition circuit is used to acquire audio data of multiple channels, and the data bit width of the audio data of each channel is the same;
    编码电路,用于对所述多个声道的音频数据进行编码,得到与所述多条第 一音频总线对应的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;The encoding circuit is used to encode the audio data of the multiple channels to obtain multiple first audio signals corresponding to the multiple first audio buses, wherein each of the first audio signals includes at least one audio Channels of audio data, and the number of channels of audio data included in at least one of the first audio signals is greater than the number of rated channels;
    第一音频信号传输电路,用于将每路所述第一音频信号,通过对应的一条所述第一音频总线传输至所述音频接收端。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 one of the first audio buses.
  10. 一种音频数据的传输装置,其特征在于,应用于音频接收端,所述音频接收端通过多条第一音频总线与音频发送端连接,并通过多条第二音频总线与多个扬声器连接,所述第二音频总线的数量大于所述第一音频总线的数量,所述装置包括:An audio data transmission device, characterized in that it is applied to an audio receiving end, the audio receiving end is connected to an audio sending end through multiple first audio buses, and is connected to multiple speakers through multiple second audio buses, The number of the second audio buses is greater than the number of the first audio buses, and the device includes:
    接收电路,用于接收所述音频发送端通过所述多条第一音频总线发送的多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;The receiving circuit is configured to receive multiple channels of first audio signals sent by the audio sending end via the multiple first audio buses, wherein each channel of the first audio signal includes at least one channel of audio data, and at least one channel of audio data The number of audio channels of the audio data included in the first audio signal is greater than the number of rated channels;
    解码电路,用于按照与所述音频发送端采用的编码方式相对应的解码方式,对所述多路第一音频信号进行解码,得到与所述多条第二音频总线对应的多路第二音频信号,其中每路所述第二音频信号包括的音频数据的声道数小于或等于额定声道数;The decoding circuit is used to decode the multiple channels of first audio signals according to the decoding method corresponding to the encoding method adopted by the audio sending end to obtain multiple channels of second audio signals corresponding to the multiple second audio buses. An audio signal, where the number of audio data channels included in each second audio signal is less than or equal to the rated number of channels;
    第二音频信号传输电路,用于将每路所述第二音频信号通过对应的一条所述第二音频总线,传输至与所述第二音频总线连接的扬声器。The second audio signal transmission circuit is used to transmit each channel of the second audio signal to a speaker connected to the second audio bus through a corresponding one of the second audio buses.
  11. 一种显示装置,其特征在于,包括:A display device, characterized by comprising:
    显示屏,被配置为呈现图像画面;The display screen is configured to present an image screen;
    扬声器,被配置为再现声音;The speaker is configured to reproduce sound;
    音频处理器,被配置为获取多个声道的音频数据;An audio processor configured to obtain audio data of multiple channels;
    控制器,被配置为对所述多个声道的音频数据进行编码,得到多路第一音频信号;A controller configured to encode the audio data of the multiple channels to obtain multiple first audio signals;
    其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;Wherein each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data with a number of channels greater than a rated channel number;
  12. 根据权利要求11所述的显示装置,其特征在于,,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;11. The display device according to claim 11, wherein the controller is configured to encode the audio data of the multiple channels according to a threshold value of the number of channels of audio data that can be transmitted in each sampling period, Obtain multiple first audio signals;
    其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
  13. 根据权利要求12所述的显示装置,其特征在于,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;The display device according to claim 12, wherein the controller is configured to encode the audio data of the plurality of channels according to the threshold value of the number of channels of the audio data that can be transmitted in each sampling period Multiple first audio signals;
    其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
  14. 根据权利要求13所述的显示装置,其特征在于,采样位宽、采样频率和采样方式,所述采样方式包括单沿采样或双沿采样;The display device according to claim 13, wherein the sampling bit width, sampling frequency and sampling mode, the sampling mode includes single-edge sampling or double-edge sampling;
    所述声道数阈值等于所述额定声道数与第一比值、第二比值以及采样系数中的至少一个参数的乘积;The threshold of the number of channels is equal to a product of the rated number of channels and at least one of the first ratio, the second ratio, and the sampling coefficient;
    其中,所述第一比值为所述采样位宽与所述数据位宽的比值,所述第二比值为所述采样频率与额定频率的比值,且所述第一比值和所述第二比值均大于或等于1;Wherein, 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 Are greater than or equal to 1;
    若所述采样方式为单沿采样,所述采样系数为1,若所述采样方式为双沿采 样,所述采样系数为2。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.
  15. 根据权利要求13所述的显示装置,其特征在于,若所述采样位宽为所述数据位宽的非整数倍,根据所述采样位宽,对目标声道的音频数据进行拆分,并将拆分得到的音频数据分别与其他声道的音频数据进行组合,组合后的音频数据的位宽为所述采样位宽;The display device according to claim 13, wherein if the sampling bit width is a non-integer multiple of the data bit width, the audio data of the target channel is split according to the sampling bit width, and Combine the split audio data with audio data of other channels, respectively, and 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 of the channels are combined, and the bit width of the combined audio data is the sampling bit width.
  16. 根据权利要求15所述的显示装置,其特征在于,所述多个声道的音频数据包括:左声道音频数据,右声道音频数据,左环绕声道音频数据,右环绕声道音频数据,左天空声道音频数据,右天空声道音频数据,中置音声道音频数据和重低音声道音频数据;The display device according to claim 15, wherein the audio data of the multiple channels comprises: 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 audio channel audio data and subwoofer channel audio data;
    所述目标声道的音频数据包括:所述中置音声道音频数据和所述重低音声道音频数据中的至少一种。The audio data of the target channel includes: at least one of the center sound channel audio data and the subwoofer channel audio data.
  17. 一种显示装置,其特征在于,包括:A display device, characterized by comprising:
    显示屏,被配置为呈现图像画面;The display screen is configured to present an image screen;
    扬声器,被配置为再现声音;The speaker is configured to reproduce sound;
    音频处理器,被配置为接收多路第一音频信号,其中每路所述第一音频信号包括至少一个声道的音频数据,且至少一路所述第一音频信号包括的音频数据的声道数大于额定声道数;The audio processor is configured to receive multiple channels of first audio signals, where each channel of the first audio signal includes at least one channel of audio data, and at least one channel of the first audio signal includes audio data More than the number of rated channels;
    控制器,被配置为对所述多路第一音频信号进行解码,得到多路第二音频信号,并传输给所述扬声器;A controller configured to decode the multiple channels of first audio signals to obtain multiple channels of second audio signals, and transmit them to the speaker;
    其中每路所述第二音频信号包括的音频数据的声道数小于或等于额定声道 数;The number of audio data channels included in each second audio signal is less than or equal to the rated number of channels;
    将每路所述第二音频信号传输至所述扬声器。Transmitting each channel of the second audio signal to the speaker.
  18. 根据权利要求17所述的显示装置,其特征在于,控制器被配置为根据每个采样周期内能够传输的音频数据的声道数阈值,对所述多个声道的音频数据进行编码,得到多路第一音频信号;The display device according to claim 17, wherein the controller is configured to encode the audio data of the multiple channels according to a threshold value of the number of channels of audio data that can be transmitted in each sampling period to obtain Multiple first audio signals;
    其中,每路所述第一音频信号包括的音频数据的声道数小于或等于所述声道数阈值。Wherein, the number of audio channels of the audio data included in each channel of the first audio signal is less than or equal to the threshold of the number of channels.
  19. 一种播放设备,其特征在于,所述播放设备包括:音频发送端和音频接收端;A playback device, characterized in that the playback device includes: an audio sending end and an audio receiving end;
    所述音频发送端包括如权9所述的音频数据的传输装置;The audio sending end includes the audio data transmission device as described in right 9;
    所述音频接收端包括如权10所述的音频数据的传输装置。The audio receiving end includes the audio data transmission device as described in right 10.
PCT/CN2020/070902 2019-07-09 2020-01-08 Display device and audio data transmission method WO2021004048A1 (en)

Applications Claiming Priority (16)

Application Number Priority Date Filing Date Title
CN201910616404.6 2019-07-09
CN201910618541.3 2019-07-09
CN201910613160 2019-07-09
CN201910615836.5 2019-07-09
CN201910613254.3 2019-07-09
CN201910614701.7A CN112216310B (en) 2019-07-09 2019-07-09 Audio processing method and device and multi-channel system
CN201910613160.6 2019-07-09
CN201910615836.5A CN112218019B (en) 2019-07-09 2019-07-09 Audio data transmission method and device
CN201910614701.7 2019-07-09
CN201910616404.6A CN112218016B (en) 2019-07-09 2019-07-09 Display device
CN201910618541 2019-07-09
CN201910613254.3A CN112216290A (en) 2019-07-09 2019-07-09 Audio data transmission method and device and playing equipment
CN201910659488.1 2019-07-22
CN201910659488.1A CN112218020B (en) 2019-07-09 2019-07-22 Audio data transmission method and device for multi-channel platform
CN201910710346.3 2019-08-02
CN201910710346.3A CN112218210B (en) 2019-07-09 2019-08-02 Display device, audio playing method and device

Publications (1)

Publication Number Publication Date
WO2021004048A1 true WO2021004048A1 (en) 2021-01-14

Family

ID=74114387

Family Applications (5)

Application Number Title Priority Date Filing Date
PCT/CN2020/070929 WO2021004049A1 (en) 2019-07-09 2020-01-08 Display device, and audio data transmission method and device
PCT/CN2020/070891 WO2021004047A1 (en) 2019-07-09 2020-01-08 Display device and audio playing method
PCT/CN2020/070887 WO2021004045A1 (en) 2019-07-09 2020-01-08 Method for transmitting audio data of multichannel platform, apparatus thereof, and display device
PCT/CN2020/070890 WO2021004046A1 (en) 2019-07-09 2020-01-08 Audio processing method and apparatus, and display device
PCT/CN2020/070902 WO2021004048A1 (en) 2019-07-09 2020-01-08 Display device and audio data transmission method

Family Applications Before (4)

Application Number Title Priority Date Filing Date
PCT/CN2020/070929 WO2021004049A1 (en) 2019-07-09 2020-01-08 Display device, and audio data transmission method and device
PCT/CN2020/070891 WO2021004047A1 (en) 2019-07-09 2020-01-08 Display device and audio playing method
PCT/CN2020/070887 WO2021004045A1 (en) 2019-07-09 2020-01-08 Method for transmitting audio data of multichannel platform, apparatus thereof, and display device
PCT/CN2020/070890 WO2021004046A1 (en) 2019-07-09 2020-01-08 Audio processing method and apparatus, and display device

Country Status (1)

Country Link
WO (5) WO2021004049A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301494B (en) * 2021-05-25 2022-09-02 亿咖通(湖北)技术有限公司 Audio playing system, control equipment and power amplifier equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237259A (en) * 2013-03-29 2013-08-07 天脉聚源(北京)传媒科技有限公司 Audio-channel processing device and audio-channel processing method for video
CN105578347A (en) * 2015-12-25 2016-05-11 数源科技股份有限公司 Audio system of integrated automotive electronic product
US20160157008A1 (en) * 2014-04-29 2016-06-02 Huawei Device Co., Ltd. Transmission Method, Mobile Terminal, Multi-Channel Headset, and Audio Play System

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4495209B2 (en) * 2004-03-12 2010-06-30 ノキア コーポレイション Synthesis of mono audio signal based on encoded multi-channel audio signal
JP2006005701A (en) * 2004-06-18 2006-01-05 D & M Holdings Inc Multichannel audio system
CN101079265B (en) * 2007-07-11 2011-06-08 无锡中星微电子有限公司 Voice signal processing system
CN201063781Y (en) * 2007-07-24 2008-05-21 青岛海信电器股份有限公司 Audio/video coding and decoding device
US8355921B2 (en) * 2008-06-13 2013-01-15 Nokia Corporation Method, apparatus and computer program product for providing improved audio processing
US8199941B2 (en) * 2008-06-23 2012-06-12 Summit Semiconductor Llc Method of identifying speakers in a home theater system
US20100057471A1 (en) * 2008-08-26 2010-03-04 Hongwei Kong Method and system for processing audio signals via separate input and output processing paths
CN102572588A (en) * 2011-12-14 2012-07-11 中兴通讯股份有限公司 Method and device for realizing audio mixing of set-top box
RU2625444C2 (en) * 2013-04-05 2017-07-13 Долби Интернэшнл Аб Audio processing system
CN104468915A (en) * 2013-09-24 2015-03-25 卓望数码技术(深圳)有限公司 Device for testing mobile terminal and system for testing mobile terminals
CN103714847B (en) * 2013-12-31 2016-05-04 中山大学花都产业科技研究院 A kind of multichannel digital audio processing device based on DSP
CN105992040A (en) * 2015-02-15 2016-10-05 深圳市民展科技开发有限公司 Multichannel audio data transmitting method, audio data synchronization playing method and devices
CN107135301A (en) * 2016-02-29 2017-09-05 宇龙计算机通信科技(深圳)有限公司 A kind of audio data processing method and device
CN105959438A (en) * 2016-07-06 2016-09-21 惠州Tcl移动通信有限公司 Processing method and system for audio multi-channel output loudspeaker and mobile phone
CN206117991U (en) * 2016-08-10 2017-04-19 深圳市米尔声学科技发展有限公司 Audio processing equipment
CN106911987B (en) * 2017-02-21 2019-11-05 珠海全志科技股份有限公司 Main control end, equipment end, the method and system for transmitting multichannel audb data
CN206879039U (en) * 2017-07-05 2018-01-12 珠海市杰理科技股份有限公司 Support the wireless microphone and intelligent terminal karaoke OK system of usb audio
CN108076306B (en) * 2017-12-29 2021-09-17 中兴通讯股份有限公司 Conference implementation method, device, equipment and system and computer readable storage medium
CN109996167B (en) * 2017-12-31 2020-09-11 华为技术有限公司 Method for cooperatively playing audio file by multiple terminals and terminal
CN108520763B (en) * 2018-04-13 2021-07-16 广州醇美电子有限公司 Data storage method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237259A (en) * 2013-03-29 2013-08-07 天脉聚源(北京)传媒科技有限公司 Audio-channel processing device and audio-channel processing method for video
US20160157008A1 (en) * 2014-04-29 2016-06-02 Huawei Device Co., Ltd. Transmission Method, Mobile Terminal, Multi-Channel Headset, and Audio Play System
CN105578347A (en) * 2015-12-25 2016-05-11 数源科技股份有限公司 Audio system of integrated automotive electronic product

Also Published As

Publication number Publication date
WO2021004045A1 (en) 2021-01-14
WO2021004046A1 (en) 2021-01-14
WO2021004047A1 (en) 2021-01-14
WO2021004049A1 (en) 2021-01-14

Similar Documents

Publication Publication Date Title
US11895360B2 (en) Method for waking up audio device, and display apparatus
US8903523B2 (en) Audio processing device, audio processing method, and program
WO2021169141A1 (en) Method for displaying audio track language on display device and display device
US8451388B2 (en) Audio processing apparatus and audio processing method for processing according to detected mode
CN111757171A (en) Display device and audio playing method
WO2021042655A1 (en) Sound and picture synchronization processing method and display device
WO2021109354A1 (en) Media stream data playback method and device
WO2020098504A1 (en) Video switching control method and display device
US20110167465A1 (en) Device control apparatus, device control method and computer program
US11991231B2 (en) Method for playing streaming media file and display apparatus
CN111654743B (en) Audio playing method and display device
CN111385621B (en) Display device and Bluetooth audio transmission method
WO2021004048A1 (en) Display device and audio data transmission method
CN112272373B (en) Bluetooth device type switching method and display device
CN111093106B (en) Display device
KR102170827B1 (en) Apparatus for Displaying Image and Driving Method Thereof, Apparatus for Outputting Audio and Driving Method Thereof
JP2007235519A (en) Method and system for video sound synchronization
CN111050197B (en) Display device
KR20150139417A (en) Broadcast receiving apparatus and method for outputting a audio
CN111405356A (en) Audio control device, audio playing system and method
JP5082562B2 (en) Digital broadcast receiving method and apparatus
US11954401B2 (en) Method for selecting audio output device, and display apparatus
CN112702549B (en) Sound output method and display device
WO2022078166A1 (en) Class of bluetooth device switching method and display device
JP2013090060A (en) Video processing device and video processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20837908

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20837908

Country of ref document: EP

Kind code of ref document: A1