Movatterモバイル変換


[0]ホーム

URL:


CN115550705A - An audio playback method and device - Google Patents

An audio playback method and device
Download PDF

Info

Publication number
CN115550705A
CN115550705ACN202110731435.3ACN202110731435ACN115550705ACN 115550705 ACN115550705 ACN 115550705ACN 202110731435 ACN202110731435 ACN 202110731435ACN 115550705 ACN115550705 ACN 115550705A
Authority
CN
China
Prior art keywords
audio
audio data
channel
bluetooth
playing
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.)
Pending
Application number
CN202110731435.3A
Other languages
Chinese (zh)
Inventor
杨坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co LtdfiledCriticalHisense Visual Technology Co Ltd
Priority to CN202110731435.3ApriorityCriticalpatent/CN115550705A/en
Publication of CN115550705ApublicationCriticalpatent/CN115550705A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The application relates to the technical field of Bluetooth, in particular to an audio playing method and device, which are used for improving the playing effect of audio, and the method comprises the following steps: the display device responds to the triggered playing operation, after the multi-channel audio data are obtained, the multi-channel audio data are sent to the plurality of playing devices through the Bluetooth channel, and therefore the plurality of playing devices play the received audio data. Therefore, the multi-channel audio data are respectively sent to different Bluetooth playing devices, a plurality of playing devices connected with the display device are achieved, the audio data of different channels are played, multi-channel sound effects are achieved, and the audio playing effect is improved.

Description

Translated fromChinese
一种音频播放方法及装置An audio playback method and device

技术领域technical field

本申请涉及蓝牙技术领域,特别涉及一种音频播放方法及装置。The present application relates to the technical field of bluetooth, in particular to an audio playing method and device.

背景技术Background technique

随着科技的逐步发展,蓝牙设备逐渐成为日常生活中重要的播放设备。为了使目标对象具有更好的音频沉浸体验,相关技术中,可以通过专业的家庭影院提供音频播放功能,但是家庭影院的设备成本较高,而普通的蓝牙播放设备无法提供多声道音效,且由于显示设备与蓝牙设备的蓝牙连接模式是一对一模式,因此也不能达到多设备组成音响系统的效果。With the gradual development of technology, Bluetooth devices have gradually become important playback devices in daily life. In order to make the target object have a better audio immersion experience, in related technologies, a professional home theater can provide an audio playback function, but the equipment cost of the home theater is relatively high, and ordinary bluetooth playback devices cannot provide multi-channel sound effects, and Since the Bluetooth connection mode between the display device and the Bluetooth device is a one-to-one mode, the effect of multiple devices forming a sound system cannot be achieved.

发明内容Contents of the invention

本申请提供了一种音频播放方法及装置,用以实现多声道输出,提高音频播放过程中的音质效果。The present application provides an audio playback method and device, which are used to realize multi-channel output and improve sound quality during audio playback.

本申请实施例提供的具体技术方案如下:The specific technical scheme that the embodiment of the present application provides is as follows:

第一方面,一种显示设备,包括:In a first aspect, a display device includes:

显示器,用于显示操作界面;A display device for displaying an operation interface;

蓝牙模块,用于通过多个蓝牙通路连接多个播放设备,其中,每个蓝牙通路连接一个播放设备;The bluetooth module is used to connect multiple playback devices through multiple bluetooth channels, wherein each bluetooth channel is connected to a playback device;

控制器,被配置为:Controller, configured as:

响应于目标对象在所述操作界面中触发的播放操作,对待播放音频进行音频解析,得到多路音频数据;In response to the playback operation triggered by the target object in the operation interface, audio analysis is performed on the audio to be played to obtain multiple channels of audio data;

将所述多路音频数据通过所述多个蓝牙通路发送至所述多个播放设备,以使所述多个播放设备播放接收到的音频数据。sending the multiple channels of audio data to the multiple playback devices through the multiple bluetooth channels, so that the multiple playback devices play the received audio data.

第二方面,一种播放设备,包括:In a second aspect, a playback device includes:

蓝牙模块,用于通过目标蓝牙通路连接显示设备,所述显示设备通过其他蓝牙通路与其他播放设备连接;The bluetooth module is used to connect the display device through the target bluetooth path, and the display device is connected to other playback devices through other bluetooth paths;

控制器,被配置为:Controller, configured as:

基于目标蓝牙通路的通路标识,从多路音频数据各自对应的蓝牙通路中,确定目标音频通路,其中,所述多路音频数据是所述显示设备基于目标对象触发的播放操作,对待播放音频进行音频解析后得到的;Based on the channel identification of the target Bluetooth channel, the target audio channel is determined from the Bluetooth channels corresponding to the multi-channel audio data, wherein the multi-channel audio data is a playback operation triggered by the display device based on the target object, and the audio to be played is performed. obtained after audio analysis;

通过所述目标音频通路,接收并播放对应的目标音频数据。Receive and play corresponding target audio data through the target audio channel.

第三方面,一种音频播放方法,应用于显示设备,所述显示设备通过多个蓝牙通路与多个播放设备连接,每个蓝牙通路连接一个播放设备,包括:In a third aspect, an audio playback method is applied to a display device, the display device is connected to multiple playback devices through multiple Bluetooth channels, and each Bluetooth channel is connected to a playback device, including:

响应于目标对象在所述操作界面中触发的播放操作,对待播放音频进行音频解析,得到多路音频数据;In response to the playback operation triggered by the target object in the operation interface, audio analysis is performed on the audio to be played to obtain multiple channels of audio data;

将所述多路音频数据通过所述多个蓝牙通路发送至所述多个播放设备,以使所述多个播放设备播放接收到的音频数据。sending the multiple channels of audio data to the multiple playback devices through the multiple bluetooth channels, so that the multiple playback devices play the received audio data.

第四方面,一种音频播放方法,应用于与显示设备通过蓝牙通路连接的多个播放设备中的一个播放设备,每个蓝牙通路连接一个播放设备,包括:In the fourth aspect, an audio playback method is applied to a playback device among a plurality of playback devices connected to a display device through a Bluetooth channel, and each Bluetooth channel is connected to a playback device, including:

基于目标蓝牙通路的通路标识,从多路音频数据各自对应的蓝牙通路中,确定目标音频通路,其中,所述多路音频数据是所述显示设备基于目标对象触发的播放操作,对待播放音频进行音频解析后得到的;Based on the channel identification of the target Bluetooth channel, the target audio channel is determined from the Bluetooth channels corresponding to the multi-channel audio data, wherein the multi-channel audio data is a playback operation triggered by the display device based on the target object, and the audio to be played is performed. obtained after audio analysis;

通过所述目标音频通路,接收并播放对应的目标音频数据。Receive and play corresponding target audio data through the target audio channel.

第五方面,一种存储介质,当所述存储介质中的指令由处理器执行时,使得所述处理器能够执行如上述任一项所述的音频播放方法。In a fifth aspect, a storage medium, when the instructions in the storage medium are executed by a processor, the processor can execute the audio playback method as described in any one of the above.

综上所述,本申请实施例中,响应于目标对象触发的播放操作,对待播放音频进行音频解析,得到多路音频数据;基于多路音频数据的数据类型标识,以及基于通路对应关系,确定多路音频数据各自对应的通路标识;基于确定的通路标识,将多路音频数据通过对应的蓝牙通路发送至多个播放设备,以使多个播放设备播放接收到的音频数据。这样,通过将待播放音频解析为多路音频数据,并通过相应的蓝牙通路进行数据传输,可以实现与显示设备连接的多个播放设备,播放不同路的音频数据,从而实现多声道音效,提高音频的播放效果。To sum up, in the embodiment of the present application, in response to the playback operation triggered by the target object, audio analysis is performed on the audio to be played to obtain multi-channel audio data; The channel identifiers corresponding to the multiple channels of audio data; based on the determined channel identifiers, the multiple channels of audio data are sent to multiple playback devices through the corresponding Bluetooth channels, so that the multiple playback devices play the received audio data. In this way, by parsing the audio to be played into multiple channels of audio data, and performing data transmission through the corresponding Bluetooth channel, multiple playback devices connected to the display device can be realized to play different channels of audio data, thereby achieving multi-channel sound effects. Improve audio playback.

附图说明Description of drawings

为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or related technologies. Obviously, the accompanying drawings in the following description are only For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.

图1为本申请实施例中提供的一种显示设备与播放设备之间操作场景的示意图;FIG. 1 is a schematic diagram of an operation scene between a display device and a playback device provided in an embodiment of the present application;

图2为本申请实施例中提供的一种显示设备的硬件结构示意图;FIG. 2 is a schematic diagram of a hardware structure of a display device provided in an embodiment of the present application;

图3为本申请实施例中提供的一种显示设备的软件结构示意图;FIG. 3 is a schematic diagram of a software structure of a display device provided in an embodiment of the present application;

图4为本申请实施例中提供的一种播放设备的硬件结构示意图;FIG. 4 is a schematic diagram of a hardware structure of a playback device provided in an embodiment of the present application;

图5为本申请实施例中提供的一种应用于显示设备的音频播放方法的流程示意图;FIG. 5 is a schematic flowchart of an audio playback method applied to a display device provided in an embodiment of the present application;

图6为本申请实施例中提供的一种可能的操作界面示意图;FIG. 6 is a schematic diagram of a possible operation interface provided in the embodiment of the present application;

图7为本申请实施例中提供的另一种可能的操作界面示意图;FIG. 7 is a schematic diagram of another possible operation interface provided in the embodiment of the present application;

图8为本申请实施例中提供的一种应用于播放设备的音频播放方法的流程示意图;FIG. 8 is a schematic flowchart of an audio playback method applied to a playback device provided in an embodiment of the present application;

图9A为本申请实施例中提供的应用场景一的示意图;FIG. 9A is a schematic diagram of application scenario 1 provided in the embodiment of the present application;

图9B为本申请实施例中提供的应用场景二的一种示意图;FIG. 9B is a schematic diagram of application scenario 2 provided in the embodiment of the present application;

图9C为本申请实施例中提供的应用场景二的另一种示意图Fig. 9C is another schematic diagram of application scenario 2 provided in the embodiment of this application

图9D为本申请实施例中提供的应用场景三的一种示意图;FIG. 9D is a schematic diagram of application scenario 3 provided in the embodiment of the present application;

图9E为本申请实施例中提供的应用场景三的另一种示意图;FIG. 9E is another schematic diagram of application scenario 3 provided in the embodiment of the present application;

图10为本申请实施例中提供的显示设备的逻辑结构示意图;FIG. 10 is a schematic diagram of a logical structure of a display device provided in an embodiment of the present application;

图11为本申请实施例中提供的播放设备的逻辑结构示意图。FIG. 11 is a schematic diagram of a logical structure of a playback device provided in an embodiment of the present application.

具体实施方式detailed description

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请技术方案的一部分实施例,而不是全部的实施例。基于本申请文件中记载的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请技术方案保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the application clearer, the technical solutions of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the application. Obviously, the described embodiments are the Some embodiments of the technical solution, but not all embodiments. Based on the embodiments described in the application documents, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the technical solutions of the present application.

以下结合说明书附图对本申请的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本申请,并不用于限定本申请,并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the application will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the application, and are not used to limit the application, and in the absence of conflict, the application The embodiments and the features in the embodiments can be combined with each other.

随着科技的逐步发展,蓝牙设备逐渐成为日常生活中重要的播放装置。为了使目标对象具有更好的音频沉浸体验,相关技术中,一方面,可以通过专业的家庭影院提供音频播放功能,但是家庭影院成本较高。另一方面,若普通的蓝牙播放设备提供音频播放功能,例如,蓝牙音响,由于移动终端与蓝牙设备的蓝牙连接模式是一对一模式,因此,无法做音效的调整,也不能达到多设备组成音响系统的效果。With the gradual development of technology, Bluetooth devices have gradually become important playback devices in daily life. In order to make the target object have a better audio immersion experience, in related technologies, on the one hand, a professional home theater may provide an audio playback function, but the cost of the home theater is relatively high. On the other hand, if an ordinary Bluetooth playback device provides audio playback function, for example, a Bluetooth speaker, since the Bluetooth connection mode between the mobile terminal and the Bluetooth device is a one-to-one mode, it is impossible to adjust the sound effect, nor can it achieve multi-device composition. The effect of the sound system.

由于相关技术存在无法连接多个蓝牙播放设备,且音效不佳的问题,本申请实施例中,显示设备基于目标对象触发的播放操作,对待播放音频进行音频解析,得到多路音频数据,进而通过多路音频数据对应的蓝牙通路,将多路音频数据,发送至与显示设备通过蓝牙连接的多个播放设备,以使多个显示设备分别接收并播放多路音频数据中的一路音频数据。Due to the problem that multiple Bluetooth playback devices cannot be connected in related technologies and the sound effect is not good, in the embodiment of the present application, the display device performs audio analysis on the audio to be played based on the playback operation triggered by the target object, and obtains multiple channels of audio data, and then passes The bluetooth channel corresponding to the multiple channels of audio data sends the multiple channels of audio data to multiple playback devices connected to the display device through bluetooth, so that the multiple channels of audio data are respectively received and played by multiple display devices.

通过将待播放音频解析为多路音频数据,并通过相应的蓝牙通路进行数据传输,可以实现与显示设备连接的多个播放设备,播放不同路的音频数据,从而实现立体声等音效,提高音频的播放效果。By parsing the audio to be played into multiple channels of audio data and transmitting data through the corresponding Bluetooth channel, multiple playback devices connected to the display device can play different channels of audio data, thereby achieving stereo and other sound effects and improving audio quality. Play effects.

参阅图1所示,其为本申请实施例中提供的一种显示设备和播放设备之间操作场景的示意图,在该应用场景中,包括显示设备100和多个播放设备200,其中,显示设备100和多个播放设备200之间通过蓝牙方式连接。Referring to FIG. 1 , it is a schematic diagram of an operation scenario between a display device and a playback device provided in an embodiment of the present application. In this application scenario, a display device 100 and multiple playback devices 200 are included, wherein the display device 100 and multiple playback devices 200 are connected via bluetooth.

其中,显示设备100为用户使用的电子设备,该电子设备可以但不限于是个人计算机、手机、平板电脑、笔记本、电子书阅读器、智能家居、智能语音交互设备、车载终端等。播放设备200包括但不限于是音响、耳机、手机等具体播放功能的电子设备。Wherein, the display device 100 is an electronic device used by a user, and the electronic device may be, but not limited to, a personal computer, a mobile phone, a tablet computer, a notebook, an e-book reader, a smart home, an intelligent voice interaction device, a vehicle terminal, and the like. The playback device 200 includes, but is not limited to, electronic devices with specific playback functions such as stereos, earphones, and mobile phones.

以多个播放设备200为耳机和音响、显示设备100为智能电视为例,参阅图1所示,耳机通过蓝牙通路1与智能电视连接,音响通过蓝牙通路2与智能电视连接。Taking multiple playback devices 200 as earphones and speakers, and display device 100 as a smart TV as an example, as shown in FIG.

显示设备100响应于目标对象触发的播放操作,对待播放音频进行音频解析,得到多路音频数据,进而,基于多路音频数据的数据类型标识,以及基于多路音频数据的数据类型标识,以及基于通路对应关系,确定多路音频数据各自对应的通路标识,其中,通路对应关系中至少包含:多路音频数据的数据类型标识,与多个蓝牙通路的通路标识之间的对应关系,然后,基于确定的通路标识,将多路音频数据通过对应的蓝牙通路发送至播放设备200。多个播放设备200中的任一个显示设备200,通过蓝牙通路,接收并播放相应的一路音频数据。需要说明的是,本申请实施中,显示设备100与各个播放设备200之间基于新一代蓝牙音频技术标准(Le Audio)进行蓝牙通信。In response to the playback operation triggered by the target object, the display device 100 performs audio analysis on the audio to be played to obtain multiple channels of audio data, and then, based on the data type identification of the multiple channels of audio data, and based on the data type identification of the multiple channels of audio data, and based on The channel correspondence relationship determines the channel identification corresponding to each of the multi-channel audio data, wherein the channel corresponding relationship at least includes: the data type identification of the multi-channel audio data, and the corresponding relationship between the channel identification of multiple Bluetooth channels, and then, based on With the determined path identifier, the multi-channel audio data is sent to the playback device 200 through the corresponding bluetooth path. Any one of the display devices 200 among the plurality of playback devices 200 receives and plays a corresponding channel of audio data through the bluetooth channel. It should be noted that, in the implementation of this application, Bluetooth communication is performed between the display device 100 and each playback device 200 based on the new-generation Bluetooth audio technology standard (Le Audio).

用户可通过移动终端300和控制装置400操作显示设备100。控制装置400可以是遥控器,遥控器和显示设备的通信包括红外协议通信、蓝牙协议通信,无线或其他有线方式来控制显示设备100。用户可以通过遥控器上按键,语音输入、控制面板输入等输入用户指令,来控制显示设备100。在一些实施例中,也可以使用移动终端、平板电脑、计算机、笔记本电脑、和其他智能设备以控制显示设备100。A user may operate the display apparatus 100 through the mobile terminal 300 and the control device 400 . The control device 400 may be a remote control, and the communication between the remote control and the display device includes infrared protocol communication, bluetooth protocol communication, wireless or other wired methods to control the display device 100 . The user can control the display device 100 by inputting user instructions through buttons on the remote controller, voice input, control panel input, and the like. In some embodiments, mobile terminals, tablet computers, computers, notebook computers, and other smart devices can also be used to control the display device 100 .

在一些实施例中,移动终端300可与显示设备100安装软件应用,通过网络通信协议实现连接通信,实现一对一控制操作的和数据通信的目的。也可以将移动终端300上显示音视频内容传输到显示设备100上,实现同步显示功能显示设备100还可以与服务器(图中未示出)通过多种通信方式进行数据通信。可允许显示设备100通过局域网(Local AreaNetwork,LAN)、无线局域网(Wireless Local Area Networks,WLAN)和其他网络进行通信连接。服务器可以向显示设备100提供各种内容和互动。显示设备100,包括但不限于液晶显示器、有机发光二极管(Organic Light-Emitting Diode,OLED)显示器、投影显示设备等。In some embodiments, the mobile terminal 300 can install software applications with the display device 100, realize connection and communication through a network communication protocol, and realize the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 100 to realize the synchronous display function. The display device 100 can also perform data communication with a server (not shown in the figure) through various communication methods. The display device 100 may be allowed to communicate via a local area network (Local Area Network, LAN), a wireless local area network (Wireless Local Area Networks, WLAN) and other networks. The server may provide various contents and interactions to the display device 100 . The display device 100 includes, but is not limited to, a liquid crystal display, an organic light-emitting diode (Organic Light-Emitting Diode, OLED) display, a projection display device, and the like.

参阅图2所示,其为本申请实施例中提供的一种可能的显示设备100的硬件结构示意图。如图2所示,显示设备,100包括调谐解调器110、通信器120、检测器130、外部装置接口140、控制器150、显示器160、音频输出接口170、存储器、供电电源、用户接口180中的至少一种。控制器包括中央处理器,视频处理器,音频处理器,图形处理器,随机存取存储器(Random Access Memory,RAM),只读存储器(Read-Only Memory,ROM),用于输入/输出的第一接口至第n接口。显示器260可为液晶显示器、OLED显示器、触控显示器以及投影显示器中的至少一种,还可以为一种投影装置和投影屏幕。调谐解调器110通过有线或无线接收方式接收广播电视信号,以及从多个无线或有线广播电视信号中解调出音视频信号,如以及电子节目指南(Electrical Program Guide,EPG)数据信号。检测器130用于采集外部环境或与外部交互的信号。控制器150和调谐解调器110可以位于不同的分体设备中,即调谐解调器110也可在控制器150所在的主体设备的外置设备中,如外置机顶盒等。Referring to FIG. 2 , it is a schematic diagram of a hardware structure of a possible display device 100 provided in an embodiment of the present application. As shown in Figure 2, the display device 100 includes a tuner and demodulator 110, a communicator 120, a detector 130, an external device interface 140, a controller 150, a display 160, an audio output interface 170, a memory, a power supply, and a user interface 180 at least one of the The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a random access memory (Random Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), and a second Interface one to interface n. Thedisplay 260 may be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and may also be a projection device and a projection screen. The tuner-demodulator 110 receives broadcast television signals through wired or wireless reception, and demodulates audio and video signals, such as electronic program guide (Electrical Program Guide, EPG) data signals, from multiple wireless or wired broadcast television signals. The detector 130 is used to collect signals of the external environment or interaction with the outside. The controller 150 and the tuner-demodulator 110 may be located in different split devices, that is, the tuner-demodulator 110 may also be located in an external device of the main device where the controller 150 is located, such as an external set-top box.

在一些实施例中,控制器150,通过存储在存储器上中各种软件控制程序,来控制显示设备的工作和响应用户的操作。控制器150控制显示设备100的整体操作。用户可在显示器160上显示的图形用户界面(Graphical User Interface,GUI)输入用户命令,则用户输入接口通过GUI接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户输入接口通过传感器识别出声音或手势,来接收用户输入命令。In some embodiments, the controller 150 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 150 controls the overall operations of the display device 100 . The user may input a user command on a Graphical User Interface (GUI) displayed on the display 160, and the user input interface receives the user input command through the GUI. Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

在一些实施例中,“操作界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。操作界面常用的表现形式是GUI,是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、微件(Widget)等可视的界面元素中的至少一种。In some embodiments, the "operating interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used expression form of the operation interface is GUI, which refers to the user interface related to computer operation displayed in a graphical way. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets ( Widget) and other visual interface elements.

参阅图3所示,其为本申请实施例中提供的一种可能的显示设备100的软件结构示意图。如图3所示,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层,安卓运行时(Android Runtime)和系统运行库层(简称“系统库层”),以及内核层。Referring to FIG. 3 , it is a schematic diagram of a software structure of a possible display device 100 provided in the embodiment of the present application. As shown in Figure 3, the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are the Applications (Applications) layer (abbreviated as "Application Layer"), Application Framework (Application Framework) layer, Android Runtime (Android Runtime) And the system runtime library layer (referred to as "system library layer"), and the kernel layer.

应用程序层可以包括一系列应用程序包,应用程序包可以包括相机、图库、日历、通话、蓝牙、音乐、视频、短信息等应用程序。The application layer may include a series of application packages, and the application packages may include applications such as camera, gallery, calendar, call, Bluetooth, music, video, and short message.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。应用程序框架层可以包括窗口管理器、内容提供器、视图系统等。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer can include window managers, content providers, view systems, and more.

Android Runtime负责安卓系统的调度和管理。Android Runtime包括核心库和虚拟机(该虚拟机又可以成为java虚拟机,如Dalvik虚拟机)。Android Runtime is responsible for the scheduling and management of the Android system. Android Runtime includes a core library and a virtual machine (this virtual machine can become a java virtual machine again, such as a Dalvik virtual machine).

系统库中可以包括多个功能模块,例如,表面管理器(surface manager)、媒体库(Media Libraries)、三维图形处理库(例如:OpenGL ES)等。The system library may include multiple functional modules, for example, a surface manager (surface manager), a media library (Media Libraries), a three-dimensional graphics processing library (for example: OpenGL ES), and the like.

内核层是硬件和软件之间的层。内核层至少包含蓝牙驱动,还可以包含以下驱动中的至少一种:音频驱动、显示驱动、摄像头驱动、WIFI驱动、通用串行总线(UniversalSerial Bus,USB)驱动、高清晰度多媒体接口(High Definition Multimedia Interface,HDMI)驱动、传感器驱动(如指纹传感器,温度传感器,压力传感器等)、以及电源驱动等。The kernel layer is the layer between hardware and software. The kernel layer includes at least a Bluetooth driver, and may also include at least one of the following drivers: audio driver, display driver, camera driver, WIFI driver, Universal Serial Bus (UniversalSerial Bus, USB) driver, High Definition Multimedia Interface (High Definition Multimedia Interface, HDMI) driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

参阅图4所示,其为本申请实施例中提供的一种可能的播放设备200的硬件结构示意图。如图4所示,播放设备200包括控制器210、通信接口220、用户输入/输出接口230、存储器、供电电源。Referring to FIG. 4 , it is a schematic diagram of a hardware structure of a possible playback device 200 provided in the embodiment of the present application. As shown in FIG. 4 , the playback device 200 includes acontroller 210 , acommunication interface 220 , a user input/output interface 230 , a memory, and a power supply.

播放设备200可通过蓝牙通路接收相应的音频数据,并播放该音频数据。通信接口220用于和外部通信,至少包含蓝牙模块,还可以包含WIFI芯片,近场通信(Near FieldCommunication,NFC)或可替代模块中的至少一种。用户输入/输出接口230包含麦克风,触摸板,传感器,按键或可替代模块中的至少一种。The playback device 200 can receive corresponding audio data through the bluetooth channel, and play the audio data. Thecommunication interface 220 is used for communicating with the outside, and at least includes a Bluetooth module, and may also include at least one of a WIFI chip, Near Field Communication (Near Field Communication, NFC) or an alternative module. The user input/output interface 230 includes at least one of a microphone, a touch pad, a sensor, a key or an alternative module.

参阅图5所示,其为本申请实施例中提供的一种音频播放方法,应用于显示设备,具体的,音频播放过程如下:Referring to Figure 5, it is an audio playback method provided in the embodiment of the present application, which is applied to a display device. Specifically, the audio playback process is as follows:

S501、显示设备响应于目标对象在操作界面中触发的播放操作,对待播放音频进行音频解析,得到多路音频数据。S501. In response to a playback operation triggered by a target object in an operation interface, the display device performs audio analysis on the audio to be played to obtain multiple channels of audio data.

多路音频数据可以是指不同声道的音频数据,例如左声道音频数据、右声道音频数据、重低音音频数据、全频音频数据等。多路音频数据还可以是指不同语言类型的音频数据,例如中文音频数据、英文音频数据等。多路音频数据可以根据不同的应用场景确定。The multi-channel audio data may refer to audio data of different channels, such as left channel audio data, right channel audio data, subwoofer audio data, full-range audio data, and the like. The multi-channel audio data may also refer to audio data in different languages, such as Chinese audio data, English audio data, and the like. Multiple channels of audio data can be determined according to different application scenarios.

具体的,显示设备根据目标对象触发的播放操作,存在但不限于以下情况中的至少一种:Specifically, the playback operation triggered by the display device according to the target object has, but is not limited to, at least one of the following situations:

情况一:播放操作表征多声道音效播放。Case 1: The playback operation represents multi-channel audio playback.

具体的,显示设备可以采用以下方式对待播放音频进行音频解析得到多路音频数据:Specifically, the display device can perform audio analysis on the audio to be played in the following ways to obtain multiple channels of audio data:

显示设备获取待播放音频对应的音频原始数据,并将音频原始数据解析为多路候选音频数据;基于目标对象设置的播放模式,从多路候选音频数据中,选取出多路音频数据,其中,每路候选音频数据不同。The display device acquires the original audio data corresponding to the audio to be played, and parses the original audio data into multiple channels of candidate audio data; based on the playback mode set by the target object, selects multiple channels of audio data from the multiple channels of candidate audio data, among which, Candidate audio data for each channel is different.

播放模式包括但不限于2.1音响音效模式、2.0音响音效模式等,其中,2.1音响是指包含左声道、右声道、重低音的音响组合。2.0音响是指包含左、右两个声道,而不带有重低音的音响组合。The playback mode includes but is not limited to 2.1 sound effect mode, 2.0 sound effect mode, etc., wherein 2.1 sound refers to a sound combination including a left channel, a right channel, and a subwoofer. 2.0 sound refers to a sound combination that includes left and right channels without subwoofer.

音频原始数据可以采用脉冲编码调制(Pulse Code Modulation,PCM)音频数据,PCM音频数据是指未经压缩的音频采样数据裸流,它是由模拟信号经过采样、量化、编码转换成的标准数字音频数据。The original audio data can adopt Pulse Code Modulation (PCM) audio data. PCM audio data refers to the uncompressed audio sample data stream, which is converted into standard digital audio by sampling, quantizing and encoding the analog signal. data.

例如,假设,目标对象设置的播放模式为2.1音响音效模式,为实现2.1音响音效,那么,显示设备获取待播放音频对应的PCM音频数据,并将PCM音频数据解析为多路候选音频数据,多路候选音频数据包括左声道音频数据、右声道音频数据、重低音音频数据、全频音频数据,然后,基于2.1音响音效模式,从多路候选音频数据中,选取出多路音频数据,多路候选音频数据包括左声道音频数据、右声道音频数据、重低音音频数据。For example, assuming that the playback mode set by the target object is 2.1 sound effect mode, in order to realize 2.1 sound effect, the display device obtains the PCM audio data corresponding to the audio to be played, and parses the PCM audio data into multiple channels of candidate audio data. The channel candidate audio data includes left channel audio data, right channel audio data, subwoofer audio data, and full-range audio data, and then, based on the 2.1 sound effect mode, multiple channels of audio data are selected from the multiple channel candidate audio data, The multiple channels of candidate audio data include left channel audio data, right channel audio data, and subwoofer audio data.

情况二:播放操作表征翻译播放。Case 2: The play operation represents translation playback.

显示设备获取待播放音频,并采用预设的机器翻译算法,对待播放音频进行翻译,得到指定语言类型的至少一路音频数据,将至少一路音频数据和待播放音频数据,作为多路音频数据。The display device obtains the audio to be played, and uses a preset machine translation algorithm to translate the audio to be played, obtains at least one channel of audio data in a specified language type, and uses at least one channel of audio data and the audio data to be played as multiple channels of audio data.

其中,机器翻译是将一种语言翻译成另一种语言的一门科学和技术,预设的机器翻译算法可以采用但不限于基于规则的机器翻译算法、基于知识的机器翻译算法、基于实例的机器翻译算法、基于神经网络的机器翻译算法等。指定语言类型包括但不限于中文、英文、日文等中的至少一项。Among them, machine translation is a science and technology that translates one language into another language. The preset machine translation algorithm can adopt but not limited to rule-based machine translation algorithm, knowledge-based machine translation algorithm, example-based Machine translation algorithms, machine translation algorithms based on neural networks, etc. The specified language type includes but is not limited to at least one of Chinese, English, Japanese, etc.

以基于神经网络的机器翻译为例,神经网络机器翻译通常采用编码器-解码器结构,实现对变长输入句子的建模。编码器实现对源语言句子的语义提取,形成一个特定维度的浮点数向量,之后解码器根据此向量逐字生成目标语言的翻译结果。Taking neural network-based machine translation as an example, neural network machine translation usually adopts an encoder-decoder structure to realize the modeling of variable-length input sentences. The encoder realizes the semantic extraction of the source language sentence to form a floating-point number vector of a specific dimension, and then the decoder generates the translation result of the target language word by word according to this vector.

例如,假设,待播放音频为中文音频数据,显示设备获取待播放音频后,并采用基于神经网络的机器翻译算法,对待播放音频进行翻译,得到英文类型的一路音频数据,即得到英文音频数据,将中文音频数据和英文音频数据,作为多路音频数据。For example, assuming that the audio to be played is Chinese audio data, after the display device obtains the audio to be played, it uses a neural network-based machine translation algorithm to translate the audio to be played, and obtains a channel of audio data in English, that is, the English audio data. Chinese audio data and English audio data are used as multi-channel audio data.

情况三:播放操作表征音频共享播放。显示设备获取待播放音频,并基于待播放音频,得到多路音频数据,其中,每路音频数据相同。Case 3: The play operation represents audio sharing playback. The display device obtains the audio to be played, and obtains multiple channels of audio data based on the audio to be played, wherein the audio data of each channel is the same.

为避免多声道音效播放、翻译播放、音频共享播放与普通播放方式发生冲突,在执行S501之前,显示设备还可以响应于操作界面中触发的播放场景选择操作,确定是否开启多声道音效播放、翻译播放或音频共享播放。若模式选择操作表征多声道音效播放、翻译播放或音频共享播放,则显示设备响应于目标对象触发的播放操作,执行S501-S502。若模式选择操作表征目标对象选择普通播放方式,则显示设备任意选择一路蓝牙通路,并将待播放音频通过选择的一路蓝牙通路,发送给多个播放设备中的任意一个播放设备。In order to avoid conflicts between multi-channel audio playback, translation playback, audio sharing playback and normal playback, before executing S501, the display device can also determine whether to enable multi-channel audio playback in response to the playback scene selection operation triggered in the operation interface , translation playback or audio sharing playback. If the mode selection operation represents multi-channel sound effect playback, translation playback or audio sharing playback, the display device performs S501-S502 in response to the playback operation triggered by the target object. If the mode selection operation indicates that the target object chooses a normal playback mode, the display device selects a bluetooth channel arbitrarily, and sends the audio to be played to any one of the multiple playback devices through the selected bluetooth channel.

以显示设备为智能电视为例,参阅图6所示,其为一种可能的显示设备的操作界面的示意图。该操作界面中包含选择按钮,当用户点击选择按钮时,模式选择操作表征目标对象选择正常模式,当用户未点击选择按钮时,模式选择操作指示目标对象选择普通播放方式。Taking the display device as an example of a smart TV, refer to FIG. 6 , which is a schematic diagram of a possible operation interface of the display device. The operation interface includes a selection button. When the user clicks the selection button, the mode selection operation indicates that the target object selects the normal mode. When the user does not click the selection button, the mode selection operation instructs the target object to select the normal playback mode.

S502、显示设备将多路音频数据通过多个蓝牙通路发送至多个播放设备,以使多个播放设备播放接收到的音频数据。S502. The display device sends multiple channels of audio data to multiple playback devices through multiple bluetooth channels, so that the multiple playback devices play the received audio data.

具体的,根据S501中目标对象触发的播放操作,采用以下方式执行S502:Specifically, according to the playback operation triggered by the target object in S501, S502 is executed in the following manner:

情况一或情况二:即播放操作表征多声道音效播放或翻译播放。Case 1 or Case 2: That is, the playback operation represents multi-channel audio playback or translation playback.

显示设备基于多路音频数据的数据类型标识,以及基于通路对应关系,确定多路音频数据各自对应的通路标识,并基于确定的通路标识,将多路音频数据通过对应的蓝牙通路发送至多个播放设备。Based on the data type identification of the multi-channel audio data and the channel correspondence, the display device determines the corresponding channel identification of the multi-channel audio data, and based on the determined channel identification, sends the multi-channel audio data to multiple playback channels through the corresponding Bluetooth channel. equipment.

其中,通路对应关系中至少包含:多路音频数据的数据类型标识,与多个蓝牙通路的通路标识之间的对应关系。一个蓝牙通路的通路标识,可以对应一路音频数据的数据类型标识,也可以对应多路音频数据的数据类型标识。Wherein, the channel correspondence at least includes: the correspondence between the data type identifiers of the multi-channel audio data and the channel identifiers of the multiple Bluetooth channels. The channel identifier of a bluetooth channel may correspond to the data type identifier of one channel of audio data, or may correspond to the data type identifier of multiple channels of audio data.

考虑到播放设备是否具备交互能力,例如,语音交互、界面交互等,本申请实施例中,针对具备交互能力的播放设备,显示设备与播放设备之间的蓝牙通路可以通过播放设备或显示设备进行配置,针对不具备交互能力的播放设备,显示设备与播放设备之间的蓝牙通路可以通过显示设备配置。Considering whether the playback device has interactive capabilities, such as voice interaction, interface interaction, etc., in the embodiment of the present application, for playback devices with interactive capabilities, the Bluetooth path between the display device and the playback device can be performed through the playback device or the display device. Configuration, for playback devices that do not have interactive capabilities, the Bluetooth path between the display device and the playback device can be configured through the display device.

以播放设备x为例,播放设备x为多个播放设备中的任意一个播放设备,显示设备与播放设备x之间的蓝牙通路可以是采用但不限于以下方式确定:Taking the playback device x as an example, the playback device x is any playback device among multiple playback devices, and the Bluetooth path between the display device and the playback device x can be determined by but not limited to the following methods:

方式一:在显示设备侧,配置显示设备与播放设备x之间的蓝牙通路。Method 1: On the display device side, configure the Bluetooth path between the display device and the playback device x.

本申请实施中,显示设备可以通过但不限于操作界面、语音等方式与用户进行交互,以获取用户输入的多个蓝牙通路的通路标识,与多个播放设备的设备标识之间的关联关系。下面仅以通过显示设备的操作界面与用户进行交互,确定显示设备与播放设备x之间的蓝牙通路为例进行说明。In the implementation of this application, the display device can interact with the user through, but not limited to, the operation interface, voice, etc., to obtain the association relationship between the channel identifiers of multiple Bluetooth channels input by the user and the device identifiers of multiple playback devices. In the following, only an example of determining the bluetooth path between the display device and the playback device x by interacting with the user through the operation interface of the display device will be described.

具体的,显示设备响应于显示设备的操作界面中触发的传输配置操作,获取蓝牙通路A的通路标识A,与播放设备x的设备标识之间的关联关系,并基于关联关系,确定显示设备与播放设备x之间通过蓝牙通路A连接。Specifically, in response to the transmission configuration operation triggered in the operation interface of the display device, the display device obtains the association relationship between the path identifier A of the Bluetooth path A and the device identifier of the playback device x, and based on the association relationship, determines the relationship between the display device and The playback devices x are connected through Bluetooth channel A.

相应的,显示设备可以向播放设备x发送第二配置信息,第二配置信息表征播放设备x与显示设备之间通过蓝牙通路A连接,第二配置信息中携带蓝牙通路A的通路标识A。Correspondingly, the display device may send second configuration information to the playback device x. The second configuration information indicates that the playback device x and the display device are connected through the Bluetooth channel A, and the second configuration information carries the channel identifier A of the Bluetooth channel A.

例如,参阅图7所示,其为本申请实施例中提供的一种可能的操作界面示意图,在该操作界面中,显示设备响应于操作界面中触发的传输配置操作,获取蓝牙通路1、蓝牙通路2、蓝牙通路3的通路标识,与音响1、音响2、音响3的设备标识之间的关联关系,并基于关联关系,其中,蓝牙通路1、蓝牙通路2、蓝牙通路3的通路标识分别为:左声道、右声道、重低音,确定智能电视与音响1之间通过蓝牙通路1连接、智能电视与音响2之间通过蓝牙通路2连接、智能电视与音响3之间通过蓝牙通路3连接。For example, refer to FIG. 7, which is a schematic diagram of a possible operation interface provided in the embodiment of the present application. In this operation interface, the display device responds to the transmission configuration operation triggered in the operation interface to obtain the Bluetooth path 1, Bluetooth The channel identifiers of channel 2, bluetooth channel 3, and the association relationship between the device identification of audio 1, audio 2, and audio 3 are based on the association relationship, wherein the channel identifications of bluetooth channel 1, bluetooth channel 2, and bluetooth channel 3 are respectively For: left channel, right channel, subwoofer, make sure that the smart TV and audio 1 are connected through Bluetooth channel 1, the smart TV and audio 2 are connected through Bluetooth channel 2, and the smart TV and audio 3 are connected through Bluetooth channel 3 connections.

这样,通过显示设备的操作界面中触发的传输配置操作,可以获取多个蓝牙通路的通路标识,与多个播放设备的设备标识之间的关联关系,然后基于关联关系,分别确定显示设备与多个播放设备之间的蓝牙通路。In this way, through the transmission configuration operation triggered in the operation interface of the display device, the association relationship between the channel identifiers of multiple Bluetooth channels and the device identifiers of multiple playback devices can be obtained, and then based on the association relationship, the relationship between the display device and the multiple playback devices can be determined respectively. Bluetooth channel between two playback devices.

方式二:在播放设备x侧,配置显示设备与播放设备x之间的蓝牙通路。Method 2: On the playback device x side, configure the Bluetooth path between the display device and the playback device x.

需要说明的是,本申请实施中,播放设备也可以通过但不限于操作界面、语音等方式与用户进行交互,以获取用户输入的一个蓝牙通路的通路标识,与多个播放设备的设备标识之间的关联关系。下面,仅以通过播放设备x的操作界面与用户进行交互,建立显示设备与播放设备x之间的蓝牙通路为例,对本申请进行说明。It should be noted that, in the implementation of this application, the playback device can also interact with the user through, but not limited to, the operation interface, voice, etc., to obtain the channel identifier of a Bluetooth channel input by the user, and the device identifier of multiple playback devices. relationship between. In the following, the present application will be described by taking the example of establishing a bluetooth path between the display device and the playback device x by interacting with the user through the operation interface of the playback device x.

具体的,播放设备x响应于在播放设备x的操作界面中触发的传输配置操作,获取蓝牙通路A的通路标识A,然后向显示设备发送第一配置信息,第一配置信息中包含通路标识A和播放设备x的设备标识x。Specifically, the playback device x responds to the transmission configuration operation triggered in the operation interface of the playback device x, obtains the path identifier A of the Bluetooth path A, and then sends the first configuration information to the display device, the first configuration information includes the path identifier A and the device id x of playback device x.

相应的,显示设备接收来自播放设备x的第一配置信息,并基于接收的第一配置信息,确定显示设备与播放设备x之间的蓝牙通路,其中,播放设备x的第一配置信息中包含:播放设备x的设备标识x,和蓝牙通路A的通路标识A。Correspondingly, the display device receives the first configuration information from the playback device x, and based on the received first configuration information, determines the Bluetooth path between the display device and the playback device x, wherein the first configuration information of the playback device x includes : the device ID x of the playback device x, and the channel ID A of the bluetooth channel A.

例如,智能电视分别接收来自音响1的配置信息1、音响2的配置信息2、音响3的配置信息3,其中,配置信息1中包含蓝牙通路1的通路标识1和音响1的设备标识1,配置信息2中包含蓝牙通路2的通路标识2和音响2的设备标识2,配置信息3中包含蓝牙通路3的通路标识3和音响3的设备标识3,然后,智能电视基于接收到的配置信息1、配置信息2、配置信息3,确定智能电视与音响1之间通过蓝牙通路1连接、智能电视与音响2之间通过蓝牙通路2连接、智能电视与音响3之间通过蓝牙通路3连接。For example, the smart TV respectively receives configuration information 1 from audio 1, configuration information 2 from audio 2, and configuration information 3 from audio 3, wherein configuration information 1 includes channel ID 1 of Bluetooth channel 1 and device ID 1 of audio 1, The configuration information 2 includes the channel ID 2 of the Bluetooth channel 2 and the device ID 2 of the audio 2, and the configuration information 3 includes the channel ID 3 of the Bluetooth channel 3 and the device ID 3 of the audio 3. Then, the smart TV based on the received configuration information 1. Configuration information 2, configuration information 3, confirm that the smart TV and audio 1 are connected through Bluetooth channel 1, the smart TV and audio 2 are connected through Bluetooth channel 2, and the smart TV and audio 3 are connected through Bluetooth channel 3.

这样,通过多个播放设备的操作界面中各自触发的传输配置操作,可以获取多个蓝牙通路的通路标识,与多个播放设备的设备标识之间的关联关系,然后基于关联关系,分别确定显示设备与多个播放设备之间的蓝牙通路。In this way, through the transmission configuration operations triggered respectively in the operation interface of multiple playback devices, the association relationship between the channel identification of multiple Bluetooth channels and the device identification of multiple playback devices can be obtained, and then based on the association relationship, respectively determine the display Bluetooth path between the device and multiple playback devices.

情况三:播放操作表征音频共享播放。Case 3: The play operation represents audio sharing playback.

由于每路音频数据相同,因此,显示设备可以直接将多路音频数据通过多个蓝牙通路发送至多个播放设备。需要说明的是,在情况三中,可以基于同步广播串流(BroadcastIsochronous Stream,BIS)传输方式,BIS是一种无连接的等时传输,单向通讯,用于将一个或多个等时数据流传输到BIS范围内的所有设备。本申请实施例中,S501、S502具体可在显示设备中的蓝牙协议栈端执行。Since the audio data of each channel is the same, the display device can directly send multiple channels of audio data to multiple playback devices through multiple bluetooth channels. It should be noted that, in case three, it can be based on the Broadcast Isochronous Stream (BIS) transmission method. BIS is a connectionless isochronous transmission, one-way communication, and is used to transmit one or more isochronous data Stream to all devices within range of the BIS. In the embodiment of the present application, S501 and S502 may be specifically executed on the Bluetooth protocol stack side in the display device.

在一些实施例中,由于多个播放设备播放不同的音频数据,因此,若多个播放设备之间的数据不同步,那么,在多个播放设备进行音频播放时,组合出的声音会严重失真,影响用户使用体验。本申请实施例中,在显示设备端,可以对每个发出的数据包进行时序处理,以避免由于系统负载不均衡或者网络环境差造成的数据不同步。In some embodiments, since multiple playback devices play different audio data, if the data between multiple playback devices is not synchronized, then when multiple playback devices perform audio playback, the combined sound will be severely distorted , affecting user experience. In the embodiment of the present application, at the display device side, timing processing can be performed on each sent data packet to avoid data out-of-sync due to unbalanced system load or poor network environment.

具体的,每路音频数据各自对应一个数据包集合,显示设备将多路音频数据,发送至多个播放设备时,可以采用但不限于以下方式:针对每路音频数据,若一路音频数据对应的数据包集合中,一个数据包的发送等待时长大于预设的时长阈值,则显示设备将一个数据包丢弃,其中,发送等待时长用于表征从确定发送一个数据包的时刻至当前时刻的时长。Specifically, each channel of audio data corresponds to a data packet set. When the display device sends multiple channels of audio data to multiple playback devices, the following methods can be used but not limited to: For each channel of audio data, if the data corresponding to one channel of audio data In the packet set, if the sending waiting time of a data packet is greater than the preset time threshold, the display device will discard a data packet, wherein the sending waiting time is used to represent the time from the time when a data packet is determined to be sent to the current time.

示例性的,显示设备可以采用时间窗口进行数据包的发送或丢弃,时间窗口的窗口大小为预设的时长阈值10毫秒。时间窗口可以采用但不限于滚动窗口、滑动窗口等,本申请对此不作限定。该时间窗口随时间向前滑动,窗口内的数据包随着音频播放而发生变化。具体为,随着时间推移,新的数据包进入时间窗口,而最先进入时间窗口的数据包被移出窗口。Exemplarily, the display device may use a time window to send or discard data packets, and the window size of the time window is a preset duration threshold of 10 milliseconds. The time window may adopt, but is not limited to, a rolling window, a sliding window, etc., which are not limited in this application. This time window slides forward with time, and the packets within the window change as the audio plays. Specifically, as time goes by, new data packets enter the time window, and the data packets that first enter the time window are moved out of the window.

在一些实施例中,为了实现音频播放过程中音画同步的改善,显示设备可以通过改变编解码码率,改变音频数据的播放速度,从而达到音画同步的效果。In some embodiments, in order to improve the audio-video synchronization during audio playback, the display device can change the codec rate and the playback speed of the audio data, so as to achieve the effect of audio-video synchronization.

具体的,在多路音频数据的传输过程中,显示设备响应于目标对象触发的音质配置操作,获取目标音质;基于目标音质,调整多路音频数据的编解码码率(简称码率)。其中,码率是指在单位时间内播放连续的音频数据的比特数量,码率又可以称为比特率。Specifically, during the transmission of multiple channels of audio data, the display device acquires the target voice quality in response to the voice quality configuration operation triggered by the target object; based on the target voice quality, adjusts the encoding and decoding code rate (code rate for short) of the multiple channels of audio data. Wherein, the code rate refers to the number of bits of continuous audio data played within a unit time, and the code rate may also be referred to as a bit rate.

示例性的,可以采用低复杂度编解码器(Low Complexity Communication Codec,LC3)编解码器进行音频数据的编解码,LC3编解码器是一种用于LE Audio的音频编解码器,能够以各种码率编解码音频。Exemplarily, a low complexity codec (Low Complexity Communication Codec, LC3) codec can be used to encode and decode audio data. The LC3 codec is an audio codec for LE Audio, and can be used in various Codec audio at a bit rate.

本申请实施例中,可以预先设置不同音质和不同码率之间的映射关系,进而,显示设备获取到目标码率后,可以基于预设的映射关系,确定目标音质对应的目标码率,进而基于目标码率对多路音频数据进行编解码。例如,标准音质对应128K,较高音质对应260K。In the embodiment of the present application, the mapping relationship between different sound qualities and different bit rates can be preset, and then, after the display device acquires the target bit rate, it can determine the target bit rate corresponding to the target sound quality based on the preset mapping relationship, and then Encode and decode multiple channels of audio data based on the target bit rate. For example, standard sound quality corresponds to 128K, and higher sound quality corresponds to 260K.

由于蓝牙带宽限制,声音数据流越大,丢包等问题就会越明显,进而引发声音断续、卡顿等问题。针对此问题,显示设备可以自动判断使用的BIS通路数,根据使用的BIS通路数,动态调整码率,通过改变音质以达到数据的清晰与连续例如,在使用四路BIS时,可以减小音质,在使用一路BIS时,可以提高音质。Due to the limitation of Bluetooth bandwidth, the larger the sound data stream, the more obvious problems such as packet loss will be, which will cause problems such as intermittent sound and stuttering. To solve this problem, the display device can automatically judge the number of BIS channels used, dynamically adjust the code rate according to the number of BIS channels used, and achieve clear and continuous data by changing the sound quality. For example, when using four-channel BIS, the sound quality can be reduced , when using one BIS, the sound quality can be improved.

参阅图8所示,其为本申请实施例中提供的一种音频播放方法的流程示意图,应用于播放设备x,播放设备x为多个播放设备中的任意一个播放设备,具体的,该音频播放流程如下:Referring to FIG. 8 , it is a schematic flowchart of an audio playback method provided in the embodiment of the present application, which is applied to a playback device x, and the playback device x is any playback device among multiple playback devices. Specifically, the audio The playback process is as follows:

S801、播放设备x基于目标蓝牙通路的通路标识,从多路音频数据各自对应的蓝牙通路中,确定目标音频通路。S801. Based on the channel identifier of the target Bluetooth channel, the playback device x determines the target audio channel from the corresponding Bluetooth channels of multiple channels of audio data.

其中,多路音频数据是显示设备基于目标对象触发的播放操作,对待播放音频进行音频解析后得到的。Wherein, the multi-channel audio data is obtained by the display device after performing audio analysis on the audio to be played based on the playback operation triggered by the target object.

具体的,目标蓝牙通路的建立过程与S602中涉及的蓝牙通路的确定过程相同,在此不再赘述。Specifically, the establishment process of the target Bluetooth path is the same as the determination process of the Bluetooth path involved in S602, and will not be repeated here.

S802、播放设备x通过目标音频通路,接收并播放对应的目标音频数据。S802. The playback device x receives and plays corresponding target audio data through the target audio channel.

由于不同品牌、型号的播放设备之间的数据处理时长是不同的,因而导致从不同播放设备接收到音频数据后,播放音频数据的时刻是不同的,进而导致多个播放设备同时播放多个音频数据时,音频数据不同步。为避免多个播放设备之间的处理时长导致的数据不同步的问题,本申请实施例中,播放设备在接收到相应的音频数据之后,可以通过调整自身的缓冲区大小,控制不同的播放设备的音频数据的播放时刻。Since the data processing time between different brands and models of playback devices is different, the timing of playing audio data after receiving audio data from different playback devices is different, which in turn causes multiple playback devices to play multiple audio files at the same time. data, the audio data is out of sync. In order to avoid the problem of data out-of-sync caused by the processing time between multiple playback devices, in the embodiment of this application, after receiving the corresponding audio data, the playback device can control different playback devices by adjusting its own buffer size The playing time of the audio data.

具体的,在播放设备x接收目标音频数据之后,播放设备x可以将目标音频数据,存储于对应目标音频数据设置的缓冲区中,其中,缓冲区的大小是根据目标对象的配置操作确定的。进而,在播放设备x播放目标音频数据的过程中,播放设备x可以从缓冲区中,读取并播放目标音频数据。Specifically, after the playback device x receives the target audio data, the playback device x can store the target audio data in a buffer set corresponding to the target audio data, wherein the size of the buffer is determined according to the configuration operation of the target object. Furthermore, during the process of playing the target audio data by the playback device x, the playback device x can read and play the target audio data from the buffer.

以播放设备x为音响1为例,假设,目标音频数据为左声道音频数据,音响1接收到左声道音频数据之后,将左声道音频数据存储于对应左声道音频数据设置的缓冲区中。由于缓冲区中数据量越大,音频数据的播放时间就越晚,因此,在音响1播放左声道音频数据的过程中,若左声道音频数据比其他音频数据播放的快,则用户可以通过增大缓冲区的大小,延缓左声道音频数据的播放时刻,若左声道音频数据比其他音频数据播放的慢,则用户可以通过减小缓冲区的大小,加快左声道音频数据的播放时刻。这样,通过目标对象的配置操作,可以动态调整缓冲区的大小,从而实现不同音频数据之间的数据同步。Take audio 1 as the playback device x as an example, assuming that the target audio data is the left channel audio data, after audio 1 receives the left channel audio data, it stores the left channel audio data in the buffer set corresponding to the left channel audio data in the district. As the amount of data in the buffer is larger, the playing time of the audio data is later. Therefore, in the process of playing the left channel audio data on the stereo 1, if the left channel audio data is played faster than other audio data, the user can By increasing the size of the buffer, the playback time of the left channel audio data is delayed. If the left channel audio data is played slower than other audio data, the user can reduce the size of the buffer to speed up the left channel audio data. play moment. In this way, through the configuration operation of the target object, the size of the buffer can be dynamically adjusted, thereby realizing data synchronization between different audio data.

下面结合具体的应用场景,对本申请进行说明。The present application will be described below in conjunction with specific application scenarios.

应用场景一:多声道音效。Application Scenario 1: Multi-channel sound effects.

示例一:2.1音响音效。Example 1: 2.1 sound effects.

以显示设备为智能电视,多个播放设备分别为音响1、音响2、音响3。参阅图9A所示,智能电视通过蓝牙通路1与音响1连接,通过蓝牙通路2与音响2连接,通过蓝牙通路3与音响3连接。其中,音响1、音响2、音响3中均不具备播放双声道音频的能力。The display device is a smart TV, and the multiple playback devices are audio 1, audio 2, and audio 3 respectively. As shown in FIG. 9A , the smart TV is connected to the speaker 1 through the Bluetooth channel 1 , connected to the speaker 2 through the Bluetooth channel 2 , and connected to the speaker 3 through the Bluetooth channel 3 . Among them, audio 1, audio 2, and audio 3 do not have the ability to play two-channel audio.

智能电视响应于用户触发的播放操作,该播放操作表征多声道音效播放,对待播放音频进行解析,得到左声道音频数据、右声道音频数据、重低音音频数据。然后,智能电视基于左声道音频数据、右声道音频数据、重低音音频数据各自的数据类型标识,以及基于通路对应关系,确定左声道音频数据对应的通路标识为蓝牙通路1的通路标识,确定右声道音频数据对应的通路标识为蓝牙通路2的通路标识,确定重低音音频数据对应的通路标识为蓝牙通路3的通路标识。进一步的,智能电视基于确定的通路标识,将左声道音频数据通过蓝牙通路1发送给音响1,将右声道音频数据通过蓝牙通路2发送给音响2,将重低音音频数据通过蓝牙通路3发送给音响3。The smart TV responds to a playback operation triggered by the user. The playback operation represents multi-channel audio playback, and the audio to be played is analyzed to obtain left-channel audio data, right-channel audio data, and subwoofer audio data. Then, based on the respective data type identifications of the left channel audio data, right channel audio data, and subwoofer audio data, and based on the channel correspondence, the smart TV determines that the channel identification corresponding to the left channel audio data is the channel identification of Bluetooth channel 1 , determine that the channel identifier corresponding to the right channel audio data is the channel identifier of the Bluetooth channel 2, and determine that the channel identifier corresponding to the subwoofer audio data is the channel identifier of the Bluetooth channel 3. Further, based on the determined channel identification, the smart TV sends the left channel audio data to the speaker 1 through the Bluetooth channel 1, sends the right channel audio data to the speaker 2 through the Bluetooth channel 2, and sends the subwoofer audio data through the Bluetooth channel 3 Send to speaker 3.

音响1基于蓝牙通路1的通路标识,从蓝牙通路1、蓝牙通路2、蓝牙通路3中,确定目标音频通路为蓝牙通路1,然后,通过蓝牙通路1,接收并播放左声道音频数据。Audio 1 determines the target audio channel as Bluetooth channel 1 from Bluetooth channel 1, Bluetooth channel 2, and Bluetooth channel 3 based on the channel identification of Bluetooth channel 1, and then receives and plays the left channel audio data through Bluetooth channel 1.

音响2基于蓝牙通路2的通路标识,从蓝牙通路1、蓝牙通路2、蓝牙通路3中,确定目标音频通路为蓝牙通路2,然后,通过蓝牙通路2,接收并播放右声道音频数据。Audio 2 determines the target audio channel as Bluetooth channel 2 from Bluetooth channel 1, Bluetooth channel 2, and Bluetooth channel 3 based on the channel identification of Bluetooth channel 2, and then receives and plays the right channel audio data through Bluetooth channel 2.

音响3基于蓝牙通路3的通路标识,从蓝牙通路1、蓝牙通路2、蓝牙通路3中,确定目标音频通路为蓝牙通路3,然后,通过蓝牙通路3,接收并播放重低音音频数据。Based on the channel identification of Bluetooth channel 3, audio 3 determines the target audio channel as Bluetooth channel 3 from Bluetooth channel 1, Bluetooth channel 2, and Bluetooth channel 3, and then receives and plays subwoofer audio data through Bluetooth channel 3.

这样,当用户在智能电视中播放音频时,通过与智能电视蓝牙连接的音响1、音响2、音响3,即可实现2.1音响播放效果。In this way, when the user plays audio on the smart TV, the 2.1 audio playback effect can be realized through the audio 1, audio 2, and audio 3 connected to the smart TV Bluetooth.

应用场景二:音频共享。Application Scenario 2: Audio Sharing.

示例二:蓝牙助听器和音响音频共享。Example 2: Bluetooth hearing aids and stereo audio sharing.

以显示设备为智能电视为例,多个播放设备分别为音响1和助听器。参阅图9B所示,智能电视通过蓝牙通路1与音响1连接,通过蓝牙通路4与助听器连接。Taking the display device as an example of a smart TV, the multiple playback devices are respectively a stereo 1 and a hearing aid. As shown in FIG. 9B , the smart TV is connected to the stereo 1 through the Bluetooth channel 1 , and is connected to the hearing aid through the Bluetooth channel 4 .

智能电视响应于用户触发的播放操作,该播放操作表征音频共享播放,在获取到待播放音频(即全频音频数据)之后,基于待播放音频,得到多路音频数据,其中,多路音频数据均为全频音频数据,然后,通过蓝牙通路1将全频音频数据发送给音响1,通过蓝牙通路2将全频音频数据发送给助听器。The smart TV responds to a playback operation triggered by the user. The playback operation represents audio sharing playback. After acquiring the audio to be played (that is, full-frequency audio data), multiple channels of audio data are obtained based on the audio to be played. Among them, the multiple channels of audio data Both are full-frequency audio data, and then, the full-frequency audio data is sent to the audio system 1 through the Bluetooth channel 1, and the full-frequency audio data is sent to the hearing aid through the Bluetooth channel 2.

相应的,音响1可以通过蓝牙通路1,接收并播放全频音频数据。助听器可以通过蓝牙通路4,接收并播放全频音频数据。Correspondingly, the stereo 1 can receive and play full-frequency audio data through the Bluetooth channel 1 . The hearing aid can receive and play full-frequency audio data through the Bluetooth channel 4.

目前电视的主要用户群体是老人和小孩,针对一些老人等听损人士,听损人士与其他用户一起观看电视时,若音量适中,则听损人士听不到,若电视音量过高,不仅会影响其他用户的使用感受,且长时间收听较高音量更会导致听力下降。而本申请实施例中,通过蓝牙将一路音频数据发送给助听器,这样,对于听损人士而言,可以和其他用户一起收听音频,且听损人士可以自由调节助听器音量,而不影响其他用户的播放音量。At present, the main user groups of TV are the elderly and children. For some elderly and other hearing-impaired persons, when the hearing-impaired persons watch TV with other users, if the volume is moderate, the hearing-impaired persons cannot hear it. If the TV volume is too high, not only will the It will affect the experience of other users, and listening to high volume for a long time will lead to hearing loss. However, in the embodiment of the present application, one channel of audio data is sent to the hearing aid through Bluetooth, so that the hearing-impaired person can listen to the audio with other users, and the hearing-impaired person can freely adjust the volume of the hearing aid without affecting other users. Playback volume.

示例三:个人音频分享。Example 3: Personal audio sharing.

以显示设备为手机为例,多个播放设备分别为无线耳机1、无线耳机2和无线耳机3。参阅图9C所示,手机通过蓝牙通路1与无线耳机1连接,通过蓝牙通路2与无线耳机2连接,通过蓝牙通路3与无线耳机3连接,其中,无线耳机1和手机均属于用户A,无线耳机2属于用户B,无线耳机3属于用户C。Taking the display device as a mobile phone as an example, the multiple playback devices are wireless earphone 1 , wireless earphone 2 and wireless earphone 3 respectively. Referring to Figure 9C, the mobile phone is connected to the wireless headset 1 through the Bluetooth channel 1, connected to the wireless headset 2 through the Bluetooth channel 2, and connected to the wireless headset 3 through the Bluetooth channel 3, wherein the wireless headset 1 and the mobile phone belong to user A, and the wireless Earphone 2 belongs to user B and wireless earphone 3 belongs to user C.

手机响应于用户触发的播放操作,该播放操作表征音频共享播放,在获取到待播放音频(即全频音频数据)之后,基于待播放音频,得到三路音频数据,其中,三路音频数据均为全频音频数据,然后,通过蓝牙通路1、蓝牙通路2、蓝牙通路3将三路全频音频数据发送给无线耳机1、无线耳机2、无线耳机3。The mobile phone responds to the playback operation triggered by the user. The playback operation represents audio sharing playback. After acquiring the audio to be played (that is, the full-frequency audio data), three channels of audio data are obtained based on the audio to be played. Among them, the three channels of audio data are all It is the full-frequency audio data, and then, the three channels of full-frequency audio data are sent to the wireless earphone 1, the wireless earphone 2, and the wireless earphone 3 through the bluetooth channel 1, the bluetooth channel 2, and the bluetooth channel 3.

相应的,无线耳机1、无线耳机2、无线耳机3可以分别通过蓝牙通路1、蓝牙通路2、蓝牙通路3,接收并播放全频音频数据。Correspondingly, the wireless earphone 1 , the wireless earphone 2 , and the wireless earphone 3 can respectively receive and play full-frequency audio data through the Bluetooth channel 1 , the Bluetooth channel 2 , and the Bluetooth channel 3 .

这样,通过用户A的手机,可以邀请用户A的朋友聆听用户A的蓝牙耳机的声音。In this way, through the mobile phone of user A, friends of user A can be invited to listen to the sound of user A's bluetooth headset.

应用场景三:蓝牙翻译系统。Application scenario three: Bluetooth translation system.

示例四:中英文教育。Example 4: Chinese and English education.

以显示设备为手机,多个播放设备分别为耳机1和耳机2。参阅图9D所示,手机通过蓝牙通路4与耳机1连接,通过蓝牙通路5与耳机2连接。The display device is a mobile phone, and the multiple playback devices are earphone 1 and earphone 2 respectively. Referring to FIG. 9D , the mobile phone is connected to the earphone 1 through the bluetooth channel 4 and connected to the earphone 2 through the bluetooth channel 5 .

手机响应于用户触发的播放操作,该播放操作表征翻译播放,对待播放音频进行解析,得到中文音频数据和英文音频数据。然后,手机基于中文音频数据和英文音频数据各自的数据类型标识,以及基于通路对应关系,确定中文音频数据对应的通路标识为蓝牙通路4的通路标识,确定英文音频数据对应的通路标识为蓝牙通路5的通路标识。进一步的,手机基于确定的通路标识,将中文音频数据通过蓝牙通路4发送给耳机1,将英文音频数据通过蓝牙通路5发送给耳机2。The mobile phone responds to a playback operation triggered by the user. The playback operation represents translation playback, and the audio to be played is analyzed to obtain Chinese audio data and English audio data. Then, based on the respective data type identifications of the Chinese audio data and the English audio data, and based on the channel correspondence, the mobile phone determines that the channel identification corresponding to the Chinese audio data is the channel identification of the Bluetooth channel 4, and determines that the channel identification corresponding to the English audio data is the Bluetooth channel. 5 path identification. Further, the mobile phone sends the Chinese audio data to the earphone 1 through the bluetooth channel 4 and sends the English audio data to the earphone 2 through the bluetooth channel 5 based on the determined channel identification.

耳机1基于蓝牙通路4的通路标识,从蓝牙通路4和蓝牙通路5中,确定目标音频通路为蓝牙通路4,然后通过蓝牙通路4,接收并播放中文音频数据。Based on the channel identification of Bluetooth channel 4, earphone 1 determines the target audio channel as Bluetooth channel 4 from Bluetooth channel 4 and Bluetooth channel 5, and then receives and plays Chinese audio data through Bluetooth channel 4.

耳机2基于蓝牙通路5的通路标识,从蓝牙通路4和蓝牙通路5中,确定目标音频通路为蓝牙通路5,然后通过蓝牙通路5,接收并播放英文音频数据。Based on the channel identification of the Bluetooth channel 5, the earphone 2 determines the target audio channel as the Bluetooth channel 5 from the Bluetooth channel 4 and the Bluetooth channel 5, and then receives and plays English audio data through the Bluetooth channel 5.

这样,针对有外籍人士参与的会议、中英文教育软件、机场广播等,需求播放多语言音频的场景,手机端可以提供多路音频数据,例如,一路为中文,一路为英文,这样,不同的耳机可以根据需要播放不同语言版本的音频数据。In this way, for the scenarios where multilingual audio needs to be played, such as meetings with foreigners, Chinese and English educational software, and airport broadcasting, the mobile terminal can provide multi-channel audio data. For example, one channel is Chinese and the other channel is English. In this way, different The earphone can play audio data in different language versions as required.

示例五:公共场所多语言播报。Example 5: Multilingual broadcast in public places.

以显示设备为机场的显示屏幕,多个播放设备分别为耳机1、耳机2、耳机3、耳机4。参阅图9E所示,显示屏幕通过蓝牙通路4与耳机1连接,通过蓝牙通路5与耳机2连接,通过蓝牙通路6与耳机3连接,通过蓝牙通路7与耳机4连接。The display device is the display screen of the airport, and the multiple playback devices are earphone 1, earphone 2, earphone 3, and earphone 4 respectively. Referring to FIG. 9E , the display screen is connected to the headset 1 through the Bluetooth channel 4 , to the headset 2 through the Bluetooth channel 5 , to the headset 3 through the Bluetooth channel 6 , and to the headset 4 through the Bluetooth channel 7 .

显示屏幕响应于用户触发的播放操作,该播放操作表征翻译播放,对待播放音频进行解析,得到中文音频数据和英文音频数据。然后,手机基于中文音频数据和英文音频数据各自的数据类型标识,以及基于通路对应关系,确定中文音频数据对应的通路标识为蓝牙通路4、蓝牙通路6的通路标识,确定英文音频数据对应的通路标识为蓝牙通路5、蓝牙通路7的通路标识。进一步的,手机基于确定的通路标识,将中文音频数据通过蓝牙通路4、蓝牙通路6发送给耳机1、耳机3,将英文音频数据通过蓝牙通路5、蓝牙通路7发送给耳机2、耳机4。The display screen responds to a playback operation triggered by the user. The playback operation represents translation playback, and the audio to be played is analyzed to obtain Chinese audio data and English audio data. Then, based on the respective data type identifications of the Chinese audio data and the English audio data, and based on the channel correspondence, the mobile phone determines that the channel identifications corresponding to the Chinese audio data are the channel identifications of Bluetooth channel 4 and Bluetooth channel 6, and determines the channels corresponding to the English audio data The identification is the channel identification of Bluetooth channel 5 and Bluetooth channel 7. Further, the mobile phone sends the Chinese audio data to the earphone 1 and the earphone 3 through the bluetooth channel 4 and the bluetooth channel 6 based on the determined channel identification, and sends the English audio data to the earphone 2 and the earphone 4 through the bluetooth channel 5 and the bluetooth channel 7.

耳机1、耳机3基于蓝牙通路4的通路标识,从蓝牙通路4-7中,确定目标音频通路分别为蓝牙通路4、蓝牙通路6,然后分别通过蓝牙通路4、蓝牙通路6,接收并播放中文音频数据。耳机2、耳机4基于蓝牙通路5的通路标识、蓝牙通路7,从蓝牙通路4-7中,确定目标音频通路分别为蓝牙通路5、蓝牙通路7,然后分别通过蓝牙通路5、蓝牙通路7,接收并播放英文音频数据。Earphone 1 and earphone 3 are based on the channel identification of Bluetooth channel 4. From Bluetooth channels 4-7, determine the target audio channels as Bluetooth channel 4 and Bluetooth channel 6 respectively, and then receive and play Chinese through Bluetooth channel 4 and Bluetooth channel 6 respectively. audio data. Earphone 2 and earphone 4 are based on the channel identification of Bluetooth channel 5 and Bluetooth channel 7. From Bluetooth channels 4-7, determine the target audio channels as Bluetooth channel 5 and Bluetooth channel 7 respectively, and then pass through Bluetooth channel 5 and Bluetooth channel 7 respectively. Receive and play English audio data.

这样,针对公共场所(例如,机场、地铁、高铁站、旅游景点),不必再轮流播放各国语言的播报信息,用户可以通过支持蓝牙功能的耳机,在进入公共场所后,进行音频收听。类似的,针对有外籍人士参与的会议,也可以采用上述方式,用户根据需要播放不同语言版本的音频数据。In this way, for public places (for example, airports, subways, high-speed rail stations, tourist attractions), it is no longer necessary to take turns to broadcast broadcast information in various languages. Users can listen to audio after entering public places through earphones that support the Bluetooth function. Similarly, the above-mentioned method can also be adopted for meetings with foreigners, and users can play audio data in different language versions according to their needs.

需要说明的是,应用场景一至三中,显示设备获取一个待播放音频,而在实际应用过程中,显示设备也可以获取多个待播放音频,例如,显示设备获取预先准备的两个待播放音频:英文音频和中文音频,相应的,不必再进行机器翻译,可以直接将英文音频和中文音频作为两路音频数据进行发送,再例如,显示设备获取待播放音频:电视剧音频,在通过相应的播放设备播放电视剧音频的过程中,又获取到另一个待播放音频:虚拟机器人语音数据,那么,显示设备可以将虚拟机器人语音数据,蓝牙通路发送给其他播放设备进行播放。由于针对每个待播放音频的播放过程与上文相同,在此不再赘述。It should be noted that in application scenarios 1 to 3, the display device acquires one audio to be played, but in the actual application process, the display device can also acquire multiple audios to be played. For example, the display device acquires two pre-prepared audios to be played : English audio and Chinese audio. Correspondingly, there is no need to perform machine translation. The English audio and Chinese audio can be sent directly as two channels of audio data. During the process of playing TV drama audio, the device obtains another audio to be played: the voice data of the virtual robot. Then, the display device can send the voice data of the virtual robot and the Bluetooth channel to other playback devices for playback. Since the playing process for each audio to be played is the same as above, it will not be repeated here.

基于同一发明构思,参阅图10所示,其为本申请实施例中提供的一种显示设备的逻辑结构示意图,显示设备1000至少包括:Based on the same inventive concept, refer to FIG. 10 , which is a schematic diagram of a logic structure of a display device provided in an embodiment of the present application. The display device 1000 includes at least:

解析单元1001,用于响应于目标对象在所述操作界面中触发的播放操作,对待播放音频进行音频解析,得到多路音频数据;An analysis unit 1001, configured to perform audio analysis on the audio to be played in response to a playback operation triggered by the target object in the operation interface, to obtain multiple channels of audio data;

发送单元1003,用于将所述多路音频数据通过所述多个蓝牙通路发送至所述多个播放设备,以使所述多个播放设备播放接收到的音频数据。The sending unit 1003 is configured to send the multiple channels of audio data to the multiple playback devices through the multiple bluetooth channels, so that the multiple playback devices play the received audio data.

解析单元1001和发送单元1003之间相互配合,以实现上述流程中显示设备执行的任一项方法。The parsing unit 1001 and the sending unit 1003 cooperate with each other to implement any method executed by the display device in the above process.

基于同一发明构思,参阅图11所示,其为本申请实施例中提供的一种播放设备的逻辑结构示意图,播放设备1100至少包括:Based on the same inventive concept, refer to FIG. 11 , which is a schematic diagram of a logical structure of a playback device provided in an embodiment of the present application. The playback device 1100 includes at least:

确定单元1101,用于基于目标蓝牙通路的通路标识,从多路音频数据各自对应的蓝牙通路中,确定目标音频通路,其中,所述多路音频数据是所述显示设备基于目标对象触发的播放操作,对待播放音频进行音频解析后得到的;The determining unit 1101 is configured to determine the target audio channel from the Bluetooth channels corresponding to the multiple channels of audio data based on the channel identifier of the target Bluetooth channel, wherein the multiple channels of audio data are played by the display device based on the target object Operation, which is obtained after audio analysis of the audio to be played;

播放单元1102,用于通过所述目标音频通路,接收并播放对应的目标音频数据。The playing unit 1102 is configured to receive and play corresponding target audio data through the target audio channel.

确定单元1101和播放单元1102相互配合,以实现上述流程中显示设备执行的任一项方法。The determining unit 1101 and the playing unit 1102 cooperate with each other to implement any method executed by the display device in the above process.

基于同一发明构思,本申请实施例提供一种存储介质,当存储介质中的指令由处理器执行时,使得处理器能够执行上述流程中显示设备或播放设备实现的任一项方法。Based on the same inventive concept, an embodiment of the present application provides a storage medium. When the instructions in the storage medium are executed by the processor, the processor can execute any method implemented by the display device or the playback device in the above process.

对于系统/装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the system/apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者一个操作与另一个实体或者另一个操作区分开来,而不一定要求或者暗示这些实体或者操作之间存在任何这种实际的关系或者顺序。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or one operation from another entity or another operation, and do not necessarily require or imply that these entities Or any such actual relationship or order between operations.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While preferred embodiments of the present application have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the application.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (10)

CN202110731435.3A2021-06-302021-06-30 An audio playback method and devicePendingCN115550705A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110731435.3ACN115550705A (en)2021-06-302021-06-30 An audio playback method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110731435.3ACN115550705A (en)2021-06-302021-06-30 An audio playback method and device

Publications (1)

Publication NumberPublication Date
CN115550705Atrue CN115550705A (en)2022-12-30

Family

ID=84717460

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110731435.3APendingCN115550705A (en)2021-06-302021-06-30 An audio playback method and device

Country Status (1)

CountryLink
CN (1)CN115550705A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117234454A (en)*2023-11-132023-12-15福建联迪商用设备有限公司Multichannel audio output control method and device and electronic equipment
WO2024198940A1 (en)*2023-03-302024-10-03海信视像科技股份有限公司Display device, audio receiving device and multi-channel audio processing method
WO2024199500A1 (en)*2023-03-302024-10-03海信视像科技股份有限公司Display device and audio broadcasting method

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102821259A (en)*2012-07-202012-12-12冠捷显示科技(厦门)有限公司TV (television) system with multi-language speech translation and realization method thereof
CN111757171A (en)*2020-07-032020-10-09海信视像科技股份有限公司Display device and audio playing method
WO2021043250A1 (en)*2019-09-062021-03-11华为技术有限公司Bluetooth communication method, and related device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102821259A (en)*2012-07-202012-12-12冠捷显示科技(厦门)有限公司TV (television) system with multi-language speech translation and realization method thereof
WO2021043250A1 (en)*2019-09-062021-03-11华为技术有限公司Bluetooth communication method, and related device
CN111757171A (en)*2020-07-032020-10-09海信视像科技股份有限公司Display device and audio playing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"我们为什么要关注蓝牙LE Audio标准?", Retrieved from the Internet <URL:csdn>*

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2024198940A1 (en)*2023-03-302024-10-03海信视像科技股份有限公司Display device, audio receiving device and multi-channel audio processing method
WO2024199500A1 (en)*2023-03-302024-10-03海信视像科技股份有限公司Display device and audio broadcasting method
CN119496943A (en)*2023-03-302025-02-21海信视像科技股份有限公司 Display device and audio broadcasting method
CN119496945A (en)*2023-03-302025-02-21海信视像科技股份有限公司 Display device and audio broadcasting method
CN119496944A (en)*2023-03-302025-02-21海信视像科技股份有限公司 Display device and audio broadcasting method
CN117234454A (en)*2023-11-132023-12-15福建联迪商用设备有限公司Multichannel audio output control method and device and electronic equipment
CN117234454B (en)*2023-11-132024-02-20福建联迪商用设备有限公司Multichannel audio output control method and device and electronic equipment

Similar Documents

PublicationPublication DateTitle
JP6224133B2 (en) Connection Restaurant Sport for User Input Control for Wireless Display Devices
CN115550705A (en) An audio playback method and device
US20150149146A1 (en)Systems for delivery of audio signals to mobile devices
CN102568513B (en)Audio data processing method and interacting method
CN106888079A (en)Resource allocation methods and device
CN109862475A (en)Audio playing device and method, storage medium and communication terminal
US12277366B2 (en)Audio control method, system, and electronic device
US10425758B2 (en)Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
CN115278324B (en)Display device, bluetooth device and BIS audio transmission method
US12335700B2 (en)Bluetooth speaker control method and system, storage medium, and mobile terminal
CN113050916A (en)Audio playing method, device and storage medium
CN113542829A (en)Split screen display method, display terminal and readable storage medium
CN115278926B (en) A display device and CIS audio transmission method
WO2025189947A1 (en)Display device and device pairing connection method
CN113360117B (en)Control method, device, terminal and storage medium of electronic equipment
CN115278332A (en) A display device, playback device and data transmission method
US20230028238A1 (en)Rendering audio
WO2021244135A1 (en)Translation method and apparatus, and headset
CN114422840B (en) Audio track switching method and device
Fotopoulou et al.Use-Cases of the new 3GPP Immersive Voice and Audio Services (IVAS) Codec and a Web Demo Implementation
Bhalla et al.Unraveling bluetooth le audio
JP7037671B2 (en) Equipment and related methods for presenting audio
CN116939262A (en)Display device and sound effect setting method of audio device
CN120416574A (en) Display device and communication method between display device and audio device
KR20180090699A (en)Program Stored in Recording Medium for Supporting Automatic Response Service

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp