CN115022777A - Audio playing parameter updating method, audio data adjusting method, device and medium - Google Patents
Audio playing parameter updating method, audio data adjusting method, device and medium Download PDFInfo
- Publication number
- CN115022777A CN115022777A CN202210641549.3A CN202210641549A CN115022777A CN 115022777 A CN115022777 A CN 115022777A CN 202210641549 A CN202210641549 A CN 202210641549A CN 115022777 A CN115022777 A CN 115022777A
- Authority
- CN
- China
- Prior art keywords
- earphone
- audio
- target
- audio playback
- source device
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
- H04R5/04—Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
- H04R5/033—Headphones for stereophonic communication
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Headphones And Earphones (AREA)
Abstract
Description
技术领域technical field
本申请属于音频技术领域,尤其涉及一种音频播放参数更新方法、音频数据调整方法、装置及介质。The present application belongs to the field of audio technology, and in particular, relates to a method for updating audio playback parameters, a method for adjusting audio data, a device and a medium.
背景技术Background technique
随着社会的进步和人们生活水平的提高,耳机已成为人们必不可少的生活用品,越来越多的用户喜欢使用耳机收听音频。然而,耳机的音频播放参数通常是固定的,用户体验感较差。With the progress of society and the improvement of people's living standards, headphones have become an indispensable daily necessities for people, and more and more users like to use headphones to listen to audio. However, the audio playback parameters of the headset are usually fixed, and the user experience is poor.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种音频播放参数更新方法、音频数据调整方法、装置及介质,以实现音频播放参数的自适应更新,提高用户体验感。Embodiments of the present application provide a method for updating audio playback parameters, a method for adjusting audio data, a device and a medium, so as to realize adaptive updating of audio playback parameters and improve user experience.
第一方面,本申请实施例提供了一种音频播放参数更新方法,应用于耳机组合,包括:In a first aspect, an embodiment of the present application provides a method for updating audio playback parameters, which is applied to a headset combination, including:
基于所述耳机组合中耳机间的连接状态变化,更新目标耳机的音频播放参数,所述目标耳机为在所述连接状态变化的过程中与音频源设备保持无线连接的耳机,所述音频播放参数与所述音频源设备的音频播放控制相关。Based on the change of the connection state between the earphones in the earphone combination, the audio playback parameters of the target earphone are updated. Related to audio playback control of the audio source device.
在本申请实施例中,基于耳机组合中耳机间的连接状态变化,可以动态更新在上述连接状态变化的过程中与音频源设备保持无线连接的耳机的音频播放参数,从而实现音频播放参数的自适应更新,提高用户体验感。In the embodiment of the present application, based on the change of the connection state between the earphones in the earphone combination, the audio playback parameters of the earphones that are wirelessly connected to the audio source device during the process of the above-mentioned connection state change can be dynamically updated, thereby realizing the automatic adjustment of the audio playback parameters. Adapt to updates and improve user experience.
第二方面,本申请实施例提供了一种音频数据调整方法,应用于音频源设备,包括:In a second aspect, an embodiment of the present application provides an audio data adjustment method, which is applied to an audio source device, including:
接收来自目标耳机的更新后的音频播放参数,所述更新后的音频播放参数基于耳机组合中耳机间的连接状态变化得到,所述目标耳机为在所述连接状态变化的过程中与所述音频源设备保持无线连接的耳机;Receive the updated audio playback parameters from the target earphone, the updated audio playback parameters are obtained based on the change of the connection state between the earphones in the earphone combination, and the target earphone is in the process of changing the connection state and the audio frequency. Headphones for which the source device remains wirelessly connected;
基于所述更新后的音频播放参数,调整向所述目标耳机发送的音频数据。Based on the updated audio playback parameters, the audio data sent to the target earphone is adjusted.
在本申请实施例中,通过接收来自目标耳机的更新后的音频播放参数,可以基于更新后的音频播放参数,调整向目标耳机发送的音频数据,从而实现音频数据的自适应调整,提高用户体验感。In the embodiment of the present application, by receiving the updated audio playback parameters from the target earphone, the audio data sent to the target earphone can be adjusted based on the updated audio playback parameters, thereby realizing the adaptive adjustment of the audio data and improving the user experience. sense.
第三方面,本申请实施例提供了一种音频播放参数更新装置,应用于耳机组合,包括:In a third aspect, an embodiment of the present application provides an apparatus for updating audio playback parameters, which is applied to a headset combination, including:
参数更新模块,用于基于所述耳机组合中耳机间的连接状态变化,更新目标耳机的音频播放参数,所述目标耳机为在所述连接状态变化的过程中与音频源设备保持无线连接的耳机,所述音频播放参数与所述音频源设备的音频播放控制相关。A parameter updating module for updating audio playback parameters of a target earphone based on a change in the connection state between the earphones in the earphone combination, where the target earphone is an earphone that maintains a wireless connection with the audio source device during the change in the connection state , the audio playback parameter is related to the audio playback control of the audio source device.
第四方面,本申请实施例提供了一种音频数据调整装置,应用于音频源设备,包括:In a fourth aspect, an embodiment of the present application provides an audio data adjustment device, which is applied to an audio source device, including:
参数接收模块,用于接收来自目标耳机的更新后的音频播放参数,所述更新后的音频播放参数基于耳机组合中耳机间的连接状态变化得到,所述目标耳机为在所述连接状态变化的过程中与所述音频源设备保持无线连接的耳机;The parameter receiving module is used to receive the updated audio playback parameters from the target earphone, the updated audio playback parameters are obtained based on the change of the connection state between the earphones in the earphone combination, and the target earphone is the one that changes in the connection state. A headset that maintains a wireless connection with the audio source device during the process;
数据调整模块,用于基于所述更新后的音频播放参数,调整向所述目标耳机发送的音频数据。A data adjustment module, configured to adjust the audio data sent to the target earphone based on the updated audio playback parameters.
第五方面,本申请实施例提供了一种耳机组合,所述耳机组合中的耳机包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的音频播放参数更新方法的步骤。In a fifth aspect, an embodiment of the present application provides an earphone combination, wherein the earphone in the earphone combination includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processing When the computer executes the computer program, the computer implements the steps of the method for updating audio playback parameters according to the first aspect.
第六方面,本申请实施例提供了一种音频源设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第二方面所述的音频数据调整方法的步骤。In a sixth aspect, an embodiment of the present application provides an audio source device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program When implementing the steps of the audio data adjustment method described in the second aspect above.
第七方面,本申请实施例提供了一种芯片,包括处理器,所述处理器用于读取并执行存储器中存储的计算机程序,以执行如上述第一方面所述的音频播放参数更新方法的步骤,或者以执行如上述第二方面所述的音频数据调整方法的步骤。In a seventh aspect, an embodiment of the present application provides a chip, including a processor, where the processor is configured to read and execute a computer program stored in a memory to execute the method for updating audio playback parameters as described in the first aspect above. steps, or to perform the steps of the audio data adjustment method described in the second aspect above.
可选地,所述存储器与所述处理器通过电路或电线连接。Optionally, the memory and the processor are connected by a circuit or wire.
第八方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的音频播放参数更新方法的步骤,或者实现如上述第二方面所述的音频数据调整方法的步骤。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the audio playback described in the first aspect above The steps of the parameter updating method, or the steps of implementing the audio data adjustment method as described in the second aspect above.
第九方面,本申请实施例提供了一种计算机程序产品,当所述计算机程序产品在耳机组合上运行时,使得所述耳机组合执行如上述第一方面所述的音频播放参数更新方法的步骤,或者当所述计算机程序产品在音频源设备上运行时,使得所述音频源设备执行如上述第二方面所述的音频数据调整方法的步骤。In a ninth aspect, an embodiment of the present application provides a computer program product that, when the computer program product runs on an earphone combination, causes the earphone combination to perform the steps of the method for updating audio playback parameters as described in the first aspect above , or when the computer program product runs on the audio source device, the audio source device is caused to execute the steps of the audio data adjustment method as described in the second aspect above.
可以理解地,上述提供的第三方面、第四方面、第五方面、第六方面、第七方面、第八方面和第九方面均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可以参考上文所提供的对应的方法中的有益效果,此处不再赘述。It can be understood that the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect and the ninth aspect provided above are all used to perform the corresponding methods provided above, therefore, the For the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding methods provided above, which will not be repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是TWS耳机的一工作原理示例图;Fig. 1 is a working principle example diagram of TWS headset;
图2是TWS耳机的另一工作原理示例图;Fig. 2 is another working principle example diagram of TWS headset;
图3是TWS耳机与手机的交互示例图;Fig. 3 is the interaction example diagram of TWS headset and mobile phone;
图4是本申请一实施例提供的音频播放参数更新方法的实现流程示意图;FIG. 4 is a schematic diagram of an implementation flow of a method for updating audio playback parameters provided by an embodiment of the present application;
图5是本申请一实施例提供的音频数据调整方法的实现流程示意图;FIG. 5 is a schematic flowchart of an implementation of a method for adjusting audio data provided by an embodiment of the present application;
图6是音频播放参数的一更新场景示例图;Fig. 6 is an update scene example diagram of audio playback parameters;
图7是音频播放参数的另一更新场景示例图;Fig. 7 is another update scene example diagram of audio playback parameter;
图8是本申请一实施例提供的音频播放参数更新装置的结构示意图;8 is a schematic structural diagram of an apparatus for updating audio playback parameters provided by an embodiment of the present application;
图9是本申请一实施例提供的音频数据调整装置的结构示意图;9 is a schematic structural diagram of an apparatus for adjusting audio data provided by an embodiment of the present application;
图10是本申请一实施例提供的耳机的结构示意图;10 is a schematic structural diagram of an earphone provided by an embodiment of the present application;
图11是本申请一实施例提供的音频源设备的结构示意图。FIG. 11 is a schematic structural diagram of an audio source device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
在说明本申请方案之前,为了便于读者理解,先对本方案中所涉及的名词进行解释说明。Before explaining the solution of the present application, in order to facilitate the reader's understanding, the terms involved in the solution are explained first.
耳机组合包括至少两只无线耳机,无线耳机之间可以建立无线连接,在成功建立无线连接的基础上可以实现数据传输。The earphone combination includes at least two wireless earphones, and a wireless connection can be established between the wireless earphones, and data transmission can be realized on the basis of the successful establishment of the wireless connection.
本实施例中无线耳机之间的数据传输以蓝牙技术为例进行说明,在一些具体的实施例中无线耳机之间的数据传输也可以是其他无线通信技术,例如Zigbee技术、Wi-Fi技术、通用分组无线服务(General packet radio service,GPRS)技术等。In this embodiment, the data transmission between the wireless earphones is described by taking the Bluetooth technology as an example. In some specific embodiments, the data transmission between the wireless earphones may also be other wireless communication technologies, such as Zigbee technology, Wi-Fi technology, General packet radio service (General packet radio service, GPRS) technology, etc.
例如,上述耳机组合可以是支持经典蓝牙(例如蓝牙5.0)技术的真无线立体声(True Wireless Stereo,TWS)耳机、支持蓝牙低功耗音频(Low Energy Audio,LE Audio)技术的TWS耳机等。For example, the above headset combination may be a True Wireless Stereo (TWS) headset supporting classic Bluetooth (eg, Bluetooth 5.0) technology, a TWS headset supporting Bluetooth Low Energy Audio (LE Audio) technology, and the like.
TWS技术主要应用于耳机、音箱等音频播放设备,在实际运用的过程中,它可以使左右声道进行无线分离,实现立体声效果。TWS technology is mainly used in audio playback equipment such as headphones and speakers. In the process of actual application, it can wirelessly separate the left and right channels to achieve a stereo effect.
TWS耳机是将TWS技术应用于蓝牙耳机领域所产生的一种新的智能穿戴产品。TWS耳机具有真正无线、可实现单双耳佩戴、智能化、主动降噪、交互方式多样化等特点,与传统有线蓝牙耳机相比,具有设计简单、解放双手、佩戴便利性更高等优势。TWS headset is a new smart wearable product produced by applying TWS technology to the field of Bluetooth headsets. TWS earphones are truly wireless, can be worn on both ears, intelligence, active noise reduction, and diversified interaction methods. Compared with traditional wired Bluetooth earphones, TWS earphones have the advantages of simple design, hands-free, and higher wearing convenience.
通过配备便携式充电盒可以为TWS耳机充电,并收纳TWS耳机。该充电盒也可以称之为耳机盒。By equipped with a portable charging box, the TWS headset can be charged and stored. The charging case can also be called a headphone case.
支持经典蓝牙(例如蓝牙5.0)技术的TWS耳机采用的是主副耳机传输技术,手机、平板电脑等音频源设备需要先与主耳机无线连接,之后主耳机再与副耳机无线连接。如图1所示是支持经典蓝牙技术的TWS耳机的工作原理示例图,图1中的左耳机为主耳机,右耳机为副耳机,图1中的直线表示设备之间的无线连接。TWS headsets that support classic Bluetooth (such as Bluetooth 5.0) technology use the primary and secondary headset transmission technology. Audio source devices such as mobile phones and tablet computers need to be wirelessly connected to the primary headset, and then the primary headset and the secondary headset. Wireless connection. Figure 1 shows an example of the working principle of a TWS headset that supports classic Bluetooth technology. The left headset in Figure 1 is the main headset, and the right headset is the secondary headset. The straight line in Figure 1 represents the wireless connection between devices.
支持LE Audio技术的TWS耳机采用的是双耳同时传输,不分主副耳机,左耳机和右耳机可同时双向传输,不仅可以有效避免电波损耗,还可以降低延迟以及提高连接稳定性,带来更好的用户体验。如图2所示是支持LE Audio技术的TWS耳机的工作原理示例图,图2中的直线表示设备之间的无线连接,左耳机和右耳机均可与手机建立无线连接。TWS earphones supporting LE Audio technology use binaural simultaneous transmission, regardless of the main and auxiliary earphones, the left earphone and the right earphone can transmit in both directions at the same time, which can not only effectively avoid the loss of radio waves, but also reduce the delay and improve the connection stability. Better user experience. Figure 2 shows an example of the working principle of a TWS headset that supports LE Audio technology. The straight line in Figure 2 represents the wireless connection between devices. Both the left and right earphones can establish a wireless connection with the mobile phone.
LE Audio技术基于蓝牙5.2标准,可以为人们带来更低功耗、更低成本、更高质量,以及更低延迟的无线音频服务。同时LE Audio技术也提供了协调集识别协议(CoordinatedSet Identification Profile,CSIP),可以让属于同一个组合的设备在与外部设备交互时,达成协调同步的目的。该协议中主要说明了外部设备如何将一个组合中的多个独立的设备识别为同一个组合。针对属于同一个组合中的多个设备,如果要同时与外部设备一起使用,则组合中的每一个设备都需要与外部设备建立独立的LE Audio连接,同时可以根据获取到的每个设备的组合标识解析值(Set Identity Resolving Key,SIRK)进行判断,将具有相同SIRK的设备组成一个组合。其中,LE Audio连接可以理解为基于LE Audio技术的蓝牙连接。LE Audio technology is based on the Bluetooth 5.2 standard, which can bring people wireless audio services with lower power consumption, lower cost, higher quality, and lower latency. At the same time, LE Audio technology also provides Coordinated Set Identification Profile (CSIP), which allows devices belonging to the same combination to achieve the purpose of coordination and synchronization when interacting with external devices. This protocol mainly describes how the external device recognizes multiple independent devices in a combination as the same combination. For multiple devices belonging to the same combination, if they are to be used with external devices at the same time, each device in the combination needs to establish an independent LE Audio connection with the external device. The identification resolution value (Set Identity Resolving Key, SIRK) is used for judgment, and the devices with the same SIRK are formed into a combination. Among them, the LE Audio connection can be understood as a Bluetooth connection based on LE Audio technology.
为了方便理解,本实施例以支持LE Audio技术的TWS耳机和声道类型为例进行描述,但这并不构成对耳机组合的类型以及音频播放参数的类型的限定。For ease of understanding, this embodiment takes TWS earphones and channel types that support the LE Audio technology as an example for description, but this does not constitute a limitation on the types of earphone combinations and the types of audio playback parameters.
目前针对支持LE Audio技术的TWS耳机,两只耳机通常会作为一个CSIP组合进行使用,且左右两只耳机也会分别配置为仅支持左声道(即Audio_Channel_Allocation的值为Front Left)和仅支持右声道(即Audio_Channel_Allocation的值为Front Right)。如图3所示是TWS耳机与手机的交互示例图,在用户打开耳机盒时,左耳机和右耳机建立连接,两只耳机进行LE Audio广播,在手机扫描到左耳机时,手机先与左耳机建立LE Audio连接,获取左耳机的SIRK和支持的声道类型,此时左耳机可以与手机交互。手机在接收到右耳机的LE Audio广播时解析右耳机的SIRK,并判断右耳机的SIRK与当前连接的耳机的SIRK是否相同,如果相同则自动与右耳机进行LE Audio连接且获取右耳机支持的声道类型,然后在手机播放音乐时可以向左耳机传输左声道数据,向右耳机传输右声道数据,这样可以节省左右耳机的蓝牙带宽和解码复杂度,同时也可以保证音频数据的完整性。但是当仅使用一只耳机播放音频(例如将TWS耳机中的右耳机放入耳机盒,仅使用左耳机收听音乐)时,由于左耳机的声道类型固定,那么手机仅向左耳机传输音频数据中的左声道数据,由于缺少右声道数据,导致音频的播放效果不佳。Currently, for TWS earphones that support LE Audio technology, two earphones are usually used as a CSIP combination, and the left and right earphones are also configured to support only the left channel (that is, the value of Audio_Channel_Allocation is Front Left) and only support the right channel. Channel (that is, the value of Audio_Channel_Allocation is Front Right). Figure 3 shows an example of the interaction between the TWS headset and the mobile phone. When the user opens the headset box, the left headset and the right headset are connected, and the two headsets broadcast LE Audio. When the mobile phone scans the left headset, the mobile phone first communicates with the left headset. The headset establishes a LE Audio connection to obtain the SIRK of the left headset and the supported channel type. At this time, the left headset can interact with the mobile phone. When the mobile phone receives the LE Audio broadcast of the right earphone, it parses the SIRK of the right earphone, and judges whether the SIRK of the right earphone is the same as the SIRK of the currently connected earphone. Channel type, then when the mobile phone plays music, the left channel data can be transmitted to the left earphone, and the right channel data can be transmitted to the right earphone, which can save the Bluetooth bandwidth and decoding complexity of the left and right earphones, and can also ensure the integrity of the audio data. sex. However, when only one earphone is used to play audio (for example, the right earphone in the TWS earphone is put into the earphone box, and only the left earphone is used to listen to music), since the channel type of the left earphone is fixed, the mobile phone only transmits audio data to the left earphone. The left channel data in , due to the lack of right channel data, the audio playback effect is not good.
为了改善音频的播放效果,为用户带来更好的听感,本申请实施例基于耳机组合中耳机间的连接状态变化,可以动态更新在上述连接状态变化的过程中与音频源设备保持无线连接的耳机的音频播放参数,从而实现音频播放参数的自适应更新,例如,在左耳机与右耳机之间由连接状态变为断开状态时,此时手机仅连接左耳机,通过将左耳机的声道类型由左声道更新为双声道,可以使得手机向左耳机传输双声道数据,从而为用户带来更好的听感,提高用户体验感。In order to improve the audio playback effect and bring a better sense of hearing to the user, the embodiment of the present application can dynamically update the wireless connection with the audio source device during the change of the connection state based on the change of the connection state between the earphones in the earphone combination. The audio playback parameters of the headset can be adjusted, so as to realize the adaptive update of the audio playback parameters. For example, when the left headset and the right headset change from the connected state to the disconnected state, only the left headset is connected to the mobile phone at this time. The channel type is updated from the left channel to the dual channel, which enables the mobile phone to transmit the dual channel data to the left earphone, thereby bringing a better sense of hearing to the user and improving the user experience.
应理解,本实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in this embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present application, the following specific embodiments are used for description.
参见图4,是本申请一实施例提供的音频播放参数更新方法的实现流程示意图,该音频播放参数更新方法应用于耳机组合。如图4所示,该音频播放参数更新方法可以包括以下步骤:Referring to FIG. 4 , it is a schematic diagram of an implementation flowchart of a method for updating audio playback parameters provided by an embodiment of the present application, and the method for updating audio playback parameters is applied to a headset combination. As shown in Figure 4, the audio playback parameter update method may include the following steps:
步骤401,基于耳机组合中耳机间的连接状态变化,更新目标耳机的音频播放参数。
其中,耳机组合中耳机间的连接状态变化是指耳机组合中的耳机之间的连接状态变化。目标耳机为在连接状态变化的过程中与音频源设备保持无线连接的耳机,目标耳机来源于上述耳机组合。例如,耳机组合包括左耳机和右耳机,在左耳机和右耳机的连接状态变化的过程中,如果左耳机一直与音频源设备保持无线连接,那么可以确定左耳机为目标耳机。The change in the connection state between the earphones in the earphone combination refers to the change in the connection state between the earphones in the earphone combination. The target earphone is an earphone that maintains a wireless connection with the audio source device in the process of changing the connection state, and the target earphone is derived from the above-mentioned earphone combination. For example, the headphone combination includes a left headphone and a right headphone. During the process of changing the connection status of the left headphone and the right headphone, if the left headphone is always wirelessly connected to the audio source device, the left headphone can be determined as the target headphone.
耳机组合中的耳机通过与音频源设备建立无线连接,可以实现耳机与音频源设备之间的数据传输。其中,音频源设备可以是指手机、平板电脑等能够提供音频的设备。上述无线连接包括但限于蓝牙连接,例如LE Audio连接。The earphones in the earphone combination can realize data transmission between the earphones and the audio source device by establishing a wireless connection with the audio source device. The audio source device may refer to a device capable of providing audio, such as a mobile phone and a tablet computer. The aforementioned wireless connections include, but are limited to, Bluetooth connections, such as LE Audio connections.
音频播放参数与音频源设备的音频播放控制相关。音频播放参数可以是指与音频源设备的音频播放控制相关的参数,例如声道类型、音频响度、音频频率、音频增益等。The audio playback parameters are related to the audio playback control of the audio source device. The audio playback parameters may refer to parameters related to audio playback control of the audio source device, such as channel type, audio loudness, audio frequency, audio gain, and the like.
属于同一组合的耳机可以同步播放同一音频。例如TWS耳机中的左耳机和右耳机属于同一组合,那么左耳机和右耳机可以同步播放同一音频。Headphones belonging to the same group can play the same audio in sync. For example, the left earphone and the right earphone in the TWS earphone belong to the same combination, so the left earphone and the right earphone can play the same audio synchronously.
属于同一组合的耳机的音频播放参数通常不同,在此基础上,可以实现更好的音频播放效果。例如,音频播放参数为声道类型,TWS耳机中左耳机的声道类型可以设置为左声道,TWS耳机中右耳机的声道类型可以设置为右声道,通过为左耳机和右耳机设置不同的声道类型,在左耳机和右耳机播放音频时可以实现立体声效果。当然,属于同一组合的耳机的音频播放参数也可以相同,在此不做限定。The audio playback parameters of headphones belonging to the same combination are usually different, and on this basis, a better audio playback effect can be achieved. For example, if the audio playback parameter is the channel type, the channel type of the left earphone in the TWS earphone can be set to the left channel, and the channel type of the right earphone in the TWS earphone can be set to the right channel. By setting the channel type for the left earphone and the right earphone Different channel types to achieve stereo effect when playing audio from left and right earphones. Of course, the audio playback parameters of the headphones belonging to the same combination may also be the same, which is not limited here.
耳机组合中耳机间的连接状态变化包括但不限于由连接状态变为断开状态,或者由断开状态变为连接状态等。在耳机组合中耳机间处于连接状态时,耳机组合中的耳机之间可以进行数据传输,耳机组合中的耳机均可以播放音频。在耳机组合中耳机间处于断开状态时,耳机组合中的耳机之间无法进行数据传输,耳机组合中的目标耳机可以播放音频,但耳机组合中的候选耳机无法播放音频。上述候选耳机是指耳机组合中除目标耳机之外的耳机。The change of the connection state between the earphones in the earphone combination includes, but is not limited to, from the connected state to the disconnected state, or from the disconnected state to the connected state, and the like. When the earphones in the earphone combination are in a connected state, data transmission can be performed between the earphones in the earphone combination, and all the earphones in the earphone combination can play audio. When the earphones in the earphone combination are disconnected, data transmission cannot be performed between the earphones in the earphone combination, and the target earphone in the earphone combination can play audio, but the candidate earphones in the earphone combination cannot play audio. The above candidate earphones refer to earphones other than the target earphones in the earphone combination.
在耳机组合中耳机间的连接状态发生变化时,候选耳机的使用情况发生变化(例如,候选耳机由可以播放音频变为无法播放音频),可能导致音频的播放效果也发生变化,在此情况下,基于耳机间的连接状态变化,可以动态更新目标耳机的音频播放参数,实现音频播放参数的自适应更新,使得连接状态发生变化后的音频播放效果与变化前的音频播放效果达到一致,从而改善连接状态发生变化后的音频播放效果。When the connection status between the earphones in the earphone combination changes, the usage of the candidate earphones changes (for example, the candidate earphones change from being able to play audio to not being able to play audio), which may cause the audio playback effect to also change. In this case , based on the change of the connection state between the headphones, the audio playback parameters of the target headphones can be dynamically updated, and the adaptive update of the audio playback parameters can be realized, so that the audio playback effect after the connection state changes is consistent with the audio playback effect before the change, thereby improving the The audio playback effect after the connection state changes.
在一可选实施例中,上述步骤401包括:In an optional embodiment, the
若目标耳机与候选耳机之间的连接状态变化为由连接状态变为断开状态,则将目标耳机的音频播放参数更新为目标音频播放参数。If the connection state between the target earphone and the candidate earphone changes from the connected state to the disconnected state, the audio playback parameters of the target earphones are updated to the target audio playback parameters.
其中,上述目标音频播放参数是指能够将耳机间处于断开状态时的音频播放效果与耳机间处于连接状态时的音频播放效果达到一致的音频播放参数。在目标耳机与候选耳机之间的连接状态变化为由连接状态变为断开状态时,候选耳机由可以播放音频变为无法播放音频,在此基础上,将目标耳机的音频播放参数更新为目标音频播放参数,能够使得参数更新后的目标耳机对音频的播放效果达到耳机组合中耳机同时播放音频的效果。The above target audio playback parameters refer to audio playback parameters that can achieve the same audio playback effect when the headphones are in a disconnected state and audio playback effects when the headphones are in a connected state. When the connection state between the target headset and the candidate headset changes from the connected state to the disconnected state, the candidate headset changes from being able to play audio to not being able to play audio. On this basis, update the audio playback parameters of the target headset to the target The audio playback parameter can make the audio playback effect of the target earphone after the parameter update reach the effect of simultaneously playing audio by the earphones in the earphone combination.
可以理解的是,目标耳机与候选耳机的之间的连接状态变化为由连接状态变为断开状态,包括候选耳机与目标耳机距离间隔过远,导致二者之间的信息传输无法实现,连接断开;或者是候选耳机在耳机盒内,目标耳机已出耳机盒,候选耳机与目标耳机连接断开;也可以是候选耳机未被佩戴,仅有目标耳机被用户佩戴,候选耳机与目标耳机连接断开等。It is understandable that the connection state between the target headset and the candidate headset changes from the connected state to the disconnected state, including that the distance between the candidate headset and the target headset is too far, resulting in the inability to transmit information between the two. Disconnected; or the candidate earphone is in the earphone box, the target earphone has been out of the earphone box, and the connection between the candidate earphone and the target earphone is disconnected; or the candidate earphone is not worn, only the target earphone is worn by the user, and the candidate earphone is connected to the target earphone. disconnection, etc.
在音频播放参数为声道类型的情况下,上述可选实施例包括:In the case where the audio playback parameter is a channel type, the above-mentioned optional embodiments include:
若目标耳机与候选耳机之间的连接状态变化为由连接状态变为断开状态,则将目标耳机支持的声道类型由对应的单声道更新为双声道。If the connection state between the target earphone and the candidate earphone changes from the connected state to the disconnected state, the channel type supported by the target earphone is updated from the corresponding monophonic to the dual-channel.
其中,对目标耳机支持的声道类型进行更新后,目标耳机支持的声道类型为双声道,该双声道包括目标耳机更新之前支持的单声道和候选耳机支持的单声道。例如,目标耳机支持左声道,候选耳机支持右声道,在目标耳机与候选耳机的连接状态变化为由连接状态变为断开状态时,可以将目标耳机支持的声道类型由左声道更新为包括左声道和右声道的双声道,从而使得目标耳机能够播放双声道数据(即左声道数据和右声道数据),实现立体声效果。Wherein, after the channel type supported by the target earphone is updated, the channel type supported by the target earphone is dual channel, and the dual channel includes the mono channel supported before the target earphone is updated and the mono channel supported by the candidate earphone. For example, the target earphone supports the left channel, and the candidate earphone supports the right channel. When the connection state between the target earphone and the candidate earphone changes from the connected state to the disconnected state, the channel type supported by the target earphone can be changed from the left channel. It is updated to include the left channel and the right channel, so that the target earphone can play the two-channel data (ie, the left channel data and the right channel data) to realize the stereo effect.
在一可选实施例中,上述步骤401包括:In an optional embodiment, the
若目标耳机与候选耳机之间的连接状态变化为由断开状态变为连接状态,则将目标耳机的音频播放参数更新为目标耳机的默认音频播放参数。If the connection state between the target earphone and the candidate earphone changes from the disconnected state to the connected state, the audio playback parameters of the target earphone are updated to the default audio playback parameters of the target earphone.
可以理解的是,目标耳机与候选耳机之间的连接状态变化为由断开状态变为连接状态,包括候选耳机与目标耳机距离间隔较近,两者之间可以实现信息传输,候选耳机与目标耳机建立连接;或者是候选耳机和目标耳机均已出耳机盒,候选耳机与目标耳机建立连接;也可以是候选耳机和目标耳机均被用户佩戴,候选耳机与目标耳机建立连接。It can be understood that the connection state between the target headset and the candidate headset changes from disconnected to connected, including that the distance between the candidate headset and the target headset is close, and information transmission can be achieved between the two, and the candidate headset and the target The earphone is connected; or both the candidate earphone and the target earphone are out of the earphone box, and the candidate earphone is connected with the target earphone; or both the candidate earphone and the target earphone are worn by the user, and the candidate earphone and the target earphone are connected.
在目标耳机与候选耳机之间的连接状态为由断开状态变为连接状态时,候选耳机由无法播放音频变为可以播放音频,在此基础上,通过将目标耳机的音频播放参数更新为默认音频播放参数,能够使得耳机组合中的耳机同步播放同一音频。其中,默认音频播放参数可以是指目标耳机在更新前的初始值。例如,在目标耳机和候选耳机分别为同一TWS耳机中的左耳机和右耳机时,左耳机的默认声道类型可以为左声道,右耳机的默认声道类型可以为右声道。When the connection state between the target earphone and the candidate earphone changes from the disconnected state to the connected state, the candidate earphone changes from unable to play audio to playable audio. On this basis, the audio playback parameters of the target earphone are updated to the default. The audio playback parameter enables the headphones in the headphone combination to play the same audio synchronously. Wherein, the default audio playback parameter may refer to the initial value of the target earphone before updating. For example, when the target earphone and the candidate earphone are respectively the left earphone and the right earphone in the same TWS earphone, the default channel type of the left earphone may be the left channel, and the default channel type of the right earphone may be the right channel.
在音频播放参数为声道类型的情况下,上述可选实施例包括:In the case where the audio playback parameter is a channel type, the above-mentioned optional embodiments include:
若目标耳机与候选耳机之间的连接状态变化为由断开状态变为连接状态,则将目标耳机支持的声道类型由双声道更新为对应的单声道。If the connection state between the target earphone and the candidate earphone changes from the disconnected state to the connected state, the channel type supported by the target earphone is updated from dual channel to corresponding monophonic channel.
在目标耳机与候选耳机之间的连接状态变化为由断开状态变为连接状态时,目标耳机与候选耳机均可以播放音频,通过将目标耳机支持的声道类型由双声道更新为对应的单声道,可以使得目标耳机与候选耳机均播放各自对应的单声道数据,从而通过目标耳机和候选耳机共同实现立体声效果。例如,默认目标耳机支持左声道,候选耳机支持右声道,在目标耳机与候选耳机的连接状态变化为由断开状态变为连接状态时,通过将目标耳机支持的声道类型由双声道更新为默认的左声道,可以使得目标耳机能够播放左声道数据,候选耳机播放右声道数据,从而通过目标耳机和候选耳机共同实现立体声效果。When the connection state between the target headset and the candidate headset changes from disconnected to connected, both the target headset and the candidate headset can play audio, by updating the channel type supported by the target headset from binaural to corresponding Mono, so that both the target earphone and the candidate earphone can play their corresponding mono data, so that the stereo effect can be achieved through the target earphone and the candidate earphone. For example, the default target earphone supports the left channel, and the candidate earphone supports the right channel. When the connection state between the target earphone and the candidate earphone changes from disconnected to connected, change the channel type supported by the target earphone from dual-channel The channel is updated to the default left channel, so that the target earphone can play the left channel data, and the candidate earphone can play the right channel data, so as to realize the stereo effect through the target earphone and the candidate earphone.
在本实施例中,还可以以音频响度、音频频率、音频增益等为例,说明在耳机间的连接状态变化为由断开状态变为连接状态时,音频播放参数的更新过程。例如,在音频播放参数为音频响度时,在目标耳机与候选耳机的连接状态变化为由断开状态变为连接状态时,可以将目标耳机的音频响度由60分贝更新为50分贝,此时候选耳机的音频响度也为50分贝,使得同时使用目标耳机和候选耳机的音频播放效果与单独使用目标耳机的音频播放效果一致。在音频播放参数为音频频率时,在目标耳机与候选耳机的连接状态变化为由断开状态变为连接状态时,可以将目标耳机的音频频率由30~500Hz更新为150~500Hz,且候选耳机的音频频率为30~150Hz,使得同时使用目标耳机和候选耳机的音频播放效果与单独使用目标耳机的音频播放效果一致。在音频播放参数为音频增益时,在目标耳机与候选耳机的连接状态变化为由断开状态变为连接状态时,可以将目标耳机的音频增益由5db更新为3db,候选耳机的音频增益为2db,使得同时使用目标耳机和候选耳机的音频播放效果与单独使用目标耳机的音频播放效果一致。In this embodiment, audio loudness, audio frequency, audio gain, etc. may also be used as examples to describe the updating process of audio playback parameters when the connection state between headphones changes from disconnected state to connected state. For example, when the audio playback parameter is audio loudness, when the connection state between the target earphone and the candidate earphone changes from the disconnected state to the connected state, the audio loudness of the target earphone can be updated from 60 decibels to 50 decibels. The audio loudness of the earphone is also 50 dB, so that the audio playback effect of using the target earphone and the candidate earphone at the same time is consistent with the audio playback effect of using the target earphone alone. When the audio playback parameter is the audio frequency, when the connection state between the target headset and the candidate headset changes from disconnected to connected, the audio frequency of the target headset can be updated from 30 to 500 Hz to 150 to 500 Hz, and the candidate headset The audio frequency is 30-150 Hz, so that the audio playback effect of using the target earphone and the candidate earphone at the same time is consistent with the audio playback effect of using the target earphone alone. When the audio playback parameter is the audio gain, when the connection state between the target headset and the candidate headset changes from disconnected to connected, the audio gain of the target headset can be updated from 5db to 3db, and the audio gain of the candidate headset is 2db , so that the audio playback effect of using the target headset and the candidate headset at the same time is consistent with the audio playback effect of using the target headset alone.
在一可选实施例中,在目标耳机与候选耳机之间处于断开状态的条件下,向目标耳机发送第一广播信息,第一广播信息指示目标耳机反馈连接请求;响应于目标耳机的连接请求,建立目标耳机与候选耳机之间的无线连接,并确定目标耳机与候选耳机之间的连接状态由断开状态变为连接状态。In an optional embodiment, under the condition that the target earphone and the candidate earphone are in a disconnected state, first broadcast information is sent to the target earphone, and the first broadcast information indicates that the target earphone feeds back a connection request; in response to the connection of the target earphone request, establish a wireless connection between the target earphone and the candidate earphone, and determine that the connection state between the target earphone and the candidate earphone changes from a disconnected state to a connected state.
在目标耳机与候选耳机之间处于断开状态时,目标耳机与候选耳机之间未建立无线连接,候选耳机通过向目标耳机发送第一广播信息,可以基于接收到的连接请求建立与目标耳机之间的无线连接,实现目标耳机与候选耳机之间的数据传输。其中,第一广播信息是指候选耳机向目标耳机发送的广播信息。目标耳机的连接请求指示候选耳机建立与目标耳机之间的无线连接。When the target headset and the candidate headset are in a disconnected state, a wireless connection is not established between the target headset and the candidate headset, and the candidate headset can establish a connection with the target headset based on the received connection request by sending the first broadcast information to the target headset. The wireless connection between the target earphones and the candidate earphones realizes data transmission. The first broadcast information refers to broadcast information sent by the candidate earphone to the target earphone. The connection request of the target headset instructs the candidate headset to establish a wireless connection with the target headset.
对于一些耳机组合(例如基于LE Audio技术的TWS耳机),其包含的每只耳机均可以与音频源设备建立无线连接(即本申请中的目标耳机与候选耳机均可与音频源设备建立无线连接),从而可实现每只耳机与音频源设备之间的数据传输。在音频源设备与候选耳机之间建立无线连接的情况下,候选耳机可以通过如下两种可选实施例实现对音频源设备的音频播放控制。For some earphone combinations (such as TWS earphones based on LE Audio technology), each earphone included can establish a wireless connection with the audio source device (that is, both the target earphone and the candidate earphone in this application can establish a wireless connection with the audio source device. ), enabling data transfer between each earphone and the audio source device. In the case of establishing a wireless connection between the audio source device and the candidate earphone, the candidate earphone can implement audio playback control on the audio source device through the following two optional embodiments.
一可选实施例为:向音频源设备发送候选耳机的音频播放参数,接收音频源设备发送的调整后的音频数据,调整后的音频数据是根据候选耳机的音频播放参数对音频数据进行调整后形成的音频数据。An optional embodiment is: sending the audio playback parameters of the candidate earphones to the audio source device, receiving the adjusted audio data sent by the audio source device, and the adjusted audio data is adjusted according to the audio playback parameters of the candidate earphones. formed audio data.
可选的,与候选耳机建立连接的音频源设备发出一个参数查询指令,用于查询候选耳机的音频播放参数;或者是,候选耳机与音频源设备建立连接后,主动向音频源设备发出音频播放参数的信息。Optionally, the audio source device that establishes the connection with the candidate earphone sends a parameter query command to query the audio playback parameters of the candidate earphone; or, after the candidate earphone establishes the connection with the audio source device, it actively sends the audio playback to the audio source device. parameter information.
可以理解的是,候选耳机向音频源设备发送自身的音频播放参数,音频源设备接收到候选耳机的音频播放参数之后,可以基于候选耳机的音频播放参数调整音频数据,并向候选耳机发送调整后的音频数据,从而实现对音频源设备的音频播放控制。It can be understood that the candidate headset sends its own audio playback parameters to the audio source device. After receiving the audio playback parameters of the candidate headset, the audio source device can adjust the audio data based on the audio playback parameters of the candidate headset, and send the adjusted audio data to the candidate headset. the audio data, so as to realize the audio playback control of the audio source device.
以声道类型为例,如果候选耳机的声道类型为单声道,则音频源设备可以向候选耳机发送的音频数据调整为该单声道对应的单声道数据;或者如果候选耳机的声道类型为双声道,则音频源设备向候选耳机发送的音频数据调整为该双声道对应的双声道数据。Taking the channel type as an example, if the channel type of the candidate earphone is monaural, the audio source device can adjust the audio data sent to the candidate earphone to the monaural data corresponding to the monaural; If the channel type is binaural, the audio data sent by the audio source device to the candidate earphone is adjusted to the binaural data corresponding to the binaural.
另一可选实施例为:基于候选耳机的音频播放参数,对来自音频源设备的音频数据进行调整。Another optional embodiment is: adjusting the audio data from the audio source device based on the audio playback parameters of the candidate earphones.
音频源设备可以向候选耳机发送音频数据,候选耳机在接收到来自音频源设备的音频数据之后,可以基于自身的音频播放参数,对接收到的音频数据进行调整,从而实现对音频源设备的音频播放控制。The audio source device can send audio data to the candidate earphone. After the candidate earphone receives the audio data from the audio source device, it can adjust the received audio data based on its own audio playback parameters, so as to realize the audio data of the audio source device. Playback controls.
以声道类型为例,如果候选耳机的声道类型为单声道,则候选耳机可以将音频源设备发送的音频数据调整为该单声道对应的单声道数据;或者如果候选耳机的声道类型为双声道,则候选耳机可以将音频源设备发送的音频数据调整为该双声道对应的双声道数据。Taking the channel type as an example, if the channel type of the candidate earphone is monaural, the candidate earphone can adjust the audio data sent by the audio source device to the monaural data corresponding to the monaural channel; If the channel type is binaural, the candidate earphone can adjust the audio data sent by the audio source device to the binaural data corresponding to the binaural.
在一可选实施例中,候选耳机可以通过如下方式与音频源设备建立无线连接:In an optional embodiment, the candidate earphone may establish a wireless connection with the audio source device in the following manner:
向音频源设备发送第二广播信息,第二广播信息指示音频源设备反馈连接请求;sending second broadcast information to the audio source device, where the second broadcast information instructs the audio source device to feed back a connection request;
响应于音频源设备的连接请求,建立音频源设备与候选耳机之间的无线连接。In response to the connection request from the audio source device, a wireless connection between the audio source device and the candidate headset is established.
候选耳机通过向音频源设备发送第二广播信息,可以基于接收到的连接请求建立与音频源设备之间的无线连接,实现音频源设备与候选耳机之间的数据传输。其中,第二广播信息是指候选耳机向音频源设备发送的广播信息。音频源设备的连接请求指示候选耳机建立与音频源设备之间的无线连接。By sending the second broadcast information to the audio source device, the candidate earphone can establish a wireless connection with the audio source device based on the received connection request, so as to realize data transmission between the audio source device and the candidate earphone. The second broadcast information refers to broadcast information sent by the candidate earphone to the audio source device. The connection request of the audio source device instructs the candidate headset to establish a wireless connection with the audio source device.
可选的,音频源设备接收到第二广播信息之后,还可以解析候选耳机与目标耳机是否属于同一CSIP组合,如果候选耳机与目标耳机属于同一CSIP组合,则向候选耳机反馈连接请求,从而使得候选耳机与目标耳机在与音频源设备交互时,达成协调同步的目的。Optionally, after receiving the second broadcast information, the audio source device can also analyze whether the candidate earphone and the target earphone belong to the same CSIP combination, and if the candidate earphone and the target earphone belong to the same CSIP combination, the connection request is fed back to the candidate earphone, so that the The candidate earphone and the target earphone achieve the purpose of coordination and synchronization when interacting with the audio source device.
上述第二广播信息可以包括候选耳机的SIRK。音频源设备可以基于候选耳机的SIRK和目标耳机的SIRK,解析候选耳机与目标耳机是否属于同一个CSIP组合。可以理解的是,如果候选耳机的SIRK与目标耳机的SIRK相同,则可以确定候选耳机与目标耳机属于同一CSIP组合;如果候选耳机的SIRK与目标耳机的SIRK不相同,则可以确定候选耳机与目标耳机不属于同一CSIP组合。The above-mentioned second broadcast information may include the SIRK of the candidate earphone. The audio source device can analyze whether the candidate earphone and the target earphone belong to the same CSIP combination based on the SIRK of the candidate earphone and the SIRK of the target earphone. It can be understood that if the SIRK of the candidate earphone is the same as that of the target earphone, it can be determined that the candidate earphone and the target earphone belong to the same CSIP combination; if the SIRK of the candidate earphone and the SIRK of the target earphone are different, it can be determined that the candidate earphone and the target earphone belong to the same CSIP combination. The headsets do not belong to the same CSIP group.
在更新目标耳机的音频播放参数之后,目标耳机可以通过如下两种可选实施例实现对音频源设备的播放音频进行调整。After updating the audio playback parameters of the target headset, the target headset can adjust the playback audio of the audio source device through the following two optional embodiments.
一可选实施例为:基于更新后的音频播放参数,对来自音频源设备的音频数据进行调整。An optional embodiment is: adjusting the audio data from the audio source device based on the updated audio playback parameters.
音频源设备可以向目标耳机发送音频数据,目标耳机在接收到来自音频源设备的音频数据之后,可以基于更新后的音频播放参数,对接收到的音频数据进行调整,从而实现对音频源设备的音频播放控制。The audio source device can send audio data to the target earphone. After receiving the audio data from the audio source device, the target earphone can adjust the received audio data based on the updated audio playback parameters, so as to realize the audio data of the audio source device. Audio playback controls.
例如,TWS耳机中的目标耳机可以与手机进行数据传输,手机向目标耳机发送音频数据,目标耳机通过基于更新后的音频播放参数对接收到的音频数据进行调整,可以基于目标耳机与候选耳机之间的连接状态的变化自适应调整音频数据,提高用户体验感。For example, the target headset in the TWS headset can transmit data with the mobile phone, the mobile phone sends audio data to the target headset, the target headset adjusts the received audio data based on the updated audio playback parameters, and can be based on the target headset and candidate headsets. The change of the connection state between them can adaptively adjust the audio data to improve the user experience.
在音频播放参数为声道类型的情况下,针对TWS耳机中的目标耳机,如果更新后的声道类型为双声道,则通过获取对应的双声道数据,并播放该双声道数据,可以避免声道数据丢失,从而可基于目标耳机实现立体声效果;如果更新后的声道类型为单声道,则通过获取对应的单声道数据,目标耳机和候选耳机可以同时播放与自身声道类型对应的单声道数据,实现立体声效果。In the case where the audio playback parameter is the channel type, for the target earphone in the TWS headset, if the updated channel type is two-channel, then by acquiring the corresponding two-channel data and playing the two-channel data, The loss of channel data can be avoided, so that the stereo effect can be realized based on the target earphone; if the updated channel type is mono, by obtaining the corresponding mono data, the target earphone and the candidate earphone can play the same channel as their own channel at the same time. Mono data corresponding to the type to achieve stereo effect.
例如,如果目标耳机更新后的声道类型为左声道,则目标耳机从接收到的音频数据中获取左声道数据,候选耳机从目标耳机转发的音频数据中获取右声道数据,目标耳机在播放左声道数据的同时,候选耳机播放右声道数据,从而实现立体声效果。For example, if the updated channel type of the target earphone is the left channel, the target earphone obtains the left channel data from the received audio data, the candidate earphone obtains the right channel data from the audio data forwarded by the target earphone, and the target earphone obtains the right channel data from the audio data forwarded by the target earphone. While playing the data of the left channel, the candidate earphone plays the data of the right channel, so as to realize the stereo effect.
另一可选实施例为:向音频源设备发送更新后的音频播放参数,更新后的音频播放参数用于调整音频源设备向目标耳机发送的音频数据。Another optional embodiment is: sending the updated audio playback parameters to the audio source device, where the updated audio playback parameters are used to adjust the audio data sent by the audio source device to the target earphone.
目标耳机向音频源设备发送更新后的音频播放参数,音频源设备接收到更新后的音频播放参数之后,可以基于更新后的音频播放参数调整音频数据,并向目标耳机发送调整后的音频数据,从而实现对音频源设备的音频播放控制。The target headset sends the updated audio playback parameters to the audio source device. After receiving the updated audio playback parameters, the audio source device can adjust the audio data based on the updated audio playback parameters, and send the adjusted audio data to the target headset. Thereby, the audio playback control of the audio source device is realized.
例如,基于LE Audio技术的TWS耳机,该TWS耳机中的两只耳机均可与手机进行数据传输,故在此情况下,手机可以先基于更新后的音频播放参数,调整向两只耳机发送的音频数据,使得两只耳机协同工作,共同实现立体声效果。For example, for a TWS earphone based on LE Audio technology, both earphones in the TWS earphone can transmit data with the mobile phone. Therefore, in this case, the mobile phone can first adjust the data sent to the two earphones based on the updated audio playback parameters. The audio data makes the two headphones work together to achieve a stereo effect.
在音频播放参数为声道类型的情况下,若更新后的声道类型为双声道,则向音频源设备发送第一声道信息,第一声道信息用于将音频源设备向目标耳机发送的音频数据调整为双声道对应的双声道数据;In the case where the audio playback parameter is the channel type, if the updated channel type is two-channel, the first channel information is sent to the audio source device, and the first channel information is used to send the audio source device to the target earphone. The sent audio data is adjusted to the two-channel data corresponding to the two-channel;
或者,若更新后的声道类型为单声道,则向音频源设备发送第二声道信息,第二声道信息用于将音频源设备向目标耳机发送的音频数据调整为单声道对应的单声道数据。Or, if the updated channel type is mono, the second channel information is sent to the audio source device, and the second channel information is used to adjust the audio data sent by the audio source device to the target earphone to correspond to mono. mono data.
可以理解的是,第一声道信息可以包括双声道的标识,双声道的标识包括目标耳机和候选耳机分别支持的单声道的标识。第二声道信息可以包括更新后的单声道的标识。例如,目标耳机和候选耳机分别支持的单声道标识为Front Left(左声道的标识)和FrontRight(右声道的标识),那么第一声道信息可以包括Front Left和Front Right;如果耳机更新后的声道类型为左声道,那么第二声道信息可以包括Front Left。It can be understood that the first channel information may include a dual channel identifier, and the dual channel identifier includes a mono channel identifier supported by the target earphone and the candidate earphone respectively. The second channel information may include the updated monophonic identification. For example, the monaural identifiers supported by the target earphone and the candidate earphone are Front Left (the identifier of the left channel) and FrontRight (the identifier of the right channel), then the first channel information may include Front Left and Front Right; if the earphone The updated channel type is left channel, then the second channel information may include Front Left.
如果更新后的声道类型为双声道,则通过向音频源设备发送第一声道信息,可以使得音频源设备反馈对应的双声道数据,目标耳机通过播放接收到的双声道数据,可以避免声道数据丢失,从而实现立体声效果;如果更新后的声道类型为单声道,则通过向音频源设备发送第二声道信息,可以使得音频源设备向目标耳机反馈对应的单声道数据,目标耳机和候选耳机可以同时播放与自身声道类型对应的单声道数据,实现立体声效果。If the updated channel type is two-channel, by sending the first channel information to the audio source device, the audio source device can feed back the corresponding two-channel data, and the target earphone plays the received two-channel data, The channel data loss can be avoided, so as to realize the stereo effect; if the updated channel type is mono, then by sending the second channel information to the audio source device, the audio source device can feedback the corresponding mono to the target earphone. The target earphone and the candidate earphone can play the mono data corresponding to their own channel type at the same time to realize the stereo effect.
例如,以支持LE Audio技术的TWS耳机中的目标耳机和候选耳机为例,如果目标耳机更新后的声道类型为左声道,则目标耳机通过向音频源设备发送第一声道信息,可以使得音频源设备反馈双声道数据,目标耳机播放该双声道数据,可以避免右声道数据丢失,从而实现立体声效果;如果目标耳机更新后的声道类型为左声道,则向音频源设备发送第二声道信息,使得音频源设备向目标耳机反馈左声道数据,向候选耳机反馈右声道数据,目标耳机在播放左声道数据的同时,候选耳机播放右声道数据,从而可实现立体声效果。For example, taking the target earphone and candidate earphone in a TWS earphone supporting LE Audio technology as an example, if the updated channel type of the target earphone is the left channel, the target earphone can send the first channel information to the audio source device to Make the audio source device feed back the two-channel data, and the target earphone will play the two-channel data, which can avoid the loss of the right channel data, so as to realize the stereo effect; if the updated channel type of the target earphone is the left channel, the audio source The device sends the second channel information, so that the audio source device feeds back the left channel data to the target earphone and the right channel data to the candidate earphone. While the target earphone is playing the left channel data, the candidate earphone plays the right channel data, thereby Stereo effect can be achieved.
在一可选实施例中,向音频源设备发送更新后的音频播放参数,包括:In an optional embodiment, the updated audio playback parameters are sent to the audio source device, including:
若目标耳机与音频源设备之间未传输音频数据,则确定目标耳机处于无业务状态的条件,向音频源设备发送更新后的音频播放参数。If no audio data is transmitted between the target earphone and the audio source device, it is determined that the target earphone is in a non-service state, and the updated audio playback parameters are sent to the audio source device.
在目标耳机处于无业务状态时,向音频源设备发送更新后的音频播放参数,可以降低参数传输对目标耳机的业务的影响,在用户无感的情况下完成参数传输。When the target headset is in a non-service state, the updated audio playback parameters are sent to the audio source device, which can reduce the impact of parameter transmission on the service of the target headset, and complete the parameter transmission without the user feeling it.
在一可选实施例中,可以通过检测目标耳机与音频源设备之间是否传输音频数据,判断目标耳机是否处于无业务状态;若目标耳机与音频源数据之间未传输音频数据,则确定目标耳机处于无业务状态,若目标耳机与音频源数据之间有传输音频数据,则确定目标耳机处于有业务状态。In an optional embodiment, it can be determined whether the target earphone is in a non-service state by detecting whether audio data is transmitted between the target earphone and the audio source device; if no audio data is transmitted between the target earphone and the audio source data, the target earphone is determined. The headset is in a non-service state, and if audio data is transmitted between the target headset and the audio source data, it is determined that the target headset is in a service state.
可以理解的是,当音频源设备暂停音乐时,停止向目标耳机传输音频数据,即目标耳机与音频源设备之间未传输音频数据,目标耳机也暂停音乐,此种情况下,目标耳机处于无业务状态,在此状态下,目标耳机向音频源设备发送更新后的音频播放参数。当音频源设备播放音乐时,向目标耳机传输音频数据,即目标耳机与音频源设备之间传输音频数据,目标耳机也播放音乐,此种情况下,目标耳机处于有业务状态。It can be understood that when the audio source device pauses the music, it stops transmitting audio data to the target earphone, that is, no audio data is transmitted between the target earphone and the audio source device, and the target earphone also pauses the music. Service state, in this state, the target headset sends the updated audio playback parameters to the audio source device. When the audio source device plays music, the audio data is transmitted to the target earphone, that is, the audio data is transmitted between the target earphone and the audio source device, and the target earphone also plays music. In this case, the target earphone is in a business state.
在另一可选实施例中,向音频源设备发送更新后的音频播放参数,包括:In another optional embodiment, sending the updated audio playback parameters to the audio source device includes:
响应于音频源设备的参数查询指令,向音频源设备发送更新后的音频播放参数。In response to the parameter query instruction of the audio source device, the updated audio playback parameters are sent to the audio source device.
其中,参数查询指令指示目标耳机向音频源设备发送更新后的音频播放参数。参数查询指令是音频源设备在与候选耳机的连接状态发生变化的条件下发送。The parameter query instruction instructs the target headset to send the updated audio playback parameters to the audio source device. The parameter query command is sent by the audio source device under the condition that the connection state with the candidate earphone changes.
可选的,在目标耳机与候选耳机的连接状态发生变化时,音频源设备与候选耳机的连接状态也会发生变化,故在音频源设备与候选耳机的连接状态发生变化时,目标耳机基于与候选耳机的连接状态变化更新自身的音频播放参数,在此情况下,音频源设备可以主动向目标耳机发送参数查询指令,以获取目标耳机的更新后的音频播放参数。Optionally, when the connection status between the target headset and the candidate headset changes, the connection status between the audio source device and the candidate headset also changes. Therefore, when the connection status between the audio source device and the candidate headset changes, the target headset is based on the The connection state of the candidate headset changes to update its own audio playback parameters. In this case, the audio source device can actively send a parameter query command to the target headset to obtain the updated audio playback parameters of the target headset.
可选的,在目标耳机与候选耳机的连接状态发生变化的情形下,如目标耳机与候选耳机建立连接,且音频源设备与候选耳机也建立连接,候选耳机可反馈目标耳机其已经与音频源设备建立连接,基于此目标耳机可主动向音频源设备发送自身的音频播放参数,从而使得音频源设备可以调整其音频输出方案,输出更符合目标耳机音频播放参数的音频。Optionally, in the case where the connection status between the target headset and the candidate headset changes, such as the target headset establishes a connection with the candidate headset, and the audio source device also establishes a connection with the candidate headset, the candidate headset can feedback that the target headset has been connected to the audio source. The device establishes a connection. Based on this, the target headset can actively send its own audio playback parameters to the audio source device, so that the audio source device can adjust its audio output scheme and output audio that is more in line with the audio playback parameters of the target headset.
在本申请实施例中,基于耳机组合中耳机间的连接状态变化,可以动态更新在上述连接状态变化的过程中与音频源设备保持无线连接的耳机的音频播放参数,从而实现音频播放参数的自适应更新,提高用户体验感。In the embodiment of the present application, based on the change of the connection state between the earphones in the earphone combination, the audio playback parameters of the earphones that are wirelessly connected to the audio source device during the process of the above-mentioned connection state change can be dynamically updated, thereby realizing the automatic adjustment of the audio playback parameters. Adapt to updates and improve user experience.
图5,是本申请一实施例提供的音频数据调整方法的实现流程示意图,该音频数据调整方法应用于音频源设备。如图5所示,该音频数据调整方法可以包括以下步骤:FIG. 5 is a schematic flowchart of an implementation of an audio data adjustment method provided by an embodiment of the present application, where the audio data adjustment method is applied to an audio source device. As shown in Figure 5, the audio data adjustment method may include the following steps:
步骤501,接收来自目标耳机的更新后的音频播放参数,更新后的音频播放参数基于耳机组合中耳机间的连接状态变化得到。Step 501: Receive updated audio playback parameters from the target earphone, where the updated audio playback parameters are obtained based on changes in the connection state between the earphones in the earphone combination.
其中,目标耳机为在连接状态变化的过程中与音频源设备保持无线连接的耳机。The target earphone is an earphone that maintains a wireless connection with the audio source device in the process of changing the connection state.
基于耳机组合中耳机间的连接状态变化得到更新后的音频播放参数的方案具体可参见上述方法实施例,在此不再赘述。For the solution of obtaining the updated audio playback parameters based on the change of the connection state between the earphones in the earphone combination, reference may be made to the above method embodiments, which will not be repeated here.
目标耳机在得到更新后的音频播放参数之后,可以主动向音频源设备发送更新后的音频播放参数,也可以在接收到来自音频源设备的参数查询指令时,向音频源设备发送更新后的音频播放参数,在此不做限定。其中,参数查询指令指示目标耳机向音频源设备发送更新后的音频播放参数。After the target headset obtains the updated audio playback parameters, it can actively send the updated audio playback parameters to the audio source device, or it can send the updated audio to the audio source device when it receives a parameter query command from the audio source device. The playback parameters are not limited here. The parameter query instruction instructs the target headset to send the updated audio playback parameters to the audio source device.
在一可选实施例中,若与候选耳机的连接状态发生变化,则向目标耳机发送参数查询指令。In an optional embodiment, if the connection state with the candidate earphone changes, a parameter query instruction is sent to the target earphone.
在目标耳机与候选耳机的连接状态发生变化时,音频源设备与候选耳机的连接状态也会发生变化,故在音频源设备与候选耳机的连接状态发生变化时,目标耳机已基于与候选耳机的连接状态变化更新自身的音频播放参数,在此情况下,音频源设备可以主动向目标耳机发送参数查询指令,以获取目标耳机的更新后的音频播放参数。When the connection status between the target headset and the candidate headset changes, the connection status between the audio source device and the candidate headset also changes. Therefore, when the connection status between the audio source device and the candidate headset changes, the target headset has already changed based on the connection status with the candidate headset. The connection state changes to update its own audio playback parameters. In this case, the audio source device can actively send a parameter query command to the target headset to obtain the updated audio playback parameters of the target headset.
在一可选实施例中,若与候选耳机的连接状态发生变化,则向目标耳机发送参数查询指令,包括:In an optional embodiment, if the connection state with the candidate earphone changes, a parameter query instruction is sent to the target earphone, including:
若与候选耳机的连接状态发生变化,则在处于无业务状态时,向目标耳机发送参数查询指令。If the connection state with the candidate earphone changes, the parameter query instruction is sent to the target earphone when it is in the no-service state.
音频源设备在无业务状态下才能基于更新后的音频播放参数播放音频,故可以在音频源设备处于无业务状态时向目标耳机发送参数查询指令,从而获得更新后的音频播放参数,便于在下次播放音频时,能够基于更新后的音频播放参数进行播放。The audio source device can only play audio based on the updated audio playback parameters when the audio source device is in a non-service state. Therefore, when the audio source device is in a non-service state, a parameter query command can be sent to the target headset, so as to obtain the updated audio playback parameters, which is convenient for the next time. When playing audio, it can be played based on the updated audio playing parameters.
在一可选实施例中,可以通过检测音频源设备与耳机组合中的耳机之间是否传输音频数据,判断音频源设备与耳机组合中的耳机之间是否处于无业务状态,若音频源设备与耳机组合中的耳机之间未传输音频数据,则确定音频源设备处于无业务状态,若音频源设备与耳机组合中的耳机之间传输音频数据,则确定音频源设备处于有业务状态。In an optional embodiment, by detecting whether audio data is transmitted between the audio source device and the earphone in the earphone combination, it can be determined whether the audio source device and the earphone in the earphone combination are in a no-service state, if the audio source device and the earphone in the earphone combination are in a no-service state If no audio data is transmitted between the earphones in the earphone combination, it is determined that the audio source device is in a non-service state. If audio data is transmitted between the audio source device and the earphones in the earphone combination, it is determined that the audio source device is in a service state.
在一可选实施例中,音频源设备在接收到来自候选耳机的第二广播信息时,可以向候选耳机反馈连接请求,该连接请求指示候选耳机建立与音频源设备之间的无线连接。In an optional embodiment, when receiving the second broadcast information from the candidate headset, the audio source device may feed back a connection request to the candidate headset, where the connection request instructs the candidate headset to establish a wireless connection with the audio source device.
其中,第二广播信息可以包括候选耳机的SIRK。Wherein, the second broadcast information may include the SIRK of the candidate earphone.
音频源设备在与目标耳机建立无线连接的情况下,如果接收到来自候选耳机的第二广播信息,可以比较目标耳机的SIRK与候选耳机的SIRK,如果目标耳机的SIRK与候选耳机的SIRK相同,则确定目标耳机与候选耳机属于同一CSIP组合,音频源设备可以向候选耳机发送连接请求,以与候选耳机建立无线连接,从而实现单耳到双耳的切换,即由使用一只耳机的情况切换成同时使用两只耳机的情况;如果目标耳机的SIRK与候选耳机的SIRK不相同,则确定目标耳机与候选耳机不属于同一CSIP组合,音频源设备不与候选耳机建立无线连接,仍保持单耳使用。When the audio source device establishes a wireless connection with the target earphone, if it receives the second broadcast information from the candidate earphone, it can compare the SIRK of the target earphone and the SIRK of the candidate earphone. If the SIRK of the target earphone is the same as the SIRK of the candidate earphone, Then it is determined that the target earphone and the candidate earphone belong to the same CSIP combination, and the audio source device can send a connection request to the candidate earphone to establish a wireless connection with the candidate earphone, so as to realize the switch from one ear to both ears, that is, to switch from one earphone to the other. If the SIRK of the target earphone is different from that of the candidate earphone, it is determined that the target earphone and the candidate earphone do not belong to the same CSIP combination, and the audio source device does not establish a wireless connection with the candidate earphone and still maintains a single earphone. use.
在一可选实施例中,在建立与候选耳机的无线连接之后,还包括:In an optional embodiment, after establishing the wireless connection with the candidate headset, the method further includes:
获取候选耳机的音频播放参数;Get the audio playback parameters of the candidate headset;
基于候选耳机的音频播放参数,对音频数据进行调整,向候选耳机发送调整后的音频数据。Based on the audio playback parameters of the candidate earphones, the audio data is adjusted, and the adjusted audio data is sent to the candidate earphones.
其中,调整后的音频数据是与候选耳机的音频播放参数对应的音频数据。例如,候选耳机的音频播放参数为右声道,那么调整后的音频数据为右声道数据,音频源设备向候选耳机发送右声道数据。The adjusted audio data is audio data corresponding to the audio playback parameters of the candidate earphones. For example, if the audio playback parameter of the candidate earphone is the right channel, the adjusted audio data is the right channel data, and the audio source device sends the right channel data to the candidate earphone.
步骤502,基于更新后的音频播放参数,调整向目标耳机发送的音频数据。Step 502: Adjust the audio data sent to the target earphone based on the updated audio playback parameters.
通过步骤502可以实现音频源设备的音频播放控制。Through
在一可选实施例中,在音频播放参数为声道类型的情况下,上述步骤502包括:In an optional embodiment, when the audio playback parameter is a channel type, the
若更新后的音频播放参数为单声道,则向目标耳机发送对应的单声道数据;If the updated audio playback parameter is mono, send the corresponding mono data to the target earphone;
或者,若更新后的音频播放参数为双声道,则向目标耳机发送对应的双声道数据。Or, if the updated audio playback parameter is two-channel, the corresponding two-channel data is sent to the target earphone.
若更新后的音频播放参数为单声道,说明已由单耳切换为双耳,此种情况下,音频源设备向目标耳机和候选耳机发送各自对应的单声道数据,从而可基于目标耳机和候选耳机共同播放音频,并实现立体声效果。若更新后的音频播放参数为双声道,说明已由双耳切换为单耳,此种情况下,音频源设备向目标耳机发送双声道数据,从而可使用一只耳机实现立体声效果。If the updated audio playback parameter is monaural, it means that it has been switched from monaural to binaural. In this case, the audio source device sends the corresponding monaural data to the target earphone and the candidate earphone. Play audio with candidate headphones and achieve stereo effect. If the updated audio playback parameter is two-channel, it means that it has been switched from binaural to mono-aural. In this case, the audio source device sends two-channel data to the target earphone, so that one earphone can be used to achieve stereo effect.
在本申请实施例中,通过接收来自目标耳机的更新后的音频播放参数,可以基于更新后的音频播放参数,调整向目标耳机发送的音频数据,从而实现音频数据的自适应调整,提高用户体验感。In the embodiment of the present application, by receiving the updated audio playback parameters from the target earphone, the audio data sent to the target earphone can be adjusted based on the updated audio playback parameters, thereby realizing the adaptive adjustment of the audio data and improving the user experience. sense.
目标耳机需要更新音频播放参数的情况主要分为两种场景,以支持LE Audio技术的TWS耳机中的左耳机为目标耳机以及右耳机为候选耳机为例进行说明。The situation where the target headset needs to update the audio playback parameters is mainly divided into two scenarios. The left headset in the TWS headset supporting the LE Audio technology is used as the target headset and the right headset is used as the candidate headset as an example for description.
如图6所示,第一种场景是当TWS耳机由两只耳机同时使用的情况切换成仅使用一只耳机的场景:As shown in Figure 6, the first scenario is when the TWS headset is switched from two headsets to use only one headset:
打开耳机盒,左耳机和右耳机建立无线连接,左耳机和右耳机分别进行LE Audio广播,用户可以开启手机上的扫描功能,如果手机接收到来自左耳机的广播1,则确定手机扫描到左耳机,用户可以在手机上点击连接,以使得手机与左耳机建立LE Audio连接,并获取左耳机的SIRK和支持的声道类型Front Left,手机在接收到来自右耳机的广播2时,可以基于左耳机的SIRK和右耳机的SIRK解析右耳机与左耳机是否属于同一CSIP组合,如果右耳机与左耳机属于同一CSIP组合,则手机对右耳机发起LE Audio连接,以与右耳机建立LEAudio连接,在成功建立连接后,获取右耳机支持的声道类型Front Right。如果用户将右耳机放入耳机盒并关盖,此种情况下左耳机与右耳机之间的连接状态变化为由连接状态变为断开状态,左耳机更新自身支持的声道类型,由仅支持Front Left更新为同时支持FrontLeft和Front Right,并在无业务状态下向手机发送更新后的声道类型Front Left和FrontRight,手机在接收到左耳机更新的声道类型Front Left和Front Right之后,如果播放音乐,则向左耳机发送双声道数据,左耳机基于双声道数据播放音乐,可以实现立体声效果。Open the earphone box, the left earphone and the right earphone establish a wireless connection, the left earphone and the right earphone broadcast LE Audio respectively, the user can turn on the scanning function on the mobile phone, if the mobile phone receives the broadcast 1 from the left earphone, it is determined that the mobile phone scans to the left earphone Headphone, the user can click connect on the mobile phone to establish a LE Audio connection between the mobile phone and the left earphone, and obtain the SIRK of the left earphone and the supported channel type Front Left. When the mobile phone receives the broadcast 2 from the right earphone, it can be based on The SIRK of the left earphone and the SIRK of the right earphone analyze whether the right earphone and the left earphone belong to the same CSIP combination. If the right earphone and the left earphone belong to the same CSIP combination, the mobile phone initiates a LE Audio connection to the right earphone to establish a LEAudio connection with the right earphone. After the connection is successfully established, get the channel type Front Right supported by the right earphone. If the user puts the right earphone into the earphone box and closes the cover, in this case, the connection state between the left earphone and the right earphone changes from the connected state to the disconnected state, and the left earphone updates the channel type supported by itself, from only Support Front Left update to support FrontLeft and Front Right at the same time, and send the updated channel types Front Left and FrontRight to the mobile phone when there is no service state, after the mobile phone receives the updated channel types Front Left and Front Right of the left earphone, If music is played, two-channel data is sent to the left earphone, and the left earphone plays music based on the two-channel data, which can achieve a stereo effect.
如图7所示,第二种场景是当TWS耳机由使用一只耳机的情况切换成同时使用两只耳机的情况:As shown in Figure 7, the second scenario is when the TWS headset is switched from using one headset to using two headsets at the same time:
在左耳机与右耳机之间的连接断开(例如将左耳机从耳机盒中取出使用,而右耳机未取出且耳机盒关盖)的情况下,左耳机进行LE Audio广播,用户可以开启手机上的扫描功能,如果手机接收到来自左耳机的广播1,则确定手机扫描到左耳机,用户可以在手机上点击连接,以使得手机与左耳机建立LE Audio连接,并获取左耳机的SIRK和支持的声道类型,左耳机在处于无业务状态时向手机返回支持的声道类型Front Left和Front Right,手机在播放音乐时,向左耳机发送双声道数据,并基于双声道数据播放音乐,在此情况下,如果用户从耳机盒中取出右耳机并使用,则左耳机与右耳机之间的连接状态变化为由断开状态变为连接状态,右耳机进行LE Audio广播,手机在接收到来自右耳机的广播2时,可以基于左耳机的SIRK和右耳机的SIRK解析右耳机与左耳机是否属于同一CSIP组合,如果右耳机与左耳机属于同一CSIP组合,则手机对右耳机发起LE Audio连接,以与右耳机建立LEAudio连接,在成功建立连接后,获取右耳机支持的声道类型Front Right,向右耳机发送右声道数据,右耳机基于右声道数据播放音乐;手机在暂停音乐(例如用户点击手机上的音乐暂停键)时,手机停止向左耳机和右耳机发送音频数据,左耳机和右耳机均暂停音乐;此种情况下,由于左耳机与右耳机之间已建立无线连接,则左耳机可以更新自身支持的声道类型,由Front Left和Front Right更新为Front Left,并在处于无业务状态时,向手机发送更新后的声道类型Front Left,手机在继续播放音乐时,向左耳机发送左声道数据,向右耳机发送右声道数据,左耳机和右耳机基于自身接收到的声道数据播放音乐,可以实现立体声效果。When the connection between the left earphone and the right earphone is disconnected (for example, the left earphone is taken out of the earphone box for use, but the right earphone is not taken out and the earphone box is closed), the left earphone broadcasts LE Audio, and the user can turn on the mobile phone If the mobile phone receives the broadcast 1 from the left earphone, it is determined that the mobile phone scans the left earphone, and the user can click connect on the mobile phone to make the mobile phone establish the LE Audio connection with the left earphone, and obtain the SIRK and Supported channel types. The left earphone returns the supported channel types Front Left and Front Right to the mobile phone when it is in a non-service state. When the mobile phone is playing music, it sends two-channel data to the left earphone, and plays based on the two-channel data. Music, in this case, if the user takes out the right earphone from the earphone box and uses it, the connection state between the left earphone and the right earphone changes from disconnected to connected, the right earphone broadcasts LE Audio, and the mobile phone is in When the broadcast 2 from the right earphone is received, it can be analyzed whether the right earphone and the left earphone belong to the same CSIP combination based on the SIRK of the left earphone and the SIRK of the right earphone. If the right earphone and the left earphone belong to the same CSIP combination, the mobile phone initiates the right earphone LE Audio connection to establish a LEAudio connection with the right earphone. After the connection is successfully established, the channel type Front Right supported by the right earphone is obtained, the right channel data is sent to the right earphone, and the right earphone plays music based on the right channel data; When the music is paused (for example, the user clicks the music pause button on the mobile phone), the mobile phone stops sending audio data to the left earphone and the right earphone, and both the left earphone and the right earphone pause the music; If a wireless connection is established, the left earphone can update the channel type it supports, from Front Left and Front Right to Front Left, and when there is no service, it sends the updated channel type Front Left to the phone, and the phone continues When playing music, the left channel data is sent to the left earphone, and the right channel data is sent to the right earphone. The left earphone and the right earphone play music based on the channel data received by themselves, which can achieve a stereo effect.
参见图8,是本申请一实施例提供的音频播放参数更新装置的结构示意图,该音频播放参数更新装置应用于耳机组合。为了便于说明,仅示出了与本申请实施例相关的部分。Referring to FIG. 8 , it is a schematic structural diagram of an apparatus for updating audio playback parameters provided by an embodiment of the present application. The apparatus for updating audio playback parameters is applied to a headset combination. For the convenience of description, only the parts related to the embodiments of the present application are shown.
上述音频播放参数更新装置包括:The above-mentioned audio playback parameter updating device includes:
参数更新模块81,用于基于耳机组合中耳机间的连接状态变化,更新目标耳机的音频播放参数,目标耳机为在连接状态变化的过程中与音频源设备保持无线连接的耳机,音频播放参数与音频源设备的音频播放控制相关。The
可选地,耳机组合还包括候选耳机,候选耳机为耳机组合中除目标耳机之外的耳机,上述参数更新模块81包括:Optionally, the earphone combination also includes candidate earphones, and the candidate earphones are earphones other than the target earphones in the earphone combination, and the above-mentioned
第一更新单元,用于若目标耳机与候选耳机之间的连接状态变化为由连接状态变为断开状态,则将目标耳机的音频播放参数更新为目标音频播放参数。The first updating unit is configured to update the audio playback parameter of the target headset to the target audio playback parameter if the connection state between the target headset and the candidate headset changes from the connected state to the disconnected state.
可选地,在音频播放参数为声道类型的情况下,上述第一更新单元具体用于:Optionally, when the audio playback parameter is a channel type, the above-mentioned first update unit is specifically used for:
若目标耳机与候选耳机之间的连接状态变化为由连接状态变为断开状态,则将目标耳机支持的声道类型由对应的单声道更新为双声道。If the connection state between the target earphone and the candidate earphone changes from the connected state to the disconnected state, the channel type supported by the target earphone is updated from the corresponding monophonic to the dual-channel.
可选地,耳机组合还包括候选耳机,候选耳机为耳机组合中除目标耳机之外的耳机,上述参数更新模块81包括:Optionally, the earphone combination also includes candidate earphones, and the candidate earphones are earphones other than the target earphones in the earphone combination, and the above-mentioned
第二更新单元,用于若目标耳机与候选耳机之间的连接状态变化为由断开状态变为连接状态,则将目标耳机的音频播放参数更新为目标耳机的默认音频播放参数。The second updating unit is configured to update the audio playback parameters of the target headset to default audio playback parameters of the target headset if the connection state between the target headset and the candidate headset changes from disconnected to connected.
可选地,在音频播放参数为声道类型的情况下,上述第二更新单元具体用于:Optionally, when the audio playback parameter is a channel type, the above-mentioned second update unit is specifically used for:
若目标耳机与候选耳机之间的连接状态变化为由断开状态变为连接状态,则将目标耳机支持的声道类型由双声道更新为对应的单声道。If the connection state between the target earphone and the candidate earphone changes from the disconnected state to the connected state, the channel type supported by the target earphone is updated from dual channel to corresponding monophonic channel.
可选地,上述音频播放参数更新装置还包括:Optionally, the above-mentioned device for updating audio playback parameters also includes:
第一发送模块,用于在目标耳机与候选耳机之间处于断开状态的条件下,向目标耳机发送第一广播信息,第一广播信息指示目标耳机反馈连接请求;a first sending module, configured to send first broadcast information to the target earphone under the condition that the target earphone and the candidate earphone are in a disconnected state, the first broadcast information indicating the target earphone to feed back a connection request;
第一连接模块,用于响应于目标耳机的连接请求,建立目标耳机与候选耳机之间的无线连接,并确定目标耳机与候选耳机之间的连接状态由断开状态变为连接状态。The first connection module is used for establishing a wireless connection between the target earphone and the candidate earphone in response to the connection request of the target earphone, and determining that the connection state between the target earphone and the candidate earphone changes from a disconnected state to a connected state.
可选地,在音频源设备与候选耳机之间建立无线连接的条件下,上述音频播放参数更新装置还包括:Optionally, under the condition that a wireless connection is established between the audio source device and the candidate earphones, the above-mentioned audio playback parameter updating apparatus further includes:
音频发送模块,用于向音频源设备发送候选耳机的音频播放参数,接收音频源设备发送的调整后的音频数据,调整后的音频数据是根据候选耳机的音频播放参数对音频数据进行调整后形成的音频数据;The audio sending module is used to send the audio playback parameters of the candidate earphones to the audio source device, and receive the adjusted audio data sent by the audio source device. The adjusted audio data is formed by adjusting the audio data according to the audio playback parameters of the candidate earphones. the audio data;
或者,音频调整模块,用于基于候选耳机的音频播放参数,对来自音频源设备的音频数据进行调整。Or, an audio adjustment module, configured to adjust the audio data from the audio source device based on the audio playback parameters of the candidate earphones.
可选地,上述音频播放参数更新装置还包括:Optionally, the above-mentioned device for updating audio playback parameters also includes:
第二发送模块,用于向音频源设备发送第二广播信息,第二广播信息指示音频源设备反馈连接请求;a second sending module, configured to send second broadcast information to the audio source device, where the second broadcast information instructs the audio source device to feed back a connection request;
第二连接模块,用于响应于音频源设备的连接请求,建立音频源设备与候选耳机之间的无线连接。The second connection module is configured to establish a wireless connection between the audio source device and the candidate earphone in response to the connection request of the audio source device.
可选地,上述音频播放参数更新装置还包括:Optionally, the above-mentioned device for updating audio playback parameters also includes:
音频调整模块,用于基于更新后的音频播放参数,对来自音频源设备的音频数据进行调整。The audio adjustment module is used to adjust the audio data from the audio source device based on the updated audio playback parameters.
可选地,上述音频播放参数更新装置还包括:Optionally, the above-mentioned device for updating audio playback parameters also includes:
参数发送模块,用于向音频源设备发送更新后的音频播放参数,更新后的音频播放参数用于调整音频源设备向目标耳机发送的音频数据。The parameter sending module is used for sending the updated audio playback parameters to the audio source device, and the updated audio playback parameters are used to adjust the audio data sent by the audio source device to the target earphone.
可选地,上述参数发送模块具体用于:Optionally, the above parameter sending module is specifically used for:
若目标耳机与音频源设备之间未传输音频数据,则确定目标耳机处于无业务状态的条件,向音频源设备发送更新后的音频播放参数。If no audio data is transmitted between the target earphone and the audio source device, it is determined that the target earphone is in a non-service state, and the updated audio playback parameters are sent to the audio source device.
可选地,上述参数发送模块具体用于:Optionally, the above parameter sending module is specifically used for:
响应于音频源设备的参数查询指令,向音频源设备发送更新后的音频播放参数。In response to the parameter query instruction of the audio source device, the updated audio playback parameters are sent to the audio source device.
可选地,上述耳机组合为支持LE Audio技术的TWS耳机。Optionally, the above earphone combination is a TWS earphone supporting LE Audio technology.
本申请实施例提供的音频播放参数更新装置可以应用在前述方法实施例中,详情参见上述方法实施例的描述,在此不再赘述。The apparatus for updating audio playback parameters provided by the embodiments of the present application may be applied to the foregoing method embodiments. For details, refer to the descriptions of the foregoing method embodiments, which will not be repeated here.
参见图9,是本申请一实施例提供的音频数据调整装置的结构示意图,该音频数据调整装置应用于音频源设备。为了便于说明,仅示出了与本申请实施例相关的部分。Referring to FIG. 9 , it is a schematic structural diagram of an apparatus for adjusting audio data provided by an embodiment of the present application. The apparatus for adjusting audio data is applied to an audio source device. For the convenience of description, only the parts related to the embodiments of the present application are shown.
上述音频数据调整装置包括:The above-mentioned audio data adjustment device includes:
参数接收模块91,用于接收来自目标耳机的更新后的音频播放参数,更新后的音频播放参数基于耳机组合中耳机间的连接状态变化得到,目标耳机为在连接状态变化的过程中与音频源设备保持无线连接的耳机;The
数据调整模块92,用于基于更新后的音频播放参数,调整向目标耳机发送的音频数据。The
可选地,在音频播放参数为声道类型的情况下,上述数据调整模块92具体用于:Optionally, when the audio playback parameter is a channel type, the above-mentioned
若更新后的音频播放参数为单声道,则向目标耳机发送对应的单声道数据;If the updated audio playback parameter is mono, send the corresponding mono data to the target earphone;
或者,若更新后的音频播放参数为双声道,则向目标耳机发送对应的双声道数据。Or, if the updated audio playback parameter is two-channel, the corresponding two-channel data is sent to the target earphone.
本申请实施例提供的音频数据调整装置可以应用在前述方法实施例中,详情参见上述方法实施例的描述,在此不再赘述。The audio data adjustment apparatus provided in this embodiment of the present application may be applied to the foregoing method embodiments. For details, refer to the descriptions of the foregoing method embodiments, which will not be repeated here.
图10是本申请一实施例提供的耳机的结构示意图。如图10所示,该实施例的耳机10包括:一个或多个处理器1000(图中仅示出一个)、存储器1001以及存储在所述存储器1001中并可在所述至少一个处理器1000上运行的计算机程序1002。所述处理器1000执行所述计算机程序1002时实现上述各个音频播放参数更新方法实施例中的步骤。FIG. 10 is a schematic structural diagram of an earphone provided by an embodiment of the present application. As shown in FIG. 10 , the
所述耳机可包括,但不仅限于,处理器1000、存储器1001。本领域技术人员可以理解,图10仅仅是耳机10的示例,并不构成对耳机10的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述耳机还可以包括输入输出设备、网络接入设备、总线等。The headset may include, but is not limited to, a
所称处理器1000可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called
所述存储器1001可以是所述耳机10的内部存储单元,例如耳机10的硬盘或内存。所述存储器1001也可以是所述耳机10的外部存储设备,例如所述耳机10上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器1001还可以既包括所述耳机10的内部存储单元也包括外部存储设备。所述存储器1001用于存储所述计算机程序以及所述耳机所需的其他程序和数据。所述存储器1001还可以用于暂时地存储已经输出或者将要输出的数据。The
图11是本申请一实施例提供的音频源设备的结构示意图。如图11所示,该实施例的音频源设备11包括:一个或多个处理器1100(图中仅示出一个)、存储器1101以及存储在所述存储器1101中并可在所述至少一个处理器1100上运行的计算机程序1102。所述处理器1100执行所述计算机程序1102时实现上述各个音频数据调整方法实施例中的步骤。FIG. 11 is a schematic structural diagram of an audio source device provided by an embodiment of the present application. As shown in FIG. 11 , the audio source device 11 of this embodiment includes: one or more processors 1100 (only one is shown in the figure), a
所述音频源设备可包括,但不仅限于,处理器1100、存储器1101。本领域技术人员可以理解,图11仅仅是音频源设备11的示例,并不构成对音频源设备11的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述音频源设备还可以包括输入输出设备、网络接入设备、总线等。The audio source device may include, but is not limited to, a
所称处理器1100可以是CPU,该处理器还可以是其他通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called
所述存储器1101可以是所述音频源设备11的内部存储单元,例如音频源设备11的硬盘或内存。所述存储器1101也可以是所述音频源设备11的外部存储设备,例如所述音频源设备11上配备的插接式硬盘,SMC,SD卡,闪存卡等。进一步地,所述存储器1101还可以既包括所述音频源设备11的内部存储单元也包括外部存储设备。所述存储器1101用于存储所述计算机程序以及所述音频源设备所需的其他程序和数据。所述存储器1101还可以用于暂时地存储已经输出或者将要输出的数据。The
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述装置中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above apparatus, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
本申请实施例还提供了一种计算机程序产品,当计算机程序产品在耳机组合上运行时,使得耳机组合执行时实现可实现上述音频播放参数更新方法实施例中的步骤;或者当所述计算机程序产品在音频源设备上运行时,使得音频源设备执行如上述音频数据调整方法实施例中的步骤。The embodiments of the present application also provide a computer program product, when the computer program product is run on the headset combination, so that the steps in the above-mentioned audio playback parameter update method embodiments can be realized when the headset combination is executed; or when the computer program product is executed When the product runs on the audio source device, the audio source device is made to execute the steps in the above-mentioned audio data adjustment method embodiments.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/耳机组合/音频源设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/耳机组合/音频源设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/earphone combination/audio source device and method may be implemented in other manners. For example, the above-described embodiments of the device/headphone combination/audio source device are only illustrative. For example, the division of the modules or 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 may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-Only Memory (ROM) , Random Access Memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210641549.3A CN115022777A (en) | 2022-06-08 | 2022-06-08 | Audio playing parameter updating method, audio data adjusting method, device and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210641549.3A CN115022777A (en) | 2022-06-08 | 2022-06-08 | Audio playing parameter updating method, audio data adjusting method, device and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115022777A true CN115022777A (en) | 2022-09-06 |
Family
ID=83073667
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210641549.3A Pending CN115022777A (en) | 2022-06-08 | 2022-06-08 | Audio playing parameter updating method, audio data adjusting method, device and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115022777A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116017312A (en) * | 2022-12-02 | 2023-04-25 | 联想(北京)有限公司 | A data processing method and electronic device |
| CN116321084A (en) * | 2022-12-08 | 2023-06-23 | Oppo广东移动通信有限公司 | Bluetooth communication method, device, electronic device and computer readable medium |
| CN118158598A (en) * | 2022-12-07 | 2024-06-07 | 荣耀终端有限公司 | Audio playing method, audio playing device and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004120313A (en) * | 2002-09-26 | 2004-04-15 | Mitsumi Electric Co Ltd | Wireless head set system |
| CN109379490A (en) * | 2018-09-30 | 2019-02-22 | Oppo广东移动通信有限公司 | Audio playing method and device, electronic equipment and computer readable medium |
| CN109788384A (en) * | 2018-12-08 | 2019-05-21 | 深圳中科君浩科技股份有限公司 | A kind of bluetooth headset |
| CN110446192A (en) * | 2019-06-26 | 2019-11-12 | 惠州迪芬尼声学科技股份有限公司 | The method of subordinate earphone and audiogenic device pairing line |
| US10944154B1 (en) * | 2020-09-24 | 2021-03-09 | Bestechnic (Shanghai) Co., Ltd. | Wireless audio system and method for wirelessly communicating audio information using the same |
-
2022
- 2022-06-08 CN CN202210641549.3A patent/CN115022777A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004120313A (en) * | 2002-09-26 | 2004-04-15 | Mitsumi Electric Co Ltd | Wireless head set system |
| CN109379490A (en) * | 2018-09-30 | 2019-02-22 | Oppo广东移动通信有限公司 | Audio playing method and device, electronic equipment and computer readable medium |
| CN109788384A (en) * | 2018-12-08 | 2019-05-21 | 深圳中科君浩科技股份有限公司 | A kind of bluetooth headset |
| CN110446192A (en) * | 2019-06-26 | 2019-11-12 | 惠州迪芬尼声学科技股份有限公司 | The method of subordinate earphone and audiogenic device pairing line |
| US10944154B1 (en) * | 2020-09-24 | 2021-03-09 | Bestechnic (Shanghai) Co., Ltd. | Wireless audio system and method for wirelessly communicating audio information using the same |
Non-Patent Citations (1)
| Title |
|---|
| 游子鑫: "基于蓝牙5.0的真无线立体音箱设计", 《科技与创新》, 25 May 2020 (2020-05-25) * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116017312A (en) * | 2022-12-02 | 2023-04-25 | 联想(北京)有限公司 | A data processing method and electronic device |
| CN118158598A (en) * | 2022-12-07 | 2024-06-07 | 荣耀终端有限公司 | Audio playing method, audio playing device and storage medium |
| CN116321084A (en) * | 2022-12-08 | 2023-06-23 | Oppo广东移动通信有限公司 | Bluetooth communication method, device, electronic device and computer readable medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109445740B (en) | Audio playback method, device, electronic device and storage medium | |
| EP3869817B1 (en) | Point to multi-point data transmission method and device | |
| US10524300B2 (en) | Wireless low-latency audio content sharing | |
| CN111343622B (en) | Synchronous playing method, device and system of Bluetooth sound boxes | |
| CN115022777A (en) | Audio playing parameter updating method, audio data adjusting method, device and medium | |
| CN113727231B (en) | A kind of headphone volume adjustment method and device thereof | |
| CN111447600B (en) | Audio sharing method of wireless earphone, terminal equipment and storage medium | |
| WO2019205157A1 (en) | Wireless earphones communication method, master earphone, slave earphone, and earphones system | |
| CN108337595A (en) | Bluetooth headset realizes the method being precisely played simultaneously | |
| CN112055349B (en) | Wireless communication method and Bluetooth device | |
| CN110830970B (en) | Audio transmission method, device, equipment and storage medium between Bluetooth equipment | |
| US20130223631A1 (en) | Engaging Terminal Devices | |
| CN104521247A (en) | Bluetooth earphone hearing aid and anti-noise method and device | |
| CN109379490B (en) | Audio playing method and device, electronic equipment and computer readable medium | |
| CN113784001B (en) | Audio data playback method, device, electronic equipment and storage medium | |
| EP4260568A1 (en) | Multimedia playback synchronization | |
| CN110830973A (en) | Method for transmitting audio information by using wireless earphone | |
| CN114785886B (en) | Call method and electronic device using multiple audio devices | |
| CN114501401A (en) | Audio transmission method and device, electronic equipment and readable storage medium | |
| CN114615589B (en) | Volume control method of wireless earphone and wireless earphone | |
| CN116600275A (en) | Voice transmission method, terminal equipment and computer storage medium | |
| CN113472379B (en) | Intercommunication method, earphone box, earphone and storage medium | |
| CN116017312A (en) | A data processing method and electronic device | |
| CN116866472A (en) | Volume control method and electronic device | |
| CN218772434U (en) | Signal repeater applied to hearing aid system and hearing aid system |
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 |