WO2020063065A1 - Procédé et appreil de transmission audio, dispositif électronique et support de stockage - Google Patents

Procédé et appreil de transmission audio, dispositif électronique et support de stockage 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
English (en)
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/fr

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

La présente invention relève du domaine technique des dispositifs électroniques. L'invention concerne un procédé et un appareil de transmission audio, un dispositif électronique et un support de stockage. Le procédé est utilisé avec un dispositif électronique, et comprend les étapes suivantes : lorsqu'un dispositif électronique est connecté à deux écouteurs Bluetooth, acquisition des états respectifs d'utilisation des deux écouteurs Bluetooth ; si les deux écouteurs Bluetooth sont placés dans les oreilles de l'utilisateur, détermination entre les deux écouteurs Bluetooth d'un premier écouteur Bluetooth placé dans l'oreille gauche de l'utilisateur et d'un second écouteur Bluetooth placé dans l'oreille droite de l'utilisateur ; transmission d'un signal audio de canal gauche du dispositif électronique au premier écouteur Bluetooth, et transmission d'un signal audio de canal droit du dispositif électronique au second écouteur Bluetooth. Selon le procédé et l'appareil de transmission audio, le dispositif électronique et le support de stockage objet des modes de réalisation de la présente invention, des canaux audio sont respectivement établis entre le dispositif électronique et les écouteurs Bluetooth gauche et droit, et des signaux audio de canal gauche et des signaux audio de canal droit sont respectivement transmis aux écouteurs Bluetooth gauche et droit, de sorte que l'effet d'écoute de la musique et l'expérience de l'utilisateur sont améliorés.
PCT/CN2019/096838 2018-09-30 2019-07-19 Procédé et appreil de transmission audio, dispositif électronique et support de stockage WO2020063065A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811163040.2 2018-09-30
CN201811163040.2A CN109358832A (zh) 2018-09-30 2018-09-30 音频传输方法、装置、电子设备以及存储介质

Publications (1)

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

Family

ID=65348330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096838 WO2020063065A1 (fr) 2018-09-30 2019-07-19 Procédé et appreil de transmission audio, dispositif électronique et support de stockage

Country Status (2)

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

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358832A (zh) * 2018-09-30 2019-02-19 Oppo广东移动通信有限公司 音频传输方法、装置、电子设备以及存储介质
CN112118031B (zh) * 2019-06-20 2021-12-21 傲基科技股份有限公司 语音交互装置及其控制方法、设备和计算机存储介质
CN112383864A (zh) * 2020-09-29 2021-02-19 江苏清微智能科技有限公司 一种无线耳机数据传输系统和方法
CN116711394A (zh) * 2020-12-31 2023-09-05 华为技术有限公司 无线耳机和音频设备
CN115474238A (zh) * 2021-06-10 2022-12-13 华为技术有限公司 数据流传输方法、设备、通信装置及存储介质
CN117915232B (zh) * 2024-03-19 2024-05-28 深圳市科悦多智能电子有限公司 一种蓝牙耳机自动音频处理方法、终端设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974158A (zh) * 2013-02-04 2014-08-06 联想(北京)有限公司 音频输出装置
CN105491469A (zh) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 一种基于耳机佩戴状态控制音频输出模式的方法及系统
CN106358127A (zh) * 2016-09-30 2017-01-25 维沃移动通信有限公司 一种左右声道切换方法和移动终端
CN106375892A (zh) * 2015-07-21 2017-02-01 哈曼国际工业有限公司 贴合使用者的耳道的耳塞套
CN108549529A (zh) * 2018-04-08 2018-09-18 北京小米移动软件有限公司 控制音频输出的方法及装置
CN109358832A (zh) * 2018-09-30 2019-02-19 Oppo广东移动通信有限公司 音频传输方法、装置、电子设备以及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316394B (zh) * 2010-06-30 2014-09-03 索尼爱立信移动通讯有限公司 蓝牙设备和利用该蓝牙设备的音频播放方法
CN101951534A (zh) * 2010-07-09 2011-01-19 深圳桑菲消费通信有限公司 一种在耳机上增设传感器以调节移动终端状态的方法
CN106291121B (zh) * 2016-07-29 2023-10-13 歌尔股份有限公司 一种可穿戴设备的佩戴状态检测方法和可穿戴设备
CN206452511U (zh) * 2016-12-21 2017-08-29 潍坊歌尔电子有限公司 一种组合式耳机

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974158A (zh) * 2013-02-04 2014-08-06 联想(北京)有限公司 音频输出装置
CN105491469A (zh) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 一种基于耳机佩戴状态控制音频输出模式的方法及系统
CN106375892A (zh) * 2015-07-21 2017-02-01 哈曼国际工业有限公司 贴合使用者的耳道的耳塞套
CN106358127A (zh) * 2016-09-30 2017-01-25 维沃移动通信有限公司 一种左右声道切换方法和移动终端
CN108549529A (zh) * 2018-04-08 2018-09-18 北京小米移动软件有限公司 控制音频输出的方法及装置
CN109358832A (zh) * 2018-09-30 2019-02-19 Oppo广东移动通信有限公司 音频传输方法、装置、电子设备以及存储介质

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2020063065A1 (fr) Procédé et appreil de transmission audio, dispositif électronique et support de stockage
US11102581B2 (en) Bluetooth earphone connecting method, electronic device and storage medium
CN109445740B (zh) 音频播放方法、装置、电子设备及存储介质
WO2020063017A1 (fr) Procédé et dispositif de transmission audio, appareil électronique, et support de stockage
US20210399707A1 (en) Method and system for a headset with integrated environmental sensors
CN109445739B (zh) 音频播放方法、装置、电子设备及计算机可读介质
EP2839675B1 (fr) Auto-détection d'orientation de casque d'écoute
US9112991B2 (en) Playing synchronized multichannel media on a combination of devices
US10506361B1 (en) Immersive sound effects based on tracked position
CN110650408B (zh) 一种耳机及防丢方法、系统、计算机可读存储介质
CN109379490B (zh) 音频播放方法、装置、电子设备及计算机可读介质
CN109271131B (zh) 耳机控制方法、装置、电子设备及存储介质
WO2020019820A1 (fr) Procédé de détection d'obstruction de trou de microphone et produit associé
CN105848225B (zh) 音频播放系统中的无线连接切换方法及装置
WO2024021736A1 (fr) Procédé, appareil et système de transmission pour paquet multimédia bluetooth, et dispositif
KR20170043319A (ko) 전자 장치 및 전자 장치의 오디오 출력 방법
JP3143722U (ja) 無線オーディオ伝送機能付きのビデオ−オーディオプレイヤーとその無線オーディオ伝送モジュール
CN109151669B (zh) 耳机控制方法、装置、电子设备以及存储介质
US20240205279A1 (en) Methods and systems for managing simultaneous data streams from multiple sources
WO2020007172A1 (fr) Procédé d'établissement de connexion de communication et dispositif associé
WO2020063045A1 (fr) Procédé de déverrouillage d'écouteur, dispositif, appareil électronique et support de stockage
US20150326969A1 (en) Multimedia playing system and sound channel control method thereof
US20230319454A1 (en) Wireless high-resolution headphones
WO2022048020A1 (fr) Procédé et système de commande de haut-parleur bluetooth, support d'enregistrement et terminal mobile
US11665271B2 (en) Controlling audio output

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