CN104734740B - A kind of wireless audio data communications method and device - Google Patents
A kind of wireless audio data communications method and device Download PDFInfo
- Publication number
- CN104734740B CN104734740B CN201310713575.3A CN201310713575A CN104734740B CN 104734740 B CN104734740 B CN 104734740B CN 201310713575 A CN201310713575 A CN 201310713575A CN 104734740 B CN104734740 B CN 104734740B
- Authority
- CN
- China
- Prior art keywords
- audio data
- data
- unit
- audio
- source information
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims abstract description 40
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000005540 biological transmission Effects 0.000 claims abstract description 27
- 238000012545 processing Methods 0.000 claims description 14
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000003993 interaction Effects 0.000 abstract description 15
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000001934 delay Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明适用于通信领域,提供了一种无线音频数据通信方法及装置,该方法包括:对原始数据进行编码,生成第一音频数据;在所述第一音频数据中设置一位标志位,所述标志位包含发送源信息;开始发送所述第一音频数据;初始化音频接收单元;完成所述第一音频数据发送。本发明在音频数据发送完成之前即对音频接收单元进行初始化,并一直保持音频接收单元的开启状态,缩短了数据交互的时间,同时还通过标志位识别发送端信息,以滤除目标外的无效信息,进一步提高了数据传输效率。
The present invention is applicable to the communication field, and provides a wireless audio data communication method and device, the method comprising: encoding the original data to generate first audio data; setting a flag bit in the first audio data, so that The flag bit contains sending source information; start sending the first audio data; initialize the audio receiving unit; complete sending the first audio data. The present invention initializes the audio receiving unit before the audio data transmission is completed, and keeps the audio receiving unit in the open state, shortens the time for data interaction, and at the same time identifies the sending end information through the flag bit to filter out the invalid ones outside the target information, further improving the efficiency of data transmission.
Description
技术领域technical field
本发明属于通信领域,尤其涉及一种无线音频数据通信方法及装置。The invention belongs to the communication field, and in particular relates to a wireless audio data communication method and device.
背景技术Background technique
目前,基于移动终端的无线音频数据通信系统中,移动终端扮演着发送端或接收端或两者兼具的角色,交互的流程通常是移动终端发送音频数据,发送完毕之后打开自身的录音系统,等待接收对端发送的音频数据,然后进行录音、解码等处理。At present, in the wireless audio data communication system based on the mobile terminal, the mobile terminal plays the role of the sending end or the receiving end or both. The interaction process is usually that the mobile terminal sends audio data, and after the transmission is completed, it turns on its own recording system. Wait to receive the audio data sent by the peer, and then perform recording, decoding and other processing.
但是,由于移动终端初始化录音系统仍然需要一定的时间,通常为几十至几百毫秒,这取决于该移动终端的性能优劣,因此,这段时间的存在大大延迟了通信双方的交互时间,降低了无线音频数据通信的效率。However, since the mobile terminal still needs a certain amount of time to initialize the recording system, usually tens to hundreds of milliseconds, depending on the performance of the mobile terminal, the existence of this period of time greatly delays the interaction time between the two parties. The efficiency of wireless audio data communication is reduced.
发明内容Contents of the invention
本发明实施例的目的在于提供一种无线音频数据通信方法,旨在解决目前无线音频数据通信效率低的问题。The purpose of the embodiments of the present invention is to provide a wireless audio data communication method, aiming at solving the problem of low efficiency of wireless audio data communication at present.
本发明实施例是这样实现的,一种无线音频数据通信方法,包括下述步骤:The embodiment of the present invention is achieved in this way, a wireless audio data communication method, comprising the following steps:
对原始数据进行编码,生成第一音频数据;Encoding the original data to generate first audio data;
在所述第一音频数据中设置一位标志位,所述标志位包含发送源信息;Setting a flag bit in the first audio data, the flag bit including sending source information;
开始发送所述第一音频数据;start sending the first audio data;
初始化音频接收单元;Initialize the audio receiving unit;
完成所述第一音频数据发送。Finish sending the first audio data.
本发明实施例的另一目的在于提供一种无线音频数据通信装置,所述装置包括:Another object of the embodiments of the present invention is to provide a wireless audio data communication device, the device comprising:
第一编码单元,用于对原始数据进行编码,生成第一音频数据,并在所述第一音频数据中设置一位标志位,所述标志位包含发送源信息;The first encoding unit is configured to encode the original data, generate first audio data, and set a flag bit in the first audio data, the flag bit includes sending source information;
音频接收单元,用于接收外部传输的音频数据;an audio receiving unit for receiving externally transmitted audio data;
音频发送单元,用于传输第一音频数据到外部;an audio sending unit, configured to transmit the first audio data to the outside;
初始化控制单元,用于在首次开始发送所述第一音频数据之后,控制所述音频接收单元初始化。The initialization control unit is configured to control the audio receiving unit to initialize after the first start of sending the first audio data.
本发明实施例在开始发送音频数据之后,音频数据发送完成之前即对音频接收单元进行初始化,并一直保持音频接收单元的开启状态,使得在发送后的第一时间内完成接收音频数据的准备工作,可以及时接收到音频数据,并且当再次接收音频数据时无需再初始化音频接收单元,大大缩短了通信双端进行数据交互的时间,提高了通信传输速度,同时还通过标志位识别发送端信息,以滤除目标外的无效信息,进一步提高了数据传输效率。。In the embodiment of the present invention, the audio receiving unit is initialized after the audio data is sent and before the audio data is sent, and the audio receiving unit is kept on, so that the preparation for receiving the audio data is completed within the first time after sending , the audio data can be received in time, and when the audio data is received again, the audio receiving unit does not need to be initialized again, which greatly shortens the time for data interaction between the two ends of the communication, improves the communication transmission speed, and at the same time identifies the information of the sending end through the flag bit, In order to filter out invalid information outside the target, the efficiency of data transmission is further improved. .
附图说明Description of drawings
图1为本发明第一实施例提供的无线音频数据通信方法的流程图;FIG. 1 is a flowchart of a wireless audio data communication method provided in a first embodiment of the present invention;
图2为本发明第二实施例提供的无线音频数据通信方法的流程图;FIG. 2 is a flowchart of a wireless audio data communication method provided by a second embodiment of the present invention;
图3为本发明第三实施例提供的无线音频数据通信方法的流程图;FIG. 3 is a flowchart of a wireless audio data communication method provided by a third embodiment of the present invention;
图4为本发明一实施例提供的无线音频数据通信装置的结构图;Fig. 4 is a structural diagram of a wireless audio data communication device provided by an embodiment of the present invention;
图5为本发明一实施例提供的无线音频数据通信装置的优选示例结构图。Fig. 5 is a structural diagram of a preferred example of a wireless audio data communication device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例在开始发送音频数据之后,音频数据发送完成之前即对音频接收单元进行初始化,并一直保持音频接收单元的开启状态,缩短了数据交互的时间,同时还通过标志位识别发送端信息,以滤除目标外的无效信息,进一步提高了数据传输效率。In the embodiment of the present invention, the audio receiving unit is initialized after the audio data is sent and before the audio data is sent, and the audio receiving unit is always turned on, which shortens the time for data interaction, and at the same time identifies the information of the sending end through the flag bit , to filter out invalid information outside the target, further improving the efficiency of data transmission.
以下结合具体实施例对本发明的实现进行详细描述:The realization of the present invention is described in detail below in conjunction with specific embodiment:
图1示出了本发明第一实施例提供的无线音频数据通信方法的流程,为了便于说明,仅示出了与本发明相关的部分。FIG. 1 shows the flow of the wireless audio data communication method provided by the first embodiment of the present invention. For the convenience of description, only the parts related to the present invention are shown.
作为本发明一实施例,该无线音频数据通信方法包括下述步骤:As an embodiment of the present invention, the wireless audio data communication method includes the following steps:
在步骤S101中,对原始数据进行编码,生成第一音频数据;In step S101, the original data is encoded to generate the first audio data;
在步骤S102中,在第一音频数据中设置一位标志位,该标志位包含发送源信息;In step S102, a flag is set in the first audio data, and the flag contains sending source information;
在本发明实施例中,发送标志位可以设置于音频数据的首位或最后一位,用于对发送源进行标识,进而滤除目标外的无效信息,例如,将代表发送端的标志位设置为1,将代表接收端的标志位设置为零。In the embodiment of the present invention, the sending flag bit can be set at the first or last bit of the audio data, which is used to identify the sending source, and then filter out invalid information other than the target, for example, set the flag bit representing the sending end to 1 , sets the flag bit representing the receiver to zero.
在步骤S103中,开始发送第一音频数据;In step S103, start sending the first audio data;
在步骤S104中,初始化音频接收单元;In step S104, initialize the audio receiving unit;
作为本发明一实施例,音频接收单元可以采用录音单元或其它音频存储单元实现。As an embodiment of the present invention, the audio receiving unit may be implemented by a recording unit or other audio storage units.
在步骤S105中,完成第一音频数据发送。In step S105, the sending of the first audio data is completed.
在本发明实施例中,发送端在开始发送音频数据之后,音频数据发送完成之前对音频接收单元进行初始化,而该音频接收单元自初始化之后一直处于接收音频数据的状态,直至通信交互完成,为了保证接收到的音频数据是有效的,而不是刚从发送端发出的音频数据,因此在发送时在音频数据中设置包含发送源信息的标志位,以便进行区分。In the embodiment of the present invention, the sending end initializes the audio receiving unit after starting to send the audio data and before the audio data is sent, and the audio receiving unit has been in the state of receiving audio data since initialization until the communication interaction is completed, in order Ensure that the received audio data is valid, not the audio data just sent from the sender, so set the flag bit containing the source information in the audio data when sending, so as to distinguish.
本发明实施例在开始发送音频数据之后,音频数据发送完成之前即对音频接收单元进行初始化,并一直保持音频接收单元的开启状态,使得在发送后的第一时间内完成接收音频数据的准备工作,可以及时接收到音频数据,并且当再次接收音频数据时无需再初始化音频接收单元,大大缩短了通信双端进行数据交互的时间,提高了通信传输速度,同时还通过标志位识别发送端信息,以滤除目标外的无效信息,进一步提高了数据传输效率。In the embodiment of the present invention, the audio receiving unit is initialized after the audio data is sent and before the audio data is sent, and the audio receiving unit is kept on, so that the preparation for receiving the audio data is completed within the first time after sending , the audio data can be received in time, and when the audio data is received again, the audio receiving unit does not need to be initialized again, which greatly shortens the time for data interaction between the two ends of the communication, improves the communication transmission speed, and at the same time identifies the information of the sending end through the flag bit, In order to filter out invalid information outside the target, the efficiency of data transmission is further improved.
图2示出了本发明第二实施例提供的无线音频数据通信方法的流程,为了便于说明,仅示出了与本发明相关的部分。Fig. 2 shows the flow of the wireless audio data communication method provided by the second embodiment of the present invention, and for the convenience of description, only the parts related to the present invention are shown.
作为本发明一实施例,该无线音频数据通信方法包括下述步骤:As an embodiment of the present invention, the wireless audio data communication method includes the following steps:
在步骤S201中,对原始数据进行编码,生成第一音频数据;In step S201, the original data is encoded to generate the first audio data;
在步骤S202中,在第一音频数据中设置一位标志位,该标志位包含发送源信息;In step S202, a flag bit is set in the first audio data, and the flag bit contains sending source information;
在步骤S203中,开始发送第一音频数据;In step S203, start sending the first audio data;
在步骤S204中,初始化音频接收单元;In step S204, initialize the audio receiving unit;
在步骤S205中,完成第一音频数据发送;In step S205, complete the sending of the first audio data;
在步骤S206中,接收第二音频数据;In step S206, receiving second audio data;
在步骤S207中,判断第二音频数据中的发送源信息是否与第一音频数据中的发送源信息一致;In step S207, it is judged whether the sending source information in the second audio data is consistent with the sending source information in the first audio data;
若是,则返回执行步骤S206;If so, return to step S206;
若否,则执行步骤S208,对第二音频数据解码,生成有效数据;If not, step S208 is performed to decode the second audio data to generate valid data;
在本发明实施例中,通过标志位判断该音频数据是否为本发送端发送出去的音频数据,例如,将发送端的标志位设置为1,接收端的标志位设置为零,那么,当发送端识别到接收数据中的标志位为1时,认为该音频数据为无效数据,不对该数据进行处理,而当识别到标志位为零的音频数据才进行解码处理。In the embodiment of the present invention, it is judged whether the audio data is the audio data sent by the sending end through the flag bit. For example, the flag bit of the sending end is set to 1, and the flag bit of the receiving end is set to zero. Then, when the sending end identifies When the flag bit in the received data is 1, the audio data is regarded as invalid data, and the data is not processed, and the decoding process is performed only when the audio data whose flag bit is zero is recognized.
在步骤S209中,对有效数据进行数据处理后编码,生成第三音频数据;In step S209, the valid data is encoded after data processing to generate third audio data;
在步骤S210中,在第三音频数据中设置一位标志位,标志位包含发送源信息;In step S210, a flag is set in the third audio data, and the flag contains sending source information;
在步骤S211中,发送第三音频数据。In step S211, the third audio data is sent.
在本发明实施例中,音频接收单元在完成初始化后一直处于开启状态,无需在每次数据发送之后重新进行初始化,直至通信交互完成,并且为了避免音频接收单元收到自身发送的无效数据,在发送时在音频数据中设置包含发送源信息的标志位,通过对标志位的识别该音频信息来自发送端本身还是接收端,从而对来自接收端的音频数据进行解码、数据处理后,再次编码发送。In the embodiment of the present invention, the audio receiving unit is always in the open state after the initialization is completed, and there is no need to re-initialize after each data transmission until the communication interaction is completed, and in order to prevent the audio receiving unit from receiving invalid data sent by itself. When sending, set the flag bit containing the sending source information in the audio data, and identify whether the audio information comes from the sending end itself or the receiving end by identifying the flag bit, so that the audio data from the receiving end is decoded, processed, and then encoded and sent again.
本发明实施例在开始发送音频数据之后,音频数据发送完成之前即对音频接收单元进行初始化,并一直保持音频接收单元的开启状态,使得在发送后的第一时间内完成接收音频数据的准备工作,可以及时接收到音频数据,并且当再次接收音频数据时无需再初始化音频接收单元,大大缩短了通信双端进行数据交互的时间,提高了通信传输速度,同时还通过标志位识别发送端信息,以滤除目标外的无效信息,进一步提高了数据传输效率。In the embodiment of the present invention, the audio receiving unit is initialized after the audio data is sent and before the audio data is sent, and the audio receiving unit is kept on, so that the preparation for receiving the audio data is completed within the first time after sending , the audio data can be received in time, and when the audio data is received again, the audio receiving unit does not need to be initialized again, which greatly shortens the time for data interaction between the two ends of the communication, improves the communication transmission speed, and at the same time identifies the information of the sending end through the flag bit, In order to filter out invalid information outside the target, the efficiency of data transmission is further improved.
图3示出了本发明第三实施例提供的无线音频数据通信方法的流程,为了便于说明,仅示出了与本发明相关的部分。Fig. 3 shows the flow of the wireless audio data communication method provided by the third embodiment of the present invention, and for the convenience of description, only the parts related to the present invention are shown.
作为本发明一实施例,该无线音频数据通信方法包括下述步骤:As an embodiment of the present invention, the wireless audio data communication method includes the following steps:
在步骤S301中,发送端的编码单元对原始数据进行编码,生成第一音频数据;In step S301, the encoding unit at the sending end encodes the original data to generate first audio data;
在步骤S302中,在第一音频数据中设置一位发送端标志位;In step S302, a sender flag is set in the first audio data;
在步骤S303中,放音单元开始发送第一音频数据;In step S303, the playback unit starts to send the first audio data;
在步骤S304中,初始化录音单元;In step S304, initialize the recording unit;
在步骤S305中,完成第一音频数据发送;In step S305, complete the sending of the first audio data;
在步骤S306中,通过录音单元接收第二音频数据;In step S306, the second audio data is received by the recording unit;
在步骤S307中,判断单元判断第二音频数据中的发送源信息是否与第一音频数据中的发送源信息一致;In step S307, the judging unit judges whether the sending source information in the second audio data is consistent with the sending source information in the first audio data;
若是,则返回执行步骤S306;If so, return to step S306;
若否,则执行步骤S308,通过模数转换单元对第二音频数据进行模数转换,生成数字信号;If not, then step S308 is performed to perform analog-to-digital conversion on the second audio data through the analog-to-digital conversion unit to generate a digital signal;
在步骤S309中,解码单元对该数字信号进行解码,生成有效数据;In step S309, the decoding unit decodes the digital signal to generate valid data;
在步骤S310中,编码单元对有效数据进行数据处理后编码,生成第三音频数据;In step S310, the encoding unit performs data processing on the valid data and then encodes to generate third audio data;
在步骤S311中,在第三音频数据中设置一位接收端标志位;In step S311, a receiver flag is set in the third audio data;
在步骤S312中,放音单元发送第三音频数据。In step S312, the sound playback unit sends the third audio data.
作为本发明一优选实施例,放音单元还可以通过扬声器实现,录音单元还可以通过麦克风实现。As a preferred embodiment of the present invention, the sound playback unit can also be realized by a loudspeaker, and the recording unit can also be realized by a microphone.
在本发明实施例中,发送端可以采用手机或平板电脑等移动终端设备,接收端可以采用手机或平板电脑等移动终端设备,也可以是包含数模/模数转换单元、编/解码单元、处理/判断单元以及发送/接收单元的其他终端。In the embodiment of the present invention, the sending end may use a mobile terminal device such as a mobile phone or a tablet computer, and the receiving end may use a mobile terminal device such as a mobile phone or a tablet computer. The processing/judgment unit and other terminals of the sending/receiving unit.
作为本发明一实施例,若移动终端手机或平板电脑作为发送端,另外一部手机或平板电脑作为接收端,该方法可以实现无线音频数据传输。As an embodiment of the present invention, if the mobile terminal mobile phone or tablet computer is used as the sending end, and another mobile phone or tablet computer is used as the receiving end, the method can realize wireless audio data transmission.
若移动终端手机或平板电脑作为发送端,另外一个终端KEY作为接收端,则该方法可以实现音频移动支付或身份验证。If the mobile terminal mobile phone or tablet computer is used as the sending end, and another terminal KEY is used as the receiving end, then this method can realize audio mobile payment or identity verification.
本发明实施例在开始发送音频数据之后,音频数据发送完成之前即对音频接收单元进行初始化,移动终端无需等待数据发送完毕之后再开启录音模块,并且通过标志位识别该音频数据来自发送端还是接收端,从而节省了录音单元初始化的时间,以达到缩短交互时间,提高音频数据交互速度的目的。In the embodiment of the present invention, the audio receiving unit is initialized after the audio data is sent and before the audio data is sent, and the mobile terminal does not need to wait for the data to be sent before turning on the recording module, and identifies whether the audio data comes from the sending end or the receiving end through the flag bit. end, thereby saving the time for initializing the recording unit, so as to shorten the interaction time and improve the audio data interaction speed.
图4示出了本发明实施例提供的无线音频数据通信装置的结构,为了便于说明,仅示出了与本发明相关的部分。Fig. 4 shows the structure of the wireless audio data communication device provided by the embodiment of the present invention, and for the convenience of description, only the parts related to the present invention are shown.
作为本发明一实施例,该无线音频数据通信装置1包括:As an embodiment of the present invention, the wireless audio data communication device 1 includes:
第一编码单元11,用于对原始数据进行编码,生成第一音频数据,并在第一音频数据中设置一位标志位,该标志位包含发送源信息;The first encoding unit 11 is configured to encode the original data, generate the first audio data, and set a flag in the first audio data, the flag contains the source information;
音频接收单元12,用于接收外部传输的音频数据;Audio receiving unit 12, for receiving the audio data of external transmission;
音频发送单元13,用于传输第一音频数据到外部;an audio sending unit 13, configured to transmit the first audio data to the outside;
初始化控制单元10,用于在首次开始发送第一音频数据之后控制音频接收单元初始化。The initialization control unit 10 is used for controlling the initialization of the audio receiving unit after first starting to transmit the first audio data.
在本发明实施例中,发送标志位可以设置于音频数据的首位或最后一位,用于对发送源进行标识,进而滤除目标外的无效信息,例如,将代表发送端的标志位设置为1,将代表接收端的标志位设置为零。In the embodiment of the present invention, the sending flag bit can be set at the first or last bit of the audio data, which is used to identify the sending source, and then filter out invalid information other than the target, for example, set the flag bit representing the sending end to 1 , sets the flag bit representing the receiver to zero.
在本发明实施例中,音频发送单元13在开始发送音频数据之后,音频数据发送完成之前控制音频接收单元12进行初始化,而该音频接收单元12自初始化之后一直处于接收音频数据的状态,直至通信交互完成,为了保证接收到的音频数据是有效的,而不是刚从发送端发出的音频数据,因此在发送时在音频数据中设置包含发送源信息的标志位,以便进行区分。In the embodiment of the present invention, the audio sending unit 13 controls the audio receiving unit 12 to initialize after starting to send the audio data and before the audio data sending is completed, and the audio receiving unit 12 has been in the state of receiving audio data since initialization until the communication The interaction is completed. In order to ensure that the received audio data is valid, rather than the audio data just sent from the sender, the flag bit containing the source information is set in the audio data when sending, so as to distinguish.
本发明实施例在开始发送音频数据之后,音频数据发送完成之前即对音频接收单元进行初始化,并一直保持音频接收单元的开启状态,使得在发送后的第一时间内完成接收音频数据的准备工作,可以及时接收到音频数据,并且当再次接收音频数据时无需再初始化音频接收单元,大大缩短了通信双端进行数据交互的时间,提高了通信传输速度,同时还通过标志位识别发送端信息,以滤除目标外的无效信息,进一步提高了数据传输效率。In the embodiment of the present invention, the audio receiving unit is initialized after the audio data is sent and before the audio data is sent, and the audio receiving unit is kept on, so that the preparation for receiving the audio data is completed within the first time after sending , the audio data can be received in time, and when the audio data is received again, the audio receiving unit does not need to be initialized again, which greatly shortens the time for data interaction between the two ends of the communication, improves the communication transmission speed, and at the same time identifies the information of the sending end through the flag bit, In order to filter out invalid information outside the target, the efficiency of data transmission is further improved.
图5示出了本发明实施例提供的无线音频数据通信装置的优选示例结构,为了便于说明,仅示出了与本发明相关的部分。Fig. 5 shows a preferred example structure of the wireless audio data communication device provided by the embodiment of the present invention, and for the convenience of description, only the parts related to the present invention are shown.
作为本发明一实施例,音频接收单元可以采用录音单元或其它音频存储单元实现。As an embodiment of the present invention, the audio receiving unit may be implemented by a recording unit or other audio storage units.
作为本发明一实施例,该无线音频数据通信装置1还包括:As an embodiment of the present invention, the wireless audio data communication device 1 further includes:
判断单元14,用于判断第二音频数据中的发送源信息是否与第一音频数据中的发送源信息一致;A judging unit 14, configured to judge whether the sending source information in the second audio data is consistent with the sending source information in the first audio data;
解码单元15,用于当第二音频数据中的发送源信息与第一音频数据中的发送源信息不一致时,对第二音频数据解码,生成有效数据;A decoding unit 15, configured to decode the second audio data to generate valid data when the transmission source information in the second audio data is inconsistent with the transmission source information in the first audio data;
处理单元16,用于对有效数据进行数据处理;A processing unit 16, configured to perform data processing on valid data;
第二编码单元17,用于对数据处理后的有效数据进行编码,生成第三音频数据,并在第三音频数据中设置一位标志位,标志位包含发送源信息,再控制音频发送单元发送第三音频数据。The second encoding unit 17 is used to encode the effective data after data processing to generate the third audio data, and set a flag in the third audio data, the flag contains the source information, and then controls the audio transmission unit to send third audio data.
作为本发明一实施例,第一编码单元11和第二编码单元17可以复用。As an embodiment of the present invention, the first encoding unit 11 and the second encoding unit 17 may be multiplexed.
在本发明实施例中,判断单元14通过标志位判断该音频数据是否为本发送端发送出去的音频数据,例如,将发送端的标志位设置为1,接收端的标志位设置为零,那么,当发送端识别到接收数据中的标志位为1时,认为该音频数据为无效数据,处理单元16不对该数据进行处理,而当识别到标志位为零的音频数据才进行数据处理以及解码。In the embodiment of the present invention, the judging unit 14 judges whether the audio data is the audio data sent by the sending end through the flag bit, for example, the flag bit of the sending end is set to 1, and the flag bit of the receiving end is set to zero, then, when When the sender recognizes that the flag bit in the received data is 1, it considers the audio data to be invalid data, and the processing unit 16 does not process the data, and only performs data processing and decoding when it recognizes the audio data whose flag bit is zero.
作为本发明一优选实施例,音频发送单元13可以采用放音单元实现,例如扬声器。As a preferred embodiment of the present invention, the audio sending unit 13 may be implemented by a sound playback unit, such as a loudspeaker.
作为本发明一优选实施例,音频接收单元12可以采用录音单元实现,例如麦克风。As a preferred embodiment of the present invention, the audio receiving unit 12 may be implemented by a recording unit, such as a microphone.
作为本发明一优选实施例,该无线音频数据通信装置1还可以包括:As a preferred embodiment of the present invention, the wireless audio data communication device 1 may also include:
模数转换单元18,用于对第二音频数据进行模数转换,生成数字信号,并将数字信号发送至解码单元进行解码。The analog-to-digital conversion unit 18 is configured to perform analog-to-digital conversion on the second audio data to generate a digital signal, and send the digital signal to the decoding unit for decoding.
在本发明实施例中,还可以通过模数转换单元或者其他数据处理单元对音频收据进行进一步地优化处理。In the embodiment of the present invention, the audio receipt may be further optimized through an analog-to-digital conversion unit or other data processing unit.
在本发明实施例中,发送端可以采用手机或平板电脑等移动终端设备,接收端可以采用手机或平板电脑等移动终端设备,也可以是包含数模/模数转换单元、编/解码单元、处理/判断单元以及发送/接收单元的其他终端。In the embodiment of the present invention, the sending end may use a mobile terminal device such as a mobile phone or a tablet computer, and the receiving end may use a mobile terminal device such as a mobile phone or a tablet computer. The processing/judgment unit and other terminals of the sending/receiving unit.
作为本发明一实施例,若移动终端手机或平板电脑作为发送端,另外一部手机或平板电脑作为接收端,该方法可以实现无线音频数据传输。As an embodiment of the present invention, if the mobile terminal mobile phone or tablet computer is used as the sending end, and another mobile phone or tablet computer is used as the receiving end, the method can realize wireless audio data transmission.
若移动终端手机或平板电脑作为发送端,另外一个终端KEY作为接收端,则该方法可以实现音频移动支付或身份验证。If the mobile terminal mobile phone or tablet computer is used as the sending end, and another terminal KEY is used as the receiving end, then this method can realize audio mobile payment or identity verification.
本发明实施例在开始发送音频数据之后,音频数据发送完成之前即对音频接收单元进行初始化,移动终端无需等待数据发送完毕之后再开启录音模块,并且通过标志位识别该音频数据来自发送端还是接收端,从而节省了录音单元初始化的时间,以达到缩短交互时间,提高音频数据交互速度的目的。In the embodiment of the present invention, the audio receiving unit is initialized after the audio data is sent and before the audio data is sent, and the mobile terminal does not need to wait for the data to be sent before turning on the recording module, and identifies whether the audio data comes from the sending end or the receiving end through the flag bit. end, thereby saving the time of recording unit initialization, so as to shorten the interaction time and improve the audio data interaction speed.
以上仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention. Inside.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310713575.3A CN104734740B (en) | 2013-12-20 | 2013-12-20 | A kind of wireless audio data communications method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310713575.3A CN104734740B (en) | 2013-12-20 | 2013-12-20 | A kind of wireless audio data communications method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104734740A CN104734740A (en) | 2015-06-24 |
| CN104734740B true CN104734740B (en) | 2018-08-14 |
Family
ID=53458233
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310713575.3A Expired - Fee Related CN104734740B (en) | 2013-12-20 | 2013-12-20 | A kind of wireless audio data communications method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104734740B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001041128A1 (en) * | 1999-11-30 | 2001-06-07 | Motorola Inc. | Differentiation of error conditions in digital voice communication systems |
| CN102307271A (en) * | 2011-05-05 | 2012-01-04 | 上海博超科技有限公司 | Network digital integrated talkback system and transmission method thereof |
| CN102509216A (en) * | 2011-11-08 | 2012-06-20 | 南京音优行信息技术有限公司 | Method and device for realizing on-site mobile payment by using audio signal |
| CN103414982A (en) * | 2013-07-31 | 2013-11-27 | 北京小米科技有限责任公司 | Method and device for offering voice |
-
2013
- 2013-12-20 CN CN201310713575.3A patent/CN104734740B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001041128A1 (en) * | 1999-11-30 | 2001-06-07 | Motorola Inc. | Differentiation of error conditions in digital voice communication systems |
| CN102307271A (en) * | 2011-05-05 | 2012-01-04 | 上海博超科技有限公司 | Network digital integrated talkback system and transmission method thereof |
| CN102509216A (en) * | 2011-11-08 | 2012-06-20 | 南京音优行信息技术有限公司 | Method and device for realizing on-site mobile payment by using audio signal |
| CN103414982A (en) * | 2013-07-31 | 2013-11-27 | 北京小米科技有限责任公司 | Method and device for offering voice |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104734740A (en) | 2015-06-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108347716B (en) | Bluetooth communication system and communication method | |
| CN111713141B (en) | A Bluetooth playback method and electronic device | |
| CN103117836B (en) | Method and apparatus for equipment association | |
| CN104378838B (en) | A kind of method and device for establishing wireless connection | |
| US20120244811A1 (en) | Method, Apparatus and System for Transmitting Multimedia Data by Bluetooth and Real-Time Playing | |
| US7577261B2 (en) | Wireless audio system using wireless local area network | |
| US11240709B2 (en) | Data transmission method and related device | |
| US20050186993A1 (en) | Communication apparatus for playing sound signals | |
| WO2012058467A1 (en) | Multi-protocol bus interface device | |
| US20050208893A1 (en) | Bluetooth earphone module with audio player function | |
| CN102857631A (en) | Method and system for reading RFID (Radio Frequency Identification)/NFC (Near Field Communication) tag by earphone jack of mobile phone | |
| CN108243481A (en) | Document transmission method and device | |
| WO2018049892A1 (en) | Data transmission method and apparatus, and terminal | |
| WO2015120759A1 (en) | Audio signal transmission method, mobile terminal and intelligent key device | |
| CN113474836A (en) | Method for processing audio data and electronic device thereof | |
| CN105743862B (en) | Two-way mirror system for sound data | |
| CN104954078A (en) | Sound wave communication based control and response method and sound wave communication based control and response device | |
| JP5259836B2 (en) | Communications system | |
| CN108492831B (en) | Data transmission method, audio equipment and intelligent terminal | |
| CN104734740B (en) | A kind of wireless audio data communications method and device | |
| CN106550145A (en) | Information interacting method and device | |
| CN102904718A (en) | Audio communication based information security equipment and communication method thereof | |
| US9838514B2 (en) | Radio communication system, radio apparatus, radio communication method, packet generation method, and method for reproducing data from packet | |
| JP6497112B2 (en) | Wireless receiver and mute control method thereof | |
| CN113555024A (en) | Real-time communication audio processing method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180814 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |