WO2024066648A1 - Device control method and apparatus, bluetooth earphone, and storage medium - Google Patents

Device control method and apparatus, bluetooth earphone, and storage medium Download PDF

Info

Publication number
WO2024066648A1
WO2024066648A1 PCT/CN2023/106373 CN2023106373W WO2024066648A1 WO 2024066648 A1 WO2024066648 A1 WO 2024066648A1 CN 2023106373 W CN2023106373 W CN 2023106373W WO 2024066648 A1 WO2024066648 A1 WO 2024066648A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth headset
electronic device
wearing
call
information
Prior art date
Application number
PCT/CN2023/106373
Other languages
French (fr)
Chinese (zh)
Inventor
侯锐填
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024066648A1 publication Critical patent/WO2024066648A1/en

Links

Definitions

  • the present application relates to the technical field of electronic equipment, and more specifically, to a control method and device for a device, a Bluetooth headset, and a storage medium.
  • the present application proposes a device control method, apparatus, Bluetooth headset and storage medium to solve the above problems.
  • an embodiment of the present application provides a device control method applied to a Bluetooth headset, wherein a connection synchronization stream is established with an electronic device, and the method comprises: when the electronic device is in a call state, obtaining the wearing information of the Bluetooth headset; if the wearing information indicates that the Bluetooth headset is in a non-wearing state, stopping uploading the collected audio data to the electronic device.
  • an embodiment of the present application provides a control device for a device, which is applied to a Bluetooth headset, and the Bluetooth headset establishes a connection synchronization stream with the electronic device.
  • the device includes: a wearing information acquisition module, which is used to obtain the wearing information of the Bluetooth headset when the electronic device is in a call state; and a control module of the device, which is used to stop uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
  • an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
  • an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
  • FIG1 is a schematic diagram showing an application environment of a control method for a device provided in an embodiment of the present application
  • FIG2 is a schematic diagram showing a flow chart of a control method for a device provided in an embodiment of the present application
  • FIG3 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application
  • FIG4 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application
  • FIG5 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application
  • FIG6 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application.
  • FIG7 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application.
  • FIG8 is a schematic flow chart showing step S620 of the control method of the device shown in FIG7 of the present application.
  • FIG9 shows a module block diagram of a control device of a device provided by an embodiment of the present application.
  • FIG10 shows a block diagram of an electronic device for executing a control method of a device according to an embodiment of the present application
  • FIG. 11 shows a storage unit for storing or carrying a program code for implementing a control method for a device according to an embodiment of the present application.
  • Bluetooth Low Energy Audio is a new audio transmission technology of Bluetooth, which provides people with wireless audio services with lower power consumption, lower cost, higher quality, and lower latency.
  • Bluetooth headsets Truste Wireless Stereo (TWS)
  • TWS Truste Wireless Stereo
  • the electronic device and the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear will maintain a low-power Bluetooth BLE connection respectively.
  • the electronic device and the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear independently transmit and communicate data, and the data transmission channel is the Connected Isochronous Stream (CIS).
  • CIS Connected Isochronous Stream
  • the electronic device (such as a smartphone) maintains LE Audio connections with the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear.
  • the electronic device When the other electronic device is powered off, since the electronic device maintains LE Audio connection with the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear respectively, the electronic device establishes CIS connection with the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear respectively to transmit the call downlink data.
  • the Bluetooth headset After the Bluetooth headset is connected to the CIS, since it is a call scene at this time, the Bluetooth headset will turn on the microphone to record the human voice and process the call uplink noise reduction processing algorithm.
  • the Bluetooth headset After the data is processed, the Bluetooth headset transmits the uplink data to the electronic device through the CIS, wherein the Bluetooth headset corresponding to the left ear transmits the left channel, and the Bluetooth headset corresponding to the right ear transmits the right channel.
  • the electronic device After receiving the call uplink data from the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear, the electronic device will mix the data of different channels of the left and right ears and transmit them to other electronic devices through the data network.
  • the Bluetooth headset When one ear is removed during a call, if the Bluetooth headset is not connected to the CIS of the electronic device, the Bluetooth headset will continue to turn on the microphone for uplink data processing without any processing. However, since there is no voice recording at this time, the microphone records the surrounding noise, which will interfere with the call effect of the electronic device. If the Bluetooth headset is disconnected from the CIS of the electronic device, when the Bluetooth headset is put on again, the current LE-Audio protocol does not define how the Bluetooth end can actively let the electronic device re-create the CIS. Therefore, when the Bluetooth headset is put on again, one ear will be silent during the call.
  • the inventor has discovered after long-term research and proposed the control method, device, Bluetooth headset and storage medium of the device provided in the embodiment of the present application.
  • the electronic device is in a call state, if the Bluetooth headset is not worn, the uploaded audio data collected will be stopped to the electronic device, so that the call can be adjusted adaptively, the actual call experience of the user can be optimized, and the competitiveness of the product can be improved.
  • the specific control method of the device is described in detail in the subsequent embodiments.
  • the following describes an application environment for the control method that can be used for the device provided in the embodiments of the present application.
  • Figure 1 shows a schematic diagram of an application environment of a control method for a device provided in an embodiment of the present application.
  • the electronic device 200 may include a smart phone, a tablet computer, a laptop computer, a personal computer, a wearable electronic device, etc., which can know a voice call, and is not limited here.
  • the Bluetooth headset 100 may include a Bluetooth headset, or a pair of Bluetooth headsets, and when the Bluetooth headset 100 is a Bluetooth headset, the Bluetooth headset may be a Bluetooth headset corresponding to the left ear, or a Bluetooth headset corresponding to the right ear, and is not limited here.
  • a BLE connection may be established between the electronic device 200 and the Bluetooth headset 100, based on which information exchange may be performed between the electronic device 200 and the Bluetooth headset 100;
  • a CIS connection may be established between the electronic device 200 and the Bluetooth headset 100, based on which call data transmission may be performed between the electronic device 200 and the Bluetooth headset 100.
  • the Bluetooth headset 100 is a Bluetooth device supporting LE Audio
  • the electronic device 200 is an electronic device supporting LE Audio.
  • the Bluetooth headset 100 supports the server role (unicast server) of LE Audio
  • the electronic device 200 supports the client role (unicast client) of LE Audio.
  • the unicast client is one of the LE Audio BAP roles, which is mainly used to receive the broadcast of the unicast server and establish a connection with the unicast server.
  • the unicast server is another LE Audio BAP role, which is mainly used to transmit the broadcast and establish a connection with the unicast client.
  • FIG 2 shows a flow chart of a control method of a device provided by an embodiment of the present application.
  • the method is used to stop uploading the collected audio data to the electronic device if the Bluetooth headset is not in the wearing state when the electronic device is in the call state, so that the call can be adjusted adaptively, the actual call experience of the user can be optimized, and the competitiveness of the product can be improved.
  • the control method of the device is applied to the control device 300 of the device as shown in Figure 9 and the Bluetooth headset 100 ( Figure 10) equipped with the control device 300 of the device.
  • the following will take the Bluetooth headset as an example to illustrate the specific process of this embodiment.
  • the Bluetooth headset used in this embodiment can include one Bluetooth headset, a pair of Bluetooth headsets, or even multiple Bluetooth headsets, and when the Bluetooth headset is one Bluetooth headset, it can be paired with other Bluetooth headsets to form a Bluetooth headset group; the Bluetooth headset can be a left headset or a right headset, which is not limited here.
  • the following will be described in detail with respect to the process shown in Figure 2.
  • the Bluetooth headset and the electronic device establish a connection synchronization stream.
  • the control method of the device can specifically include the following steps:
  • Step S110 when the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
  • a connection synchronization flow is established between the Bluetooth headset and the electronic device.
  • the Bluetooth headset is a pair of Bluetooth headsets
  • a connection synchronization flow is established between the electronic device and each Bluetooth headset in the pair of Bluetooth headsets.
  • a low-power Bluetooth BLE connection can be established between an electronic device and a Bluetooth headset.
  • the electronic device can establish a connection synchronization stream with the Bluetooth headset.
  • the electronic device can initiate a synchronization stream connection request to the Bluetooth headset, and the Bluetooth headset can establish a connection synchronization stream with the electronic device in response to the synchronization stream connection request.
  • the electronic device can transmit downlink call voice to the Bluetooth headset, and the Bluetooth headset can transmit uplink call voice to the electronic device.
  • a Bluetooth headset can be placed in a headset box, and when it is detected that the headset box is opened, an LE Audio connection can be established between the electronic device and the Bluetooth headset.
  • a Bluetooth headset can be placed in a headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, an LE Audio connection can be established between the electronic device and the Bluetooth headset.
  • a Bluetooth headset can be placed in a headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, it can be detected whether the Bluetooth headset is in a wearing state, and when it is detected that the Bluetooth headset is in a wearing state, an LE Audio connection can be established between the electronic device and the Bluetooth headset. LE Audio connection.
  • the Bluetooth headset can transmit a low-power audio broadcast
  • the electronic device can receive the low-power audio broadcast transmitted by the Bluetooth headset to obtain information such as the Bluetooth address of the Bluetooth headset from the low-power audio broadcast, and then establish an LE Audio connection with the Bluetooth headset based on the Bluetooth address of the Bluetooth headset and other information.
  • the Bluetooth headset can be placed in the headset box, and when it is detected that the headset box is opened, a low-power audio broadcast can be emitted, and when the electronic device receives the low-power audio broadcast, it can establish an LE Audio connection with the Bluetooth headset in response to the low-power audio broadcast.
  • the Bluetooth headset can be placed in the headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, a low-power audio broadcast can be emitted, and when the electronic device receives the low-power audio broadcast, it can establish an LE Audio connection with the Bluetooth headset in response to the low-power audio broadcast.
  • the Bluetooth headset can be placed in the headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, it can detect whether the Bluetooth headset is in a wearing state, and when it is detected that the Bluetooth device is in a wearing state, a low-power audio broadcast can be emitted, and when the electronic device receives the low-power audio broadcast, it can establish an LE Audio connection with the Bluetooth headset in response to the low-power audio broadcast.
  • the wearing information of the Bluetooth headset can be obtained.
  • the wearing information of the Bluetooth headset can be used to indicate whether the Bluetooth headset is in a wearing state or in a non-wearing state.
  • the Bluetooth headset may be provided with a posture sensor, and when the electronic device is in a call state, the wearing information of the Bluetooth headset is detected by the posture sensor.
  • the Bluetooth headset may be provided with a contact sensor, and when the electronic device is in a call state, the wearing information of the Bluetooth headset is detected by the contact sensor.
  • the Bluetooth headset may be provided with a pressure sensor, and when the electronic device is in a call state, the wearing information of the Bluetooth headset is detected by the pressure sensor.
  • the wearing information may also be detected by a combination of a posture sensor, a contact sensor and/or a pressure sensor, which is not limited here.
  • Step S120 If the wearing information indicates that the Bluetooth headset is in a non-wearing state, then stop uploading the collected audio data to the electronic device.
  • the wearing information of the Bluetooth headset when the wearing information of the Bluetooth headset is obtained, it can be determined whether the Bluetooth headset is in a non-wearing state based on the wearing information. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, uploading the collected audio data to the electronic device can be stopped; if the wearing information indicates that the Bluetooth headset is in a wearing state, uploading the collected audio data to the electronic device can continue.
  • the Bluetooth headset includes a first Bluetooth headset (the Bluetooth headset corresponding to the left ear) and a second Bluetooth headset (the Bluetooth headset corresponding to the right ear), if the wearing information indicates that both the first Bluetooth headset and the second Bluetooth headset are in a non-worn state, then stop uploading the audio data collected by the first Bluetooth headset to the electronic device, and stop uploading the audio data collected by the second Bluetooth headset to the electronic device; if the wearing information indicates that the first Bluetooth headset is in a worn state and the second Bluetooth headset is in a non-worn state, then continue to upload the audio data collected by the first Bluetooth headset to the electronic device, and stop uploading the audio data collected by the second Bluetooth headset to the electronic device; if the wearing information indicates that the first Bluetooth headset is in a non-worn state and the second Bluetooth headset is in a worn state, then stop uploading the audio data collected by the first Bluetooth headset to the electronic device, and continue to upload the audio data collected by the second Bluetooth headset to the electronic device.
  • the wearing information indicates that the first Bluetooth headset is in a non-worn state
  • the Bluetooth headset can be pre-set and store the wearing information of the Bluetooth headset in the wearing state as the preset wearing information. Then, when the Bluetooth headset wearing information is obtained, the wearing information can be compared with the preset wearing information to determine whether the wearing information matches the preset wearing information. If it is determined that the wearing information matches the preset wearing information, it can be determined that the Bluetooth headset is in the wearing state; if it is determined that the wearing information does not match the preset wearing information, it can be determined that the Bluetooth headset is in the non-wearing state.
  • stopping uploading the collected audio data to the electronic device may include: muting the audio data collected by the Bluetooth headset, based on which the Bluetooth headset may stop uploading the collected audio data to the electronic device.
  • stopping uploading the collected audio data to the electronic device may include: disconnecting a connection synchronization stream between the Bluetooth headset and the electronic device, based on which the Bluetooth headset may stop uploading the collected audio data to the electronic device.
  • the Bluetooth headset when the Bluetooth headset is paired with other Bluetooth headsets to form a Bluetooth headset group, if the wearing information of the Bluetooth headset indicates that the Bluetooth headset is in a non-wearing state, by stopping uploading the collected audio data to the electronic device, the influence of non-target audio (such as ambient noise, voices of other users) collected by the Bluetooth headset on the audio collected by the entire Bluetooth headset group can be avoided, thereby improving the audio quality finally uploaded to the electronic device.
  • non-target audio such as ambient noise, voices of other users
  • a control method for a device obtains wearing information of a Bluetooth headset when the electronic device is in a call state, and stops uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
  • call adjustments can be adaptively performed to optimize the user's actual call experience and enhance product competitiveness.
  • FIG. 3 shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application.
  • the flow chart shown in Figure 3 will be described in detail below.
  • the control method for the device may specifically include the following steps:
  • Step S210 When the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
  • Step S220 If the wearing information indicates that the Bluetooth headset is in a non-wearing state, then stop uploading the collected audio data to the electronic device.
  • step S210 to step S220 please refer to step S110 to step S120, which will not be repeated here.
  • Step S230 If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, resuming uploading the collected audio data to the electronic device.
  • the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, uploading the collected audio data to the electronic device can be resumed. It can be understood that the resumed uploading of the collected audio data is the audio data collected by the Bluetooth headset at the current moment; if the wearing information indicates that the Bluetooth headset is continuously in a non-wearing state, uploading the collected audio data to the electronic device can be stopped.
  • the Bluetooth headset includes a first Bluetooth headset (the Bluetooth headset corresponding to the left ear) and a second Bluetooth headset (the Bluetooth headset corresponding to the right ear)
  • the wearing information indicates that both the first Bluetooth headset and the second Bluetooth headset are switched from a non-wearing state to a wearing state
  • the uploading of the audio data collected by the first Bluetooth headset to the electronic device is resumed, and the uploading of the audio data collected by the second Bluetooth headset to the electronic device is resumed
  • the wearing information indicates that the first Bluetooth headset is switched from a non-wearing state to a wearing state and the second Bluetooth headset is in a non-wearing state
  • the uploading of the audio data collected by the first Bluetooth headset to the electronic device is resumed, and the uploading of the audio data collected by the second Bluetooth headset to the electronic device is stopped
  • the wearing information indicates that the first Bluetooth headset is in a non-wearing state and the second Bluetooth headset is in a state of switching from a non-wearing state to a wearing state, then the
  • resuming uploading the collected audio data to the electronic device may include: canceling the mute processing of the audio data collected by the Bluetooth headset, based on which the Bluetooth headset may resume uploading the collected audio data to the electronic device.
  • resuming uploading the collected audio data to the electronic device may include: reestablishing a connection synchronization stream between the Bluetooth headset and the electronic device, and then, the Bluetooth headset uploading the audio data collected after establishing the connection synchronization stream to the electronic device, based on this, the Bluetooth headset can resume uploading the collected audio data to the electronic device.
  • the control method of the device obtains the wearing information of the Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the uploading of the collected audio data to the electronic device is stopped. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the uploading of the collected audio data to the electronic device is resumed. Compared with the control method of the device shown in FIG2 , this embodiment also promptly resumes uploading the collected audio data to the electronic device when the Bluetooth headset is switched to a wearing state, which can improve the user's actual call experience and product competitiveness.
  • FIG 4 shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application.
  • the flow chart shown in Figure 4 will be described in detail below.
  • the control method for the device may specifically include the following steps:
  • Step S310 When the electronic device is in a call state, obtaining the wearing information of the Bluetooth headset.
  • step S310 can be found in step S110 , which will not be repeated here.
  • Step S320 If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the playback capability information of the Bluetooth headset is updated to obtain first update information, wherein the playback capability information is used to indicate the audio type supported by the Bluetooth headset for playback, and the first update information is used to indicate that the Bluetooth headset does not support playback of call audio types.
  • the connection synchronization stream between the Bluetooth headset and the electronic device can be disconnected to stop uploading the collected audio data to the electronic device.
  • the Bluetooth headset is provided with playback capability information for the electronic device, wherein the playback capability information is used to indicate to the electronic device the audio types supported by the Bluetooth headset.
  • the audio types supported by the Bluetooth headset may include music media type, conversational type, game type, etc., which are not limited here.
  • the Bluetooth headset when an electronic device needs to make a call via a Bluetooth headset, if the Bluetooth headset can support normal calls (such as when the Bluetooth headset is in a worn state), the Bluetooth headset can send playback capability information to the electronic device to indicate that the Bluetooth headset supports the playback of call audio types, and based on this, the electronic device can make a call via the Bluetooth headset; if the Bluetooth headset does not support normal calls (such as when the Bluetooth headset is not in a worn state), the Bluetooth headset can send playback capability information to the electronic device to indicate that the Bluetooth headset does not support the playback of call audio types, and based on this, the electronic device cannot make a call via the Bluetooth headset.
  • normal calls such as when the Bluetooth headset is in a worn state
  • the Bluetooth headset can send playback capability information to the electronic device to indicate that the Bluetooth headset supports the playback of call audio types, and based on this, the electronic device cannot make a call via the Bluetooth headset.
  • the wearing information indicates that the Bluetooth headset is in a non-wearing state, it can be considered that the Bluetooth headset does not support normal calls, and the playback capability information of the Bluetooth headset can be updated to obtain the first update information, wherein the first update information is used to indicate that the Bluetooth headset does not support the playback of call audio types.
  • the playback capability information can be represented by private protocol parameters. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the private protocol parameters of the Bluetooth headset can be updated. Based on the private protocol parameters, the electronic device can know that the Bluetooth headset does not support the playback of call audio types.
  • the playback capability information can be represented by available audio contexts. If the wearing information indicates that the Bluetooth headset is not in a worn state, the available audio context of the Bluetooth headset can be updated. Based on the available audio context, the electronic device can know that the Bluetooth headset does not support the playback of call audio types.
  • the playback capability information includes an available audio context
  • the wearing information indicates that the Bluetooth headset is in a non-wearing state
  • the state of the call audio type in the available audio context can be updated to an unavailable state to obtain the first update information
  • the electronic device can query the Bluetooth headset's services and characteristics to obtain the Bluetooth headset's "available audio context (such as media, conversational, game, etc.)" and the Bluetooth headset's supported audio stream endpoints (Audio Stream Endpoint, ASE), including Sink ASE and Source ASE, and configure the corresponding ASE to the corresponding state (i.e., QOS Configured state).
  • the Bluetooth headset and the Bluetooth headset have business, a connection synchronization stream will be created between them and the ASE state will become the corresponding state (i.e., Streaming state). After that, audio data can be transmitted in the connection synchronization stream.
  • the Bluetooth headset When the "Available Audio Context" of the Bluetooth headset is "Available” (for example, conversational in available audio contexts is “YES") and is sent to the currently connected electronic device, the currently connected electronic device can establish a connection synchronization stream with the Bluetooth headset; when the "Available Audio Context" of the Bluetooth headset is "Unavailable” (for example, conversational in available audio contexts is "NO”) and is sent to the currently connected electronic device, the electronic device will not establish a connection synchronization stream with the Bluetooth headset.
  • the wearing information indicates that the Bluetooth headset is in a non-wearing state
  • the status of the conversational audio type in the available audio context of the Bluetooth headset can be updated to an unavailable state, so that the electronic device will not establish a connection synchronization stream with the Bluetooth headset to stop uploading the collected audio data to the electronic device.
  • Step S330 Send the first update information to the electronic device to instruct the electronic device to disconnect the synchronization flow between the electronic device and the Bluetooth headset.
  • the Bluetooth headset when it obtains the first update information, it can send the first update information to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the Bluetooth headset and the electronic device. It can be understood that when the connection synchronization stream between the electronic device and the Bluetooth headset is disconnected, the electronic device will not send downlink data to the Bluetooth headset, and the Bluetooth headset will not send uplink data to the electronic device, that is, the Bluetooth headset stops sending the collected audio information (or stops collecting audio information) to the electronic device.
  • the Bluetooth headset is the Bluetooth headset corresponding to the left ear. Assuming that the Bluetooth headset corresponding to the left ear is taken off, when the wearing detection module of the Bluetooth headset finds that the Bluetooth headset is not currently in the wearing mode, the Bluetooth headset can update the available context through the standard command of LE Audio, update the conversational context of the Bluetooth headset to no available, and send the no available context to the electronic device. After the electronic device receives the updated available context notify of the Bluetooth headset, since it is currently in the conversation mode, the electronic device will check whether the conversational context of the Bluetooth headset is in the available state. If not, the electronic device needs to actively disconnect the CIS, and the Bluetooth headset corresponding to the left ear will no longer receive the conversation downlink data, and will no longer upload the conversation uplink data.
  • Step S340 If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the playback capability information of the Bluetooth headset is updated to obtain second update information, wherein the second update information is used to indicate that the Bluetooth headset supports playback of call audio types.
  • the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the playback capability information of the Bluetooth headset can be updated to obtain second update information, wherein the second update information is used to indicate that the Bluetooth headset supports the playback of call audio types.
  • the wearing information indicates that the Bluetooth headset switches from a non-wearing state to a wearing state
  • the playback capability information of the Bluetooth headset can be updated to obtain second update information, wherein the second update information indicates that the Bluetooth headset supports the playback of call audio types.
  • the playback capability information can be represented by private protocol parameters. If the wearing information indicates that the Bluetooth headset switches from a non-wearing state to a wearing state, the private protocol parameters of the Bluetooth headset can be updated. Based on the private protocol parameters, the electronic device can know that the Bluetooth headset supports the playback of call audio types.
  • the playback capability information can be represented by an available audio context. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the available audio context of the Bluetooth headset can be updated. Based on the available audio context, the electronic device can know that the Bluetooth headset supports the playback of call audio types.
  • the playback capability information includes an available audio context
  • the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state
  • the state information of the call audio type in the available audio context may be updated to an unavailable state. state, and obtain the second update information.
  • Step S350 Send the second update information to the electronic device.
  • the Bluetooth headset when the Bluetooth headset obtains the second update information, it can send the second update information to the electronic device.
  • the electronic device when it receives the second update information uploaded by the Bluetooth headset, it can detect whether it is still in a call state. If it is still in a call state, the electronic device can establish a connection synchronization stream with the Bluetooth headset based on the second update information. If it is not in a call state, the electronic device does not establish a connection synchronization stream with the Bluetooth headset. It can be understood that when the connection synchronization stream between the electronic device and the Bluetooth headset is established, the electronic device will send downlink data to the Bluetooth headset, and the Bluetooth headset will also send uplink data to the electronic device, that is, the Bluetooth headset resumes sending the collected audio information to the electronic device.
  • the Bluetooth headset is the Bluetooth headset corresponding to the left ear.
  • the wearing detection module of the Bluetooth headset corresponding to the headset finds that it is currently in wearing mode.
  • the headset updates the available context through the LE Audio standard command, updates the conversational context of the Bluetooth headset to available, and sends the available context to the electronic device.
  • the electronic device receives the updated available context notify from the Bluetooth headset, if it is still in the conversation mode, the electronic device checks whether the conversational context of the Bluetooth headset is in the available state. If so, the electronic device re-establishes the CIS, and the Bluetooth headset resumes normal conversation uplink and downlink. If the electronic device is not currently in the conversation mode, the electronic device does not need to re-establish the CIS with the Bluetooth headset.
  • the control method of a device when the electronic device is in a call state, obtains the wearing information of the Bluetooth headset, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, then updates the playback capability information of the Bluetooth headset to obtain the first update information, wherein the playback capability information is used to indicate the audio type supported by the Bluetooth headset, the first update information is used to indicate that the Bluetooth headset does not support the playback of the call audio type, sends the first update information to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the Bluetooth headset, if the wearing information indicates that the Bluetooth headset is switched from the non-wearing state to the wearing state, then updates the playback capability information of the Bluetooth headset to obtain the second update information, wherein the second update information is used to indicate that the Bluetooth headset supports the playback of the call audio type, and sends the second update information to the electronic device.
  • this embodiment also updates its playback capability information to the electronic device through the headset to realize the disconnection or establishment of the connection synchronization stream between the Bluetooth headset and the electronic device, which can reduce the power consumption of the Bluetooth headset and the electronic device, optimize the actual call experience of the user, and further enhance the competitiveness of the product.
  • FIG. 5 shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application.
  • the flow chart shown in Figure 5 will be described in detail below.
  • the control method for the device may specifically include the following steps:
  • Step S410 When the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
  • step S410 For the detailed description of step S410, please refer to step S110, which will not be repeated here.
  • Step S420 If the wearing information indicates that the Bluetooth headset is in a non-wearing state, disconnecting the synchronization flow between the Bluetooth headset and the electronic device.
  • the Bluetooth headset can actively disconnect the connection synchronization stream with the electronic device.
  • the Bluetooth headset can actively initiate a CIS disconnection, based on which the Bluetooth headset no longer receives call downlink data, and no longer sends call uplink data.
  • Step S430 Stop reporting the coding capability information related to the call to the electronic device, wherein the coding capability information is used to indicate the audio type that the Bluetooth headset supports coding.
  • the Bluetooth headset is provided with coding capability information for the electronic device, wherein the coding capability information is used to indicate to the electronic device the audio types that the Bluetooth headset supports for coding.
  • the audio types that the Bluetooth headset supports for coding may include music media type, call convergence type, game game type, etc., which are not limited here.
  • the Bluetooth headset when an electronic device needs to make a call through a Bluetooth headset, if the Bluetooth headset can support normal calls (such as the Bluetooth headset is in a worn state), the Bluetooth headset can report its coding capability information related to the call to the electronic device, based on which the electronic device can make the call through the Bluetooth headset; if the Bluetooth headset does not support normal calls (such as the Bluetooth headset is not in a worn state), the Bluetooth headset can stop reporting the coding capability information related to the call to the electronic device, based on which the electronic device cannot make a call through the Bluetooth headset.
  • normal calls such as the Bluetooth headset is in a worn state
  • the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, it can be considered that the Bluetooth headset does not support normal calls, and the reporting of coding capability information related to the call to the electronic device can be stopped.
  • a first encoder reconfiguration codec reconfig can be initiated to stop reporting call-related coding capability information to the electronic device.
  • the Bluetooth headset when the wearing detection module of the Bluetooth headset finds that it is not in wearing mode, the Bluetooth headset can actively initiate CIS disconnection, and Bluetooth no longer receives call downlink data and no longer sends call uplink data.
  • the Bluetooth headset in order to prevent the electronic device from re-establishing CIS, the Bluetooth headset actively sends a command through the LE Audio standard. Initiate a codec reconfig and cancel reporting of all call-related coding capabilities (because the sampling rates and other parameters supported by calls and media are different). That is, the Bluetooth headset only reports coding capabilities related to media such as music.
  • Step S440 If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, then the coding capability information related to the call is resumed to be reported to the electronic device.
  • the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the coding capability information related to the call can be resumed to be reported to the electronic device.
  • the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, it can be considered that the Bluetooth headset supports normal calls, and the coding capability information related to the call can be restored and reported to the electronic device.
  • a second encoder reconfiguration codec reconfig can be initiated to restore reporting of call-related coding capability information to the electronic device.
  • the electronic device when it receives the coding capability information related to the call reported by the Bluetooth headset, it can detect whether it is still in a call state. If it is still in a call state, the electronic device can establish a connection synchronization stream with the Bluetooth headset based on the coding capability information; if it is not in a call state, the electronic device does not establish a connection synchronization stream with the Bluetooth headset.
  • the Bluetooth headset is a Bluetooth headset corresponding to the left ear
  • the wearing detection module of the Bluetooth headset finds that it is currently in wearing mode.
  • the Bluetooth headset re-initiates a codec reconfiguration through the LE Audio standard command, re-reports the call-related coding capabilities and completes the configuration.
  • the electronic device After the electronic device finds that the Bluetooth headset has reconfigured the call-related parameters, if it is still in call mode, the electronic device re-establishes the CIS, and the Bluetooth headset resumes normal call uplink and downlink. If the electronic device is not currently in call mode, the electronic device does not need to re-establish the CIS with the Bluetooth headset.
  • a control method for a device obtains the wearing information of a Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the connection synchronization flow between the Bluetooth headset and the electronic device is disconnected, and the reporting of the coding capability information related to the call to the electronic device is stopped, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth device for encoding. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the reporting of the coding capability information related to the call to the electronic device is resumed.
  • this embodiment also reports or stops reporting the coding capability information related to the call to the electronic device through the headset to disconnect or establish the connection synchronization flow between the Bluetooth headset and the electronic device, which can reduce the power consumption of the Bluetooth headset and the electronic device, optimize the actual call experience of the user, and further enhance the competitiveness of the product.
  • FIG. 6 shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application.
  • the flow chart shown in Figure 6 will be described in detail below.
  • the control method for the device may specifically include the following steps:
  • Step S510 When the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
  • step S510 For the detailed description of step S510, please refer to step S110, which will not be repeated here.
  • Step S520 If the wearing information indicates that the Bluetooth headset is in a non-wearing state, stop reporting the coding capability information related to the call to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the Bluetooth headset, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth headset for encoding.
  • the Bluetooth headset can stop reporting the coding capability information related to the call. Accordingly, the electronic device can actively disconnect the connection synchronization stream with the Bluetooth headset if it does not receive the coding capability information related to the call reported by the Bluetooth headset. Based on this, the Bluetooth headset no longer receives the call downlink data, nor sends the call uplink data.
  • Step S530 If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, resume reporting the coding capability information related to the call to the electronic device to instruct the electronic device to establish a connection synchronization flow with the Bluetooth headset.
  • step S530 For the detailed description of step S530, please refer to step S440, which will not be repeated here.
  • An embodiment of the present application provides a control method for a device, which obtains wearing information of a Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the reporting of coding capability information related to the call to the electronic device is stopped to instruct the electronic device to disconnect the connection synchronization stream with the Bluetooth headset, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth headset for encoding. If the wearing information indicates that the Bluetooth headset switches from a non-wearing state to a wearing state, the reporting of coding capability information related to the call to the electronic device is resumed. Compared with the control method for the device shown in FIG.
  • the present embodiment also reports or stops reporting coding capability information related to the call to the electronic device through the headset to achieve communication between the Bluetooth headset and the electronic device.
  • the disconnection or establishment of the synchronous flow of connection between them can reduce the power consumption of Bluetooth headsets and electronic devices, optimize the user's actual call experience, and further enhance product competitiveness.
  • FIG. 7 shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application.
  • the flow chart shown in Figure 7 will be described in detail below.
  • the control method for the device may specifically include the following steps:
  • Step S610 When the electronic device is in a call state, obtaining the wearing information of the Bluetooth headset.
  • step S610 can be found in step S110 , which will not be repeated here.
  • Step S620 If the wearing information indicates that the Bluetooth headset is in a non-wearing state, mute processing is performed on the collected audio data to obtain mute data.
  • the collected audio data can be muted to obtain muted data, thereby reducing the impact of the listening experience caused by the microphone mistakenly collecting environmental noise.
  • Figure 8 shows a schematic flow chart of step S620 of the control method of the device shown in Figure 7 of the present application.
  • the flow chart shown in Figure 8 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S621 If the wearing information indicates that the Bluetooth headset is in a non-wearing state, determine the duration of the Bluetooth headset being in the non-wearing state.
  • the duration of the Bluetooth headset in the non-wearing state can be determined.
  • the duration of the Bluetooth headset in the wearing state can be determined by a timer of the Bluetooth headset. The Bluetooth headset can detect whether it is in a wearing state, and if it is detected that it is beginning to be in a non-wearing state, the timer can be started to detect the duration of the Bluetooth headset in the non-wearing state.
  • Step S622 If the duration does not reach the duration threshold, mute processing is performed on the collected audio data to obtain mute data.
  • the Bluetooth headset may be pre-set and store a duration threshold, wherein the duration threshold is used as a basis for determining the duration of the Bluetooth headset being in a non-wearing state. Therefore, in this embodiment, when determining the duration of the Bluetooth headset being in a non-wearing state, the duration of the Bluetooth headset being in a non-wearing state may be compared with the duration threshold to determine whether the duration reaches the duration threshold.
  • the collected audio data can be muted and the connection synchronization stream between the electronic device and the Bluetooth headset can be maintained to achieve subsequent rapid resumption of the call.
  • Step S623 If the duration reaches a duration threshold, disconnecting the connection synchronization flow between the Bluetooth headset and the electronic device.
  • the connection synchronization stream between the Bluetooth headset and the electronic device can be disconnected to reduce the power consumption of the electronic device and the Bluetooth headset.
  • Step S630 Upload the mute data to the electronic device.
  • the mute data when the mute data is obtained, the mute data can be uploaded to the electronic device.
  • This method can keep the connection synchronization stream uninterrupted, thereby improving the efficiency of subsequent restoration of call quality.
  • this method can solve the problem of call quality interference caused by continuing to pick up sound when the Bluetooth headset is not in a wearing state.
  • the Bluetooth headset is the Bluetooth headset corresponding to the left ear. Assume that the Bluetooth headset corresponding to the left ear is taken off at this time.
  • the wearing detection module of the Bluetooth headset finds that it is not in the wearing mode, the Bluetooth headset mutes all the sounds collected by the mic.
  • the subsequent CIS call uplink is muted data, which can reduce the impact of the listening experience caused by the mic's mistaken collection of environmental noise.
  • Step S640 If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, canceling the mute processing of the collected audio data.
  • the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the mute processing of the collected audio data can be canceled, and at this time, the audio data to be uploaded by the Bluetooth headset is the collected audio data.
  • Step S650 Upload the collected audio data to the electronic device.
  • the Bluetooth headset when the Bluetooth headset collects audio data, the collected audio data can be uploaded to the electronic device.
  • the Bluetooth headset is a Bluetooth headset corresponding to the left ear
  • the wearing detection module of the Bluetooth headset finds that it is currently in the wearing mode, and then cancels the mute processing of the mic data, that is, restores the normal call mode.
  • the control method of a device obtains the wearing information of a Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the collected audio data is muted to obtain the muted data, and the muted data is uploaded to the electronic device. If the wearing information indicates that the Bluetooth headset is switched from the non-wearing state to the Compared with the control method of the device shown in FIG2 , this embodiment also mutes or does not mute the collected audio data according to the wearing information of the Bluetooth headset, which can solve the problem of call interference without the electronic device noticing and improve the user's call experience.
  • FIG. 9 shows a block diagram of a control device of a device provided in an embodiment of the present application.
  • the control device 300 of the device is applied to the above-mentioned Bluetooth headset, and the Bluetooth headset establishes a connection synchronization flow with the electronic device.
  • the control device 300 of the device includes: a wearing information acquisition module 310 and a control module 320 of the device, wherein:
  • the wearing information acquisition module 310 is used to acquire the wearing information of the Bluetooth headset when the electronic device is in a call state.
  • the control module 320 of the device is used to stop uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
  • control module 320 of the device includes: a connection synchronization stream disconnection submodule, wherein:
  • connection synchronization stream disconnection submodule is used to disconnect the connection synchronization stream between the Bluetooth headset and the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state, so as to stop uploading the collected audio data to the electronic device.
  • control module 320 of the device includes: a silent data acquisition submodule and a silent data upload submodule, wherein:
  • the mute data acquisition submodule is used to perform mute processing on the collected audio data to obtain mute data if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
  • the silence data obtaining submodule includes: a duration determining unit, a silence data obtaining unit and a third connection synchronization stream disconnecting unit, wherein:
  • a duration determining unit is used to determine the duration of the Bluetooth headset being in the non-wearing state if the wearing information indicates that the Bluetooth headset is in the non-wearing state.
  • the silence data obtaining unit is used to perform silence processing on the collected audio data to obtain silence data if the duration does not reach the duration threshold.
  • the third connection synchronization stream disconnection unit is used to disconnect the connection synchronization stream between the Bluetooth headset and the electronic device if the duration reaches a duration threshold.
  • the mute data uploading submodule is used to upload the mute data to the electronic device.
  • control module 320 of the device includes: a mute data canceling submodule and an audio data uploading submodule, wherein:
  • the mute processing canceling submodule is used to cancel the mute processing of the collected audio data if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state.
  • the audio data uploading submodule is used to upload the collected audio data to the electronic device.
  • connection synchronization stream disconnection submodule/third connection synchronization stream disconnection unit includes: a first update information obtaining unit and a first connection synchronization stream disconnection unit, wherein:
  • the first update information obtaining unit is used to update the playback capability information of the Bluetooth headset to obtain first update information, wherein the playback capability information is used to indicate the audio type supported by the Bluetooth headset for playback, and the first update information is used to indicate that the Bluetooth headset does not support the playback of call audio types.
  • the first update information obtaining unit includes: a first update information obtaining subunit, wherein:
  • the first update information obtaining subunit is used to update the state information of the call audio type in the available audio context of the Bluetooth headset to an unavailable state, and obtain the first update information.
  • the first connection synchronization stream disconnection unit is used to send the first update information to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the electronic device and the Bluetooth headset.
  • connection synchronization stream disconnection submodule includes: a second update information obtaining unit and a first connection synchronization stream establishing unit, wherein:
  • the second update information obtaining unit is used to update the playback capability information of the Bluetooth headset to obtain second update information, wherein the second update information is used to indicate that the Bluetooth headset supports the playback of call audio types.
  • the second update information obtaining unit includes: a second update information obtaining subunit, wherein:
  • the second update information obtaining subunit is used to update the state information of the call audio type in the available audio context of the Bluetooth headset to an available state if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, and obtain the second update information.
  • the first connection synchronization flow establishing unit is used to send the second update information to the electronic device.
  • connection synchronization stream disconnection submodule includes: a second connection synchronization stream disconnection unit and a third connection synchronization stream disconnection unit, wherein:
  • the second connection synchronization stream disconnection unit is used to disconnect the connection synchronization stream between the electronic device and stop reporting the coding capability information related to the call to the electronic device, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth headset for coding.
  • the third connection synchronization flow disconnection unit is used to stop reporting the coding capability information related to the call to the electronic device, so as to instruct the electronic device to disconnect the connection synchronization flow between the electronic device and the Bluetooth headset, wherein the coding capability information is used to indicate that the Bluetooth headset supports coding The audio type.
  • connection synchronization stream disconnection unit/the third connection synchronization stream disconnection unit includes: a coding capability information stopping reporting subunit, wherein:
  • the coding capability information stopping reporting subunit is used to initiate the reconfiguration of the first encoder to stop reporting the coding capability information related to the call to the electronic device.
  • connection synchronization flow disconnection submodule includes: a second connection synchronization flow establishment unit, wherein:
  • the second connection synchronization flow establishing unit is used to resume reporting the coding capability information related to the call to the electronic device if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state.
  • the second connection synchronization flow establishing unit includes: a coding capability information recovery reporting subunit, wherein:
  • the coding capability information recovery reporting subunit initiates reconfiguration of the second encoder to recover and report the coding capability information related to the call to the electronic device.
  • control device 300 of the device further includes: a data uploading module, wherein:
  • the data uploading module is used to resume uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state.
  • the coupling between modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software functional modules.
  • the Bluetooth headset 100 can be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc.
  • the Bluetooth headset 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more applications, wherein one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the aforementioned method embodiment.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire Bluetooth headset 100, and executes various functions and processes data of the Bluetooth headset 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but implemented separately through a communication chip.
  • the memory 120 may include a random access memory (RAM) or a read-only memory (ROM).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.
  • the data storage area may also store data created by the Bluetooth headset 100 during use (such as a phone book, audio and video data, chat record data), etc.
  • FIG 11 shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application.
  • the computer-readable medium 400 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
  • the computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM.
  • the computer-readable storage medium 400 comprises a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 400 has storage space for program code 410 for executing any method steps in the above method. These program codes may be read from or written to one or more computer program products.
  • the program code 410 may be compressed, for example, in a suitable form.
  • control method, apparatus, Bluetooth headset and storage medium of the device provided in the embodiments of the present application are applied to a Bluetooth headset, and the Bluetooth headset establishes a connection synchronization stream with the electronic device.
  • the wearing information of the Bluetooth headset is obtained. If the wearing information indicates that the Bluetooth headset is not in a worn state, the uploading of the collected audio data to the electronic device is stopped, so that the call can be adaptively adjusted to optimize the user's actual call experience and provide a better call experience. Improve product competitiveness.

Abstract

The present application relates to the technical field of electronic devices, and discloses a device control method and apparatus, a Bluetooth earphone, and a storage medium. The method is applied to a Bluetooth earphone, and a connected isochronous stream is established between the Bluetooth earphone and an electronic device. The method comprises: when an electronic device is in a call state, acquiring wearing information of a Bluetooth earphone, and if the wearing information indicates that the Bluetooth earphone is in a non-wearing state, stopping uploading collected audio data to the electronic device. According to the present application, when an electronic device is in a call state, if a Bluetooth earphone is in a non-wearing state, collected audio data is stopped from being uploaded to the electronic device, such that call adjustment can be adaptively performed, the actual call experience of users is optimized, and the product competitiveness is improved.

Description

设备的控制方法、装置、蓝牙耳机以及存储介质Device control method, device, Bluetooth headset and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2022年09月30日提交的申请号为CN202211211519.5的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese application No. CN202211211519.5, filed on September 30, 2022, the entire contents of which are hereby incorporated by reference for all purposes.
技术领域Technical Field
本申请涉及电子设备技术领域,更具体地,涉及一种设备的控制方法、装置、蓝牙耳机以及存储介质。The present application relates to the technical field of electronic equipment, and more specifically, to a control method and device for a device, a Bluetooth headset, and a storage medium.
背景技术Background technique
随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。目前,电子设备可以通过蓝牙耳机参与语音通话。With the development of science and technology, electronic devices are used more and more widely and have more and more functions, and have become one of the necessities in people's daily life. At present, electronic devices can participate in voice calls through Bluetooth headsets.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种设备的控制方法、装置、蓝牙耳机以及存储介质,以解决上述问题。In view of the above problems, the present application proposes a device control method, apparatus, Bluetooth headset and storage medium to solve the above problems.
第一方面,本申请实施例提供了一种设备的控制方法,应用于蓝牙耳机,所述蓝牙耳机与电子设备建立有连接同步流,所述方法包括:在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息;若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备。In a first aspect, an embodiment of the present application provides a device control method applied to a Bluetooth headset, wherein a connection synchronization stream is established with an electronic device, and the method comprises: when the electronic device is in a call state, obtaining the wearing information of the Bluetooth headset; if the wearing information indicates that the Bluetooth headset is in a non-wearing state, stopping uploading the collected audio data to the electronic device.
第二方面,本申请实施例提供了一种设备的控制装置,应用于蓝牙耳机,所述蓝牙耳机与电子设备建立有连接同步流,所述装置包括:佩戴信息获取模块,用于在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息;设备的控制模块,用于若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备。In a second aspect, an embodiment of the present application provides a control device for a device, which is applied to a Bluetooth headset, and the Bluetooth headset establishes a connection synchronization stream with the electronic device. The device includes: a wearing information acquisition module, which is used to obtain the wearing information of the Bluetooth headset when the electronic device is in a call state; and a control module of the device, which is used to stop uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了可用于本申请实施例提供的设备的控制方法的应用环境示意图;FIG1 is a schematic diagram showing an application environment of a control method for a device provided in an embodiment of the present application;
图2示出了本申请一实施例提供的设备的控制方法的流程示意图;FIG2 is a schematic diagram showing a flow chart of a control method for a device provided in an embodiment of the present application;
图3示出了本申请一实施例提供的设备的控制方法的流程示意图;FIG3 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application;
图4示出了本申请一实施例提供的设备的控制方法的流程示意图;FIG4 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application;
图5示出了本申请一实施例提供的设备的控制方法的流程示意图;FIG5 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application;
图6示出了本申请一实施例提供的设备的控制方法的流程示意图;FIG6 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application;
图7示出了本申请一实施例提供的设备的控制方法的流程示意图;FIG7 is a schematic diagram showing a flow chart of a method for controlling a device provided in an embodiment of the present application;
图8示出了本申请的图7所示的设备的控制方法的步骤S620的流程示意图;FIG8 is a schematic flow chart showing step S620 of the control method of the device shown in FIG7 of the present application;
图9示出了本申请一实施例提供的设备的控制装置的模块框图;FIG9 shows a module block diagram of a control device of a device provided by an embodiment of the present application;
图10示出了本申请实施例用于执行根据本申请实施例的设备的控制方法的电子设备的框图;FIG10 shows a block diagram of an electronic device for executing a control method of a device according to an embodiment of the present application;
图11示出了本申请实施例的用于保存或者携带实现根据本申请实施例的设备的控制方法的程序代码的存储单元。FIG. 11 shows a storage unit for storing or carrying a program code for implementing a control method for a device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
蓝牙低功耗音频(Bluetooth Low Energy Audio,LE-Audio)是蓝牙一项新的音频传输技术,给人们带来更低功耗、更低成本、更高质量、以及更低延迟的无线音频服务,而蓝牙耳机(真无线蓝牙耳机(True Wireless Stereo,TWS))是当前市场最火的蓝牙设备之一,是使用LE-Audio技术最前沿的产品之一。LE-Audio在设计上,电子设备与左耳对应的蓝牙耳机和右耳对应的蓝牙耳机会分别保持低功耗蓝牙BLE连接,电子设备与左耳对应的蓝牙耳机和右耳对应的蓝牙耳机独立进行数据传输和通信,而数据传输的通道就是连接同步流(Connected Isochronous Stream,CIS)。Bluetooth Low Energy Audio (LE-Audio) is a new audio transmission technology of Bluetooth, which provides people with wireless audio services with lower power consumption, lower cost, higher quality, and lower latency. Bluetooth headsets (True Wireless Stereo (TWS)) are one of the hottest Bluetooth devices on the market and one of the most cutting-edge products using LE-Audio technology. In terms of LE-Audio design, the electronic device and the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear will maintain a low-power Bluetooth BLE connection respectively. The electronic device and the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear independently transmit and communicate data, and the data transmission channel is the Connected Isochronous Stream (CIS).
其中,在LE-Audio的通话场景下,电子设备(如智能手机)与左耳对应的蓝牙耳机和右耳对应的蓝牙耳机分别保持LE Audio的连接。当电子设备接收到其他电子设备的来电或者电子设备向其 他电子设备去电时,由于此时电子设备与左耳对应的蓝牙耳机和右耳对应的蓝牙耳机分别保持LE Audio的连接,所以电子设备与左耳对应的蓝牙耳机和右耳对应的蓝牙耳机分别建立CIS连接,进行通话下行数据的传输。蓝牙耳机在CIS连接建立之后,由于此时是通话场景,所以蓝牙耳机会各自打开麦克风进行人声录制并且进行通话上行降噪处理算法的处理,数据处理后,蓝牙耳机再通过CIS将上行数据传输给电子设备,其中,左耳对应的蓝牙耳机传输左声道,右耳对应的蓝牙耳机传输右声道。电子设备在接收左耳对应的蓝牙耳机和右耳对应的蓝牙耳机的通话上行数据后,会将左右耳不同声道的数据进行混音处理,并通过数据网络传输给其他电子设备。In the LE-Audio call scenario, the electronic device (such as a smartphone) maintains LE Audio connections with the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear. When the other electronic device is powered off, since the electronic device maintains LE Audio connection with the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear respectively, the electronic device establishes CIS connection with the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear respectively to transmit the call downlink data. After the Bluetooth headset is connected to the CIS, since it is a call scene at this time, the Bluetooth headset will turn on the microphone to record the human voice and process the call uplink noise reduction processing algorithm. After the data is processed, the Bluetooth headset transmits the uplink data to the electronic device through the CIS, wherein the Bluetooth headset corresponding to the left ear transmits the left channel, and the Bluetooth headset corresponding to the right ear transmits the right channel. After receiving the call uplink data from the Bluetooth headset corresponding to the left ear and the Bluetooth headset corresponding to the right ear, the electronic device will mix the data of different channels of the left and right ears and transmit them to other electronic devices through the data network.
当通话过程中出现单耳摘下的场景时,如果该蓝牙耳机与电子设备的CIS不断连,在不做任何处理的情况下,蓝牙耳机端还会继续打开麦克风进行数据上行处理,但由于此时没有人声录制,麦克风录制的都是周围干扰的环境音,会干扰电子设备的通话效果。如果该蓝牙耳机与电子设备的CIS断连,当蓝牙耳机重新佩戴上,当前的LE-Audio协议上并没有定义蓝牙而今日端如何主动让电子设备重新创建CIS的方法,因此,会导致蓝牙耳机重新佩戴时出现通话单耳无声的情况。When one ear is removed during a call, if the Bluetooth headset is not connected to the CIS of the electronic device, the Bluetooth headset will continue to turn on the microphone for uplink data processing without any processing. However, since there is no voice recording at this time, the microphone records the surrounding noise, which will interfere with the call effect of the electronic device. If the Bluetooth headset is disconnected from the CIS of the electronic device, when the Bluetooth headset is put on again, the current LE-Audio protocol does not define how the Bluetooth end can actively let the electronic device re-create the CIS. Therefore, when the Bluetooth headset is put on again, one ear will be silent during the call.
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的设备的控制方法、装置、蓝牙耳机以及存储介质,通过在电子设备处于通话状态的情况下,若蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至该电子设备,从而可以自适应地进行通话调整,优化用户实际的通话体验,提升产品竞争力。其中,具体的设备的控制方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor has discovered after long-term research and proposed the control method, device, Bluetooth headset and storage medium of the device provided in the embodiment of the present application. When the electronic device is in a call state, if the Bluetooth headset is not worn, the uploaded audio data collected will be stopped to the electronic device, so that the call can be adjusted adaptively, the actual call experience of the user can be optimized, and the competitiveness of the product can be improved. Among them, the specific control method of the device is described in detail in the subsequent embodiments.
下面将针对可用于本申请实施例提供的设备的控制方法的应用环境进行说明。The following describes an application environment for the control method that can be used for the device provided in the embodiments of the present application.
请参阅图1,图1示出了可用于本申请实施例提供的设备的控制方法的应用环境示意图。如图1所示,其包括电子设备200和蓝牙耳机100。其中,电子设备200可以包括智能手机、平板电脑、笔记本电脑、个人电脑、穿戴式电子设备等可以知道语音通话的设备,在此不做限定,蓝牙耳机100可以包括一只蓝牙耳机,也可以包括一对蓝牙耳机,且在蓝牙耳机100为一只蓝牙耳机时,该蓝牙耳机可以为左耳对应的蓝牙耳机,也可以为右耳对应的蓝牙耳机,在此不做限定。作为一种方式,电子设备200和蓝牙耳机100之间可以建立有BLE连接,基于此,电子设备200和蓝牙耳机100之间可以进行信息交互;电子设备200和蓝牙耳机100之间可以建立有CIS连接,基于此,电子设备200和蓝牙耳机100之间可以进行通话数据的传输。Please refer to Figure 1, which shows a schematic diagram of an application environment of a control method for a device provided in an embodiment of the present application. As shown in Figure 1, it includes an electronic device 200 and a Bluetooth headset 100. Among them, the electronic device 200 may include a smart phone, a tablet computer, a laptop computer, a personal computer, a wearable electronic device, etc., which can know a voice call, and is not limited here. The Bluetooth headset 100 may include a Bluetooth headset, or a pair of Bluetooth headsets, and when the Bluetooth headset 100 is a Bluetooth headset, the Bluetooth headset may be a Bluetooth headset corresponding to the left ear, or a Bluetooth headset corresponding to the right ear, and is not limited here. As a way, a BLE connection may be established between the electronic device 200 and the Bluetooth headset 100, based on which information exchange may be performed between the electronic device 200 and the Bluetooth headset 100; a CIS connection may be established between the electronic device 200 and the Bluetooth headset 100, based on which call data transmission may be performed between the electronic device 200 and the Bluetooth headset 100.
其中,蓝牙耳机100为支持LE Audio的蓝牙设备,电子设备200为支持LE Audio的电子设备。作为一种方式,蓝牙耳机100支持LE Audio的服务端角色(unicast server),电子设备200支持LE Audio的客户端角色(unicast client)。其中,unicast client为LE Audio BAP角色中的一种,主要用于接收发现unicast server的广播和建立与unicast server的连接,unicast server为LE Audio BAP角色中的另一种,主要用于发射广播和建立与unicast client的连接。The Bluetooth headset 100 is a Bluetooth device supporting LE Audio, and the electronic device 200 is an electronic device supporting LE Audio. As a method, the Bluetooth headset 100 supports the server role (unicast server) of LE Audio, and the electronic device 200 supports the client role (unicast client) of LE Audio. The unicast client is one of the LE Audio BAP roles, which is mainly used to receive the broadcast of the unicast server and establish a connection with the unicast server. The unicast server is another LE Audio BAP role, which is mainly used to transmit the broadcast and establish a connection with the unicast client.
请参阅图2,图2示出了本申请一实施例提供的设备的控制方法的流程示意图。该方法用于通过在电子设备处于通话状态的情况下,若蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至该电子设备,从而可以自适应地进行通话调整,优化用户实际的通话体验,提升产品竞争力。在具体的实施例中,该设备的控制方法应用于如图9所示的设备的控制装置300以及配置有设备的控制装置300的蓝牙耳机100(图10)。下面将以蓝牙耳机为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的蓝牙耳机可以包括一只蓝牙耳机、也可以包括一对蓝牙耳机,甚至多个蓝牙耳机,且在蓝牙耳机为一只蓝牙耳机时,而且可以与其他蓝牙耳机配对构成蓝牙耳机组;该蓝牙耳机可以为左耳机,也可以为右耳机,在此不做限定。下面将针对图2所示的流程进行详细的阐述,在本实施例中,该蓝牙耳机与电子设备建立有连接同步流。所述设备的控制方法具体可以包括以下步骤:Please refer to Figure 2, which shows a flow chart of a control method of a device provided by an embodiment of the present application. The method is used to stop uploading the collected audio data to the electronic device if the Bluetooth headset is not in the wearing state when the electronic device is in the call state, so that the call can be adjusted adaptively, the actual call experience of the user can be optimized, and the competitiveness of the product can be improved. In a specific embodiment, the control method of the device is applied to the control device 300 of the device as shown in Figure 9 and the Bluetooth headset 100 (Figure 10) equipped with the control device 300 of the device. The following will take the Bluetooth headset as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the Bluetooth headset used in this embodiment can include one Bluetooth headset, a pair of Bluetooth headsets, or even multiple Bluetooth headsets, and when the Bluetooth headset is one Bluetooth headset, it can be paired with other Bluetooth headsets to form a Bluetooth headset group; the Bluetooth headset can be a left headset or a right headset, which is not limited here. The following will be described in detail with respect to the process shown in Figure 2. In this embodiment, the Bluetooth headset and the electronic device establish a connection synchronization stream. The control method of the device can specifically include the following steps:
步骤S110:在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息。Step S110: when the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
在本实施例中,蓝牙耳机与电子设备建立有连接同步流。其中,在蓝牙耳机为一对蓝牙耳机时,则电子设备与一对蓝牙耳机中的每只蓝牙耳机均建立有连接同步流。In this embodiment, a connection synchronization flow is established between the Bluetooth headset and the electronic device. Wherein, when the Bluetooth headset is a pair of Bluetooth headsets, a connection synchronization flow is established between the electronic device and each Bluetooth headset in the pair of Bluetooth headsets.
在一些实施方式中,电子设备与蓝牙耳机可以建立有低功耗蓝牙BLE连接。在电子设备接收到其他电子设备的来电或者向其他电子设备去电时,则电子设备可以与蓝牙耳机建立连接同步流。其中,该电子设备可以向蓝牙耳机发起同步流连接请求,蓝牙耳机可以响应于该同步流连接请求,建立与该电子设备之间的连接同步流。基于电子设备与蓝牙耳机之间的连接同步流,电子设备可以将下行通话语音传输至蓝牙耳机,蓝牙耳机可以将上行通话语音传输至电子设备。In some embodiments, a low-power Bluetooth BLE connection can be established between an electronic device and a Bluetooth headset. When an electronic device receives an incoming call from another electronic device or makes an outgoing call to another electronic device, the electronic device can establish a connection synchronization stream with the Bluetooth headset. Among them, the electronic device can initiate a synchronization stream connection request to the Bluetooth headset, and the Bluetooth headset can establish a connection synchronization stream with the electronic device in response to the synchronization stream connection request. Based on the connection synchronization stream between the electronic device and the Bluetooth headset, the electronic device can transmit downlink call voice to the Bluetooth headset, and the Bluetooth headset can transmit uplink call voice to the electronic device.
作为一种方式,蓝牙耳机可以放置于耳机盒中,当检测到耳机盒开盖时,则可以建立该电子设备与蓝牙耳机之间的LE Audio连接。作为又一种方式,蓝牙耳机可以放置于耳机盒中,当检测到蓝牙耳机从耳机盒中取出时,则可以建立该电子设备与蓝牙耳机之间的LE Audio连接。作为再一种方式,蓝牙耳机可以放置于耳机盒中,当检测到蓝牙耳机从耳机盒中取出时,则可以检测该蓝牙耳机是否处于佩戴状态,当检测到该蓝牙耳机处于佩戴状态时,则可以建立该电子设备与蓝牙耳机之间 的LE Audio连接。As one way, a Bluetooth headset can be placed in a headset box, and when it is detected that the headset box is opened, an LE Audio connection can be established between the electronic device and the Bluetooth headset. As another way, a Bluetooth headset can be placed in a headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, an LE Audio connection can be established between the electronic device and the Bluetooth headset. As another way, a Bluetooth headset can be placed in a headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, it can be detected whether the Bluetooth headset is in a wearing state, and when it is detected that the Bluetooth headset is in a wearing state, an LE Audio connection can be established between the electronic device and the Bluetooth headset. LE Audio connection.
在本实施例中,蓝牙耳机可以发射低功耗音频广播,电子设备可以接收到该蓝牙耳机发射的低功耗音频广播,以从低功耗音频广播中获取该蓝牙耳机的蓝牙地址等信息,之后,基于该蓝牙耳机的蓝牙地址等信息建立与该蓝牙耳机的LE Audio连接。In this embodiment, the Bluetooth headset can transmit a low-power audio broadcast, and the electronic device can receive the low-power audio broadcast transmitted by the Bluetooth headset to obtain information such as the Bluetooth address of the Bluetooth headset from the low-power audio broadcast, and then establish an LE Audio connection with the Bluetooth headset based on the Bluetooth address of the Bluetooth headset and other information.
作为一种方式,蓝牙耳机可以放置于耳机盒中,当检测到耳机盒开盖时,则可以发射低功耗音频广播,电子设备在接收到该低功耗音频广播时,则可以响应于该低功耗音频广播建立与蓝牙耳机之间的LE Audio连接。作为又一种方式,蓝牙耳机可以放置于耳机盒中,当检测到蓝牙耳机从耳机盒中取出时,则可以发射低功耗音频广播,电子设备在接收到该低功耗音频广播时,则可以响应于该低功耗音频广播建立与蓝牙耳机之间的LE Audio连接。作为再一种方式,蓝牙耳机可以放置于耳机盒中,当检测到蓝牙耳机从耳机盒中取出时,则可以检测该蓝牙耳机是否处于佩戴状态,当检测到该蓝牙设备处于佩戴状态时,则可以发射低功耗音频广播,电子设备在接收到该低功耗音频广播时,则可以响应于该低功耗音频广播建立与蓝牙耳机之间的LE Audio连接。As one way, the Bluetooth headset can be placed in the headset box, and when it is detected that the headset box is opened, a low-power audio broadcast can be emitted, and when the electronic device receives the low-power audio broadcast, it can establish an LE Audio connection with the Bluetooth headset in response to the low-power audio broadcast. As another way, the Bluetooth headset can be placed in the headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, a low-power audio broadcast can be emitted, and when the electronic device receives the low-power audio broadcast, it can establish an LE Audio connection with the Bluetooth headset in response to the low-power audio broadcast. As another way, the Bluetooth headset can be placed in the headset box, and when it is detected that the Bluetooth headset is taken out of the headset box, it can detect whether the Bluetooth headset is in a wearing state, and when it is detected that the Bluetooth device is in a wearing state, a low-power audio broadcast can be emitted, and when the electronic device receives the low-power audio broadcast, it can establish an LE Audio connection with the Bluetooth headset in response to the low-power audio broadcast.
在本实施例中,可以对电子设备是否处于通话状态进行检测,其中,在检测到电子设备处于通话状态的情况下,则可以获取该蓝牙耳机的佩戴信息,其中,该蓝牙耳机的佩戴信息可以用于指示蓝牙耳机处于佩戴状态,或者处于非佩戴状态。In this embodiment, it is possible to detect whether the electronic device is in a call state. When it is detected that the electronic device is in a call state, the wearing information of the Bluetooth headset can be obtained. The wearing information of the Bluetooth headset can be used to indicate whether the Bluetooth headset is in a wearing state or in a non-wearing state.
作为一种方式,蓝牙耳机可以设置有姿态传感器,则在电子设备处于通话状态的情况下,通过该姿态传感器检测该蓝牙耳机的佩戴信息。As a method, the Bluetooth headset may be provided with a posture sensor, and when the electronic device is in a call state, the wearing information of the Bluetooth headset is detected by the posture sensor.
作为又一种方式,蓝牙耳机可以设置有接触传感器,则在电子设备处于通话状态的情况下,通过该接触传感器检测该蓝牙耳机的佩戴信息。As another way, the Bluetooth headset may be provided with a contact sensor, and when the electronic device is in a call state, the wearing information of the Bluetooth headset is detected by the contact sensor.
作为再一种方式,蓝牙耳机可以设置有压力传感器,则在电子设备处于通话状态的情况下,通过该压力传感器检测该蓝牙耳机的佩戴信息。As another way, the Bluetooth headset may be provided with a pressure sensor, and when the electronic device is in a call state, the wearing information of the Bluetooth headset is detected by the pressure sensor.
当然,在本实施例中,还可以通过姿态传感器、接触传感器和/或压力传感器组合的方式进行佩戴信息的检测,在此不做限定。Of course, in this embodiment, the wearing information may also be detected by a combination of a posture sensor, a contact sensor and/or a pressure sensor, which is not limited here.
步骤S120:若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备。Step S120: If the wearing information indicates that the Bluetooth headset is in a non-wearing state, then stop uploading the collected audio data to the electronic device.
在本实施例中,在获得该蓝牙耳机的佩戴信息的情况下,则可以基于该佩戴信息确定该蓝牙耳机是否处于非佩戴状态。其中,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则可以停止上传采集的音频数据至电子设备;若该佩戴信息指示该蓝牙耳机处于佩戴状态,则可以继续上传采集的音频数据至电子设备。In this embodiment, when the wearing information of the Bluetooth headset is obtained, it can be determined whether the Bluetooth headset is in a non-wearing state based on the wearing information. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, uploading the collected audio data to the electronic device can be stopped; if the wearing information indicates that the Bluetooth headset is in a wearing state, uploading the collected audio data to the electronic device can continue.
在一些实施方式中,若该蓝牙耳机包括第一蓝牙耳机(左耳对应的蓝牙耳机)和第二蓝牙耳机(右耳对应的蓝牙耳机),则若该佩戴信息指示第一蓝牙耳机和第二蓝牙耳机均处于非佩戴状态,则停止上传第一蓝牙耳机采集的音频数据至电子设备,且停止上传第二蓝牙耳机采集的音频数据至电子设备;若该佩戴信息指示第一蓝牙耳机处于佩戴状态且第二蓝牙耳机处于非佩戴状态,则继续上传第一蓝牙耳机采集的音频数据至电子设备,且停止上传第二蓝牙耳机采集的音频数据至电子设备;若该佩戴信息指示第一蓝牙耳机处于非佩戴状态且第二蓝牙耳机处于佩戴状态,则停止上传第一蓝牙耳机采集的音频数据至电子设备,且继续上传第二蓝牙耳机采集的音频数据至电子设备。In some embodiments, if the Bluetooth headset includes a first Bluetooth headset (the Bluetooth headset corresponding to the left ear) and a second Bluetooth headset (the Bluetooth headset corresponding to the right ear), if the wearing information indicates that both the first Bluetooth headset and the second Bluetooth headset are in a non-worn state, then stop uploading the audio data collected by the first Bluetooth headset to the electronic device, and stop uploading the audio data collected by the second Bluetooth headset to the electronic device; if the wearing information indicates that the first Bluetooth headset is in a worn state and the second Bluetooth headset is in a non-worn state, then continue to upload the audio data collected by the first Bluetooth headset to the electronic device, and stop uploading the audio data collected by the second Bluetooth headset to the electronic device; if the wearing information indicates that the first Bluetooth headset is in a non-worn state and the second Bluetooth headset is in a worn state, then stop uploading the audio data collected by the first Bluetooth headset to the electronic device, and continue to upload the audio data collected by the second Bluetooth headset to the electronic device.
作为一种可实施的方式,蓝牙耳机可以预先设置并存储有其处于佩戴状态下的佩戴信息作为预设佩戴信息,那么,在获得蓝牙耳佩戴信息的情况下,则可以将该佩戴信息与预设佩戴信息进行比较,以判断该佩戴信息是否与预设佩戴信息匹配。若确定该佩戴信息与预设佩戴信息匹配,则可以确定该蓝牙耳机处于佩戴状态;若确定该佩戴信息与预设佩戴信息不匹配,则可以确定该蓝牙耳机处于非佩戴状态。As an implementable manner, the Bluetooth headset can be pre-set and store the wearing information of the Bluetooth headset in the wearing state as the preset wearing information. Then, when the Bluetooth headset wearing information is obtained, the wearing information can be compared with the preset wearing information to determine whether the wearing information matches the preset wearing information. If it is determined that the wearing information matches the preset wearing information, it can be determined that the Bluetooth headset is in the wearing state; if it is determined that the wearing information does not match the preset wearing information, it can be determined that the Bluetooth headset is in the non-wearing state.
在一些实施方式中,停止上传采集的音频数据至电子设备可以包括:将蓝牙耳机采集的音频数据进行静音处理,基于此,蓝牙耳机可以停止上传采集的音频数据至电子设备。In some implementations, stopping uploading the collected audio data to the electronic device may include: muting the audio data collected by the Bluetooth headset, based on which the Bluetooth headset may stop uploading the collected audio data to the electronic device.
在一些实施方式中,停止上传采集的音频数据至电子设备可以包括:断开蓝牙耳机与电子设备之间的连接同步流,基于此,蓝牙耳机可以停止上传采集的音频数据至电子设备。In some implementations, stopping uploading the collected audio data to the electronic device may include: disconnecting a connection synchronization stream between the Bluetooth headset and the electronic device, based on which the Bluetooth headset may stop uploading the collected audio data to the electronic device.
其中,当该蓝牙耳机与其他蓝牙耳机配对构成蓝牙耳机组时,在该蓝牙耳机的佩戴信息指示该蓝牙耳机处于非佩戴状态的情况下,通过停止上传采集的音频数据至电子设备的方式,可以避免该蓝牙耳机采集到的非目标音频(如环境噪声、如其他用户的声音)对整个蓝牙耳机组采集的音频的影响,从而可以提升最终上传至电子设备的音频质量。Among them, when the Bluetooth headset is paired with other Bluetooth headsets to form a Bluetooth headset group, if the wearing information of the Bluetooth headset indicates that the Bluetooth headset is in a non-wearing state, by stopping uploading the collected audio data to the electronic device, the influence of non-target audio (such as ambient noise, voices of other users) collected by the Bluetooth headset on the audio collected by the entire Bluetooth headset group can be avoided, thereby improving the audio quality finally uploaded to the electronic device.
本申请一实施例提供的设备的控制方法,在电子设备处于通话状态的情况下,获取蓝牙耳机的佩戴信息,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至电子设备,从而通过在电子设备处于通话状态的情况下,若蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至该电子设备,从而可以自适应地进行通话调整,优化用户实际的通话体验,提升产品竞争力。A control method for a device provided in an embodiment of the present application obtains wearing information of a Bluetooth headset when the electronic device is in a call state, and stops uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state. By stopping uploading the collected audio data to the electronic device when the electronic device is in a call state, call adjustments can be adaptively performed to optimize the user's actual call experience and enhance product competitiveness.
请参阅图3,图3示出了本申请一实施例提供的设备的控制方法的流程示意图。下面将针对图3所示的流程进行详细的阐述,所述设备的控制方法具体可以包括以下步骤: Please refer to Figure 3, which shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application. The flow chart shown in Figure 3 will be described in detail below. The control method for the device may specifically include the following steps:
步骤S210:在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息。Step S210: When the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
步骤S220:若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备。Step S220: If the wearing information indicates that the Bluetooth headset is in a non-wearing state, then stop uploading the collected audio data to the electronic device.
其中,步骤S210-步骤S220的具体描述请参阅步骤S110-步骤S120,在此不再赘述。For the detailed description of step S210 to step S220, please refer to step S110 to step S120, which will not be repeated here.
步骤S230:若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上传采集的音频数据至所述电子设备。Step S230: If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, resuming uploading the collected audio data to the electronic device.
在本实施例中,在停止上传采集的音频数据至电子设备的过程中,若电子设备仍然处于通话状态,则可以继续获取蓝牙耳机的佩戴信息,并基于该蓝牙耳机的佩戴信息确定该蓝牙耳机是否从处于非佩戴状态切换为处于佩戴状态。其中,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以恢复上传采集的音频数据至该电子设备,可以理解的是,恢复上传采集的音频数据为蓝牙耳机在当前时刻采集的音频数据;若该佩戴信息指示该蓝牙耳机持续处于非佩戴状态,则可以继续停止上传采集的音频数据至该电子设备。In this embodiment, during the process of stopping uploading the collected audio data to the electronic device, if the electronic device is still in a call state, the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, uploading the collected audio data to the electronic device can be resumed. It can be understood that the resumed uploading of the collected audio data is the audio data collected by the Bluetooth headset at the current moment; if the wearing information indicates that the Bluetooth headset is continuously in a non-wearing state, uploading the collected audio data to the electronic device can be stopped.
在一些实施方式中,若该蓝牙耳机包括第一蓝牙耳机(左耳对应的蓝牙耳机)和第二蓝牙耳机(右耳对应的蓝牙耳机),则若该佩戴信息指示第一蓝牙耳机和第二蓝牙耳机均从处于非佩戴状态切换为处于佩戴状态,则恢复上传第一蓝牙耳机采集的音频数据至电子设备,且恢复上传第二蓝牙耳机采集的音频数据至电子设备;若该佩戴信息指示第一蓝牙耳机从处于非佩戴状态切换为处于佩戴状态且第二蓝牙耳机处于非佩戴状态,则恢复上传第一蓝牙耳机采集的音频数据至电子设备,且停止上传第二蓝牙耳机采集的音频数据至电子设备;若该佩戴信息指示第一蓝牙耳机处于非佩戴状态且第二蓝牙耳机处于从处于非佩戴状态切换为处于佩戴状态,则停止上传第一蓝牙耳机采集的音频数据至电子设备,且恢复上传第二蓝牙耳机采集的音频数据至电子设备。In some embodiments, if the Bluetooth headset includes a first Bluetooth headset (the Bluetooth headset corresponding to the left ear) and a second Bluetooth headset (the Bluetooth headset corresponding to the right ear), if the wearing information indicates that both the first Bluetooth headset and the second Bluetooth headset are switched from a non-wearing state to a wearing state, then the uploading of the audio data collected by the first Bluetooth headset to the electronic device is resumed, and the uploading of the audio data collected by the second Bluetooth headset to the electronic device is resumed; if the wearing information indicates that the first Bluetooth headset is switched from a non-wearing state to a wearing state and the second Bluetooth headset is in a non-wearing state, then the uploading of the audio data collected by the first Bluetooth headset to the electronic device is resumed, and the uploading of the audio data collected by the second Bluetooth headset to the electronic device is stopped; if the wearing information indicates that the first Bluetooth headset is in a non-wearing state and the second Bluetooth headset is in a state of switching from a non-wearing state to a wearing state, then the uploading of the audio data collected by the first Bluetooth headset to the electronic device is stopped, and the uploading of the audio data collected by the second Bluetooth headset to the electronic device is resumed.
在一些实施方式中,恢复上传采集的音频数据至电子设备可以包括:将蓝牙耳机采集的音频数据取消进行静音处理,基于此,蓝牙耳机可以恢复上传采集的音频数据至电子设备。In some implementations, resuming uploading the collected audio data to the electronic device may include: canceling the mute processing of the audio data collected by the Bluetooth headset, based on which the Bluetooth headset may resume uploading the collected audio data to the electronic device.
在一些实施方式中,恢复上传采集的音频数据至电子设备可以包括:重新建立蓝牙耳机与电子设备之间的连接同步流,然后,蓝牙耳机将建立连接同步流之后采集到的音频数据上传至电子设备,基于此,蓝牙耳机可以恢复上传采集的音频数据至电子设备。In some embodiments, resuming uploading the collected audio data to the electronic device may include: reestablishing a connection synchronization stream between the Bluetooth headset and the electronic device, and then, the Bluetooth headset uploading the audio data collected after establishing the connection synchronization stream to the electronic device, based on this, the Bluetooth headset can resume uploading the collected audio data to the electronic device.
本申请一实施例提供的设备的控制方法,在电子设备处于通话状态的情况下,获取蓝牙耳机的佩戴信息,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至电子设备,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上传采集的音频数据至电子设备。相较于图2所示的设备的控制方法,本实施例还在蓝牙耳机切换为佩戴状态时,及时恢复上传采集的音频数据至电子设备,可以提升用户实际的通话体验和产品竞争力。The control method of the device provided in one embodiment of the present application obtains the wearing information of the Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the uploading of the collected audio data to the electronic device is stopped. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the uploading of the collected audio data to the electronic device is resumed. Compared with the control method of the device shown in FIG2 , this embodiment also promptly resumes uploading the collected audio data to the electronic device when the Bluetooth headset is switched to a wearing state, which can improve the user's actual call experience and product competitiveness.
请参阅图4,图4示出了本申请一实施例提供的设备的控制方法的流程示意图。下面将针对图4所示的流程进行详细的阐述,所述设备的控制方法具体可以包括以下步骤:Please refer to Figure 4, which shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application. The flow chart shown in Figure 4 will be described in detail below. The control method for the device may specifically include the following steps:
步骤S310:在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息。Step S310: When the electronic device is in a call state, obtaining the wearing information of the Bluetooth headset.
其中,步骤S310的具体描述请参阅步骤S110,在此不再赘述。The specific description of step S310 can be found in step S110 , which will not be repeated here.
步骤S320:若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则更新所述蓝牙耳机的播放能力信息获得第一更新信息,其中,所述播放能力信息用于指示所述蓝牙耳机支持播放的音频类型,所述第一更新信息用于指示所述蓝牙耳机不支持播放通话音频类型。Step S320: If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the playback capability information of the Bluetooth headset is updated to obtain first update information, wherein the playback capability information is used to indicate the audio type supported by the Bluetooth headset for playback, and the first update information is used to indicate that the Bluetooth headset does not support playback of call audio types.
作为一种方式,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则可以断开该蓝牙耳机与电子设备之间的连接同步流,以停止上传采集的音频数据至该电子设备。As a method, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, the connection synchronization stream between the Bluetooth headset and the electronic device can be disconnected to stop uploading the collected audio data to the electronic device.
其中,蓝牙耳机针对该电子设备设置有播放能力信息,其中,该播放能力信息用于向电子设备指示该蓝牙耳机支持播放的音频类型。其中,该蓝牙耳机支持播放的音频类型可以包括音乐media类型、通话conversational类型、游戏game类型等,在此不做限定。The Bluetooth headset is provided with playback capability information for the electronic device, wherein the playback capability information is used to indicate to the electronic device the audio types supported by the Bluetooth headset. The audio types supported by the Bluetooth headset may include music media type, conversational type, game type, etc., which are not limited here.
在一些实施方式中,电子设备在需要通过蓝牙耳机进行通话时,若该蓝牙耳机可以支持进行正常的通话(如蓝牙耳机处于佩戴状态),则该蓝牙耳机可以发送其用于指示蓝牙耳机支持播放通话音频类型的播放能力信息至电子设备,基于此,电子设备可以通过蓝牙耳机进行通话;若该蓝牙耳机不支持正常的通话(如蓝牙耳机处于非佩戴状态),则该蓝牙耳机可以发送其用于指示蓝牙耳机不支持播放通话音频类型的播放能力信息至电子设备,基于此,电子设备无法通过蓝牙耳机进行通话。In some embodiments, when an electronic device needs to make a call via a Bluetooth headset, if the Bluetooth headset can support normal calls (such as when the Bluetooth headset is in a worn state), the Bluetooth headset can send playback capability information to the electronic device to indicate that the Bluetooth headset supports the playback of call audio types, and based on this, the electronic device can make a call via the Bluetooth headset; if the Bluetooth headset does not support normal calls (such as when the Bluetooth headset is not in a worn state), the Bluetooth headset can send playback capability information to the electronic device to indicate that the Bluetooth headset does not support the playback of call audio types, and based on this, the electronic device cannot make a call via the Bluetooth headset.
作为一种可实施的方式,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,可以认为蓝牙耳机不支持正常的通话,则可以更新蓝牙耳机的播放能力信息获得第一更新信息,其中,该第一更新信息用于指示该蓝牙耳机不支持播放通话音频类型。As an implementable method, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, it can be considered that the Bluetooth headset does not support normal calls, and the playback capability information of the Bluetooth headset can be updated to obtain the first update information, wherein the first update information is used to indicate that the Bluetooth headset does not support the playback of call audio types.
作为一种方式,播放能力信息可以通过私有协议参数表示,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则可以更新蓝牙耳机的私有协议参数,基于该私有协议参数,该电子设备可以知晓该蓝牙耳机不支持播放通话音频类型。 As a method, the playback capability information can be represented by private protocol parameters. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the private protocol parameters of the Bluetooth headset can be updated. Based on the private protocol parameters, the electronic device can know that the Bluetooth headset does not support the playback of call audio types.
作为又一种方式,播放能力信息可以通过可用音频上下文(Available Audio Contexts)表示,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则可以更新蓝牙耳机的可用音频上下文,基于该可用音频上下文,该电子设备可以知晓该蓝牙耳机不支持播放通话音频类型。As another way, the playback capability information can be represented by available audio contexts. If the wearing information indicates that the Bluetooth headset is not in a worn state, the available audio context of the Bluetooth headset can be updated. Based on the available audio context, the electronic device can know that the Bluetooth headset does not support the playback of call audio types.
在一些实施方式中,在播放能力信息包括可用音频上下文时,则若该佩戴信息指示蓝牙耳机处于非佩戴状态,则可以将可用音频上下文中的通话音频类型的状态更新为不可用状态,获得第一更新信息。In some implementations, when the playback capability information includes an available audio context, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, the state of the call audio type in the available audio context can be updated to an unavailable state to obtain the first update information.
在支持LE Audio的蓝牙耳机与电子设备建立LE Audio连接后,电子设备可以通过查询蓝牙耳机的服务(service)和属性(characteristic),获取到蓝牙耳机的“可用音频上下文(比如media、conversational、game等)”和蓝牙耳机的支持的音频流端点(Audio Stream Endpoint,ASE),包括Sink ASE和Source ASE,同时会将对应的ASE配置到对应的状态(即QOS Configured状态)。当电子设备与蓝牙耳机有业务进行时,它们之间会创建连接同步流且ASE状态会变成对应的状态(即Streaming状态),此后,就可以在该连接同步流进行音频数据的传输。在蓝牙耳机的“可用音频上下文”为“可用”(比如:将available audio contexts中的conversational为“YES”),并发送给当前连接的电子设备时,则当前连接的电子设备可以跟蓝牙耳机建立连接同步流;在蓝牙耳机的“可用音频上下文”为“不可用”(比如:将available audio contexts中的conversational为“NO”),并发送给当前连接的电子设备时,电子设备就不会与蓝牙耳机建立连接同步流。After a Bluetooth headset that supports LE Audio establishes an LE Audio connection with an electronic device, the electronic device can query the Bluetooth headset's services and characteristics to obtain the Bluetooth headset's "available audio context (such as media, conversational, game, etc.)" and the Bluetooth headset's supported audio stream endpoints (Audio Stream Endpoint, ASE), including Sink ASE and Source ASE, and configure the corresponding ASE to the corresponding state (i.e., QOS Configured state). When the electronic device and the Bluetooth headset have business, a connection synchronization stream will be created between them and the ASE state will become the corresponding state (i.e., Streaming state). After that, audio data can be transmitted in the connection synchronization stream. When the "Available Audio Context" of the Bluetooth headset is "Available" (for example, conversational in available audio contexts is "YES") and is sent to the currently connected electronic device, the currently connected electronic device can establish a connection synchronization stream with the Bluetooth headset; when the "Available Audio Context" of the Bluetooth headset is "Unavailable" (for example, conversational in available audio contexts is "NO") and is sent to the currently connected electronic device, the electronic device will not establish a connection synchronization stream with the Bluetooth headset.
基于此,蓝牙耳机在该佩戴信息指示蓝牙耳机处于非佩戴状态的情况下,可以将蓝牙耳机的可用音频上下文中的通话conversational音频类型的状态更新为不可用状态的方式,可以使得电子设备不会与该蓝牙耳机建立连接同步流,以停止上传采集的音频数据至电子设备。Based on this, when the wearing information indicates that the Bluetooth headset is in a non-wearing state, the status of the conversational audio type in the available audio context of the Bluetooth headset can be updated to an unavailable state, so that the electronic device will not establish a connection synchronization stream with the Bluetooth headset to stop uploading the collected audio data to the electronic device.
步骤S330:发送所述第一更新信息至所述电子设备,以指示所述电子设备断开与所述蓝牙耳机之间的连接同步流。Step S330: Send the first update information to the electronic device to instruct the electronic device to disconnect the synchronization flow between the electronic device and the Bluetooth headset.
在一些实施方式中,蓝牙耳机在获得该第一更新信息的情况下,则可以发送该第一更新信息至该电子设备,以指示该电子设备断开与该蓝牙耳机之间的连接同步流。可以理解的,电子设备与蓝牙耳机之间的连接同步流断开的情况下,则电子设备不会将下行数据发送至该蓝牙耳机,蓝牙耳机也不会将上行数据发送至该电子设备,即,蓝牙耳机停止将采集的音频信息(或者停止采集音频信息)发送至该电子设备。In some embodiments, when the Bluetooth headset obtains the first update information, it can send the first update information to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the Bluetooth headset and the electronic device. It can be understood that when the connection synchronization stream between the electronic device and the Bluetooth headset is disconnected, the electronic device will not send downlink data to the Bluetooth headset, and the Bluetooth headset will not send uplink data to the electronic device, that is, the Bluetooth headset stops sending the collected audio information (or stops collecting audio information) to the electronic device.
作为一种示例,假设该蓝牙耳机为左耳对应的蓝牙耳机。假设左耳对应的蓝牙耳机摘下时,当蓝牙耳机的佩戴检测模块发现该蓝牙耳机当前不处于佩戴模式时,则蓝牙耳机可以通过LE Audio的标准命令,更新available context,将蓝牙耳机的通话(conversational)context更新为no available,并将no available context发送给电子设备。电子设备收到蓝牙耳机更新的available context notify后,由于当前处于通话模式,电子设备会去检查蓝牙耳机conversational的context是否是available的状态,如果不是,电子设备需要主动将CIS断连,左耳对应的蓝牙耳机不再接收通话下行数据,页不在上传通话上行数据。As an example, assume that the Bluetooth headset is the Bluetooth headset corresponding to the left ear. Assuming that the Bluetooth headset corresponding to the left ear is taken off, when the wearing detection module of the Bluetooth headset finds that the Bluetooth headset is not currently in the wearing mode, the Bluetooth headset can update the available context through the standard command of LE Audio, update the conversational context of the Bluetooth headset to no available, and send the no available context to the electronic device. After the electronic device receives the updated available context notify of the Bluetooth headset, since it is currently in the conversation mode, the electronic device will check whether the conversational context of the Bluetooth headset is in the available state. If not, the electronic device needs to actively disconnect the CIS, and the Bluetooth headset corresponding to the left ear will no longer receive the conversation downlink data, and will no longer upload the conversation uplink data.
当然,右耳对应的蓝牙耳机,或者,双耳对应的蓝牙耳机,均可以适用上述示例,在此不再赘述。Of course, the above examples can be applied to the Bluetooth headset corresponding to the right ear, or the Bluetooth headset corresponding to both ears, which will not be repeated here.
步骤S340:若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则更新所述蓝牙耳机的播放能力信息获得第二更新信息,其中,所述第二更新信息用于指示所述蓝牙耳机支持播放通话音频类型。Step S340: If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the playback capability information of the Bluetooth headset is updated to obtain second update information, wherein the second update information is used to indicate that the Bluetooth headset supports playback of call audio types.
在本实施例中,在停止上传采集的音频数据至电子设备的过程中,若电子设备仍然处于通话状态,则可以继续获取蓝牙耳机的佩戴信息,并基于该蓝牙耳机的佩戴信息确定该蓝牙耳机是否从处于非佩戴状态切换为处于佩戴状态。其中,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以更新该蓝牙耳机的播放能力信息获得第二更新信息,其中,该第二更新信息用于指示该蓝牙耳机支持播放通话音频类型。In this embodiment, during the process of stopping uploading the collected audio data to the electronic device, if the electronic device is still in a call state, the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the playback capability information of the Bluetooth headset can be updated to obtain second update information, wherein the second update information is used to indicate that the Bluetooth headset supports the playback of call audio types.
作为一种可实施的方式,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,可以认为蓝牙耳机支持正常的通话,则可以更新蓝牙耳机的播放能力信息获得第二更新信息,其中,该第二更新信息指示该蓝牙耳机支持播放通话音频类型。As an implementable method, if the wearing information indicates that the Bluetooth headset switches from a non-wearing state to a wearing state, it can be considered that the Bluetooth headset supports normal calls, and the playback capability information of the Bluetooth headset can be updated to obtain second update information, wherein the second update information indicates that the Bluetooth headset supports the playback of call audio types.
作为一种方式,播放能力信息可以通过私有协议参数表示,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以更新蓝牙耳机的私有协议参数,基于该私有协议参数,该电子设备可以知晓该蓝牙耳机支持播放通话音频类型。As a method, the playback capability information can be represented by private protocol parameters. If the wearing information indicates that the Bluetooth headset switches from a non-wearing state to a wearing state, the private protocol parameters of the Bluetooth headset can be updated. Based on the private protocol parameters, the electronic device can know that the Bluetooth headset supports the playback of call audio types.
作为又一种方式,播放能力信息可以通过可用音频上下文表示,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以更新蓝牙耳机的可用音频上下文,基于该可用音频上下文,该电子设备可以知晓该蓝牙耳机支持播放通话音频类型。As another way, the playback capability information can be represented by an available audio context. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the available audio context of the Bluetooth headset can be updated. Based on the available audio context, the electronic device can know that the Bluetooth headset supports the playback of call audio types.
在一些实施方式中,在播放能力信息包括可用音频上下文时,则若该佩戴信息指示蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以将可用音频上下文中的通话音频类型的状态信息更新为不可用状 态,获得第二更新信息。In some implementations, when the playback capability information includes an available audio context, if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the state information of the call audio type in the available audio context may be updated to an unavailable state. state, and obtain the second update information.
步骤S350:发送所述第二更新信息至所述电子设备。Step S350: Send the second update information to the electronic device.
在一些实施方式中,蓝牙耳机在获得该第二更新信息的情况下,则可以发送该第二更新信息至该电子设备。In some implementations, when the Bluetooth headset obtains the second update information, it can send the second update information to the electronic device.
在本实施例中,电子设备在接收到蓝牙耳机上传的第二更新信息的情况下,则可以检测其是否仍然处于通话状态,若其仍然处于通话状态,则该电子设备可以基于该第二更新信息建立与蓝牙耳机之间的连接同步流,若其未处于通话状态,则该电子设备不建立与蓝牙耳机之间的连接同步流。可以理解的,电子设备与蓝牙耳机之间的连接同步流建立的情况下,则电子设备会将下行数据发送至该蓝牙耳机,蓝牙耳机也会将上行数据发送至该电子设备,即,蓝牙耳机恢复将采集的音频信息发送至该电子设备。In this embodiment, when the electronic device receives the second update information uploaded by the Bluetooth headset, it can detect whether it is still in a call state. If it is still in a call state, the electronic device can establish a connection synchronization stream with the Bluetooth headset based on the second update information. If it is not in a call state, the electronic device does not establish a connection synchronization stream with the Bluetooth headset. It can be understood that when the connection synchronization stream between the electronic device and the Bluetooth headset is established, the electronic device will send downlink data to the Bluetooth headset, and the Bluetooth headset will also send uplink data to the electronic device, that is, the Bluetooth headset resumes sending the collected audio information to the electronic device.
作为一种示例,假设该蓝牙耳机为左耳对应的蓝牙耳机。当用户将左耳对应的蓝牙耳机重新佩戴后,耳机对应的蓝牙耳机的佩戴检测模块发现当前处于佩戴模式,耳机通过LE Audio标准的命令,更新available context,将蓝牙耳机的通话(conversational)context更新为available,并将available context发送给电子设备。电子设备收到蓝牙耳机更新的available context notify后,如果当前仍处于通话模式,电子设备检查蓝牙耳机的conversational的context是否是available的状态,如果是,电子设备则重新建立CIS,蓝牙耳机恢复正常通话上下行。如果电子设备当前不处于通话模式,电子设备则不需要重新与蓝牙耳机建立CIS。As an example, assume that the Bluetooth headset is the Bluetooth headset corresponding to the left ear. When the user puts on the Bluetooth headset corresponding to the left ear again, the wearing detection module of the Bluetooth headset corresponding to the headset finds that it is currently in wearing mode. The headset updates the available context through the LE Audio standard command, updates the conversational context of the Bluetooth headset to available, and sends the available context to the electronic device. After the electronic device receives the updated available context notify from the Bluetooth headset, if it is still in the conversation mode, the electronic device checks whether the conversational context of the Bluetooth headset is in the available state. If so, the electronic device re-establishes the CIS, and the Bluetooth headset resumes normal conversation uplink and downlink. If the electronic device is not currently in the conversation mode, the electronic device does not need to re-establish the CIS with the Bluetooth headset.
当然,右耳对应的蓝牙耳机,或者,双耳对应的蓝牙耳机,均可以适用上述示例,在此不再赘述。Of course, the above examples can be applied to the Bluetooth headset corresponding to the right ear, or the Bluetooth headset corresponding to both ears, which will not be repeated here.
本申请一实施例提供的设备的控制方法,在电子设备处于通话状态的情况下,获取蓝牙耳机的佩戴信息,若该佩戴信息指示蓝牙耳机处于非佩戴状态,则更新蓝牙耳机的播放能力信息获得第一更新信息,其中,该播放能力信息用于指示该蓝牙耳机支持播放的音频类型,第一更新信息用于指示蓝牙耳机不支持播放通话音频类型,发送第一更新信息至电子设备,以指示电子设备断开与蓝牙耳机之间的连接同步流,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则更新蓝牙耳机的播放能力信息获得第二更新信息,其中,该第二更新信息用于指示蓝牙耳机支持播放通话音频类型,发送第二更新信息至电子设备。相较于图2所示的设备的控制方法,本实施例还通过耳机更新其播放能力信息至电子设备,以实现蓝牙耳机与电子设备之间的连接同步流的断开或建立,可以降低蓝牙耳机与电子设备的功耗,优化用户实际的通话体验,进一步提升产品竞争力。The control method of a device provided in an embodiment of the present application, when the electronic device is in a call state, obtains the wearing information of the Bluetooth headset, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, then updates the playback capability information of the Bluetooth headset to obtain the first update information, wherein the playback capability information is used to indicate the audio type supported by the Bluetooth headset, the first update information is used to indicate that the Bluetooth headset does not support the playback of the call audio type, sends the first update information to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the Bluetooth headset, if the wearing information indicates that the Bluetooth headset is switched from the non-wearing state to the wearing state, then updates the playback capability information of the Bluetooth headset to obtain the second update information, wherein the second update information is used to indicate that the Bluetooth headset supports the playback of the call audio type, and sends the second update information to the electronic device. Compared with the control method of the device shown in FIG2, this embodiment also updates its playback capability information to the electronic device through the headset to realize the disconnection or establishment of the connection synchronization stream between the Bluetooth headset and the electronic device, which can reduce the power consumption of the Bluetooth headset and the electronic device, optimize the actual call experience of the user, and further enhance the competitiveness of the product.
请参阅图5,图5示出了本申请一实施例提供的设备的控制方法的流程示意图。下面将针对图5所示的流程进行详细的阐述,所述设备的控制方法具体可以包括以下步骤:Please refer to Figure 5, which shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application. The flow chart shown in Figure 5 will be described in detail below. The control method for the device may specifically include the following steps:
步骤S410:在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息。Step S410: When the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
其中,步骤S410的具体描述请参阅步骤S110,在此不再赘述。For the detailed description of step S410, please refer to step S110, which will not be repeated here.
步骤S420:若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则断开与所述电子设备之间的连接同步流。Step S420: If the wearing information indicates that the Bluetooth headset is in a non-wearing state, disconnecting the synchronization flow between the Bluetooth headset and the electronic device.
在本实施例中,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则蓝牙耳机可以主动断开与电子设备之间的连接同步流。作为一种方式,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则蓝牙耳机可以主动发起CIS断连,基于此,蓝牙耳机不再接收通话下行数据,也不再发送通话上行数据。In this embodiment, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, the Bluetooth headset can actively disconnect the connection synchronization stream with the electronic device. As a way, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, the Bluetooth headset can actively initiate a CIS disconnection, based on which the Bluetooth headset no longer receives call downlink data, and no longer sends call uplink data.
步骤S430:停止上报与通话相关的编码能力信息至所述电子设备,其中,所述编码能力信息用于指示所述蓝牙耳机支持编码的音频类型。Step S430: Stop reporting the coding capability information related to the call to the electronic device, wherein the coding capability information is used to indicate the audio type that the Bluetooth headset supports coding.
其中,蓝牙耳机针对该电子设备设置有编码能力信息,其中,该编码能力信息用于向电子设备指示该蓝牙耳机支持编码的音频类型。其中,该蓝牙耳机支持编码的音频类型可以包括音乐media类型、通话convercational类型、游戏game类型等,在此不做限定。The Bluetooth headset is provided with coding capability information for the electronic device, wherein the coding capability information is used to indicate to the electronic device the audio types that the Bluetooth headset supports for coding. The audio types that the Bluetooth headset supports for coding may include music media type, call convergence type, game game type, etc., which are not limited here.
在一些实施方式中,电子设备在需要通过蓝牙耳机进行通话时,若该蓝牙耳机可以支持进行正常的通话(如蓝牙耳机处于佩戴状态),则该蓝牙耳机可以上报其与通话相关的编码能力信息至电子设备,基于此,电子设备可以通过蓝牙耳机进行通话;若该蓝牙耳机不支持正常的通话(如蓝牙耳机处于非佩戴状态),则该蓝牙耳机可以停止上报与通话相关的编码能力信息至电子设备,基于此,电子设备无法通过蓝牙耳机进行通话。In some embodiments, when an electronic device needs to make a call through a Bluetooth headset, if the Bluetooth headset can support normal calls (such as the Bluetooth headset is in a worn state), the Bluetooth headset can report its coding capability information related to the call to the electronic device, based on which the electronic device can make the call through the Bluetooth headset; if the Bluetooth headset does not support normal calls (such as the Bluetooth headset is not in a worn state), the Bluetooth headset can stop reporting the coding capability information related to the call to the electronic device, based on which the electronic device cannot make a call through the Bluetooth headset.
作为一种可实施的方式,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,可以认为蓝牙耳机不支持正常的通话,则可以停止上报与通话相关的编码能力信息至电子设备。As an implementable method, if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, it can be considered that the Bluetooth headset does not support normal calls, and the reporting of coding capability information related to the call to the electronic device can be stopped.
在一些实施方式中,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以发起第一编码器重新配置codec reconfig,以停止上报与通话相关的编码能力信息至电子设备。In some embodiments, if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, a first encoder reconfiguration codec reconfig can be initiated to stop reporting call-related coding capability information to the electronic device.
作为一种示例,假设该蓝牙耳机为左耳对应的蓝牙耳机,且该蓝牙耳机被摘下,当蓝牙耳机的佩戴检测模块发现当前不处于佩戴模式时,蓝牙耳机可以主动发起CIS断连,蓝牙不再接收通话下行数据,且不再发送通话上行数据。同时为了防止电子设备重新建立CIS,蓝牙耳机主动通过LE Audio标准的命令,发 起一次codec reconfig,将通话相关的编码能力(因为通话和媒体支持的采样率等参数有区别)全部取消上报,也便是蓝牙耳机只上报音乐等media相关的编码能力。As an example, assuming that the Bluetooth headset is for the left ear and is taken off, when the wearing detection module of the Bluetooth headset finds that it is not in wearing mode, the Bluetooth headset can actively initiate CIS disconnection, and Bluetooth no longer receives call downlink data and no longer sends call uplink data. At the same time, in order to prevent the electronic device from re-establishing CIS, the Bluetooth headset actively sends a command through the LE Audio standard. Initiate a codec reconfig and cancel reporting of all call-related coding capabilities (because the sampling rates and other parameters supported by calls and media are different). That is, the Bluetooth headset only reports coding capabilities related to media such as music.
当然,右耳对应的蓝牙耳机,或者,双耳对应的蓝牙耳机,均可以适用上述示例,在此不再赘述。Of course, the above examples can be applied to the Bluetooth headset corresponding to the right ear, or the Bluetooth headset corresponding to both ears, which will not be repeated here.
步骤S440:若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上报与通话相关的编码能力信息至所述电子设备。Step S440: If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, then the coding capability information related to the call is resumed to be reported to the electronic device.
在本实施例中,在停止上传采集的音频数据至电子设备的过程中,若电子设备仍然处于通话状态,则可以继续获取蓝牙耳机的佩戴信息,并基于该蓝牙耳机的佩戴信息确定该蓝牙耳机是否从处于非佩戴状态切换为处于佩戴状态。其中,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以恢复上报与通话相关的编码能力信息至电子设备。In this embodiment, during the process of stopping uploading the collected audio data to the electronic device, if the electronic device is still in a call state, the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the coding capability information related to the call can be resumed to be reported to the electronic device.
作为一种可实施的方式,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,可以认为蓝牙耳机支持正常的通话,则可以恢复上报与通话相关的的编码能力信息至电子设备。As an implementable method, if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, it can be considered that the Bluetooth headset supports normal calls, and the coding capability information related to the call can be restored and reported to the electronic device.
在一些实施方式中,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以发起第二编码器重新配置codec reconfig,以恢复上报与通话相关的编码能力信息至电子设备。In some embodiments, if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, a second encoder reconfiguration codec reconfig can be initiated to restore reporting of call-related coding capability information to the electronic device.
在本实施例中,电子设备在接收到蓝牙耳机上报的与通话相关的编码能力信息的情况下,则可以检测其是否仍然处于通话状态,若其仍然处于通话状态,则该电子设备可以基于该编码能力信息建立与蓝牙耳机之间的连接同步流,若其未处于通话状态,则该电子设备不建立与蓝牙耳机之间的连接同步流。In this embodiment, when the electronic device receives the coding capability information related to the call reported by the Bluetooth headset, it can detect whether it is still in a call state. If it is still in a call state, the electronic device can establish a connection synchronization stream with the Bluetooth headset based on the coding capability information; if it is not in a call state, the electronic device does not establish a connection synchronization stream with the Bluetooth headset.
作为一种示例,假设该蓝牙耳机为左耳对应的蓝牙耳机,且当用户将蓝牙耳机重新佩戴后,蓝牙耳机的佩戴检测模块发现当前处于佩戴模式,蓝牙耳机通过LE Audio标准的命令,重新发起一次codec reconfig,将通话相关的编码能力重新上报并完成配置。电子设备发现蓝牙耳机重新配置通话相关参数后,如果当前仍处于通话模式,电子设备则重新建立CIS,蓝牙耳机恢复正常通话上下行。如果电子设备当前不处于通话模式,电子设备则不需要重新与蓝牙耳机建立CIS。As an example, assume that the Bluetooth headset is a Bluetooth headset corresponding to the left ear, and when the user puts on the Bluetooth headset again, the wearing detection module of the Bluetooth headset finds that it is currently in wearing mode. The Bluetooth headset re-initiates a codec reconfiguration through the LE Audio standard command, re-reports the call-related coding capabilities and completes the configuration. After the electronic device finds that the Bluetooth headset has reconfigured the call-related parameters, if it is still in call mode, the electronic device re-establishes the CIS, and the Bluetooth headset resumes normal call uplink and downlink. If the electronic device is not currently in call mode, the electronic device does not need to re-establish the CIS with the Bluetooth headset.
当然,右耳对应的蓝牙耳机,或者,双耳对应的蓝牙耳机,均可以适用上述示例,在此不再赘述。Of course, the above examples can be applied to the Bluetooth headset corresponding to the right ear, or the Bluetooth headset corresponding to both ears, which will not be repeated here.
本申请一实施例提供的设备的控制方法,在电子设备处通话状态的情况下,获取蓝牙耳机的佩戴信息,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则断开与电子设备之间的连接同步流,停止上报与通话相关的编码能力信息至该电子设备,其中,该编码能力信息用于指示蓝牙设备支持编码的音频类型,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上报与通话相关的编码能力信息至电子设备。相较于图2所示的设备的控制方法,本实施例还通过耳机上报或者停止上报与通话相关的编码能力信息至电子设备,以实现蓝牙耳机与电子设备之间的连接同步流的断开或建立,可以降低蓝牙耳机与电子设备的功耗,优化用户实际的通话体验,进一步提升产品竞争力。A control method for a device provided in an embodiment of the present application obtains the wearing information of a Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the connection synchronization flow between the Bluetooth headset and the electronic device is disconnected, and the reporting of the coding capability information related to the call to the electronic device is stopped, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth device for encoding. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the reporting of the coding capability information related to the call to the electronic device is resumed. Compared with the control method for the device shown in FIG2 , this embodiment also reports or stops reporting the coding capability information related to the call to the electronic device through the headset to disconnect or establish the connection synchronization flow between the Bluetooth headset and the electronic device, which can reduce the power consumption of the Bluetooth headset and the electronic device, optimize the actual call experience of the user, and further enhance the competitiveness of the product.
请参阅图6,图6示出了本申请一实施例提供的设备的控制方法的流程示意图。下面将针对图6所示的流程进行详细的阐述,所述设备的控制方法具体可以包括以下步骤:Please refer to Figure 6, which shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application. The flow chart shown in Figure 6 will be described in detail below. The control method for the device may specifically include the following steps:
步骤S510:在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息。Step S510: When the electronic device is in a call state, obtaining wearing information of the Bluetooth headset.
其中,步骤S510的具体描述请参阅步骤S110,在此不再赘述。For the detailed description of step S510, please refer to step S110, which will not be repeated here.
步骤S520:若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上报与通话相关的编码能力信息至所述电子设备,以指示所述电子设备断开与所述蓝牙耳机之间的连接同步流,其中,所述编码能力信息用于指示所述蓝牙耳机支持编码的音频类型。Step S520: If the wearing information indicates that the Bluetooth headset is in a non-wearing state, stop reporting the coding capability information related to the call to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the Bluetooth headset, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth headset for encoding.
在本实施例中,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则蓝牙耳机可以停止上报与通话相关的编码能力信息,相应地,电子设备在未接收到蓝牙耳机上报的与通话相关的编码能力信息的情况下,则可以主动断开与蓝牙耳机的连接同步流,基于此,蓝牙耳机不再接收通话下行数据,也不再发送通话上行数据。In this embodiment, if the wearing information indicates that the Bluetooth headset is in a non-worn state, the Bluetooth headset can stop reporting the coding capability information related to the call. Accordingly, the electronic device can actively disconnect the connection synchronization stream with the Bluetooth headset if it does not receive the coding capability information related to the call reported by the Bluetooth headset. Based on this, the Bluetooth headset no longer receives the call downlink data, nor sends the call uplink data.
步骤S530:若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上报与通话相关的编码能力信息至所述电子设备,以指示所述电子设备建立与所述蓝牙耳机之间的连接同步流。Step S530: If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, resume reporting the coding capability information related to the call to the electronic device to instruct the electronic device to establish a connection synchronization flow with the Bluetooth headset.
其中,步骤S530的具体描述请参阅步骤S440,在此不再赘述。For the detailed description of step S530, please refer to step S440, which will not be repeated here.
本申请一实施例提供的设备的控制方法,在电子设备处于通话状态的情况下,获取蓝牙耳机的佩戴信息,若该佩戴信息指示蓝牙耳机处于非佩戴状态,则停止上报与通话相关的编码能力信息至电子设备,以指示电子设备断开与蓝牙耳机之间的连接同步流,其中,该编码能力信息用于指示蓝牙耳机支持编码的音频类型,若该佩戴信息指示蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上报与通话相关的编码能力信息至电子设备。相较于图2所示的设备的控制方法,本实施例还通过耳机上报或者停止上报与通话相关的编码能力信息至电子设备,以实现蓝牙耳机与电子设备 之间的连接同步流的断开或建立,可以降低蓝牙耳机与电子设备的功耗,优化用户实际的通话体验,进一步提升产品竞争力。An embodiment of the present application provides a control method for a device, which obtains wearing information of a Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the reporting of coding capability information related to the call to the electronic device is stopped to instruct the electronic device to disconnect the connection synchronization stream with the Bluetooth headset, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth headset for encoding. If the wearing information indicates that the Bluetooth headset switches from a non-wearing state to a wearing state, the reporting of coding capability information related to the call to the electronic device is resumed. Compared with the control method for the device shown in FIG. 2, the present embodiment also reports or stops reporting coding capability information related to the call to the electronic device through the headset to achieve communication between the Bluetooth headset and the electronic device. The disconnection or establishment of the synchronous flow of connection between them can reduce the power consumption of Bluetooth headsets and electronic devices, optimize the user's actual call experience, and further enhance product competitiveness.
请参阅图7,图7示出了本申请一实施例提供的设备的控制方法的流程示意图。下面将针对图7所示的流程进行详细的阐述,所述设备的控制方法具体可以包括以下步骤:Please refer to Figure 7, which shows a schematic diagram of a flow chart of a control method for a device provided in an embodiment of the present application. The flow chart shown in Figure 7 will be described in detail below. The control method for the device may specifically include the following steps:
步骤S610:在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息。Step S610: When the electronic device is in a call state, obtaining the wearing information of the Bluetooth headset.
其中,步骤S610的具体描述请参阅步骤S110,在此不再赘述。The specific description of step S610 can be found in step S110 , which will not be repeated here.
步骤S620:若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则对所述采集的音频数据进行静音处理,获得静音数据。Step S620: If the wearing information indicates that the Bluetooth headset is in a non-wearing state, mute processing is performed on the collected audio data to obtain mute data.
在一些实施方式中,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则可以对采集的音频数据进行静音mute处理,获得静音muted数据,从而可以降低麦克风误采集环境噪声所带来的听感体验的影响。In some embodiments, if the wearing information indicates that the Bluetooth headset is not in a worn state, the collected audio data can be muted to obtain muted data, thereby reducing the impact of the listening experience caused by the microphone mistakenly collecting environmental noise.
请参阅图8,图8示出了本申请的图7所示的设备的控制方法的步骤S620的流程示意图。下面将针对图8所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to Figure 8, which shows a schematic flow chart of step S620 of the control method of the device shown in Figure 7 of the present application. The flow chart shown in Figure 8 will be described in detail below. The method may specifically include the following steps:
步骤S621:若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则确定所述蓝牙耳机处于非佩戴状态的时长。Step S621: If the wearing information indicates that the Bluetooth headset is in a non-wearing state, determine the duration of the Bluetooth headset being in the non-wearing state.
在一些实施方式中,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则可以确定该蓝牙耳机处于非佩戴状态的时长。作为一种方式,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则可以通过该蓝牙耳机的计时器确定该蓝牙耳机处于佩戴状态的时长。其中,蓝牙耳机可以检测其是否处于佩戴状态,在检测到其开始处于非佩戴状态的情况下,则可以开启计时器检测该蓝牙耳机处于非佩戴装的时长。In some embodiments, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, the duration of the Bluetooth headset in the non-wearing state can be determined. As a method, if the wearing information indicates that the Bluetooth headset is in a non-wearing state, the duration of the Bluetooth headset in the wearing state can be determined by a timer of the Bluetooth headset. The Bluetooth headset can detect whether it is in a wearing state, and if it is detected that it is beginning to be in a non-wearing state, the timer can be started to detect the duration of the Bluetooth headset in the non-wearing state.
步骤S622:若所述时长未达到时长阈值,则对所述采集的音频数据进行静音处理,获得静音数据。Step S622: If the duration does not reach the duration threshold, mute processing is performed on the collected audio data to obtain mute data.
在一些实施方式中,蓝牙耳机可以预先设置并存储有时长阈值,其中,该时长阈值用于作为该蓝牙耳机处于非佩戴状态的时长的判断依据。因此,在本实施例中,在确定该蓝牙耳机处于非佩戴状态的时长的情况下,则可以将该蓝牙耳机处于非佩戴状态的时长与时长阈值进行比较,以判断该时长是否达到时长阈值。In some embodiments, the Bluetooth headset may be pre-set and store a duration threshold, wherein the duration threshold is used as a basis for determining the duration of the Bluetooth headset being in a non-wearing state. Therefore, in this embodiment, when determining the duration of the Bluetooth headset being in a non-wearing state, the duration of the Bluetooth headset being in a non-wearing state may be compared with the duration threshold to determine whether the duration reaches the duration threshold.
其中,在确定该时长未达到时长阈值的情况下,表征用户可能在短时间内重新佩戴上该蓝牙耳机,则可以对采集的音频数据进行静音处理,并保持电子设备与蓝牙耳机之间的连接同步流,以实现后续快速恢复通话。Among them, when it is determined that the duration has not reached the duration threshold, it indicates that the user may put on the Bluetooth headset again in a short time. In this case, the collected audio data can be muted and the connection synchronization stream between the electronic device and the Bluetooth headset can be maintained to achieve subsequent rapid resumption of the call.
步骤S623:若所述时长达到时长阈值,则断开所述蓝牙耳机与所述电子设备之间的连接同步流。Step S623: If the duration reaches a duration threshold, disconnecting the connection synchronization flow between the Bluetooth headset and the electronic device.
其中,在确定该时长达到时长阈值的情况下,表征用户不会在短时间内重新佩戴上该蓝牙耳机,则可以断开蓝牙耳机与电子设备之间的连接同步流,以降低电子设备与蓝牙耳机的功耗。Among them, when it is determined that the duration reaches the duration threshold, it means that the user will not put on the Bluetooth headset again in a short time, then the connection synchronization stream between the Bluetooth headset and the electronic device can be disconnected to reduce the power consumption of the electronic device and the Bluetooth headset.
步骤S630:上传所述静音数据至所述电子设备。Step S630: Upload the mute data to the electronic device.
在本实施例中,在获得静音数据的情况下,则可以将静音数据上传至电子设备,这种方式可以保持连接同步流不断连,从而可以提升后续恢复通话效果的效率;另外,这种方式可以解决蓝牙耳机未处于佩戴状态的过程中继续拾音导致的通话效果干扰的问题。In this embodiment, when the mute data is obtained, the mute data can be uploaded to the electronic device. This method can keep the connection synchronization stream uninterrupted, thereby improving the efficiency of subsequent restoration of call quality. In addition, this method can solve the problem of call quality interference caused by continuing to pick up sound when the Bluetooth headset is not in a wearing state.
作为一种示例,假设该蓝牙耳机为左耳对应的蓝牙耳机。假设左耳对应的蓝牙耳机此时摘下,当蓝牙耳机的佩戴检测模块发现当前不处于佩戴模式时,蓝牙耳机此时将mic采集的声音全部进行静音mute处理,后续CIS通话上行即为muted数据,这样可以降低mic误采集环境噪声带来的听感体验的影响。As an example, assume that the Bluetooth headset is the Bluetooth headset corresponding to the left ear. Assume that the Bluetooth headset corresponding to the left ear is taken off at this time. When the wearing detection module of the Bluetooth headset finds that it is not in the wearing mode, the Bluetooth headset mutes all the sounds collected by the mic. The subsequent CIS call uplink is muted data, which can reduce the impact of the listening experience caused by the mic's mistaken collection of environmental noise.
当然,右耳对应的蓝牙耳机,或者,双耳对应的蓝牙耳机,均可以适用上述示例,在此不再赘述。Of course, the above examples can be applied to the Bluetooth headset corresponding to the right ear, or the Bluetooth headset corresponding to both ears, which will not be repeated here.
步骤S640:若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则取消对所述采集的音频数据进行静音处理。Step S640: If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, canceling the mute processing of the collected audio data.
在本实施例中,蓝牙耳机在上传静音数据的过程中,若电子设备仍然处于通话状态,则可以继续获取蓝牙耳机的佩戴信息,并基于该蓝牙耳机的佩戴信息确定该蓝牙耳机是否从处于非佩戴状态切换为处于佩戴状态。其中,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则可以取消对采集的音频数据进行静音处理,此时,蓝牙耳机欲上传的音频数据即为采集的音频数据。In this embodiment, when the Bluetooth headset is uploading the mute data, if the electronic device is still in a call state, the wearing information of the Bluetooth headset can continue to be obtained, and based on the wearing information of the Bluetooth headset, it is determined whether the Bluetooth headset is switched from a non-wearing state to a wearing state. If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the mute processing of the collected audio data can be canceled, and at this time, the audio data to be uploaded by the Bluetooth headset is the collected audio data.
步骤S650:上传采集的音频数据至所述电子设备。Step S650: Upload the collected audio data to the electronic device.
在本实施例中,蓝牙耳机在采集到音频数据的情况下,则可以将采集到音频数据上传至电子设备。In this embodiment, when the Bluetooth headset collects audio data, the collected audio data can be uploaded to the electronic device.
作为一种示例,假设该蓝牙耳机为左耳对应的蓝牙耳机。当用户将蓝牙耳机重新佩戴后,蓝牙耳机的佩戴检测模块发现当前处于佩戴模式,随即取消对mic数据的mute处理,即恢复正常的通话方式。As an example, assuming that the Bluetooth headset is a Bluetooth headset corresponding to the left ear, when the user puts on the Bluetooth headset again, the wearing detection module of the Bluetooth headset finds that it is currently in the wearing mode, and then cancels the mute processing of the mic data, that is, restores the normal call mode.
当然,右耳对应的蓝牙耳机,或者,双耳对应的蓝牙耳机,均可以适用上述示例,在此不再赘述。Of course, the above examples can be applied to the Bluetooth headset corresponding to the right ear, or the Bluetooth headset corresponding to both ears, which will not be repeated here.
本申请一实施例提供的设备的控制方法,在电子设备处于通话状态的情况下,获取蓝牙耳机的佩戴信息,若该佩戴信息指示蓝牙耳机处于非佩戴状态,则对采集的音频数据进行静音处理,获得静音数据,上传静音数据至电子设备,若该佩戴信息指示该蓝牙耳机从处于非佩戴状态切换为处于 佩戴状态,则取消对采集的音频数据进行静音处理,上传采集的音频数据至电子设备。相较于图2所示的设备的控制方法,本实施例还根据蓝牙耳机的佩戴信息,对采集的音频数据进行静音处理或者不进行静音处理,可以在电子设备无感的情况下解决通话干扰的问题,可以提升用户的通话体验。The control method of a device provided in an embodiment of the present application obtains the wearing information of a Bluetooth headset when the electronic device is in a call state. If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the collected audio data is muted to obtain the muted data, and the muted data is uploaded to the electronic device. If the wearing information indicates that the Bluetooth headset is switched from the non-wearing state to the Compared with the control method of the device shown in FIG2 , this embodiment also mutes or does not mute the collected audio data according to the wearing information of the Bluetooth headset, which can solve the problem of call interference without the electronic device noticing and improve the user's call experience.
请参阅图9,图9示出了本申请一实施例提供的设备的控制装置的模块框图。该设备的控制装置300应用于上述蓝牙耳机,该蓝牙耳机与电子设备建立有连接同步流,下面将针对图9所示的框图进行阐述,所述设备的控制装置300包括:佩戴信息获取模块310和设备的控制模块320,其中:Please refer to FIG. 9, which shows a block diagram of a control device of a device provided in an embodiment of the present application. The control device 300 of the device is applied to the above-mentioned Bluetooth headset, and the Bluetooth headset establishes a connection synchronization flow with the electronic device. The following will be described with respect to the block diagram shown in FIG. 9. The control device 300 of the device includes: a wearing information acquisition module 310 and a control module 320 of the device, wherein:
佩戴信息获取模块310,用于在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息。The wearing information acquisition module 310 is used to acquire the wearing information of the Bluetooth headset when the electronic device is in a call state.
设备的控制模块320,用于若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备。The control module 320 of the device is used to stop uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
进一步地,所述设备的控制模块320包括:连接同步流断开子模块,其中:Furthermore, the control module 320 of the device includes: a connection synchronization stream disconnection submodule, wherein:
连接同步流断开子模块,用于若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则断开所述蓝牙耳机与所述电子设备之间的连接同步流,以停止上传采集的音频数据至所述电子设备。The connection synchronization stream disconnection submodule is used to disconnect the connection synchronization stream between the Bluetooth headset and the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state, so as to stop uploading the collected audio data to the electronic device.
进一步地,所述设备的控制模块320包括:静音数据获得子模块和静音数据上传子模块,其中:Furthermore, the control module 320 of the device includes: a silent data acquisition submodule and a silent data upload submodule, wherein:
静音数据获得子模块,用于若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则对所述采集的音频数据进行静音处理,获得静音数据。The mute data acquisition submodule is used to perform mute processing on the collected audio data to obtain mute data if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
进一步地,所述静音数据获得子模块包括:时长确定单元、静音数据获得单元以及第三连接同步流断开单元,其中:Furthermore, the silence data obtaining submodule includes: a duration determining unit, a silence data obtaining unit and a third connection synchronization stream disconnecting unit, wherein:
时长确定单元,用于若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则确定所述蓝牙耳机处于非佩戴状态的时长。A duration determining unit is used to determine the duration of the Bluetooth headset being in the non-wearing state if the wearing information indicates that the Bluetooth headset is in the non-wearing state.
静音数据获得单元,用于若所述时长未达到时长阈值,则对所述采集的音频数据进行静音处理,获得静音数据。The silence data obtaining unit is used to perform silence processing on the collected audio data to obtain silence data if the duration does not reach the duration threshold.
第三连接同步流断开单元,用于若所述时长达到时长阈值,则断开所述蓝牙耳机与所述电子设备之间的连接同步流。The third connection synchronization stream disconnection unit is used to disconnect the connection synchronization stream between the Bluetooth headset and the electronic device if the duration reaches a duration threshold.
静音数据上传子模块,用于上传所述静音数据至所述电子设备。The mute data uploading submodule is used to upload the mute data to the electronic device.
进一步地,所述设备的控制模块320包括:静音数据取消子模块和音频数据上传子模块,其中:Furthermore, the control module 320 of the device includes: a mute data canceling submodule and an audio data uploading submodule, wherein:
静音处理取消子模块,用于若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则取消对所述采集的音频数据进行静音处理。The mute processing canceling submodule is used to cancel the mute processing of the collected audio data if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state.
音频数据上传子模块,用于上传所述采集的音频数据至所述电子设备。The audio data uploading submodule is used to upload the collected audio data to the electronic device.
进一步地,所述连接同步流断开子模块/第三连接同步流断开单元,包括:第一更新信息获得单元和第一连接同步流断开单元,其中:Further, the connection synchronization stream disconnection submodule/third connection synchronization stream disconnection unit includes: a first update information obtaining unit and a first connection synchronization stream disconnection unit, wherein:
第一更新信息获得单元,用于更新所述蓝牙耳机的播放能力信息获得第一更新信息,其中,所述播放能力信息用于指示所述蓝牙耳机支持播放的音频类型,所述第一更新信息用于指示所述蓝牙耳机不支持播放通话音频类型。The first update information obtaining unit is used to update the playback capability information of the Bluetooth headset to obtain first update information, wherein the playback capability information is used to indicate the audio type supported by the Bluetooth headset for playback, and the first update information is used to indicate that the Bluetooth headset does not support the playback of call audio types.
进一步地,所述第一更新信息获得单元包括:第一更新信息获得子单元,其中:Furthermore, the first update information obtaining unit includes: a first update information obtaining subunit, wherein:
第一更新信息获得子单元,用于将所述蓝牙耳机的可用音频上下文中的通话音频类型的状态信息更新为不可用状态,获得所述第一更新信息。The first update information obtaining subunit is used to update the state information of the call audio type in the available audio context of the Bluetooth headset to an unavailable state, and obtain the first update information.
第一连接同步流断开单元,用于发送所述第一更新信息至所述电子设备,以指示所述电子设备断开与所述蓝牙耳机之间的连接同步流。The first connection synchronization stream disconnection unit is used to send the first update information to the electronic device to instruct the electronic device to disconnect the connection synchronization stream between the electronic device and the Bluetooth headset.
进一步地,所述连接同步流断开子模块包括:第二更新信息获得单元和第一连接同步流建立单元,其中:Furthermore, the connection synchronization stream disconnection submodule includes: a second update information obtaining unit and a first connection synchronization stream establishing unit, wherein:
第二更新信息获得单元,用于更新所述蓝牙耳机的播放能力信息获得第二更新信息,其中,所述第二更新信息用于指示所述蓝牙耳机支持播放通话音频类型。The second update information obtaining unit is used to update the playback capability information of the Bluetooth headset to obtain second update information, wherein the second update information is used to indicate that the Bluetooth headset supports the playback of call audio types.
进一步地,所述第二更新信息获得单元包括:第二更新信息获得子单元,其中:Further, the second update information obtaining unit includes: a second update information obtaining subunit, wherein:
第二更新信息获得子单元,用于若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则将所述蓝牙耳机的可用音频上下文中的通话音频类型的状态信息更新为可用状态,获得所述第二更新信息。The second update information obtaining subunit is used to update the state information of the call audio type in the available audio context of the Bluetooth headset to an available state if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, and obtain the second update information.
第一连接同步流建立单元,用于发送所述第二更新信息至所述电子设备。The first connection synchronization flow establishing unit is used to send the second update information to the electronic device.
进一步地,所述连接同步流断开子模块包括:第二连接同步流断开单元和第三连接同步流断开单元,其中:Further, the connection synchronization stream disconnection submodule includes: a second connection synchronization stream disconnection unit and a third connection synchronization stream disconnection unit, wherein:
第二连接同步流断开单元,用于断开与所述电子设备之间的连接同步流,停止上报与通话相关的编码能力信息至所述电子设备,其中,所述编码能力信息用于指示所述蓝牙耳机支持编码的音频类型。The second connection synchronization stream disconnection unit is used to disconnect the connection synchronization stream between the electronic device and stop reporting the coding capability information related to the call to the electronic device, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth headset for coding.
第三连接同步流断开单元,用于停止上报与通话相关的编码能力信息至所述电子设备,以指示所述电子设备断开与所述蓝牙耳机之间的连接同步流,其中,所述编码能力信息用于指示所述蓝牙耳机支持编码 的音频类型。The third connection synchronization flow disconnection unit is used to stop reporting the coding capability information related to the call to the electronic device, so as to instruct the electronic device to disconnect the connection synchronization flow between the electronic device and the Bluetooth headset, wherein the coding capability information is used to indicate that the Bluetooth headset supports coding The audio type.
进一步地,所述第二连接同步流断开单元/第三连接同步流断开单元,包括:编码能力信息停止上报子单元,其中:Further, the second connection synchronization stream disconnection unit/the third connection synchronization stream disconnection unit includes: a coding capability information stopping reporting subunit, wherein:
编码能力信息停止上报子单元,用于发起第一编码器重新配置,以停止上报与通话相关的编码能力信息至所述电子设备。The coding capability information stopping reporting subunit is used to initiate the reconfiguration of the first encoder to stop reporting the coding capability information related to the call to the electronic device.
进一步地,所述连接同步流断开子模块包括:第二连接同步流建立单元,其中:Further, the connection synchronization flow disconnection submodule includes: a second connection synchronization flow establishment unit, wherein:
第二连接同步流建立单元,用于若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上报与通话相关的编码能力信息至所述电子设备。The second connection synchronization flow establishing unit is used to resume reporting the coding capability information related to the call to the electronic device if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state.
进一步地,所述第二连接同步流建立单元包括:编码能力信息恢复上报子单元,其中:Furthermore, the second connection synchronization flow establishing unit includes: a coding capability information recovery reporting subunit, wherein:
编码能力信息恢复上报子单元,发起第二编码器重新配置,以恢复上报与通话相关的编码能力信息至所述电子设备。The coding capability information recovery reporting subunit initiates reconfiguration of the second encoder to recover and report the coding capability information related to the call to the electronic device.
进一步地,所述设备的控制装置300还包括:数据上传模块,其中:Furthermore, the control device 300 of the device further includes: a data uploading module, wherein:
数据上传模块,用于若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上传采集的音频数据至所述电子设备。The data uploading module is used to resume uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
请参阅图10,其示出了本申请实施例提供的一种蓝牙耳机100的结构框图。该蓝牙耳机100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的蓝牙耳机100可以包括一个或多个如下部件:处理器110、存储器120、触摸屏130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to Figure 10, which shows a structural block diagram of a Bluetooth headset 100 provided in an embodiment of the present application. The Bluetooth headset 100 can be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The Bluetooth headset 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more applications, wherein one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the aforementioned method embodiment.
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个蓝牙耳机100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行蓝牙耳机100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire Bluetooth headset 100, and executes various functions and processes data of the Bluetooth headset 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but implemented separately through a communication chip.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储蓝牙耳机100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the Bluetooth headset 100 during use (such as a phone book, audio and video data, chat record data), etc.
请参阅图11,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质400中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to Figure 11, which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 400 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
计算机可读存储介质400可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质400包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质400具有执行上述方法中的任何方法步骤的程序代码410的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码410可以例如以适当形式进行压缩。The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 comprises a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has storage space for program code 410 for executing any method steps in the above method. These program codes may be read from or written to one or more computer program products. The program code 410 may be compressed, for example, in a suitable form.
综上所述,本申请实施例提供的设备的控制方法、装置、蓝牙耳机以及存储介质,该方法应用于蓝牙耳机,该蓝牙耳机与电子设备建立有连接同步流。在电子设备处于通话状态的情况下,获取蓝牙耳机的佩戴信息,若该佩戴信息指示该蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至电子设备,从而通过在电子设备处于通话状态的情况下,若蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至该电子设备,从而可以自适应地进行通话调整,优化用户实际的通话体验,提 升产品竞争力。In summary, the control method, apparatus, Bluetooth headset and storage medium of the device provided in the embodiments of the present application are applied to a Bluetooth headset, and the Bluetooth headset establishes a connection synchronization stream with the electronic device. When the electronic device is in a call state, the wearing information of the Bluetooth headset is obtained. If the wearing information indicates that the Bluetooth headset is not in a worn state, the uploading of the collected audio data to the electronic device is stopped, so that the call can be adaptively adjusted to optimize the user's actual call experience and provide a better call experience. Improve product competitiveness.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种设备的控制方法,其特征在于,应用于蓝牙耳机,所述蓝牙耳机与电子设备建立有连接同步流,所述方法包括:A device control method, characterized in that it is applied to a Bluetooth headset, wherein the Bluetooth headset establishes a connection synchronization stream with an electronic device, and the method comprises:
    在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息;When the electronic device is in a call state, acquiring wearing information of the Bluetooth headset;
    若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备。If the wearing information indicates that the Bluetooth headset is in a non-wearing state, then uploading the collected audio data to the electronic device is stopped.
  2. 根据权利要求1所述的方法,其特征在于,在所述若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备之后,还包括:The method according to claim 1, characterized in that after the step of stopping uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state, it further comprises:
    若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上传采集的音频数据至所述电子设备。If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the collected audio data is resumed to be uploaded to the electronic device.
  3. 根据权利要求1所述的方法,其特征在于,所述若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备,包括:The method according to claim 1, characterized in that if the wearing information indicates that the Bluetooth headset is in a non-wearing state, stopping uploading the collected audio data to the electronic device comprises:
    若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则断开所述蓝牙耳机与所述电子设备之间的连接同步流,以停止上传采集的音频数据至所述电子设备。If the wearing information indicates that the Bluetooth headset is in a non-wearing state, the connection synchronization stream between the Bluetooth headset and the electronic device is disconnected to stop uploading the collected audio data to the electronic device.
  4. 根据权利要求1所述的方法,其特征在于,所述若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备,包括:The method according to claim 1, characterized in that if the wearing information indicates that the Bluetooth headset is in a non-wearing state, stopping uploading the collected audio data to the electronic device comprises:
    若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则对所述采集的音频数据进行静音处理,获得静音数据;If the wearing information indicates that the Bluetooth headset is in a non-wearing state, performing mute processing on the collected audio data to obtain mute data;
    上传所述静音数据至所述电子设备。The mute data is uploaded to the electronic device.
  5. 根据权利要求4所述的方法,其特征在于,在所述上传所述静音数据至所述电子设备之后,还包括:The method according to claim 4, characterized in that after uploading the mute data to the electronic device, it also includes:
    若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则取消对所述蓝牙耳机采集的音频数据进行静音处理;If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, canceling the mute processing of the audio data collected by the Bluetooth headset;
    上传采集的音频数据至所述电子设备。Upload the collected audio data to the electronic device.
  6. 根据权利要求4所述的方法,其特征在于,所述若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则对所述采集的音频数据进行静音处理,获得静音数据,包括:The method according to claim 4, characterized in that if the wearing information indicates that the Bluetooth headset is in a non-wearing state, muting the collected audio data to obtain muted data comprises:
    若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则确定所述蓝牙耳机处于非佩戴状态的时长;If the wearing information indicates that the Bluetooth headset is in a non-wearing state, determining a duration for which the Bluetooth headset is in a non-wearing state;
    若所述时长未达到时长阈值,则对所述采集的音频数据进行静音处理,获得静音数据。If the duration does not reach the duration threshold, the collected audio data is muted to obtain muted data.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, characterized in that the method further comprises:
    若所述时长达到时长阈值,则断开所述蓝牙耳机与所述电子设备之间的连接同步流。If the duration reaches a duration threshold, the connection synchronization stream between the Bluetooth headset and the electronic device is disconnected.
  8. 根据权利要求3或7所述的方法,其特征在于,所述断开所述蓝牙耳机与所述电子设备之间的连接同步流,包括:The method according to claim 3 or 7, characterized in that the disconnecting the synchronization flow between the Bluetooth headset and the electronic device comprises:
    更新所述蓝牙耳机的播放能力信息获得第一更新信息,其中,所述播放能力信息用于指示所述蓝牙耳机支持播放的音频类型,所述第一更新信息用于指示所述蓝牙耳机不支持播放通话音频类型;Updating the playback capability information of the Bluetooth headset to obtain first update information, wherein the playback capability information is used to indicate the audio type supported by the Bluetooth headset for playback, and the first update information is used to indicate that the Bluetooth headset does not support the playback of call audio type;
    发送所述第一更新信息至所述电子设备,以指示所述电子设备断开与所述蓝牙耳机之间的连接同步流。The first update information is sent to the electronic device to instruct the electronic device to disconnect the synchronization flow between the electronic device and the Bluetooth headset.
  9. 根据权利要求8所述的方法,其特征在于,所述播放能力信息包括可用音频上下文,所述更新所述蓝牙耳机的播放能力信息获得第一更新信息,包括:The method according to claim 8, wherein the playback capability information includes an available audio context, and the updating of the playback capability information of the Bluetooth headset to obtain first update information comprises:
    将所述蓝牙耳机的可用音频上下文中的通话音频类型的状态信息更新为不可用状态,获得所述第一更新信息。The state information of the call audio type in the available audio context of the Bluetooth headset is updated to an unavailable state, and the first update information is obtained.
  10. 根据权利要求8所述的方法,其特征在于,在所述发送所述第一更新信息至所述电子设备,以指示所述电子设备断开与所述蓝牙耳机之间的连接同步流之后,还包括:The method according to claim 8, characterized in that after sending the first update information to the electronic device to instruct the electronic device to disconnect the connection synchronization flow between the electronic device and the Bluetooth headset, it also includes:
    若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则更新所述蓝牙耳机的播放能力信息获得第二更新信息,其中,所述第二更新信息用于指示所述蓝牙耳机支持播放通话音频类型;If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, updating the playback capability information of the Bluetooth headset to obtain second update information, wherein the second update information is used to indicate that the Bluetooth headset supports playback of call audio types;
    发送所述第二更新信息至所述电子设备。The second update information is sent to the electronic device.
  11. 根据权利要求10所述的方法,其特征在于,所述播放能力信息包括可用音频上下文,所述若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则更新所述蓝牙耳机的播放能力信息获得第二更新信息,包括:The method according to claim 10, characterized in that the playback capability information includes an available audio context, and if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, updating the playback capability information of the Bluetooth headset to obtain second update information comprises:
    若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则将所述蓝牙耳机的可用音频上下文中的通话音频类型的状态信息更新为可用状态,获得所述第二更新信息。If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the state information of the call audio type in the available audio context of the Bluetooth headset is updated to an available state, and the second update information is obtained.
  12. 根据权利要求3或7所述的方法,其特征在于,所述断开所述蓝牙耳机与所述电子设备之间的连接同步流,包括: The method according to claim 3 or 7, characterized in that the disconnecting the synchronization flow between the Bluetooth headset and the electronic device comprises:
    断开与所述电子设备之间的连接同步流,停止上报与通话相关的编码能力信息至所述电子设备,其中,所述编码能力信息用于指示所述蓝牙耳机支持编码的音频类型;或者Disconnecting the connection synchronization flow with the electronic device, and stopping reporting the coding capability information related to the call to the electronic device, wherein the coding capability information is used to indicate the audio type that the Bluetooth headset supports coding; or
    停止上报与通话相关的编码能力信息至所述电子设备,以指示所述电子设备断开与所述蓝牙耳机之间的连接同步流,其中,所述编码能力信息用于指示所述蓝牙耳机支持编码的音频类型。Stop reporting the coding capability information related to the call to the electronic device to instruct the electronic device to disconnect the connection synchronization stream with the Bluetooth headset, wherein the coding capability information is used to indicate the audio type supported by the Bluetooth headset for coding.
  13. 根据权利要求12所述的方法,其特征在于,所述停止上报与通话相关的编码能力信息至所述电子设备,包括:The method according to claim 12, wherein the step of stopping reporting the coding capability information related to the call to the electronic device comprises:
    发起第一编码器重新配置,以停止上报与通话相关的编码能力信息至所述电子设备。Initiate a first encoder reconfiguration to stop reporting the encoding capability information related to the call to the electronic device.
  14. 根据权利要求12所述的方法,其特征在于,在所述停止上报与通话相关的编码能力信息至所述电子设备之后,还包括:The method according to claim 12, characterized in that after the step of stopping reporting the coding capability information related to the call to the electronic device, it further comprises:
    若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上报与通话相关的编码能力信息至所述电子设备。If the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state, the coding capability information related to the call is resumed to be reported to the electronic device.
  15. 根据权利要求14所述的方法,其特征在于,所述恢复上报与通话相关的编码能力信息至所述电子设备,包括:The method according to claim 14, wherein the resuming reporting of the coding capability information related to the call to the electronic device comprises:
    发起第二编码器重新配置,以恢复上报与通话相关的编码能力信息至所述电子设备。Initiate a second encoder reconfiguration to resume reporting the coding capability information related to the call to the electronic device.
  16. 根据权利要求1-7任一项所述的方法,其特征在于,所述获取所述蓝牙耳机的佩戴信息,包括:The method according to any one of claims 1 to 7, characterized in that the obtaining of the wearing information of the Bluetooth headset comprises:
    通过姿态传感器检测获取所述蓝牙耳机的佩戴信息;Acquire wearing information of the Bluetooth headset through posture sensor detection;
    通过接触传感器检测获取所述蓝牙耳机的佩戴信息;和/或Acquiring wearing information of the Bluetooth headset through contact sensor detection; and/or
    通过压力传感器检测获取所述蓝牙耳机的佩戴信息。The wearing information of the Bluetooth headset is acquired through pressure sensor detection.
  17. 一种设备的控制装置,其特征在于,应用于蓝牙耳机,所述蓝牙耳机与电子设备建立有连接同步流,所述装置包括:A device control device, characterized in that it is applied to a Bluetooth headset, the Bluetooth headset and the electronic device establish a connection synchronization flow, and the device comprises:
    佩戴信息获取模块,用于在所述电子设备处于通话状态的情况下,获取所述蓝牙耳机的佩戴信息;A wearing information acquisition module, used to acquire wearing information of the Bluetooth headset when the electronic device is in a call state;
    设备的控制模块,用于若所述佩戴信息指示所述蓝牙耳机处于非佩戴状态,则停止上传采集的音频数据至所述电子设备。The control module of the device is used to stop uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is in a non-wearing state.
  18. 根据权利要求17所述的装置,其特征在于,所述装置还包括:The device according to claim 17, characterized in that the device further comprises:
    数据上传模块,用于若所述佩戴信息指示所述蓝牙耳机从处于非佩戴状态切换为处于佩戴状态,则恢复上传采集的音频数据至所述电子设备。The data uploading module is used to resume uploading the collected audio data to the electronic device if the wearing information indicates that the Bluetooth headset is switched from a non-wearing state to a wearing state.
  19. 一种蓝牙耳机,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-16任一项所述的方法。A Bluetooth headset, characterized in that it includes a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 16.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-16任一项所述的方法。 A computer-readable storage medium, characterized in that program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method according to any one of claims 1 to 16.
PCT/CN2023/106373 2022-09-30 2023-07-07 Device control method and apparatus, bluetooth earphone, and storage medium WO2024066648A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211211519.5A CN117857964A (en) 2022-09-30 2022-09-30 Control method and device of equipment, bluetooth headset and storage medium
CN202211211519.5 2022-09-30

Publications (1)

Publication Number Publication Date
WO2024066648A1 true WO2024066648A1 (en) 2024-04-04

Family

ID=90475893

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/106373 WO2024066648A1 (en) 2022-09-30 2023-07-07 Device control method and apparatus, bluetooth earphone, and storage medium

Country Status (2)

Country Link
CN (1) CN117857964A (en)
WO (1) WO2024066648A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787452A (en) * 2020-07-29 2020-10-16 歌尔科技有限公司 TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium
CN113194379A (en) * 2021-04-27 2021-07-30 歌尔股份有限公司 Wireless earphone control method, wireless earphone and readable storage medium
US20220086555A1 (en) * 2019-01-25 2022-03-17 D&M Holdings, Inc. Earphone device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220086555A1 (en) * 2019-01-25 2022-03-17 D&M Holdings, Inc. Earphone device
CN111787452A (en) * 2020-07-29 2020-10-16 歌尔科技有限公司 TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium
CN113194379A (en) * 2021-04-27 2021-07-30 歌尔股份有限公司 Wireless earphone control method, wireless earphone and readable storage medium

Also Published As

Publication number Publication date
CN117857964A (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN107529126B (en) Robustness based on NFMI
WO2020063047A1 (en) Audio playback method and apparatus, electronic device and storage medium
US8363844B2 (en) Contextual audio switching for a USB controlled audio device
WO2020063046A1 (en) Audio playback method and device, electronic device and storage medium
WO2017035967A1 (en) Smart speaker volume control method, device, smart speaker and mobile terminal
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
WO2021103739A1 (en) Audio data transmission method and device for wireless headphone, and storage medium and terminal
JP2004235838A (en) Electronic apparatus, its connection controlling method and method for regulating voice
CN107621933B (en) Audio playing method and device and related medium product
WO2017045453A1 (en) Monitoring method and device based on earphone
WO2020063069A1 (en) Audio playing method and apparatus, electronic device and computer-readable medium
CN102170493A (en) Mobile phone as well as method and device for controlling video calls of mobile phone
WO2021169472A1 (en) Voice call transfer method and electronic device
US10719292B2 (en) Sound enhancement adapter
US10972845B1 (en) Hearing device and systems and methods for communicating with the same
CN115769602A (en) Switching between multiple earplug architectures
EP3745813A1 (en) Method for operating a bluetooth device
WO2022022423A1 (en) Method and apparatus for realizing low power consumption of wireless headset, and wireless headset and readable storage medium
WO2024066648A1 (en) Device control method and apparatus, bluetooth earphone, and storage medium
CN114501239A (en) Master-slave switching method and device of earphone, Bluetooth earphone and storage medium
US10230830B2 (en) Sensor-based mute control for a softphone client
TW202232983A (en) Bluetooth communication system capable of avoiding voice interruption, and related bluetooth device set
CN116615918A (en) Sensor management for wireless devices
WO2024045877A1 (en) Device connection method and apparatus, and electronic device and storage medium
WO2024060750A1 (en) Bluetooth switching method and apparatus, bluetooth connection method and apparatus, and electronic device