CN116074796A - Audio play control method and device, earphone device and storage medium - Google Patents

Audio play control method and device, earphone device and storage medium Download PDF

Info

Publication number
CN116074796A
CN116074796A CN202111296514.2A CN202111296514A CN116074796A CN 116074796 A CN116074796 A CN 116074796A CN 202111296514 A CN202111296514 A CN 202111296514A CN 116074796 A CN116074796 A CN 116074796A
Authority
CN
China
Prior art keywords
earphone
audio data
terminal device
data transmitted
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111296514.2A
Other languages
Chinese (zh)
Inventor
包建全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111296514.2A priority Critical patent/CN116074796A/en
Publication of CN116074796A publication Critical patent/CN116074796A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The method is applied to earphone equipment, the earphone equipment comprises a first earphone and a second earphone, and Bluetooth connection is established between the earphone equipment and at least a first terminal equipment and a second terminal equipment, and the method comprises the following steps: under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal equipment, the first earphone and/or the second earphone receive a service processing request sent by the second terminal equipment; based on the service processing request, the first earphone plays the first audio data transmitted by the first terminal device and the second earphone plays the second audio data transmitted by the second terminal device. By implementing the embodiment of the application, the flexibility of the terminal equipment in playing the audio by using the earphone equipment can be improved.

Description

Audio play control method and device, earphone device and storage medium
Technical Field
The present disclosure relates to the field of bluetooth communications technologies, and in particular, to an audio playing control method and apparatus, an earphone device, and a storage medium.
Background
When a user uses a terminal device (e.g., a smart phone, a tablet computer, a smart wearable device, etc.), the user may typically bluetooth connect the terminal device with a headset device to play audio data transmitted by the terminal device through the headset device. However, in practice, it is found that when the above-mentioned earphone device faces audio data from a plurality of terminal devices at the same time, only audio data transmitted by one of the terminal devices is often played, so that the user may need to frequently switch in the actual use process, which is very inconvenient and reduces the flexibility of playing audio by the terminal device using the earphone device.
Disclosure of Invention
The embodiment of the application discloses an audio playing control method and device, earphone equipment and a storage medium, which can improve the flexibility of a terminal device in audio playing by utilizing the earphone equipment.
An embodiment of the present application in a first aspect discloses an audio playing control method, which is applied to an earphone device, where the earphone device includes a first earphone and a second earphone, and the earphone device establishes a bluetooth connection with at least a first terminal device and a second terminal device, and the method includes:
under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal equipment, the first earphone and/or the second earphone receive a service processing request sent by the second terminal equipment;
based on the service processing request, the first earphone plays the first audio data transmitted by the first terminal device and the second earphone plays the second audio data transmitted by the second terminal device.
The second aspect of the embodiment of the application discloses an audio play control device, which is applied to earphone equipment, the earphone equipment includes a first earphone and a second earphone, the earphone equipment establishes bluetooth connection with at least a first terminal equipment and a second terminal equipment, and the audio play control device includes:
A request receiving unit, configured to, when the first earphone and the second earphone both play the first audio data transmitted by the first terminal device, receive, by the first earphone and/or the second earphone, a service processing request sent by the second terminal device;
and the audio playing unit is used for playing the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone respectively based on the service processing request.
A third aspect of the embodiments of the present application discloses an earphone device, including a memory and a processor, where the memory stores a computer program, where the computer program, when executed by the processor, causes the processor to implement all or part of the steps in any one of the audio play control methods disclosed in the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements all or part of the steps of any one of the audio playback control methods as disclosed in the first aspect of the embodiments of the present application.
The fifth aspect of the embodiments of the present application discloses an audio playing control method, which is applied to a first terminal device, where the first terminal device establishes a bluetooth connection with an earphone device, and the earphone device also establishes a bluetooth connection with at least a second terminal device, where the earphone device includes a first earphone and a second earphone, and the method includes:
and under the condition that the first terminal equipment and the second terminal equipment both have audio playing service requirements, the first terminal equipment responds to a first user triggering operation and sends an independent playing instruction to the first earphone and/or the second earphone, wherein the independent playing instruction is used for triggering the first earphone to play the first audio data transmitted by the first terminal equipment and the second earphone to play the second audio data transmitted by the second terminal equipment.
The sixth aspect of the embodiment of the application discloses an audio playing control method, which is applied to a first terminal device, wherein the first terminal device establishes a bluetooth connection with an earphone device, the earphone device also establishes a bluetooth connection with at least a second terminal device, the earphone device comprises a first earphone and a second earphone, and the method comprises the following steps:
Under the condition that the first terminal equipment and the second terminal equipment have audio playing service requirements, the first terminal equipment responds to a second user triggering operation, a synchronous playing instruction is sent to the first earphone and/or the second earphone, the synchronous playing instruction is used for triggering the first earphone and the second earphone, and the first audio data transmitted by the first terminal equipment and the second audio data transmitted by the second terminal equipment are respectively played, so that the first audio data or the second audio data are synchronously played.
Compared with the related art, the embodiment of the application has the following beneficial effects:
in this embodiment of the present application, the earphone device to which the audio playing control method is applied may include a first earphone and a second earphone, and the earphone device may respectively establish bluetooth connection with the first terminal device and the second terminal device. Under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal device, the first earphone and/or the second earphone can receive a service processing request sent by the second terminal device. Based on the service processing request, the first audio data transmitted by the first terminal device can be played by the first earphone, and the second audio data transmitted by the second terminal device can be played by the second earphone. Therefore, when the earphone device is faced with the audio data from more than one terminal device at the same time, namely, the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device can be received at the same time, the first audio data and the second audio data can be respectively played and output through the first earphone and the second earphone in the earphone device, so that the inconvenience that the other path of audio data must be abandoned to be played or the two paths of audio data need to be frequently switched to be played under the condition that the earphone device can only play one path of audio data can be avoided, the Bluetooth connection capability and the audio playing performance of the earphone device can be fully exerted, and the flexibility of audio playing by the terminal device is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings needed in the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario of an audio play control method disclosed in an embodiment of the present application;
fig. 2 is a schematic flow chart of an audio playing control method disclosed in an embodiment of the present application;
FIG. 3 is a flowchart of another audio playback control method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart of yet another audio playback control method disclosed in an embodiment of the present application;
fig. 5 is a schematic diagram of a bluetooth transmission link between a terminal device and a headset device according to an embodiment of the present application;
fig. 6A is a schematic flow chart of muting the second audio data according to an embodiment of the present disclosure;
fig. 6B is a schematic flow chart of another muting processing of second audio data according to an embodiment of the present disclosure;
Fig. 7 is a timing diagram of an audio playback control method disclosed in an embodiment of the present application;
FIG. 8 is a schematic diagram of an audio playback control device according to an embodiment of the present disclosure;
fig. 9 is a modular schematic diagram of a headset device disclosed in an embodiment of the present application;
fig. 10 is a flowchart of a fourth audio playback control method disclosed in an embodiment of the present application;
fig. 11 is a flowchart of a fifth audio playback control method disclosed in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings of the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the terms "comprises" and "comprising," along with any variations thereof, in the embodiments of the present application are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed.
The embodiment of the application discloses an audio playing control method and device, earphone equipment and a storage medium, which can improve the flexibility of a terminal device in audio playing by utilizing the earphone equipment.
The following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of an audio playback control method disclosed in an embodiment of the present application. As shown in fig. 1, the application scenario may include a first terminal device 10, a second terminal device 20, and a headset device 30, where the headset device 30 may include a first headset 31 and a second headset 32, and the headset device 30 may establish bluetooth connections with the first terminal device 10 and the second terminal device 20, respectively. Based on the above bluetooth connection, the first terminal device 10 and/or the second terminal device 20 may perform data transmission with the earphone device 30 independently, respectively, so as to play audio data transmitted by any terminal device through the earphone device 30. In some embodiments, in the case where the first terminal device 10 and the second terminal device 20 simultaneously transmit the first audio data and the second audio data to the earphone device 30, respectively, the earphone device 30 may also play the first audio data and the second audio data independently through the first earphone 31 and the second earphone 32, respectively. Alternatively, the Bluetooth connection may be implemented based on a classical Bluetooth protocol (e.g., a version of Bluetooth 4.0, etc. protocol formulated by Bluetooth SIG of the Bluetooth technical union), or may be implemented based on a Bluetooth low energy (Bluetooth Low Energy, BLE) protocol (e.g., a version of Bluetooth 5.0, etc.), which is not specifically limited in the embodiments of the present application.
In some embodiments, the first earphone 31 and the second earphone 32 may establish a bluetooth connection and pair in a master-slave relationship, i.e., one of the first earphone 31 and the second earphone 32 may act as a master earphone and the other may act as a slave earphone. Illustratively, the first earphone 31 is exemplified as the main earphone. As shown in fig. 1, in the case where the first earphone 31 serves as a master earphone, the first earphone 31 may establish bluetooth connections with the first terminal device 10 and the second terminal device 20, respectively; while the second headset 32 serves as a slave headset, may establish a bluetooth connection with only the first headset 31, and may listen to bluetooth communication data between the first headset 31 and the first terminal device 10, the second terminal device 20, based on the bluetooth connection.
For example, each of the first terminal device 10 and the second terminal device 20 may include various devices or systems having bluetooth communication function, such as a mobile phone, a smart wearable device, a vehicle-mounted terminal, a tablet computer, a PC (Personal Computer, a personal computer), a PDA (Personal Digital Assistant, a personal digital assistant), and the like, which are not specifically limited in the embodiments of the present application. It will be understood that the first terminal device 10 and the second terminal device 20 shown in fig. 1 are both mobile phones, which is only an example, and do not constitute limitation of the device types of the first terminal device 10 and the second terminal device 20 in the embodiment of the present application. The headset device 30 may then comprise various types of bluetooth headset, and may particularly comprise a TWS (True Wireless Stereo ) headset, for example.
In the embodiment of the present application, after the earphone device 30 to which the audio playing control method is applied establishes bluetooth connection with the first terminal device 10 and the second terminal device 20, the first earphone 31 and/or the second earphone 32 may receive, in a case where the first earphone 31 and the second earphone 32 thereof play the first audio data transmitted by the first terminal device 10, a service processing request sent by the second terminal device 20. Based on this service processing request, the earphone device 30 can play the first audio data transmitted by the first terminal device 10 by its first earphone 31, and at the same time, play the second audio data transmitted by the second terminal device 20 by its second earphone 32, respectively.
Alternatively, the above-mentioned earphone device 30 may at least establish bluetooth connection with the first terminal device 10 and the second terminal device 20, or may establish bluetooth connection with more terminal devices, so as to configure the first earphone 31 and the second earphone 32 to play audio data transmitted by two of the terminal devices when receiving service processing requests sent by the plurality of terminal devices. It should be noted that, in the case where the earphone device 30 establishes bluetooth connection with only two terminal devices, i.e., the first terminal device 10 and the second terminal device 20, respectively, the above-mentioned audio playback control method may be applicable to a scenario in which "one-to-two", i.e., one earphone device establishes bluetooth connection with two terminal devices; in the case where the earphone device 30 establishes bluetooth connections with two or more terminal devices, respectively, that is, bluetooth connections are established with other terminal devices in addition to the first terminal device 10 and the second terminal device 20, the above-described audio playback control method may be applied to a "one-to-many" scenario in which one earphone device establishes bluetooth connections with a plurality of terminal devices. The establishment of the bluetooth connection may be understood as establishing a physical link such as ACL (Asynchronous Connectionless) asynchronous connectionless, or may be understood as establishing a secure link that may be used for data transmission according to a bluetooth protocol, and the specific bluetooth protocol may refer to the specification of the bluetooth standard, which is not limited.
By implementing the method, when the earphone device 30 faces the audio data from more than one terminal device at the same time, that is, when the first audio data transmitted by the first terminal device 10 and the second audio data transmitted by the second terminal device 20 can be received at the same time, the first audio data and the second audio data can be respectively played and output through the first earphone 31 and the second earphone 32 in the earphone device 30, so that the inconvenience that the earphone device 30 only plays one audio data and must discard to play the other audio data or needs to frequently switch to play two audio data can be avoided, the Bluetooth connection capability and the audio playing performance of the earphone device 30 can be fully exerted, and the flexibility of the terminal device for playing audio by using the earphone device 30 is greatly improved.
Referring to fig. 2, fig. 2 is a flowchart of an audio playing control method disclosed in an embodiment of the present application, where the method may be applied to the above-mentioned earphone device, the earphone device may include a first earphone and a second earphone, and the earphone device establishes a bluetooth connection with at least the first terminal device and the second terminal device. As shown in fig. 2, the audio play control method may include the steps of:
202. And under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal equipment, the first earphone and/or the second earphone receive a service processing request sent by the second terminal equipment.
In this embodiment of the present application, after the earphone device establishes bluetooth connection with the first terminal device and the second terminal device, the independent data transmission may be performed with the first terminal device or the second terminal device, respectively, based on the bluetooth connection. For example, taking a first terminal device as an example, when the earphone device needs to perform data transmission with the first terminal device, a data transmission link established between the first terminal device and the earphone device based on bluetooth connection may be in an active state, so that the first terminal device may call first audio data stored or acquired by the first terminal device, and transmit the first audio data to the earphone device through the data transmission link, and then the earphone device may play the received first audio data. Alternatively, the earphone device may package its own device information (such as product identifier, remaining power, etc.), communication status (such as connection status, communication channel, etc.), and transmit the packaged data to the first terminal device through the above data transmission link.
Further, since the earphone device can at least maintain a bluetooth connection state with the first terminal device and the second terminal device at the same time, the earphone device can also receive the second audio data transmitted to the second terminal device when the first terminal device transmits the first audio data to the earphone device. It will be appreciated that, in order to achieve data transmission between the earphone device and the second terminal device, the data transmission link established between the second terminal device and the earphone device based on the bluetooth connection may also be in an active state, so that the first terminal device and the second terminal device may transmit respective audio data to the earphone device independently of each other based on the respective data transmission link established with the earphone device.
It can be understood that the earphone device may receive the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device at the same time, where the first earphone and the second earphone included in the earphone device may only play the same audio data. The first earphone and the second earphone may play the first audio data at the same time, or may play the second audio data at the same time. On the basis, taking the example of simultaneously playing the first audio data, that is, under the condition that the first earphone and the second earphone both play the first audio data transmitted by the first terminal device, the first earphone and/or the second earphone can both receive the service processing request sent by the second terminal device.
For example, the service processing request may be used to indicate that the second terminal device is to start a new audio service, so that the second audio data needs to be transmitted to the earphone device, so that the earphone device may be in a scenario of simultaneously receiving the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device. Based on the service processing request, the earphone device can configure the mode of playing the first audio data and the second audio data in the subsequent steps so as to realize simultaneous playing of the first audio data and the second audio data by utilizing the first earphone and the second earphone included in the earphone device, thereby avoiding the inconvenience that one path of audio data must be abandoned to be played or the two paths of audio data need to be frequently switched to be played.
204. Based on the service processing request, the first earphone plays the first audio data transmitted by the first terminal device and the second earphone plays the second audio data transmitted by the second terminal device.
In this embodiment of the present application, after receiving a service processing request sent by a second terminal device, the first earphone and/or the second earphone may respond to the service processing request, and receive second audio data transmitted by the second terminal device on the basis of receiving first audio data transmitted by the first terminal device. Further, the earphone device may play the first audio data by the first earphone and play the second audio data by the second earphone, so as to realize simultaneous play of the first audio data and the second audio data.
In some embodiments, the first audio data and the second audio data may be respectively played by the first earphone and the second earphone under the triggering of a user wearing the earphone device. For example, the earphone device may determine a first trigger operation for the first earphone and/or the second earphone, and then may respond to the first trigger operation to play the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, respectively, based on the above-mentioned service processing request. The first triggering operation may include a touch operation (for example, touching, pressing a designated touch point, etc.), a button clicking operation, a moving operation, etc. for the first earphone and/or the second earphone, which are not specifically limited in the embodiments of the present application.
Optionally, after the first earphone and/or the second earphone receive the service processing request sent by the second terminal device, the earphone device may first receive the second audio data transmitted by the second terminal device based on the service processing request. On the basis, when the earphone device determines that there is a first trigger operation for the first earphone and/or the second earphone, the first audio data may be played by the first earphone, respectively, while the second audio data may be played by the second earphone.
Optionally, after the first earphone and/or the second earphone receive the service processing request sent by the second terminal device, the earphone device may also send corresponding confirmation prompt information (for example, send a voice prompt, a vibration prompt, etc. through the first earphone and/or the second earphone) to the user, so that after receiving the confirmation prompt information, the user may confirm that the earphone device may receive the second audio data transmitted by the second terminal device by performing the first triggering operation on the first earphone and/or the second earphone, and further play the first audio data by the first earphone, and simultaneously play the second audio data by the second earphone.
In other embodiments, after receiving the service processing request sent by the second terminal device, the earphone device may automatically allocate the first earphone and the second earphone to play the first audio data and the second audio data respectively. In an exemplary embodiment, the earphone device may respond to the service processing request, receive the second audio data transmitted by the second terminal device, and determine, based on a preset playing rule, the audio data played by the first earphone from the first audio data and the second audio data, and at the same time, play another audio data by the second earphone, so that the two paths of audio data can be automatically played respectively without triggering by a user.
In still other embodiments, the earphone device may also acquire an independent play command sent by the first terminal device or the second terminal device, and control the first earphone and the second earphone to play the first audio data and the second audio data respectively according to the independent play command. In an exemplary embodiment, after the second terminal device sends the service processing request to the first earphone and/or the second earphone, the first terminal device or the second terminal device may generate a corresponding independent play instruction under the trigger of the user, and send the corresponding independent play instruction to the first earphone and/or the second earphone. Optionally, after the earphone device sends a corresponding confirmation prompt message to the first terminal device or the second terminal device based on the service processing request, the terminal device prompts the user to confirm whether to independently play the two paths of audio data in a popup window or other modes, and triggers the terminal device to generate and return the independent play instruction when confirming that the confirmation operation (such as designated touch operation, button clicking operation, moving operation and the like) of the user exists. On the basis, the earphone device can respond to the independent playing instruction, and based on the service processing request, the first earphone plays the first audio data transmitted by the first terminal device and the second earphone plays the second audio data transmitted by the second terminal device.
As an optional implementation manner, the independent play instruction may also be included in the service processing request sent by the second terminal device, that is, the second terminal device may send, under the trigger of the user, the service processing request including the independent play instruction to the first earphone and/or the second earphone, so that the earphone device may respond to the independent play instruction, and the first earphone and the second earphone may independently play two paths of different audio data.
Therefore, when the earphone device faces the audio data from more than one terminal device at the same time, that is, when the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device are received at the same time, the first and second earphone devices in the earphone device can be used for respectively playing and outputting the first and second audio data, so that the inconvenience that the earphone device only plays one audio data and must discard to play the other audio data or needs to frequently switch to play the two audio data can be avoided, the Bluetooth connection capability and audio playing performance of the earphone device can be fully exerted, and the flexibility of the terminal device in audio playing by using the earphone device can be improved.
Referring to fig. 3, fig. 3 is a flowchart of another audio playing control method disclosed in the embodiments of the present application, where the method may be applied to the above-mentioned earphone device, the earphone device may include a first earphone and a second earphone, and the earphone device establishes a bluetooth connection with at least the first terminal device and the second terminal device. As shown in fig. 3, the audio play control method may include the steps of:
302. and under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal equipment, the first earphone and/or the second earphone receive a service processing request sent by the second terminal equipment.
Step 302 is similar to step 202 described above, and will not be described again here.
304. And synchronizing first processing indication information between the first earphone and the second earphone based on the service processing request, wherein the first processing indication information is used for indicating the first earphone to play the first audio data transmitted by the first terminal equipment and indicating the second earphone to play the second audio data transmitted by the second terminal equipment.
In the embodiment of the application, a bluetooth connection can be established between the first earphone and the second earphone included in the earphone device, so that information synchronization and data transmission can be performed between the first earphone and the second earphone based on the bluetooth connection. In some embodiments, if the first earphone receives the service processing request sent by the second terminal device, the first earphone may generate corresponding first processing instruction information according to the service processing request, and send the first processing instruction information to the second earphone, so as to achieve synchronization of the first processing instruction information. Optionally, after the first processing indication information is generated by the first earphone, the first earphone may further transmit the first processing indication information through a data transmission link or a broadcast between the first earphone and the first terminal device, and at this time, the second earphone may monitor the first earphone to obtain the first processing indication information.
In other embodiments, the first earphone may also directly forward the service processing request received by the first earphone to the second earphone, so that the second earphone may generate corresponding first processing indication information according to the service processing request, and synchronize the first processing indication information between the first earphone and the second earphone.
In still other embodiments, if the first earpiece and the second earpiece receive the service processing request at the same time (e.g., the second earpiece acquires the service processing request at the same time as the first earpiece by monitoring a data transmission link between the first earpiece and the first terminal device), one of the first earpiece and the second earpiece may generate corresponding first processing instruction information according to the service processing request and synchronize the first processing instruction information to the other of the first earpiece and the second earpiece (e.g., the second earpiece); or the first earphone and the second earphone respectively and simultaneously acquire corresponding first processing indication information, and then the first processing indication information and the second processing indication information are synchronized to ensure that the first processing indication information responded by the first earphone and the second earphone can be matched, so that the first earphone and the second earphone can respectively play the first audio data and the second audio data.
It will be appreciated that the first earphone and the second earphone may be replaced with each other, without affecting the process of synchronizing the first processing instruction information. Note that, when it is determined that there is a first trigger operation for the first headphone and/or the second headphone, the headphone device may synchronize the first processing instruction information between the first headphone and the second headphone in response to the first trigger operation, so that the first audio data may be played by the first headphone while the second audio data is played by the second headphone in a subsequent step based on the first processing instruction information.
306. Based on the first processing instruction information, the first audio data transmitted by the first terminal device is played by the first earphone, and the second audio data transmitted by the second terminal device is played by the second earphone.
In this embodiment of the present application, the first processing instruction information may include a specified audio playing rule, so that the first earphone and the second earphone may determine, respectively, audio data to be played from the first audio data and the second audio data based on the audio playing rule. In some embodiments, the first processing instruction information may also directly include an instruction for playing the first audio data by the first earphone and simultaneously playing the second audio data by the second earphone, so as to drive the first earphone and the second earphone to respectively perform corresponding playing output.
Optionally, after the first earphone and/or the second earphone receive the service processing request sent by the second terminal device, the first earphone (or the second earphone) may determine, based on the designated audio playing rule, audio data played by the first earphone and the second earphone respectively, so as to obtain corresponding first processing instruction information. On the basis, the first processing indication information is synchronized between the first earphone and the second earphone, and the first earphone and the second earphone can be respectively indicated to carry out corresponding playing output.
In some embodiments, the audio data played by the first earphone and the second earphone may be determined by the first earphone (or the second earphone) according to the priorities corresponding to the first audio data and the second audio data, respectively. The priority may be determined based on time information, service type, real-time requirement (e.g. data with high real-time requirement for playing by the master earphone and data with low real-time requirement for playing by the slave earphone) and the like corresponding to each audio data, or may be determined according to a priority label (e.g. priority sequence number, priority code and the like) carried by each audio data. On this basis, according to the priorities of the first audio data and the second audio data (for example, the priority of the call service audio data may be higher than that of the media service audio data, the priority of the call service audio data accessed later may be higher than that of the call service audio data accessed earlier, etc.), the audio data with the highest priority may be played by the first earphone, while the other audio data with the lowest priority may be played by the second earphone.
It will be appreciated that the first earphone and the second earphone may be replaced with each other, i.e. the first earphone may play audio data with the lowest priority, while the second earphone may play another audio data with the highest priority.
As an alternative embodiment, the first earphone (or the second earphone) may determine the priorities of the first audio data and the second audio data according to the service types of the first audio data and the second audio data, respectively. By way of example, the service types described above may include telephony services, media services, and the like. The call service may include audio call, audio part in video call, etc., and the media service may include part related to audio output in multimedia application (e.g., music application, video application, etc.), real-time chat application (e.g., voice chat application, video chat application, etc.), and other functional application (e.g., recorder, navigation application, etc.). On the basis, the first earphone (or the second earphone) can respectively determine the priority of the first audio data and the priority of the second audio data based on a preset ordering rule aiming at different service types, and further determine the audio data played by the first earphone and the second earphone respectively.
In other embodiments, the first earphone may be a left ear earphone in the earphone device, and the second earphone may be a right ear earphone in the earphone device, where the left ear earphone and the right ear earphone are matched with each other. At this time, the first earphone (or the second earphone) may also determine, according to the service types corresponding to the first audio data and the second audio data, audio data played by the first earphone and the second earphone, respectively. For example, after the first earphone and/or the second earphone receive the service processing request sent by the second terminal device, the first earphone (or the second earphone) may acquire the service type corresponding to the first audio data and the second audio data, and further may determine, according to the service type, to play the first audio data by the first earphone (i.e. the left earphone), and determine to play the second audio data by the second earphone (i.e. the right earphone).
For example, if the first audio data is call service audio data and the second audio data is media service audio data, based on a left ear preferred service type and a right ear preferred service type preset by a user or set by a default (for example, the user may set the left ear earphone to be preferably used for call audio playing according to own habits, the right ear earphone to be preferably used for media audio playing, etc.), it may be determined that the first earphone serving as the left ear earphone plays the first audio data and the second earphone serving as the right ear earphone plays the second audio data, so that personalized setting can be implemented according to habits of using earphone devices by the user, and flexibility of using the earphone devices by the terminal device for audio playing is further improved, so as to improve use experience of the user.
308. And in response to a second triggering operation for the first earphone and/or the second earphone, playing target audio data by the first earphone and the second earphone together, wherein the target audio data is the first audio data transmitted by the first terminal equipment or the second audio data transmitted by the second terminal equipment.
In this embodiment of the present application, when the first earphone and the second earphone of the earphone device play the first audio data and the second audio data respectively, the earphone device may be triggered by the user to resume a state in which the first earphone and the second earphone play the same path of audio data together. For example, when the earphone device determines that there is a second trigger operation for the first earphone and/or the second earphone, the target audio data may be determined from the first audio data and the second audio data in response to the second trigger operation, and the target audio data may be played by the first earphone and the second earphone together. The second triggering operation may include a touch operation (for example, touching, pressing a designated touch point, etc.), a button clicking operation, a moving operation, etc. for the first earphone and/or the second earphone, which are not specifically limited in the embodiments of the present application.
Optionally, the first earphone and/or the second earphone may also play the target audio data together in response to the synchronous play instruction. The synchronous playing instruction can be sent to the first earphone by the first terminal equipment under the condition of responding to a third triggering operation; or may be sent by the second terminal device to the second earpiece in response to the fourth trigger operation. Therefore, the user can execute the designated touch action on the first terminal device or the second terminal device to trigger the terminal device to send the synchronous playing instruction to the connected earphone, and then the first earphone and the second earphone can play the target audio data together.
Optionally, when the user operates the first earphone or operates the first terminal device to send a synchronous playing instruction to the first earphone, the first earphone and the second earphone may be triggered to synchronously play the audio data corresponding to the service of the first earphone before the user operates the first earphone; when the user operates the second earphone or operates the second terminal device to send a synchronous playing instruction to the second earphone, the first earphone and the second earphone can be triggered to synchronously play the audio data corresponding to the service of the second earphone before the user operates the second earphone; therefore, the user can realize the selection of the synchronous playing service by triggering the first earphone or the second earphone, and can also realize the synchronous playing by triggering the first terminal equipment or the second terminal equipment. Of course, the setting may be reversed, for example, if the user operates the first earphone or the first terminal device, the service of the second earphone is played synchronously; and if the second earphone or the second terminal device is operated, the service of the first earphone is synchronously played, which is not described herein. By the method, the user can simply, conveniently and quickly switch from the synchronous playing to the synchronous playing, and the control mode from the synchronous playing to the synchronous playing can be referred to by the method.
It can be understood that when both the first terminal device and the second terminal device have service requirements, the earphone device can automatically trigger the two earphones to respectively play the audio data corresponding to the services of the first terminal device and the second terminal device, so that the inconvenience in use caused by that the earphone device can only select to play the service requirement of one terminal device at the same time is avoided. Further, when the earphone device plays the audio data corresponding to the services of different terminal devices respectively, the user can be allowed to select to switch to the earphone to synchronously play the services of the same terminal device, so that the freedom of using the earphone by the user is met. Vice versa, the earphone device may also be configured to play the services of the same terminal device synchronously by two ears according to the relevant rules, such as a default rule, a service priority, a service sequence, and the like, when the first terminal device and the second terminal device have service requirements, and switch to play the services of the first terminal device and the second terminal device respectively by two ears based on the operation of the user; furthermore, the operation of the user can be switched to the binaural synchronous playing of the service of the same terminal device, so that the user can use the earphone more flexibly and operate more conveniently in a one-to-two scene.
It can be seen that when the audio playing control method described in the above embodiment is implemented, the earphone device may play and output the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device through the first earphone and the second earphone in the earphone device when facing the audio data from more than one terminal device at the same time, so that the inconvenience that the earphone device must discard to play another audio data or need to frequently switch to play two audio data when only one audio data can be played by the earphone device can be avoided, which is beneficial to fully playing the bluetooth connection capability and audio playing performance of the earphone device, and improves the flexibility of the terminal device for playing audio by using the earphone device. In addition, the earphone device is enabled to play two paths of audio data or resume playing one path of audio data respectively in a user-triggered mode, so that the method is beneficial to facilitating fine control of the process of playing audio by the earphone device by a user, and the flexibility of playing audio by the terminal device by using the earphone device can be further improved. In addition, the audio data played by each earphone is determined through the preset audio playing rule, simultaneous playing of two paths of audio data can be automatically realized aiming at different application scenes, and the efficiency of the terminal equipment for playing the audio by utilizing the earphone equipment is improved.
Referring to fig. 4, fig. 4 is a flowchart of another audio playing control method disclosed in the embodiment of the present application, where the method may be applied to the above-mentioned earphone device, the earphone device may include a first earphone and a second earphone, and the earphone device establishes a bluetooth connection with at least the first terminal device and the second terminal device. The first earphone may be a master earphone in the earphone device, and the second earphone may be a slave earphone in the earphone device. As shown in fig. 4, the audio play control method may include the steps of:
402. under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal equipment, the first earphone receives a service processing request sent by the second terminal equipment.
Step 402 is similar to step 202 described above. It should be noted that, when the first earphone is a master earphone and the second earphone is a slave earphone, only the first earphone generally establishes a bluetooth connection with the first terminal device and the second terminal device directly, so that a service processing request sent by the second terminal device can be received based on the bluetooth connection, and the second audio data transmitted by the second terminal device can be received based on the first audio data transmitted by the first terminal device in response to the service processing request.
404. When the first earphone receives the service processing request, the first audio processing is performed, so that the first earphone and the second earphone do not play the second audio data transmitted by the second terminal device.
In this embodiment of the present application, after the first earphone is used as the master earphone in the above earphone device and the first earphone receives the service processing request sent by the second terminal device, the first earphone may further receive the second audio data transmitted by the second terminal device on the basis of receiving the first audio data transmitted by the first terminal device. It can be appreciated that, under the condition that the first audio data and the second audio data do not need to be played simultaneously, the first earphone and the second earphone can only play the same path of audio data (for example, the audio data with the highest priority, including the priority of the service type, the priority of the real-time requirement (for example, the data with high real-time requirement is played by the main earphone and the data with low real-time requirement is played by the auxiliary earphone), or the priority of the service type and the audio data matched with the current scene of the user. For example, taking the first earphone and the second earphone both playing the first audio data as an example, to achieve the above effect, the first earphone may perform the first audio processing, so that neither the first earphone nor the second earphone plays the second audio data transmitted by the second terminal device. It will be appreciated that the first audio data and the second audio data may be interchanged without affecting the process of the first audio processing.
In some embodiments, the first audio processing may include stopping the first earphone from receiving the second audio data transmitted by the second terminal device. For example, referring to fig. 5, fig. 5 is a schematic diagram of a bluetooth transmission link between a terminal device and a headset device according to an embodiment of the present application. As shown in fig. 5, in the case that the first earphone 31 is used as the master earphone, the first earphone 31 may establish bluetooth connection with the first terminal device 10 and the second terminal device 20, respectively, that is, bluetooth transmission links having a data transmission function may be established between the first earphone 31 and the first terminal device 10 and between the first earphone 31 and the second terminal device 20. On the basis of this, the first earphone 31 may maintain the bluetooth connection with the second terminal device 20, but stop receiving the second audio data transmitted through the transmission link with the second terminal device 20, so that the second audio data may not be played.
Meanwhile, the second headset 32 serves as a slave headset, and based on the bluetooth connection established between the second headset 32 and the first headset 31, the transmission links respectively established between the first headset 31 and the first terminal device 10 and between the second terminal device 20 can be monitored. On the basis that the first earphone 31 stops receiving the second audio data, the second earphone 32 cannot hear the second audio data, so that the second audio data can be not played in synchronization with the first earphone 31.
In other embodiments, the first audio processing may further include muting the received second audio data by the first earphone. As an alternative embodiment, the first earphone may not perform the corresponding playing process for the second audio data. As shown in fig. 6A, the first earphone may store and decode the first audio data after receiving the first audio data transmitted by the first terminal device, and then transmit the decoded first audio data to a DAC (Digital to Analog Converter, digital-to-analog converter) module by way of DMA (Direct Memory Access ) to perform digital-to-analog conversion on the decoded first audio data, so as to obtain an audio signal that is available for playing. Meanwhile, for the second audio data transmitted by the second terminal device, the first earphone may directly discard the received second audio data without performing the above processing on the received second audio data, so that the first earphone does not need to perform subsequent steps such as decoding and playing the second audio data.
As another alternative embodiment, the first earphone may set the volume corresponding to the second audio data to 0, so that the actual output is not generated even if the second audio data is played. For example, as shown in fig. 6B, after receiving the second audio data, the first earphone may set the volume corresponding to the second audio data to 0, and mix, by using the mixer, the first audio data to be output with the second audio data with the volume set to 0, to obtain mixed output data. On the basis, the first earphone can play the mixed output data, so that the second audio data transmitted by the second terminal equipment can not be played.
406. The first earphone generates first processing indication information based on the service processing request and sends the first processing indication information to the second earphone.
Step 406 is similar to step 304 described above. In the embodiment of the application, the first earphone and the second earphone can perform information synchronization and data transmission based on the Bluetooth connection established between the first earphone and the second earphone. Under the condition that the first earphone and the second earphone play the first audio data, if the first earphone and the second earphone need to be switched to play the first audio data and the second audio data respectively, the first earphone can generate corresponding first processing indication information based on the service processing request, and then send the first processing indication information to the second earphone based on the Bluetooth connection, so that the first earphone is instructed to play the first audio data and the second earphone is instructed to play the second audio data respectively through the first processing indication information.
In some embodiments, the above-described switch play may be triggered by a user. For example, when determining that there is a first trigger operation for the first earphone and/or the second earphone, the earphone device may generate, by the first earphone, corresponding first processing instruction information based on the above-mentioned service processing request in response to the first trigger operation. Further, the first earphone sends the first processing indication information to the second earphone, so that the first processing indication information can be synchronized between the first earphone and the second earphone, and the first earphone and the second earphone are driven to respectively output two paths of audio data in a subsequent step.
408. Based on the first processing indication information, the first earphone plays the first audio data transmitted by the first terminal device, the second earphone stops processing the first audio data transmitted by the first terminal device to the first earphone, and performs second audio processing to play the second audio data transmitted by the second terminal device.
In this embodiment of the present application, since the first earphone and the second earphone play the first audio data together before, when the first audio data and the second audio data need to be played respectively, the first earphone may continue playing the first audio data based on the first processing instruction information. Meanwhile, the first earphone can still continuously receive the second audio data transmitted by the second terminal device based on the Bluetooth transmission link established between the first earphone and the second terminal device, and the second earphone plays the second audio data.
For example, the second earphone may be used as a slave earphone, and based on the bluetooth connection established between the second earphone and the first earphone, a transmission link between the first earphone and the first terminal device, and between the second earphone and the second terminal device may be monitored, so as to obtain the first audio data and the second audio data respectively. On the basis, in order to enable the second earphone to only play the second audio data, the second earphone can stop processing the first audio data based on the first processing instruction information, and simultaneously perform second audio processing corresponding to the second audio data, and acquire and play the second audio data.
In some embodiments, the second earpiece may then cease acquiring and processing the first audio data by ceasing to listen to the transmission link between the first earpiece and the first terminal device transmitting the first audio data. Optionally, the first earphone may also stop synchronizing the first audio data transmitted to the second earphone by the first terminal device based on the first processing instruction information, so that the second earphone cannot acquire the first audio data, and thus the playing processing of the first audio data may be stopped. In still other embodiments, the second earphone may further acquire the first audio data, but does not further process the acquired first audio data, but directly discards the first audio data, so that the second earphone does not need to perform subsequent processing steps such as decoding and playing the first audio data.
Further, by performing the above-described second audio processing, the second earphone can be caused to start playing the second audio data while stopping playing the first audio data. For example, the earphone device may acquire the second audio data first, and then play the second audio data by the second earphone.
In particular, for example, the first earphone resumes receiving the second audio data transmitted by the second terminal device, or the first earphone stops muting the second audio data received by the first earphone, so as to ensure that the second earphone can acquire the second audio data in a subsequent step. It should be noted that, in this process, the first earphone still does not perform the corresponding playing process on the second audio data. In some embodiments, after the first earphone resumes receiving the second audio data or stops muting the second audio data, the first earphone may directly synchronize the received second audio data to the second earphone, so that the second earphone quickly acquires the second audio data transmitted by the second terminal device. In other embodiments, the second earphone may also monitor a transmission link between the first earphone and the second terminal device for transmitting the second audio data, so as to obtain the second audio data. In still other embodiments, the first earphone acquires the second audio data through a bluetooth connection between the first earphone and the second terminal device, so that the first earphone can synchronize the second audio data to the second earphone, and the second earphone performs subsequent playing processing.
410. When the first audio data or the second audio data stops playing, the first earphone and the second earphone play the other audio data which is not stopped together.
In this embodiment of the present application, when the first earphone and the second earphone of the earphone device play the first audio data and the second audio data respectively, if one of the first audio data and the second audio data stops playing (for example, play is paused, play is completed, etc.), the earphone device may resume to a state where the first earphone and the second earphone play the same path of audio data together in response to the event of stopping playing. In an exemplary case where the first audio data or the second audio data stops playing, the second processing instruction information may be synchronized between the first earphone and the second earphone in the earphone device (for example, the first earphone generates the corresponding second processing instruction information, and then the first earphone sends the second processing instruction information to the second earphone to achieve information synchronization between the first earphone and the second earphone). On the basis, the first earphone and the second earphone can play another audio data which is not stopped together based on the second processing indication information.
It can be seen that when the audio playing control method described in the above embodiment is implemented, the earphone device may play and output the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device through the first earphone and the second earphone in the earphone device when facing the audio data from more than one terminal device at the same time, so that the inconvenience that the earphone device must discard to play another audio data or need to frequently switch to play two audio data when only one audio data can be played by the earphone device can be avoided, which is beneficial to fully playing the bluetooth connection capability and audio playing performance of the earphone device, and improves the flexibility of the terminal device for playing audio by using the earphone device. In addition, through setting the flow, the earphone device can adaptively cope with the situation of playing one or more audio data, and the flexibility of the terminal device for playing the audio by utilizing the earphone device is further improved.
Referring to fig. 7, fig. 7 is a timing chart of an audio playing control method disclosed in an embodiment of the present application, where the method may be applied to the above-mentioned earphone device, the earphone device may include a first earphone and a second earphone, and the earphone device establishes a bluetooth connection with at least the first terminal device and the second terminal device. The first earphone may be a master earphone in the earphone device, and the second earphone may be a slave earphone in the earphone device. As shown in fig. 7, the audio play control method may include the steps of:
702. And under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal equipment, the first earphone receives a service processing request sent by the second terminal equipment.
704. When the first earphone receives the service processing request, the first audio processing is performed, so that the first earphone and the second earphone do not play the second audio data transmitted by the second terminal device.
706. Determining a first triggering operation for the first earphone and/or the second earphone, responding to the first triggering operation, generating first processing indication information by the first earphone based on the service processing request, and sending the first processing indication information to the second earphone.
Optionally, the first processing instruction information may also realize synchronization between the first processing instruction information and the second processing instruction information through monitoring of the second earphone on the first earphone.
708. And playing the first audio data transmitted by the first terminal device by the first earphone based on the first processing indication information.
710. Based on the first processing indication information, the second earphone stops acquiring the first audio data transmitted to the first earphone by the first terminal equipment, and performs second audio processing to play the second audio data transmitted by the second terminal equipment.
It should be noted that, step 708 and step 710 may be steps performed simultaneously for the first earphone and the second earphone, respectively. Wherein in fig. 7, the input "x before" the first audio data "related to step 710 may indicate that the first earphone stops synchronizing the first audio data to the second earphone.
712. And in response to a second triggering operation for the first earphone and/or the second earphone, playing target audio data by the first earphone and the second earphone together, wherein the target audio data is the first audio data transmitted by the first terminal equipment or the second audio data transmitted by the second terminal equipment.
Optionally, the first earphone and/or the second earphone may also play the target audio data together in response to the synchronous play instruction. The synchronous playing instruction can be sent to the first earphone by the first terminal equipment under the condition of responding to a third triggering operation; or may be sent by the second terminal device to the second earpiece in response to the fourth trigger operation.
714. When the first audio data or the second audio data is stopped, the second processing instruction information is synchronized between the first earphone and the second earphone, and based on the second processing instruction information, the first earphone and the second earphone play the other audio data which is not stopped together.
In step 712 and step 714, two different cases (in fig. 7, by alternatively executing the two cases (or) between step 712 and step 714) of playing two paths of audio data respectively in the earphone device, so as to restore to the state that the first earphone and the second earphone play the same path of audio data together, for two different scenes where the user triggering operation or the playing of the audio data is completed respectively. Wherein an output "non-target audio data" related to step 712 and an output "x before stopped audio data" related to step 714 may indicate that the first earpiece stopped synchronizing the non-target audio data or stopped audio data to the second earpiece.
It can be seen that when the audio playing control method described in the above embodiment is implemented, the earphone device may play and output the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device through the first earphone and the second earphone in the earphone device when facing the audio data from more than one terminal device at the same time, so that the inconvenience that the earphone device must discard to play another audio data or need to frequently switch to play two audio data when only one audio data can be played by the earphone device can be avoided, which is beneficial to fully playing the bluetooth connection capability and audio playing performance of the earphone device, and improves the flexibility of the terminal device for playing audio by using the earphone device.
Referring to fig. 8, fig. 8 is a schematic modularized view of an audio play control device disclosed in an embodiment of the present application, where the audio play control device may be applied to the above-mentioned earphone device, the earphone device may include a first earphone and a second earphone, and the earphone device establishes a bluetooth connection with at least the first terminal device and the second terminal device. The first earphone may be a master earphone in the earphone device, and the second earphone may be a slave earphone in the earphone device. As shown in fig. 8, the audio playback control apparatus may include a request receiving unit 801 and an audio playback unit 802, wherein:
a request receiving unit 801, configured to, when both the first earphone and the second earphone play the first audio data transmitted by the first terminal device, receive a service processing request sent by the second terminal device by the first earphone and/or the second earphone;
an audio playing unit 802, configured to play, based on the service processing request, the first audio data transmitted by the first terminal device by the first earphone, and the second audio data transmitted by the second terminal device by the second earphone, respectively.
Therefore, when the earphone device faces the audio data from more than one terminal device at the same time, the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device can be received at the same time, and the first audio data and the second audio data can be respectively played and output through the first earphone and the second earphone in the earphone device, so that the inconvenience that the earphone device only plays one audio data and the other audio data must be abandoned or needs to be frequently switched to play the two audio data can be avoided, the Bluetooth connection capability and the audio playing performance of the earphone device can be fully exerted, and the flexibility of the terminal device in audio playing by using the earphone device can be improved.
In one embodiment, the audio playing unit 802 may be specifically configured to determine a first trigger operation for the first earphone and/or the second earphone, and play, in response to the first trigger operation, the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, based on the service processing request, respectively.
The earphone device is enabled to respectively play two paths of audio data or resume playing one path of audio data in a user-triggered mode, so that the method is beneficial to facilitating fine control of the process of playing audio of the earphone device by a user, and the flexibility of playing audio by the terminal device through the earphone device can be further improved.
In one embodiment, the audio playing unit 802 may be specifically configured to obtain an independent playing instruction sent by the first terminal device or the second terminal device to the first earphone and/or the second earphone, and respond to the independent playing instruction, and based on the service processing request, play the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, respectively. The earphone device can play two paths of audio data or resume playing one path of audio data respectively in a mode of triggering by the terminal device, so that convenience and accuracy in control are realized for users.
In an embodiment, the audio playing control device may further include an information synchronization unit, which is not illustrated, and may be configured to synchronize, based on the service processing request, the first processing instruction information between the first earphone and the second earphone, where the first processing instruction information is configured to instruct the first earphone to play the first audio data transmitted by the first terminal device, and instruct the second earphone to play the second audio data transmitted by the second terminal device.
In an embodiment, the first earphone may be a master earphone, and the second earphone may be a slave earphone, and the information synchronization unit may specifically be configured to enable the first earphone to generate first processing indication information based on a service processing request, and send the first processing indication information to the second earphone by the first earphone, or monitor the first earphone by the second earphone to obtain the first processing indication information.
In an embodiment, the audio playing control device may further include an audio processing unit, which is not illustrated, and the audio processing unit may be configured to perform, by the first earphone, a first audio process when the first earphone receives the service processing request before the information synchronization unit makes the first earphone generate the first processing instruction information based on the service processing request, so that neither the first earphone nor the second earphone play the second audio data transmitted by the second terminal device;
The audio processing unit may be further configured to, after the information synchronization unit sends the first processing instruction information to the second earpiece, cause the second earpiece to stop processing the first audio data transmitted by the first terminal device to the first earpiece based on the first processing instruction information, and perform the second audio processing to play the second audio data transmitted by the second terminal device.
As an optional implementation manner, the audio processing unit may stop, based on the first processing instruction information, the second earphone from acquiring the first audio data transmitted by the first terminal device to the first earphone, where the method specifically may include:
based on the first processing indication information, the second earphone stops monitoring a transmission link for transmitting first audio data between the first earphone and the first terminal equipment;
or based on the first processing instruction information, the first earphone stops synchronizing the first audio data transmitted to the second earphone by the first terminal device.
As an optional implementation manner, the first audio processing may include stopping the first earphone from receiving the second audio data transmitted by the second terminal device, or performing, by the first earphone, mute processing on the received second audio data, where the first earphone does not play the second audio data;
The second audio processing may include that the first earphone resumes receiving the second audio data transmitted by the second terminal device, or the first earphone stops performing mute processing on the received second audio data;
the second audio processing may further include the second earphone monitoring a transmission link between the first earphone and the second terminal device for transmitting the second audio data, or the first earphone synchronizing the second audio data transmitted by the second terminal device to the second earphone.
In one embodiment, when the first audio data transmitted by the first terminal device is played by the first earphone and the second audio data transmitted by the second terminal device is played by the second earphone based on the service processing request, the audio playing unit 802 may specifically determine that the audio data with the highest priority is played by the first earphone and the audio data with the lowest priority is played by the second earphone according to the priorities corresponding to the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device.
In an embodiment, when the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device are respectively played by the first earphone based on the service processing request, the audio playing unit 802 may specifically determine, by the first earphone, a service type corresponding to the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device, and determine, according to the service type, to play the first audio data by the first earphone and to play the second audio data by the second earphone. The first earphone may be a left ear earphone, and the second earphone may be a right ear earphone.
Therefore, by adopting the audio playing control device described in the above embodiment, the audio data played by each earphone is determined according to the preset audio playing rule, so that simultaneous playing of two paths of audio data can be automatically realized according to different application scenes, and the efficiency of the terminal equipment for playing the audio by using the earphone equipment is improved.
As an optional implementation manner, the audio playing unit 802 may be further configured to, after playing, based on the service processing request, the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, respectively:
and in response to a second triggering operation for the first earphone and/or the second earphone, playing target audio data by the first earphone and the second earphone together, wherein the target audio data is the first audio data transmitted by the first terminal equipment or the second audio data transmitted by the second terminal equipment.
As an alternative embodiment, the audio playing unit 802 may also be used for:
obtaining a synchronous play instruction sent to the first earphone and/or the second earphone, wherein the synchronous play instruction is sent to the first earphone by the first terminal equipment under the condition of responding to a third trigger operation or sent to the second earphone by the second terminal equipment under the condition of responding to a fourth trigger operation;
And responding to the synchronous playing instruction, playing target audio data by the first earphone and the second earphone together, wherein the target audio data is the first audio data transmitted by the first terminal equipment or the second audio data transmitted by the second terminal equipment.
As an alternative embodiment, the audio playing unit 802 may be further configured to:
when the first audio data or the second audio data stops playing, the first earphone and the second earphone play the other audio data which is not stopped together.
Specifically, the audio playing unit 802 may be configured to synchronize second processing instruction information between the first earphone and the second earphone, where the second processing instruction information is configured to instruct the first earphone and the second earphone to play another audio data that is not stopped together.
Therefore, when the earphone device faces the audio data from more than one terminal device at the same time, the audio playing control device can play and output the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device through the first earphone and the second earphone in the earphone device, so that the inconvenience that the earphone device only plays one path of audio data and the other path of audio data is needed to be abandoned or needs to be frequently switched to play the two paths of audio data can be avoided, bluetooth connection capability and audio playing performance of the earphone device can be fully exerted, and flexibility of the terminal device for playing audio by using the earphone device is improved. In addition, through setting the flow, the earphone device can adaptively cope with the situation of playing one or more audio data, and the flexibility of the terminal device for playing the audio by utilizing the earphone device is further improved.
Referring to fig. 9, fig. 9 is a schematic diagram of a headset device according to an embodiment of the present disclosure. As shown in fig. 9, the audio output device may include:
a memory 901 storing executable program code;
a processor 902 coupled to the memory 901;
wherein the processor 902 invokes executable program code stored in the memory 901, and may perform all or part of the steps of any of the audio play control methods described in the above embodiments as applied to the audio output device.
Referring to fig. 10, fig. 10 is a flowchart of an audio playing control method disclosed in the embodiments of the present application, where the method may be applied to a first terminal device, the first terminal device may establish a bluetooth connection with an earphone device, and the earphone device may also establish a bluetooth connection with at least a second terminal device, where the earphone device may include a first earphone and a second earphone. As shown in fig. 10, the audio play control method may include the steps of:
1002. under the condition that the first terminal equipment and the second terminal equipment both have audio playing service requirements, the first terminal equipment responds to a first user triggering operation, an independent playing instruction is sent to the first earphone and/or the second earphone, and the independent playing instruction is used for triggering the first earphone to play first audio data transmitted by the first terminal equipment and the second earphone to play second audio data transmitted by the second terminal equipment.
In this embodiment of the present application, if the first terminal device and the second terminal device both have an audio playing service requirement, the first terminal device and the second terminal device may both transmit respective audio data to the earphone device. In an exemplary case where the first terminal device has transmitted the first audio data to the headphone device so that the first headphone and the second headphone in the headphone device each play the first audio data, the second terminal device may send a service processing request to the first headphone and/or the second headphone so that the headphone device may simultaneously receive the second audio data sent by the second terminal device. Optionally, the first terminal device and the second terminal device may also send respective audio data to the earphone device respectively based on their own service requirements, and at this time, the earphone device may still process only one path of audio data, that is, the first earphone and the second earphone both play audio data corresponding to the audio playing service of one of the terminal devices.
On the basis, the first terminal device can respond to the first user triggering operation and send an independent playing instruction to the first earphone and/or the second earphone, so that the earphone device can respond to the independent playing instruction, and the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device can be played by the first earphone respectively. The first user triggering operation may include a touch operation (for example, touching, pressing a designated touch point, etc.), a button clicking operation, a moving operation, etc. of the first terminal device, which are not specifically limited in the embodiments of the present application. By implementing the method, a user can conveniently control the earphone device to respectively play two paths of audio data on the terminal device, so that inconvenience in use caused by the fact that only one terminal device can be selected to play the service requirement at the same time in the process of using the earphone device can be avoided.
It should be noted that, in the above embodiment, the first terminal device and the second terminal device may be interchanged, so that the earphone device is not affected to realize the separate playing of the two paths of audio data.
Referring to fig. 11, fig. 11 is a schematic flow chart of an audio playing control method disclosed in the embodiments of the present application, where the method may be applied to a first terminal device, the first terminal device may establish a bluetooth connection with an earphone device, and the earphone device may also establish a bluetooth connection with at least a second terminal device, where the earphone device may include a first earphone and a second earphone. As shown in fig. 11, the audio play control method may include the steps of:
1102. under the condition that the first terminal equipment and the second terminal equipment both have audio playing service requirements, the first terminal equipment responds to a second user triggering operation and sends synchronous playing instructions to the first earphone and/or the second earphone, wherein the synchronous playing instructions are used for triggering the first earphone and the second earphone to respectively play first audio data transmitted by the first terminal equipment and second audio data transmitted by the second terminal equipment, and the first audio data or the second audio data are synchronously played.
In this embodiment of the present application, when a first earphone and a second earphone in an earphone device are respectively used to play two paths of different audio data, a first terminal device may respond to a second user triggering operation and send a synchronous play instruction to the first earphone and/or the second earphone, and then the first earphone and the second earphone may respond to the synchronous play instruction and turn to synchronously play one path of audio data. The first earphone and the second earphone can synchronously play the first audio data transmitted by the first terminal device, can synchronously play the second audio data transmitted by the second terminal device, and can be determined on the first terminal device by a user through the triggering operation of the second user, or can be determined by default according to a preset rule.
The first user triggering operation may also include a touch operation, a button clicking operation, a moving operation, etc. of the user with respect to the first terminal device, which is not specifically limited in the embodiment of the present application. By implementing the method, a user can conveniently control the earphone device to synchronously play on the terminal device, so that different play states can be rapidly switched, and the flexibility of the terminal device for playing the audio by utilizing the earphone device is further improved.
It should be noted that, in the above embodiment, the first terminal device and the second terminal device may be interchanged, so that the earphone device is not affected to realize synchronous playing of one path of audio data.
Further, the embodiments of the present application further disclose a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program makes a computer execute all or part of the steps of any of the audio play control methods described in the above embodiments.
Furthermore, the embodiments further disclose a computer program product which, when run on a computer, enables the computer to perform all or part of the steps of any of the audio playback control methods described in the above embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by a program that instructs associated hardware, the program may be stored in a computer readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used for carrying or storing data that is readable by a computer.
The foregoing describes in detail a method and apparatus for controlling audio playing, an earphone device, and a storage medium disclosed in the embodiments of the present application, and specific examples are applied to illustrate principles and implementations of the present application, where the foregoing description of the embodiments is only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (19)

1. The audio playing control method is characterized by being applied to earphone equipment, wherein the earphone equipment comprises a first earphone and a second earphone, and the earphone equipment at least establishes Bluetooth connection with a first terminal equipment and a second terminal equipment, and the method comprises the following steps:
under the condition that the first earphone and the second earphone play the first audio data transmitted by the first terminal equipment, the first earphone and/or the second earphone receive a service processing request sent by the second terminal equipment;
based on the service processing request, the first earphone plays the first audio data transmitted by the first terminal device and the second earphone plays the second audio data transmitted by the second terminal device.
2. The method according to claim 1, wherein before the playing of the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, respectively, based on the service processing request, the method comprises:
determining a first trigger operation for the first earphone and/or the second earphone;
the playing, based on the service processing request, the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone respectively includes:
and responding to the first triggering operation, and based on the service processing request, respectively playing the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone.
3. The method according to claim 1, wherein before the playing of the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, respectively, based on the service processing request, the method comprises:
Acquiring an independent play instruction sent by the first terminal device or the second terminal device to the first earphone and/or the second earphone;
the playing, based on the service processing request, the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone respectively includes:
and responding to the independent playing instruction, and based on the service processing request, respectively playing the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone.
4. The method of claim 1, wherein prior to the playing of the first audio data transmitted by the first terminal device by the first earpiece and the second audio data transmitted by the second terminal device by the second earpiece, respectively, based on the service processing request, the method further comprises:
and based on the service processing request, synchronizing first processing instruction information between the first earphone and the second earphone, wherein the first processing instruction information is used for instructing the first earphone to play first audio data transmitted by the first terminal equipment and instructing the second earphone to play second audio data transmitted by the second terminal equipment.
5. The method of claim 4, wherein the first earpiece is a master earpiece and the second earpiece is a slave earpiece, and wherein synchronizing first processing indication information between the first earpiece and the second earpiece based on the service processing request comprises:
the first earphone generates first processing indication information based on the service processing request;
and the first processing indication information is sent to the second earphone by the first earphone, or the second earphone monitors the first earphone to obtain the first processing indication information.
6. The method of claim 5, wherein prior to the first earpiece generating first processing indication information based on the service processing request, the method further comprises:
when the first earphone receives the service processing request, performing first audio processing to ensure that the first earphone and the second earphone do not play second audio data transmitted by the second terminal device;
after the sending the first processing indication information to the second earpiece, the method further includes:
and based on the first processing indication information, the second earphone stops processing the first audio data transmitted by the first terminal equipment to the first earphone, and performs second audio processing to play the second audio data transmitted by the second terminal equipment.
7. The method of claim 6, wherein the second earpiece stops processing the first audio data transmitted by the first terminal device to the first earpiece based on the first processing indication information, comprising:
based on the first processing indication information, the second earphone stops monitoring a transmission link for transmitting the first audio data between the first earphone and the first terminal equipment;
or based on the first processing indication information, the first earphone stops synchronizing the first audio data transmitted to the first terminal device to the second earphone.
8. The method of claim 6, wherein the first audio processing includes the first earpiece ceasing to receive the second audio data transmitted by the second terminal device or the first earpiece muting the received second audio data;
the second audio processing comprises the first earphone recovering to receive the second audio data transmitted by the second terminal device, or the first earphone stopping the mute processing of the received second audio data, wherein the first earphone does not play the second audio data;
The second audio processing further comprises that the second earphone monitors a transmission link for transmitting the second audio data between the first earphone and the second terminal device, or the first earphone synchronizes the second audio data transmitted by the second terminal device to the second earphone.
9. The method according to any one of claims 1 to 8, wherein playing, based on the service processing request, the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, respectively, comprises:
and the first earphone determines to play the audio data with the highest priority by the first earphone and the audio data with the lowest priority by the second earphone according to the priorities corresponding to the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device.
10. The method according to any one of claims 1 to 8, wherein the first earphone is a left-ear earphone, the second earphone is a right-ear earphone, the playing, based on the service processing request, the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone, respectively, includes:
The first earphone determines a service type corresponding to first audio data transmitted by the first terminal device and second audio data transmitted by the second terminal device, and determines to play the first audio data by the first earphone and the second audio data by the second earphone according to the service type.
11. The method according to any one of claims 1 to 8, wherein after the playing of the first audio data transmitted by the first terminal device by the first earphone and the playing of the second audio data transmitted by the second terminal device by the second earphone, respectively, based on the service processing request, the method further comprises:
and in response to a second triggering operation for the first earphone and/or the second earphone, playing target audio data by the first earphone and the second earphone together, wherein the target audio data is first audio data transmitted by the first terminal equipment or second audio data transmitted by the second terminal equipment.
12. The method according to any one of claims 1 to 8, wherein after the playing of the first audio data transmitted by the first terminal device by the first earphone and the playing of the second audio data transmitted by the second terminal device by the second earphone, respectively, based on the service processing request, the method further comprises:
Obtaining a synchronous play instruction sent to the first earphone and/or the second earphone, wherein the synchronous play instruction is sent to the first earphone by the first terminal equipment under the condition of responding to a third trigger operation or sent to the second earphone by the second terminal equipment under the condition of responding to a fourth trigger operation;
and responding to the synchronous playing instruction, and playing target audio data by the first earphone and the second earphone together, wherein the target audio data is first audio data transmitted by the first terminal equipment or second audio data transmitted by the second terminal equipment.
13. The method according to any one of claims 1 to 8, wherein after the playing of the first audio data transmitted by the first terminal device by the first earphone and the playing of the second audio data transmitted by the second terminal device by the second earphone, respectively, based on the service processing request, the method further comprises:
and when the first audio data or the second audio data stops playing, the first earphone and the second earphone play the other audio data which is not stopped together.
14. The method of claim 13, wherein, in the case where the first audio data or the second audio data stops playing, the first earphone and the second earphone play another audio data that is not stopped together, comprising:
and synchronizing second processing indication information between the first earphone and the second earphone, wherein the second processing indication information is used for indicating the first earphone and the second earphone to play another audio data which is not stopped together.
15. An audio play control device, characterized in that is applied to earphone equipment, earphone equipment includes first earphone and second earphone, earphone equipment establishes bluetooth with first terminal equipment and second terminal equipment at least and connects, audio play control device includes:
a request receiving unit, configured to, when the first earphone and the second earphone both play the first audio data transmitted by the first terminal device, receive, by the first earphone and/or the second earphone, a service processing request sent by the second terminal device;
and the audio playing unit is used for playing the first audio data transmitted by the first terminal device by the first earphone and the second audio data transmitted by the second terminal device by the second earphone respectively based on the service processing request.
16. A headset device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 1 to 14.
17. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method of any one of claims 1 to 14.
18. An audio playing control method is characterized by being applied to a first terminal device, wherein the first terminal device establishes Bluetooth connection with an earphone device, the earphone device also establishes Bluetooth connection with at least a second terminal device, and the earphone device comprises a first earphone and a second earphone, and the method comprises the following steps:
and under the condition that the first terminal equipment and the second terminal equipment both have audio playing service requirements, the first terminal equipment responds to a first user triggering operation and sends an independent playing instruction to the first earphone and/or the second earphone, wherein the independent playing instruction is used for triggering the first earphone to play the first audio data transmitted by the first terminal equipment and the second earphone to play the second audio data transmitted by the second terminal equipment.
19. An audio playing control method is characterized by being applied to a first terminal device, wherein the first terminal device establishes Bluetooth connection with an earphone device, the earphone device also establishes Bluetooth connection with at least a second terminal device, and the earphone device comprises a first earphone and a second earphone, and the method comprises the following steps:
under the condition that the first terminal equipment and the second terminal equipment have audio playing service requirements, the first terminal equipment responds to a second user triggering operation, a synchronous playing instruction is sent to the first earphone and/or the second earphone, the synchronous playing instruction is used for triggering the first earphone and the second earphone, and the first audio data transmitted by the first terminal equipment and the second audio data transmitted by the second terminal equipment are respectively played, so that the first audio data or the second audio data are synchronously played.
CN202111296514.2A 2021-11-03 2021-11-03 Audio play control method and device, earphone device and storage medium Pending CN116074796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111296514.2A CN116074796A (en) 2021-11-03 2021-11-03 Audio play control method and device, earphone device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111296514.2A CN116074796A (en) 2021-11-03 2021-11-03 Audio play control method and device, earphone device and storage medium

Publications (1)

Publication Number Publication Date
CN116074796A true CN116074796A (en) 2023-05-05

Family

ID=86168690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111296514.2A Pending CN116074796A (en) 2021-11-03 2021-11-03 Audio play control method and device, earphone device and storage medium

Country Status (1)

Country Link
CN (1) CN116074796A (en)

Similar Documents

Publication Publication Date Title
EP1176783B1 (en) Method for transmitting stream data between a slave and a master within a short-range mobile system
WO2020133614A1 (en) Wireless communication method, terminal, audio component, apparatus, and storage medium
RU2411691C2 (en) Audio headset
US20090023417A1 (en) Multiple interactive modes for using multiple earpieces linked to a common mobile handset
EP1869793B1 (en) A communication apparatus
JP2003347956A (en) Audio output apparatus and control method thereof
JP2004235838A (en) Electronic apparatus, its connection controlling method and method for regulating voice
US20230069230A1 (en) Switching between multiple earbud architectures
JP3696192B2 (en) Electronic device and method for switching connection destination of electronic device
CN111049709B (en) Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
CN114040373A (en) Audio service processing method and device, electronic equipment and storage medium
CN115686424A (en) Priority configuration method, device, equipment and storage medium for audio playing
JP5657771B1 (en) Telephone device and mobile phone linkage method
CN111246401B (en) Frequency changing method and device
CN112105005B (en) Method and device for controlling Bluetooth equipment to play
US20220272512A1 (en) Bluetooth communication system capable of avoiding voice interruption, and related bluetooth device set
KR20090121760A (en) Method, terminal for sharing content and computer readable record-medium on which program for executing method thereof
CN116074796A (en) Audio play control method and device, earphone device and storage medium
US20210306448A1 (en) Controlling audio output
CN113395576A (en) Scene switching method, computer equipment and storage medium
CN113407147A (en) Audio playing method, device, equipment and storage medium
CN115474238A (en) Data stream transmission method, device, communication device and storage medium
WO2023035918A1 (en) Audio playing control method and apparatus, and audio output device and storage medium
KR102313797B1 (en) Wireless mic system comprising wireless mic transmitter and receiver
JP5803132B2 (en) Voice switching device, program and method

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