WO2020063065A1 - Audio transmission method and apparatus, electronic device, and storage medium - Google Patents

Audio transmission method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2020063065A1
WO2020063065A1 PCT/CN2019/096838 CN2019096838W WO2020063065A1 WO 2020063065 A1 WO2020063065 A1 WO 2020063065A1 CN 2019096838 W CN2019096838 W CN 2019096838W WO 2020063065 A1 WO2020063065 A1 WO 2020063065A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
bluetooth headset
user
ear
electronic device
Prior art date
Application number
PCT/CN2019/096838
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 WO2020063065A1 publication Critical patent/WO2020063065A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Definitions

  • the present application relates to the technical field of electronic devices, and more particularly, to an audio transmission method, device, electronic device, and storage medium.
  • this application proposes an audio transmission method, device, electronic device, and storage medium to solve the above problems.
  • an embodiment of the present application provides an audio transmission method applied to an electronic device.
  • the method includes: when the electronic device and two Bluetooth headsets are in a connected state, obtaining the two Bluetooth headsets respectively. State of use; when the two Bluetooth headsets are both placed on the user's ear, determine the first Bluetooth headset placed on the user's left ear and the second Bluetooth headset placed on the user's right ear; The left channel audio signal of the electronic device is transmitted to the first Bluetooth headset, and the right channel audio signal of the electronic device is transmitted to the second Bluetooth headset.
  • an embodiment of the present application provides an audio transmission device applied to an electronic device.
  • the device includes: an acquiring module configured to acquire the electronic device when the electronic device is connected to two Bluetooth headsets respectively. The use state of the two Bluetooth headsets is described; a determining module configured to determine, when the two Bluetooth headsets are both placed on the user's ear, the first Bluetooth headset placed on the user's left ear and the first Bluetooth headset placed on the user's left ear A second Bluetooth headset of the user's right ear; a transmission module for transmitting a left-channel audio signal of the electronic device to the first Bluetooth headset, and transmitting a right-channel audio signal of the electronic device to the Second Bluetooth headset.
  • an embodiment of the present application provides an electronic device including a Bluetooth module; a memory;
  • One or more processors respectively coupled to the Bluetooth module and the memory; one or more programs, wherein the one or more application programs are stored in the memory and configured to be controlled by the memory; One or more processors execute, and the one or more programs are configured to perform the methods described above.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the foregoing method.
  • FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another application environment provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of an audio transmission method according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of an audio transmission method according to another embodiment of the present application.
  • FIG. 5 shows a schematic flowchart of step S250 of the audio transmission method provided by the embodiment shown in FIG. 4 of the present application;
  • FIG. 6 is a schematic flowchart of an audio transmission method according to another embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of step S330 of the audio transmission method provided by the embodiment shown in FIG. 6 of the present application;
  • FIG. 8 shows a module block diagram of an audio transmission device according to an embodiment of the present application.
  • FIG. 9 shows a module block diagram of an audio transmission device according to another embodiment of the present application.
  • FIG. 10 shows a block diagram of an electronic device for performing an audio transmission method according to an embodiment of the present application
  • FIG. 11 illustrates a storage unit for saving or carrying a program code for implementing an audio transmission method according to an embodiment of the present application.
  • the audio architecture of an electronic device is similar to that of a computer, and is mainly completed by a processor and a built-in audio CODEC (codec). Specifically, after receiving the input of audio data, the processor converts it into an I2S signal, transmits it to a CODEC, converts it into an analog signal, and then plays it.
  • the electronic device may be connected to an external audio playback device and play audio data through the audio playback device.
  • the audio playback device may receive audio data transmitted from the electronic device and play the audio data.
  • Audio playback devices may include headphones, speakers, and on-board equipment.
  • electronic devices and external audio playback devices need to use a network to perform data transmission.
  • electronic devices and audio playback devices need to use a wireless fidelity (WiFi) connection for data transmission, or electronic devices and The audio playback device needs to use Bluetooth (BT) connection for data transmission, etc.
  • WiFi wireless fidelity
  • BT Bluetooth
  • the electronic device can be connected to the audio playback device via Bluetooth, and the audio data is transmitted to the audio playback device via Bluetooth for playback. .
  • the current electronic device 100 generally has a Bluetooth (BT) module.
  • the Bluetooth module may refer to a chip basic circuit set with integrated Bluetooth function, and is used for wireless network communication.
  • the electronic device 100 can perform a Bluetooth connection with a Bluetooth device (such as an audio playback device such as a Bluetooth headset, a Bluetooth speaker, and a video playback device such as a projector or a television) through a Bluetooth module.
  • a Bluetooth headset is used as an example, as shown in FIG. 1
  • the Bluetooth headset includes a first Bluetooth headset 510 and a second Bluetooth headset 520, and the electronic device 100 establishes a communication link with the first Bluetooth headset 510 and the second Bluetooth headset 520 based on the aforementioned wireless communication protocol, respectively. .
  • FIG. 1 the Bluetooth headset includes a first Bluetooth headset 510 and a second Bluetooth headset 520, and the electronic device 100 establishes a communication link with the first Bluetooth headset 510 and the second Bluetooth headset 520 based on the aforementioned wireless communication protocol, respectively. .
  • the electronic device 100 may directly propose a communication link with the first Bluetooth headset 510 based on the foregoing wireless communication protocol, and then the first Bluetooth headset 510 and the second Bluetooth headset 520 may be based on the foregoing wireless communication.
  • the communication protocol suggests a communication link.
  • the wireless communication protocol may include a Wlan protocol, a Bluetooth protocol, or a ZigBee protocol.
  • the transmitted audio data is fixed and both are mixed sounds, that is, the audio data transmitted to the two Bluetooth headsets for the Bluetooth headsets placed in the left ear
  • the audio data is the same as that transmitted to the two Bluetooth headphones for placing in the user's right ear, the sound effect is poor, and the user experience is not good.
  • the audio channels are established respectively by the electronic device and the left and right Bluetooth headphones, and the left and right Channel audio signals and right channel audio signals to left and right Bluetooth headsets to improve music playback and user experience.
  • the specific audio transmission method is described in detail in the subsequent embodiments.
  • FIG. 3 is a schematic flowchart of an audio transmission method according to an embodiment of the present application.
  • the audio transmission method is used to establish an audio channel between the electronic device and the left and right Bluetooth headsets, and respectively transmit the left channel audio signal and the right channel audio signal to the left and right Bluetooth headsets to improve the music playback effect and the user experience.
  • the audio transmission method is applied to an audio transmission device 200 as shown in FIG. 8 and an electronic device 100 (FIG. 10) configured with the audio transmission device 200.
  • FIG. 10 an electronic device is taken as an example to describe the specific process of this embodiment.
  • the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, a vehicle-mounted device, a gateway, etc. This is not specifically limited.
  • the process shown in FIG. 3 will be described in detail below.
  • the audio transmission method may specifically include the following steps:
  • Step S110 When the electronic device and the two Bluetooth headsets are in a connected state, the use states of the two Bluetooth headsets are respectively acquired.
  • the connection state between the electronic device and the two Bluetooth headsets is first detected.
  • the connection state between the electronic device and the two Bluetooth headsets may include being in a connected state and not being in a connected state. Among them, not in the connected state includes the unconnected state and the connected state.
  • the connection status between the electronic device and the two Bluetooth headsets can be detected separately, that is, the connection status between the electronic device and one of the two Bluetooth headsets is detected, and the electronic device and the two Bluetooth headsets are detected.
  • the connection status of another Bluetooth headset among the two Bluetooth headsets is detected. Understandably, the detection result may include at least the electronic device and the two Bluetooth headsets are connected, the electronic device and the two Bluetooth headsets are not connected, the electronic device and one of the two Bluetooth headsets are connected, and the The other is not connected, and is not limited here.
  • whether the electronic device is connected to the two Bluetooth headsets can be determined by viewing the status value of the electronic device. Specifically, when the electronic device is connected to a Bluetooth headset, a first status value is returned. When the electronic device is connected to two Bluetooth headsets, two first status values are returned; when the electronic device is disconnected from one Bluetooth headset, a second status value is returned. When the electronic device is disconnected from two Bluetooth headphones, Two second status values are returned, so that it can be determined whether the electronic device is in a connected state with the two Bluetooth headsets by detecting the first status value and the second status value.
  • the Android system sends a broadcast when a Bluetooth headset is connected or disconnected, so an electronic device can monitor the broadcast to determine whether the electronic device is in a connected state with the two Bluetooth headsets.
  • the usage states of the two Bluetooth headsets are obtained separately.
  • the use status of the two Bluetooth headsets can be determined by judging whether the two Bluetooth headsets transmit audio data. It can be understood that when the Bluetooth headset is detected to be transmitting audio data, it can indicate that the Bluetooth headset is in use. State, when it is detected that the Bluetooth headset is not transmitting audio data, it can indicate that the Bluetooth headset is in a non-use state.
  • both Bluetooth headsets when it is detected that both Bluetooth headsets are transmitting audio data, it indicates that both Bluetooth headsets are in use; when it is detected that both Bluetooth headsets are not transmitting audio data, it indicates that both Bluetooth headsets are in an unused state; When it is detected that one of the two Bluetooth headsets is transmitting audio data and the other headset is not transmitting audio data, it indicates that one Bluetooth headset is in use and the other Bluetooth headset is in non-use.
  • the use status of the two Bluetooth headsets can be determined by determining whether the two Bluetooth headsets are placed on the user's ears. It is understandable that when the Bluetooth headsets are detected on the user's ears, the user can be considered Audio data is being received through the Bluetooth headset to indicate that the Bluetooth headset is in use. When it is detected that the Bluetooth headset is not placed on the user's ear, it can be considered that the user has not received audio data through the Bluetooth headset, indicating that the Bluetooth headset is in a non-use state.
  • Bluetooth headsets when it is detected that two Bluetooth headsets are placed in the user's ear, that is, one Bluetooth headset is placed in the user's left ear and the other Bluetooth headset is placed in the user's right ear, it indicates that both Bluetooth headsets are in use; when it is detected, When two Bluetooth headsets are not placed on the user's ear, it indicates that both Bluetooth headsets are not in use; when one of the two headsets is detected as being placed on the user's ear, the other Bluetooth headset is not placed on the user's ear It indicates that one Bluetooth headset is in use and the other Bluetooth headset is not in use.
  • this application may also include other methods for judging the use status of the two Bluetooth headsets, which are not repeated here.
  • Step S120 When the two Bluetooth headsets are both placed on the user's ear, determine a first Bluetooth headset placed on the user's left ear and a second Bluetooth headset placed on the user's right ear.
  • the two Bluetooth headsets are in a use state by judging whether the two Bluetooth headsets are placed on the user's ears.
  • One of the two Bluetooth headsets is placed on the user's left ear
  • the other Bluetooth headset is placed on the user's right ear
  • both the Bluetooth headset placed on the user's left ear and the Bluetooth headset placed on the user's right ear are in use
  • the Bluetooth headset placed in the left ear of the user among the two Bluetooth headsets is determined as the first Bluetooth headset
  • the Bluetooth headset placed in the right ear of the two Bluetooth headsets is determined as the second Bluetooth headset. It is noted that the first Bluetooth headset and the second Bluetooth headset have no primary and secondary differences, and are only used to distinguish between being placed on the user's left ear and being placed on the user's right ear.
  • Step S130 transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset.
  • the electronic device establishes an audio channel with the first Bluetooth headset and the second Bluetooth headset separately, that is, the electronic device can transmit audio data through the audio channel with the first Bluetooth headset.
  • the electronic device can transmit audio data through the audio channel with the first Bluetooth headset.
  • audio data can be transmitted to the second Bluetooth headset through an audio channel with the second Bluetooth headset.
  • the stereo audio data to be transmitted in the electronic device may be split to obtain a left channel audio signal and a right channel audio signal.
  • the Android recording generates a pcm file by default, that is, the Android stereo pcm data structure. Assuming that the sampling rate is set to 16K, the recording type is AudioFormat.CHANNEL_IN_STEREO (stereo recording), and the data type is AudioFormat.ENCODING_PCM_16BIT, then The data structure of the pcm file is roughly 2byte left channel, 2byte right channel, 2byte left channel, 2byte right channel ....
  • the Android stereo pcm data structure can be split into a left channel audio signal and a right channel. Audio signal, and the left channel audio signal obtained after processing the split signal is transmitted to the first Bluetooth headset input user's left ear, and the right channel audio signal obtained after processing the split signal is transmitted to the second Bluetooth The headset is input to the user's right ear, which can improve the audio playback effect and user experience.
  • the usage statuses of the two Bluetooth headsets are obtained respectively.
  • both Bluetooth headsets are placed in the user's ear, two are determined.
  • the first Bluetooth headset placed in the left ear of the user and the second Bluetooth headset placed in the right ear of the user transmit the left channel audio signal of the electronic device to the first Bluetooth headset, and the right channel audio of the electronic device
  • the signal is transmitted to the second Bluetooth headset, so that the electronic device and the left and right Bluetooth headsets respectively establish an audio channel, and respectively transmit the left channel audio signal and the right channel audio signal to the left and right Bluetooth headsets, improving the music playback effect and the user experience.
  • FIG. 4 is a schematic flowchart of an audio transmission method according to another embodiment of the present application.
  • the audio transmission method is applied to the above-mentioned electronic device, in which both Bluetooth headsets include a headphone body and a contact sensor provided on the headphone body.
  • the process shown in FIG. 4 will be described in detail below.
  • the audio transmission method It can include the following steps:
  • Step S210 When the electronic device and the two Bluetooth headsets are in a connected state, the use states of the two Bluetooth headsets are obtained respectively.
  • step S210 For a detailed description of step S210, please refer to step S110, and details are not described herein again.
  • Step S220 When the two Bluetooth headsets are both placed on the ear of the user, obtain contact parameters between the two touch sensors and the ear of the user.
  • both Bluetooth headsets include a headset body and a contact sensor, and the contact sensor is disposed on the headset body.
  • the contact sensor is disposed on an outer surface of the headset body.
  • the contact sensor is in contact with the user's ear to generate a contact signal.
  • the two touch sensors provided on the two headset bodies can be used to detect the contact parameters with the user's ears, respectively. It is understandable that the two A contact sensor on the first headset body detects a contact parameter between the first Bluetooth headset and the user's ear, and a contact sensor provided on the second headset body detects a contact parameter between the second Bluetooth headset and the user's ear.
  • the contact parameter may include at least a contact area and a contact point, that is, the contact parameter may be a contact area, a contact point, or both. Therefore, the contact area and / or contact point between the two Bluetooth headsets and the user's ear can be detected by the touch sensor.
  • Step S230 Determine the first Bluetooth headset and the second Bluetooth headset based on the contact parameters.
  • the first Bluetooth headset in contact with the user's left ear and the second Bluetooth in contact with the user's right ear can be determined from the two Bluetooth headsets. headset.
  • a Bluetooth headset is taken as an example for description.
  • the contact sensor of the Bluetooth headset is fixedly set at a target position of the headset body. When the Bluetooth headset is placed in the left ear of the user, the contact sensor can detect the distance between the Bluetooth sensor and the left ear of the user. Contact area and contact point of the Bluetooth headset when the Bluetooth headset is placed in the user's right ear, the contact sensor can detect the contact point area and contact point between the user's right ear.
  • the contact parameters and the pre-stored Bluetooth headset can be placed.
  • the contact parameters of the user's left ear and the contact parameters of the Bluetooth headset placed in the user's right ear are compared to determine the placement position of the Bluetooth headset, that is, the Bluetooth headset is determined to be the first Bluetooth headset or the second Bluetooth headset.
  • another Bluetooth headset can also be determined as the first Bluetooth headset or the second Bluetooth headset in the above manner, so that the first Bluetooth headset and the second Bluetooth headset among the two Bluetooth headsets can be determined based on the contact parameter.
  • Bluetooth earphone can also be determined as the first Bluetooth headset or the second Bluetooth headset in the above manner, so that the first Bluetooth headset and the second Bluetooth headset among the two Bluetooth headsets can be determined based on the contact parameter.
  • Step S240 transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset.
  • step S240 For a detailed description of step S240, please refer to step S130, and details are not described herein again.
  • Step S250 Monitor the use state of the first Bluetooth headset and the use state of the second Bluetooth headset, respectively.
  • the usage status of the first Bluetooth headset and the second Bluetooth headset are monitored separately.
  • the state of use wherein whether the first Bluetooth headset is always placed on the user's left ear and whether the second Bluetooth headset is always placed on the user's right ear can be monitored.
  • FIG. 5 is a schematic flowchart of step S250 of the audio transmission method provided by the embodiment shown in FIG. 4 of the present application.
  • the process shown in FIG. 5 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S251 Monitor the movement track of the first Bluetooth headset and the movement track of the second Bluetooth headset, respectively.
  • the Bluetooth headset further includes an acceleration sensor and / or a gyroscope, and the acceleration sensor and / or the gyroscope is disposed in the headset body, and is configured to detect the motion trajectory of the Bluetooth headset and send the detected motion trajectory.
  • the power supply device to detect the movement track of the Bluetooth headset.
  • the movement track of the first Bluetooth headset can be detected by a first acceleration sensor provided in the first Bluetooth headset and sent to the electronic device
  • the second Bluetooth headset can be detected by a second acceleration sensor provided in the second Bluetooth headset.
  • the motion trajectory of the first Bluetooth headset and the second trajectory of the second Bluetooth headset are monitored separately.
  • the gyroscope As an example, according to the gyroscope's axiality and the known preset attitude of the Bluetooth headset with respect to the rotation axis direction of the gyroscope, when a difference occurs between the attitude of the Bluetooth headset and the preset attitude, pitching occurs. , Yaw or roll movement in a certain direction, because the rotation axis of the gyroscope remains the same direction, it is possible to detect the change in the angle relationship between the Bluetooth headset lever with respect to the rotation axis and the angle relationship between the preset attitude and the rotation axis. Determine the attitude change of the Bluetooth headset, and determine the movement track of the Bluetooth headset.
  • Step S252 Determine whether the first Bluetooth headset is detached from the left ear of the user based on the movement track of the first Bluetooth headset.
  • the first Bluetooth headset after detecting the motion trajectory of the first Bluetooth headset through an acceleration sensor and / or a gyroscope provided in the headset body of the first Bluetooth headset, it is determined whether the first Bluetooth headset is detached from the user based on the motion trajectory.
  • the motion trajectory of the first Bluetooth headset has a significant radian change, it can be considered that the first Bluetooth headset is detached from the user's left ear.
  • the motion trajectory of the first Bluetooth headset has no obvious radian change It can be considered that the first Bluetooth headset is not separated from the left ear of the user.
  • Step S253 Determine whether the second Bluetooth headset is detached from the right ear of the user based on the movement track of the second Bluetooth headset.
  • the second Bluetooth headset after detecting a motion trajectory of the second Bluetooth headset through an acceleration sensor and / or a gyroscope provided in the headset body of the second Bluetooth headset, it is determined whether the second Bluetooth headset is detached from the user based on the motion trajectory.
  • the motion trajectory of the second Bluetooth headset has a significant radian change, it can be considered that the second Bluetooth headset is detached from the user's right ear.
  • the motion trajectory of the second Bluetooth headset has no obvious radian change It can be considered that the second Bluetooth headset is not separated from the user's right ear.
  • Step S260 When the first Bluetooth headset is separated from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user, the stereo audio signal of the electronic device is transmitted to the second Bluetooth headset.
  • the electronic The stereo audio signal of the device is transmitted to the second Bluetooth headset, so that the audio signal input to the user's ear is a stereo audio signal to ensure the music playback effect and user experience. Understandably, at this time, the first Bluetooth headset is in a non-use state, and the electronic device does not need to transmit audio signals to the first Bluetooth headset. Therefore, the connection between the electronic device and the first Bluetooth headset can be disconnected, and the control can be controlled.
  • the first Bluetooth headset sleeps or is turned off to save power consumption and power of the electronic device and the first Bluetooth headset.
  • Step S270 When the first Bluetooth headset is placed on the left ear of the user and the second Bluetooth headset is detached from the right ear of the user, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset.
  • the electronic The stereo audio signal of the device is transmitted to the first Bluetooth headset, so that the audio signal input to the user's ear is a stereo audio signal to ensure the music playback effect and user experience. Understandably, at this time, the second Bluetooth headset is not in use, and the electronic device does not need to transmit audio signals to the second Bluetooth headset. Therefore, the connection between the electronic device and the second Bluetooth headset can be disconnected and the first The second Bluetooth headset sleeps or shuts down to save power consumption and power of the electronic device and the second Bluetooth headset.
  • the usage statuses of the two Bluetooth headsets are obtained, and when both Bluetooth headsets are placed on the user's ears, respectively, The contact parameters between the two touch sensors and the user's ear. Based on the contact parameters, the first Bluetooth headset and the second Bluetooth headset are determined, and the left channel audio signal of the electronic device is transmitted to the first Bluetooth headset. The channel audio signal is transmitted to the second Bluetooth headset, and the usage status of the first Bluetooth headset and the second Bluetooth headset are monitored separately. When the first Bluetooth headset is separated from the user's left ear and the second Bluetooth headset is placed in the user's right ear, The stereo audio signal of the electronic device is transmitted to the second Bluetooth headset.
  • the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset.
  • the left and right can be determined by the contact parameters detected by the touch sensor.
  • the earphone converts the audio signal into a stereo audio signal when one of the earphones is separated from the user's ear, and transmits it to the other earphone placed in the user's ear to ensure the user's audio experience.
  • FIG. 6 is a schematic flowchart of an audio transmission method according to another embodiment of the present application. This method is applied to the above-mentioned electronic device, where both Bluetooth headsets include a headset body and a contact sensor provided on the headset body. The following describes the process shown in FIG. 6 in detail.
  • the audio transmission method may specifically include: The following steps:
  • Step S310 When the electronic device and the two Bluetooth headsets are in a connected state, the use states of the two Bluetooth headsets are obtained respectively.
  • step S310 For a detailed description of step S310, refer to step S210, and details are not described herein again.
  • Step S320 When the two Bluetooth headsets are both placed on the ear of the user, obtain the contact areas between the two touch sensors and the ear of the user.
  • both Bluetooth headsets include a headset body and a contact sensor, and the contact sensor is disposed on the headset body.
  • the contact sensor is disposed on an outer surface of the headset body.
  • the contact sensor is in contact with the user's ear to generate a contact signal.
  • the contact area with the user's ears can be detected by two contact sensors provided on the two headset bodies. It is understandable that the two A contact sensor on the first headset detects a contact area between the first headset and a user's ear, and a contact sensor provided on the second headset detects a contact area between the second headset and the user's ear.
  • Step S330 Determine the first Bluetooth headset and the second Bluetooth headset based on the contact area.
  • FIG. 7 is a schematic flowchart of step S330 of the audio transmission method shown in FIG. 6 of the present application.
  • the process shown in FIG. 7 will be described in detail below.
  • the electronic device presets the correspondence between the two Bluetooth headsets and the user's left ear and the user's right ear, respectively.
  • the method may specifically include the following steps:
  • Step S331 determine whether the contact area is consistent with a preset area, where the preset area is that when the two Bluetooth headsets are correctly placed on the user's ear, the two contact sensors and the user's ear Contact area between parts.
  • the electronic device presets the corresponding relationship between the two Bluetooth headsets and the user's left ear and the user's right ear respectively, that is, the electronic device has two Bluetooth headsets stored in the user's left ear in advance and stored respectively.
  • the two Bluetooth headsets are predefined with a Bluetooth headset that should be placed on the user's left ear and a user that should be placed on the user.
  • the right ear Bluetooth headset so after obtaining the contact area of the two Bluetooth headsets with the user ’s left ear and the contact area of the user ’s right ear with the user ’s right ear, the contact area Obtain the contact area when two Bluetooth headsets are correctly placed on the user's ear, and use it as a preset area.
  • the A headset is predefined as a Bluetooth headset placed on the user's left ear, and the contact area of the A headset with the user's left ear when placed on the user's left ear is B, and the contact area of the A headset when placed on the user's right ear is C , You can use B as the preset area.
  • the contact area is compared with the preset area to determine whether the contact area is consistent with the preset area.
  • Step S332 when the contact area is consistent with the preset area, confirm that the Bluetooth headset corresponding to the user's left ear is the first Bluetooth headset, and the Bluetooth headset corresponding to the user's right ear is the first Two Bluetooth headsets.
  • the contact area is consistent with the preset area, it indicates that the Bluetooth headset is correctly placed on the user's ear, so it can be determined that the Bluetooth headset placed on the user's left ear is the first Bluetooth headset and placed on the user's right
  • the on-ear Bluetooth headset is a second Bluetooth headset.
  • Step S333 When the contact area is inconsistent with the preset area, confirm that the Bluetooth headset corresponding to the user's right ear is the first Bluetooth headset, and the Bluetooth headset corresponding to the user's left ear is the first A Bluetooth headset.
  • the contact area is inconsistent with the preset area, indicating that the Bluetooth headset is incorrectly placed in the user's ear, it can be determined that the Bluetooth headset placed in the user's right ear is the first Bluetooth headset and the Bluetooth headset placed in the user's left ear For the first Bluetooth headset.
  • Step S340 transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset.
  • Step S350 Monitor the use state of the first Bluetooth headset and the use state of the second Bluetooth headset, respectively.
  • Step S360 When the first Bluetooth headset is separated from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user, the stereo audio signal of the electronic device is transmitted to the second Bluetooth headset.
  • Step S370 When the first Bluetooth headset is placed in the left ear of the user and the second Bluetooth headset is separated from the right ear of the user, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset.
  • steps S340 to S370 please refer to steps S340 to S270, and details are not described herein again.
  • the usage statuses of the two Bluetooth headsets are obtained, and when both Bluetooth headsets are placed on the user's ears, respectively, The contact area between the two touch sensors and the user's ear. Based on the contact area, the first Bluetooth headset and the second Bluetooth headset are determined, and the left channel audio signal of the electronic device is transmitted to the first Bluetooth headset. The channel audio signal is transmitted to the second Bluetooth headset, and the usage status of the first Bluetooth headset and the second Bluetooth headset are monitored separately. When the first Bluetooth headset is separated from the user's left ear and the second Bluetooth headset is placed in the user's right ear, The stereo audio signal of the electronic device is transmitted to the second Bluetooth headset.
  • the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset.
  • the left and right can be determined by the contact area detected by the touch sensor.
  • the headset converts the audio data into a stereo audio signal when one of the headsets is released from the user's ear, and transmits it to the other headset placed in the user's ear to ensure the user's audio experience.
  • FIG. 8 illustrates a block diagram of an audio transmission device 200 according to an embodiment of the present application.
  • the audio transmission device 200 is applied to the above-mentioned electronic equipment.
  • the audio transmission device 200 includes: an acquisition module 210, a determination module 220, and a transmission module 230, where:
  • the obtaining module 210 is configured to obtain the use states of the two Bluetooth headsets when the electronic device is in a connection state with the two Bluetooth headsets, respectively.
  • a determining module 220 configured to determine a first Bluetooth headset placed on the user's left ear and a second Bluetooth headset placed on the user's right ear when the two Bluetooth headsets are both placed on the user's ear .
  • both Bluetooth headsets include a headset body and a contact sensor provided on the headset body, and the determination module 220 includes a contact parameter acquisition sub-module and a determination sub-module, wherein:
  • the contact parameter acquisition sub-module is configured to obtain contact parameters between two contact sensors and the user's ear when the two Bluetooth headsets are both placed on the user's ear. Further, the contact parameter acquisition sub-module includes a contact area acquisition unit, wherein:
  • Is the contact area acquisition unit configured to obtain the contact area between the two touch sensors and the user's ear when the two Bluetooth headsets are both placed on the user's ear.
  • a determining submodule is configured to determine the first Bluetooth headset and the second Bluetooth headset based on the contact parameters. Further, the determining submodule includes: a determining unit, wherein:
  • a determining unit is configured to determine the first Bluetooth headset and the second Bluetooth headset based on the contact area. Further, the electronic device presets a correspondence relationship between two Bluetooth headsets and a user's left ear and a user's right ear respectively, and the determining unit includes: an area determining subunit, a first determining subunit, and a second determining subunit Unit, where:
  • An area judging subunit is configured to determine whether the contact area is consistent with a preset area, where the preset area is when the two Bluetooth headsets are correctly placed on the user's ear, the two touch sensors and the A contact area between the ears of the user.
  • a first determining subunit configured to confirm that the Bluetooth headset corresponding to the left ear of the user is the first Bluetooth headset and the Bluetooth corresponding to the user's right ear when the contact area is consistent with the preset area
  • the headset is the second Bluetooth headset.
  • a second determining subunit configured to confirm that the Bluetooth headset corresponding to the user's right ear is the first Bluetooth headset and the Bluetooth corresponding to the user's left ear when the contact area is inconsistent with the preset area
  • the headset is the first Bluetooth headset.
  • the transmission module 230 is configured to transmit a left channel audio signal of the electronic device to the first Bluetooth headset, and transmit a right channel audio signal of the electronic device to the second Bluetooth headset.
  • An audio transmission device provided by an embodiment of the present application includes an acquisition module, a determination module, and a transmission module, wherein the acquisition module is configured to acquire the two Bluetooth headsets when the electronic device and the two Bluetooth headsets are connected respectively.
  • the determining module is configured to determine a first Bluetooth headset placed on the left ear of the user and a second Bluetooth headset placed on the right ear of the user when the two Bluetooth headsets are both placed on the user's ear
  • a transmission module configured to transmit a left channel audio signal of the electronic device to the first Bluetooth headset, and a right channel audio signal of the electronic device to the second Bluetooth headset, thereby By establishing an audio channel between the electronic device and the left and right Bluetooth headsets, and transmitting the left channel audio signal and the right channel audio signal to the left and right Bluetooth headsets respectively, the music playback effect and the user experience are improved.
  • FIG. 9 illustrates a block diagram of an audio transmission device 300 according to another embodiment of the present application.
  • the audio transmission device 300 is applied to the above-mentioned electronic equipment.
  • the audio transmission device 300 includes: an acquisition module 310, a determination module 320, a transmission module 330, and a monitoring module 340, where:
  • the obtaining module 310 is configured to obtain the use states of the two Bluetooth headsets when the electronic device is in a connection state with the two Bluetooth headsets, respectively.
  • a determining module 320 is configured to determine, when the two Bluetooth headsets are both placed on a user's ear, a first Bluetooth headset placed on the user's left ear and a second Bluetooth headset placed on the user's right ear. .
  • the transmission module 330 is configured to transmit a left channel audio signal of the electronic device to the first Bluetooth headset, and a right channel audio signal of the electronic device to the second Bluetooth headset.
  • the monitoring module 340 is configured to separately monitor a use state of the first Bluetooth headset and a use state of the second Bluetooth headset. Further, the monitoring module 340 includes: a monitoring sub-module and a judgment sub-module, wherein:
  • the monitoring sub-module is configured to monitor the movement track of the first Bluetooth headset and the movement track of the second Bluetooth headset, respectively.
  • a judging sub-module is configured to judge whether the first Bluetooth headset is detached from the left ear of the user based on the movement track of the first Bluetooth headset.
  • the judging sub-module is further configured to judge whether the second Bluetooth headset is detached from the right ear of the user based on the movement track of the second Bluetooth headset.
  • the transmission module 330 is further configured to transmit the stereo audio signal of the electronic device to the user when the first Bluetooth headset is separated from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user.
  • the second Bluetooth headset is described.
  • the transmission module 330 includes: a disconnection sub-module, where:
  • the transmission module 330 is further configured to transmit the stereo audio signal of the electronic device to the user when the first Bluetooth headset is placed in the left ear of the user and the second Bluetooth headset is separated from the right ear of the user.
  • the first Bluetooth headset is described.
  • the transmission module 330 includes: a disconnection sub-module, where:
  • the audio transmission device includes an acquisition module, a determination module, a transmission module, and a monitoring module, wherein the acquisition module is configured to acquire the electronic devices when the electronic device and the two Bluetooth headsets are in a connection state respectively.
  • the use state of the two Bluetooth headsets the determining module is configured to determine, when the two Bluetooth headsets are both placed on the user's ear, the first Bluetooth headset placed on the user's left ear and the user's right A second Bluetooth headset with an ear
  • the transmission module is configured to transmit the left channel audio signal of the electronic device to the first Bluetooth headset, and transmit the right channel audio signal of the electronic device to the second Bluetooth A headset
  • a monitoring module configured to separately monitor a use state of the first Bluetooth headset and a use state of the second Bluetooth headset
  • the transmission module is further configured to disconnect the first Bluetooth headset from the left ear of the user When the second Bluetooth headset is placed in the right ear of the user, the stereo audio signal of the electronic device is transmitted to the second Bluetooth headset, or when When the first Bluetooth headset
  • the audio transmission device shown in this embodiment can also convert audio data into a stereo audio signal when one of the earphones is detached from the user's ear, and transmit the audio data to another earphone placed in the user's ear to ensure the user's audio experience.
  • the coupling between the modules may be electrical, mechanical, or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules.
  • FIG. 10 is a structural block diagram of an electronic device 100 according to an embodiment of the present application.
  • the electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, or an e-book.
  • the electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a Bluetooth module 130, and one or more application programs, where one or more application programs may be stored in the memory 120 and stored by It is configured to be executed by one or more processors 110, and one or more programs are configured to execute the method as described in the foregoing method embodiment.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts in the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 120 by calling or executing data stored in the memory 120 to execute Various functions and processing data of the electronic device 100.
  • the processor 110 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). To implement a hardware form.
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly handles the operating system, user interface, and application programs; the GPU is responsible for rendering and rendering of the displayed content; the modem is used for wireless communication. It can be understood that the modem may not be integrated into the processor 110, and may be implemented by a single communication chip.
  • the memory 120 may include Random Access Memory (RAM), and may also include Read-Only Memory.
  • the memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 120 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and 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 method embodiments, and the like.
  • the storage data area may also store data (such as phone book, audio and video data, chat record data) and the like created by the electronic device 100 during use.
  • the Bluetooth module 130 is used to realize the Bluetooth connection between the electronic device and the two Bluetooth headsets, as well as the data interaction with the two Bluetooth headsets.
  • the number of the Bluetooth modules 130 may be one or may be integrated together. It is not limited here. Specifically, it can communicate with Bluetooth devices through the Bluetooth protocol 5.0 / 4.2 / 4.1 / 2.1 / 2.0, or through Bluetooth Low Energy (BLE), Enhanced Data Rate (EDR), or Bluetooth basic rate. (Base, Rate, BR) and so on.
  • BLE Bluetooth Low Energy
  • EDR Enhanced Data Rate
  • BBR Bluetooth basic rate.
  • Its basic circuit configuration is similar to the WiFi module, and it can also be composed of a power amplifier, a wireless transceiver, a transceiver switch, a low-noise amplifier, and an antenna.
  • the Bluetooth module 130 may use a first communication frequency band, wherein the first communication frequency band may be 2.4 GHz.
  • FIG. 11 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 300 stores program code, which can be called by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 300 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 300 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 300 has a storage space of a program code 310 that executes any of the method steps in the above method. These program codes can be read from or written into one or more computer program products.
  • the program code 310 may be compressed, for example, in a suitable form.
  • the audio transmission method, device, electronic device and storage medium provided in the embodiments of the present application, when the electronic device and the two Bluetooth headsets are in a connected state, obtain the use status of the two Bluetooth headsets, respectively.
  • the earphones are placed in the user's ear
  • the first Bluetooth earphone placed in the left ear of the user and the second Bluetooth earphone placed in the right ear of the two Bluetooth earphones are determined to transmit the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset, thereby establishing an audio channel for the electronic device and the left and right Bluetooth headphones respectively, and transmitting the left channel audio signal and the right channel audio signal to the left and right respectively Bluetooth headset to enhance music playback and user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present application relates to the technical field of electronic devices. Disclosed are an audio transmission method and apparatus, an electronic device, and a storage medium. The method is applied to an electronic device, and comprises: when an electronic device is connected to two Bluetooth headsets, respectively acquiring the usage states of the two Bluetooth headsets, when both Bluetooth headsets are placed in the user's ears, determining a first Bluetooth headset placed in the user's left ear and a second Bluetooth headset placed in the user's right ear among the two Bluetooth headsets, transmitting a left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting a right channel audio signal of the electronic device to the second Bluetooth headset. According to the audio transmission method and apparatus, the electronic device, and the storage medium provided by the embodiments of the present application, audio channels are respectively established between the electronic device and the left and right Bluetooth headsets, and left channel audio signals and right channel audio signals are respectively transmitted to the left and right Bluetooth headsets, so that the music playing effect and user experience are improved.

Description

音频传输方法、装置、电子设备以及存储介质Audio transmission method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年9月30日提交的申请号为201811163040.2的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from Chinese application with application number 201811163040.2, filed on September 30, 2018, which is hereby incorporated by reference in its entirety for all purposes.
技术领域Technical field
本申请涉及电子设备技术领域,更具体地,涉及一种音频传输方法、装置、电子设备以及存储介质。The present application relates to the technical field of electronic devices, and more particularly, to an audio transmission method, device, electronic device, and storage medium.
背景技术Background technique
随着科学技术的发展,电子设备已经成为人们日常生活中最常用的电子产品之一。并且,用户经常会通过与电子设备建立连接的耳机听音乐、看视频或玩游戏等。With the development of science and technology, electronic equipment has become one of the most commonly used electronic products in people's daily life. In addition, users often listen to music, watch videos, or play games through headphones that are connected to electronic devices.
发明内容Summary of the Invention
鉴于上述问题,本申请提出了一种音频传输方法、装置、电子设备以及存储介质,以解决上述问题。In view of the above problems, this application proposes an audio transmission method, device, electronic device, and storage medium to solve the above problems.
第一方面,本申请实施例提供了一种音频传输方法,应用于电子设备,所述方法包括:当所述电子设备与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态;当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机;将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。In a first aspect, an embodiment of the present application provides an audio transmission method applied to an electronic device. The method includes: when the electronic device and two Bluetooth headsets are in a connected state, obtaining the two Bluetooth headsets respectively. State of use; when the two Bluetooth headsets are both placed on the user's ear, determine the first Bluetooth headset placed on the user's left ear and the second Bluetooth headset placed on the user's right ear; The left channel audio signal of the electronic device is transmitted to the first Bluetooth headset, and the right channel audio signal of the electronic device is transmitted to the second Bluetooth headset.
第二方面,本申请实施例提供了一种音频传输装置,应用于电子设备,所述装置包括:获取模块,用于当所述电子设备分别与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态;确定模块,用于当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机;传输模块,用于将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。In a second aspect, an embodiment of the present application provides an audio transmission device applied to an electronic device. The device includes: an acquiring module configured to acquire the electronic device when the electronic device is connected to two Bluetooth headsets respectively. The use state of the two Bluetooth headsets is described; a determining module configured to determine, when the two Bluetooth headsets are both placed on the user's ear, the first Bluetooth headset placed on the user's left ear and the first Bluetooth headset placed on the user's left ear A second Bluetooth headset of the user's right ear; a transmission module for transmitting a left-channel audio signal of the electronic device to the first Bluetooth headset, and transmitting a right-channel audio signal of the electronic device to the Second Bluetooth headset.
第三方面,本申请实施例提供了一种电子设备,包括蓝牙模块;存储器;In a third aspect, an embodiment of the present application provides an electronic device including a Bluetooth module; a memory;
一个或多个处理器,分别与所述蓝牙模块和所述存储器耦接;一个或多个程序,其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。One or more processors, respectively coupled to the Bluetooth module and the memory; one or more programs, wherein the one or more application programs are stored in the memory and configured to be controlled by the memory; One or more processors execute, and the one or more programs are configured to perform the methods described above.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the foregoing method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments are briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1示出了本申请实施例提供的一种应用环境的示意图;FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application; FIG.
图2示出了本申请实施例提供的另一种应用环境的示意图;FIG. 2 is a schematic diagram of another application environment provided by an embodiment of the present application; FIG.
图3示出了本申请一个实施例提供的音频传输方法的流程示意图;3 is a schematic flowchart of an audio transmission method according to an embodiment of the present application;
图4示出了本申请又一个实施例提供的音频传输方法的流程示意图;4 is a schematic flowchart of an audio transmission method according to another embodiment of the present application;
图5示出了本申请的图4所示的实施例提供的音频传输方法的步骤S250的流程示意图;FIG. 5 shows a schematic flowchart of step S250 of the audio transmission method provided by the embodiment shown in FIG. 4 of the present application;
图6示出了本申请再一个实施例提供的音频传输方法的流程示意图;6 is a schematic flowchart of an audio transmission method according to another embodiment of the present application;
图7示出了本申请的图6所示的实施例提供的音频传输方法的步骤S330的流程示 意图;FIG. 7 shows a schematic flowchart of step S330 of the audio transmission method provided by the embodiment shown in FIG. 6 of the present application;
图8示出了本申请一个实施例提供的音频传输装置的模块框图;FIG. 8 shows a module block diagram of an audio transmission device according to an embodiment of the present application; FIG.
图9示出了本申请又一个实施例提供的音频传输装置的模块框图;FIG. 9 shows a module block diagram of an audio transmission device according to another embodiment of the present application;
图10示出了本申请实施例用于执行根据本申请实施例的音频传输方法的电子设备的框图;FIG. 10 shows a block diagram of an electronic device for performing an audio transmission method according to an embodiment of the present application; FIG.
图11示出了本申请实施例的用于保存或者携带实现根据本申请实施例的音频传输方法的程序代码的存储单元。FIG. 11 illustrates a storage unit for saving or carrying a program code for implementing an audio transmission method according to an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。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 with reference to the accompanying drawings in the embodiments of the present application.
随着用户对电子设备的要求越来越高,因此,电子设备为了满足用户的需求以及为用户提供方便,开始支持播放音频数据,例如,播放音频、播放视频、语音聊天、视频聊天等。其中,电子设备的音频架构和计算机的音频架构类似,主要是由处理器和内置音频CODEC(编解码器)来完成。具体地,处理器接收音频数据的输入后,转化成I2S信号,并传输至CODEC转换成模拟信号,然后进行播放。As users have higher and higher requirements for electronic devices, in order to meet user needs and provide convenience to users, electronic devices have started to support playing audio data, such as playing audio, playing video, voice chat, video chat, and so on. Among them, the audio architecture of an electronic device is similar to that of a computer, and is mainly completed by a processor and a built-in audio CODEC (codec). Specifically, after receiving the input of audio data, the processor converts it into an I2S signal, transmits it to a CODEC, converts it into an analog signal, and then plays it.
进一步地,电子设备可以与外接音频播放设备连接,通过所述音频播放设备播放音频数据,具体地,该音频播放设备可以接收电子设备传输过来的音频数据,并将音频数据进行播放,其中,该音频播放设备可以包括耳机、音箱以及车载设备等。而在诸多情况下,电子设备与外接的音频播放设备需要使用网络才能进行数据传输,例如,电子设备与音频播放设备需要使用无线保真(Wireless Fidelity,WiFi)连接进行数据传输,或电子设备与音频播放设备需要使用蓝牙(Bluetooth,BT)连接进行数据传输等,可选的,在通常情况下,电子设备可以通过蓝牙与音频播放设备连接,并通过蓝牙将音频数据传输至音频播放设备进行播放。Further, the electronic device may be connected to an external audio playback device and play audio data through the audio playback device. Specifically, the audio playback device may receive audio data transmitted from the electronic device and play the audio data. Audio playback devices may include headphones, speakers, and on-board equipment. In many cases, electronic devices and external audio playback devices need to use a network to perform data transmission. For example, electronic devices and audio playback devices need to use a wireless fidelity (WiFi) connection for data transmission, or electronic devices and The audio playback device needs to use Bluetooth (BT) connection for data transmission, etc. Optionally, under normal circumstances, the electronic device can be connected to the audio playback device via Bluetooth, and the audio data is transmitted to the audio playback device via Bluetooth for playback. .
具体地,目前的电子设备100一般都有蓝牙(Bluetooth,BT)模块,其中,蓝牙模块可以是指集成蓝牙功能的芯片基本电路集合,用于无线网络通讯。进一步地,电子设备100可以通过蓝牙模块与蓝牙设备(如蓝牙耳机、蓝牙音箱等音频播放设备,投影仪、电视机等视频播放设备)进行蓝牙连接,其中,以蓝牙耳机为例,如图1所述,在一种情况下,蓝牙耳机包括第一蓝牙耳机510以及第二蓝牙耳机520,电子设备100分别与第一蓝牙耳机510和第二蓝牙耳机520基于前述的无线通信协议建立通信链路。再者,还可以如图2所示,电子设备100可以直接与第一蓝牙耳机510基于前述的无线通信协议建议通信链路,然后第一蓝牙耳机510再和第二蓝牙耳机520基于前述的无线通信协议建议通信链路。其中,无线通信协议可以包括Wlan协议、蓝牙协议或者ZigBee协议等。Specifically, the current electronic device 100 generally has a Bluetooth (BT) module. The Bluetooth module may refer to a chip basic circuit set with integrated Bluetooth function, and is used for wireless network communication. Further, the electronic device 100 can perform a Bluetooth connection with a Bluetooth device (such as an audio playback device such as a Bluetooth headset, a Bluetooth speaker, and a video playback device such as a projector or a television) through a Bluetooth module. A Bluetooth headset is used as an example, as shown in FIG. 1 In one case, the Bluetooth headset includes a first Bluetooth headset 510 and a second Bluetooth headset 520, and the electronic device 100 establishes a communication link with the first Bluetooth headset 510 and the second Bluetooth headset 520 based on the aforementioned wireless communication protocol, respectively. . Furthermore, as shown in FIG. 2, the electronic device 100 may directly propose a communication link with the first Bluetooth headset 510 based on the foregoing wireless communication protocol, and then the first Bluetooth headset 510 and the second Bluetooth headset 520 may be based on the foregoing wireless communication. The communication protocol suggests a communication link. The wireless communication protocol may include a Wlan protocol, a Bluetooth protocol, or a ZigBee protocol.
但是,目前的电子设备在分别与两个蓝牙耳机进行音频数据传输时,传输的音频数据固定且均为混合音,即传输到两个蓝牙耳机中用于安放于左耳的蓝牙耳机的音频数据和传输到两个蓝牙耳机中用于安放于用户右耳的蓝牙耳机的音频数据是一致的,音效较差,用户体验不佳。However, when the current electronic device performs audio data transmission with two Bluetooth headsets separately, the transmitted audio data is fixed and both are mixed sounds, that is, the audio data transmitted to the two Bluetooth headsets for the Bluetooth headsets placed in the left ear The audio data is the same as that transmitted to the two Bluetooth headphones for placing in the user's right ear, the sound effect is poor, and the user experience is not good.
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的音频传输方法、装置、电子设备以及存储介质,通过将电子设备与左右蓝牙耳机分别建立音频通道,并分别传输左声道音频信号和右声道音频信号至左右蓝牙耳机,提升音乐播放效果以及用户体验。其中,具体的音频传输方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor has discovered through long-term research and proposed the audio transmission method, device, electronic device and storage medium provided in the embodiments of the present application. The audio channels are established respectively by the electronic device and the left and right Bluetooth headphones, and the left and right Channel audio signals and right channel audio signals to left and right Bluetooth headsets to improve music playback and user experience. The specific audio transmission method is described in detail in the subsequent embodiments.
实施例Examples
请参阅图3,图3示出了本申请一个实施例提供的音频传输方法的流程示意图。所述音频传输方法用于通过将电子设备与左右蓝牙耳机分别建立音频通道,并分别传输左声道音频信号和右声道音频信号至左右蓝牙耳机,提升音乐播放效果以及用户体验。在具体的实施例中,所述音频传输方法应用于如图8所示的音频传输装置200以及配置有 所述音频传输装置200的电子设备100(图10)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为智能手机、平板电脑、穿戴式电子设备、车载设备、网关等,在此不做具体的限定。下面将针对图3所示的流程进行详细的阐述,所述音频传输方法具体可以包括以下步骤:Please refer to FIG. 3, which is a schematic flowchart of an audio transmission method according to an embodiment of the present application. The audio transmission method is used to establish an audio channel between the electronic device and the left and right Bluetooth headsets, and respectively transmit the left channel audio signal and the right channel audio signal to the left and right Bluetooth headsets to improve the music playback effect and the user experience. In a specific embodiment, the audio transmission method is applied to an audio transmission device 200 as shown in FIG. 8 and an electronic device 100 (FIG. 10) configured with the audio transmission device 200. In the following, an electronic device is taken as an example to describe the specific process of this embodiment. Of course, it can be understood that the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, a vehicle-mounted device, a gateway, etc. This is not specifically limited. The process shown in FIG. 3 will be described in detail below. The audio transmission method may specifically include the following steps:
步骤S110:当所述电子设备与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态。Step S110: When the electronic device and the two Bluetooth headsets are in a connected state, the use states of the two Bluetooth headsets are respectively acquired.
在本实施例中,首先对电子设备的与两个蓝牙耳机之间的连接状态进行检测,可以理解的,电子设备与两个蓝牙耳机之间的连接状态可以包括处于连接状态和没有处于连接状态,其中,没有处于连接状态包括非连接状态和连接中状态。作为一种方式,可以分别检测电子设备与两个蓝牙耳机之间的连接状态,也就是说,对电子设备与两个蓝牙耳机中的一个蓝牙耳机的连接状态进行检测,以及对电子设备与两个蓝牙耳机中的另一个蓝牙耳机的连接状态进行检测。可以理解的,检测的结果至少可以包括电子设备与两个蓝牙耳机均处于连接状态、电子设备与两个蓝牙耳机均不处于连接状态、电子设备与两个蓝牙耳机中的一个处于连接状态且与另一个不处于连接状态等,在此不做限定。In this embodiment, the connection state between the electronic device and the two Bluetooth headsets is first detected. It can be understood that the connection state between the electronic device and the two Bluetooth headsets may include being in a connected state and not being in a connected state. Among them, not in the connected state includes the unconnected state and the connected state. As a method, the connection status between the electronic device and the two Bluetooth headsets can be detected separately, that is, the connection status between the electronic device and one of the two Bluetooth headsets is detected, and the electronic device and the two Bluetooth headsets are detected. The connection status of another Bluetooth headset among the two Bluetooth headsets is detected. Understandably, the detection result may include at least the electronic device and the two Bluetooth headsets are connected, the electronic device and the two Bluetooth headsets are not connected, the electronic device and one of the two Bluetooth headsets are connected, and the The other is not connected, and is not limited here.
作为一种方式,可以通过查看电子设备的状态值的方式来判断电子设备和两个蓝牙耳机之间是否处于连接状态,具体地,当电子设备连接一个蓝牙耳机时,返回一个第一状态值,当电子设备连接两个蓝牙耳机时,返回两个第一状态值;当电子设备断开一个蓝牙耳机的连接时,返回一个第二状态值,当电子设备断开两个蓝牙耳机的连接时,返回两个第二状态值,从而可以通过检测第一状态值和第二状态值的方式确定电子设备是否与两个蓝牙耳机处于连接状态。作为另一种方式,Android系统在连接蓝牙耳机或断开蓝牙耳机的时候都会发送广播,所以,电子设备可以通过监听广播的方式,确定电子设备是否与两个蓝牙耳机处于连接状态。As a method, whether the electronic device is connected to the two Bluetooth headsets can be determined by viewing the status value of the electronic device. Specifically, when the electronic device is connected to a Bluetooth headset, a first status value is returned. When the electronic device is connected to two Bluetooth headsets, two first status values are returned; when the electronic device is disconnected from one Bluetooth headset, a second status value is returned. When the electronic device is disconnected from two Bluetooth headphones, Two second status values are returned, so that it can be determined whether the electronic device is in a connected state with the two Bluetooth headsets by detecting the first status value and the second status value. As another method, the Android system sends a broadcast when a Bluetooth headset is connected or disconnected, so an electronic device can monitor the broadcast to determine whether the electronic device is in a connected state with the two Bluetooth headsets.
在一个实施例中,当确定该电子设备同时与两个蓝牙耳机处于连接状态时,则分别获取该两个蓝牙耳机的使用状态。其中,作为第一种方式,可以通过判断两个蓝牙耳机是否传输音频数据确定两个蓝牙耳机的使用状态,可以理解的,当检测到蓝牙耳机在传输音频数据时,可以表征该蓝牙耳机处于使用状态,当检测到蓝牙耳机没有传输音频数据时,可以表征该蓝牙耳机处于非使用状态。例如,当检测到两个蓝牙耳机均在传输音频数据时,表征两个蓝牙耳机均处于使用状态;当检测到两个蓝牙耳机均没有传输音频数据时,表征两个蓝牙耳机处于非使用状态;当检测到两个蓝牙耳机中的一个耳机在传输音频数据,另一个耳机没有传输音频数据时,表征一个蓝牙耳机处于使用状态,另一个蓝牙耳机处于非使用状态。In one embodiment, when it is determined that the electronic device is connected to two Bluetooth headsets at the same time, the usage states of the two Bluetooth headsets are obtained separately. Among them, as the first method, the use status of the two Bluetooth headsets can be determined by judging whether the two Bluetooth headsets transmit audio data. It can be understood that when the Bluetooth headset is detected to be transmitting audio data, it can indicate that the Bluetooth headset is in use. State, when it is detected that the Bluetooth headset is not transmitting audio data, it can indicate that the Bluetooth headset is in a non-use state. For example, when it is detected that both Bluetooth headsets are transmitting audio data, it indicates that both Bluetooth headsets are in use; when it is detected that both Bluetooth headsets are not transmitting audio data, it indicates that both Bluetooth headsets are in an unused state; When it is detected that one of the two Bluetooth headsets is transmitting audio data and the other headset is not transmitting audio data, it indicates that one Bluetooth headset is in use and the other Bluetooth headset is in non-use.
作为第二种方式,可以通过判断两个蓝牙耳机是否安放于用户耳部的方式来确定两个蓝牙耳机的使用状态,可以理解的,当检测到蓝牙耳机安放于用户耳部时,可以认为用户正在通过蓝牙耳机接收音频数据,表征该蓝牙耳机处于使用状态,当检测到蓝牙耳机没有安放于用户耳部时,可以认为该用户没有通过蓝牙耳机接收音频数据,表征该蓝牙耳机处于非使用状态。例如,当检测到两个蓝牙耳机均安放于用户耳部,即一个蓝牙耳机安放在用户左耳,另一个蓝牙耳机安放在用户右耳时,表征两个蓝牙耳机均处于使用状态;当检测到两个蓝牙耳机均没有安放于用户耳部时,表征两个蓝牙耳机均处于非使用状态;当检测到两个耳机中的一个蓝牙耳机安放于用户耳部,另一个蓝牙耳机没有安放于用户耳部时,表征一个蓝牙耳机处于使用状态,另一个蓝牙耳机处于非使用状态。As the second method, the use status of the two Bluetooth headsets can be determined by determining whether the two Bluetooth headsets are placed on the user's ears. It is understandable that when the Bluetooth headsets are detected on the user's ears, the user can be considered Audio data is being received through the Bluetooth headset to indicate that the Bluetooth headset is in use. When it is detected that the Bluetooth headset is not placed on the user's ear, it can be considered that the user has not received audio data through the Bluetooth headset, indicating that the Bluetooth headset is in a non-use state. For example, when it is detected that two Bluetooth headsets are placed in the user's ear, that is, one Bluetooth headset is placed in the user's left ear and the other Bluetooth headset is placed in the user's right ear, it indicates that both Bluetooth headsets are in use; when it is detected, When two Bluetooth headsets are not placed on the user's ear, it indicates that both Bluetooth headsets are not in use; when one of the two headsets is detected as being placed on the user's ear, the other Bluetooth headset is not placed on the user's ear It indicates that one Bluetooth headset is in use and the other Bluetooth headset is not in use.
当然,本申请还可以包括其他判断两个蓝牙耳机的使用状态的方式,在此不再赘述。Of course, this application may also include other methods for judging the use status of the two Bluetooth headsets, which are not repeated here.
步骤S120:当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机。Step S120: When the two Bluetooth headsets are both placed on the user's ear, determine a first Bluetooth headset placed on the user's left ear and a second Bluetooth headset placed on the user's right ear.
在本实施例中,可选的,通过判断两个蓝牙耳机是否安放于用户耳部的方式确定两个蓝牙耳机是否处于使用状态,其中,当两个蓝牙耳机均安放于用户耳部时,表征两个蓝牙耳机中的其中一个蓝牙耳机安放于用户左耳,另一个蓝牙耳机安放于用户右耳,且安放于用户左耳的蓝牙耳机和安放于用户右耳的蓝牙耳机均处于使用状态,进一步地,作为一种方式,将两个蓝牙耳机中安放于用户左耳的蓝牙耳机确定为第一蓝牙耳机,将两个蓝牙耳机中安放于 用户右耳的蓝牙耳机确定为第二蓝牙耳机,需要说明的是,第一蓝牙耳机和第二蓝牙耳机没有主次之分,仅用于区分安放于用户左耳和安放于用户右耳。In this embodiment, optionally, it is determined whether the two Bluetooth headsets are in a use state by judging whether the two Bluetooth headsets are placed on the user's ears. When both the Bluetooth headsets are placed on the user's ears, One of the two Bluetooth headsets is placed on the user's left ear, the other Bluetooth headset is placed on the user's right ear, and both the Bluetooth headset placed on the user's left ear and the Bluetooth headset placed on the user's right ear are in use, further As a method, the Bluetooth headset placed in the left ear of the user among the two Bluetooth headsets is determined as the first Bluetooth headset, and the Bluetooth headset placed in the right ear of the two Bluetooth headsets is determined as the second Bluetooth headset. It is noted that the first Bluetooth headset and the second Bluetooth headset have no primary and secondary differences, and are only used to distinguish between being placed on the user's left ear and being placed on the user's right ear.
步骤S130:将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。Step S130: transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset.
在本实施例中,电子设备预先分别和所述第一蓝牙耳机和所述第二蓝牙耳机建立音频通道,也就是说,电子设备可以通过与第一蓝牙耳机之间的音频通道将音频数据传输至第一蓝牙耳机,以及可以通过与第二蓝牙耳机之间的音频通道将音频数据传输至第二蓝牙耳机。In this embodiment, the electronic device establishes an audio channel with the first Bluetooth headset and the second Bluetooth headset separately, that is, the electronic device can transmit audio data through the audio channel with the first Bluetooth headset. To the first Bluetooth headset, and audio data can be transmitted to the second Bluetooth headset through an audio channel with the second Bluetooth headset.
进一步地,在确定第一蓝牙耳机和第二蓝牙耳机后,可以将电子设备中待传输的立体声音频数据进行拆分,以获取左声道音频信号和右声道音频信号。其中,作为一种方式,Android录音默认录制生成的是pcm文件,即Android立体声pcm数据结构,假设设置采样率为16K,录音类型为AudioFormat.CHANNEL_IN_STEREO(立体声录音),数据类型为AudioFormat.ENCODING_PCM_16BIT,则pcm文件的数据结构大致为2byte左声道、2byte右声道、2byte左声道、2byte右声道….,因此,可以将Android立体声pcm数据结构拆分成左声道音频信号和右声道音频信号,并将拆分的信号进行处理后得到的左声道音频信号传输至第一蓝牙耳机输入用户左耳,将拆分的信号进行处理后得到的右声道音频信号传输至第二蓝牙耳机输入用户右耳,从而可以提升音频播放效果和用户体验。Further, after the first Bluetooth headset and the second Bluetooth headset are determined, the stereo audio data to be transmitted in the electronic device may be split to obtain a left channel audio signal and a right channel audio signal. Among them, as a method, the Android recording generates a pcm file by default, that is, the Android stereo pcm data structure. Assuming that the sampling rate is set to 16K, the recording type is AudioFormat.CHANNEL_IN_STEREO (stereo recording), and the data type is AudioFormat.ENCODING_PCM_16BIT, then The data structure of the pcm file is roughly 2byte left channel, 2byte right channel, 2byte left channel, 2byte right channel .... Therefore, the Android stereo pcm data structure can be split into a left channel audio signal and a right channel. Audio signal, and the left channel audio signal obtained after processing the split signal is transmitted to the first Bluetooth headset input user's left ear, and the right channel audio signal obtained after processing the split signal is transmitted to the second Bluetooth The headset is input to the user's right ear, which can improve the audio playback effect and user experience.
本申请一个实施例提供的音频传输方法,当电子设备与两个蓝牙耳机处于连接状态时,分别获取两个蓝牙耳机的使用状态,当两个蓝牙耳机均安放于用户耳部时,确定两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机,将电子设备的左声道音频信号传输至第一蓝牙耳机,以及将电子设备的右声道音频信号传输至第二蓝牙耳机,从而通过将电子设备与左右蓝牙耳机分别建立音频通道,并分别传输左声道音频信号和右声道音频信号至左右蓝牙耳机,提升音乐播放效果以及用户体验。In the audio transmission method provided by an embodiment of the present application, when an electronic device and two Bluetooth headsets are in a connected state, the usage statuses of the two Bluetooth headsets are obtained respectively. When both Bluetooth headsets are placed in the user's ear, two are determined. The first Bluetooth headset placed in the left ear of the user and the second Bluetooth headset placed in the right ear of the user transmit the left channel audio signal of the electronic device to the first Bluetooth headset, and the right channel audio of the electronic device The signal is transmitted to the second Bluetooth headset, so that the electronic device and the left and right Bluetooth headsets respectively establish an audio channel, and respectively transmit the left channel audio signal and the right channel audio signal to the left and right Bluetooth headsets, improving the music playback effect and the user experience.
请参阅图4,图4示出了本申请又一个实施例提供的音频传输方法的流程示意图。所述音频传输方法应用于上述电子设备,其中,两个蓝牙耳机均包括耳机本体和设置于耳机本体上的接触传感器,下面将针对图4所示的流程进行详细的阐述,所述音频传输方法具体可以包括以下步骤:Please refer to FIG. 4, which is a schematic flowchart of an audio transmission method according to another embodiment of the present application. The audio transmission method is applied to the above-mentioned electronic device, in which both Bluetooth headsets include a headphone body and a contact sensor provided on the headphone body. The process shown in FIG. 4 will be described in detail below. The audio transmission method It can include the following steps:
步骤S210:当所述电子设备与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态。Step S210: When the electronic device and the two Bluetooth headsets are in a connected state, the use states of the two Bluetooth headsets are obtained respectively.
其中,步骤S210的具体描述请参阅步骤S110,在此不再赘述。For a detailed description of step S210, please refer to step S110, and details are not described herein again.
步骤S220:当所述两个蓝牙耳机均安放于所述用户耳部时,分别获取两个接触传感器与所述用户耳部之间的接触参数。Step S220: When the two Bluetooth headsets are both placed on the ear of the user, obtain contact parameters between the two touch sensors and the ear of the user.
在本实施例中,两个蓝牙耳机均包括耳机本体和接触传感器,且接触传感器设置于耳机本体上,其中,该接触传感器设置于耳机本体的外表面,当蓝牙耳机安放于用户耳部时,该接触传感器与用户耳部接触产生接触信号。具体地,当两个蓝牙耳机均安放于用户耳部时,可以通过设置于两个耳机本体上的两个接触传感器分别检测与用户耳部之间的接触参数,可以理解的,可以通过设置于第一耳机本体上的接触传感器检测第一蓝牙耳机与用户耳部之间的接触参数,通过设置于第二耳机本体上的接触传感器检测第二蓝牙耳机与用户耳部之间的接触参数。In this embodiment, both Bluetooth headsets include a headset body and a contact sensor, and the contact sensor is disposed on the headset body. The contact sensor is disposed on an outer surface of the headset body. When the Bluetooth headset is placed on a user's ear, The contact sensor is in contact with the user's ear to generate a contact signal. Specifically, when both Bluetooth headsets are placed on the user's ears, the two touch sensors provided on the two headset bodies can be used to detect the contact parameters with the user's ears, respectively. It is understandable that the two A contact sensor on the first headset body detects a contact parameter between the first Bluetooth headset and the user's ear, and a contact sensor provided on the second headset body detects a contact parameter between the second Bluetooth headset and the user's ear.
其中,该接触参数至少可以包括接触面积和接触点,也就是说,该接触参数可以为接触面积、可以为接触点、也可以同时包括接触面积和接触点。因此,可以通过接触传感器检测两个蓝牙耳机与用户耳部之间的接触面积和/或接触点。The contact parameter may include at least a contact area and a contact point, that is, the contact parameter may be a contact area, a contact point, or both. Therefore, the contact area and / or contact point between the two Bluetooth headsets and the user's ear can be detected by the touch sensor.
步骤S230:基于所述接触参数,确定所述第一蓝牙耳机和所述第二蓝牙耳机。Step S230: Determine the first Bluetooth headset and the second Bluetooth headset based on the contact parameters.
进一步地,在分别获取两个蓝牙耳机与用户耳部之间的接触参数后,可以从两个蓝牙耳机中确定与用户左耳接触的第一蓝牙耳机,以及与用户右耳接触的第二蓝牙耳机。其中,以一个蓝牙耳机为例进行说明,该蓝牙耳机的接触传感器固定设置于耳机本体的目标位置上, 当该蓝牙耳机安放于用户左耳时,该接触传感器可以检测到与用户左耳之间的接触面积和接触点,当该蓝牙耳机安放于用户右耳时,该接触传感器可以检测到用户右耳之间的接触点面积和接触点,由于该接触传感器的设置位置不变,因此,在该蓝牙耳机在用户左耳和用户右耳之间切换安放时,接触面积和接触点均不相同,因此,当检测到该蓝牙耳机的接触参数后,可以将该接触参数和预存的蓝牙耳机安放于用户左耳的接触参数以及蓝牙耳机安放于用户右耳的接触参数进行比较,以确定该蓝牙耳机的安放位置,即确定该蓝牙耳机为第一蓝牙耳机或第二蓝牙耳机。同样的,另一个蓝牙耳机也可以通过上述方式确定为第一蓝牙耳机或第二蓝牙耳机,从而可以基于所述接触参数,确定两个蓝牙耳机中的所述第一蓝牙耳机和所述第二蓝牙耳机。Further, after obtaining the contact parameters between the two Bluetooth headsets and the user's ear, the first Bluetooth headset in contact with the user's left ear and the second Bluetooth in contact with the user's right ear can be determined from the two Bluetooth headsets. headset. A Bluetooth headset is taken as an example for description. The contact sensor of the Bluetooth headset is fixedly set at a target position of the headset body. When the Bluetooth headset is placed in the left ear of the user, the contact sensor can detect the distance between the Bluetooth sensor and the left ear of the user. Contact area and contact point of the Bluetooth headset when the Bluetooth headset is placed in the user's right ear, the contact sensor can detect the contact point area and contact point between the user's right ear. Since the setting position of the contact sensor is unchanged, When the Bluetooth headset is switched between the user's left ear and the user's right ear, the contact area and contact point are different. Therefore, after detecting the contact parameters of the Bluetooth headset, the contact parameters and the pre-stored Bluetooth headset can be placed. The contact parameters of the user's left ear and the contact parameters of the Bluetooth headset placed in the user's right ear are compared to determine the placement position of the Bluetooth headset, that is, the Bluetooth headset is determined to be the first Bluetooth headset or the second Bluetooth headset. Similarly, another Bluetooth headset can also be determined as the first Bluetooth headset or the second Bluetooth headset in the above manner, so that the first Bluetooth headset and the second Bluetooth headset among the two Bluetooth headsets can be determined based on the contact parameter. Bluetooth earphone.
步骤S240:将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。Step S240: transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset.
其中,步骤S240的具体描述请参阅步骤S130,在此不再赘述。For a detailed description of step S240, please refer to step S130, and details are not described herein again.
步骤S250:分别监测所述第一蓝牙耳机的使用状态和所述第二蓝牙耳机的使用状态。Step S250: Monitor the use state of the first Bluetooth headset and the use state of the second Bluetooth headset, respectively.
进一步地,在将左声道音频信号传输至第一蓝牙耳机,以及将右声道音频信号传输至第二蓝牙耳机的过程中,分别监测该第一蓝牙耳机的使用状态和第二蓝牙耳机的使用状态,其中,可以分别监测该第一蓝牙耳机是否一直安放于用户左耳以及监测该第二蓝牙耳机是否一直安放于用户右耳。作为一种方式,可以通过监测接触传感器的变化判断第一蓝牙耳机是否安放于用户左耳以及第二蓝牙耳机是否安放于用户右耳,在此不再赘述。Further, during the process of transmitting the left channel audio signal to the first Bluetooth headset and the right channel audio signal to the second Bluetooth headset, the usage status of the first Bluetooth headset and the second Bluetooth headset are monitored separately. The state of use, wherein whether the first Bluetooth headset is always placed on the user's left ear and whether the second Bluetooth headset is always placed on the user's right ear can be monitored. As a method, it is possible to determine whether the first Bluetooth headset is placed in the left ear of the user and whether the second Bluetooth headset is placed in the right ear of the user by monitoring the change of the contact sensor, and details are not described herein again.
请参阅图5,图5示出了本申请的图4所示的实施例提供的音频传输方法的步骤S250的流程示意图。下面将针对图5所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 5, which is a schematic flowchart of step S250 of the audio transmission method provided by the embodiment shown in FIG. 4 of the present application. The process shown in FIG. 5 will be described in detail below. The method may specifically include the following steps:
步骤S251:分别监测所述第一蓝牙耳机的运动轨迹和所述第二蓝牙耳机的运动轨迹。Step S251: Monitor the movement track of the first Bluetooth headset and the movement track of the second Bluetooth headset, respectively.
作为一种方式,蓝牙耳机还包括加速度传感器和/陀螺仪,所述加速度传感器和/或陀螺仪设置于所述耳机本体内,用于检测该蓝牙耳机的运动轨迹并将检测到的运动轨迹发送至与之连接的电子设备,以供电子设备对蓝牙耳机的运动轨迹进行检测。具体地,可以通过设置于第一蓝牙耳机内的第一加速度传感器检测第一蓝牙耳机的运动轨迹并发送至电子设备,以及通过设置于第二蓝牙耳机内的第二加速度传感器检测第二蓝牙耳机的运动轨迹并发送至电子设备,从而实现分别监测该第一蓝牙耳机的运动轨迹和第二蓝牙耳机的运动轨迹。As a method, the Bluetooth headset further includes an acceleration sensor and / or a gyroscope, and the acceleration sensor and / or the gyroscope is disposed in the headset body, and is configured to detect the motion trajectory of the Bluetooth headset and send the detected motion trajectory. To the electronic device connected to it, use the power supply device to detect the movement track of the Bluetooth headset. Specifically, the movement track of the first Bluetooth headset can be detected by a first acceleration sensor provided in the first Bluetooth headset and sent to the electronic device, and the second Bluetooth headset can be detected by a second acceleration sensor provided in the second Bluetooth headset. The motion trajectory of the first Bluetooth headset and the second trajectory of the second Bluetooth headset are monitored separately.
其中,以陀螺仪为例,根据所述陀螺仪的定轴性以及蓝牙耳机相对于陀螺仪转轴方向的已知的预设姿态,当蓝牙耳机的姿态与预设姿态之间出现差别,产生俯仰、偏航或横滚的某一方向的运动时,因为该陀螺仪的转轴保持方向不变,检测蓝牙耳机杆相对于转轴的角度关系与预设姿态相对于转轴的角度关系发生变化,则可以确定蓝牙耳机的姿态变化,确定蓝牙耳机的运动轨迹。Taking the gyroscope as an example, according to the gyroscope's axiality and the known preset attitude of the Bluetooth headset with respect to the rotation axis direction of the gyroscope, when a difference occurs between the attitude of the Bluetooth headset and the preset attitude, pitching occurs. , Yaw or roll movement in a certain direction, because the rotation axis of the gyroscope remains the same direction, it is possible to detect the change in the angle relationship between the Bluetooth headset lever with respect to the rotation axis and the angle relationship between the preset attitude and the rotation axis. Determine the attitude change of the Bluetooth headset, and determine the movement track of the Bluetooth headset.
步骤S252:基于所述第一蓝牙耳机的运动轨迹判断所述第一蓝牙耳机是否脱离所述用户左耳。Step S252: Determine whether the first Bluetooth headset is detached from the left ear of the user based on the movement track of the first Bluetooth headset.
在本实施例中,通过设置于第一蓝牙耳机的耳机本体内的加速度传感器和/或陀螺仪检测到该第一蓝牙耳机的运动轨迹后,基于该运动轨迹判断该第一蓝牙耳机是否脱离用户左耳,可以理解的,当第一蓝牙耳机的运动轨迹表征有明显的弧度变化时,可以认为该第一蓝牙耳机脱离用户左耳,当第一蓝牙耳机的运动轨迹表征没有明显的弧度变化时,可以认为该第一蓝牙耳机没有脱离用户左耳。In this embodiment, after detecting the motion trajectory of the first Bluetooth headset through an acceleration sensor and / or a gyroscope provided in the headset body of the first Bluetooth headset, it is determined whether the first Bluetooth headset is detached from the user based on the motion trajectory. For the left ear, it can be understood that when the motion trajectory of the first Bluetooth headset has a significant radian change, it can be considered that the first Bluetooth headset is detached from the user's left ear. When the motion trajectory of the first Bluetooth headset has no obvious radian change It can be considered that the first Bluetooth headset is not separated from the left ear of the user.
步骤S253:基于所述第二蓝牙耳机的运动轨迹判断所述第二蓝牙耳机是否脱离所述用户右耳。Step S253: Determine whether the second Bluetooth headset is detached from the right ear of the user based on the movement track of the second Bluetooth headset.
在本实施例中,通过设置于第二蓝牙耳机的耳机本体内的加速度传感器和/或陀螺仪检测到该第二蓝牙耳机的运动轨迹后,基于该运动轨迹判断该第二蓝牙耳机是否脱离用户右耳,可以理解的,当第二蓝牙耳机的运动轨迹表征有明显的弧度变化时,可以认为该第二蓝牙耳机脱离用户右耳,当第二蓝牙耳机的运动轨迹表征没有明显的弧度变化时,可以认为该第二蓝牙耳机没有脱离用户右耳。In this embodiment, after detecting a motion trajectory of the second Bluetooth headset through an acceleration sensor and / or a gyroscope provided in the headset body of the second Bluetooth headset, it is determined whether the second Bluetooth headset is detached from the user based on the motion trajectory. For the right ear, it can be understood that when the motion trajectory of the second Bluetooth headset has a significant radian change, it can be considered that the second Bluetooth headset is detached from the user's right ear. When the motion trajectory of the second Bluetooth headset has no obvious radian change It can be considered that the second Bluetooth headset is not separated from the user's right ear.
步骤S260:当所述第一蓝牙耳机脱离所述用户左耳且所述第二蓝牙耳机安放于所述用户右耳时,将所述电子设备的立体音频信号传输至所述第二蓝牙耳机。Step S260: When the first Bluetooth headset is separated from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user, the stereo audio signal of the electronic device is transmitted to the second Bluetooth headset.
进一步地,当检测到该第一蓝牙耳机脱离用户左耳且第二蓝牙耳机安放于用于右耳时,表征该第一蓝牙耳机处于非使用状态而第二蓝牙耳机处于使用状态,则将电子设备的立体音频信号传输至第二蓝牙耳机,以使输入用户耳朵的音频信号为立体音频信号,以保证音乐播放效果和用户体验。可以理解的,此时,所述第一蓝牙耳机处于非使用状态,电子设备无需将音频信号传输至第一蓝牙耳机,因此,可以断开电子设备与第一蓝牙耳机之间的连接,且控制第一蓝牙耳机休眠或关机等,以节省电子设备和第一蓝牙耳机的功耗和电量。Further, when it is detected that the first Bluetooth headset is detached from the user's left ear and the second Bluetooth headset is placed for the right ear, indicating that the first Bluetooth headset is in a non-use state and the second Bluetooth headset is in a use state, the electronic The stereo audio signal of the device is transmitted to the second Bluetooth headset, so that the audio signal input to the user's ear is a stereo audio signal to ensure the music playback effect and user experience. Understandably, at this time, the first Bluetooth headset is in a non-use state, and the electronic device does not need to transmit audio signals to the first Bluetooth headset. Therefore, the connection between the electronic device and the first Bluetooth headset can be disconnected, and the control can be controlled. The first Bluetooth headset sleeps or is turned off to save power consumption and power of the electronic device and the first Bluetooth headset.
步骤S270:当所述第一蓝牙耳机安放于所述用户左耳且所述第二蓝牙耳机脱离所述用户右耳时,将所述电子设备的立体音频信号传输至所述第一蓝牙耳机。Step S270: When the first Bluetooth headset is placed on the left ear of the user and the second Bluetooth headset is detached from the right ear of the user, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset.
同样的,当检测到该第二蓝牙耳机脱离用户右耳且第一蓝牙耳机安放于用于左耳时,表征该第一蓝牙耳机处于使用状态而第二蓝牙耳机处于非使用状态,则将电子设备的立体音频信号传输至第一蓝牙耳机,以使输入用户耳朵的音频信号为立体音频信号,以保证音乐播放效果和用户体验。可以理解的,此时所述第二蓝牙耳机处于非使用状态,电子设备无需将音频信号传输至第二蓝牙耳机,因此,可以断开电子设备与第二蓝牙耳机之间的连接,且控制第二蓝牙耳机休眠或关机等,以节省电子设备和第二蓝牙耳机的功耗和电量。Similarly, when it is detected that the second Bluetooth headset is detached from the user's right ear and the first Bluetooth headset is placed for the left ear, indicating that the first Bluetooth headset is in use state and the second Bluetooth headset is in non-use state, the electronic The stereo audio signal of the device is transmitted to the first Bluetooth headset, so that the audio signal input to the user's ear is a stereo audio signal to ensure the music playback effect and user experience. Understandably, at this time, the second Bluetooth headset is not in use, and the electronic device does not need to transmit audio signals to the second Bluetooth headset. Therefore, the connection between the electronic device and the second Bluetooth headset can be disconnected and the first The second Bluetooth headset sleeps or shuts down to save power consumption and power of the electronic device and the second Bluetooth headset.
本申请又一个实施例提供的音频传输方法,当电子设备与两个蓝牙耳机处于连接状态时,分别获取两个蓝牙耳机的使用状态,当两个蓝牙耳机均安放于用户耳部时,分别获取两个接触传感器与用户耳部之间的接触参数,基于该接触参数确定第一蓝牙耳机和第二蓝牙耳机,将电子设备的左声道音频信号传输至第一蓝牙耳机,将电子设备的右声道音频信号传输至第二蓝牙耳机,分别监测第一蓝牙耳机的使用状态和第二蓝牙耳机的使用状态,当第一蓝牙耳机脱离用户左耳且第二蓝牙耳机安放于用户右耳时,将电子设备的立体音频信号传输至第二蓝牙耳机,当第一蓝牙耳机安放于用户左耳且第二蓝牙耳机脱离用户右耳时,将电子设备的立体音频信号传输至第一蓝牙耳机,相较于图3所示的音频传输方法,本实施例可以通过接触传感器检测的接触参数判断左右耳机,并在其中一个耳机脱离用户耳朵时将音频信号转换为立体音频信号传输至安放于用户耳朵的另一个耳机,保证用户的音频体验。In the audio transmission method provided by another embodiment of the present application, when an electronic device and two Bluetooth headsets are in a connected state, the usage statuses of the two Bluetooth headsets are obtained, and when both Bluetooth headsets are placed on the user's ears, respectively, The contact parameters between the two touch sensors and the user's ear. Based on the contact parameters, the first Bluetooth headset and the second Bluetooth headset are determined, and the left channel audio signal of the electronic device is transmitted to the first Bluetooth headset. The channel audio signal is transmitted to the second Bluetooth headset, and the usage status of the first Bluetooth headset and the second Bluetooth headset are monitored separately. When the first Bluetooth headset is separated from the user's left ear and the second Bluetooth headset is placed in the user's right ear, The stereo audio signal of the electronic device is transmitted to the second Bluetooth headset. When the first Bluetooth headset is placed in the user's left ear and the second Bluetooth headset is separated from the user's right ear, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset. Compared with the audio transmission method shown in FIG. 3, in this embodiment, the left and right can be determined by the contact parameters detected by the touch sensor. The earphone converts the audio signal into a stereo audio signal when one of the earphones is separated from the user's ear, and transmits it to the other earphone placed in the user's ear to ensure the user's audio experience.
请参阅图6,图6示出了本申请再一个实施例提供的音频传输方法的流程示意图。该方法应用于上述电子设备,其中,两个蓝牙耳机均包括耳机本体和设置于耳机本体上的接触传感器,下面将针对图6所示的流程进行详细的阐述,所述音频传输方法具体可以包括以下步骤:Please refer to FIG. 6, which is a schematic flowchart of an audio transmission method according to another embodiment of the present application. This method is applied to the above-mentioned electronic device, where both Bluetooth headsets include a headset body and a contact sensor provided on the headset body. The following describes the process shown in FIG. 6 in detail. The audio transmission method may specifically include: The following steps:
步骤S310:当所述电子设备与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态。Step S310: When the electronic device and the two Bluetooth headsets are in a connected state, the use states of the two Bluetooth headsets are obtained respectively.
其中,步骤S310的具体描述请参阅步骤S210,在此不再赘述。For a detailed description of step S310, refer to step S210, and details are not described herein again.
步骤S320:当所述两个蓝牙耳机均安放于所述用户耳部时,分别获取所述两个接触传感器与所述用户耳部之间的接触面积。Step S320: When the two Bluetooth headsets are both placed on the ear of the user, obtain the contact areas between the two touch sensors and the ear of the user.
在本实施例中,两个蓝牙耳机均包括耳机本体和接触传感器,且接触传感器设置于耳机本体上,其中,该接触传感器设置于耳机本体的外表面,当蓝牙耳机安放于用户耳部时,该接触传感器与用户耳部接触产生接触信号。具体地,当两个蓝牙耳机均安放于用户耳部时,可以通过设置于两个耳机本体上的两个接触传感器分别检测与用户耳部之间的接触面积,可以理解的,可以通过设置于第一耳机上的接触传感器检测第一耳机与用户耳部之间的接触面积,通过设置于第二耳机上的接触传感器检测第二耳机与用户耳部之间的接触面积。In this embodiment, both Bluetooth headsets include a headset body and a contact sensor, and the contact sensor is disposed on the headset body. The contact sensor is disposed on an outer surface of the headset body. When the Bluetooth headset is placed on a user's ear, The contact sensor is in contact with the user's ear to generate a contact signal. Specifically, when the two Bluetooth headsets are both placed on the user's ears, the contact area with the user's ears can be detected by two contact sensors provided on the two headset bodies. It is understandable that the two A contact sensor on the first headset detects a contact area between the first headset and a user's ear, and a contact sensor provided on the second headset detects a contact area between the second headset and the user's ear.
步骤S330:基于所述接触面积,确定所述第一蓝牙耳机和所述第二蓝牙耳机。Step S330: Determine the first Bluetooth headset and the second Bluetooth headset based on the contact area.
请查阅图7,图7示出了本申请的图6所示的音频传输方法的步骤S330的流程示意图。下面将针对图7所示的流程进行详细的阐述,其中,电子设备预设有两个蓝牙耳机分别和用户左耳和用户右耳之间的对应关系,所述方法具体可以包括以下步骤:Please refer to FIG. 7, which is a schematic flowchart of step S330 of the audio transmission method shown in FIG. 6 of the present application. The process shown in FIG. 7 will be described in detail below. The electronic device presets the correspondence between the two Bluetooth headsets and the user's left ear and the user's right ear, respectively. The method may specifically include the following steps:
步骤S331:判断所述接触面积是否与预设面积一致,其中,所述预设面积为所述两个蓝牙耳机正确安放于所述用户耳部时,所述两个接触传感器与所述用户耳部之间的接触面积。Step S331: determine whether the contact area is consistent with a preset area, where the preset area is that when the two Bluetooth headsets are correctly placed on the user's ear, the two contact sensors and the user's ear Contact area between parts.
在本实施例中,电子设备预设有两个蓝牙耳机分别和用户左耳和用户右耳之间的对应关系,也就是说,电子设备中预先存储有两个蓝牙耳机分别安放于用户左耳时与用户左耳的接触面积,以及安放于用户右耳时和用户右耳的接触面积,可以理解的,两个蓝牙耳机中预先定义有应该安放于用户左耳的蓝牙耳机和应安放于用户右耳的蓝牙耳机,因此,在获取两个蓝牙耳机分别安放于用户左耳时与用户左耳的接触面积,以及安放于用户右耳时和用户右耳的接触面积后,可以从接触面积中获取两个蓝牙耳机正确安放于用户耳部时的接触面积,并将其作为预设面积。例如,A耳机预先定义为安放于用户左耳的蓝牙耳机,且A耳机安放于用户左耳时与用户左耳的接触面积为B,安放于用户右耳时与用户右耳的接触面积为C,则可以将B作为预设面积。In this embodiment, the electronic device presets the corresponding relationship between the two Bluetooth headsets and the user's left ear and the user's right ear respectively, that is, the electronic device has two Bluetooth headsets stored in the user's left ear in advance and stored respectively. The contact area with the user ’s left ear and the contact area with the user ’s right ear when it is placed on the user ’s right ear. It is understandable that the two Bluetooth headsets are predefined with a Bluetooth headset that should be placed on the user's left ear and a user that should be placed on the user. The right ear Bluetooth headset, so after obtaining the contact area of the two Bluetooth headsets with the user ’s left ear and the contact area of the user ’s right ear with the user ’s right ear, the contact area Obtain the contact area when two Bluetooth headsets are correctly placed on the user's ear, and use it as a preset area. For example, the A headset is predefined as a Bluetooth headset placed on the user's left ear, and the contact area of the A headset with the user's left ear when placed on the user's left ear is B, and the contact area of the A headset when placed on the user's right ear is C , You can use B as the preset area.
进一步地,在获取到两个蓝牙耳机和用户耳部的接触面积之后,将该接触面积与所述预设面积进行比较,以判断该接触面积是否与所述预设面积一致。Further, after obtaining the contact area of the two Bluetooth headsets and the user's ear, the contact area is compared with the preset area to determine whether the contact area is consistent with the preset area.
步骤S332:当所述接触面积与所述预设面积一致时,确认和所述用户左耳对应的蓝牙耳机为所述第一蓝牙耳机,和所述用户右耳对应的蓝牙耳机为所述第二蓝牙耳机。Step S332: when the contact area is consistent with the preset area, confirm that the Bluetooth headset corresponding to the user's left ear is the first Bluetooth headset, and the Bluetooth headset corresponding to the user's right ear is the first Two Bluetooth headsets.
可以理解的,当该接触面积与所述预设面积一致时,表征该蓝牙耳机正确安放于用户耳部,因此,可以确定安放于用户左耳的蓝牙耳机为第一蓝牙耳机,安放于用户右耳的蓝牙耳机为第二蓝牙耳机。It can be understood that when the contact area is consistent with the preset area, it indicates that the Bluetooth headset is correctly placed on the user's ear, so it can be determined that the Bluetooth headset placed on the user's left ear is the first Bluetooth headset and placed on the user's right The on-ear Bluetooth headset is a second Bluetooth headset.
步骤S333:当所述接触面积与所述预设面积不一致时,确认和所述用户右耳对应的蓝牙耳机为所述第一蓝牙耳机,和所述用户左耳对应的蓝牙耳机为所述第一蓝牙耳机。Step S333: When the contact area is inconsistent with the preset area, confirm that the Bluetooth headset corresponding to the user's right ear is the first Bluetooth headset, and the Bluetooth headset corresponding to the user's left ear is the first A Bluetooth headset.
相反的,当该接触面积与预设面积不一致时,表征该蓝牙耳机错误安放于用户耳部,则可以确定安放于用户右耳的蓝牙耳机为第一蓝牙耳机,安放于用户左耳的蓝牙耳机为第一蓝牙耳机。Conversely, when the contact area is inconsistent with the preset area, indicating that the Bluetooth headset is incorrectly placed in the user's ear, it can be determined that the Bluetooth headset placed in the user's right ear is the first Bluetooth headset and the Bluetooth headset placed in the user's left ear For the first Bluetooth headset.
步骤S340:将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。Step S340: transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset.
步骤S350:分别监测所述第一蓝牙耳机的使用状态和所述第二蓝牙耳机的使用状态。Step S350: Monitor the use state of the first Bluetooth headset and the use state of the second Bluetooth headset, respectively.
步骤S360:当所述第一蓝牙耳机脱离所述用户左耳且所述第二蓝牙耳机安放于所述用户右耳时,将所述电子设备的立体音频信号传输至所述第二蓝牙耳机。Step S360: When the first Bluetooth headset is separated from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user, the stereo audio signal of the electronic device is transmitted to the second Bluetooth headset.
步骤S370:当所述第一蓝牙耳机安放于所述用户左耳且所述第二蓝牙耳机脱离所述用户右耳时,将所述电子设备的立体音频信号传输至所述第一蓝牙耳机。Step S370: When the first Bluetooth headset is placed in the left ear of the user and the second Bluetooth headset is separated from the right ear of the user, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset.
其中,步骤S340-步骤S370的具体描述请参阅步骤S340-步骤S270,在此不再赘述。For a detailed description of steps S340 to S370, please refer to steps S340 to S270, and details are not described herein again.
本申请又一个实施例提供的音频传输方法,当电子设备与两个蓝牙耳机处于连接状态时,分别获取两个蓝牙耳机的使用状态,当两个蓝牙耳机均安放于用户耳部时,分别获取两个接触传感器与用户耳部之间的接触面积,基于该接触面积确定第一蓝牙耳机和第二蓝牙耳机,将电子设备的左声道音频信号传输至第一蓝牙耳机,将电子设备的右声道音频信号传输至第二蓝牙耳机,分别监测第一蓝牙耳机的使用状态和第二蓝牙耳机的使用状态,当第一蓝牙耳机脱离用户左耳且第二蓝牙耳机安放于用户右耳时,将电子设备的立体音频信号传输至第二蓝牙耳机,当第一蓝牙耳机安放于用户左耳且第二蓝牙耳机脱离用户右耳时,将电子设备的立体音频信号传输至第一蓝牙耳机,相较于图3所示的音频传输方法,本实施例可以通过接触传感器检测的接触面积判断左右耳机,并在其中一个耳机脱离用户耳朵时将音频数据转换为立体音频信号传输至安放于用户耳朵的另一个耳机,保证用户的音频体验。In the audio transmission method provided by another embodiment of the present application, when an electronic device and two Bluetooth headsets are in a connected state, the usage statuses of the two Bluetooth headsets are obtained, and when both Bluetooth headsets are placed on the user's ears, respectively, The contact area between the two touch sensors and the user's ear. Based on the contact area, the first Bluetooth headset and the second Bluetooth headset are determined, and the left channel audio signal of the electronic device is transmitted to the first Bluetooth headset. The channel audio signal is transmitted to the second Bluetooth headset, and the usage status of the first Bluetooth headset and the second Bluetooth headset are monitored separately. When the first Bluetooth headset is separated from the user's left ear and the second Bluetooth headset is placed in the user's right ear, The stereo audio signal of the electronic device is transmitted to the second Bluetooth headset. When the first Bluetooth headset is placed in the user's left ear and the second Bluetooth headset is separated from the user's right ear, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset. Compared with the audio transmission method shown in FIG. 3, in this embodiment, the left and right can be determined by the contact area detected by the touch sensor. The headset converts the audio data into a stereo audio signal when one of the headsets is released from the user's ear, and transmits it to the other headset placed in the user's ear to ensure the user's audio experience.
请参阅图8,图8示出了本申请一个实施例提供的音频传输装置200的模块框图。音频传输装置200应用于上述电子设备。下面将针对图8所示的框图进行阐述,所述音频传输装置200包括:获取模块210、确定模块220以及传输模块230,其中:Please refer to FIG. 8, which illustrates a block diagram of an audio transmission device 200 according to an embodiment of the present application. The audio transmission device 200 is applied to the above-mentioned electronic equipment. The following describes the block diagram shown in FIG. 8. The audio transmission device 200 includes: an acquisition module 210, a determination module 220, and a transmission module 230, where:
获取模块210,用于当所述电子设备分别与两个蓝牙耳机处于连接状态时,分别获取所 述两个蓝牙耳机的使用状态。The obtaining module 210 is configured to obtain the use states of the two Bluetooth headsets when the electronic device is in a connection state with the two Bluetooth headsets, respectively.
确定模块220,用于当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机。进一步地,两个蓝牙耳机均包括耳机本体和设置于耳机本体上的接触传感器,所述确定模块220包括:接触参数获取子模块和确定子模块,其中:A determining module 220, configured to determine a first Bluetooth headset placed on the user's left ear and a second Bluetooth headset placed on the user's right ear when the two Bluetooth headsets are both placed on the user's ear . Further, both Bluetooth headsets include a headset body and a contact sensor provided on the headset body, and the determination module 220 includes a contact parameter acquisition sub-module and a determination sub-module, wherein:
接触参数获取子模块,用于当所述两个蓝牙耳机均安放于所述用户耳部时,分别获取两个接触传感器与所述用户耳部之间的接触参数。进一步地,所述接触参数获取子模块包括:接触面积获取单元,其中:The contact parameter acquisition sub-module is configured to obtain contact parameters between two contact sensors and the user's ear when the two Bluetooth headsets are both placed on the user's ear. Further, the contact parameter acquisition sub-module includes a contact area acquisition unit, wherein:
接触面积获取单元吗,用于当所述两个蓝牙耳机均安放于所述用户耳部时,分别获取所述两个接触传感器与所述用户耳部之间的接触面积。Is the contact area acquisition unit configured to obtain the contact area between the two touch sensors and the user's ear when the two Bluetooth headsets are both placed on the user's ear.
确定子模块,用于基于所述接触参数,确定所述第一蓝牙耳机和所述第二蓝牙耳机。进一步地,所述确定子模块包括:确定单元,其中:A determining submodule is configured to determine the first Bluetooth headset and the second Bluetooth headset based on the contact parameters. Further, the determining submodule includes: a determining unit, wherein:
确定单元,用于基于所述接触面积,确定所述第一蓝牙耳机和所述第二蓝牙耳机。进一步地,所述电子设备预设有两个蓝牙耳机分别和用户左耳和用户右耳之间的对应关系,所述确定单元包括:面积判断子单元、第一确定子单元以及第二确定子单元,其中:A determining unit is configured to determine the first Bluetooth headset and the second Bluetooth headset based on the contact area. Further, the electronic device presets a correspondence relationship between two Bluetooth headsets and a user's left ear and a user's right ear respectively, and the determining unit includes: an area determining subunit, a first determining subunit, and a second determining subunit Unit, where:
面积判断子单元,用于判断所述接触面积是否与预设面积一致,其中,所述预设面积为所述两个蓝牙耳机正确安放于所述用户耳部时,所述两个接触传感器与所述用户耳部之间的接触面积。An area judging subunit is configured to determine whether the contact area is consistent with a preset area, where the preset area is when the two Bluetooth headsets are correctly placed on the user's ear, the two touch sensors and the A contact area between the ears of the user.
第一确定子单元,用于当所述接触面积与所述预设面积一致时,确认和所述用户左耳对应的蓝牙耳机为所述第一蓝牙耳机,和所述用户右耳对应的蓝牙耳机为所述第二蓝牙耳机。A first determining subunit, configured to confirm that the Bluetooth headset corresponding to the left ear of the user is the first Bluetooth headset and the Bluetooth corresponding to the user's right ear when the contact area is consistent with the preset area The headset is the second Bluetooth headset.
第二确定子单元,用于当所述接触面积与所述预设面积不一致时,确认和所述用户右耳对应的蓝牙耳机为所述第一蓝牙耳机,和所述用户左耳对应的蓝牙耳机为所述第一蓝牙耳机。A second determining subunit, configured to confirm that the Bluetooth headset corresponding to the user's right ear is the first Bluetooth headset and the Bluetooth corresponding to the user's left ear when the contact area is inconsistent with the preset area The headset is the first Bluetooth headset.
传输模块230,用于将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。The transmission module 230 is configured to transmit a left channel audio signal of the electronic device to the first Bluetooth headset, and transmit a right channel audio signal of the electronic device to the second Bluetooth headset.
本申请一个实施例提供的音频传输装置包括获取模块、确定模块以及传输模块,其中,获取模块用于当所述电子设备分别与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态,确定模块用于当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机,传输模块,用于将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机,从而通过将电子设备与左右蓝牙耳机分别建立音频通道,并分别传输左声道音频信号和右声道音频信号至左右蓝牙耳机,提升音乐播放效果以及用户体验。An audio transmission device provided by an embodiment of the present application includes an acquisition module, a determination module, and a transmission module, wherein the acquisition module is configured to acquire the two Bluetooth headsets when the electronic device and the two Bluetooth headsets are connected respectively. Is used, the determining module is configured to determine a first Bluetooth headset placed on the left ear of the user and a second Bluetooth headset placed on the right ear of the user when the two Bluetooth headsets are both placed on the user's ear A Bluetooth headset, a transmission module, configured to transmit a left channel audio signal of the electronic device to the first Bluetooth headset, and a right channel audio signal of the electronic device to the second Bluetooth headset, thereby By establishing an audio channel between the electronic device and the left and right Bluetooth headsets, and transmitting the left channel audio signal and the right channel audio signal to the left and right Bluetooth headsets respectively, the music playback effect and the user experience are improved.
请参阅图9,图9示出了本申请又一个实施例提供的音频传输装置300的模块框图。音频传输装置300应用于上述电子设备。下面将针对图9所示的框图进行阐述,所述音频传输装置300包括:获取模块310、确定模块320、传输模块330以及监测模块340,其中:Please refer to FIG. 9, which illustrates a block diagram of an audio transmission device 300 according to another embodiment of the present application. The audio transmission device 300 is applied to the above-mentioned electronic equipment. The following describes the block diagram shown in FIG. 9. The audio transmission device 300 includes: an acquisition module 310, a determination module 320, a transmission module 330, and a monitoring module 340, where:
获取模块310,用于当所述电子设备分别与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态。The obtaining module 310 is configured to obtain the use states of the two Bluetooth headsets when the electronic device is in a connection state with the two Bluetooth headsets, respectively.
确定模块320,用于当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机。A determining module 320 is configured to determine, when the two Bluetooth headsets are both placed on a user's ear, a first Bluetooth headset placed on the user's left ear and a second Bluetooth headset placed on the user's right ear. .
传输模块330,用于将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。The transmission module 330 is configured to transmit a left channel audio signal of the electronic device to the first Bluetooth headset, and a right channel audio signal of the electronic device to the second Bluetooth headset.
监测模块340,用于分别监测所述第一蓝牙耳机的使用状态和所述第二蓝牙耳机的使用状态。进一步地,所述监测模块340包括:监测子模块和判断子模块,其中:The monitoring module 340 is configured to separately monitor a use state of the first Bluetooth headset and a use state of the second Bluetooth headset. Further, the monitoring module 340 includes: a monitoring sub-module and a judgment sub-module, wherein:
监测子模块,用于分别监测所述第一蓝牙耳机的运动轨迹和所述第二蓝牙耳机的运动轨迹。The monitoring sub-module is configured to monitor the movement track of the first Bluetooth headset and the movement track of the second Bluetooth headset, respectively.
判断子模块,用于基于所述第一蓝牙耳机的运动轨迹判断所述第一蓝牙耳机是否脱离所述用户左耳。A judging sub-module is configured to judge whether the first Bluetooth headset is detached from the left ear of the user based on the movement track of the first Bluetooth headset.
所述判断子模块,还用于基于所述第二蓝牙耳机的运动轨迹判断所述第二蓝牙耳机是否脱离所述用户右耳。The judging sub-module is further configured to judge whether the second Bluetooth headset is detached from the right ear of the user based on the movement track of the second Bluetooth headset.
所述传输模块330,还用于当所述第一蓝牙耳机脱离所述用户左耳且所述第二蓝牙耳机安放于所述用户右耳时,将所述电子设备的立体音频信号传输至所述第二蓝牙耳机。进一步地,所述传输模块330包括:断开子模块,其中:The transmission module 330 is further configured to transmit the stereo audio signal of the electronic device to the user when the first Bluetooth headset is separated from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user. The second Bluetooth headset is described. Further, the transmission module 330 includes: a disconnection sub-module, where:
断开子模块,用于当所述第一蓝牙耳机脱离所述用户左耳且所述第二蓝牙耳机安放于所述用户右耳时,断开所述电子设备与所述第一蓝牙耳机之间的连接。A disconnection sub-module for disconnecting the electronic device from the first Bluetooth headset when the first Bluetooth headset is detached from the left ear of the user and the second Bluetooth headset is placed on the user's right ear Connection.
所述传输模块330,还用于当所述第一蓝牙耳机安放于所述用户左耳且所述第二蓝牙耳机脱离所述用户右耳时,将所述电子设备的立体音频信号传输至所述第一蓝牙耳机。进一步地,所述传输模块330包括:断开子模块,其中:The transmission module 330 is further configured to transmit the stereo audio signal of the electronic device to the user when the first Bluetooth headset is placed in the left ear of the user and the second Bluetooth headset is separated from the right ear of the user. The first Bluetooth headset is described. Further, the transmission module 330 includes: a disconnection sub-module, where:
断开子模块,用于当所述第一蓝牙耳机安放于所述用户左耳且所述第二蓝牙耳机脱离所述用户右耳时,断开所述电子设备与所述第二蓝牙耳机之间的连接。A disconnection sub-module for disconnecting the electronic device from the second Bluetooth headset when the first Bluetooth headset is placed in the left ear of the user and the second Bluetooth headset is detached from the right ear of the user Connection.
本申请又一个实施例提供的音频传输装置包括获取模块、确定模块、传输模块以及监测模块,其中,获取模块用于当所述电子设备分别与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态,确定模块用于当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机,传输模块用于将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机,监测模块用于分别监测所述第一蓝牙耳机的使用状态和所述第二蓝牙耳机的使用状态,所述传输模块还用于当所述第一蓝牙耳机脱离所述用户左耳且所述第二蓝牙耳机安放于所述用户右耳时,将所述电子设备的立体音频信号传输至所述第二蓝牙耳机,或者当所述第一蓝牙耳机安放于所述用户左耳且所述第二蓝牙耳机脱离所述用户右耳时,将所述电子设备的立体音频信号传输至所述第一蓝牙耳机,相较于图8所示的音频传输装置,本实施例还能够在其中一个耳机脱离用户耳朵时将音频数据转换为立体音频信号传输至安放于用户耳朵的另一个耳机,保证用户的音频体验。The audio transmission device provided by another embodiment of the present application includes an acquisition module, a determination module, a transmission module, and a monitoring module, wherein the acquisition module is configured to acquire the electronic devices when the electronic device and the two Bluetooth headsets are in a connection state respectively. The use state of the two Bluetooth headsets, the determining module is configured to determine, when the two Bluetooth headsets are both placed on the user's ear, the first Bluetooth headset placed on the user's left ear and the user's right A second Bluetooth headset with an ear, the transmission module is configured to transmit the left channel audio signal of the electronic device to the first Bluetooth headset, and transmit the right channel audio signal of the electronic device to the second Bluetooth A headset, a monitoring module configured to separately monitor a use state of the first Bluetooth headset and a use state of the second Bluetooth headset, and the transmission module is further configured to disconnect the first Bluetooth headset from the left ear of the user When the second Bluetooth headset is placed in the right ear of the user, the stereo audio signal of the electronic device is transmitted to the second Bluetooth headset, or when When the first Bluetooth headset is placed in the left ear of the user and the second Bluetooth headset is detached from the right ear of the user, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset, compared to FIG. 8 The audio transmission device shown in this embodiment can also convert audio data into a stereo audio signal when one of the earphones is detached from the user's ear, and transmit the audio data to another earphone placed in the user's ear to ensure the user's audio experience.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the devices and modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical, or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or software functional modules.
请参阅图10,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、蓝牙模块130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 10, which is a structural block diagram of an electronic device 100 according to an embodiment of the present application. The electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, or an e-book. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a Bluetooth module 130, and one or more application programs, where one or more application programs may be stored in the memory 120 and stored by It is configured to be executed by one or more processors 110, and one or more programs are configured to execute the method as described in the foregoing 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中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts in the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 120 by calling or executing data stored in the memory 120 to execute Various functions and processing data of the electronic device 100. Optionally, the processor 110 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). To implement a hardware form. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly handles the operating system, user interface, and application programs; the GPU is responsible for rendering and rendering of the displayed content; the modem is used for wireless communication. It can be understood that the modem may not be integrated into the processor 110, and may be implemented by a single communication chip.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include Random Access Memory (RAM), and may also include Read-Only Memory. The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and 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 method embodiments, and the like. The storage data area may also store data (such as phone book, audio and video data, chat record data) and the like created by the electronic device 100 during use.
蓝牙模块130用于实现电子设备与两个蓝牙耳机之间的蓝牙连接,以及与两个蓝牙耳机之间的数据交互,其中,蓝牙模块130的数量可以为一个,也可以为多个集成在一起,在此不做限定。具体地,可以与蓝牙设备通过蓝牙协议5.0/4.2/4.1/2.1/2.0,也可以通过蓝牙低能耗技术(Bluetooh Low Energy,BLE)、蓝牙增强速率技术(Enhanced Data Rate,EDR)或者蓝牙基本速率(Base Rate,BR)等。其基本电路构成与WiFi模块类似,也可以由功率放大器、无线收发器、收发切换器、低噪声放大器以及天线等组成。该蓝牙模块130可以使用第一通信频段,其中,该第一通信频段可以是2.4GHZ。The Bluetooth module 130 is used to realize the Bluetooth connection between the electronic device and the two Bluetooth headsets, as well as the data interaction with the two Bluetooth headsets. The number of the Bluetooth modules 130 may be one or may be integrated together. It is not limited here. Specifically, it can communicate with Bluetooth devices through the Bluetooth protocol 5.0 / 4.2 / 4.1 / 2.1 / 2.0, or through Bluetooth Low Energy (BLE), Enhanced Data Rate (EDR), or Bluetooth basic rate. (Base, Rate, BR) and so on. Its basic circuit configuration is similar to the WiFi module, and it can also be composed of a power amplifier, a wireless transceiver, a transceiver switch, a low-noise amplifier, and an antenna. The Bluetooth module 130 may use a first communication frequency band, wherein the first communication frequency band may be 2.4 GHz.
请参阅图11,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 11, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 300 stores program code, which can be called by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。The computer-readable storage medium 300 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 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has a storage space of a program code 310 that executes any of the method steps in the above method. These program codes can be read from or written into one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
综上所述,本申请实施例提供的音频传输方法、装置、电子设备以及存储介质,当电子设备与两个蓝牙耳机处于连接状态时,分别获取两个蓝牙耳机的使用状态,当两个蓝牙耳机均安放于用户耳部时,确定两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机,将电子设备的左声道音频信号传输至第一蓝牙耳机,以及将电子设备的右声道音频信号传输至第二蓝牙耳机,从而通过将电子设备与左右蓝牙耳机分别建立音频通道,并分别传输左声道音频信号和右声道音频信号至左右蓝牙耳机,提升音乐播放效果以及用户体验。In summary, the audio transmission method, device, electronic device and storage medium provided in the embodiments of the present application, when the electronic device and the two Bluetooth headsets are in a connected state, obtain the use status of the two Bluetooth headsets, respectively. When the earphones are placed in the user's ear, the first Bluetooth earphone placed in the left ear of the user and the second Bluetooth earphone placed in the right ear of the two Bluetooth earphones are determined to transmit the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset, thereby establishing an audio channel for the electronic device and the left and right Bluetooth headphones respectively, and transmitting the left channel audio signal and the right channel audio signal to the left and right respectively Bluetooth headset to enhance music playback and user experience.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to describe the technical solution of the present application, rather than limiting it. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacements of some of the technical features thereof; and these modifications or replacements do not drive the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种音频传输方法,其特征在于,应用于电子设备,所述方法包括:An audio transmission method, characterized in that the method is applied to an electronic device, and the method includes:
    当所述电子设备与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态;When the electronic device and the two Bluetooth headsets are in a connected state, respectively acquiring the use states of the two Bluetooth headsets;
    当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机;When the two Bluetooth headsets are both placed on the ear of the user, determine that the first Bluetooth headset placed on the user's left ear and the second Bluetooth headset placed on the user's right ear among the two Bluetooth headsets;
    将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。Transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and transmitting the right channel audio signal of the electronic device to the second Bluetooth headset.
  2. 根据权利要求1所述的方法,其特征在于,所述两个蓝牙耳机均包括耳机本体和设置于所述耳机本体上的接触传感器,所述当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机,包括:The method according to claim 1, wherein the two Bluetooth headsets each include a headset body and a contact sensor disposed on the headset body, and when the two Bluetooth headsets are placed on a user's ear When determining the first Bluetooth headset placed on the user's left ear and the second Bluetooth headset placed on the user's right ear among the two Bluetooth headsets, including:
    当所述两个蓝牙耳机均安放于所述用户耳部时,分别获取两个接触传感器与所述用户耳部之间的接触参数;When the two Bluetooth headsets are placed on the ear of the user, obtaining contact parameters between the two touch sensors and the ear of the user;
    基于所述接触参数,确定所述第一蓝牙耳机和所述第二蓝牙耳机。Based on the contact parameters, the first Bluetooth headset and the second Bluetooth headset are determined.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述接触参数,确定所述第一蓝牙耳机和所述第二蓝牙耳机,包括:The method according to claim 2, wherein determining the first Bluetooth headset and the second Bluetooth headset based on the contact parameter comprises:
    分别将所述接触参数与预存的蓝牙耳机安放于用户左耳的接触参数以及预存的蓝牙耳机安放于用户右耳的接触参数进行比较,获取所述两个蓝牙耳机的安放位置;Comparing the contact parameters with the pre-stored contact parameters of the Bluetooth headset placed in the user's left ear and the pre-stored contact parameters of the Bluetooth headset placed in the user's right ear to obtain the placement positions of the two Bluetooth headsets;
    基于所述两个蓝牙耳机的安放位置,从所述两个蓝牙耳机中确定所述第一蓝牙耳机和所述第二蓝牙耳机。Based on the placement positions of the two Bluetooth headsets, the first Bluetooth headset and the second Bluetooth headset are determined from the two Bluetooth headsets.
  4. 根据权利要求2所述的方法,其特征在于,所述当所述两个蓝牙耳机均安放于用户耳部时,分别获取两个接触传感器与所述用户耳部之间的接触参数,包括:The method according to claim 2, wherein when the two Bluetooth headsets are both placed on a user's ear, obtaining the contact parameters between the two touch sensors and the user's ear respectively comprises:
    当所述两个蓝牙耳机均安放于所述用户耳部时,分别获取所述两个接触传感器与所述用户耳部之间的接触面积;When the two Bluetooth headsets are both placed on the user's ear, obtaining the contact area between the two contact sensors and the user's ear respectively;
    所述基于所述接触参数,确定所述第一蓝牙耳机和所述第二蓝牙耳机,包括:The determining the first Bluetooth headset and the second Bluetooth headset based on the contact parameters includes:
    基于所述接触面积,确定所述第一蓝牙耳机和所述第二蓝牙耳机。Based on the contact area, the first Bluetooth headset and the second Bluetooth headset are determined.
  5. 根据权利要求3所述的方法,其特征在于,所述电子设备预设有所述两个蓝牙耳机分别和所述用户左耳和所述用户右耳之间的对应关系,所述基于所述接触面积,确定所述第一蓝牙耳机和所述第二蓝牙耳机,包括:The method according to claim 3, wherein the electronic device presets correspondences between the two Bluetooth headsets and the user's left ear and the user's right ear, respectively, based on the Determining the contact area of the first Bluetooth headset and the second Bluetooth headset includes:
    判断所述接触面积是否与预设面积一致,其中,所述预设面积为所述两个蓝牙耳机正确安放于所述用户耳部时,所述两个接触传感器与所述用户耳部之间的接触面积;Determining whether the contact area is consistent with a preset area, wherein the preset area is between the two touch sensors and the user's ear when the two Bluetooth headsets are correctly placed on the user's ear Contact area
    当所述接触面积与所述预设面积一致时,确认和所述用户左耳对应的蓝牙耳机为所述第一蓝牙耳机,和所述用户右耳对应的蓝牙耳机为所述第二蓝牙耳机;When the contact area is consistent with the preset area, confirm that the Bluetooth headset corresponding to the user's left ear is the first Bluetooth headset, and the Bluetooth headset corresponding to the user's right ear is the second Bluetooth headset ;
    当所述接触面积与所述预设面积不一致时,确认和所述用户右耳对应的蓝牙耳机为所述第一蓝牙耳机,和所述用户左耳对应的蓝牙耳机为所述第一蓝牙耳机。When the contact area is inconsistent with the preset area, confirm that the Bluetooth headset corresponding to the user's right ear is the first Bluetooth headset, and the Bluetooth headset corresponding to the user's left ear is the first Bluetooth headset .
  6. 根据权利要求2-5任一项所述的方法,其特征在于,所述接触参数包括接触面积、接触点中的一种或几种。The method according to any one of claims 2-5, wherein the contact parameter comprises one or more of a contact area and a contact point.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将所述电子设备的右声道音频信号传输至所述第二蓝牙耳机之后,还包括:The method according to any one of claims 1-6, wherein the transmitting the left channel audio signal of the electronic device to the first Bluetooth headset, and the right channel of the electronic device After the audio signal is transmitted to the second Bluetooth headset, the method further includes:
    分别监测所述第一蓝牙耳机的使用状态和所述第二蓝牙耳机的使用状态;Monitoring the use state of the first Bluetooth headset and the use state of the second Bluetooth headset, respectively;
    当所述第一蓝牙耳机脱离所述用户左耳且所述第二蓝牙耳机安放于所述用户右耳时,将所述电子设备的立体音频信号传输至所述第二蓝牙耳机;Transmitting the stereo audio signal of the electronic device to the second Bluetooth headset when the first Bluetooth headset is detached from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user;
    当所述第一蓝牙耳机安放于所述用户左耳且所述第二蓝牙耳机脱离所述用户右耳时, 将所述电子设备的立体音频信号传输至所述第一蓝牙耳机。When the first Bluetooth headset is placed in the left ear of the user and the second Bluetooth headset is detached from the right ear of the user, the stereo audio signal of the electronic device is transmitted to the first Bluetooth headset.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, further comprising:
    分别监测所述第一蓝牙耳机的运动轨迹和所述第二蓝牙耳机的运动轨迹;Monitoring the movement track of the first Bluetooth headset and the movement track of the second Bluetooth headset, respectively;
    基于所述第一蓝牙耳机的运动轨迹判断所述第一蓝牙耳机是否脱离所述用户左耳;以及Determining whether the first Bluetooth headset is detached from the left ear of the user based on the movement track of the first Bluetooth headset; and
    基于所述第二蓝牙耳机的运动轨迹判断所述第二蓝牙耳机是否脱离所述用户右耳。It is determined whether the second Bluetooth headset is detached from the right ear of the user based on the movement track of the second Bluetooth headset.
  9. 根据权利要求8所述的方法,其特征在于,所述第一蓝牙耳机设置有第一加速度传感器,所述第二蓝牙耳机设置有第二加速度传感器,所述分别监测所述第一蓝牙耳机的运动轨迹和所述第二蓝牙耳机的运动轨迹,包括:The method according to claim 8, wherein the first Bluetooth headset is provided with a first acceleration sensor, the second Bluetooth headset is provided with a second acceleration sensor, and each of the first Bluetooth headset is monitored for The motion track and the motion track of the second Bluetooth headset include:
    监测所述第一加速度传感器检测的所述第一蓝牙耳机的运动轨迹;以及Monitoring a movement track of the first Bluetooth headset detected by the first acceleration sensor; and
    监测所述第二加速度传感器检测的所述第二蓝牙耳机的运动轨迹。Monitor the motion trajectory of the second Bluetooth headset detected by the second acceleration sensor.
  10. 根据权利要求8或9所述的方法,其特征在于,所述方法还包括:The method according to claim 8 or 9, further comprising:
    当所述第一蓝牙耳机脱离所述用户左耳且所述第二蓝牙耳机安放于所述用户右耳时,断开所述电子设备与所述第一蓝牙耳机之间的连接;When the first Bluetooth headset is detached from the left ear of the user and the second Bluetooth headset is placed on the right ear of the user, disconnecting the connection between the electronic device and the first Bluetooth headset;
    当所述第一蓝牙耳机安放于所述用户左耳且所述第二蓝牙耳机脱离所述用户右耳时,断开所述电子设备与所述第二蓝牙耳机之间的连接。When the first Bluetooth headset is placed on the left ear of the user and the second Bluetooth headset is detached from the right ear of the user, the connection between the electronic device and the second Bluetooth headset is disconnected.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述当所述电子设备与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态之前,还包括:The method according to any one of claims 1 to 10, wherein, when the electronic device and two Bluetooth headsets are in a connected state, before obtaining the use states of the two Bluetooth headsets, respectively, further comprising: :
    查看所述电子设备的状态值;View the status value of the electronic device;
    基于所述状态值判断所述电子设备与所述两个蓝牙耳机是否处于连接状态。Whether the electronic device and the two Bluetooth headsets are in a connected state is determined based on the state value.
  12. 根据权利要求1-10任一项所述的方法,其特征在于,所述当所述电子设备与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态之前,还包括:The method according to any one of claims 1 to 10, wherein, when the electronic device and two Bluetooth headsets are in a connected state, before obtaining the use states of the two Bluetooth headsets, respectively, further comprising: :
    所述电子设备监听广播;The electronic device monitors broadcasting;
    根据监听到的广播,确定所述电子设备与所述两个蓝牙耳机是否处于来连接状态。According to the monitored broadcast, it is determined whether the electronic device and the two Bluetooth headsets are in a connected state.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述分别获取所述两个蓝牙耳机的使用状态,包括:The method according to any one of claims 1-12, wherein the acquiring the usage states of the two Bluetooth headsets separately comprises:
    分别检测所述两个蓝牙耳机是否在传输音频数据;Separately detecting whether the two Bluetooth headsets are transmitting audio data;
    将检测到的所述两个蓝牙耳机中在传输音频数据的蓝牙耳机确定为处于使用状态,以及将检测到的所述两个蓝牙耳机中没有在传输音频数据的蓝牙耳机确定为处于非使用状态。Determining that a Bluetooth headset transmitting audio data among the two Bluetooth headsets detected is in a use state, and determining a Bluetooth headset not transmitting audio data among the two detected Bluetooth headsets as a non-use state .
  14. 根据权利要求1-12任一项所述的方法,其特征在于,所述分别获取所述两个蓝牙耳机的使用状态,包括:The method according to any one of claims 1-12, wherein the acquiring the usage states of the two Bluetooth headsets separately comprises:
    分别检测所述两个蓝牙耳机是否安放于所述用户耳部;Separately detecting whether the two Bluetooth headsets are placed on the user's ear;
    将检测到的所述两个蓝牙耳机中安放于所述用户耳部的蓝牙耳机确定为处于使用状态,以及将检测到的所述两个蓝牙耳机中没有安放于所述用户耳部的蓝牙耳机确定为处于非使用状态。Determine that the Bluetooth headset placed in the user's ear among the two detected Bluetooth headsets is in a use state, and determine that the two Bluetooth headsets are not placed in the user's ear Determined to be non-used.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机之后,还包括:The method according to any one of claims 1 to 14, wherein the first Bluetooth headset placed in the left ear of the user and the second Bluetooth headset placed in the right ear of the user are determined among the two Bluetooth earphones. ,Also includes:
    获取所述电子设备中待传输的立体声音频数据;Acquiring stereo audio data to be transmitted in the electronic device;
    对所述立体声音频数据拆分,以获取左声道音频信号和右声道音频信号。The stereo audio data is split to obtain a left channel audio signal and a right channel audio signal.
  16. 一种音频传输装置,其特征在于,应用于电子设备,所述装置包括:An audio transmission device, which is applied to electronic equipment, and the device includes:
    获取模块,用于当所述电子设备分别与两个蓝牙耳机处于连接状态时,分别获取所述两个蓝牙耳机的使用状态;An acquisition module, configured to acquire the use states of the two Bluetooth headsets when the electronic device and the two Bluetooth headsets are connected respectively;
    确定模块,用于当所述两个蓝牙耳机均安放于用户耳部时,确定所述两个蓝牙耳机中安放于用户左耳的第一蓝牙耳机和安放于用户右耳的第二蓝牙耳机;A determining module configured to determine, when the two Bluetooth headsets are both placed on a user's ear, a first Bluetooth headset placed on the user's left ear and a second Bluetooth headset placed on the user's right ear;
    传输模块,用于将所述电子设备的左声道音频信号传输至所述第一蓝牙耳机,以及将 所述电子设备的右声道音频信号传输至所述第二蓝牙耳机。A transmission module, configured to transmit a left channel audio signal of the electronic device to the first Bluetooth headset, and a right channel audio signal of the electronic device to the second Bluetooth headset.
  17. 根据权利要求16所述的装置,其特征在于,所述两个蓝牙耳机均包括耳机本体和设置于耳机本体上的接触传感器,所述确定模块,包括:The device according to claim 16, wherein the two Bluetooth headsets each include a headset body and a contact sensor disposed on the headset body, and the determining module comprises:
    接触参数获取子模块,用于当所述两个蓝牙耳机均安放于所述用户耳部时,分别获取两个接触传感器与所述用户耳部之间的接触参数;A contact parameter acquisition sub-module for acquiring contact parameters between two contact sensors and the user's ear when the two Bluetooth headsets are both placed on the user's ear;
    确定子模块,用于基于所述接触参数,确定所述第一蓝牙耳机和所述第二蓝牙耳机。A determining submodule is configured to determine the first Bluetooth headset and the second Bluetooth headset based on the contact parameters.
  18. 根据权利要求17所述的装置,其特征在于,所述装置还包括:The apparatus according to claim 17, further comprising:
    监测模块,用于分别监测所述第一蓝牙耳机的使用状态和所述第二蓝牙耳机的使用状态。The monitoring module is configured to separately monitor a use state of the first Bluetooth headset and a use state of the second Bluetooth headset.
  19. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    蓝牙模块;Bluetooth module;
    存储器;Memory
    一个或多个处理器,分别与所述蓝牙模块和所述存储器耦接;One or more processors coupled to the Bluetooth module and the memory, respectively;
    一个或多个程序,其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-16任一项所述的方法。One or more programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute a program such as The method according to any one of claims 1-16.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-16任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-16. .
PCT/CN2019/096838 2018-09-30 2019-07-19 Audio transmission method and apparatus, electronic device, and storage medium WO2020063065A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811163040.2A CN109358832A (en) 2018-09-30 2018-09-30 Audio frequency transmission method, device, electronic equipment and storage medium
CN201811163040.2 2018-09-30

Publications (1)

Publication Number Publication Date
WO2020063065A1 true WO2020063065A1 (en) 2020-04-02

Family

ID=65348330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096838 WO2020063065A1 (en) 2018-09-30 2019-07-19 Audio transmission method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN109358832A (en)
WO (1) WO2020063065A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358832A (en) * 2018-09-30 2019-02-19 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN112118031B (en) * 2019-06-20 2021-12-21 傲基科技股份有限公司 Voice interaction device, control method and equipment thereof, and computer storage medium
CN112383864A (en) * 2020-09-29 2021-02-19 江苏清微智能科技有限公司 Wireless earphone data transmission system and method
WO2022141552A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Wireless headphones and audio device
CN115474238A (en) * 2021-06-10 2022-12-13 华为技术有限公司 Data stream transmission method, device, communication device and storage medium
CN117915232B (en) * 2024-03-19 2024-05-28 深圳市科悦多智能电子有限公司 Bluetooth headset automatic audio processing method, terminal equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974158A (en) * 2013-02-04 2014-08-06 联想(北京)有限公司 Audio output device
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN106358127A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Left and right sound channel switching method and mobile terminal
CN106375892A (en) * 2015-07-21 2017-02-01 哈曼国际工业有限公司 Eartip conforming to user's ear canal
CN108549529A (en) * 2018-04-08 2018-09-18 北京小米移动软件有限公司 Control the method and device of audio output
CN109358832A (en) * 2018-09-30 2019-02-19 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316394B (en) * 2010-06-30 2014-09-03 索尼爱立信移动通讯有限公司 Bluetooth equipment and audio playing method using same
CN101951534A (en) * 2010-07-09 2011-01-19 深圳桑菲消费通信有限公司 Method for additionally arranging sensor on earphone to adjust state of mobile terminal
CN106291121B (en) * 2016-07-29 2023-10-13 歌尔股份有限公司 Wearing state detection method of wearable device and wearable device
CN206452511U (en) * 2016-12-21 2017-08-29 潍坊歌尔电子有限公司 A kind of combined earphone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974158A (en) * 2013-02-04 2014-08-06 联想(北京)有限公司 Audio output device
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN106375892A (en) * 2015-07-21 2017-02-01 哈曼国际工业有限公司 Eartip conforming to user's ear canal
CN106358127A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Left and right sound channel switching method and mobile terminal
CN108549529A (en) * 2018-04-08 2018-09-18 北京小米移动软件有限公司 Control the method and device of audio output
CN109358832A (en) * 2018-09-30 2019-02-19 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109358832A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
WO2020063065A1 (en) Audio transmission method and apparatus, electronic device, and storage medium
US11102581B2 (en) Bluetooth earphone connecting method, electronic device and storage medium
WO2020063017A1 (en) Audio transmission method and device, electronic apparatus, and storage medium
EP2839675B1 (en) Auto detection of headphone orientation
WO2020063047A1 (en) Audio playback method and apparatus, electronic device and storage medium
US10506361B1 (en) Immersive sound effects based on tracked position
CN109379490B (en) Audio playing method and device, electronic equipment and computer readable medium
WO2020063046A1 (en) Audio playback method and device, electronic device and storage medium
US11128275B2 (en) Method and system for a headset with integrated environment sensors
US20140057569A1 (en) Synchronized Multichannel Data
US20100197360A1 (en) Earphone device and method using it
US20140270284A1 (en) Characteristic-based communications
CN109271131B (en) Earphone control method and device, electronic equipment and storage medium
WO2020019820A1 (en) Microphone hole blockage detection method and related product
CN105848225B (en) Wireless connection switching method and device in audio frequency broadcast system
CN110650408A (en) Earphone, anti-lost method, anti-lost system and computer readable storage medium
JP3143722U (en) Video-audio player with wireless audio transmission function and wireless audio transmission module
WO2024021736A1 (en) Transmission method, apparatus, and system for bluetooth multimedia packet, and device
KR20170043319A (en) Electronic device and audio ouputting method thereof
WO2020082387A1 (en) Method for changing audio channel, and related device
CN109151669B (en) Earphone control method, earphone control device, electronic equipment and storage medium
WO2022048020A1 (en) Bluetooth speaker control method and system, storage medium, and mobile terminal
CN113038317A (en) Earphone control method and device, Bluetooth earphone and storage medium
WO2020007172A1 (en) Communicational connection establishment method and related device
WO2020063045A1 (en) Headphone unlocking method, device, electronic apparatus, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19865762

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19865762

Country of ref document: EP

Kind code of ref document: A1