WO2017113604A1 - Method and device for transmitting and receiving audio signals - Google Patents

Method and device for transmitting and receiving audio signals Download PDF

Info

Publication number
WO2017113604A1
WO2017113604A1 PCT/CN2016/084683 CN2016084683W WO2017113604A1 WO 2017113604 A1 WO2017113604 A1 WO 2017113604A1 CN 2016084683 W CN2016084683 W CN 2016084683W WO 2017113604 A1 WO2017113604 A1 WO 2017113604A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
audio information
audio
channel
data format
Prior art date
Application number
PCT/CN2016/084683
Other languages
French (fr)
Chinese (zh)
Inventor
陈文杰
Original Assignee
深圳Tcl数字技术有限公司
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
Application filed by 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017113604A1 publication Critical patent/WO2017113604A1/en

Links

Classifications

    • 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
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers

Definitions

  • the present invention relates to the field of audio signal processing technologies, and in particular, to an audio signal transmitting and receiving method and apparatus.
  • the home theater system's surround and bass functions are wirelessly connected.
  • each pair of transmitting and transmitting modules can only transmit data of two channels. Therefore, two pairs of transceiver modules are needed to implement functions such as surround and bass in the home theater system.
  • the signals transmitted by the two wireless transmitting modules in this manner cause mutual interference, thereby causing errors in the signals received by the receiving module and affecting the audio effects of the home theater system.
  • the invention provides an audio signal transmitting and receiving method and device, which aims to solve the technical problem that the signals emitted by two existing wireless transmitting modules generate mutual interference and affect the audio effect of the home theater system.
  • the present invention provides an audio signal transmitting method, and the audio signal transmitting method includes the following steps:
  • the step of performing the encoding operation on the first audio information and the second audio information based on the serial digital audio bus IIS protocol to obtain the information to be sent includes:
  • the data format based on the IIS protocol inserts left channel information of the second audio information every clock cycle between the left channel information and the right channel information of the first audio information in the same clock cycle, and each clock cycle
  • the right channel information of the second audio information is inserted between the right channel information of the first audio information and the left channel information of the first audio information of the next clock cycle to generate the to-be-sent information.
  • the data format of the first audio information is a standard data format of the IIS protocol or a left-aligned data format
  • the data format of the second audio information is a right-aligned data format of the IIS protocol.
  • the present invention further provides an audio signal receiving method, where the audio signal receiving method includes the following steps:
  • the received audio signal is digital-analog converted by the second digital-to-analog converter based on the IIS protocol to obtain third channel audio information and fourth channel audio information.
  • the present invention further provides an audio signal transmitting apparatus, where the audio signal transmitting apparatus includes:
  • An acquiring module configured to acquire first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information
  • an analog-to-digital conversion module configured to perform analog-to-digital conversion on the acquired first channel audio information and second channel audio information to obtain first audio information, and the acquired third channel audio information and fourth channel audio information Performing analog-to-digital conversion to obtain second audio information, wherein the first audio information and the second audio information are data formats of a serial digital audio bus IIS protocol;
  • An encoding module configured to perform an encoding operation on the first audio information and the second audio information to obtain information to be sent;
  • a sending module configured to control the transmitter to send an audio signal based on the information to be sent.
  • the encoding module comprises:
  • an acquiring unit configured to separately acquire left channel information and right channel information of the second audio information in each clock cycle
  • a coding unit configured to insert, according to a data format of the IIS protocol, left channel information of the second audio information of each clock cycle between the left channel information and the right channel information of the first audio information of the same clock cycle, and Inserting the right channel information of the second audio information of each clock cycle between the right channel information of the first audio information and the left channel information of the first audio information of the next clock cycle in the same clock cycle, Generating the to-be-sent information.
  • the data format of the first audio information is a standard data format of the IIS protocol or a left-aligned data format
  • the data format of the second audio information is a right-aligned data format of the IIS protocol.
  • the present invention acquires first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information, and then performs the acquired first channel audio information and second channel audio information. Analog-to-digital conversion to obtain first audio information, performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information to obtain second audio information, and then pairing the first audio information and the second audio information Performing an encoding operation to obtain information to be transmitted, and finally transmitting the information to be transmitted, realizing transmitting data information of four channels through one transmitter, thereby avoiding generating data information of four channels by using two wireless transmitting modules.
  • the mutual interference of the transmitted signals improves the audio effect of the home theater system, reduces the number of transmitters, and reduces the cost.
  • FIG. 1 is a schematic flow chart of a first embodiment of an audio signal sending method according to the present invention
  • FIG. 3 is a timing diagram of second audio information of the present invention.
  • FIG. 5 is a schematic flowchart of a process of encoding the first audio information and the second audio information in the second embodiment of the audio signal sending method according to the present invention
  • FIG. 6 is a schematic flow chart of a first embodiment of an audio signal receiving method according to the present invention.
  • FIG. 7 is a schematic diagram showing a refinement process of a digital-to-analog conversion step of an audio signal in a second embodiment of an audio signal receiving method according to the present invention.
  • Figure 8 is a schematic structural view of an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of functional modules of a first embodiment of an audio signal transmitting apparatus according to the present invention.
  • FIG. 10 is a schematic diagram of a refinement function module of an encoding module in a second embodiment of an audio signal transmitting apparatus according to the present invention.
  • FIG. 11 is a schematic diagram of functional modules of a first embodiment of an audio signal receiving apparatus according to the present invention.
  • FIG. 12 is a schematic diagram of a refinement function module of a digital-to-analog conversion module in a second embodiment of an audio signal receiving apparatus according to the present invention.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of an audio signal sending method according to the present invention.
  • the audio signal sending method includes:
  • Step S110 acquiring first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information
  • the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are left channel surround audio information, right channel surround audio information, and left channel bass information, respectively.
  • the right channel bass information of course, the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information may also be left channel bass information, right channel bass information, respectively Left channel surround audio information and right channel surround audio information.
  • Step S120 performing analog-to-digital conversion on the acquired first channel audio information and second channel audio information to obtain first audio information, and performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information.
  • Obtaining second audio information wherein the first audio information and the second audio information are both IIS ((Inter-IC) Sound, serial digital audio bus) data format of the protocol;
  • the IIS bus has three data signal lines: a frame clock data signal LRCK for switching data of the left and right channels, a frame clock data signal LRCK of "1" indicating that the data of the left channel is being transmitted, and the frame clock data signal LRCK When it is "0", it means that the data of the right channel is being transmitted; the bit clock BCK, that is, every bit of data corresponding to the digital audio, BCK has one pulse; the serial data DATA is the audio represented by the two's complement.
  • the data format of the IIS protocol can be divided into a left-aligned data format, a standard data format, and a right-aligned data format.
  • the first channel audio information and the second channel audio information are sent to the first analog-to-digital converter for analog-to-digital conversion, and the first audio information is obtained after the analog-to-digital conversion, wherein the first analog-to-digital conversion
  • the data output format of the device is the standard data format of the IIS protocol or the left-aligned data format.
  • the system word length is 33 bits, and the valid data bit is 16 bits, so that the data format of the first audio information is the standard data format of the IIS protocol or left. Align the data format, the system word length is 33 bits, and the valid data bit is also 16 bits, as shown in Figure 2.
  • DATA1 is the first audio information
  • the data format is the standard data format of the IIS protocol, wherein the first audio The first bit and the 18th-33th bit of the information are invalid data
  • the third channel audio information and the fourth channel audio information are sent to the second analog to digital converter for analog to digital conversion, and after analog to digital conversion
  • the second audio information, the data output format of the second analog-to-digital converter is a right-aligned data format of the IIS protocol, so that the data format of the second audio information is a right-aligned data format of the IIS protocol, such as 3
  • the data format for IIS protocol wherein the first bit data of the second audio information 2-17 are invalid data.
  • Step S130 performing an encoding operation on the first audio information and the second audio information to obtain information to be sent;
  • the first audio information and the second audio information obtained after the digital-to-analog conversion are sent to the encoder through the IIS bus, and the encoder outputs the left channel of the second audio information every clock cycle based on the data format of the IIS protocol.
  • Information is inserted between the left channel information and the right channel information of the first audio information of the same clock cycle, and the right channel information of the second audio information of each clock cycle is inserted into the first audio of the same clock cycle.
  • the encoded data is the information to be transmitted, as shown in FIG. 4, where DATA3 is an encoder.
  • the generated information to be sent has a system word length of 33 bits and a valid data bit of 32 bits.
  • Step S140 Send the information to be sent.
  • the information to be sent is sent to the transmitter, and the transmitter transmits the received information to be sent.
  • the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are acquired, and then the acquired first channel audio information and second channel audio information are acquired.
  • Performing analog-to-digital conversion to obtain first audio information performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information to obtain second audio information, and then pairing the first audio information and the second audio
  • the information is encoded to obtain information to be transmitted, and finally the information to be transmitted is transmitted, so that data information of four channels is transmitted through one transmitter, thereby avoiding data information of four channels transmitted by two wireless transmitting modules.
  • the mutual interference of the transmitted signals increases the audio effect of the home theater system, reduces the number of transmitters, and reduces the cost.
  • step S130 includes:
  • Step S131 respectively acquiring left channel information and right channel information of the second audio information in each clock cycle;
  • the data when the frame clock data signal LRCK is "1" is the left channel information of the second audio information, and the frame clock data signal LRCK is "0".
  • the data at the time is the right channel information of the second audio information.
  • the data when the frame clock data signal LRCK is "1" is the left channel information of the first audio information, and the frame clock data signal LRCK is "0".
  • the data at the time is the right channel information of the first audio information.
  • Step S132 inserting left channel information of the second audio information of the same clock cycle into the left channel information of the first audio information based on the data format of the IIS protocol, and right channel information of the second audio information of the same clock cycle. Inserting the right channel information of the first audio information to generate the to-be-sent information.
  • DATA3 in the figure is information to be transmitted generated by the encoder, and the system word length of the information to be transmitted is 33 bits, and the effective data bit is 32 bits, that is, in this embodiment, each clock cycle is
  • the left channel information of the second audio information is filled in the 18th to 33rd bits of the first audio information when the same clock cycle LRCK is "1", and the right channel information of the second audio information is filled in the same time for each clock cycle.
  • the left channel information of the first audio information may be inserted into the left channel information of the second audio information of the same clock cycle
  • the right channel information of the first audio information may be inserted into the second audio of the same clock cycle.
  • the left channel information and the right channel information of the second audio information in each clock cycle are separately obtained; then the left channel information of the second audio information in the same clock cycle is based on the data format of the IIS protocol.
  • the left channel information of the first audio information, and inserting the right channel information of the second audio information of the same clock cycle into the right channel information of the first audio information to generate the to-be-sent information, Generating the to-be-sent information according to the first audio information and the second audio information encoding, so that the information to be transmitted can transmit the audio data information of four channels through one transmitter, thereby avoiding four channels by using two wireless transmitting modules.
  • the data information produces mutual interference of the transmitted signals, and reduces the number of transmitters and reduces the cost.
  • FIG. 6 is a schematic flowchart diagram of a first embodiment of an audio signal receiving method according to the present invention.
  • the audio signal receiving method includes:
  • Step S210 receiving an audio signal
  • Step S220 performing digital-to-analog conversion on the received audio signal based on the serial digital audio bus IIS protocol to obtain first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information.
  • the received audio signal is digital-to-analog converted according to the IIS protocol, wherein the received audio signal is digital-analog converted by the first digital-to-analog converter based on the IIS protocol to obtain the first channel audio information, Second channel audio information, digital-to-analog conversion of the received audio signal by the second digital-to-analog converter based on the IIS protocol to obtain third channel audio information, fourth channel audio information; for example, in the received audio
  • the first digital-to-analog converter performs digital-to-analog conversion on the data of the 2-17th bit in the audio signal when the LRCK is "1" every clock cycle to obtain the first channel audio information.
  • the second channel audio information is obtained by digital-to-analog conversion of the 2-17th bit of the audio signal when LRCK is "0" for each clock cycle, and the second digital-to-analog converter is "1" for each clock cycle LRCK.
  • the data of the 18th to 33th bits in the audio signal is digital-to-analog converted to obtain the third-channel audio information, and the digital-to-analog conversion is performed for the data of the 18th to 33th bits in the audio signal when LRCK is "0" every clock cycle. Get the fourth sound Audio information.
  • the audio signal is received; then the received audio signal is digital-to-analog converted based on the serial digital audio bus IIS protocol to obtain first channel audio information, second channel audio information, and third channel audio information. And the fourth channel audio information, the audio data information of four channels is obtained according to the received audio signal, and the process of decoding the multi-received audio signal is reduced by the IIS protocol, thereby improving the efficiency of receiving and receiving the audio signal. Reduce the number of receivers and reduce costs.
  • step S220 includes:
  • Step S221 performing digital-to-analog conversion on the received audio signal by using a first digital-to-analog converter based on a standard data format or a left-aligned data format of the IIS protocol to obtain first channel audio information and second channel audio information;
  • the first digital-to-analog converter performs digital-to-analog conversion on the 2-17th bit of the audio signal when the LRCK is "1" every clock cycle.
  • the first channel audio information is digital-analog converted to the 2-17th bit of the audio signal when the LRCK is "0" every clock cycle to obtain the second channel audio information.
  • Step S222 performing digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the right-aligned data format of the IIS protocol to obtain third-channel audio information and fourth-channel audio information.
  • the second digital-to-analog converter performs digital-to-analog conversion on the data of the 18-33 bits in the audio signal when the LRCK is "1" every clock cycle.
  • the third channel audio information is digital-to-analog converted to the data of the 18th to 33th bits in the audio signal when the LRCK is "0" every clock cycle to obtain the fourth channel audio information.
  • the received audio signal is digital-analog converted by the first digital-to-analog converter by using a standard data format or a left-aligned data format based on the IIS protocol to obtain first channel audio information and second channel audio information;
  • the right-aligned data format of the IIS protocol performs digital-to-analog conversion on the received audio signal through the second digital-to-analog converter to obtain third-channel audio information and fourth-channel audio information, and reduces the received audio through the IIS protocol.
  • the process of decoding the signal improves the efficiency of audio signal transmission and reception.
  • the first channel audio information and the second channel audio information are obtained by the first performing analog-to-digital converter 100.
  • the audio information, the third channel audio information, and the fourth channel audio information are obtained by the second analog-to-digital converter 200 to obtain the second audio information; and then the encoder 300 performs the encoding operation on the first audio information and the second audio information.
  • the transmitter 400 transmits the information to be transmitted; when the receiver 500 of the home theater system receives the audio signal, that is, the information to be transmitted transmitted by the transmitter 400, the first digital-to-analog converter 600 performs the received audio signal.
  • Digital-to-analog conversion to obtain first channel audio information, second channel audio information, and second digital-to-analog converter 700 digital-to-analog the received audio signal to obtain third-channel audio information, fourth-channel audio information.
  • FIG. 9 is a schematic diagram of functional modules of a first embodiment of an audio signal transmitting apparatus according to the present invention.
  • the audio signal sending apparatus includes:
  • the obtaining module 110 is configured to acquire first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information;
  • the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are left channel surround audio information, right channel surround audio information, and left channel bass information, respectively.
  • the right channel bass information of course, the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information may also be left channel bass information, right channel bass information, respectively Left channel surround audio information and right channel surround audio information.
  • the analog-to-digital conversion module 120 is configured to perform analog-to-digital conversion of the acquired first channel audio information and second channel audio information to obtain first audio information, and the acquired third channel audio information and fourth channel audio The information is subjected to analog-to-digital conversion to obtain second audio information, wherein the first audio information and the second audio information are data formats of a serial digital audio bus IIS protocol;
  • the IIS bus has three data signal lines: a frame clock data signal LRCK for switching data of the left and right channels, a frame clock data signal LRCK of "1" indicating that the data of the left channel is being transmitted, and the frame clock data signal LRCK When it is "0", it means that the data of the right channel is being transmitted; the bit clock BCK, that is, every bit of data corresponding to the digital audio, BCK has one pulse; the serial data DATA is the audio represented by the two's complement.
  • the data format of the IIS protocol can be divided into a left-aligned data format, a standard data format, and a right-aligned data format.
  • the first channel audio information and the second channel audio information are sent to the first analog-to-digital converter for analog-to-digital conversion, and the first audio information is obtained after the analog-to-digital conversion, wherein the first analog-to-digital conversion
  • the data output format of the device is the standard data format of the IIS protocol or the left-aligned data format.
  • the system word length is 33 bits, and the valid data bit is 16 bits, so that the data format of the first audio information is the standard data format of the IIS protocol or left. Align the data format, the system word length is 33 bits, and the valid data bit is also 16 bits, as shown in Figure 2.
  • DATA1 is the first audio information
  • the data format is the standard data format of the IIS protocol, wherein the first audio The first bit and the 18th-33th bit of the information are invalid data
  • the third channel audio information and the fourth channel audio information are sent to the second analog to digital converter for analog to digital conversion, and after analog to digital conversion
  • the second audio information, the data output format of the second analog-to-digital converter is a right-aligned data format of the IIS protocol, so that the data format of the second audio information is a right-aligned data format of the IIS protocol, such as 3
  • the data format for IIS protocol wherein the first bit data of the second audio information 2-17 are invalid data.
  • the encoding module 130 is configured to perform an encoding operation on the first audio information and the second audio information to obtain information to be sent.
  • the first audio information and the second audio information obtained after the digital-to-analog conversion are sent to the encoder through the IIS bus, and the encoding module 130 rotates the left audio information of the second audio information every clock cycle based on the data format of the IIS protocol.
  • the channel information is inserted between the left channel information and the right channel information of the first audio information of the same clock cycle, and the right channel information of the second audio information of each clock cycle is inserted into the same clock cycle.
  • the encoded data is the information to be transmitted, as shown in FIG. 4, where DATA3 is encoded.
  • the information to be sent generated by the device, the system word length of the information to be transmitted is 33 bits, and the valid data bit is 32 bits.
  • the sending module 140 is configured to send the to-be-sent information.
  • the sending module 140 sends the information to be sent to the transmitter, and the transmitter transmits the received information to be sent.
  • the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are acquired by the obtaining module 110, and then the first channel audio that the analog to digital conversion module 120 will acquire is obtained.
  • the information and the second channel audio information are subjected to analog-to-digital conversion to obtain first audio information, and the obtained third channel audio information and fourth channel audio information are analog-to-digital converted to obtain second audio information, and then the encoding module 130 Performing an encoding operation on the first audio information and the second audio information to obtain information to be transmitted, and finally sending the module 140 to send the information to be sent, thereby implementing data information of four channels transmitted through one transmitter, thereby avoiding adopting
  • the two wireless transmitting modules emit four channels of data information to generate mutual interference of the transmitted signals, which improves the audio effect of the home theater system, reduces the number of transmitters, and reduces the cost.
  • the encoding module 130 includes:
  • the obtaining unit 131 is configured to separately acquire left channel information and right channel information of the second audio information in each clock cycle;
  • the data when the frame clock data signal LRCK is "1" is the left channel information of the second audio information, and the frame clock data signal LRCK is "0".
  • the data at the time is the right channel information of the second audio information.
  • the data when the frame clock data signal LRCK is "1" is the left channel information of the first audio information, and the frame clock data signal LRCK is "0".
  • the data at the time is the right channel information of the first audio information.
  • the encoding unit 132 is configured to insert the left channel information of the second audio information of the same clock cycle into the left channel information of the first audio information based on the data format of the IIS protocol, and to the right of the second audio information of the same clock cycle.
  • the channel information is inserted after the right channel information of the first audio information to generate the to-be-sent information.
  • DATA3 in the figure is information to be transmitted generated by the encoder, and the system word length of the information to be transmitted is 33 bits, and the effective data bit is 32 bits, that is, in this embodiment, each clock cycle is
  • the left channel information of the second audio information is filled in the 18th to 33rd bits of the first audio information when the same clock cycle LRCK is "1", and the right channel information of the second audio information is filled in the same time for each clock cycle.
  • the left channel information of the first audio information may be inserted into the left channel information of the second audio information of the same clock cycle
  • the right channel information of the first audio information may be inserted into the second audio of the same clock cycle.
  • the left channel information and the right channel information of the second audio information in each clock cycle are respectively acquired by the obtaining unit 131; then the encoding unit 132 performs the second audio of the same clock cycle based on the data format of the IIS protocol. After the left channel information of the information is inserted into the left channel information of the first audio information, and the right channel information of the second audio information of the same clock cycle is inserted into the right channel information of the first audio information, to generate the The sending of the information is implemented, and the information to be sent is generated according to the first audio information and the second audio information, so that the information to be transmitted can transmit the audio data information of four channels through one transmitter, thereby avoiding the use of two wireless transmissions.
  • the module emits four channels of data information to generate mutual interference of the transmitted signals, and reduces the number of transmitters and reduces the cost.
  • FIG. 11 is a schematic diagram of functional modules of a first embodiment of an audio signal receiving apparatus according to the present invention.
  • the audio signal receiving apparatus includes:
  • the receiving module 210 is configured to receive an audio signal
  • the digital-to-analog conversion module 220 is configured to perform digital-to-analog conversion on the received audio signal based on the serial digital audio bus IIS protocol to obtain first channel audio information, second channel audio information, third channel audio information, and Four channel audio information.
  • the digital-to-analog conversion module 220 performs digital-to-analog conversion on the received audio signal according to the IIS protocol, wherein the digital-to-analog conversion module 220 performs digital-analog on the received audio signal by using the first digital-to-analog converter based on the IIS protocol. Converting to obtain first channel audio information, second channel audio information, performing digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the IIS protocol to obtain third channel audio information, fourth channel Audio information; for example, when the received audio signal is the audio signal shown in FIG.
  • the first digital-to-analog converter counts the data of the 2-17th bit in the audio signal when each clock cycle LRCK is "1"
  • the first channel audio information is obtained by the mode conversion
  • the second channel audio information is obtained by digital-to-analog conversion of the 2-17th bit data in the audio signal when each clock cycle LRCK is “0”
  • the second digital-to-analog converter Digital-to-analog conversion of the 18-33-bit data in the audio signal when LRCK is "1" every clock cycle to obtain the third-channel audio information, and the audio signal is "0" when LRCK is "0" for each clock cycle.
  • the receiving module 210 receives the audio signal; then the digital-to-analog conversion module 220 performs digital-to-analog conversion on the received audio signal based on the serial digital audio bus IIS protocol to obtain the first channel audio information and the second channel audio.
  • the information, the third channel audio information and the fourth channel audio information realize that four channels of audio data information are obtained according to the received audio signal, and the process of decoding the multi-received audio signal is reduced by the IIS protocol. Improve the efficiency of audio signal transmission and reception, reduce the number of receivers, and reduce costs.
  • the digital-to-analog conversion module 220 includes:
  • the first digital-to-analog conversion unit 221 is configured to perform digital-to-analog conversion on the received audio signal by using a first digital-to-analog converter based on a standard data format or a left-aligned data format of the IIS protocol to obtain first channel audio information, and second.
  • Channel audio information
  • the first digital-to-analog conversion unit 221 performs digital-to-analog conversion on the data of the 2-17th bit in the audio signal when the LRCK is "1" every clock cycle.
  • the first channel audio information is obtained, and the data of the 2-17th bit in the audio signal is digital-to-analog converted to the second channel audio information when the LRCK is "0" every clock cycle.
  • the second digital-to-analog conversion unit 222 is configured to perform digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the right-aligned data format of the IIS protocol to obtain third-channel audio information and fourth-channel audio information. .
  • the second digital-to-analog conversion unit 222 performs digital-to-analog conversion on the data of the 18-33 bits in the audio signal when each clock cycle LRCK is "1".
  • the third channel audio information is obtained, and the data of the 18th to 33th bits in the audio signal is digital-analog converted to the fourth channel audio information when the LRCK is "0" every clock cycle.
  • the first digital-to-analog conversion unit 221 performs digital-to-analog conversion on the received audio signal by using the first digital-to-analog converter based on the standard data format or the left-aligned data format of the IIS protocol to obtain the first channel audio information, Two-channel audio information;
  • the second digital-to-analog conversion unit 222 performs digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the right-aligned data format of the IIS protocol to obtain third-channel audio information and fourth sound.
  • the channel audio information reduces the process of decoding the received audio signal through the IIS protocol, and improves the efficiency of the audio signal transmission and reception.

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
  • Stereophonic System (AREA)

Abstract

Disclosed in the present invention is a method for transmitting audio signals. The method comprises: acquiring first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information; performing analog-to-digital conversion of the acquired first channel audio information and second channel audio information so as to obtain first audio information, and performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information so as to obtain second audio information; performing coding operation on the first audio information and second audio information so as to obtain information to be transmitted; and transmitting the information to be transmitted. Further disclosed in the present invention are a device for transmitting audio signals, and a method and device for receiving audio signals. According to the present invention, data information of four channels is transmitted by one transmitter, avoiding the mutual interference of transmitted signals that is generated when two wireless transmission modules are used to transmit data information of four channels, reducing the number of the transmitter, reducing the cost.

Description

音频信号发送、接收方法及装置  Audio signal transmitting and receiving method and device
技术领域Technical field
本发明涉及音频信号处理技术领域,尤其涉及一种音频信号发送、接收方法及装置。The present invention relates to the field of audio signal processing technologies, and in particular, to an audio signal transmitting and receiving method and apparatus.
背景技术Background technique
在家庭影院系统中,为了让整个系统连接更方便及客厅环境保持整洁,而使家庭影院系统的环绕和低音功能的设备采用成无线连接。In the home theater system, in order to make the entire system connection more convenient and the living room environment to be neat, the home theater system's surround and bass functions are wirelessly connected.
现有家庭影院系统的无线连接方案中每一对收发射模块只能传输两个声道的数据,因此,需要采用两对收发模块实现家庭影院系统中环绕和低音等功能。但是,采用这种方式的两个无线发射模块发出的信号之间产生相互干扰,进而使接收模块接收到的信号出现误差而影响家庭影院系统的音频效果。In the wireless connection scheme of the existing home theater system, each pair of transmitting and transmitting modules can only transmit data of two channels. Therefore, two pairs of transceiver modules are needed to implement functions such as surround and bass in the home theater system. However, the signals transmitted by the two wireless transmitting modules in this manner cause mutual interference, thereby causing errors in the signals received by the receiving module and affecting the audio effects of the home theater system.
发明内容Summary of the invention
本发明提供一种音频信号发送、接收方法及装置,旨在解决现有两个无线发射模块发出的信号产生相互干扰而影响家庭影院系统音频效果的技术问题。The invention provides an audio signal transmitting and receiving method and device, which aims to solve the technical problem that the signals emitted by two existing wireless transmitting modules generate mutual interference and affect the audio effect of the home theater system.
为实现上述目的,本发明提供的一种音频信号发送方法,所述音频信号发送方法包括以下步骤:To achieve the above object, the present invention provides an audio signal transmitting method, and the audio signal transmitting method includes the following steps:
获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息;Acquiring first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information;
将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,其中,所述第一音频信息与第二音频信息均为串行数字音频总线IIS协议的数据格式;Performing analog-to-digital conversion of the acquired first channel audio information and second channel audio information to obtain first audio information, and performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information to obtain Second audio information, wherein the first audio information and the second audio information are data formats of a serial digital audio bus IIS protocol;
对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息;Performing an encoding operation on the first audio information and the second audio information to obtain information to be transmitted;
基于所述待发送信息控制发射器发出音频信号。Controlling the transmitter to emit an audio signal based on the information to be transmitted.
优选地,所述基于串行数字音频总线IIS协议对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息的步骤包括:Preferably, the step of performing the encoding operation on the first audio information and the second audio information based on the serial digital audio bus IIS protocol to obtain the information to be sent includes:
分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;Obtaining left channel information and right channel information of the second audio information in each clock cycle respectively;
基于IIS协议的数据格式将每一个时钟周期第二音频信息的左声道信息插入至同一时钟周期所述第一音频信息的左声道信息与右声道信息之间,并将每一个时钟周期第二音频信息的右声道信息插入至同一时钟周期所述第一音频信息的右声道信息与下一时钟周期所述第一音频信息的左声道信息之间,以生成所述待发送信息。The data format based on the IIS protocol inserts left channel information of the second audio information every clock cycle between the left channel information and the right channel information of the first audio information in the same clock cycle, and each clock cycle The right channel information of the second audio information is inserted between the right channel information of the first audio information and the left channel information of the first audio information of the next clock cycle to generate the to-be-sent information.
优选地,所述第一音频信息的数据格式为IIS协议的标准数据格式或者左对齐数据格式,所述第二音频信息的数据格式为IIS协议的右对齐数据格式。Preferably, the data format of the first audio information is a standard data format of the IIS protocol or a left-aligned data format, and the data format of the second audio information is a right-aligned data format of the IIS protocol.
此外,为实现上述目的,本发明还提供一种音频信号接收方法,所述音频信号接收方法包括以下步骤:In addition, in order to achieve the above object, the present invention further provides an audio signal receiving method, where the audio signal receiving method includes the following steps:
接收音频信号;Receiving an audio signal;
基于IIS协议通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息;Performing digital-to-analog conversion of the received audio signal by using a first digital-to-analog converter based on the IIS protocol to obtain first channel audio information and second channel audio information;
基于IIS协议通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息。The received audio signal is digital-analog converted by the second digital-to-analog converter based on the IIS protocol to obtain third channel audio information and fourth channel audio information.
此外,为实现上述目的,本发明还提供一种音频信号发送装置,所述音频信号发送装置包括:In addition, in order to achieve the above object, the present invention further provides an audio signal transmitting apparatus, where the audio signal transmitting apparatus includes:
获取模块,用于获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息;An acquiring module, configured to acquire first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information;
模数转换模块,用于将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,其中,所述第一音频信息与第二音频信息均为串行数字音频总线IIS协议的数据格式;And an analog-to-digital conversion module, configured to perform analog-to-digital conversion on the acquired first channel audio information and second channel audio information to obtain first audio information, and the acquired third channel audio information and fourth channel audio information Performing analog-to-digital conversion to obtain second audio information, wherein the first audio information and the second audio information are data formats of a serial digital audio bus IIS protocol;
编码模块,用于对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息;An encoding module, configured to perform an encoding operation on the first audio information and the second audio information to obtain information to be sent;
发送模块,用于基于所述待发送信息控制发射器发出音频信号。And a sending module, configured to control the transmitter to send an audio signal based on the information to be sent.
优选地,所述编码模块包括:Preferably, the encoding module comprises:
获取单元,用于分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;And an acquiring unit, configured to separately acquire left channel information and right channel information of the second audio information in each clock cycle;
编码单元,用于基于IIS协议的数据格式将每一个时钟周期第二音频信息的左声道信息插入至同一时钟周期所述第一音频信息的左声道信息与右声道信息之间,并将每一个时钟周期第二音频信息的右声道信息插入至同一时钟周期所述第一音频信息的右声道信息与下一时钟周期所述第一音频信息的左声道信息之间,以生成所述待发送信息。a coding unit, configured to insert, according to a data format of the IIS protocol, left channel information of the second audio information of each clock cycle between the left channel information and the right channel information of the first audio information of the same clock cycle, and Inserting the right channel information of the second audio information of each clock cycle between the right channel information of the first audio information and the left channel information of the first audio information of the next clock cycle in the same clock cycle, Generating the to-be-sent information.
优选地,所述第一音频信息的数据格式为IIS协议的标准数据格式或者左对齐数据格式,所述第二音频信息的数据格式为IIS协议的右对齐数据格式。Preferably, the data format of the first audio information is a standard data format of the IIS protocol or a left-aligned data format, and the data format of the second audio information is a right-aligned data format of the IIS protocol.
本发明通过获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息,接着将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,然后对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息,最后发送所述待发送信息,实现了通过一个发射器发送四个声道的数据信息,避免了采用两个无线发射模块发出四个声道的数据信息而产生发射信号的相互干扰,提高了家庭影院系统的音频效果,减少了发射器的数量,降低了成本。The present invention acquires first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information, and then performs the acquired first channel audio information and second channel audio information. Analog-to-digital conversion to obtain first audio information, performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information to obtain second audio information, and then pairing the first audio information and the second audio information Performing an encoding operation to obtain information to be transmitted, and finally transmitting the information to be transmitted, realizing transmitting data information of four channels through one transmitter, thereby avoiding generating data information of four channels by using two wireless transmitting modules. The mutual interference of the transmitted signals improves the audio effect of the home theater system, reduces the number of transmitters, and reduces the cost.
附图说明DRAWINGS
图1为本发明音频信号发送方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of an audio signal sending method according to the present invention;
图2为本发明第一音频信息的时序图;2 is a timing diagram of first audio information of the present invention;
图3为本发明第二音频信息的时序图;3 is a timing diagram of second audio information of the present invention;
图4为本发明待发送信息的时序图;4 is a timing diagram of information to be transmitted according to the present invention;
图5为本发明音频信号发送方法第二实施例中对所述第一音频信息及第二音频信息进行编码操作步骤的细化流程示意图;5 is a schematic flowchart of a process of encoding the first audio information and the second audio information in the second embodiment of the audio signal sending method according to the present invention;
图6为本发明音频信号接收方法第一实施例的流程示意图;6 is a schematic flow chart of a first embodiment of an audio signal receiving method according to the present invention;
图7为本发明音频信号接收方法第二实施例中对音频信号进行数模转换步骤的细化流程示意图;FIG. 7 is a schematic diagram showing a refinement process of a digital-to-analog conversion step of an audio signal in a second embodiment of an audio signal receiving method according to the present invention; FIG.
图8为本发明一实施例的结构示意图;Figure 8 is a schematic structural view of an embodiment of the present invention;
图9为本发明音频信号发送装置第一实施例的功能模块示意图;9 is a schematic diagram of functional modules of a first embodiment of an audio signal transmitting apparatus according to the present invention;
图10为本发明音频信号发送装置第二实施例中编码模块的细化功能模块示意图;10 is a schematic diagram of a refinement function module of an encoding module in a second embodiment of an audio signal transmitting apparatus according to the present invention;
图11为本发明音频信号接收装置第一实施例的功能模块示意图;11 is a schematic diagram of functional modules of a first embodiment of an audio signal receiving apparatus according to the present invention;
图12为本发明音频信号接收装置第二实施例中数模转换模块的细化功能模块示意图。FIG. 12 is a schematic diagram of a refinement function module of a digital-to-analog conversion module in a second embodiment of an audio signal receiving apparatus according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种音频信号发送方法。参照图1,图1为本发明音频信号发送方法第一实施例的流程示意图。The invention provides an audio signal transmitting method. Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of an audio signal sending method according to the present invention.
在本实施例中,该音频信号发送方法包括:In this embodiment, the audio signal sending method includes:
步骤S110,获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息;Step S110, acquiring first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information;
其中,第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息分别为左声道环绕音频信息、右声道环绕音频信息、左声道低音信息及右声道低音信息,当然第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息还可以分别为左声道低音信息、右声道低音信息、左声道环绕音频信息及右声道环绕音频信息。The first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are left channel surround audio information, right channel surround audio information, and left channel bass information, respectively. And the right channel bass information, of course, the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information may also be left channel bass information, right channel bass information, respectively Left channel surround audio information and right channel surround audio information.
步骤S120,将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,其中,所述第一音频信息与第二音频信息均为IIS((Inter—IC Sound,串行数字音频总线)协议的数据格式;Step S120, performing analog-to-digital conversion on the acquired first channel audio information and second channel audio information to obtain first audio information, and performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information. Obtaining second audio information, wherein the first audio information and the second audio information are both IIS ((Inter-IC) Sound, serial digital audio bus) data format of the protocol;
其中,IIS总线拥有三条数据信号线:帧时钟数据信号LRCK,用于切换左右声道的数据,帧时钟数据信号LRCK为“1”表示正在传输的是左声道的数据,帧时钟数据信号LRCK为“0”则表示正在传输的是右声道的数据;位时钟BCK,即对应数字音频的每一位数据,BCK都有1个脉冲;串行数据DATA,就是用二进制补码表示的音频数据,IIS协议的数据格式可分为左对齐数据格式、标准数据格式和右对齐数据格式。本实施例中,将第一声道音频信息和第二声道音频信息发送至第一模数转换器进行模数转换,经过模数转换后得到第一音频信息,其中,第一模数转换器的数据输出格式为IIS协议的标准数据格式或者左对齐数据格式,系统字长为33位,有效数据位为16位,进而使得第一音频信息的数据格式为IIS协议的标准数据格式或者左对齐数据格式,系统字长为33位,有效数据位也为16位,如图2所示,图中DATA1为第一音频信息,其数据格式为IIS协议的标准数据格式,其中,第一音频信息的第1位以及第18-33位数据均为无效数据;将第三声道音频信息和第四声道音频信息发送至第二模数转换器进行模数转换,经过模数转换后得到第二音频信息,第二模数转换器的数据输出格式为IIS协议的右对齐数据格式,进而使得第二音频信息的数据格式为IIS协议的右对齐数据格式,如3图所示,图中DATA3为第二音频信息,其数据格式为IIS协议的右对齐数据格式,其中,第二音频信息的第2-17位数据均为无效数据。The IIS bus has three data signal lines: a frame clock data signal LRCK for switching data of the left and right channels, a frame clock data signal LRCK of "1" indicating that the data of the left channel is being transmitted, and the frame clock data signal LRCK When it is "0", it means that the data of the right channel is being transmitted; the bit clock BCK, that is, every bit of data corresponding to the digital audio, BCK has one pulse; the serial data DATA is the audio represented by the two's complement. Data, the data format of the IIS protocol can be divided into a left-aligned data format, a standard data format, and a right-aligned data format. In this embodiment, the first channel audio information and the second channel audio information are sent to the first analog-to-digital converter for analog-to-digital conversion, and the first audio information is obtained after the analog-to-digital conversion, wherein the first analog-to-digital conversion The data output format of the device is the standard data format of the IIS protocol or the left-aligned data format. The system word length is 33 bits, and the valid data bit is 16 bits, so that the data format of the first audio information is the standard data format of the IIS protocol or left. Align the data format, the system word length is 33 bits, and the valid data bit is also 16 bits, as shown in Figure 2. In the figure, DATA1 is the first audio information, and the data format is the standard data format of the IIS protocol, wherein the first audio The first bit and the 18th-33th bit of the information are invalid data; the third channel audio information and the fourth channel audio information are sent to the second analog to digital converter for analog to digital conversion, and after analog to digital conversion, The second audio information, the data output format of the second analog-to-digital converter is a right-aligned data format of the IIS protocol, so that the data format of the second audio information is a right-aligned data format of the IIS protocol, such as 3 As shown in the figure right-justified data DATA3 second audio format information, the data format for IIS protocol, wherein the first bit data of the second audio information 2-17 are invalid data.
步骤S130,对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息;Step S130, performing an encoding operation on the first audio information and the second audio information to obtain information to be sent;
本实施例中,将数模转换后得到的第一音频信息及第二音频信息通过IIS总线发送至编码器,编码器基于IIS协议的数据格式将每一个时钟周期第二音频信息的左声道信息插入至同一时钟周期所述第一音频信息的左声道信息与右声道信息之间,并将每一个时钟周期第二音频信息的右声道信息插入至同一时钟周期所述第一音频信息的右声道信息与下一时钟周期所述第一音频信息的左声道信息之间,编码后得到的数据即为所述待发送信息,如图4所示,图中DATA3为编码器生成的待发送信息,待发送信息的系统字长为33位,有效数据位为32位。In this embodiment, the first audio information and the second audio information obtained after the digital-to-analog conversion are sent to the encoder through the IIS bus, and the encoder outputs the left channel of the second audio information every clock cycle based on the data format of the IIS protocol. Information is inserted between the left channel information and the right channel information of the first audio information of the same clock cycle, and the right channel information of the second audio information of each clock cycle is inserted into the first audio of the same clock cycle. Between the right channel information of the information and the left channel information of the first audio information in the next clock cycle, the encoded data is the information to be transmitted, as shown in FIG. 4, where DATA3 is an encoder. The generated information to be sent has a system word length of 33 bits and a valid data bit of 32 bits.
步骤S140,发送所述待发送信息。Step S140: Send the information to be sent.
具体的,将待发送信息发送至发射器,发射器发射接收到的待发送信息。Specifically, the information to be sent is sent to the transmitter, and the transmitter transmits the received information to be sent.
本实施例通过获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息,接着将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,然后对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息,最后发送所述待发送信息,实现了通过一个发射器发送四个声道的数据信息,避免了采用两个无线发射模块发出四个声道的数据信息而产生发射信号的相互干扰,提高了家庭影院系统的音频效果,减少了发射器的数量,降低了成本。In this embodiment, the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are acquired, and then the acquired first channel audio information and second channel audio information are acquired. Performing analog-to-digital conversion to obtain first audio information, performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information to obtain second audio information, and then pairing the first audio information and the second audio The information is encoded to obtain information to be transmitted, and finally the information to be transmitted is transmitted, so that data information of four channels is transmitted through one transmitter, thereby avoiding data information of four channels transmitted by two wireless transmitting modules. The mutual interference of the transmitted signals increases the audio effect of the home theater system, reduces the number of transmitters, and reduces the cost.
基于第一实施例提出本发明音频信号发送方法的第二实施例,参照图5,在本实施例中,步骤S130包括:A second embodiment of the audio signal transmitting method of the present invention is proposed based on the first embodiment. Referring to FIG. 5, in the embodiment, step S130 includes:
步骤S131,分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;Step S131, respectively acquiring left channel information and right channel information of the second audio information in each clock cycle;
如图3所示,帧时钟数据信号LRCK为“1”时的数据为第二音频信息的左声道信息,帧时钟数据信号LRCK为“0” 时的数据为第二音频信息的右声道信息。如图2所示,帧时钟数据信号LRCK为“1”时的数据为第一音频信息的左声道信息,帧时钟数据信号LRCK为“0” 时的数据为第一音频信息的右声道信息。As shown in FIG. 3, the data when the frame clock data signal LRCK is "1" is the left channel information of the second audio information, and the frame clock data signal LRCK is "0". The data at the time is the right channel information of the second audio information. As shown in FIG. 2, the data when the frame clock data signal LRCK is "1" is the left channel information of the first audio information, and the frame clock data signal LRCK is "0". The data at the time is the right channel information of the first audio information.
步骤S132,基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息。Step S132, inserting left channel information of the second audio information of the same clock cycle into the left channel information of the first audio information based on the data format of the IIS protocol, and right channel information of the second audio information of the same clock cycle. Inserting the right channel information of the first audio information to generate the to-be-sent information.
如图4所示,图中DATA3为编码器生成的待发送信息,待发送信息的系统字长为33位,有效数据位为32位,也就是说本实施例中,将每一个时钟周期第二音频信息的左声道信息填入至同一时钟周期LRCK为“1”时第一音频信息中的第18-33位,将每一个时钟周期第二音频信息的右声道信息填入至同一时钟周期LRCK为“0”时第一音频信息中的第18-33位。当然本实施例中,也可以将第一音频信息的左声道信息插入同一时钟周期第二音频信息的左声道信息之前,将第一音频信息的右声道信息插入同一时钟周期第二音频信息的右声道信息之前。As shown in FIG. 4, DATA3 in the figure is information to be transmitted generated by the encoder, and the system word length of the information to be transmitted is 33 bits, and the effective data bit is 32 bits, that is, in this embodiment, each clock cycle is The left channel information of the second audio information is filled in the 18th to 33rd bits of the first audio information when the same clock cycle LRCK is "1", and the right channel information of the second audio information is filled in the same time for each clock cycle. The 18th to 33rd bits in the first audio information when the clock cycle LRCK is "0". Of course, in this embodiment, the left channel information of the first audio information may be inserted into the left channel information of the second audio information of the same clock cycle, and the right channel information of the first audio information may be inserted into the second audio of the same clock cycle. The right channel information of the message before.
本实施例中,通过分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;然后基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息,实现了根据第一音频信息及第二音频信息编码生成待发送信息,进而使得待发送信息能够通过一个发射器发送四个声道的音频数据信息,避免了采用两个无线发射模块发出四个声道的数据信息而产生发射信号的相互干扰,并且减少了发射器的数量,降低了成本。In this embodiment, the left channel information and the right channel information of the second audio information in each clock cycle are separately obtained; then the left channel information of the second audio information in the same clock cycle is based on the data format of the IIS protocol. After inserting the left channel information of the first audio information, and inserting the right channel information of the second audio information of the same clock cycle into the right channel information of the first audio information, to generate the to-be-sent information, Generating the to-be-sent information according to the first audio information and the second audio information encoding, so that the information to be transmitted can transmit the audio data information of four channels through one transmitter, thereby avoiding four channels by using two wireless transmitting modules. The data information produces mutual interference of the transmitted signals, and reduces the number of transmitters and reduces the cost.
本发明进一步提供一种音频信号接收方法。参照图6,图6为本发明音频信号接收方法第一实施例的流程示意图。The present invention further provides an audio signal receiving method. Referring to FIG. 6, FIG. 6 is a schematic flowchart diagram of a first embodiment of an audio signal receiving method according to the present invention.
在本实施例中,该音频信号接收方法包括:In this embodiment, the audio signal receiving method includes:
步骤S210,接收音频信号;Step S210, receiving an audio signal;
步骤S220,基于串行数字音频总线IIS协议对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息。Step S220, performing digital-to-analog conversion on the received audio signal based on the serial digital audio bus IIS protocol to obtain first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information. .
本实施例中,根据IIS协议对接收到的音频信号进行数模转换,其中,基于IIS协议通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息,基于IIS协议通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息;例如,在接收到的音频信号图4所示的音频信号时,第一数模转换器对每一个时钟周期LRCK为“1”时音频信号中的第2-17位的数据进行数模转换得到第一声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第2-17位的数据进行数模转换得到第二声道音频信息,第二数模转换器对每一个时钟周期LRCK为“1”时音频信号中的第18-33位的数据进行数模转换得到第三声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第18-33位的数据进行数模转换得到第四声道音频信息。In this embodiment, the received audio signal is digital-to-analog converted according to the IIS protocol, wherein the received audio signal is digital-analog converted by the first digital-to-analog converter based on the IIS protocol to obtain the first channel audio information, Second channel audio information, digital-to-analog conversion of the received audio signal by the second digital-to-analog converter based on the IIS protocol to obtain third channel audio information, fourth channel audio information; for example, in the received audio When the audio signal shown in FIG. 4 is signaled, the first digital-to-analog converter performs digital-to-analog conversion on the data of the 2-17th bit in the audio signal when the LRCK is "1" every clock cycle to obtain the first channel audio information. The second channel audio information is obtained by digital-to-analog conversion of the 2-17th bit of the audio signal when LRCK is "0" for each clock cycle, and the second digital-to-analog converter is "1" for each clock cycle LRCK. The data of the 18th to 33th bits in the audio signal is digital-to-analog converted to obtain the third-channel audio information, and the digital-to-analog conversion is performed for the data of the 18th to 33th bits in the audio signal when LRCK is "0" every clock cycle. Get the fourth sound Audio information.
本实施例中,接收音频信号;接着基于串行数字音频总线IIS协议对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息,实现了根据接收到的音频信号得到四个声道的音频数据信息,通过IIS协议减少了多接收到的音频信号进行解码的过程,提高了音频信号收发的效率,减少了接收器的数量,降低了成本。In this embodiment, the audio signal is received; then the received audio signal is digital-to-analog converted based on the serial digital audio bus IIS protocol to obtain first channel audio information, second channel audio information, and third channel audio information. And the fourth channel audio information, the audio data information of four channels is obtained according to the received audio signal, and the process of decoding the multi-received audio signal is reduced by the IIS protocol, thereby improving the efficiency of receiving and receiving the audio signal. Reduce the number of receivers and reduce costs.
基于第一实施例提出本发明音频信号接收方法的第二实施例,参照图7,在本实施例中,步骤S220包括:A second embodiment of the audio signal receiving method of the present invention is proposed based on the first embodiment. Referring to FIG. 7, in this embodiment, step S220 includes:
步骤S221,基于IIS协议的标准数据格式或左对齐数据格式通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息;Step S221, performing digital-to-analog conversion on the received audio signal by using a first digital-to-analog converter based on a standard data format or a left-aligned data format of the IIS protocol to obtain first channel audio information and second channel audio information;
例如,在接收到的音频信号图4所示的音频信号时,第一数模转换器对每一个时钟周期LRCK为“1”时音频信号中的第2-17位的数据进行数模转换得到第一声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第2-17位的数据进行数模转换得到第二声道音频信息。For example, when the received audio signal is the audio signal shown in FIG. 4, the first digital-to-analog converter performs digital-to-analog conversion on the 2-17th bit of the audio signal when the LRCK is "1" every clock cycle. The first channel audio information is digital-analog converted to the 2-17th bit of the audio signal when the LRCK is "0" every clock cycle to obtain the second channel audio information.
步骤S222,基于IIS协议的右对齐数据格式通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息。Step S222, performing digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the right-aligned data format of the IIS protocol to obtain third-channel audio information and fourth-channel audio information.
例如,在接收到的音频信号图4所示的音频信号时,第二数模转换器对每一个时钟周期LRCK为“1”时音频信号中的第18-33位的数据进行数模转换得到第三声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第18-33位的数据进行数模转换得到第四声道音频信息。For example, when the received audio signal is the audio signal shown in FIG. 4, the second digital-to-analog converter performs digital-to-analog conversion on the data of the 18-33 bits in the audio signal when the LRCK is "1" every clock cycle. The third channel audio information is digital-to-analog converted to the data of the 18th to 33th bits in the audio signal when the LRCK is "0" every clock cycle to obtain the fourth channel audio information.
本实施例通过基于IIS协议的标准数据格式或左对齐数据格式通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息;基于IIS协议的右对齐数据格式通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息,通过IIS协议减少了多接收到的音频信号进行解码的过程,提高了音频信号收发的效率。In this embodiment, the received audio signal is digital-analog converted by the first digital-to-analog converter by using a standard data format or a left-aligned data format based on the IIS protocol to obtain first channel audio information and second channel audio information; The right-aligned data format of the IIS protocol performs digital-to-analog conversion on the received audio signal through the second digital-to-analog converter to obtain third-channel audio information and fourth-channel audio information, and reduces the received audio through the IIS protocol. The process of decoding the signal improves the efficiency of audio signal transmission and reception.
为便于方案的理解,以下以家庭影院系统为例对上述实施例进行具体说明,参照图8,第一声道音频信息与第二声道音频信息通过第一进行模数转换器100获得第一音频信息,第三声道音频信息及第四声道音频信息通过第二进行模数转换器200获得第二音频信息;然后编码器300对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息,发射器400发射待发送信息;家庭影院系统的接收器500接收到音频信号即发射器400发射的待发送信息时,第一数模转换器600对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息,第二数模转换器700对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息。In order to facilitate the understanding of the solution, the above embodiment is specifically described by taking a home theater system as an example. Referring to FIG. 8, the first channel audio information and the second channel audio information are obtained by the first performing analog-to-digital converter 100. The audio information, the third channel audio information, and the fourth channel audio information are obtained by the second analog-to-digital converter 200 to obtain the second audio information; and then the encoder 300 performs the encoding operation on the first audio information and the second audio information. To obtain the information to be transmitted, the transmitter 400 transmits the information to be transmitted; when the receiver 500 of the home theater system receives the audio signal, that is, the information to be transmitted transmitted by the transmitter 400, the first digital-to-analog converter 600 performs the received audio signal. Digital-to-analog conversion to obtain first channel audio information, second channel audio information, and second digital-to-analog converter 700 digital-to-analog the received audio signal to obtain third-channel audio information, fourth-channel audio information.
本发明进一步提供一种音频信号发送装置。参照图9,图9为本发明音频信号发送装置第一实施例的功能模块示意图。The present invention further provides an audio signal transmitting apparatus. Referring to FIG. 9, FIG. 9 is a schematic diagram of functional modules of a first embodiment of an audio signal transmitting apparatus according to the present invention.
在本实施例中,该音频信号发送装置包括:In this embodiment, the audio signal sending apparatus includes:
获取模块110,用于获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息;The obtaining module 110 is configured to acquire first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information;
其中,第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息分别为左声道环绕音频信息、右声道环绕音频信息、左声道低音信息及右声道低音信息,当然第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息还可以分别为左声道低音信息、右声道低音信息、左声道环绕音频信息及右声道环绕音频信息。The first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are left channel surround audio information, right channel surround audio information, and left channel bass information, respectively. And the right channel bass information, of course, the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information may also be left channel bass information, right channel bass information, respectively Left channel surround audio information and right channel surround audio information.
模数转换模块120,用于将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,其中,所述第一音频信息与第二音频信息均为串行数字音频总线IIS协议的数据格式;The analog-to-digital conversion module 120 is configured to perform analog-to-digital conversion of the acquired first channel audio information and second channel audio information to obtain first audio information, and the acquired third channel audio information and fourth channel audio The information is subjected to analog-to-digital conversion to obtain second audio information, wherein the first audio information and the second audio information are data formats of a serial digital audio bus IIS protocol;
其中,IIS总线拥有三条数据信号线:帧时钟数据信号LRCK,用于切换左右声道的数据,帧时钟数据信号LRCK为“1”表示正在传输的是左声道的数据,帧时钟数据信号LRCK为“0”则表示正在传输的是右声道的数据;位时钟BCK,即对应数字音频的每一位数据,BCK都有1个脉冲;串行数据DATA,就是用二进制补码表示的音频数据,IIS协议的数据格式可分为左对齐数据格式、标准数据格式和右对齐数据格式。本实施例中,将第一声道音频信息和第二声道音频信息发送至第一模数转换器进行模数转换,经过模数转换后得到第一音频信息,其中,第一模数转换器的数据输出格式为IIS协议的标准数据格式或者左对齐数据格式,系统字长为33位,有效数据位为16位,进而使得第一音频信息的数据格式为IIS协议的标准数据格式或者左对齐数据格式,系统字长为33位,有效数据位也为16位,如图2所示,图中DATA1为第一音频信息,其数据格式为IIS协议的标准数据格式,其中,第一音频信息的第1位以及第18-33位数据均为无效数据;将第三声道音频信息和第四声道音频信息发送至第二模数转换器进行模数转换,经过模数转换后得到第二音频信息,第二模数转换器的数据输出格式为IIS协议的右对齐数据格式,进而使得第二音频信息的数据格式为IIS协议的右对齐数据格式,如3图所示,图中DATA2为第二音频信息,其数据格式为IIS协议的右对齐数据格式,其中,第二音频信息的第2-17位数据均为无效数据。The IIS bus has three data signal lines: a frame clock data signal LRCK for switching data of the left and right channels, a frame clock data signal LRCK of "1" indicating that the data of the left channel is being transmitted, and the frame clock data signal LRCK When it is "0", it means that the data of the right channel is being transmitted; the bit clock BCK, that is, every bit of data corresponding to the digital audio, BCK has one pulse; the serial data DATA is the audio represented by the two's complement. Data, the data format of the IIS protocol can be divided into a left-aligned data format, a standard data format, and a right-aligned data format. In this embodiment, the first channel audio information and the second channel audio information are sent to the first analog-to-digital converter for analog-to-digital conversion, and the first audio information is obtained after the analog-to-digital conversion, wherein the first analog-to-digital conversion The data output format of the device is the standard data format of the IIS protocol or the left-aligned data format. The system word length is 33 bits, and the valid data bit is 16 bits, so that the data format of the first audio information is the standard data format of the IIS protocol or left. Align the data format, the system word length is 33 bits, and the valid data bit is also 16 bits, as shown in Figure 2. In the figure, DATA1 is the first audio information, and the data format is the standard data format of the IIS protocol, wherein the first audio The first bit and the 18th-33th bit of the information are invalid data; the third channel audio information and the fourth channel audio information are sent to the second analog to digital converter for analog to digital conversion, and after analog to digital conversion, The second audio information, the data output format of the second analog-to-digital converter is a right-aligned data format of the IIS protocol, so that the data format of the second audio information is a right-aligned data format of the IIS protocol, such as 3 As shown in the figure right-justified data DATA2 to the second audio format information, the data format for IIS protocol, wherein the first bit data of the second audio information 2-17 are invalid data.
编码模块130,用于对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息;The encoding module 130 is configured to perform an encoding operation on the first audio information and the second audio information to obtain information to be sent.
本实施例中,将数模转换后得到的第一音频信息及第二音频信息通过IIS总线发送至编码器,编码模块130基于IIS协议的数据格式将每一个时钟周期第二音频信息的左声道信息插入至同一时钟周期所述第一音频信息的左声道信息与右声道信息之间,并将每一个时钟周期第二音频信息的右声道信息插入至同一时钟周期所述第一音频信息的右声道信息与下一时钟周期所述第一音频信息的左声道信息之间,编码后得到的数据即为所述待发送信息,如图4所示,图中DATA3为编码器生成的待发送信息,待发送信息的系统字长为33位,有效数据位为32位。In this embodiment, the first audio information and the second audio information obtained after the digital-to-analog conversion are sent to the encoder through the IIS bus, and the encoding module 130 rotates the left audio information of the second audio information every clock cycle based on the data format of the IIS protocol. The channel information is inserted between the left channel information and the right channel information of the first audio information of the same clock cycle, and the right channel information of the second audio information of each clock cycle is inserted into the same clock cycle. Between the right channel information of the audio information and the left channel information of the first audio information in the next clock cycle, the encoded data is the information to be transmitted, as shown in FIG. 4, where DATA3 is encoded. The information to be sent generated by the device, the system word length of the information to be transmitted is 33 bits, and the valid data bit is 32 bits.
发送模块140,用于发送所述待发送信息。The sending module 140 is configured to send the to-be-sent information.
具体的,发送模块140将待发送信息发送至发射器,发射器发射接收到的待发送信息。Specifically, the sending module 140 sends the information to be sent to the transmitter, and the transmitter transmits the received information to be sent.
本实施例通过获取模块110获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息,接着模数转换模块120将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,然后编码模块130对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息,最后发送模块140发送所述待发送信息,实现了通过一个发射器发送四个声道的数据信息,避免了采用两个无线发射模块发出四个声道的数据信息而产生发射信号的相互干扰,提高了家庭影院系统的音频效果,减少了发射器的数量,降低了成本。In this embodiment, the first channel audio information, the second channel audio information, the third channel audio information, and the fourth channel audio information are acquired by the obtaining module 110, and then the first channel audio that the analog to digital conversion module 120 will acquire is obtained. The information and the second channel audio information are subjected to analog-to-digital conversion to obtain first audio information, and the obtained third channel audio information and fourth channel audio information are analog-to-digital converted to obtain second audio information, and then the encoding module 130 Performing an encoding operation on the first audio information and the second audio information to obtain information to be transmitted, and finally sending the module 140 to send the information to be sent, thereby implementing data information of four channels transmitted through one transmitter, thereby avoiding adopting The two wireless transmitting modules emit four channels of data information to generate mutual interference of the transmitted signals, which improves the audio effect of the home theater system, reduces the number of transmitters, and reduces the cost.
基于第一实施例提出本发明音频信号发送装置的第二实施例,参照图10,在本实施例中,编码模块130包括:A second embodiment of the audio signal transmitting apparatus of the present invention is proposed based on the first embodiment. Referring to FIG. 10, in the embodiment, the encoding module 130 includes:
获取单元131,用于分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;The obtaining unit 131 is configured to separately acquire left channel information and right channel information of the second audio information in each clock cycle;
如图3所示,帧时钟数据信号LRCK为“1”时的数据为第二音频信息的左声道信息,帧时钟数据信号LRCK为“0” 时的数据为第二音频信息的右声道信息。如图2所示,帧时钟数据信号LRCK为“1”时的数据为第一音频信息的左声道信息,帧时钟数据信号LRCK为“0” 时的数据为第一音频信息的右声道信息。As shown in FIG. 3, the data when the frame clock data signal LRCK is "1" is the left channel information of the second audio information, and the frame clock data signal LRCK is "0". The data at the time is the right channel information of the second audio information. As shown in FIG. 2, the data when the frame clock data signal LRCK is "1" is the left channel information of the first audio information, and the frame clock data signal LRCK is "0". The data at the time is the right channel information of the first audio information.
编码单元132,用于基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息。The encoding unit 132 is configured to insert the left channel information of the second audio information of the same clock cycle into the left channel information of the first audio information based on the data format of the IIS protocol, and to the right of the second audio information of the same clock cycle. The channel information is inserted after the right channel information of the first audio information to generate the to-be-sent information.
如图4所示,图中DATA3为编码器生成的待发送信息,待发送信息的系统字长为33位,有效数据位为32位,也就是说本实施例中,将每一个时钟周期第二音频信息的左声道信息填入至同一时钟周期LRCK为“1”时第一音频信息中的第18-33位,将每一个时钟周期第二音频信息的右声道信息填入至同一时钟周期LRCK为“0”时第一音频信息中的第18-33位。当然本实施例中,也可以将第一音频信息的左声道信息插入同一时钟周期第二音频信息的左声道信息之前,将第一音频信息的右声道信息插入同一时钟周期第二音频信息的右声道信息之前。As shown in FIG. 4, DATA3 in the figure is information to be transmitted generated by the encoder, and the system word length of the information to be transmitted is 33 bits, and the effective data bit is 32 bits, that is, in this embodiment, each clock cycle is The left channel information of the second audio information is filled in the 18th to 33rd bits of the first audio information when the same clock cycle LRCK is "1", and the right channel information of the second audio information is filled in the same time for each clock cycle. The 18th to 33rd bits in the first audio information when the clock cycle LRCK is "0". Of course, in this embodiment, the left channel information of the first audio information may be inserted into the left channel information of the second audio information of the same clock cycle, and the right channel information of the first audio information may be inserted into the second audio of the same clock cycle. The right channel information of the message before.
本实施例中,通过获取单元131分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;然后编码单元132基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息,实现了根据第一音频信息及第二音频信息编码生成待发送信息,进而使得待发送信息能够通过一个发射器发送四个声道的音频数据信息,避免了采用两个无线发射模块发出四个声道的数据信息而产生发射信号的相互干扰,并且减少了发射器的数量,降低了成本。In this embodiment, the left channel information and the right channel information of the second audio information in each clock cycle are respectively acquired by the obtaining unit 131; then the encoding unit 132 performs the second audio of the same clock cycle based on the data format of the IIS protocol. After the left channel information of the information is inserted into the left channel information of the first audio information, and the right channel information of the second audio information of the same clock cycle is inserted into the right channel information of the first audio information, to generate the The sending of the information is implemented, and the information to be sent is generated according to the first audio information and the second audio information, so that the information to be transmitted can transmit the audio data information of four channels through one transmitter, thereby avoiding the use of two wireless transmissions. The module emits four channels of data information to generate mutual interference of the transmitted signals, and reduces the number of transmitters and reduces the cost.
本发明进一步提供一种音频信号接收装置。参照图11,图11为本发明音频信号接收装置第一实施例的功能模块示意图。The present invention further provides an audio signal receiving apparatus. Referring to FIG. 11, FIG. 11 is a schematic diagram of functional modules of a first embodiment of an audio signal receiving apparatus according to the present invention.
在本实施例中,该音频信号接收装置包括:In this embodiment, the audio signal receiving apparatus includes:
接收模块210,用于接收音频信号;The receiving module 210 is configured to receive an audio signal;
数模转换模块220,用于基于串行数字音频总线IIS协议对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息。The digital-to-analog conversion module 220 is configured to perform digital-to-analog conversion on the received audio signal based on the serial digital audio bus IIS protocol to obtain first channel audio information, second channel audio information, third channel audio information, and Four channel audio information.
本实施例中,数模转换模块220根据IIS协议对接收到的音频信号进行数模转换,其中,数模转换模块220基于IIS协议通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息,基于IIS协议通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息;例如,在接收到的音频信号图4所示的音频信号时,第一数模转换器对每一个时钟周期LRCK为“1”时音频信号中的第2-17位的数据进行数模转换得到第一声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第2-17位的数据进行数模转换得到第二声道音频信息,第二数模转换器对每一个时钟周期LRCK为“1”时音频信号中的第18-33位的数据进行数模转换得到第三声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第18-33位的数据进行数模转换得到第四声道音频信息。In this embodiment, the digital-to-analog conversion module 220 performs digital-to-analog conversion on the received audio signal according to the IIS protocol, wherein the digital-to-analog conversion module 220 performs digital-analog on the received audio signal by using the first digital-to-analog converter based on the IIS protocol. Converting to obtain first channel audio information, second channel audio information, performing digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the IIS protocol to obtain third channel audio information, fourth channel Audio information; for example, when the received audio signal is the audio signal shown in FIG. 4, the first digital-to-analog converter counts the data of the 2-17th bit in the audio signal when each clock cycle LRCK is "1" The first channel audio information is obtained by the mode conversion, and the second channel audio information is obtained by digital-to-analog conversion of the 2-17th bit data in the audio signal when each clock cycle LRCK is “0”, and the second digital-to-analog converter Digital-to-analog conversion of the 18-33-bit data in the audio signal when LRCK is "1" every clock cycle to obtain the third-channel audio information, and the audio signal is "0" when LRCK is "0" for each clock cycle. 18-33 Digital to analog conversion data to obtain a fourth channel audio information.
本实施例中,接收模块210接收音频信号;接着数模转换模块220基于串行数字音频总线IIS协议对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息,实现了根据接收到的音频信号得到四个声道的音频数据信息,通过IIS协议减少了多接收到的音频信号进行解码的过程,提高了音频信号收发的效率,减少了接收器的数量,降低了成本。In this embodiment, the receiving module 210 receives the audio signal; then the digital-to-analog conversion module 220 performs digital-to-analog conversion on the received audio signal based on the serial digital audio bus IIS protocol to obtain the first channel audio information and the second channel audio. The information, the third channel audio information and the fourth channel audio information realize that four channels of audio data information are obtained according to the received audio signal, and the process of decoding the multi-received audio signal is reduced by the IIS protocol. Improve the efficiency of audio signal transmission and reception, reduce the number of receivers, and reduce costs.
基于第一实施例提出本发明音频信号接收装置的第二实施例,参照图12,在本实施例中,数模转换模块220包括:A second embodiment of the audio signal receiving apparatus of the present invention is proposed based on the first embodiment. Referring to FIG. 12, in the embodiment, the digital-to-analog conversion module 220 includes:
第一数模转换单元221,用于基于IIS协议的标准数据格式或左对齐数据格式通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息;The first digital-to-analog conversion unit 221 is configured to perform digital-to-analog conversion on the received audio signal by using a first digital-to-analog converter based on a standard data format or a left-aligned data format of the IIS protocol to obtain first channel audio information, and second. Channel audio information;
例如,在接收到的音频信号图4所示的音频信号时,第一数模转换单元221对每一个时钟周期LRCK为“1”时音频信号中的第2-17位的数据进行数模转换得到第一声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第2-17位的数据进行数模转换得到第二声道音频信息。For example, when the received audio signal is the audio signal shown in FIG. 4, the first digital-to-analog conversion unit 221 performs digital-to-analog conversion on the data of the 2-17th bit in the audio signal when the LRCK is "1" every clock cycle. The first channel audio information is obtained, and the data of the 2-17th bit in the audio signal is digital-to-analog converted to the second channel audio information when the LRCK is "0" every clock cycle.
第二数模转换单元222,用于基于IIS协议的右对齐数据格式通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息。The second digital-to-analog conversion unit 222 is configured to perform digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the right-aligned data format of the IIS protocol to obtain third-channel audio information and fourth-channel audio information. .
例如,在接收到的音频信号图4所示的音频信号时,第二数模转换单元222对每一个时钟周期LRCK为“1”时音频信号中的第18-33位的数据进行数模转换得到第三声道音频信息,对每一个时钟周期LRCK为“0”时音频信号中的第18-33位的数据进行数模转换得到第四声道音频信息。For example, when the received audio signal is the audio signal shown in FIG. 4, the second digital-to-analog conversion unit 222 performs digital-to-analog conversion on the data of the 18-33 bits in the audio signal when each clock cycle LRCK is "1". The third channel audio information is obtained, and the data of the 18th to 33th bits in the audio signal is digital-analog converted to the fourth channel audio information when the LRCK is "0" every clock cycle.
本实施例通过第一数模转换单元221基于IIS协议的标准数据格式或左对齐数据格式通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息;第二数模转换单元222基于IIS协议的右对齐数据格式通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息,通过IIS协议减少了多接收到的音频信号进行解码的过程,提高了音频信号收发的效率。In this embodiment, the first digital-to-analog conversion unit 221 performs digital-to-analog conversion on the received audio signal by using the first digital-to-analog converter based on the standard data format or the left-aligned data format of the IIS protocol to obtain the first channel audio information, Two-channel audio information; the second digital-to-analog conversion unit 222 performs digital-to-analog conversion on the received audio signal by using a second digital-to-analog converter based on the right-aligned data format of the IIS protocol to obtain third-channel audio information and fourth sound. The channel audio information reduces the process of decoding the received audio signal through the IIS protocol, and improves the efficiency of the audio signal transmission and reception.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (9)

  1. 一种音频信号发送方法,其特征在于,所述音频信号发送方法包括以下步骤:An audio signal transmitting method, characterized in that the audio signal transmitting method comprises the following steps:
    获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息;Acquiring first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information;
    将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,其中,所述第一音频信息与第二音频信息均为串行数字音频总线IIS协议的数据格式;Performing analog-to-digital conversion of the acquired first channel audio information and second channel audio information to obtain first audio information, and performing analog-to-digital conversion on the acquired third channel audio information and fourth channel audio information to obtain Second audio information, wherein the first audio information and the second audio information are data formats of a serial digital audio bus IIS protocol;
    对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息;Performing an encoding operation on the first audio information and the second audio information to obtain information to be transmitted;
    发送所述待发送信息。Sending the to-be-sent information.
  2. 如权利要求1所述的音频信号发送方法,其特征在于,所述基于串行数字音频总线IIS协议对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息的步骤包括:The audio signal transmitting method according to claim 1, wherein the step of encoding the first audio information and the second audio information based on the serial digital audio bus IIS protocol to obtain information to be transmitted comprises:
    分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;Obtaining left channel information and right channel information of the second audio information in each clock cycle respectively;
    基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息。The data format based on the IIS protocol inserts the left channel information of the second audio information of the same clock cycle into the left channel information of the first audio information, and inserts the right channel information of the second audio information of the same clock cycle into the The right channel information of the first audio information is followed by the information to be transmitted.
  3. 如权利要求1所述的音频信号发送方法,其特征在于,所述第一音频信息的数据格式为IIS协议的标准数据格式或者左对齐数据格式,所述第二音频信息的数据格式为IIS协议的右对齐数据格式。The audio signal transmitting method according to claim 1, wherein the data format of the first audio information is a standard data format of the IIS protocol or a left-aligned data format, and the data format of the second audio information is an IIS protocol. Right-aligned data format.
  4. 如权利要求3所述的音频信号发送方法,其特征在于,所述基于串行数字音频总线IIS协议对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息的步骤包括:The audio signal transmitting method according to claim 3, wherein the step of encoding the first audio information and the second audio information based on the serial digital audio bus IIS protocol to obtain information to be transmitted comprises:
    分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;Obtaining left channel information and right channel information of the second audio information in each clock cycle respectively;
    基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息。The data format based on the IIS protocol inserts the left channel information of the second audio information of the same clock cycle into the left channel information of the first audio information, and inserts the right channel information of the second audio information of the same clock cycle into the The right channel information of the first audio information is followed by the information to be transmitted.
  5. 一种音频信号接收方法,其特征在于,所述音频信号接收方法包括以下步骤:An audio signal receiving method, characterized in that the audio signal receiving method comprises the following steps:
    接收音频信号;Receiving an audio signal;
    基于IIS协议的标准数据格式或左对齐数据格式通过第一数模转换器对接收到的音频信号进行数模转换以得到第一声道音频信息、第二声道音频信息;The standard data format or the left-aligned data format based on the IIS protocol performs digital-to-analog conversion on the received audio signal by the first digital-to-analog converter to obtain first channel audio information and second channel audio information;
    基于IIS协议的右对齐数据格式通过第二数模转换器对接收到的音频信号进行数模转换以得到第三声道音频信息、第四声道音频信息。The right-aligned data format based on the IIS protocol performs digital-to-analog conversion on the received audio signal by the second digital-to-analog converter to obtain third-channel audio information and fourth-channel audio information.
  6. 一种音频信号发送装置,其特征在于,所述音频信号发送装置包括:An audio signal transmitting apparatus, wherein the audio signal transmitting apparatus comprises:
    获取模块,用于获取第一声道音频信息、第二声道音频信息、第三声道音频信息及第四声道音频信息;An acquiring module, configured to acquire first channel audio information, second channel audio information, third channel audio information, and fourth channel audio information;
    模数转换模块,用于将获取的第一声道音频信息和第二声道音频信息进行模数转换以获得第一音频信息,将获取的第三声道音频信息和第四声道音频信息进行模数转换以获得第二音频信息,其中,所述第一音频信息与第二音频信息均为串行数字音频总线IIS协议的数据格式;And an analog-to-digital conversion module, configured to perform analog-to-digital conversion on the acquired first channel audio information and second channel audio information to obtain first audio information, and the acquired third channel audio information and fourth channel audio information Performing analog-to-digital conversion to obtain second audio information, wherein the first audio information and the second audio information are data formats of a serial digital audio bus IIS protocol;
    编码模块,用于对所述第一音频信息及第二音频信息进行编码操作以得到待发送信息;An encoding module, configured to perform an encoding operation on the first audio information and the second audio information to obtain information to be sent;
    发送模块,用于发送所述待发送信息。And a sending module, configured to send the to-be-sent information.
  7. 如权利要求6所述的音频信号发送装置,其特征在于,所述编码模块包括:The audio signal transmitting apparatus according to claim 6, wherein the encoding module comprises:
    获取单元,用于分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;And an acquiring unit, configured to separately acquire left channel information and right channel information of the second audio information in each clock cycle;
    编码单元,用于基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息。a coding unit, configured to insert left channel information of second audio information of the same clock cycle into left channel information of the first audio information, and right sound of second audio information of the same clock cycle, according to a data format of the IIS protocol The track information is inserted after the right channel information of the first audio information to generate the to-be-sent information.
  8. 如权利要求6所述的音频信号发送装置,其特征在于,所述第一音频信息的数据格式为IIS协议的标准数据格式或者左对齐数据格式,所述第二音频信息的数据格式为IIS协议的右对齐数据格式。The audio signal transmitting apparatus according to claim 6, wherein the data format of the first audio information is a standard data format of the IIS protocol or a left-aligned data format, and the data format of the second audio information is an IIS protocol. Right-aligned data format.
  9. 如权利要求8所述的音频信号发送装置,其特征在于,所述编码模块包括:The audio signal transmitting apparatus according to claim 8, wherein the encoding module comprises:
    获取单元,用于分别获取各个时钟周期内所述第二音频信息的左声道信息与右声道信息;And an acquiring unit, configured to separately acquire left channel information and right channel information of the second audio information in each clock cycle;
    编码单元,用于基于IIS协议的数据格式将同一时钟周期的第二音频信息的左声道信息插入第一音频信息的左声道信息之后,并将同一时钟周期的第二音频信息的右声道信息插入所述第一音频信息的右声道信息之后,以生成所述待发送信息。a coding unit, configured to insert left channel information of second audio information of the same clock cycle into left channel information of the first audio information, and right sound of second audio information of the same clock cycle, according to a data format of the IIS protocol The track information is inserted after the right channel information of the first audio information to generate the to-be-sent information.
PCT/CN2016/084683 2015-12-30 2016-06-03 Method and device for transmitting and receiving audio signals WO2017113604A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511024776.8 2015-12-30
CN201511024776.8A CN105472509B (en) 2015-12-30 2015-12-30 Audio signal sending, receiving method and device

Publications (1)

Publication Number Publication Date
WO2017113604A1 true WO2017113604A1 (en) 2017-07-06

Family

ID=55609717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084683 WO2017113604A1 (en) 2015-12-30 2016-06-03 Method and device for transmitting and receiving audio signals

Country Status (2)

Country Link
CN (1) CN105472509B (en)
WO (1) WO2017113604A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472509B (en) * 2015-12-30 2019-08-16 深圳Tcl数字技术有限公司 Audio signal sending, receiving method and device
CN112216310B (en) * 2019-07-09 2021-10-26 海信视像科技股份有限公司 Audio processing method and device and multi-channel system
CN112218153B (en) * 2019-07-12 2021-11-02 海信视像科技股份有限公司 Display device, acoustic apparatus, and IIS channel interface circuit for multiple data channels
CN110838298A (en) * 2019-11-15 2020-02-25 闻泰科技(无锡)有限公司 Method, device and equipment for processing multi-channel audio data and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988036A (en) * 2006-12-21 2007-06-27 北京中星微电子有限公司 Audio playing device and audio playing method
US7483538B2 (en) * 2004-03-02 2009-01-27 Ksc Industries, Inc. Wireless and wired speaker hub for a home theater system
CN201797593U (en) * 2010-09-28 2011-04-13 广州爱威音响有限公司 Sounder realizing surround sound and super bass wireless transmission
CN201878312U (en) * 2010-09-29 2011-06-22 广州爱威音响有限公司 Sounder for realizing hybrid-transmission and separation of surround sound and super bass
CN104661158A (en) * 2013-11-25 2015-05-27 华为技术有限公司 Stereophone, terminal and audio signal processing method of stereophone and terminal
CN105472509A (en) * 2015-12-30 2016-04-06 深圳Tcl数字技术有限公司 Audio signal sending and receiving method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101116617B1 (en) * 2007-07-20 2012-03-07 삼성전자주식회사 Method and apparatus for transmitting and processing audio with I2S format
CN201204046Y (en) * 2008-03-06 2009-03-04 无锡盈泰科技有限公司 I<2>S audio interface circuit with high time accuracy
KR20090127993A (en) * 2008-06-10 2009-12-15 주식회사 현대오토넷 Merhod of treating multiple sound sources, head unit and amp
CN103079142B (en) * 2012-12-21 2016-05-11 国光电器股份有限公司 A kind of wireless bass big gun bass time delay adjustable system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7483538B2 (en) * 2004-03-02 2009-01-27 Ksc Industries, Inc. Wireless and wired speaker hub for a home theater system
CN1988036A (en) * 2006-12-21 2007-06-27 北京中星微电子有限公司 Audio playing device and audio playing method
CN201797593U (en) * 2010-09-28 2011-04-13 广州爱威音响有限公司 Sounder realizing surround sound and super bass wireless transmission
CN201878312U (en) * 2010-09-29 2011-06-22 广州爱威音响有限公司 Sounder for realizing hybrid-transmission and separation of surround sound and super bass
CN104661158A (en) * 2013-11-25 2015-05-27 华为技术有限公司 Stereophone, terminal and audio signal processing method of stereophone and terminal
CN105472509A (en) * 2015-12-30 2016-04-06 深圳Tcl数字技术有限公司 Audio signal sending and receiving method and device

Also Published As

Publication number Publication date
CN105472509B (en) 2019-08-16
CN105472509A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
WO2017113604A1 (en) Method and device for transmitting and receiving audio signals
WO2015130077A1 (en) Signal multiplexing device and signal multiplexing method using layered division multiplexing
WO2019103431A1 (en) Apparatus and method for controlling media output level
WO2012093894A2 (en) Method and apparatus for channel encoding and decoding in a broadcasting/communication system using low density parity-check codes
WO2013028023A2 (en) Apparatus and method for scheduling using beam scanning in beamformed wireless communication system
WO2009145588A2 (en) Method and apparatus for transmitting/receiving broadcasting-communication data
WO2013055181A1 (en) Apparatus and method for transmitting/receiving forward error correction packet in mobile communication system
EP2767049A1 (en) Apparatus and method for transmitting/receiving forward error correction packet in mobile communication system
WO2013165226A1 (en) Method and apparatus for transmitting pusch in traffic adaptation system
WO2017084301A1 (en) Audio data playing method and apparatus, and smart television
WO2011139133A2 (en) Method and apparatus for channel coding and decoding in a communication system using a low-density parity-check code
WO2016003221A1 (en) Signal multiplexing device and signal multiplexing method using layered division multiplexing
ES2193897T1 (en) FAST ADAPTIVE POWER CONTROL FOR A VARIABLE MULTI FREQUENCY COMMUNICATIONS SYSTEM.
WO2014082266A1 (en) Method and system for uplink mu-mimo
WO2010008229A1 (en) Multi-object audio encoding and decoding apparatus supporting post down-mix signal
WO2017016310A1 (en) Method and apparatus for dynamically configuring remote control function data
WO2019093855A1 (en) Encoding method on basis of polar code in order to support harq, and wireless device using same
WO2013172691A1 (en) Method and apparatus for transmitting and receiving harq feedback of downlink data
WO2018024012A1 (en) Remote controller, and projection method
WO2015027458A1 (en) Method, user equipment and network side device for non-access stratum message processing
WO2017096764A1 (en) Audio data output method and device
WO2019153457A1 (en) Channel preemption system and method
WO2017035786A1 (en) Method, device, and system for playing and checking streaming media file
WO2016095253A1 (en) Method and apparatus for controlling radio frequency power
WO2017032120A1 (en) Playing processing method and apparatus for audio switching

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: 16880412

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26/11/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16880412

Country of ref document: EP

Kind code of ref document: A1