CN102867525B - A kind of multichannel voice frequency disposal route, audio-frequency playing terminal and apparatus for receiving audio - Google Patents
A kind of multichannel voice frequency disposal route, audio-frequency playing terminal and apparatus for receiving audio Download PDFInfo
- Publication number
- CN102867525B CN102867525B CN201210331167.7A CN201210331167A CN102867525B CN 102867525 B CN102867525 B CN 102867525B CN 201210331167 A CN201210331167 A CN 201210331167A CN 102867525 B CN102867525 B CN 102867525B
- Authority
- CN
- China
- Prior art keywords
- audio
- channel
- receiving device
- index table
- playback terminal
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明适用于音频播放领域,提供了一种多路音频处理方法、音频播放终端及音频接收装置,所述方法包括下述步骤:音频播放终端建立音频通道索引表,将每一路音频和用于标识该路音频的音频索引一起封装为音频帧,再将多路音频帧封装为数据帧;音频播放终端与音频接收装置建立无线连接;音频播放终端发送音频通道索引表至音频接收装置;音频播放终端发送数据帧至音频接收装置。本发明通过提供一种多路音频处理方法、音频播放终端及音频接收装置,解决了现有音频播放终端上同时播放多种音频相互干扰的问题,使得同时播放多个的音频且多个音频之间相互不干扰,能够同时进行选择视听。
The present invention is applicable to the field of audio playback, and provides a multi-channel audio processing method, an audio playback terminal, and an audio receiving device. The method includes the following steps: the audio playback terminal establishes an audio channel index table, and uses each channel of audio The audio index that identifies the channel of audio is encapsulated into an audio frame together, and then the multi-channel audio frame is encapsulated into a data frame; the audio playback terminal establishes a wireless connection with the audio receiving device; the audio playback terminal sends the audio channel index table to the audio receiving device; the audio playback The terminal sends the data frame to the audio receiving device. By providing a multi-channel audio processing method, an audio playback terminal, and an audio receiving device, the present invention solves the problem that multiple audios are played simultaneously on the existing audio playback terminal and interferes with each other, so that multiple audios are played at the same time and the multiple audios Without interfering with each other, you can choose audio-visual at the same time.
Description
技术领域 technical field
本发明属于音频播放领域,尤其涉及一种多路音频处理方法、音频播放终端及音频接收装置。The invention belongs to the field of audio playing, and in particular relates to a multi-channel audio processing method, an audio playing terminal and an audio receiving device.
背景技术 Background technique
现有智能电视,DVD等音频播放设备相比于以前的音频播放设备,具备了更强大的多路音频和视频的处理能力。电视跟遥控器等的无线通信技术也较为成熟,目前电视跟遥控器、智能手机等无线终端都可以进行通信,在电视机与无线终端建立通道传输数据信息。智能电视机已经可以具有多路音视频进行处理播放的功能,具有了这种技术的各种电子娱乐设备都有着广泛的应用。比如电脑同时播放多个视频时,多个视频和音频都可以通过电脑同时输出,通过软件的方式我们可以实现屏蔽掉某个音频信号,以使输出的音频直接不会干扰,即输出一个音频信号,屏蔽掉其他的音频信号,通过软件的设置屏蔽某个视频对应的音频输出,如果播放的视频是支持多国语言,比如视频里包含中英文两种语言的音频信息环境的视频时,通过切换通路,电脑可以实现中文音频输出和英文音频输出。当前的智能电视虽然可以同时在当前屏幕开启一个到多个视频窗口进行播放,但是电视只有一个音频出口,只能同时播放一个音频源,如果同时播放多个音频源,音频之间就会进行重叠干扰,无法进行正常的视听,同时现在的电视也可以同时实现在后台播放背景音乐,但是电视机如果也同时正在播放其他节目的音频信息,那么音频信息直接也会进行干扰和重叠,影响视听。或者一部电影同时由多种不同语言版本的配音,比如一部英文电影,有人希望听到的是原版的英文配音,但是有人需要听到的翻译后的中文配音,电影即时同时具备两种音频数据信息,但是在电视上进行播放的时候,只能选择一种音频进行播放,无法将两种音频进行同时输出,在同一时刻,电视机不能将一部配有两种音频的电影同时清晰地播放两种音频配音。电视一般都放置于公共环境中,电视通过外放喇叭进行音频信息播放时只能同时播放一路音频出来,即电视只能通过一个音频出口进行播放,如果同时播放多个音频,同时播放多路音频会让人感觉到混乱,致使大家谁也无法收听到自己希望听到的声音,音频文件之间出现叠加和干扰,电视播放的音频文件就无法被人耳进行正常的分辨接收到。Compared with previous audio playback devices, audio playback devices such as smart TVs and DVDs have more powerful multi-channel audio and video processing capabilities. The wireless communication technology between TV and remote control is relatively mature. At present, TV can communicate with wireless terminals such as remote control and smart phone, and establish channels between TV and wireless terminals to transmit data information. Smart TVs already have the function of processing and playing multi-channel audio and video, and various electronic entertainment devices with this technology are widely used. For example, when the computer plays multiple videos at the same time, multiple videos and audios can be output through the computer at the same time. Through software, we can shield an audio signal so that the output audio will not interfere directly, that is, output an audio signal , shield other audio signals, and shield the audio output corresponding to a certain video through software settings. If the video to be played supports multiple languages, such as a video containing audio information in both Chinese and English languages, switch channels , the computer can realize Chinese audio output and English audio output. Although the current smart TV can open one or more video windows on the current screen to play at the same time, the TV has only one audio outlet and can only play one audio source at the same time. If multiple audio sources are played at the same time, the audio will overlap. Interference makes it impossible to perform normal audio-visual. At the same time, the current TV can also play background music in the background at the same time, but if the TV is also playing audio information of other programs at the same time, the audio information will directly interfere and overlap, affecting audio-visual. Or a movie is dubbed in different languages at the same time. For example, for an English movie, some people want to hear the original English dubbing, but some people want to hear the translated Chinese dubbing. The movie has two kinds of audio at the same time. data information, but when playing on the TV, only one audio can be selected for playback, and the two audios cannot be output at the same time. At the same time, the TV cannot clearly display a movie with two audios at the same time. Play two audio dubs. TVs are generally placed in public environments. When the TV plays audio information through external speakers, it can only play one audio at the same time, that is, the TV can only play through one audio outlet. If multiple audios are played at the same time, multiple audios are played at the same time. It will make people feel confused, so that no one can listen to the sound they want to hear. There will be superposition and interference between audio files, and the audio files played on TV will not be recognized by human ears.
发明内容 Contents of the invention
本发明的目的在于提供一种多路音频处理方法、音频播放终端及音频接收装置,解决了在音频播放终端上同时播放多种音频的同时多种音频之间相互不干扰,能够同时进行选择视听的问题。The purpose of the present invention is to provide a multi-channel audio processing method, an audio playback terminal and an audio receiving device, which solves the problem of simultaneously playing multiple audios on the audio playback terminal without interfering with each other, enabling simultaneous audio-visual selection The problem.
本发明实施例是这样实现的,一种多路音频处理方法,所述方法包括下述步骤:The embodiment of the present invention is achieved in this way, a multi-channel audio processing method, the method includes the following steps:
音频播放终端建立音频通道索引表,所述音频通道索引表包括多路音频的音频标识符以及各音频标识符对应的音频通道标示符,将每一路音频和用于标识该路音频的音频索引一起封装为音频帧,再将多路音频帧封装为数据帧;The audio playback terminal creates an audio channel index table, the audio channel index table includes audio identifiers of multiple channels of audio and the audio channel identifiers corresponding to each audio identifier, and each channel of audio and the audio index used to identify the channel of audio Encapsulate into an audio frame, and then encapsulate the multi-channel audio frame into a data frame;
音频播放终端与音频接收装置建立无线连接;The audio playback terminal establishes a wireless connection with the audio receiving device;
音频播放终端发送音频通道索引表至音频接收装置;The audio playback terminal sends the audio channel index table to the audio receiving device;
音频播放终端发送数据帧至音频接收装置。The audio playing terminal sends the data frame to the audio receiving device.
音频索引包括:音频标识符和/或音频通道标示符。The audio index includes: an audio identifier and/or an audio channel identifier.
在音频播放终端建立音频通道索引表步骤之后还包括:After the step of setting up the audio channel index table at the audio playback terminal, it also includes:
当正在播放的多路音频发生变化时,更新音频通道索引表,更新后的音频通道索引表中包括更新后的多路音频的标识符以及更新后多路音频的标识符对应的音频通道的标识符。When the multi-channel audio being played changes, the audio channel index table is updated, and the updated audio channel index table includes the identifier of the updated multi-channel audio and the identification of the audio channel corresponding to the identifier of the updated multi-channel audio symbol.
音频播放终端将音频通道索引表发送至音频接收装置具体包括:The audio playback terminal sends the audio channel index table to the audio receiving device specifically including:
判断是否有新的音频接收装置与音频播放终端建立无线连接,当有新的音频接收装置与音频播放终端建立无线连接时,发送音频通道索引表至新的音频接收装置。It is judged whether there is a new audio receiving device to establish a wireless connection with the audio playback terminal, and when a new audio receiving device establishes a wireless connection with the audio playback terminal, the audio channel index table is sent to the new audio receiving device.
一种多路音频处理方法,所述方法包括下述步骤:A multi-channel audio processing method, said method comprising the steps of:
音频接收装置与音频播放终端建立无线连接;The audio receiving device establishes a wireless connection with the audio playback terminal;
音频接收装置接收音频播放终端发送的音频通道索引表;The audio receiving device receives the audio channel index table sent by the audio playback terminal;
音频接收装置确定需要接收的音频索引,接收并解析数据帧得到需要接收的音频索引对应的音频帧;The audio receiving device determines the audio index to be received, receives and parses the data frame to obtain the audio frame corresponding to the audio index to be received;
音频接收装置解析音频帧并进行播放。The audio receiving device parses the audio frame and plays it.
在音频接收装置接收音频播放终端发送的音频通道索引表步骤之后还包括:After the audio receiving device receives the audio channel index table step that the audio playback terminal sends, it also includes:
当接收到的音频通道索引表发生更新时,用新的音频通道索引表替换旧的音频通道索引表。When the received audio channel index table is updated, replace the old audio channel index table with the new audio channel index table.
在音频接收装置解析音频帧并进行播放之前还包括:Before the audio receiving device parses the audio frame and plays it, it also includes:
验证数据帧中的音频索引与确定需要接收的音频是否相同。Verify that the audio index in the data frame is the same as the audio that needs to be received.
一种音频播放终端,所述音频播放终端包括:An audio playback terminal, the audio playback terminal comprising:
数据封装单元,用于音频播放终端建立音频通道索引表,将每一路音频和用于标识该路音频的音频索引一起封装为音频帧,再将多路音频帧封装为数据帧;The data encapsulation unit is used for the audio playback terminal to establish an audio channel index table, encapsulates each channel of audio and the audio index used to identify the channel of audio into an audio frame, and then encapsulates multiple channels of audio frames into a data frame;
第一无线功能连接单元,用于音频播放终端与音频接收装置建立无线连接;The first wireless functional connection unit is used for establishing a wireless connection between the audio playback terminal and the audio receiving device;
索引表发送单元,用于音频播放终端将音频通道索引表发送至音频接收装置;The index table sending unit is used for the audio playback terminal to send the audio channel index table to the audio receiving device;
信息发送单元,用于音频播放终端将数据帧发送至音频接收装置。The information sending unit is used for the audio playing terminal to send the data frame to the audio receiving device.
音频播放终端还包括:The audio playback terminal also includes:
索引表更新单元,用于判断当正在播放的多路音频发生变化时,更新音频通道索引表,更新后的音频通道索引表中包括更新后的多路音频的标识符以及更新后多路音频的标识符对应的音频通道的标识符。The index table update unit is used to judge that when the multi-channel audio being played changes, the audio channel index table is updated, and the updated audio channel index table includes the identifier of the updated multi-channel audio and the updated multi-channel audio The identifier of the audio channel to which the identifier corresponds.
一种音频接收装置,所述音频接收装置包括:An audio receiving device, the audio receiving device comprising:
第二无线功能连接单元,用于音频接收装置与音频播放终端建立无线连接;The second wireless functional connection unit is used for establishing a wireless connection between the audio receiving device and the audio playback terminal;
索引表接收单元,用于音频接收装置接收音频播放终端发送的音频通道索引表;The index table receiving unit is used for the audio receiving device to receive the audio channel index table sent by the audio playback terminal;
数据帧接收单元,用于音频接收装置确定需要接收的音频索引,接收并解析数据帧得到需要接收音频索引对应的音频帧;The data frame receiving unit is used for the audio receiving device to determine the audio index to be received, receive and analyze the data frame to obtain the audio frame corresponding to the audio index to be received;
播放单元,用于音频接收装置解析音频帧并进行播放。The playing unit is used for the audio receiving device to analyze and play the audio frame.
发明通过一种多路音频处理方法、音频播放终端及音频接收装置,解决了在音频播放终端上同时播放多种音频的问题,使得同时播放多路音频的时候相互之间不干扰,且可以同时进行视听,用户可以选择正在播放的节目的不同语言的音频进行收听,实现同时进行多个节目的音频播放视听或者是一个节目的多种不同音频的视听。The invention solves the problem of playing multiple audios simultaneously on the audio playback terminal through a multi-channel audio processing method, an audio playback terminal, and an audio receiving device, so that when playing multiple audio channels at the same time, they do not interfere with each other, and can simultaneously For viewing and listening, the user can choose to listen to the audio in different languages of the program being played, so as to realize the audio playback and viewing of multiple programs or the viewing and listening of multiple different audios of a program at the same time.
附图说明 Description of drawings
图1是本发明提供的一种多路音频处理方法的音频播放终端实施例一的实现流程图;Fig. 1 is the realization flowchart of embodiment 1 of an audio playback terminal of a kind of multi-channel audio processing method provided by the present invention;
图2是本发明提供的一种多路音频处理方法的音频接收装置实施例一的实现流程图;Fig. 2 is an implementation flowchart of Embodiment 1 of an audio receiving device of a multi-channel audio processing method provided by the present invention;
图3是本发明提供的音频播放终端和音频接收装置实施例一的结构图;Fig. 3 is a structural diagram of Embodiment 1 of an audio playback terminal and an audio receiving device provided by the present invention;
图4是本发明提供的一种多路音频处理方法的音频播放终端实施例二的实现流程图;Fig. 4 is the implementation flowchart of Embodiment 2 of an audio playback terminal of a multi-channel audio processing method provided by the present invention;
图5是本发明提供的一种多路音频处理方法的音频接收装置实施例二的实现流程图;Fig. 5 is a flow chart of the implementation of Embodiment 2 of an audio receiving device of a multi-channel audio processing method provided by the present invention;
图6是本发明提供的音频播放终端实施例二的结构图;以及FIG. 6 is a structural diagram of Embodiment 2 of the audio playback terminal provided by the present invention; and
图7是本发明提供的音频接收装置实施例二的结构图。Fig. 7 is a structural diagram of Embodiment 2 of the audio receiving device provided by the present invention.
具体实施方式 detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施方式,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不用于限定本发明。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 specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention.
实施例一:Embodiment one:
本发明提供一种多路音频处理方法,该方法在音频播放终端的实现过程如图1所示,包括下述步骤:The present invention provides a multi-channel audio processing method, the implementation process of the method in the audio playback terminal is shown in Figure 1, including the following steps:
S101,音频播放终端建立音频通道索引表,所述音频通道索引表包括多路音频的音频标识符以及各音频标识符对应的音频通道标示符,将每一路音频和用于标识该路音频的音频索引一起封装为音频帧,再将多路音频帧封装为数据帧;S101, the audio playback terminal establishes an audio channel index table, the audio channel index table includes audio identifiers of multiple audio channels and audio channel identifiers corresponding to each audio identifier, and combines each channel of audio with the audio used to identify the channel of audio Indexes are encapsulated into audio frames together, and then multiple audio frames are encapsulated into data frames;
S102,音频播放终端与音频接收装置建立无线连接;S102, the audio playback terminal establishes a wireless connection with the audio receiving device;
S103,音频播放终端将音频通道索引表发送至音频接收装置;S103, the audio playback terminal sends the audio channel index table to the audio receiving device;
S104,音频播放终端发送数据帧至音频接收装置。S104, the audio playing terminal sends the data frame to the audio receiving device.
本发明提供的方法通过将正在播放的多路音频以及多路音频对应的音频索引封装为一数据帧,通过无线连接的方式将正在播放的音频对应的数据帧通过无线方式发送到音频接收装置,以音频帧的数据方式发送到音频接收装置,在传统的将正在播放的音频通过扬声器直接进行播放的方式的基础之上增加了通过音频帧的数据形式发送音频的方式。通过无线连接方式将正在播放的音频通过数据帧方式能够同时发送多个正在播放的音频,使得在同时播放多个音频之间不会由于都在扬声器播放而发生听觉上的混乱,同时通过数据帧形式的播放音频,用户能够根据自己的需要选择自己需要接听的音频,其中音频索引可为音频标识符和/或音频通道标示符,音频通道标示符为音频播放终端传输音频的通道编号;音频标识符可为音频播放终端正在播放的音频的编号,如正在播放电视节目的频道编号CCTV-1或正在播放视频的顺序编码等;将多路音频按照预定的封装协议封装为多路音频帧,第I路音频帧具体为:第I路音频索引、第I路音频的数据大小,第I路音频的数据内容、多路音频帧封装为数据帧的具体方式为:数据帧头、数据帧的数据大小、.....第(I-1)路音频帧、第I路音频帧……,、数据帧尾。其中I为1~n中任一值,n为正在播放的音频的总量。The method provided by the present invention encapsulates the multi-channel audio being played and the audio index corresponding to the multi-channel audio into a data frame, and sends the data frame corresponding to the audio being played to the audio receiving device through a wireless connection, Sending to the audio receiving device in the form of audio frame data adds a method of sending audio in the form of audio frame data on the basis of the traditional method of directly playing the audio being played through a speaker. Through the wireless connection, the audio being played can be sent through the data frame at the same time, so that there will be no auditory confusion when playing multiple audios at the same time because they are all played on the speaker. At the same time, through the data frame In the form of audio playback, users can choose the audio they need to listen to according to their own needs, where the audio index can be an audio identifier and/or an audio channel identifier, and the audio channel identifier is the channel number of the audio transmitted by the audio playback terminal; the audio identifier The symbol can be the number of the audio being played by the audio playback terminal, such as the channel number CCTV-1 of the TV program being played or the sequence encoding of the video being played, etc.; the multi-channel audio is encapsulated into multiple audio frames according to a predetermined encapsulation protocol, the first The I road audio frame is specifically: the data size of the I road audio index, the I road audio, the data content of the I road audio, the concrete mode that the multi-way audio frame is encapsulated as a data frame is: the data of the data frame header, the data frame Size, ..... (I-1) road audio frame, I road audio frame...,, end of data frame. Where I is any value from 1 to n, and n is the total amount of audio being played.
可选的,该音频索引除了为了标识多路音频之外,还可用于音频接收装置接收到该音频后进行验证。Optionally, in addition to identifying multiple channels of audio, the audio index can also be used for verification after the audio receiving device receives the audio.
可选的,在音频播放终端建立音频通道索引表步骤之后还包括:Optionally, after the audio playback terminal establishes the audio channel index table step, it also includes:
当正在播放的多路音频发生变化时,更新音频通道索引表,更新后的音频通道索引表中包括更新后的多路音频的标识符以及更新后多路音频的标识符对应的音频通道的标识符。When the multi-channel audio being played changes, the audio channel index table is updated, and the updated audio channel index table includes the identifier of the updated multi-channel audio and the identification of the audio channel corresponding to the identifier of the updated multi-channel audio symbol.
由于正在播放的音频节目会发生一些增加或者减少,多路音频与音频通道之间是一一对应的,音频节目发生变化后对应的音通道索引表也会发生变化,即增加音频通道索引表中的项目或者减少音频通道索引表中的项目,将最新的音频通道索引表发送给音频接收装置,以使得提供的音频通道索引表中的内容都是用户可以实时进行选择的音频节目。Since the audio program being played will increase or decrease, there is a one-to-one correspondence between multiple audio channels and audio channels. After the audio program changes, the corresponding audio channel index table will also change, that is, increase the audio channel index table. or reduce the items in the audio channel index table, and send the latest audio channel index table to the audio receiving device, so that the contents in the provided audio channel index table are all audio programs that the user can select in real time.
可选的,在音频播放终端发送音频通道索引表至音频接收装置具体包括:Optionally, sending the audio channel index table to the audio receiving device at the audio playback terminal specifically includes:
判断是否有新的音频接收装置与音频播放终端建立无线连接,当有新的音频接收装置与音频播放终端建立无线连接,发送音频通道索引表至音频接收装置,此处具体还可以为当有新的音频接收装置建立无线连接时才发送音频通道索引表给新增的音频接收装置,而没有新增音频接收装置时不需要重复发送音频通道索引表,只需发送多路数据帧,减小冗余数据量。Judging whether there is a new audio receiving device to establish a wireless connection with the audio playback terminal, when a new audio receiving device establishes a wireless connection with the audio playback terminal, send the audio channel index table to the audio receiving device, here specifically can also be when there is a new audio receiving device The audio channel index table is sent to the newly added audio receiving device only when the wireless connection is established by the existing audio receiving device. When there is no new audio receiving device, there is no need to repeatedly send the audio channel index table, only multiple data frames are sent to reduce redundancy. amount of remaining data.
由于音频接收装置可能会有增减,当有音频接收装置减少的时候由于不会影响到原有节目的播放,不需要发送音频通道索引表,但是当有新的音频接收装置连接的时候,由于新的音频接收装置没有音频通道索引表,无法进行选择接收需要接收的音频,此时音频播放终端检测到有新的音频接收装置建立连接后,将音频播放终端上现有的音频通道索引表发送到新的音频接收装置,音频接收装置就可以根据音频通道索引表选择需要接收的音频。Since the audio receiving device may increase or decrease, when there is a decrease in the audio receiving device, it will not affect the playback of the original program, and there is no need to send the audio channel index table, but when a new audio receiving device is connected, due to The new audio receiving device does not have an audio channel index table, and cannot select and receive the audio to be received. At this time, after the audio playback terminal detects that a new audio receiving device has established a connection, it sends the existing audio channel index table on the audio playback terminal to To a new audio receiving device, the audio receiving device can select the audio to be received according to the audio channel index table.
一种多路音频处理方法,该方法在音频接收装置的实现过程如图2所示,包括下述步骤:A multi-channel audio processing method, the implementation process of the method in the audio receiving device is as shown in Figure 2, comprising the following steps:
S201,音频接收装置与音频播放终端建立无线连接;S201, the audio receiving device establishes a wireless connection with the audio playback terminal;
S202,音频接收装置接收音频播放终端发送的音频通道索引表;S202, the audio receiving device receives the audio channel index table sent by the audio playback terminal;
S203,音频接收装置确定需要接收的音频索引,接收并解析数据帧得到需要接收的音频索引对应的音频帧;S203, the audio receiving device determines the audio index to be received, receives and parses the data frame to obtain the audio frame corresponding to the audio index to be received;
S204,音频接收装置解析音频帧并进行播放。S204, the audio receiving device parses and plays the audio frame.
通过音频接收装置与音频播放终端建立无线连接,通过接收音频播放终端发送的音频通道索引表,接收到的音频帧中的各个音频索引为音频标识符和/或音频通道标示符;当音频索引中含有音频通道标示符时,音频接收装置接收用户选择的音频标识符,根据音频的标识符通过音频通道索引表找到音频所对应的音频通道标示符,然后解析数据帧得到音频帧,将确定需要的音频通道标示符与音频帧中封装的音频通道标示符进行比对,得到所需的音频帧;当音频索引为音频标识符时,直接通过用户选择的音频标识符与音频帧中音频标识符进行比对,确立所需的音频帧。Establish a wireless connection with the audio playback terminal through the audio receiving device, by receiving the audio channel index table sent by the audio playback terminal, each audio index in the received audio frame is an audio identifier and/or an audio channel identifier; when in the audio index When the audio channel identifier is included, the audio receiving device receives the audio identifier selected by the user, finds the audio channel identifier corresponding to the audio through the audio channel index table according to the audio identifier, and then parses the data frame to obtain the audio frame, and determines the required The audio channel identifier is compared with the audio channel identifier encapsulated in the audio frame to obtain the required audio frame; when the audio index is an audio identifier, the audio identifier selected by the user is directly compared with the audio identifier in the audio frame Compare to establish the desired audio frame.
其中,当音频索引中含有音频通道标示符时,音频接收装置也可通过默认存储的音频接收通道标示符,如在开机时默认为接收第1通道的音频,然后解析数据帧得到音频帧,将确定需要的音频通道标示符与音频帧中封装的音频通道标示符进行比对,得到所需的音频帧;当音频索引为音频标识符时,音频接收装置通过默认存储的音频接收通道标示符根据查找音频通道索引表得到对应的音频标识符与音频帧中音频标识符进行比对,确立所需的音频。由于音频播放终端的每个音频通道是固定的,将音频通道标示符作为各路音频的标示符,当正在播放的音频是动态变化的时候,音频接收终端可以通过比对这个标示符来识别音频播放终端的各路音频,因此当音频索引中含有音频通道标示符时,能使用户更加准确地切换到所需接收的音频,根据音频通道接收确定所需接收的音频的数据帧,音频接收装置在后续接收音频时通过固定音频通道接收到的数据帧就只有这一个节目的音频,音频接收装置通过这种方式,在音频接收装置上对用户选择接收的音频进行解析并播放,音频播放终端同时播放多个音频,音频接收装置根据自己的选择接收自己需要接收的一个音频,通过这种方式,在不同的音频接收装置上播放不同的音频节目,就实现了音频播放终端同时播放多个音频的功能。Wherein, when the audio index contains the audio channel identifier, the audio receiving device can also receive the channel identifier through the audio stored by default, such as receiving the audio of the first channel by default when starting up, and then analyzing the data frame to obtain the audio frame, and then Determine the required audio channel identifier and compare it with the audio channel identifier encapsulated in the audio frame to obtain the required audio frame; when the audio index is an audio identifier, the audio receiving device receives the channel identifier according to the default stored audio Search the audio channel index table to obtain the corresponding audio identifier and compare it with the audio identifier in the audio frame to establish the required audio. Since each audio channel of the audio playback terminal is fixed, the audio channel identifier is used as the identifier of each audio channel. When the audio being played is dynamically changing, the audio receiving terminal can identify the audio by comparing the identifier. Play the audio of each channel of the terminal, so when the audio index contains the audio channel identifier, the user can switch to the audio to be received more accurately, and determine the data frame of the audio to be received according to the audio channel. The audio receiving device The data frame received through the fixed audio channel in the subsequent audio reception only has the audio of this program. In this way, the audio receiving device analyzes and plays the audio selected by the user on the audio receiving device, and the audio playback terminal simultaneously Play multiple audios, and the audio receiving device receives an audio that it needs to receive according to its own choice. In this way, different audio programs are played on different audio receiving devices, and the audio playback terminal can simultaneously play multiple audios. Features.
可选的,在音频接收装置接收音频播放终端发送的音频通道索引表步骤之后还包括:Optionally, after the audio receiving device receives the audio channel index table step sent by the audio playback terminal, it also includes:
当接收到的音频通道索引表发生更新时,用新的音频通道索引表替换旧的音频通道索引表。When the received audio channel index table is updated, replace the old audio channel index table with the new audio channel index table.
通过及时的检测音频通道索引表是否发生变化,获取正确的可供音频接收装置选择接收的音频进行接收,通过更新音频通道索引表替换旧的音频通道索引表,在选择的时候就不会选择到没有节目的音频,或者选不到最新节目的音频,音频接收装置在接收到新的音频通道索引表后,将新的音频通道索引表替换原来的音频通道索引表,使得音频通道索引表始终是正确的最新的音频通道索引表。By timely detecting whether the audio channel index table has changed, the correct audio that can be selected and received by the audio receiving device is obtained for reception, and the old audio channel index table is replaced by updating the audio channel index table, so that it will not be selected when selecting There is no audio of the program, or the audio of the latest program cannot be selected. After receiving the new audio channel index table, the audio receiving device replaces the original audio channel index table with the new audio channel index table, so that the audio channel index table is always Correct up-to-date audio channel index table.
可选的,在音频接收装置解析音频帧并进行播放步骤之前还包括:Optionally, before the audio receiving device parses the audio frame and performs the playing step, it also includes:
验证音频帧中的音频索引与确定需要接收的音频索引是否相同,若音频索引与用户通过音频索引表选择的信息或音频接收装置默认存储的音频索引一致,即验证通过,此时可以进行解析音频帧并播放,若是验证的结果有不同的,即验证不能通过,此时就无法进行正常播放,通过这种方式来保证选择的音频就是用户需要的音频。Verify that the audio index in the audio frame is the same as the audio index that needs to be received. If the audio index is consistent with the information selected by the user through the audio index table or the audio index stored by default in the audio receiving device, the verification is passed, and the audio can be parsed at this time Frame and play, if the verification results are different, that is, the verification fails, and normal playback cannot be performed at this time. In this way, the selected audio is the audio that the user needs.
本发明还提供了一种音频播放终端和音频接收装置,如图3所示,该音频播放终端31和音频接收装置32组成一种多路音频处理系统,其中音频播放终端31包括:The present invention also provides an audio playback terminal and an audio receiving device. As shown in FIG. 3 , the audio playback terminal 31 and the audio receiving device 32 form a multi-channel audio processing system, wherein the audio playback terminal 31 includes:
数据封装单元311,用于音频播放终端建立音音频通道索引表,将每一路音频和用于标识该路音频的音频索引一起封装为音频帧,再将多路音频帧封装为数据帧;The data encapsulation unit 311 is used for the audio playback terminal to establish an audio and audio channel index table, and encapsulates each channel of audio and the audio index used to identify the channel of audio into an audio frame, and then encapsulates multiple audio frames into a data frame;
第一无线功能连接单元312,用于音频播放终端31与音频接收装置32建立无线连接;The first wireless function connection unit 312 is used to establish a wireless connection between the audio playback terminal 31 and the audio receiving device 32;
索引表发送单元313,用于音频播放终端31将音频通道索引表至音频接收装置32;The index table sending unit 313 is used for the audio playback terminal 31 to send the audio channel index table to the audio receiving device 32;
信息发送单元314,用于音频播放终端31将数据帧发送至音频接收装置32。The information sending unit 314 is used for the audio playing terminal 31 to send the data frame to the audio receiving device 32 .
音频接收装置32包括:Audio receiving device 32 comprises:
第二无线功能连接单元322,用于音频接收装置32与音频播放终端31建立无线连接;The second wireless function connection unit 322 is used to establish a wireless connection between the audio receiving device 32 and the audio playback terminal 31;
索引表接收单元323,用于音频接收装置32接收音频播放终端31发送的音频通道索引表;The index table receiving unit 323 is used for the audio receiving device 32 to receive the audio channel index table sent by the audio playback terminal 31;
数据帧接收单元324,用于音频接收装置32确定需要接收的音频索引,接收并解析数据帧得到需要接收的音频索引对应的音频帧;The data frame receiving unit 324 is used for the audio receiving device 32 to determine the audio index to be received, receive and analyze the data frame to obtain the audio frame corresponding to the audio index to be received;
播放单元321,用于音频接收装置32解析音频帧并进行播放The playback unit 321 is used for the audio receiving device 32 to parse the audio frame and play it
音频播放终端31通过数据封装单元311将正在播放的多路音频与音频通道之间建立音频通道索引表,然后将多路音频按照预定的封装协议封装为一路数据帧,通过第一无线功能连接单元312与音频接收装置32的第二无线功能连接单元322建立无线连接,将数据帧通过信息发送单元313发送至音频接收装置32,从而实现音频播放终端31对多路音频播放的同时,多个音频接收装置32能选择性视听。音频接收装置32的通过第二无线功能连接单元322与音频播放终端31建立无线连接,通过索引表接收单元323和数据帧接收单元324分别接收音频播放终端31通过索引表发送单元313和信息发送单元314发送的音频通道索引表和数据帧,由于音频接收装置32接收音频索引表和数据帧是分开的,音频索引表包括多路音频的标识符以及多路音频标识符对应的音频通道标示符,音频播放终端31确定需要接收的音频所对应的音频索引,可以是用户选择的音频标示符,也可是音频接收装置32默认存储的音频通道标示符,再通过数据帧接收单元324接收数据帧中跟音频索引对应的音频帧,并通过播放单元321解析并播放,这样接收到的音频帧都是一个固定节目的音频信息。The audio playback terminal 31 establishes an audio channel index table between the multi-channel audio being played and the audio channel through the data encapsulation unit 311, and then encapsulates the multi-channel audio into a data frame according to a predetermined encapsulation protocol, and passes through the first wireless function connection unit 312 establishes a wireless connection with the second wireless function connection unit 322 of the audio receiving device 32, and sends the data frame to the audio receiving device 32 through the information sending unit 313, thereby realizing that while the audio playback terminal 31 is playing multiple audio channels, multiple audio The receiving device 32 is capable of selectively viewing and listening. The audio receiving device 32 establishes a wireless connection with the audio playback terminal 31 through the second wireless function connection unit 322, and receives the audio playback terminal 31 through the index table sending unit 313 and the information sending unit through the index table receiving unit 323 and the data frame receiving unit 324 respectively. The audio channel index table and the data frame sent by 314, because the audio receiving device 32 receives the audio index table and the data frame are separated, the audio index table includes the identifier of the multi-channel audio and the audio channel identifier corresponding to the multi-channel audio identifier, The audio playback terminal 31 determines the audio index corresponding to the audio that needs to be received, which can be the audio identifier selected by the user, or the audio channel identifier stored by the audio receiving device 32 by default, and then receives the following in the data frame through the data frame receiving unit 324. The audio frame corresponding to the audio index is parsed and played by the playback unit 321, so that the received audio frames are all audio information of a fixed program.
可选的,音频播放终端31还包括:Optionally, the audio playback terminal 31 also includes:
索引表更新单元,用于判断当正在播放的多路音频发生变化时,更新音频通道索引表,更新后的音频通道索引表中包括更新后的多路音频的标识符以及更新后多路音频的标识符对应的音频通道的标识符。The index table update unit is used to judge that when the multi-channel audio being played changes, the audio channel index table is updated, and the updated audio channel index table includes the identifier of the updated multi-channel audio and the updated multi-channel audio The identifier of the audio channel to which the identifier corresponds.
可选的,索引表发送单元313具体为:Optionally, the index table sending unit 313 is specifically:
用于判断是否有新的音频接收装置与音频播放终端建立无线连接,当有新的音频接收装置与音频播放终端建立无线连接,发送音频通道索引表至新增的音频接收装置。It is used to determine whether a new audio receiving device has established a wireless connection with the audio playback terminal, and when a new audio receiving device has established a wireless connection with the audio playback terminal, the audio channel index table is sent to the newly added audio receiving device.
可选的,音频接收装置32还包括:Optionally, the audio receiving device 32 also includes:
索引表更新单元,用于当接收到的音频通道索引表发生更新时,用新的音频通道索引表替换旧的音频通道索引表。The index table updating unit is configured to replace the old audio channel index table with a new audio channel index table when the received audio channel index table is updated.
可选的,音频接收装置32还包括:Optionally, the audio receiving device 32 also includes:
索引验证单元,用于验证音频帧中的音频索引与确定需要接收的音频索引是否相同,若音频帧中音频索引与用户选择音频索引或音频接收装置默认存储的音频索引一致,即验证通过,此时可以解析对应的音频帧并进行播放,若是验证的结果有不同的,即验证不能通过,此时就无法进行正常播放,通过这种方式来保证选择的音频就是用户需要的音频。The index verification unit is used to verify whether the audio index in the audio frame is the same as the audio index that needs to be received. If the audio index in the audio frame is consistent with the audio index selected by the user or the audio index stored by the audio receiving device by default, the verification is passed. At this time, the corresponding audio frame can be parsed and played. If the verification result is different, that is, the verification fails, and normal playback cannot be performed at this time. This method ensures that the selected audio is the audio that the user needs.
通过上述音频播放终端以及音频接收装置即可实现音频播放终端同时输出多个音频节目,通过无线方式将音频节目输出,音频接收终端通过接收音频播放终端发送的音频帧和音频通道索引表,再通过解析等操作进行播放,音频接收终端选择自己需要接收的音频节目,通过这种方式音频播放终端就能够同时播放多路音频,音频接收装置则各自根据自己的需要接收自己需要的音频。实现多路音频的同时播放和收听。Through the above-mentioned audio playback terminal and audio receiving device, the audio playback terminal can output multiple audio programs at the same time, and output the audio programs wirelessly. The audio receiving terminal receives the audio frame and the audio channel index table sent by the audio playback terminal, and then passes Analysis and other operations are performed, and the audio receiving terminal selects the audio program it needs to receive. In this way, the audio playing terminal can play multiple channels of audio at the same time, and the audio receiving devices each receive the audio they need according to their own needs. Realize simultaneous playback and listening of multiple channels of audio.
实施例二:Embodiment two:
图4示出了本发明提供的一种多路音频处理方法的音频播放终端的实施例二的实现流程图,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:Fig. 4 shows the implementation flowchart of Embodiment 2 of an audio playback terminal of a multi-channel audio processing method provided by the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
S401,音频播放终端建立音频通道索引表,将每一路音频和用于标识该路音频的音频索引一起封装为音频帧,再将多路音频帧封装为数据帧。S401. The audio playback terminal creates an audio channel index table, encapsulates each channel of audio and an audio index used to identify the channel of audio into an audio frame, and then encapsulates multiple channels of audio frames into a data frame.
因为音频播放终端同时需要播放的音频是多路的,对于多路音频又需要区分,以使得各路音频不会混淆,因此对多路音频建立音频通道索引表,音频通道索引表包括多路音频标识符以及多路音频标识符对应的音频通道标示符,通过音频索引表来区分识别到不同的音频,音频索引包括音频标识符或/和音频标识符对应的音频通道标示符,通过将音频标识符索引和/或音频标识符对应的音频通道标示符封装在音频帧中来确认接收的音频是用户选择接收的音频。Because the audio playback terminal needs to play multiple channels of audio at the same time, it is necessary to distinguish multiple channels of audio so that the audio channels will not be confused. Therefore, an audio channel index table is established for multiple channels of audio. The audio channel index table includes multiple channels of audio The identifier and the audio channel identifier corresponding to the multi-channel audio identifier are used to distinguish and identify different audio through the audio index table. The audio index includes the audio identifier or/and the audio channel identifier corresponding to the audio identifier. By identifying the audio The audio channel identifier corresponding to the identifier index and/or the audio identifier is encapsulated in the audio frame to confirm that the received audio is the audio selected by the user to receive.
S402,当正在播放的多路音频发生变化时,更新音频通道索引表。S402. When the multi-channel audio being played changes, update the audio channel index table.
多路音频同时进行播放时,难免会发生部分的音频节目的增加或者部分音频节目的减少,对于增加或者减少音频节目的情况,需要及时对音频通道索引表进行更新,使得通道能够及时得到利用,同时音频节目调整的信息也在音频通道索引表中体现处理,通知音频接收装置音频节目发生了变化,以及变化后的音频所对应的音频通道是否发生变化,音频接收装置在后续选择需要接收的音频的时候通过切换音频通道接收音频时就不会发生错乱。When multiple channels of audio are played at the same time, it is inevitable that some audio programs will increase or some audio programs will decrease. For the increase or decrease of audio programs, it is necessary to update the audio channel index table in time so that the channels can be used in time. At the same time, the audio program adjustment information is also reflected in the audio channel index table to notify the audio receiving device that the audio program has changed, and whether the audio channel corresponding to the changed audio has changed, and the audio receiving device will subsequently select the audio to be received. There will be no confusion when receiving audio by switching audio channels.
S403,音频播放终端与音频接收装置建立无线连接。S403, the audio playback terminal establishes a wireless connection with the audio receiving device.
音频播放终端与音频接收装置建立无线连接,由于多路音频是通过无线连接方式发送到音频接收装置的,音频接收装置与音频播放终端要进行通信,首先需要建立无线连接,通过建立的无线连接才能将音频帧以及音频通道索引表发送到音频接收装置,具体的音频接收装置与音频播放终端的连接建立过程可以为;音频接收装置主动扫描音频接收装置所在的网络,检测是否有新的音频接收设备建立连接,或者当音频接收装置需要接收音频接收装置正在播放的音频,主动与音频接收装置建立连接,即音频接收装置与音频接收装置双端都可以主动与另一端建立连接。The audio playback terminal establishes a wireless connection with the audio receiving device. Since the multi-channel audio is sent to the audio receiving device through a wireless connection, the audio receiving device and the audio playback terminal must first establish a wireless connection to communicate. Send the audio frame and the audio channel index table to the audio receiving device. The specific process of establishing a connection between the audio receiving device and the audio playback terminal can be: the audio receiving device actively scans the network where the audio receiving device is located, and detects whether there is a new audio receiving device Establish a connection, or when the audio receiving device needs to receive the audio being played by the audio receiving device, actively establish a connection with the audio receiving device, that is, both ends of the audio receiving device and the audio receiving device can actively establish a connection with the other end.
S404,判断是否有新的音频接收装置与音频播放终端建立无线连接,当有新的音频接收装置与音频播放终端建立无线连接,发送音频通道索引表至新的音频接收装置。S404. Determine whether a new audio receiving device has established a wireless connection with the audio playback terminal, and when a new audio receiving device has established a wireless connection with the audio playback terminal, send an audio channel index table to the new audio receiving device.
由于音频接收装置与音频播放终端建立无线连接以后,它们之间的无线连接可能会发生变化,即增加或者减少音频接收装置,当有音频接收装置减少时不会产生影响,但是当有新的音频接收装置建立连接以后如果没有获得音频通道索引表就无法选择节目,此时就需要通过音频播放终端发送一次音频通道索引表至新增的音频接收装置,如果没有新增的音频接收装置,则执行S405,其中当音频播放终端首次开机与音频接收装置建立无线连接也属于有新的音频接收装置与音频播放终端建立无线连接,因此需要发送一次音频通道索引表至所有与音频播放终端相连的音频接收装置。After the audio receiving device establishes a wireless connection with the audio playback terminal, the wireless connection between them may change, that is, adding or reducing the audio receiving device will not have an impact when there is a reduction in the audio receiving device, but when there is a new audio After the receiving device establishes a connection, if the audio channel index table is not obtained, the program cannot be selected. At this time, the audio channel index table needs to be sent to the newly added audio receiving device through the audio playback terminal. If there is no newly added audio receiving device, execute S405, wherein when the audio player terminal starts up for the first time and establishes a wireless connection with the audio receiving device, it also belongs to a new audio receiving device establishing a wireless connection with the audio player terminal, so it is necessary to send an audio channel index table to all audio receivers connected to the audio player terminal device.
S405,音频播放终端将数据帧发送至音频接收装置。S405, the audio playing terminal sends the data frame to the audio receiving device.
音频播放终端将数据帧发送至音频接收装置,多路音频以数据帧的形式进行发送,所有的音频信息都包含在对外发送的数据帧内容中,其中音频帧中包括的内容有:音频帧的帧头标示、音频索引、音频的数据内容、音频的数据大小以及音频帧的帧尾标示。音频索引包括音频标识符和/或音频通道标示符,其中音频索引还可用于进行验证音频帧中的音频索引与确定需要接收的音频索引是否相同,且音频通道索引表则只有在有更新的时候和有新的音频接收装置接入的时候发送。The audio playback terminal sends the data frame to the audio receiving device, and the multi-channel audio is sent in the form of a data frame, and all audio information is included in the content of the data frame sent externally, and the content included in the audio frame is: the content of the audio frame Frame header mark, audio index, audio data content, audio data size and frame end mark of audio frame. The audio index includes an audio identifier and/or an audio channel identifier, where the audio index can also be used to verify whether the audio index in the audio frame is the same as the audio index that needs to be received, and the audio channel index table is only updated when there is an update and sent when a new audio receiving device is connected.
图5是本发明提供的一种多路音频处理方法的音频接收装置实施例二的实现流程图,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:Fig. 5 is an implementation flow chart of Embodiment 2 of an audio receiving device of a multi-channel audio processing method provided by the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
S501,音频接收装置与音频播放终端建立无线连接。S501. The audio receiving device establishes a wireless connection with the audio playing terminal.
音频接收装置与音频播放终端建立无线连接,音频接收装置与音频播放终端建立连接的方式有:音频接收装置主动与音频播放终端建立连接,音频播放终端主动与音频接收装置建立连接。The audio receiving device establishes a wireless connection with the audio playing terminal. The ways of establishing the connection between the audio receiving device and the audio playing terminal include: the audio receiving device actively establishes a connection with the audio playing terminal, and the audio playing terminal actively establishes a connection with the audio receiving device.
S502,音频接收装置接收音频播放终端发送的音频通道索引表。S502. The audio receiving device receives the audio channel index table sent by the audio playing terminal.
音频接收装置接收音频播放终端发送的音频通道索引表,音频通道索引表包括多路音频的标识符以及多路音频标识符对应的音频通道标示符,音频接收装置通过音频通道索引表选择自己需要接收的音频。The audio receiving device receives the audio channel index table sent by the audio playback terminal. The audio channel index table includes multi-channel audio identifiers and audio channel identifiers corresponding to the multi-channel audio identifiers. The audio receiving device selects the audio channel index table that it needs to receive. audio.
S503,判断接收到的音频索引表是否发生更新。若是,执行S504,若否,执行S505。S503, judging whether the received audio index table is updated. If yes, execute S504; if not, execute S505.
S504,用新的音频通道索引表替换旧的音频通道索引表。S504, replace the old audio channel index table with the new audio channel index table.
当判断接收到的音频帧里的音频通道索引表发生更新,则将新的的音频通道索引表替换掉之前接收的音频通道索引表。When it is judged that the audio channel index table in the received audio frame is updated, the previously received audio channel index table is replaced by the new audio channel index table.
S505,音频接收装置确定所需接收的音频索引,接收并解析数据帧得到所需的接收音频索引所对应的音频帧。S505, the audio receiving device determines the audio index to be received, receives and parses the data frame to obtain the audio frame corresponding to the audio index to be received.
用户通过音频通道索引表中的信息就能够得到正在播放的音频是那些,以及这些音频所处的通道,通过用户选择的音频标识符或音频接收装置默认设置的音频通道标示符,确定所需接收的音频索引,因为音频在音频通道索引表中都是通过标识符进行标识的,选择音频时也是通过音频标识符来进行选择的。或通过音频标识符得到对应的音频通道标示符,然后解析数据帧得到音频帧,将所需的音频标识符或音频通道标示符与音频帧中的音频标识符或音频通道标示符相比对,得到所需的音频帧。Through the information in the audio channel index table, the user can obtain the audio being played and the channels where the audio is located, and determine the audio channel identifier selected by the user or the default audio channel identifier of the audio receiving device. The audio index, because the audio is identified by the identifier in the audio channel index table, and the audio is also selected by the audio identifier when selecting the audio. Or obtain the corresponding audio channel identifier through the audio identifier, then parse the data frame to obtain the audio frame, and compare the required audio identifier or audio channel identifier with the audio identifier or audio channel identifier in the audio frame, Get the desired audio frame.
S506,验证音频帧中的音频索引与确定需要接收的音频索引是否相同,若相同执行S507,否则返回执行S505。S506, verify whether the audio index in the audio frame is the same as the audio index to be received, if they are the same, execute S507, otherwise return to execute S505.
当接收到数据帧以后通过对音频帧中的音频索引进行验证,验证接收到的音频索引是否为用户选择接收或音频接收装置默认设置的音频索引,若否,则不播放,重新执行S505,接收并解析数据帧得到所需的接收音频索引所对应的音频帧;若是,则执行S507。从而保证播放的音频即为用户选择或音频接收装置默认的需要播放的音频。After receiving the data frame, by verifying the audio index in the audio frame, verify whether the received audio index is the audio index selected by the user to receive or the audio receiving device default setting, if not, then do not play, re-execute S505, receive And analyze the data frame to obtain the audio frame corresponding to the required received audio index; if yes, execute S507. In this way, it is ensured that the played audio is the audio selected by the user or the default audio to be played by the audio receiving device.
S507,音频接收装置解析音频帧并进行播放。S507, the audio receiving device parses and plays the audio frame.
音频接收装置解析接收到的音频帧,获取该音频帧中的音频数据,解析播放的音频帧中的音频。The audio receiving device parses the received audio frame, acquires the audio data in the audio frame, and parses the audio in the played audio frame.
通过音频接收装置的这种选择方式,音频接收装置接收到的音频就是用户需要接收的音频,其他的音频的信息就不用接收,当需要切换音频时,用户可以通过选择上下键(音频接收装置参考音频索引表来往上/往下调整音频标示符的值)或数字键(音频接收装置参考音频索引表中的音频通道标示符来调整音频标示符的值)确定所需接收的音频,通过比对音频帧中的音频通道标示符或音频标识符得到所需的音频,方便用户在不同音频通道之间的切换。Through this selection method of the audio receiving device, the audio received by the audio receiving device is the audio that the user needs to receive, and other audio information does not need to be received. When the audio needs to be switched, the user can select the up and down keys (refer to Audio index table to adjust the value of the audio identifier up/down) or number keys (the audio receiving device refers to the audio channel identifier in the audio index table to adjust the value of the audio identifier) to determine the audio to be received, by comparing The audio channel identifier or audio identifier in the audio frame obtains the desired audio, which is convenient for the user to switch between different audio channels.
图6是本发明提供的一种音频播放终端实施例二的结构图,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:FIG. 6 is a structural diagram of Embodiment 2 of an audio playback terminal provided by the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
数据封装单元61,用于音频播放终端建立音频通道索引表,每一路音频和用于标识该路音频的音频索引一起封装为音频帧,并将多路音频帧封装为一数据帧;The data encapsulation unit 61 is used for the audio playback terminal to establish an audio channel index table, each channel of audio and the audio index used to identify the channel of audio are packaged into an audio frame together, and multiple channels of audio frames are packaged into a data frame;
第一无线功能连接单元62,用于音频播放终端与音频接收装置建立无线连接;The first wireless function connection unit 62 is used to establish a wireless connection between the audio playback terminal and the audio receiving device;
信息发送单元63,用于音频播放终端将数据帧发送至音频接收装置;The information sending unit 63 is used for the audio playback terminal to send the data frame to the audio receiving device;
索引表更新单元64,用于判断当正在播放的多路音频发生变化时,更新音频通道索引表,更新后的音频通道索引表中包括更新后的多路音频的标识符以及更新后多路音频的标识符对应的音频通道的标识符。Index table update unit 64, for judging that when the multi-channel audio being played changes, update the audio channel index table, the updated audio channel index table includes the identifier of the updated multi-channel audio and the updated multi-channel audio The identifier of the corresponding audio channel identifier.
索引表发送单元65,用于判断是否有新的音频接收装置与音频播放终端建立无线连接,当有新的音频接收装置与音频播放终端建立无线连接,发送音频通道索引表至新的音频接收装置。The index table sending unit 65 is used to judge whether there is a new audio receiving device to establish a wireless connection with the audio playback terminal, and when a new audio receiving device establishes a wireless connection with the audio playback terminal, send the audio channel index table to the new audio receiving device .
图7是本发明提供的一种音频接收装置实施例二的结构图,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:Fig. 7 is a structural diagram of Embodiment 2 of an audio receiving device provided by the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
第二无线功能连接单元71,用于音频接收装置与音频播放终端建立无线连接;The second wireless function connection unit 71 is used for establishing a wireless connection between the audio receiving device and the audio playback terminal;
索引表接收单元72,用于音频接收装置接收音频播放终端发送的音频通道索引表;The index table receiving unit 72 is used for the audio receiving device to receive the audio channel index table sent by the audio playback terminal;
数据帧接收单元73,用于音频接收装置确定需要接收的音频索引,接收并解析数据帧得到确定所需的音频索引对应的音频帧;The data frame receiving unit 73 is used for the audio receiving device to determine the audio index to be received, receive and analyze the data frame to obtain the audio frame corresponding to the audio index required for determination;
播放单元74,用于音频接收装置解析音频帧并进行播放;The playback unit 74 is used for the audio receiving device to parse the audio frame and play it;
索引表更新单元75,用于当接收到的音频通道索引表发生更新时,用新的音频通道索引表替换旧的音频通道索引表;The index table update unit 75 is used to replace the old audio channel index table with a new audio channel index table when the received audio channel index table is updated;
索引验证单元76,用于验证音频帧中音频索引与确定需要接收的音频索引是否相同。若音频帧中音频索引与用户选择音频标识符或音频接收装置默认存储的音频通道标示符一致,即验证通过,此时可以解析对应的音频帧并进行播放,若是验证的结果有不同的,即验证不能通过,此时就无法进行正常播放,通过这种方式来保证选择的音频就是用户需要的音频。The index verification unit 76 is configured to verify whether the audio index in the audio frame is the same as the audio index determined to be received. If the audio index in the audio frame is consistent with the audio identifier selected by the user or the audio channel identifier stored by the audio receiving device by default, the verification is passed. At this time, the corresponding audio frame can be parsed and played. If the verification result is different, that is If the verification fails, normal playback cannot be performed at this time. In this way, the selected audio is the audio that the user needs.
其中需要说明的是音频接收装置可以为智能手机,带有无线数据接收功能和扬声器的装置,或者带有无线数据接收功能和耳机插口的音频接收装置。It should be noted that the audio receiving device can be a smart phone, a device with a wireless data receiving function and a speaker, or an audio receiving device with a wireless data receiving function and an earphone jack.
本发明实施例通过一种播放电视音频的方法、音频播放终端及音频接收装置,解决了一种在音频接收装置上同时播放多种音频的问题,使得同时播放音频的时候相互之间不干扰,且可以同时进行视听,同时可以提供一个正在播放的电视节目的不同语言版本的音频提供给音频接收装置,音频播放终端的后台背景音乐等其他能够通过音频接收装置进行播放的音频,丰富音频接收装置同时播放的音频,本发明适用于智能电视,DVD等音频播放设备,通过将多路音频进行同时播放,解决了这些设备不能同时播放多路音频的问题,音频接收装置接收音频时根据自己的需要接收自己需要接收的音频,进行切换音频的步骤和方式如选择新的音频节目时一样的操作,通过上述方式用户可以选择接收同以电视节目上的不同语言版本的音频或者正在播放的多个节目的自己需要收听的音频,以及切换到背景音乐等音频节目上收听。The embodiment of the present invention solves the problem of simultaneously playing multiple audios on the audio receiving device through a method for playing TV audio, an audio playing terminal, and an audio receiving device, so that the audios are played simultaneously without interfering with each other. And can watch and listen at the same time, and can provide audio of different language versions of a currently playing TV program to the audio receiving device, the background background music of the audio playback terminal and other audio that can be played by the audio receiving device, enriching the audio receiving device Simultaneously played audio, the present invention is suitable for smart TVs, DVDs and other audio playback devices, by simultaneously playing multiple audio channels, it solves the problem that these devices cannot play multiple audio channels at the same time, and the audio receiving device receives audio according to its own needs Receive the audio that you need to receive, and the steps and methods of switching audio are the same as when selecting a new audio program. Through the above method, the user can choose to receive the audio of different language versions on the same TV program or multiple programs that are being played The audio that you need to listen to, and switch to audio programs such as background music to listen to.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage Media such as ROM/RAM, magnetic disk, optical disk, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions 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 of the present invention. within range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210331167.7A CN102867525B (en) | 2012-09-07 | 2012-09-07 | A kind of multichannel voice frequency disposal route, audio-frequency playing terminal and apparatus for receiving audio |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210331167.7A CN102867525B (en) | 2012-09-07 | 2012-09-07 | A kind of multichannel voice frequency disposal route, audio-frequency playing terminal and apparatus for receiving audio |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102867525A CN102867525A (en) | 2013-01-09 |
CN102867525B true CN102867525B (en) | 2016-01-13 |
Family
ID=47446343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210331167.7A Expired - Fee Related CN102867525B (en) | 2012-09-07 | 2012-09-07 | A kind of multichannel voice frequency disposal route, audio-frequency playing terminal and apparatus for receiving audio |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102867525B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104023265A (en) * | 2013-03-01 | 2014-09-03 | 联想(北京)有限公司 | Method and device for switching audio information streams and electronic equipment |
CN104125483A (en) * | 2014-07-07 | 2014-10-29 | 乐视网信息技术(北京)股份有限公司 | Audio comment information generating method and device and audio comment playing method and device |
CN106293595A (en) * | 2015-05-27 | 2017-01-04 | 中兴通讯股份有限公司 | The audio frequency output processing method of a kind of terminal unit and terminal unit |
CN105163177A (en) * | 2015-09-02 | 2015-12-16 | 深圳Tcl数字技术有限公司 | Audio data playing method and system based on smart television and smart television |
CN105227979B (en) * | 2015-09-14 | 2019-03-29 | 深圳Tcl数字技术有限公司 | Audio frequency playing method and device based on smart television |
CN105187969B (en) * | 2015-09-21 | 2019-11-19 | 深圳市冠旭电子股份有限公司 | A headset for simultaneous translation |
CN105373581B (en) * | 2015-10-09 | 2019-02-12 | 浙江大华技术股份有限公司 | A kind of method and device handling video file in process of exchange |
CN109218234A (en) * | 2018-08-07 | 2019-01-15 | 广州市艾涛普电子有限公司 | A kind of audio signal transmission method and system |
CN109857364A (en) * | 2019-01-28 | 2019-06-07 | Oppo广东移动通信有限公司 | Audio frequency playing method and device, storage medium, communication terminal |
CN114978356B (en) * | 2022-04-29 | 2023-08-29 | 歌尔股份有限公司 | Method, equipment and storage medium for multi-channel data transmission based on audio |
CN115883525A (en) * | 2022-11-24 | 2023-03-31 | 深聪半导体(江苏)有限公司 | Method and system for monitoring integrity of transmission data |
CN117615036A (en) * | 2023-11-28 | 2024-02-27 | 北京华宇信息技术有限公司 | A multi-channel audio transmission method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1507731A (en) * | 2001-05-04 | 2004-06-23 | Ssi��ʽ���� | Real-time control of playback rates in presentations |
CN1695346A (en) * | 2002-09-28 | 2005-11-09 | 株式会社Kt | Communication system for home automation using advanced ADSL |
CN1719945A (en) * | 2004-07-06 | 2006-01-11 | 华为技术有限公司 | Realize Time Division Multiplex Switching Circuit and Switching Method Based on Frame Structure |
CN1812315A (en) * | 2005-01-25 | 2006-08-02 | 华为技术有限公司 | Multi-channel data signal processing method and apparatus |
CN1859077A (en) * | 2005-04-30 | 2006-11-08 | 华为技术有限公司 | Time division multiplex data transmitting method based on packet exchanging |
CN1929614A (en) * | 2005-09-08 | 2007-03-14 | 电子科技大学 | Frame transmission method for moving and hand-held wireless videocast |
CN1972484A (en) * | 2006-12-05 | 2007-05-30 | 中兴通讯股份有限公司 | An implementation method for current and next program information in mobile multimedia broadcasting service |
CN101212679A (en) * | 2006-12-30 | 2008-07-02 | 凌阳科技股份有限公司 | AV synchronization method and device for switching multi-channel audio stream during playing of AVI file |
CN101414887A (en) * | 2008-11-27 | 2009-04-22 | 中兴通讯股份有限公司 | Method and system for implementing data broadcast |
CN101939990A (en) * | 2007-12-12 | 2011-01-05 | Lg电子株式会社 | Apparatus for transmitting and receiving a signal and method of transmitting and receiving a signal |
-
2012
- 2012-09-07 CN CN201210331167.7A patent/CN102867525B/en not_active Expired - Fee Related
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1507731A (en) * | 2001-05-04 | 2004-06-23 | Ssi��ʽ���� | Real-time control of playback rates in presentations |
CN1695346A (en) * | 2002-09-28 | 2005-11-09 | 株式会社Kt | Communication system for home automation using advanced ADSL |
CN1719945A (en) * | 2004-07-06 | 2006-01-11 | 华为技术有限公司 | Realize Time Division Multiplex Switching Circuit and Switching Method Based on Frame Structure |
CN1812315A (en) * | 2005-01-25 | 2006-08-02 | 华为技术有限公司 | Multi-channel data signal processing method and apparatus |
CN1859077A (en) * | 2005-04-30 | 2006-11-08 | 华为技术有限公司 | Time division multiplex data transmitting method based on packet exchanging |
CN1929614A (en) * | 2005-09-08 | 2007-03-14 | 电子科技大学 | Frame transmission method for moving and hand-held wireless videocast |
CN1972484A (en) * | 2006-12-05 | 2007-05-30 | 中兴通讯股份有限公司 | An implementation method for current and next program information in mobile multimedia broadcasting service |
CN101212679A (en) * | 2006-12-30 | 2008-07-02 | 凌阳科技股份有限公司 | AV synchronization method and device for switching multi-channel audio stream during playing of AVI file |
CN101939990A (en) * | 2007-12-12 | 2011-01-05 | Lg电子株式会社 | Apparatus for transmitting and receiving a signal and method of transmitting and receiving a signal |
CN101414887A (en) * | 2008-11-27 | 2009-04-22 | 中兴通讯股份有限公司 | Method and system for implementing data broadcast |
Also Published As
Publication number | Publication date |
---|---|
CN102867525A (en) | 2013-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102867525B (en) | A kind of multichannel voice frequency disposal route, audio-frequency playing terminal and apparatus for receiving audio | |
US10178345B2 (en) | Apparatus, systems and methods for synchronization of multiple headsets | |
US10158946B2 (en) | Speaker discovery and assignment | |
CN107277691B (en) | Multi-channel audio playing method and system based on cloud and audio gateway device | |
KR20090118837A (en) | Method and communication system for controlling home appliance using mobile device | |
US12052556B2 (en) | Terminal, audio cooperative reproduction system, and content display apparatus | |
CN106341719A (en) | Synchronized audio play method simultaneously using various kinds of play modules of equipment and apparatus thereof | |
US12159637B2 (en) | Using non-audio data embedded in an audio signal | |
CN103324459A (en) | Method and system for implementing USB (universal serial bus) headset devices | |
WO2024198815A1 (en) | Display device and device control method | |
CN115550705A (en) | An audio playback method and device | |
KR20110037680A (en) | Multi-channel audio output device and method of portable device | |
CN111190568A (en) | Volume adjusting method and device | |
CN119545072A (en) | Display device and audio broadcasting method | |
CN105100891B (en) | Audio data acquisition methods and device | |
CN117319888A (en) | Sound effect control method, device and system | |
CN105635903A (en) | Wireless connection and control method and system for wireless speaker | |
JP6508831B2 (en) | Receiving device, receiving method, broadcast system and program | |
CN104135331A (en) | System and method for selecting input feeds to a media player | |
CN204104122U (en) | Wireless sound system and sound module applicable to same | |
CN106714042B (en) | Listening equipment realizes that track switches the method and apparatus listened to by terminal device | |
CN105913859A (en) | Sound source input mode prompting method and audio playing equipment | |
CN120416574A (en) | Display device and communication method between display device and audio device | |
KR20150091662A (en) | Method and system for playing digital contents | |
TW201618560A (en) | Wireless connection and control method for wireless sound box and the system thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160113 |