CN112669859B - Communication mode control method and device - Google Patents
Communication mode control method and device Download PDFInfo
- Publication number
- CN112669859B CN112669859B CN201910984158.XA CN201910984158A CN112669859B CN 112669859 B CN112669859 B CN 112669859B CN 201910984158 A CN201910984158 A CN 201910984158A CN 112669859 B CN112669859 B CN 112669859B
- Authority
- CN
- China
- Prior art keywords
- low
- latency
- audio data
- codec
- wireless headset
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 90
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000012952 Resampling Methods 0.000 claims abstract description 22
- 230000000694 effects Effects 0.000 claims abstract description 22
- 230000005540 biological transmission Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 16
- 230000006835 compression Effects 0.000 claims description 14
- 238000007906 compression Methods 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000005070 sampling Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Landscapes
- Telephone Function (AREA)
Abstract
Description
技术领域Technical field
本申请涉及通信技术领域,具体涉及一种通信模式控制方法及装置。The present application relates to the field of communication technology, and in particular to a communication mode control method and device.
背景技术Background technique
当前无线耳机使用越来越普遍,人们在各个场合下使用无线耳机,以摆脱有线耳机的束缚,自由享受音乐娱乐与通信沟通。Currently, the use of wireless earphones is becoming more and more common. People use wireless earphones on various occasions to get rid of the constraints of wired earphones and freely enjoy music, entertainment and communication.
在游戏电竞领域和观看直播等视频时,无线耳机与用户设备间的音频延时是一缺点,延时指的是用户设备端的音频流到无线耳机端喇叭播放时总共用的时间。当延时过大时,会出现用户设备画面与用户听到的声音不一致的情况,会影响用户游戏体验和观看视频体验。In the field of gaming and e-sports and when watching live broadcasts and other videos, the audio delay between the wireless headset and the user device is a shortcoming. The delay refers to the total time it takes for the audio stream on the user device to be played by the speaker on the wireless headset. When the delay is too large, the user device screen and the sound heard by the user will be inconsistent, which will affect the user's gaming experience and video viewing experience.
发明内容Contents of the invention
本申请实施例提供了一种通信模式控制方法及装置,以期减少用户设备端与耳机端的音频延时,提升用户体验。Embodiments of the present application provide a communication mode control method and device, in order to reduce the audio delay between the user equipment side and the headset side and improve the user experience.
第一方面,本申请实施例提供一种通信模式控制方法,应用于用户设备,所述用户设备与无线耳机通信连接;所述方法包括:In a first aspect, embodiments of the present application provide a communication mode control method, applied to user equipment, which is communicatively connected to a wireless headset; the method includes:
在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;Upon detecting a low-latency communication request for the wireless headset, create a fast audio track thread;
通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;Reduce the size of the audio data cache area through the fast track thread, and cancel the operations of resampling the target audio data and/or processing the sound effects of the target audio data;
在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;When it is detected that the audio codec selected by the local end is a non-low-latency first codec, switch the first codec to a low-latency second codec;
向所述无线耳机发送低延迟模式切换通知,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式。A low-latency mode switching notification is sent to the wireless headset, where the low-latency mode switching notification is used to notify the wireless headset to switch the working mode of the wireless headset to the low-latency mode.
第二方面,本申请实施例提供一种通信模式控制方法,应用于无线耳机,所述无线耳机与用户设备通信连接,所述方法包括:In a second aspect, embodiments of the present application provide a communication mode control method, which is applied to a wireless headset. The wireless headset is communicatively connected to a user equipment. The method includes:
接收所述用户设备发送的低延迟模式切换通知,所述低延迟模式切换通知是所述用户设备在执行以下操作后发送的:在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;以及通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;以及在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;Receive a low-latency mode switching notification sent by the user equipment. The low-latency mode switching notification is sent by the user equipment after performing the following operations: when detecting a low-latency communication request for the wireless headset, create a fast Audio track thread; and reducing the audio data buffer area through the fast audio track thread, and canceling the operations of resampling the target audio data and/or processing the sound effects of the target audio data; and when detecting When the audio codec selected by the local end is a non-low-latency first codec, switch the first codec to a low-latency second codec;
切换本端的工作模式为低延迟工作模式。Switch the local end's working mode to low-latency working mode.
第三方面,本申请实施例提供一种通信模式控制装置,应用于用户设备,所述用户设备与无线耳机通信连接;所述装置包括处理单元和通信单元,其中,In a third aspect, embodiments of the present application provide a communication mode control device, which is applied to user equipment, and the user equipment is communicatively connected to a wireless headset; the device includes a processing unit and a communication unit, wherein,
所述处理单元,用于在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;向所述无线耳机发送低延迟模式切换通知,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式。The processing unit is configured to create a fast audio track thread when a low-latency communication request for the wireless headset is detected; reduce the audio data buffer area through the fast audio track thread, and cancel the target audio data Perform the operations of resampling and/or processing the sound effects of the target audio data; when it is detected that the audio codec selected by the local end is a non-low-latency first codec, the first codec is The decoder is switched to a low-latency second codec; and a low-latency mode switching notification is sent to the wireless headset. The low-latency mode switching notification is used to notify the wireless headset to switch the working mode of the wireless headset to low. Delay mode.
第四方面,本申请实施例提供一种通信模式控制装置,应用于无线耳机,所述无线耳机与用户设备通信连接;所述装置包括处理单元和通信单元,其中,In the fourth aspect, embodiments of the present application provide a communication mode control device, which is applied to a wireless headset, and the wireless headset is communicatively connected with user equipment; the device includes a processing unit and a communication unit, wherein,
所述处理单元,用于接收所述用户设备发送的低延迟模式切换通知,所述低延迟模式切换通知是所述用户设备在执行以下操作后发送的:在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;以及通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;以及在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;切换本端的工作模式为低延迟工作模式。The processing unit is configured to receive a low-latency mode switching notification sent by the user equipment. The low-latency mode switching notification is sent by the user equipment after performing the following operations: detecting a low-latency mode switching notification for the wireless headset. When delaying the communication request, create a fast audio track thread; and reduce the audio data buffer area through the fast audio track thread, and cancel resampling the target audio data and/or processing the sound effects of the target audio data The operation; and when it is detected that the audio codec selected by the local end is a non-low-latency first codec, switch the first codec to a low-latency second codec; Switch the local end's working mode to low-latency working mode.
第五方面,本申请实施例提供一种用户设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a fifth aspect, an embodiment of the present application provides a user device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.
第六方面,本申请实施例提供一种无线耳机,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第二方面任一方法中的步骤的指令。In a sixth aspect, embodiments of the present application provide a wireless headset, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to perform the processing The program is executed by a computer, and the above program includes instructions for executing steps in any method of the second aspect of the embodiment of the present application.
第七方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面或第二方面任一方法中所描述的部分或全部步骤。In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute part or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application.
第八方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In the eighth aspect, embodiments of the present application provide a computer program product, wherein the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the above-mentioned computer program is operable to cause the computer to execute the implementation of the present application. Examples include some or all of the steps described in any method of the first aspect. The computer program product may be a software installation package.
本申请实施例中,用户设备在检测到针对无线耳机的低延迟通信请求时,创建快速音轨线程;通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;向所述无线耳机发送低延迟模式切换通知,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式,可见,用户设备自身减少延迟的同时,发送低延迟模式切换通知给无线耳机端,用户设备端和手机端共同优化,减少用户设备端和耳机端的音频延时,提升用户体验。In the embodiment of the present application, when the user equipment detects a low-latency communication request for the wireless headset, it creates a fast audio track thread; uses the fast audio track thread to reduce the audio data buffer area and cancels the processing of the target audio data. The operation of resampling and/or processing the sound effects of the target audio data; when detecting that the audio codec selected by the local end is a non-low-latency first codec, decoding the first codec The coder is switched to a low-latency second codec; and a low-latency mode switching notification is sent to the wireless headset. The low-latency mode switching notification is used to notify the wireless headset to switch the working mode of the wireless headset to low-latency. Mode, it can be seen that while the user equipment itself reduces the delay, it sends a low-latency mode switching notification to the wireless headset side. The user equipment side and the mobile phone side are jointly optimized to reduce the audio delay between the user equipment side and the headset side and improve the user experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本申请实施例提供的一种通信模式控制装置所处的通信模式控制系统的架构图;Figure 1 is an architectural diagram of a communication mode control system in which a communication mode control device is provided in an embodiment of the present application;
图2是本申请实施例提供的一种通信模式控制方法的流程示意图;Figure 2 is a schematic flowchart of a communication mode control method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种通信模式控制方法的流程示意图;Figure 3 is a schematic flow chart of another communication mode control method provided by an embodiment of the present application;
图4是本申请实施例提供的又一种通信模式控制方法的流程示意图;Figure 4 is a schematic flowchart of yet another communication mode control method provided by an embodiment of the present application;
图5是本申请实施例提供的一种用户设备的结构示意图;Figure 5 is a schematic structural diagram of a user equipment provided by an embodiment of the present application;
图6是本申请实施例提供的一种无线耳机的结构示意图;Figure 6 is a schematic structural diagram of a wireless earphone provided by an embodiment of the present application;
图7是本申请实施例提供的一种通信模式控制装置的功能单元组成框图;Figure 7 is a functional unit block diagram of a communication mode control device provided by an embodiment of the present application;
图8是本申请实施例提供的另一种通信模式控制装置的功能单元组成框图。Figure 8 is a functional unit block diagram of another communication mode control device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those in the technical field to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of this application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to such processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例所涉及到的用户设备可以是具备通信能力的电子设备,该用户设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。The user equipment involved in the embodiments of this application may be an electronic device with communication capabilities. The user equipment may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other devices connected to wireless modems. Processing equipment, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
本申请实施例中提到的无线耳机是中间的耳机线被电波代替,是从音频播放设备的音频出口连接到发射端,再由发射端通过电波发送到接受端的耳机中,接受端相当于是一个收音机。无线耳机可分为红外线无线耳机、米波无线耳机(FM调频耳机)和分米波无线耳机(蓝牙耳机)。The wireless earphones mentioned in the embodiments of this application have the middle earphone wire replaced by radio waves. They are connected from the audio outlet of the audio playback device to the transmitter. The transmitter then sends the radio waves to the receiver's earphones. The receiver is equivalent to a radio. Wireless headsets can be divided into infrared wireless headsets, meter wave wireless headsets (FM frequency modulation headsets) and decimeter wave wireless headsets (Bluetooth headsets).
目前,在游戏、观看直播,视频等场景下,无线耳机与用户设备之间的音频延时过大时,会使用户设备画面与用户听到的声音出现画面与声音不一致的情况,严重影响用户的体验。Currently, in scenarios such as gaming, watching live broadcasts, and videos, when the audio delay between the wireless headset and the user device is too large, the picture on the user device and the sound heard by the user will be inconsistent, seriously affecting the user. experience.
针对上述问题,本申请实施例提供一种通信模式控制方法及装置,下面结合附图对本申请实施例进行详细介绍。To address the above problems, embodiments of the present application provide a communication mode control method and device. The embodiments of the present application are introduced in detail below with reference to the accompanying drawings.
如图1所述,本申请所述通信模式控制系统100包括:用户设备101和无线耳机102,所述用户设备101和所述无线耳机102能建立通信连接。As shown in FIG. 1 , the communication mode control system 100 described in the present application includes: a user device 101 and a wireless headset 102 , and the user device 101 and the wireless headset 102 can establish a communication connection.
请参阅图2,图2是本申请实施例提供的一种通信模式控制方法的流程示意图,应用于用户设备,所述用户设备与无线耳机通信连接;如图所示,本通信模式控制方法包括以下操作:Please refer to FIG. 2, which is a flow chart of a communication mode control method provided in an embodiment of the present application, which is applied to a user device, and the user device is communicatively connected with a wireless headset; as shown in the figure, the communication mode control method includes the following operations:
S201,用户设备在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程。S201: When the user equipment detects a low-latency communication request for the wireless headset, create a fast audio track thread.
其中,所述用户设备可以是手机,可以通过识别手机端的应用程序是否调用了音频处理接口OpenSL ES,或者创建音轨线程audioTrack时是否设置了AUDIO_OUTPUT_FLAG_FAST(音频流需要快速输出到音频设备)flag的方式来判断是否有低延时需求,或者还可以通过手机应用白名单的方式来进行检测是否有低延时需求。The user device can be a mobile phone, and can be identified by identifying whether the application on the mobile phone calls the audio processing interface OpenSL ES, or whether the AUDIO_OUTPUT_FLAG_FAST (audio stream needs to be quickly output to the audio device) flag is set when creating the audio track thread audioTrack. To determine whether there is a low-latency requirement, or you can also use the mobile application whitelist to detect whether there is a low-latency requirement.
为了更好的实现低延迟,有低延迟需求的应用程序在创建音轨线程audioTrack之前,先获取所述用户设备的采样率,再根据获取到的采样率提供对应的音频数据。In order to better achieve low latency, applications with low latency requirements first obtain the sampling rate of the user device before creating the audio track thread audioTrack, and then provide corresponding audio data based on the obtained sampling rate.
S202,用户设备通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作。S202: The user equipment uses the fast track thread to reduce the size of the audio data buffer area, and cancels the operations of resampling the target audio data and/or processing the sound effects of the target audio data.
其中,所述用户设备可以是手机,以手机为例,手机在检测到有低延迟应用需求的时候,可以通过手机的audio模块创建快速音轨线程,所述快速音轨线程调小音频数据缓冲区,取消对目标音频数据进行重采样,取消对目标音频数据的音效进行处理,减少了音频流在手机端的处理时间,从而降低了延迟。Among them, the user device can be a mobile phone. Taking a mobile phone as an example, when the mobile phone detects that there is a demand for low-latency applications, it can create a fast audio track thread through the audio module of the mobile phone. The fast audio track thread reduces the audio data buffer, cancels resampling of the target audio data, and cancels processing of the sound effects of the target audio data, thereby reducing the processing time of the audio stream on the mobile phone side, thereby reducing the delay.
S203,用户设备在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器。S203: When the user equipment detects that the audio codec selected by the local terminal is a non-low-latency first codec, the user equipment switches the first codec to a low-latency second codec.
举例来说,还是以手机为例,可以在手机的audio模块识别到低延迟需求时,将该需求提交到手机的蓝牙模块,如果之前选用的音频codec不是低延迟的音频编码译码器codec,手机蓝牙模块将之前的音频编码译码器codec切换成延迟较低的音频编码译码器codec。For example, taking a mobile phone as an example, when the audio module of the mobile phone recognizes a low-latency requirement, it can submit the request to the Bluetooth module of the mobile phone. If the previously selected audio codec is not a low-latency audio codec codec, The mobile phone Bluetooth module switches the previous audio codec codec to an audio codec codec with lower latency.
S204,用户设备向所述无线耳机发送低延迟模式切换通知,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式。S204: The user equipment sends a low-latency mode switching notification to the wireless headset. The low-latency mode switching notification is used to notify the wireless headset to switch the working mode of the wireless headset to the low-latency mode.
本申请实施例中的无线耳机可以是蓝牙(Bluetooth)耳机,可以通过蓝牙技术与所述用户设备连接。蓝牙是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换。The wireless headset in the embodiment of the present application may be a Bluetooth headset, and may be connected to the user equipment through Bluetooth technology. Bluetooth is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices and building personal area networks.
举例来说,以手机和蓝牙耳机为例,手机和蓝牙耳机通过各自的蓝牙模块建立通信连接,手机端蓝牙模块再向蓝牙耳机发送低延迟模式切换通知,通知蓝牙耳机进入低延时模式,其中,可以通过重配置指令reconfig,或者定制的其他命令通知蓝牙耳机进入低延时模式。For example, take a mobile phone and a Bluetooth headset as an example. The mobile phone and the Bluetooth headset establish a communication connection through their respective Bluetooth modules. The mobile phone Bluetooth module then sends a low-latency mode switching notification to the Bluetooth headset, notifying the Bluetooth headset to enter the low-latency mode. , the Bluetooth headset can be notified to enter low-latency mode through the reconfiguration command reconfig, or other customized commands.
本申请实施例中,用户设备在检测到针对无线耳机的低延迟通信请求时,创建快速音轨线程;通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;向所述无线耳机发送低延迟模式切换通知,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式,可见,用户设备自身减少延迟的同时,发送低延迟模式切换通知给无线耳机端,用户设备端和手机端共同优化,减少用户设备端和耳机端的音频延时,提升用户体验。In the embodiment of the present application, when the user equipment detects a low-latency communication request for the wireless headset, it creates a fast audio track thread; uses the fast audio track thread to reduce the audio data buffer area and cancels the processing of the target audio data. The operation of resampling and/or processing the sound effects of the target audio data; when detecting that the audio codec selected by the local end is a non-low-latency first codec, decoding the first codec The coder is switched to a low-latency second codec; and a low-latency mode switching notification is sent to the wireless headset. The low-latency mode switching notification is used to notify the wireless headset to switch the working mode of the wireless headset to low-latency. Mode, it can be seen that while the user equipment itself reduces the delay, it sends a low-latency mode switching notification to the wireless headset side. The user equipment side and the mobile phone side are jointly optimized to reduce the audio delay between the user equipment side and the headset side and improve the user experience.
在一个可能的示例中,所述检测到针对所述无线耳机的低延迟通信请求,包括:检测到本端的应用程序调用音频处理接口OpenSL ES;或者,检测到本端的应用程序创建音轨线程audioTrack设置预设标记位,所述预设标记位用于标识音频流需要快速输出到音频设备;或者,通过手机应用白名单的方式进行检测。In a possible example, the detection of a low-latency communication request for the wireless headset includes: detecting that the local application calls the audio processing interface OpenSL ES; or detecting that the local application creates the audio track thread audioTrack. Set a preset flag bit, which is used to identify that the audio stream needs to be output to the audio device quickly; or, detect it through a mobile phone application whitelist.
举例来说,以手机为例,在检测手机安装的应用程序中某个应用程序调用了音频处理接口OpenSL ES,或者说检测到手机中某个应用程序在创建音轨线程audioTrack的时候,设置了AUDIO_OUTPUT_FLAG_FAST(音频流需要快速输出到音频设备)flag,或者检测到手机应用白名单中的应用程序时,确定手机有针对无线耳机的低延迟通信请求,创建快速音轨线程。For example, take a mobile phone as an example. When detecting that an application installed on the mobile phone calls the audio processing interface OpenSL ES, or detecting that an application in the mobile phone creates the audio track thread audioTrack, it sets AUDIO_OUTPUT_FLAG_FAST (audio stream needs to be output to the audio device quickly) flag, or when an application in the mobile application whitelist is detected, it is determined that the mobile phone has a low-latency communication request for wireless headphones and a fast audio track thread is created.
为了更好的实现低延迟,有低延迟需求的应用程序在创建音轨线程audioTrack之前,先获取所述用户设备的采样率,再根据获取到的采样率提供对应的音频数据。In order to better achieve low latency, an application with low latency requirements first obtains the sampling rate of the user device before creating the audio track thread audioTrack, and then provides corresponding audio data according to the obtained sampling rate.
可见,本示例中,通过用户设备端对低延迟需求场景进行识别,以便在识别到低延迟需求场景的时候,切换到低延迟模式,来降低用户设备和无线耳机之间的音频延时,通过检测应用程序是否调用OpenSL ES或者,在创建audioTrack时是否有设置用于标识音频流需要快速输出到音频设备的预设标记位,或者通过手机应用白名单的方式,更便于识别用户设备识别出本端应用程序与无线耳机针对音频数据的低延迟需求。It can be seen that in this example, the user device identifies the low-latency demand scenario, so that when the low-latency demand scenario is recognized, it switches to the low-latency mode to reduce the audio delay between the user device and the wireless headset. Detect whether the application calls OpenSL ES or whether there is a preset flag used to identify the audio stream that needs to be quickly output to the audio device when creating the audioTrack, or through the mobile application whitelist to make it easier to identify the user device. End-user applications and wireless headsets have low latency requirements for audio data.
在一个可能的示例中,所述向所述无线耳机发送低延迟模式切换通知,包括:通过重配置指令reconfig发送所述低延迟模式切换通知。In a possible example, sending the low-latency mode switching notification to the wireless headset includes: sending the low-latency mode switching notification through a reconfiguration instruction.
举例来说,用户设备可以是手机,无线耳机可以是蓝牙耳机,手机和蓝牙耳机通过各自的蓝牙模块建立通信连接,手机蓝牙模块可以通过向蓝牙耳机发送重配置指令reconfig的方式,这个指令用于通知蓝牙耳机端进入低延时模式,以便蓝牙耳机端在收到手机发出的重配置指令reconfig之后,进入低延迟模式。For example, the user device can be a mobile phone, and the wireless headset can be a Bluetooth headset. The mobile phone and the Bluetooth headset establish a communication connection through their respective Bluetooth modules. The mobile phone Bluetooth module can send a reconfiguration command to the Bluetooth headset. This command is used to Notify the Bluetooth headset to enter the low-latency mode, so that the Bluetooth headset can enter the low-latency mode after receiving the reconfiguration command sent by the mobile phone.
可见,本示例中,通过重配置指令reconfig向无线耳机发送所述低延迟模式切换通知,。It can be seen that in this example, the low-latency mode switching notification is sent to the wireless headset through the reconfiguration instruction.
在一个可能的示例中,所述检测到针对所述无线耳机的低延迟通信请求之后,所述方法还包括:在检测到所述音频数据缓存区调小时,根据所述音频数据缓存区的大小,调整蓝牙传输包的大小为预设大小。In one possible example, after detecting a low-latency communication request for the wireless headset, the method further includes: when detecting that the audio data buffer area is reduced in size, adjusting the size of the Bluetooth transmission packet to a preset size according to the size of the audio data buffer area.
举例来说,用户设备在检测到有针对无线耳机的低延迟通信请求之后,检测音频数据缓存区是否有调小,如果检测到音频数据缓存区调小了的话,根据调小后的音频数据缓存区的大小,用户设备可以相应的调小蓝牙数据传输包,使用小包数据传输,增加蓝牙抗干扰能力。For example, after detecting a low-latency communication request for a wireless headset, the user equipment detects whether the audio data buffer area has been reduced. If it detects that the audio data buffer area has been reduced, it will cache the audio data based on the reduced audio data buffer area. According to the size of the area, the user equipment can correspondingly reduce the size of the Bluetooth data transmission packet and use small packet data transmission to increase the anti-interference capability of Bluetooth.
可见,本示例中,因为缓存区调小会影响抗干扰能力和拉距能力,所以在进入低延迟模式时,用户通过调整蓝牙传输包的大小,能提高蓝牙抗干扰能力,从而提高蓝牙数据传输的稳定性。It can be seen that in this example, because reducing the buffer area will affect the anti-interference ability and distance pulling ability, when entering the low-latency mode, the user can improve the Bluetooth anti-interference ability by adjusting the size of the Bluetooth transmission packet, thereby improving Bluetooth data transmission. stability.
在一个可能的示例中,所述方法还包括:确定本端所处场景的干扰强度;根据所述干扰强度调整音频编码的压缩率为预设压缩率,以使得蓝牙的传输码率减小为预设码率。In a possible example, the method further includes: determining the interference intensity of the scene in which the local terminal is located; adjusting the compression rate of audio encoding to a preset compression rate according to the interference intensity, so that the transmission code rate of Bluetooth is reduced to Default bit rate.
举例来说,无线耳机可以是蓝牙耳机,用户设备可以是手机,二者通过各自的蓝牙模块通信,用户设备先确定本端所处场景的干扰强度,再根据不同的干扰强度调整音频编码的压缩率为对应的压缩率,比如当用户设备处于强干扰的环境时对应的编码压缩率,比用户设备处于弱干扰环境时对应的编码压缩率高,通过调高编码的压缩率,使得蓝牙的传输码率减小。For example, the wireless headset can be a Bluetooth headset, and the user device can be a mobile phone. The two communicate through their respective Bluetooth modules. The user device first determines the interference intensity of the scene where the local terminal is located, and then adjusts the compression of the audio encoding according to the different interference intensity. The compression rate corresponding to the rate. For example, when the user equipment is in a strong interference environment, the corresponding coding compression rate is higher than the corresponding coding compression rate when the user equipment is in a weak interference environment. By increasing the coding compression rate, the Bluetooth transmission The code rate is reduced.
可见,本示例中,通过根据用户设备所处场景的干扰强度不同,调整音频编码的压缩率,以减小蓝牙传输的码率,提高了蓝牙传输的稳定性。It can be seen that in this example, the compression rate of audio encoding is adjusted according to the different interference intensity of the scene where the user equipment is located, so as to reduce the code rate of Bluetooth transmission and improve the stability of Bluetooth transmission.
请参阅图3,图3是本申请实施例提供的另一种通信模式控制方法的流程示意图,应用于无线耳机,所述无线耳机与用户设备通信连接;如图所示,本通信模式控制方法包括以下操作:Please refer to FIG. 3, which is a flow chart of another communication mode control method provided in an embodiment of the present application, which is applied to a wireless headset, and the wireless headset is in communication connection with a user device; as shown in the figure, the communication mode control method includes the following operations:
S301,无线耳机接收用户设备发送的低延迟模式切换通知。S301. The wireless headset receives the low-latency mode switching notification sent by the user device.
其中,所述低延迟模式切换通知是所述用户设备在执行以下操作后发送的:在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;以及通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;以及在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器。Wherein, the low-latency mode switching notification is sent by the user equipment after performing the following operations: when detecting a low-latency communication request for the wireless headset, creating a fast audio track thread; and through the fast audio track The thread reduces the audio data buffer area and cancels the operations of resampling the target audio data and/or processing the sound effects of the target audio data; and detecting that the audio codec selected by the local end is non- When using a first codec with low delay, switch the first codec to a second codec with low delay.
S302,无线耳机切换本端的工作模式为低延迟工作模式。S302, the wireless headset switches the working mode of the local end to the low-latency working mode.
本申请实施例中的无线耳机可以是蓝牙耳机,可以通过蓝牙技术与所述用户设备连接。蓝牙是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换。The wireless headset in the embodiment of the present application may be a Bluetooth headset, which can be connected to the user device via Bluetooth technology. Bluetooth is a wireless technology standard that can realize short-range data exchange between fixed devices, mobile devices and building personal area networks.
本申请实施例中,无线耳机接收用户设备发送的低延迟模式切换通知;其中,所述低延迟模式切换通知是所述用户设备在执行以下操作后发送的:在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;以及通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;以及在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;切换本端的工作模式为低延迟工作模式,可见,无线耳机收到来自用户设备的低延迟模式切换通知,切换本端的工作模式为低延迟工作模式,用户设备端和手机端共同优化,减少用户设备端和耳机端的音频延时,提升用户体验。In this embodiment of the present application, the wireless headset receives a low-latency mode switching notification sent by the user equipment; wherein the low-latency mode switching notification is sent by the user equipment after performing the following operations: upon detecting the When a low-latency communication request is made, a fast audio track thread is created; and the audio data cache area is reduced through the fast audio track thread, and the resampling of the target audio data and/or the sound effects of the target audio data are cancelled. Processing operations; and when it is detected that the audio codec selected by the local end is a non-low-latency first codec, switching the first codec to a low-latency second codec ;Switch the working mode of the local terminal to the low-latency working mode. It can be seen that the wireless headset receives the low-latency mode switching notification from the user device and switches the working mode of the local terminal to the low-latency working mode. The user device side and the mobile phone side are jointly optimized to reduce user Audio delay on the device side and headset side improves user experience.
在一个可能的示例中,所述方法还包括:调小所述耳机的音频数据缓存区,以使得缓存时间小于第一预设阈值;调整一次解码的目标音频数据的大小为预设大小,以减小直接内存访问(Direct Memory Access,DMA)切换时间。In a possible example, the method further includes: reducing the audio data buffer area of the headset so that the buffer time is less than a first preset threshold; adjusting the size of the target audio data decoded once to a preset size to reduce the direct memory access (DMA) switching time.
其中,无线耳机端在接收到来自用户设备端发送的通知进入低延迟模式的通知后,耳机端将自身的音频数据缓存区调小,使得缓存时间减小,这里的第一预设阈值可以是100毫秒,即缓存时间在几十毫秒范围内;耳机端还会调整一次解码的音频数据的数据量大小,以减小直接内存访问DMA切换时间,从而减少耳机端的延时。Among them, after the wireless headset receives a notification from the user device to enter the low-latency mode, the headset adjusts its own audio data cache area to reduce the cache time. The first preset threshold here can be 100 milliseconds, that is, the cache time is in the range of tens of milliseconds; the headset will also adjust the data size of the audio data decoded at one time to reduce the direct memory access DMA switching time, thereby reducing the delay on the headset.
可以看出,本示例中,通过调小耳机端的音频数据缓存区和,调整一次解码的目标音频数据的大小,能减小耳机端的延时。It can be seen that in this example, by reducing the audio data buffer area sum of the headphone side and adjusting the size of the target audio data decoded once, the delay of the headphone side can be reduced.
在一个可能的示例中,所述方法还包括:检测所述目标音频数据的缓存数据的大小;根据所述目标音频数据的缓存数据的大小,微调耳机播放速度。In a possible example, the method further includes: detecting the size of the cache data of the target audio data; and fine-tuning the headphone playback speed according to the size of the cache data of the target audio data.
举例来说,耳机端可以检测耳机端音频缓存区内目标音频数据的缓存数据的大小,根据缓存数据的大小微调耳机播放速度,例如缓存数据大小较小时,适当调低耳机播放速度,缓存数据较大时,可以适当调高耳机播放速度。For example, the headphone end can detect the size of the cached data of the target audio data in the audio buffer area of the headset end, and fine-tune the headset playback speed according to the size of the cached data. For example, when the size of the cached data is small, the headset playback speed can be appropriately lowered, and the cached data is larger. When the volume is high, you can increase the headphone playback speed appropriately.
可见,本示例中,根据所述目标音频数据的缓存数据的大小,微调耳机播放速度,使得耳机播放速度和缓存数据大小情况相适应,有利于维持缓存的平衡。It can be seen that in this example, the headphone playback speed is finely adjusted according to the size of the cache data of the target audio data, so that the headphone playback speed adapts to the size of the cache data, which is beneficial to maintaining the balance of the cache.
在一个可能的示例中,所述方法还包括:统计本端蓝牙接收所述目标音频数据的稳定性;根据所述本端蓝牙接收所述目标音频数据的稳定性,动态调整所述耳机的音频数据缓存区。In a possible example, the method further includes: counting the stability of the local Bluetooth receiving the target audio data; and dynamically adjusting the audio of the headset according to the stability of the local Bluetooth receiving the target audio data. Data cache area.
其中,无线耳机可以是蓝牙耳机,可以通过蓝牙技术与所述用户设备连接。The wireless headset may be a Bluetooth headset, and may be connected to the user equipment through Bluetooth technology.
举例来说,以蓝牙耳机为例,蓝牙耳机可以统计本端的蓝牙接收所述目标音频数据的稳定性,再根据这个统计到的稳定性,动态调整蓝牙耳机的音频数据缓存区大小,例如,稳定性较弱的时候,适当调大音频数据缓存区的大小,以提高干扰环境下的稳定性。For example, taking a Bluetooth headset as an example, the Bluetooth headset can count the stability of the local Bluetooth receiving the target audio data, and then dynamically adjust the audio data buffer size of the Bluetooth headset based on this statistical stability. For example, stable When the performance is weak, appropriately increase the size of the audio data buffer to improve stability in interference environments.
可见,本示例中,通过根据统计的本端蓝牙接收所述目标音频数据的稳定性,动态调整所述耳机的音频数据缓存区,提高了干扰环境下的稳定性。It can be seen that in this example, by dynamically adjusting the audio data buffer area of the headset according to the statistical stability of the local Bluetooth receiving the target audio data, the stability in the interference environment is improved.
请参阅图4,图4是本申请实施例提供的又一种通信模式控制方法的流程示意图。如图所示,本通信模式控制方法包括以下步骤:Please refer to Figure 4, which is a flow chart of another communication mode control method provided in an embodiment of the present application. As shown in the figure, the communication mode control method includes the following steps:
S401,用户设备在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程。S401: When the user equipment detects a low-latency communication request for the wireless headset, create a fast audio track thread.
其中,所述用户设备可以是手机,可以通过识别手机端的应用程序是否调用了音频处理接口OpenSL ES,或者创建音轨线程audioTrack时是否设置了AUDIO_OUTPUT_FLAG_FAST(音频流需要快速输出到音频设备)flag的方式来判断是否有低延时需求,或者还可以通过手机应用白名单的方式来进行检测是否有低延时需求。The user device can be a mobile phone, and can be identified by identifying whether the application on the mobile phone calls the audio processing interface OpenSL ES, or whether the AUDIO_OUTPUT_FLAG_FAST (audio stream needs to be quickly output to the audio device) flag is set when creating the audio track thread audioTrack. To determine whether there is a low-latency requirement, or you can also use the mobile application whitelist to detect whether there is a low-latency requirement.
为了更好的实现低延迟,有低延迟需求的应用程序在创建音轨线程audioTrack之前,先获取所述用户设备的采样率,再根据获取到的采样率提供对应的音频数据。In order to better achieve low latency, applications with low latency requirements first obtain the sampling rate of the user device before creating the audio track thread audioTrack, and then provide corresponding audio data based on the obtained sampling rate.
S402,用户设备通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作。S402: The user equipment uses the fast track thread to reduce the size of the audio data buffer area, and cancels the operations of resampling the target audio data and/or processing the sound effects of the target audio data.
其中,所述快速音轨线程调小音频数据缓冲区,取消对目标音频数据进行重采样,取消对目标音频数据的音效进行处理,减少了音频流在手机端的处理时间,从而降低了延迟。The fast track thread reduces the audio data buffer, cancels resampling of the target audio data, cancels processing of the sound effects of the target audio data, and reduces the processing time of the audio stream on the mobile phone, thereby reducing the delay.
S403,用户设备在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器。S403: When the user equipment detects that the audio codec selected by the local terminal is a non-low-latency first codec, the user equipment switches the first codec to a low-latency second codec.
举例来说,以手机为例,可以在手机的audio模块识别到低延迟需求时,将该需求提交到手机的蓝牙模块,如果之前选用的音频codec不是低延迟的音频编码译码器codec,手机蓝牙模块将之前的音频编码译码器codec切换成延迟较低的音频编码译码器codec。For example, taking a mobile phone as an example, when the audio module of the mobile phone recognizes a low-latency requirement, it can submit the request to the Bluetooth module of the mobile phone. If the previously selected audio codec is not a low-latency audio codec codec, the mobile phone The Bluetooth module switches the previous audio codec codec to an audio codec codec with lower latency.
S404,用户设备向所述无线耳机发送低延迟模式切换通知。S404: The user equipment sends a low-latency mode switching notification to the wireless headset.
其中,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式。Wherein, the low-latency mode switching notification is used to notify the wireless headset to switch the working mode of the wireless headset to the low-latency mode.
S405,无线耳机接收用户设备发送的低延迟模式切换通知。S405: The wireless headset receives the low-latency mode switching notification sent by the user device.
本申请实施例中的无线耳机可以是蓝牙耳机,可以通过蓝牙技术与所述用户设备连接。The wireless headset in the embodiment of the present application may be a Bluetooth headset, and may be connected to the user equipment through Bluetooth technology.
S406,无线耳机切换本端的工作模式为低延迟工作模式。S406, the wireless headset switches the working mode of the local end to the low-latency working mode.
本申请实施例中,用户设备在检测到针对无线耳机的低延迟通信请求时,创建快速音轨线程;通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;用户设备向所述无线耳机发送低延迟模式切换通知;无线耳机接收用户设备发送的低延迟模式切换通知;无线耳机切换本端的工作模式为低延迟工作模式。可见,用户设备在检测到有低延迟需求时,自身减少延迟的同时,向所述无线耳机发送低延迟模式切换通知,所述无线耳机接收到通知时,进入低延迟模式,减少耳机端的延时,通过这样用户设备端和耳机端共同优化,降低用户设备到无线耳机声音播放出来的总时间,从而改善用户感受到画面与声音不同步的问题,在游戏、观看直播,视频等场景下使用无线耳机得到较好的体验。In the embodiment of the present application, when the user equipment detects a low-latency communication request for the wireless headset, it creates a fast audio track thread; uses the fast audio track thread to reduce the audio data buffer area and cancels the processing of the target audio data. The operation of resampling and/or processing the sound effects of the target audio data; when detecting that the audio codec selected by the local end is a non-low-latency first codec, decoding the first codec The codec is switched to a low-latency second codec; the user equipment sends a low-latency mode switching notification to the wireless headset; the wireless headset receives the low-latency mode switching notification sent by the user equipment; the wireless headset switches the working mode of the local end to low Delayed working mode. It can be seen that when the user equipment detects a low-latency requirement, it reduces the delay itself and sends a low-latency mode switching notification to the wireless headset. When the wireless headset receives the notification, it enters the low-latency mode to reduce the delay on the headset. , through the joint optimization of the user equipment side and the headset side, the total time for the sound to be played from the user equipment to the wireless headset is reduced, thereby improving the problem that the user feels that the picture and sound are out of sync, and using wireless in scenarios such as gaming, watching live broadcasts, and videos. Get a better experience with headphones.
与上述图2所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种用户设备的结构示意图。如图所示,所述用户设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行上述方法实施例中任一步骤的指令。Consistent with the above embodiment shown in Figure 2, please refer to Figure 5. Figure 5 is a schematic structural diagram of a user equipment provided by an embodiment of the present application. As shown in the figure, the user equipment 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, wherein the one or more programs 521 are stored in the above-mentioned memory 520 and are The configuration is executed by the above-mentioned application processor 510, and the one or more programs 521 include instructions for executing any step in the above-mentioned method embodiments.
在一个可能的示例中,所述一个或多个程序521包括用于执行以下步骤的指令:在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;向所述无线耳机发送低延迟模式切换通知,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式。In one possible example, the one or more programs 521 include instructions for performing the following steps: when a low-latency communication request for the wireless headset is detected, create a fast audio track thread; The track thread reduces the audio data buffer area and cancels the operations of resampling the target audio data and/or processing the sound effects of the target audio data; when it is detected that the audio codec selected by the local end is non- When using a low-latency first codec, switch the first codec to a low-latency second codec; send a low-latency mode switching notification to the wireless headset, and the low-latency mode switch The notification is used to notify the wireless headset to switch the working mode of the wireless headset to the low-latency mode.
在一个可能的示例中,在所述检测到针对所述无线耳机的低延迟通信请求方面,所述程序521中的指令具体用于执行以下操作:检测到本端的应用程序调用音频处理接口OpenSL ES;或者,检测到本端的应用程序创建音轨线程audioTrack设置预设标记位,所述预设标记位用于标识音频流需要快速输出到音频设备;或者,通过手机应用白名单的方式进行检测。In one possible example, in terms of detecting a low-latency communication request for the wireless headset, the instructions in the program 521 are specifically used to perform the following operations: detecting that an application on the local side calls the audio processing interface OpenSL ES; or detecting that an application on the local side creates an audio track thread audioTrack and sets a preset flag bit, wherein the preset flag bit is used to indicate that the audio stream needs to be output to the audio device quickly; or detecting by means of a mobile phone application whitelist.
在一个可能的示例中,在所述向所述无线耳机发送低延迟模式切换通知方面,所述程序521中的指令具体用于执行以下操作:通过重配置指令reconfig发送所述低延迟模式切换通知。In one possible example, in terms of sending a low-latency mode switching notification to the wireless headset, the instructions in the program 521 are specifically used to perform the following operations: sending the low-latency mode switching notification via a reconfiguration instruction reconfig.
在一个可能的示例中,在所述检测到针对所述无线耳机的低延迟通信请求方面之后,所述程序521还包括用于执行以下操作的指令:在检测到所述音频数据缓存区调小时,根据所述音频数据缓存区的大小,调整蓝牙传输包的大小为预设大小。In a possible example, after the low-latency communication request for the wireless headset is detected, the program 521 further includes instructions for performing the following operations: after detecting that the audio data buffer is adjusted , according to the size of the audio data buffer area, adjust the size of the Bluetooth transmission packet to a preset size.
在一个可能的示例中,所述程序521还包括用于执行以下操作的指令:确定本端所处场景的干扰强度;根据所述干扰强度调整音频编码的压缩率为预设压缩率,以使得蓝牙的传输码率减小为预设码率。In a possible example, the program 521 also includes instructions for performing the following operations: determining the interference intensity of the scene where the local terminal is located; adjusting the compression rate of the audio encoding to a preset compression rate according to the interference intensity, so that The transmission bit rate of Bluetooth is reduced to the preset bit rate.
与上述图3所示的实施例一致的,请参阅图6,图6是本申请实施例提供的一种无线耳机的结构示意图。如图所示,所述无线耳机600包括应用处理器610、存储器620、通信接口630以及一个或多个程序621,其中,所述一个或多个程序621被存储在上述存储器620中,并且被配置由上述应用处理器610执行,所述一个或多个程序621包括用于执行上述方法实施例中任一步骤的指令。Consistent with the embodiment shown in FIG. 3 above, please refer to FIG. 6 , which is a schematic structural diagram of a wireless earphone provided by an embodiment of the present application. As shown in the figure, the wireless headset 600 includes an application processor 610, a memory 620, a communication interface 630, and one or more programs 621, wherein the one or more programs 621 are stored in the memory 620 and are The configuration is executed by the above-mentioned application processor 610, and the one or more programs 621 include instructions for executing any step in the above-mentioned method embodiments.
在一个可能的示例中,所述一个或多个程序621包括用于执行以下步骤的指令:接收所述用户设备发送的低延迟模式切换通知,所述低延迟模式切换通知是所述用户设备在执行以下操作后发送的:在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;以及通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;以及在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;切换本端的工作模式为低延迟工作模式。In a possible example, the one or more programs 621 include instructions for performing the following steps: receiving a low-latency mode switching notification sent by the user equipment, where the low-latency mode switching notification is when the user equipment Sent after performing the following operations: creating a fast audio track thread when a low-latency communication request for the wireless headset is detected; and reducing the audio data cache area through the fast audio track thread and canceling the target audio The operation of resampling the data and/or processing the sound effects of the target audio data; and when it is detected that the audio codec selected by the local end is a non-low-latency first codec, the third codec is The first codec is switched to a low-latency second codec; the working mode of the local end is switched to a low-latency working mode.
在一个可能的示例中,所述程序621还包括用于执行以下操作的指令:调小所述耳机的音频数据缓存区,以使得缓存时间小于第一预设阈值;调整一次解码的目标音频数据的大小为预设大小,以减小直接内存访问DMA切换时间。In a possible example, the program 621 also includes instructions for performing the following operations: reducing the audio data cache area of the headset so that the cache time is less than the first preset threshold; adjusting the target audio data once decoded The size is a preset size to reduce direct memory access DMA switching time.
在一个可能的示例中,所述程序621还包括用于执行以下操作的指令:检测所述目标音频数据的缓存数据的大小;根据所述目标音频数据的缓存数据的大小,微调耳机播放速度。In a possible example, the program 621 further includes instructions for performing the following operations: detecting the size of the cache data of the target audio data; and fine-tuning the headphone playback speed according to the size of the cache data of the target audio data.
在一个可能的示例中,所述程序621还包括用于执行以下操作的指令:统计本端蓝牙接收所述目标音频数据的稳定性;根据所述本端蓝牙接收所述目标音频数据的稳定性,动态调整所述耳机的音频数据缓存区。In a possible example, the program 621 also includes instructions for performing the following operations: counting the stability of the local Bluetooth receiving the target audio data; and according to the stability of the local Bluetooth receiving the target audio data. , dynamically adjust the audio data buffer area of the headset.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,用户设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that in order to implement the above functions, the user equipment includes corresponding hardware structures and/or software modules for performing each function. Persons skilled in the art should easily realize that, with the units and algorithm steps of each example described in conjunction with the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对用户设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Embodiments of the present application can divide the user equipment into functional units according to the above method examples. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated units can be implemented in the form of hardware or software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
请参阅图7,图7是本申请实施例中所涉及的一种通信模式控制装置700的功能单元组成框图。所通信模式控制装置700应用于用户设备,所述用户设备与无线耳机通信连接;所通信模式控制装置700包括处理单元701和通信单元702,其中,所述处理单元701,用于执行如上述方法实施例中的任一步骤,且在执行诸如发送等数据传输时,可选择的调用所述通信单元702来完成相应操作。下面进行详细说明。Please refer to FIG. 7 , which is a functional unit block diagram of a communication mode control device 700 involved in the embodiment of the present application. The communication mode control device 700 is applied to user equipment, and the user equipment is communicatively connected to a wireless headset; the communication mode control device 700 includes a processing unit 701 and a communication unit 702, wherein the processing unit 701 is used to perform the above method. Any step in the embodiment, and when performing data transmission such as sending, the communication unit 702 can be selectively called to complete the corresponding operation. Detailed explanation below.
所述处理单元701,用于在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;向所述无线耳机发送低延迟模式切换通知,所述低延迟模式切换通知用于通知所述无线耳机切换本无线耳机的工作模式为低延迟模式。The processing unit 701 is configured to create a fast audio track thread when a low-latency communication request for the wireless headset is detected; reduce the audio data buffer area through the fast audio track thread, and cancel the processing of the target audio The operation of resampling the data and/or processing the sound effects of the target audio data; when it is detected that the audio codec selected by the local end is a non-low-latency first codec, the first codec is The codec is switched to a low-latency second codec; and a low-latency mode switching notification is sent to the wireless headset. The low-latency mode switching notification is used to notify the wireless headset to switch the working mode of the wireless headset. Low latency mode.
在一个可能的示例中,所述检测到针对所述无线耳机的低延迟通信请求方面,所述处理单元701具体用于:检测到本端的应用程序调用音频处理接口OpenSL ES;或者,检测到本端的应用程序创建音轨线程audioTrack设置预设标记位,所述预设标记位用于标识音频流需要快速输出到音频设备;或者,通过手机应用白名单的方式进行检测。In a possible example, in terms of detecting a low-latency communication request for the wireless headset, the processing unit 701 is specifically configured to: detect that the local application calls the audio processing interface OpenSL ES; or, detect that the local application calls the audio processing interface OpenSL ES; or, detect that the local application calls the audio processing interface OpenSL ES; The end-end application creates the audio track thread audioTrack and sets a preset flag bit, which is used to identify that the audio stream needs to be quickly output to the audio device; or, it can be detected through the mobile phone application whitelist.
在一个可能的示例中,所述向所述无线耳机发送低延迟模式切换通知方面,所述处理单元701具体用于:通过重配置指令reconfig发送所述低延迟模式切换通知。In a possible example, in terms of sending the low-latency mode switching notification to the wireless headset, the processing unit 701 is specifically configured to: send the low-latency mode switching notification through a reconfiguration instruction reconfig.
在一个可能的示例中,所述检测到针对所述无线耳机的低延迟通信请求方面之后,所述处理单元701还用于:在检测到所述音频数据缓存区调小时,根据所述音频数据缓存区的大小,调整蓝牙传输包的大小为预设大小。In a possible example, after detecting the low-latency communication request for the wireless headset, the processing unit 701 is further configured to: when detecting that the audio data buffer is adjusted, adjust the audio data according to the audio data. The size of the buffer area, adjust the size of the Bluetooth transmission packet to the default size.
在一种可能的示例中,所述处理单元701还用于:确定本端所处场景的干扰强度;根据所述干扰强度调整音频编码的压缩率为预设压缩率,以使得蓝牙的传输码率减小为预设码率。In a possible example, the processing unit 701 is further configured to: determine the interference intensity of the scene where the local terminal is located; adjust the compression rate of the audio encoding to a preset compression rate according to the interference intensity, so that the Bluetooth transmission code The code rate is reduced to the preset code rate.
其中,所述通信模式控制装置700还可以包括存储单元703,用于存储用户设备的程序代码和数据。所述处理单元701可以是处理器,所述通信单元702可以是触控显示屏或者收发器,存储单元703可以是存储器。The communication mode control apparatus 700 may also include a storage unit 703 for storing program codes and data of user equipment. The processing unit 701 may be a processor, the communication unit 702 may be a touch display screen or a transceiver, and the storage unit 703 may be a memory.
请参阅图8,图8是本申请实施例中所涉及的另一种通信模式控制装置800的功能单元组成框图。所述通信模式控制装置800应用于无线耳机,所述无线耳机与用户设备通信连接;所述通信模式控制装置800包括处理单元801和通信单元802,其中,所述处理单元801,用于执行如上述方法实施例中的任一步骤,且在执行诸如发送等数据传输时,可选择的调用所述通信单元802来完成相应操作。下面进行详细说明。Please refer to FIG. 8 , which is a functional unit block diagram of another communication mode control device 800 involved in the embodiment of the present application. The communication mode control device 800 is applied to wireless headsets, and the wireless headsets are communicatively connected with user equipment; the communication mode control device 800 includes a processing unit 801 and a communication unit 802, wherein the processing unit 801 is used to perform the following: In any step in the above method embodiment, when performing data transmission such as sending, the communication unit 802 can be optionally called to complete the corresponding operation. Detailed explanation below.
所述处理单元801,用于接收所述用户设备发送的低延迟模式切换通知,所述低延迟模式切换通知是所述用户设备在执行以下操作后发送的:在检测到针对所述无线耳机的低延迟通信请求时,创建快速音轨线程;以及通过所述快速音轨线程调小音频数据缓存区,并取消对所述目标音频数据进行重采样和/或对所述目标音频数据的音效进行处理的操作;以及在检测到本端选用的音频编码译码器为非低延迟的第一编码译码器时,将所述第一编码译码器切换为低延迟的第二编码译码器;切换本端的工作模式为低延迟工作模式。The processing unit 801 is configured to receive a low-latency mode switching notification sent by the user equipment. The low-latency mode switching notification is sent by the user equipment after performing the following operations: upon detecting the When a low-latency communication request is made, a fast audio track thread is created; and the audio data cache area is reduced through the fast audio track thread, and the resampling of the target audio data and/or the sound effects of the target audio data are cancelled. Processing operations; and when it is detected that the audio codec selected by the local end is a non-low-latency first codec, switching the first codec to a low-latency second codec ;Switch the local working mode to low-latency working mode.
在一种可能的示例中,所述处理单元801还用于:调小所述耳机的音频数据缓存区,以使得缓存时间小于第一预设阈值;调整一次解码的目标音频数据的大小为预设大小,以减小直接内存访问DMA切换时间。In a possible example, the processing unit 801 is further configured to: reduce the audio data cache area of the headset so that the cache time is less than a first preset threshold; adjust the size of the target audio data decoded once to the preset threshold. Set size to reduce direct memory access DMA switching time.
在一种可能的示例中,所述处理单元801还用于:检测所述目标音频数据的缓存数据的大小;根据所述目标音频数据的缓存数据的大小,微调耳机播放速度。In a possible example, the processing unit 801 is further configured to: detect the size of the cache data of the target audio data; and fine-tune the headphone playback speed according to the size of the cache data of the target audio data.
在一种可能的示例中,所述处理单元801还用于:统计本端蓝牙接收所述目标音频数据的稳定性;根据所述本端蓝牙接收所述目标音频数据的稳定性,动态调整所述耳机的音频数据缓存区。In a possible example, the processing unit 801 is further configured to: make statistics on the stability of the local Bluetooth receiving the target audio data; and dynamically adjust the target audio data according to the stability of the local Bluetooth receiving the target audio data. Describes the audio data buffer area of the headset.
可以理解的是,由于方法实施例与装置实施例为相同技术构思的不同呈现形式,因此,本申请中方法实施例部分的内容应同步适配于装置实施例部分,此处不再赘述。It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be simultaneously adapted to the device embodiment part, and will not be described again here.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括用户设备或无线耳机。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes a user device or a wireless headset.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括用户设备。The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a user device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the sake of simple description, the foregoing method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with this application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily necessary for this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other divisions. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, It includes several instructions to cause a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the above methods in various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable memory. The memory can include: a flash disk. , read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and the core idea of the present application; at the same time, for Those of ordinary skill in the art will have changes in the specific implementation and application scope based on the ideas of the present application. In summary, the content of this description should not be understood as a limitation of the present application.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910984158.XA CN112669859B (en) | 2019-10-16 | 2019-10-16 | Communication mode control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910984158.XA CN112669859B (en) | 2019-10-16 | 2019-10-16 | Communication mode control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112669859A CN112669859A (en) | 2021-04-16 |
CN112669859B true CN112669859B (en) | 2024-04-02 |
Family
ID=75400564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910984158.XA Active CN112669859B (en) | 2019-10-16 | 2019-10-16 | Communication mode control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112669859B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115580850A (en) * | 2021-06-21 | 2023-01-06 | Oppo广东移动通信有限公司 | Bluetooth data processing method and device, device, storage medium |
CN114615536B (en) * | 2022-02-25 | 2024-05-28 | 海信视像科技股份有限公司 | Display device and sound effect processing method |
CN117978784B (en) * | 2024-04-01 | 2024-06-25 | 深圳市龙芯威半导体科技有限公司 | Low-delay connection method applied to audio communication and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108551358A (en) * | 2018-03-16 | 2018-09-18 | 恒玄科技(上海)有限公司 | A kind of method of adjustment of bluetooth headset difference model subaudio frequency data |
CN108988909A (en) * | 2018-07-25 | 2018-12-11 | Oppo(重庆)智能科技有限公司 | Audio-frequency processing method and device, electronic equipment, computer readable storage medium |
CN109144463A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Transmission control method and device and electronic equipment |
CN109151194A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Data transmission method, device, electronic equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2432758B (en) * | 2005-11-26 | 2008-09-10 | Wolfson Ltd | Auto device and method |
US9357152B2 (en) * | 2012-07-02 | 2016-05-31 | Kevin Griffin | Dual-mode communication devices and methods for arena gaming |
-
2019
- 2019-10-16 CN CN201910984158.XA patent/CN112669859B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108551358A (en) * | 2018-03-16 | 2018-09-18 | 恒玄科技(上海)有限公司 | A kind of method of adjustment of bluetooth headset difference model subaudio frequency data |
CN108988909A (en) * | 2018-07-25 | 2018-12-11 | Oppo(重庆)智能科技有限公司 | Audio-frequency processing method and device, electronic equipment, computer readable storage medium |
CN109144463A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Transmission control method and device and electronic equipment |
CN109151194A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Data transmission method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112669859A (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021098405A1 (en) | Data transmission method and apparatus, terminal, and storage medium | |
CN112669859B (en) | Communication mode control method and device | |
JP2023134491A (en) | Method for operating bluetooth device | |
EP3745813B1 (en) | Method for operating a bluetooth device | |
WO2015085959A1 (en) | Voice processing method and device | |
CN104254007B (en) | A kind of audio-frequency processing method and device | |
CN109165005B (en) | Sound effect enhancement method and device, electronic equipment and storage medium | |
CN103297824A (en) | Video processing method, dongle, control terminal and system | |
CN113453114B (en) | Encoding control method, encoding control device, wireless headset and storage medium | |
CN103795950A (en) | Television audio signal processing device | |
CN111033614B (en) | Volume adjustment method, device, mobile terminal and storage medium | |
CN109107158B (en) | Sound effect processing method and device, electronic equipment and computer readable storage medium | |
US12224792B2 (en) | Audio transmission method and electronic device | |
CN106878915A (en) | Playing device control method, device, playing device, and mobile terminal | |
CN115022766B (en) | Audio data playing method and equipment | |
CN114640740B (en) | Communication processing method, device, electronic equipment and storage medium | |
CN109298846B (en) | Audio transmission method, device, electronic device and storage medium | |
CN111526506B (en) | Charging box and method for wireless communication and audio playing kit | |
CN111970668B (en) | Bluetooth audio control method, device and computer readable storage medium | |
WO2024027315A1 (en) | Audio processing method and apparatus, electronic device, storage medium, and program product | |
CN105992054A (en) | Intelligent television playing method and playing device | |
CN106331356B (en) | A volume control method and terminal | |
CN111508507B (en) | Audio signal processing method and device | |
CN109348021B (en) | Mobile terminal and audio playing method | |
CN203340143U (en) | a mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |