WO2020118641A1 - 一种麦克风mic切换方法及设备 - Google Patents

一种麦克风mic切换方法及设备 Download PDF

Info

Publication number
WO2020118641A1
WO2020118641A1 PCT/CN2018/120977 CN2018120977W WO2020118641A1 WO 2020118641 A1 WO2020118641 A1 WO 2020118641A1 CN 2018120977 W CN2018120977 W CN 2018120977W WO 2020118641 A1 WO2020118641 A1 WO 2020118641A1
Authority
WO
WIPO (PCT)
Prior art keywords
earplug
wireless
mic
mobile phone
electronic device
Prior art date
Application number
PCT/CN2018/120977
Other languages
English (en)
French (fr)
Inventor
郑勇
朱宇洪
王良
张景云
陈志超
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880098498.6A priority Critical patent/CN112806092B/zh
Priority to PCT/CN2018/120977 priority patent/WO2020118641A1/zh
Publication of WO2020118641A1 publication Critical patent/WO2020118641A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the embodiments of the present application relate to the field of electronic technology, and in particular, to a microphone (microphone, MIC) switching method and device.
  • wireless headsets have gained more and more users' favor.
  • TWS wireless stereo
  • Each TWS earplug is equipped with a MIC.
  • the electronic device After the TWS headset establishes a wireless connection with an electronic device such as a mobile phone, the electronic device usually performs voice service processing according to the voice data collected by the MIC on a TWS earplug.
  • Embodiments of the present application provide a microphone MIC switching method and device, which can switch the MIC of an earplug in a TWS headset in real time to provide voice data for voice services of an electronic device, so as to better perform voice service processing.
  • the technical solution of the present application provides a microphone MIC switching method, including: an electronic device establishing a first Bluetooth connection with a first wireless earbud, establishing a second Bluetooth connection with a second wireless earbud, and maintaining the first Bluetooth connection It is connected to the second Bluetooth, and the MIC of the first wireless earplug is on, and the MIC of the second wireless earplug is off.
  • the electronic device sends audio data to the first wireless earbud and the second wireless earbud through the first Bluetooth connection and the second Bluetooth connection, respectively.
  • the electronic device receives the first voice data collected by the MIC of the first wireless earplug and sent by the first wireless earplug through the first Bluetooth connection.
  • the electronic device performs business processing according to the first voice data.
  • the electronic device When the first wireless earplug satisfies the switching condition, the electronic device instructs the second wireless earplug to turn on the MIC so that the MIC of the second wireless earplug is turned on.
  • the electronic device receives the second voice data sent by the second wireless earplug and collected by the MIC of the second wireless earplug.
  • the electronic device performs business processing according to the second voice data.
  • a Bluetooth connection is established between the electronic device and the first wireless earbud and the second wireless earbud, respectively.
  • the electronic device can control the first wireless earbud to turn on the MIC by controlling the second wireless earbud when the first wireless earbud meets the switching condition. Turning off the MIC of the wireless earbud may cause the MIC of the first wireless earbud to provide voice data for the business of the electronic device, and switch to the MIC of the second wireless earbud to provide voice data for the business of the electronic device.
  • an embodiment of the present application provides a microphone MIC switching method, including: an electronic device establishing a first Bluetooth connection with a first wireless earbud, establishing a second Bluetooth connection with a second wireless earbud, and maintaining the first Bluetooth connection Connected to the second Bluetooth, the MIC of the first wireless earbud and the second wireless earbud are both turned on.
  • the electronic device sends audio data to the first wireless earbud and the second wireless earbud through the first Bluetooth connection and the second Bluetooth connection, respectively.
  • the electronic device receives the first voice data collected by the MIC of the first wireless earplug and sent by the first wireless earplug through the first Bluetooth connection.
  • the electronic device receives the second voice data collected by the MIC of the second wireless earplug and sent by the second wireless earplug through the second Bluetooth connection.
  • the electronic device performs business processing according to the first voice data.
  • the electronic device performs service processing according to the second voice data.
  • a Bluetooth connection is established between the electronic device and the first wireless earbud and the second wireless earbud, respectively.
  • the electronic device can control the MIC of the first wireless earbud to be the electronic device when the first wireless earbud meets the switching condition.
  • the service provides voice data, and is switched to provide the voice data for the service of the electronic device by the MIC of the second wireless earbud.
  • the technical method of the present application also provides a microphone MIC switching method, including: the electronic device establishes a first Bluetooth connection with the first wireless earbud, establishes a second Bluetooth connection with the second wireless earbud, and maintains the first Bluetooth Connect to the second Bluetooth connection, the MIC of the first wireless earbud is on, the MIC of the second wireless earbud is off; the first wireless earbud and the second wireless earbud are a pair of wireless earbuds, the first wireless earbud is the main earbud, The second wireless earplug is a secondary earplug.
  • the electronic device sends audio data to the first wireless earbud and the second wireless earbud through the first Bluetooth connection and the second Bluetooth connection, respectively.
  • the electronic device receives the first voice data collected by the MIC of the first wireless earplug and sent by the first wireless earplug through the first Bluetooth connection.
  • the electronic device performs business processing according to the first voice data.
  • the electronic device sends the first information to the second wireless earbud, so that the second wireless earbud switches to the main earbud and turns on the MIC so that the MIC of the second wireless earbud is turned on;
  • the wireless earplug sends the second information, so that the first wireless earplug is switched to the secondary earplug and the MIC is turned off so that the MIC of the first wireless earplug is in a closed state.
  • the electronic device receives the second voice data collected by the MIC of the second wireless earplug and sent by the second wireless earplug through the second Bluetooth connection.
  • the electronic device performs business processing according to the second voice data.
  • a Bluetooth connection is established between the electronic device and the first wireless earbud and the second wireless earbud, respectively, and the electronic device can switch the main wireless earbud to be turned on by controlling the second wireless earbud when the first wireless earbud meets the switching condition.
  • MIC control the first wireless earbud to switch to the secondary earbud and turn off the MIC, so that the MIC of the first wireless earbud can provide voice data for the business of the electronic device, and the MIC of the second wireless earbud can provide voice data for the business of the electronic device .
  • the technical solution of the present application also provides a microphone MIC switching method, including: the electronic device establishes a first Bluetooth connection with the first wireless earbud, establishes a second Bluetooth connection with the second wireless earbud, and maintains the first Bluetooth Connection and second Bluetooth connection, the MIC of the first wireless earbud and the second wireless earbud are both on; the first wireless earbud and the second wireless earbud are a pair of wireless earbuds, the first wireless earbud is the main earbud, the second wireless earbud For the pair of earplugs.
  • the electronic device sends audio data to the first wireless earbud and the second wireless earbud through the first Bluetooth connection and the second Bluetooth connection, respectively.
  • the electronic device receives the first voice data collected by the MIC of the first wireless earplug and sent by the first wireless earplug through the first Bluetooth connection.
  • the electronic device performs business processing according to the first voice data.
  • the electronic device instructs the second wireless earplug to switch to the primary earplug, and instructs the first wireless earplug to switch to the secondary earplug.
  • the electronic device performs business processing according to the second voice data.
  • a Bluetooth connection is established between the electronic device and the first wireless earbud and the second wireless earbud, respectively, the electronic device can switch to the main earbud by controlling the second wireless earbud when the first wireless earbud meets the switching condition, and control Switching the first wireless earbud to the secondary earbud may enable the MIC of the first wireless earbud to provide voice data for the service of the electronic device, and switch to the MIC of the second wireless earbud to provide voice data for the service of the electronic device.
  • the method when the first wireless earbud satisfies the switching condition, the method further includes: the electronic device instructs the first wireless earbud to turn off the MIC so that the MIC of the first wireless earbud is turned off.
  • the MIC of the first wireless earplug may be turned off to reduce the power consumption of the first wireless earplug.
  • the first wireless earplug meeting the switching condition includes: the first wireless earplug comes out of the ear; or, the first wireless earplug comes out of the ear, and the second wireless earplug comes out of the ear; or, the first wireless earplug comes out of the ear and out
  • the ear time is greater than or equal to the first preset value, and the second wireless earplug is in the ear state.
  • the first wireless earbud when the first wireless earbud satisfies the switching condition here, the first wireless earbud is not in the ear and may not provide voice data for the business of the electronic device normally, so it can be switched to the MIC of the second wireless earbud as The business of electronic equipment provides voice data.
  • the first wireless earplug meeting the switching condition includes: the first wireless earplug disconnects from the electronic device, and the second wireless earplug maintains a Bluetooth connection with the electronic device.
  • the first wireless earbud when the first wireless earbud is disconnected from the electronic device, the first wireless earbud cannot normally provide voice data for the business of the electronic device, and thus can be switched to the business of the electronic device by the MIC of the second wireless earbud Provide voice data.
  • the first wireless earplug meeting the switching condition includes: the power of the first wireless earplug is less than the second preset value; or, the power of the first wireless earplug is less than the power of the second wireless earplug; wherein, the first The power of a wireless earbud is learned through a first Bluetooth connection, and the power of a second wireless earbud is learned through a second Bluetooth connection.
  • the first wireless earbud when the first wireless earbud satisfies the switching conditions here, the first wireless earbud has a low power and may not be able to provide voice data for the business of the electronic device normally, so it can be switched to the MIC of the second wireless earbud Provide voice data for the business of electronic devices.
  • the first wireless earbud and the second wireless earbud when there is a wireless connection between the first wireless earbud and the second wireless earbud, they can exchange information such as the power status and whether the ear comes out through the Bluetooth headset.
  • the technical solution of the present application provides a microphone MIC switching method, including: an electronic device establishing a first Bluetooth connection with a first wireless earbud, establishing a second Bluetooth connection with a second wireless earbud, and maintaining the first Bluetooth connection Connect with the second Bluetooth.
  • the electronic device sends audio data to the first wireless earbud and the second wireless earbud through the first Bluetooth connection and the second Bluetooth connection, respectively.
  • the electronic device receives the first voice data collected by the MIC of the first wireless earplug and sent by the first wireless earplug through the first Bluetooth connection.
  • the electronic device performs business processing according to the first voice data. When the first wireless earplug meets the switching condition, the electronic device performs service processing according to the second voice data collected by the MIC of the second wireless earplug.
  • a Bluetooth connection is established between the electronic device and the first wireless earbud and the second wireless earbud, respectively.
  • the electronic device can control the MIC of the first wireless earbud to be the electronic device when the first wireless earbud meets the switching condition.
  • the service provides voice data, and is switched to provide the voice data for the service of the electronic device by the MIC of the second wireless earbud.
  • the first wireless earbud before the electronic device performs service processing according to the second voice data collected by the MIC of the second wireless earbud, the first wireless earbud is the primary earbud, and the second wireless earbud is the secondary earbud.
  • the electronic device receives the first voice data collected by the first wireless earbud and the MIC of the first wireless earbud through the first Bluetooth connection, including: the electronic device receives the first wireless earbud and the MIC of the first wireless earbud sent through the first Bluetooth connection The first collected voice data.
  • the electronic device performs service processing according to the second voice data collected by the MIC of the second wireless earbud, including: the electronic device instructs the first wireless earbud to switch to the secondary earbud, and instructs the second wireless earbud to switch to the primary earbud;
  • the second voice data collected by the MIC of the main earplug is processed for service.
  • the electronic device before the electronic device performs service processing according to the second voice data collected by the MIC of the second wireless earbud, the MIC of the first wireless earbud is in the on state, and the MIC of the second wireless earbud is in the off state .
  • the electronic device performs service processing according to the second voice data collected by the MIC of the second wireless earbud, including: the electronic device instructs the second wireless earbud to turn on the MIC; the electronic device receives the second wireless earbud sent by the second wireless earbud through the second Bluetooth connection.
  • the second voice data collected by the MIC of the earplug the electronic device performs service processing according to the second voice data.
  • the electronic device before the electronic device performs service processing according to the second voice data collected by the MIC of the second wireless earbud, the MIC of the first wireless earbud and the second wireless earbud are both on, and the electronic device Receive the second voice data collected by the MIC of the second wireless earplug and sent by the second wireless earplug through the second Bluetooth connection.
  • the method further includes: the electronic device stops performing service processing according to the first voice data.
  • the method when the first wireless earbud meets the switching condition, the method further includes: the electronic device instructs the first wireless earbud to turn off the MIC.
  • the first wireless earplug meeting the switching condition includes: the first wireless earplug comes out of the ear; or, the first wireless earplug comes out of the ear, and the second wireless earplug comes out of the ear; or, the first wireless earplug comes out of the ear And the ear-out time is greater than or equal to the first preset value, and the second wireless earplug is inserted into the ear.
  • the first wireless earplug meeting the switching condition includes: the first wireless earplug disconnects from the electronic device, and the second wireless earplug maintains a Bluetooth connection with the electronic device.
  • the first wireless earplug meeting the switching condition includes: the power of the first wireless earplug is less than the second preset value; or, the power of the first wireless earplug is less than the power of the second wireless earplug; wherein, the first The power of a wireless earbud is learned through a first Bluetooth connection, and the power of a second wireless earbud is learned through a second Bluetooth connection.
  • the technical solution of the present application provides a MIC switching device, which is included in an electronic device, and the device has a function of implementing the behavior of the electronic device in any of the methods of the first to fifth possible implementations .
  • the function can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, a connection module or unit, a MIC switching module or unit, a determination module or unit, etc.
  • the technical solution of the present application provides an electronic device, including one or more processors and one or more memories.
  • the one or more memories are coupled to one or more processors.
  • the one or more memories are used to store computer program code.
  • the computer program codes include computer instructions.
  • the one or more processors execute the computer instructions, the electronic device is executed.
  • the MIC switching method in any possible implementation of the first aspect to the fifth aspect above.
  • the technical solution of the present application provides a computer storage medium, including computer instructions, which, when the computer instructions run on an electronic device, cause the electronic device to perform any of the possible implementations of the first to fifth aspects above MIC switching method.
  • the technical solution of the present application provides a computer program product that, when the computer program product runs on a computer, causes an electronic device to perform the MIC switching method in any possible implementation of the first aspect to the fifth aspect.
  • the technical solution of the present application provides a system, which may include the electronic device, the first wireless earplug, and the second wireless earplug in any possible implementation manner of the first aspect or the second aspect above.
  • the electronic device, the first wireless earplug, and the second wireless earplug may perform the MIC switching method in any possible implementation of the first aspect to the fifth aspect described above.
  • the first wireless earplug and the second wireless earplug are a pair of wireless earplugs.
  • FIG. 1 is a schematic diagram of a system provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application.
  • FIG. 3A is a schematic structural diagram of an earplug provided by an embodiment of the present application.
  • 3B is a schematic diagram of an earplug and a headphone case provided by an embodiment of the present application.
  • 3C is a schematic diagram of an earplug provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a dual-sender connection provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a MIC switching method provided by an embodiment of this application.
  • FIG. 6 is a schematic diagram of a set of scenarios provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another set of scenarios provided by an embodiment of the present application.
  • FIG. 10 is a flowchart of another MIC switching method provided by an embodiment of the present application.
  • 11A is a schematic diagram of a scenario provided by an embodiment of the present application.
  • 11B is a schematic diagram of another scenario provided by an embodiment of the present application.
  • FIG. 13 is a flowchart of another MIC switching method provided by an embodiment of the present application.
  • 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the pairing connection method provided in the embodiment of the present application may be applied to a system composed of an electronic device 01 and at least one external device 02.
  • the electronic device 01 and the external device 02 are connected wirelessly.
  • the wireless method may be Bluetooth (bluetooth, BT), wireless fidelity (wireless fidelity, Wi-Fi) network, global navigation satellite system (global navigation satellite system (GNSS), frequency modulation (frequency modulation (FM), close range Wireless communication technology (near field communication, NFC), infrared technology (infrared, IR) and other connections.
  • the electronic device 01 may be a mobile phone, a media player (such as MP3, MP4, etc.) tablet computer, notebook computer, ultra-mobile personal computer (UMPC), personal digital assistant (personal digital assistant, PDA), TV and other equipment.
  • the external device 02 may be a wireless headset, a wireless speaker, a wireless bracelet, a wireless vehicle, a wireless smart glasses, an augmented reality (AR) ⁇ virtual reality (VR) device, etc. No restrictions.
  • the wireless earphone may be a headphone, an earplug, or other portable listening devices.
  • the external device 02 may include a paired first body 021 and a second body 022.
  • the first body 021 and the second body 022 cooperate with each other and work together.
  • the external device 02 may be an earplug TWS earphone.
  • the TWS earphone may include a paired left earplug (usually marked with "L") and right earplug (usually marked with "R”).
  • the left earplug and right earplug are used for For stereo playback, the left earplug can be used to play the left channel signal of audio data, and the right earplug can be used to synchronously play the right channel signal of the audio data.
  • the external device 02 may be a wireless speaker
  • the wireless speaker may include a pair of left channel speakers and right channel speakers, the left earplugs and right earplugs are used for stereo playback, and the left channel speakers may be used to play left audio data.
  • Channel signal, the right channel speaker can be used to play the right channel signal of the audio data synchronously.
  • the electronic device 01 uses a mobile phone as an example
  • the external device 02 uses a TWS headset as an example
  • the first body 021 and the second body 022 use left and right earplugs as examples.
  • the electronic device 01 and the external device 02 in the system may also be other devices, which are not limited in this embodiment of the present application.
  • FIG. 2 shows a schematic structural diagram of the mobile phone 100.
  • the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, key 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100.
  • the mobile phone 100 may include more or fewer components than shown, or combine some components, or split some components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), and an image signal processor (image)signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • application processor application processor
  • AP application processor
  • modem processor graphics processor
  • GPU graphics processor
  • ISP image signal processor
  • controller memory
  • video codec video codec
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile phone 100.
  • the controller can generate the operation control signal according to the instruction operation code and the timing signal to complete the control of fetching instructions and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Avoid repeated access, reduce the waiting time of the processor 110, thus improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • Interfaces can include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit, sound, I2S) interface, pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver (universal asynchronous) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and And/or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may respectively couple the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the mobile phone 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to achieve functions such as answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to realize the function of answering the phone call through the Bluetooth headset. Both I2S interface and PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193.
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI) and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the mobile phone 100.
  • the processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the mobile phone 100.
  • the GPIO interface can be configured via software.
  • the GPIO interface can be configured as a control signal or a data signal.
  • the GPIO interface may be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface and so on.
  • the USB interface 130 is an interface that conforms to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and an external device. It can also be used to connect headphones and play audio through the headphones.
  • the interface can also be used to connect other mobile phones, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic description, and does not constitute a limitation on the structure of the mobile phone 100.
  • the mobile phone 100 may also use different interface connection methods in the foregoing embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the mobile phone 100. While the charging management module 140 charges the battery 142, it can also supply power to the mobile phone through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the mobile phone 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1 and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it to electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area network (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellite systems that are applied to the mobile phone 100 (global navigation system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters electromagnetic wave signals, and transmits the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it to electromagnetic wave radiation through the antenna 2.
  • the mobile phone 100 may use the wireless communication module 160 to establish a wireless connection with an external device through a wireless communication technology (such as Bluetooth). Based on the established wireless connection, the mobile phone can exchange audio data and control data with external devices.
  • the audio data may include media data, voice data, and so on.
  • the mobile phone 100 can receive user's voice data collected by an external device TWS headset.
  • the mobile phone 100 may also send music media data to an external device, so that the external device sends music for playback.
  • the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • Wireless communication technology may include global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband code division Multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long-term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband code division Multiple access
  • WCDMA wideband code division multiple access
  • TD-SCDMA time division code division multiple access
  • long-term evolution long term evolution
  • LTE long term evolution
  • GNSS can include global positioning system (GPS), global navigation satellite system (global navigation system (GLONASS), Beidou satellite navigation system (beidou navigation, satellite system, BDS), quasi-zenith satellite system (quasi-zenith satellite system (QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou satellite navigation system beidou navigation, satellite system, BDS
  • quasi-zenith satellite system quasi-zenith satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the mobile phone 100 realizes a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel may use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (active-matrix organic light) emitting diode, AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the mobile phone 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP processes the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, which is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be set in the camera 193.
  • the camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the mobile phone 100 is selected at a frequency point, the digital signal processor is used to perform Fourier transform on the energy at the frequency point.
  • Video codec is used to compress or decompress digital video.
  • the mobile phone 100 may support one or more video codecs. In this way, the mobile phone 100 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • moving picture experts group moving picture experts, MPEG
  • MPEG2 moving picture experts, MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent recognition of the mobile phone 100, such as image recognition, face recognition, voice recognition, and text understanding.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the mobile phone 100.
  • the processor 110 may establish a wireless pairing connection with two main bodies of an external device through the wireless communication module 160 by executing instructions stored in the internal memory 121, and perform Short-distance data exchange to realize voice calls and music playback through external devices.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.).
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100 and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • the mobile phone 100 may use wireless communication technology (such as Bluetooth) to establish a wireless connection between the two main bodies of the external device. After the wireless connection is established, the mobile phone 100 can store the Bluetooth address of the external device in the internal memory 121.
  • the external device is a device that includes two main bodies, such as a TWS headset
  • the left and right earbuds of the TWS headset have respective Bluetooth addresses
  • the mobile phone 100 may store the Bluetooth addresses of the left and right earbuds of the TWS headset in-house.
  • the left and right earplugs of the TWS earphone are used as a pair of devices.
  • the mobile phone 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the mobile phone 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also known as "handset" is used to convert audio electrical signals into sound signals.
  • the voice can be received by holding the receiver 170B close to the ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a person's mouth, and input a sound signal to the microphone 170C.
  • the mobile phone 100 may be provided with at least one microphone 170C. In other embodiments, the mobile phone 100 may be provided with two microphones 170C. In addition to collecting sound signals, it may also achieve a noise reduction function. In other embodiments, the mobile phone 100 may also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the headset interface 170D is used to connect wired headsets.
  • the earphone interface 170D may be a USB interface 130 or a 3.5mm open mobile terminal (OMTP) standard interface, and the American Telecommunications Industry Association (cellular telecommunications industry association of the United States, CTIA) standard interface.
  • OMTP open mobile terminal
  • CTIA American Telecommunications Industry Association
  • the TWS headset when the mobile phone 100 establishes a wireless connection with an external device, such as a TWS headset, the TWS headset can be used as an audio input/output device of the mobile phone 100.
  • the audio module 170 may receive the audio electrical signal transmitted by the wireless communication module 160 to realize functions such as making a call, video calling, and playing music through a TWS headset.
  • the TWS headset can collect the user's voice data through an earplug microphone, convert it into an audio electrical signal, and send it to the wireless communication module 160 of the mobile phone 100, thereby providing voice data for the phone service.
  • the mobile phone can switch to the microphone of the other earplug to provide voice data for the telephone service.
  • the wireless communication module 160 transmits the audio electrical signal to the audio module 170.
  • the audio module 170 can convert the received audio electrical signal into a digital audio signal, encode it, and pass it to the mobile communication module 150.
  • the mobile communication module 150 transmits to the call peer device to realize the call.
  • the application processor may transmit the audio electrical signal corresponding to the music played by the media player to the audio module 170.
  • the audio electrical signal is transmitted to the wireless communication module 160 by the audio module 170.
  • the wireless communication module 160 may send the audio electrical signal to the TWS headset, so that the TWS headset converts the audio electrical signal into a sound signal and plays it.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may be at least two parallel plates with conductive materials. When force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The mobile phone 100 determines the strength of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 194, the mobile phone 100 detects the intensity of the touch operation according to the pressure sensor 180A. The mobile phone 100 may calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the mobile phone 100.
  • the angular velocity of the mobile phone 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the mobile phone 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shaking of the mobile phone 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the mobile phone 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile phone 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the mobile phone 100 when the mobile phone 100 is a clamshell machine, the mobile phone 100 can detect the opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of a mobile phone, and be used in horizontal and vertical screen switching, pedometer and other applications.
  • the distance sensor 180F is used to measure the distance.
  • the mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting scenes, the mobile phone 100 may use the distance sensor 180F to measure distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the mobile phone 100 emits infrared light outward through a light emitting diode.
  • the mobile phone 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100.
  • the mobile phone 100 can use the proximity light sensor 180G to detect that the user is holding the mobile phone 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense the brightness of ambient light.
  • the mobile phone 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile phone 100 can use the collected fingerprint characteristics to unlock a fingerprint, access an application lock, take a photo with a fingerprint, and answer a call with a fingerprint.
  • the temperature sensor 180J is used to detect the temperature.
  • the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 performs to reduce the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature. In some other embodiments, when the temperature is below another threshold, the mobile phone 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K may be provided on the display screen 194, and the touch sensor 180K and the display screen 194 constitute a touch screen, also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation may be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the mobile phone 100, which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive a blood pressure beating signal.
  • the bone conduction sensor 180M may also be provided in the earphone and combined into a bone conduction earphone.
  • the audio module 170 may parse out voice data based on the vibration signals of the vibrating bones of the voice part acquired by the bone conduction sensor 180M to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the key 190 includes a power-on key, a volume key, and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the mobile phone 100 can receive key input and generate key signal input related to user settings and function control of the mobile phone 100.
  • the motor 191 may generate a vibration prompt.
  • the motor 191 can be used for vibration notification of incoming calls and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate a charging state, a power change, and may also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the mobile phone 100.
  • the mobile phone 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the mobile phone 100 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the mobile phone 100 uses eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
  • FIG. 3A shows a schematic structural diagram of one of the main bodies of a TWS earphone, namely, an earplug (left earplug or right earplug).
  • the earplugs of the TWS earphone may include: a processor 301, a memory 302, a sensor 303, a wireless communication module 304, a receiver 305, a microphone 306, and a power supply 307.
  • the memory 302 may be used to store application code, such as an application code for establishing a wireless connection with another earbud of the TWS earphone and pairing the earbud with the electronic device 01.
  • the processor 301 can control and execute the above application program code to implement the function of the earplug of the TWS earphone in the embodiment of the present application. For example, the wireless pairing connection between each earplug of the TWS earphone and the electronic device 01 is realized.
  • the memory 302 may also store a Bluetooth address for uniquely identifying the earbud, and a Bluetooth address of another earbud where the TWS headset is stored.
  • the memory 302 may also store the pairing history of the electronic device 01 that has successfully paired with the earbud before.
  • the pairing history may include the Bluetooth address of the electronic device 01 that has successfully paired with the earbud. Based on the pairing history, the earplug can be automatically connected back to the paired giant electronic device 01.
  • the aforementioned Bluetooth address may be a media access control (media access control, MAC) address.
  • the sensor 303 may be a distance sensor or a proximity light sensor.
  • the earplug can determine whether the earphone is worn by the user through the sensor 303.
  • the earplug may use a proximity light sensor to detect whether there is an object near the earplug, thereby determining whether the earplug is worn by the user.
  • the earplug may open the receiver 305.
  • the earplug may also include a bone conduction sensor, combined with a bone conduction earphone. Using the bone conduction sensor, the earplug can obtain the vibration signal of the vibrating bone mass of the voice part, analyze the voice data, and realize the voice function.
  • the earplug may further include a touch sensor for detecting the user's touch operation.
  • the earplug may further include a fingerprint sensor, which is used to detect a user's fingerprint and identify the user's identity.
  • the earplug may further include an ambient light sensor, which may adaptively adjust some parameters, such as volume, according to the perceived brightness of the ambient light.
  • the wireless communication module 304 is used to support short-distance data exchange between the earplug of the TWS earphone and various electronic devices 01, such as the electronic device 01 described above.
  • the wireless communication module 304 may be a Bluetooth transceiver.
  • the earplugs of the TWS headset can establish a wireless connection with the electronic device 01 through the Bluetooth transceiver to achieve short-range data exchange between the two.
  • At least one receiver 305 which may also be referred to as an "earpiece”, may be used to convert audio electrical signals into sound signals and play them.
  • the receiver 305 can convert the received audio electrical signal into a sound signal and play it.
  • At least one microphone 306 which may also be referred to as a "microphone” or a “microphone,” is used to convert sound signals into audio electrical signals.
  • the microphone 306 can collect the user's voice data and convert it into an audio electrical signal during the user's speech (such as talking or sending a voice message) , Provided to the electronic device 01 for voice service processing.
  • the above audio electrical signal is the audio data in the embodiment of the present application.
  • the earplug can stop providing voice data to the voice service of the electronic device 01 according to the instruction of the electronic device 01.
  • the earplug may provide voice data for the voice service of the electronic device through the microphone 306 according to the instruction of the electronic device 01.
  • the power supply 307 can be used to supply power to various components included in the earplugs of the TWS earphone.
  • the power source 307 may be a battery, such as a rechargeable battery.
  • TWS earphones will be equipped with a headphone box (eg, 023 shown in FIG. 3B).
  • the earphone box can be used to store the left and right earplugs of TWS earphones.
  • the earphone box 023 can be used to store the left earplug 022 and the right earplug 021 of the TWS earphone.
  • the headset box 023 may be provided with at least one touch control 024, which may be used to trigger the pairing of the TWS headset with the new electronic device 01, or trigger the re-pairing between the two earplugs of the TWS headset, etc. .
  • the earphone box 023 may also be provided with a charging port 025 for charging the earphone box itself. It can be understood that the earphone box 023 may also include other controls, which will not be described here one by one. In addition, the earphone box 023 can also charge the left and right earplugs of the TWS earphone. Correspondingly, in some embodiments, the earplugs of the TWS earphone may further include: an input/output interface 308.
  • the input/output interface 308 may be used to provide any wired connection between the earplug of the TWS earphone and the earphone box (such as the earphone box 023 described above).
  • the input/output interface 308 may be an electrical connector.
  • the earplug of the TWS earphone When the earplug of the TWS earphone is placed in the earphone box, the earplug of the TWS earphone can be electrically connected to the earphone box (such as the input/output interface included in the earphone box) through the electrical connector. After the electrical connection is established, the earphone box can charge the power supply 307 of the earplug of the TWS earphone.
  • the earplugs of the TWS headset can also communicate with the headset box.
  • the earplugs of a TWS headset can receive pairing instructions from the headset box through this electrical connection.
  • the pairing command is used to instruct the earbuds of the TWS headset to turn on the wireless communication module 304, so that the earbuds of the TWS headset can use the corresponding wireless communication protocol (such as Bluetooth) to pair with the electronic device 01.
  • the earplugs of the aforementioned TWS earphones may not include the input/output interface 308.
  • the earplugs can realize charging or data communication functions based on the wireless connection established with the earphone box through the wireless communication module 304 described above.
  • the earphone box may further include a processor, a memory, and other components.
  • the memory can be used to store application program code, and is controlled and executed by the processor of the earphone box to realize the function of the earphone box.
  • the processor of the earphone box can send a pairing command to the earplug of the TWS headset in response to the user's operation of opening the lid by executing the application code stored in the memory.
  • the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the earplugs of the TWS earphone. It may have more or fewer components than shown in FIG. 3A, may combine two or more components, or may have different component configurations.
  • the earplug may further include an indicator light 309 (which can indicate the status of the earplug's power level, etc.), a display screen 310 (which can prompt the user of relevant information), a dust filter (which can be used with the earpiece), a motor, and other components.
  • the various components shown in FIG. 3A may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing or application specific integrated circuits.
  • FIG. 3C provides a schematic structural diagram of a right earplug 021, which may include a receiver 305, a microphone 306, an input/output interface 308, an indicator 309, a display screen 310, a touch key 311, a proximity light sensor 312, and the like.
  • the touch key 311 is used in conjunction with the touch sensor to trigger operations such as pause, play, record, turn on the microphone, and turn off the microphone.
  • the structure of the left and right earplugs of the TWS earphones can be the same.
  • the left and right earplugs of a TWS earphone may include the components shown in FIG. 3A.
  • the structure of the left and right earplugs of the TWS earphone may also be different.
  • one earplug (such as the right earplug) of the TWS earphone may include the components shown in FIG. 3A
  • the other earplug (such as the left earplug) may include other components other than the microphone 306 in FIG. 3A.
  • FIGS. 3A, 3B, and 3C are only exemplary descriptions, and are not intended to limit the structure or function of the TWS earphone and earphone box.
  • the following embodiments of the present application will use a mobile phone as an electronic device 01, a TWS headset as an external device 02, and a Bluetooth connection between the mobile phone 01 and the TWS headset 02 as an example to describe the MIC switching method provided in the embodiments of the present application.
  • the Bluetooth connection scheme between the TWS headset and the mobile phone mainly includes a monitoring scheme, a forwarding scheme, a near field magnetic induction (NFMI) scheme, and a dual transmission scheme (or dual connection scheme).
  • NFMI near field magnetic induction
  • the TWS headset may include a main earbud and a secondary earbud
  • the mobile phone establishes a Bluetooth connection with the main earbud, completes the transmission of audio data to the main earbud, and completes the business actions triggered by the mobile phone and the TWS headset (for example, play, pause , Switch to the previous track, switch to the next track, etc.); there is a Bluetooth connection between the two earbuds to complete the information synchronization between the two earbuds; the secondary earbuds obtain audio data by monitoring the Bluetooth link between the main earbuds and the mobile phone .
  • the TWS headset can include a main earbud and a secondary earbud, establish a Bluetooth connection between the mobile phone and the main earbud, complete the transmission of audio data to the main earbud, and complete the business action triggered by the mobile phone and the TWS headset; establish between the two earbuds There is a Bluetooth connection to complete the information synchronization between the dual earbuds, and the main earbuds forward audio data to the secondary earbuds through the Bluetooth link with the secondary earbuds.
  • the TWS headset can include a main earbud and a secondary earbud.
  • a Bluetooth connection is established between the mobile phone and the main earbud to complete the transmission of audio data to the main earbud and to complete the business action triggered by the mobile phone and the TWS headset.
  • the main earbuds forward audio data to the secondary earbuds through the NFMI link with the secondary earbuds.
  • the mobile phone establishes a Bluetooth connection with the two earplugs of TWS, respectively, so as to exchange audio data and service control data through the Bluetooth link between the two earplugs of TWS, respectively, to achieve audio data playback And business action control.
  • the wireless connection between the two earplugs of TWS can be maintained or disconnected.
  • the TWS headset can exchange audio data through a Bluetooth dual-transmission connection with the mobile phone, and the audio data can include media data and voice data.
  • the TWS headset can play media data such as music, recordings, and sounds in video files for users; in phone, audio call, and video call scenarios, it can play call reminders, play the voice data of the opposite end of the call, and collect the user's voice Data is sent to the mobile phone; in the game scene, you can play background music, game prompt sound, game teammates' voice data, etc., and collect the user's voice data to the mobile phone; in the WeChat voice message scene, you can play the voice message and collect the user The recorded voice data is sent to the mobile phone; in scenarios such as voice assistants, the user's voice data can be collected and sent to the mobile phone.
  • the left earplug and the right earplug of the TWS earphone are provided with a MIC, which can be used to collect the user's voice data in the voice service and send it to the mobile phone for voice service processing.
  • a MIC can be used to collect the user's voice data in the voice service and send it to the mobile phone for voice service processing.
  • voice services such as telephone services, WeChat audio and video chat services, and WeChat voice messaging services
  • the MIC on the earbuds can be used to collect the user's voice data and send it to the peer after processing through the mobile phone; it can also be used to collect The user instructs to make/connect phone calls, connect audio and video calls, and other voice commands, and send them to the mobile phone.
  • the MIC on the earbuds can be used to collect the user's voice command and send it to the mobile phone, such as instructing to open an APP, instructing to start playing music, instructing to play the next music , Instructs to pause playing music, etc.
  • the MIC on the earbuds can be used to collect the user's voice data and send it to the game teammates through the mobile phone.
  • the voice service may also include other service scenarios, which is not limited in the embodiments of the present application.
  • the mobile phone In order to reduce the power consumption, resources, and duty ratio of the mobile phone, the mobile phone usually only uses the voice data sent by the MIC of a TWS earplug for voice service processing.
  • the method may include:
  • the mobile phone establishes a Bluetooth connection with each TWS earbud, and maintains the two Bluetooth connections at the same time.
  • the TWS earphone may include a first earplug and a second earplug, and the mobile phone may establish a first Bluetooth connection with the first earplug and a second Bluetooth connection between the mobile phone and the second earplug, while maintaining these two Bluetooth connections. That is, a two-shot connection is established between the mobile phone and the TWS headset. After the dual-socket connection is established, the mobile phone can send audio data to the first earplug through the first Bluetooth connection, and send audio data to the second earplug through the second Bluetooth connection, and enable the first earplug and the second earplug to play audio data simultaneously.
  • the mobile phone starts the telephone service.
  • the mobile phone can first establish a dual-sender connection with the TWS headset, and then the mobile phone can start a telephone service (such as making or receiving a call) to use the TWS headset to make and receive calls.
  • a telephone service such as making or receiving a call
  • the user can use the TWS headset to make and receive calls.
  • the first earplug can receive the voice data of the opposite end of the phone sent by the mobile phone through the first Bluetooth connection
  • the second earplug can receive the voice data of the opposite end of the phone sent by the mobile phone through the second Bluetooth connection.
  • the second earplug can receive the voice data of the opposite end of the phone.
  • the MIC of the TWS headset can also collect the voice data of the local user and send it to the mobile phone. The mobile phone processes the user's voice data and sends it to the peer.
  • the mobile phone can start the telephone service first, and use other methods such as a receiver to make and receive calls; after the mobile phone establishes a dual-sender connection with the TWS headset, the mobile phone switches to making a call via the TWS headset.
  • the mobile phone in the telephone service scenario shown in (c) of FIG. 6, the user uses the handset to answer the call; the user can also click the control 601 to switch the answering mode; when the user clicks on (d) shown in FIG. 6
  • the control 602 selects the TWS headset mode to answer, the mobile phone can establish a dual-issue connection with the TWS headset, and then refer to (b) in FIG. 6, and the user can use the TWS headset to make a call.
  • the mobile phone receives the voice data collected by the MIC of the first earplug.
  • the mobile phone After the mobile phone establishes a two-shot connection with the TWS headset and starts the phone service, the mobile phone can determine a target earplug (left earplug or right earplug) according to the preset policy, and then receive the target earplug transmission through the Bluetooth connection with the target earplug The voice data collected by the MIC of the target earbud.
  • a target earplug left earplug or right earplug
  • the right earplug of the TWS earphone is the target earplug, and the earplug can report the identifier to the mobile phone to indicate whether it is the left earplug or the right earplug.
  • the mobile phone determines the earplug that identifies itself as the right earplug as the target earplug according to the identifier.
  • the earplugs first taken out of the earphone box are the target earplugs.
  • the mobile phone can be notified, and the mobile phone determines that the earplug that first receives the outbox notification is the target earplug.
  • the TWS earphones placed in the earphone box maintain contact or electrical connection with the earphone box; when the earplug is taken out of the earphone box, the earplug and the earphone box are separated.
  • the earplug that is ear-plugged first is the target earplug.
  • the earplug can determine whether the ear is inserted through the proximity light sensor, the ambient light sensor, or the distance sensor; if the earplug is determined, the earplug sends an earplug notification to the mobile phone to indicate that the earplug has entered the ear, and the mobile phone can determine the earplug that first sends the earplug notification as the target earplug.
  • the user may indicate whether the target earplug is a left earplug or a right earplug.
  • two earplugs can be displayed on the display of the mobile phone, and the user can select one as the target earplug; for example, the user can indicate one of the earplugs as the target earplug through the MIC of the mobile phone or through the MIC voice of the earplug; and for example, if one The earplug detects the user's touch operation on its first control, and then reports the operation to the mobile phone, and the mobile phone determines that the earplug is the target earplug.
  • the earplug that first establishes a connection with the mobile phone may be the target earplug.
  • the mobile phone may obtain the power of the first earplug through the first Bluetooth connection and the power of the second earplug through the second Bluetooth connection, thereby determining that the earplug with the larger power in the TWS earphone is the target earplug.
  • the earplug with high channel quality of the Bluetooth link between the TWS headset and the mobile phone is the target earplug.
  • the mobile phone may receive the voice data collected by the MIC of the first earplug sent by the first earplug through the first Bluetooth connection with the first earplug.
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the first earplug.
  • the mobile phone After receiving the voice data collected by the MIC of the first earplug, the mobile phone can perform telephone service processing according to the voice data.
  • the voice data is encoded, compressed, and processed, and sent to the peer device.
  • the method may further include:
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the mobile phone When the mobile phone performs telephone service processing according to the voice data collected by the MIC of the first earplug, if the first earplug meets the switching condition, it may indicate that the first earplug has a problem, and the MIC of the first earplug may not be the phone service of the mobile phone normally Provide voice data.
  • the mobile phone can be switched to provide voice data for the telephone service through the MIC of the second earplug, so as to perform telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the switching conditions please refer to the description in the following embodiments.
  • the mobile phone can determine and record whether the MIC of the first earplug and the second earplug is turned on or off. In addition, the mobile phone may be notified when the on/off state of the MIC of the first earplug and the second earplug changes, and the mobile phone may record the changed on/off state of the MIC of the first earplug and the second earplug.
  • the MIC switching process described in case 1 below is performed; if the first earplug Both the MIC of the second earplug and the second earplug are turned on, the MIC switching process described in the following case 2 is executed.
  • Case 1 When the mobile phone performs telephone service processing according to the voice data collected by the MIC of the first earplug, the MIC of the second earplug is turned off.
  • the MIC of the first earplug and the MIC of the second earplug can be turned on by default, and the mobile phone can instruct to turn off the MIC of the second earplug and maintain the MIC of the first earplug In the on state, the MIC using the first earplug provides voice data for the telephone service.
  • the mobile phone may indicate that one of the earplugs is the first earplug, and the MIC of the first earplug is turned on; the mobile phone may indicate that the other earplug is the second earplug, and the second earplug automatically turns off the MIC.
  • the mobile phone can instruct to turn on the MIC of the first earplug, and keep the MIC of the second earplug turned off State, so that the MIC of the first earbud is used to provide voice data for the telephone service.
  • the mobile phone may indicate that one of the earplugs is the first earplug, and the first earplug automatically turns on the MIC; the mobile phone may indicate that the other earplug is the second earplug, and the second earplug remains closed.
  • the first earplug satisfying the switching condition in step 504 includes the first earplug satisfying the first preset condition. That is, referring to FIG. 5, step 504 may specifically include:
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the first preset condition may include one or more of the following: ear out (out of ear), the ear out time is greater than or equal to the first preset value, and the phone is disconnected (that is, the Bluetooth connection is disconnected from the phone) , The power is less than the second preset value, the channel quality of the link with the mobile phone is lower than the third preset value, or the voice data of (the opposite end) is not played within the preset duration and the (MIC of the earbud) is not collected To voice data (of local users) etc.
  • channel quality indicator there may be a variety of parameters used to represent channel quality, such as one or more of a packet loss rate, a packet error rate, a signal-to-noise ratio, a QoS parameter, a channel quality indicator (CQI) parameter, and so on.
  • parameters used to represent channel quality such as one or more of a packet loss rate, a packet error rate, a signal-to-noise ratio, a QoS parameter, a channel quality indicator (CQI) parameter, and so on.
  • the first earplug meets the first preset condition, it may indicate that the first earplug has a problem, and the MIC of the first earplug may not normally provide voice data for the phone service of the mobile phone.
  • the second earplug regardless of whether the second earplug also has the same problem as the first earplug, it can be switched to provide voice data to the phone service of the mobile phone through the MIC of the second earplug, so that the mobile phone can handle the phone service normally or better.
  • the earplug can determine whether it has detached from the ear through a distance sensor or a proximity light sensor, etc. If it detaches from the ear, it is reported to the mobile phone.
  • the earbud can send a reset or detach message to the phone to indicate the disconnection, indicating that the phone is disconnected; or the phone can also detect whether it is disconnected from the earbud .
  • the earplugs can measure the channel parameters of the link with the mobile phone and report the channel parameters to the mobile phone; or, the mobile phone can also detect the channel parameters of the link with the earplug by itself.
  • earplugs can report their battery power to the phone.
  • the earplug detects voice data
  • the event can be reported to the mobile phone; or, the mobile phone itself can determine whether the voice data sent by the earplug is received within the preset time period.
  • the above mobile phone may return a confirmation message to the earplug to notify the earplug that the mobile phone has received the report message.
  • the first preset condition is that the first earplug is broken. If the first earplug is broken, no matter what state the second earplug is in, it is switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first preset condition is that the first earplug comes out of the ear. If the first earplug comes out of the ear, no matter what state the second earplug is in, it will switch to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the mobile phone or the TWS headset may also prompt the user that the first earplug has a problem through display, sound, vibration, indicator light, and the like.
  • the first earplug is a right earplug.
  • the mobile phone prompts the user through a prompt box 701 that “the right earplug has disconnected the Bluetooth connection from the mobile phone”.
  • Switching the above mobile phone to provide voice data for the telephone service through the MIC of the second earplug means that the mobile phone instructs the TWS headset to switch to provide voice data for the telephone service through the MIC of the second earplug.
  • the following uses the first preset condition as the first earplug to take the ear as an example to illustrate the way in which the mobile phone instructs the TWS headset to switch.
  • the mobile phone can automatically instruct to switch/automatically switch to provide voice data for the telephone service through the MIC of the second earplug.
  • the mobile phone may automatically instruct the second earplug to turn on the MIC, and receive voice data collected by the MIC of the second earplug, and perform telephone service processing according to the voice data And instruct the first earbud to turn off the MIC.
  • the mobile phone can also prompt the user whether to switch. After detecting the user's switching instruction, the mobile phone then instructs the TWS headset to switch to the phone that is the mobile phone through the MIC of the second earplug. Business provides voice data.
  • the first earplug is a right earplug
  • the second earplug is a left earplug
  • the mobile phone prompts the user through a prompt box 801 whether to switch to providing voice data for the phone service of the mobile phone through the MIC of the second earplug, if the mobile phone detects When the user clicks “Yes” on the display screen, or the MIC of the mobile phone detects the voice data instructed by the user to switch, the mobile phone instructs the second earplug to turn on the MIC, and instructs the first earplug to turn off the MIC.
  • the first earplug is a right earplug
  • the second earplug is a left earplug.
  • the mobile phone prompts the user through the first earplug and/or the second earplug in a sound manner whether to switch to provide voice data for the phone service of the mobile phone through the MIC of the second earplug. If the MIC of the first earplug detects the voice switching instruction input by the user, it is sent to the mobile phone, and the mobile phone instructs the second earplug to turn on the MIC and instructs the first earplug to turn off the MIC. Or, referring to (b) in FIG. 9, if the mobile phone detects the input voice switching instruction through its own MIC, the mobile phone instructs the second earplug to turn on the MIC, and instructs the first earplug to turn off the MIC.
  • the mobile phone automatic instruction switching/automatic control switching or the mobile phone switching to the MIC of the second earplug according to the user's instruction instruction can be called mobile phone switching.
  • the embodiments of the present application are mainly described by taking mobile phone switching as an example.
  • the above step 504A may specifically include:
  • the mobile phone instructs the second earplug to turn on the MIC, so that the MIC of the second earplug is switched from the off state to the on state.
  • a notification message can be sent to the mobile phone to make the mobile phone know and record that the MIC of the second earplug has been switched to the on state.
  • the mobile phone receives the voice data collected by the MIC of the second earplug.
  • the mobile phone may receive voice data collected by the MIC of the second earplug and sent by the second earplug through a second Bluetooth connection with the second earplug.
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the mobile phone instructs the first earplug to turn off the MIC.
  • step 1004 after the mobile phone instructs the first earbud to turn off the MIC, the mobile phone can still send audio data to the first earbud, and the user can still hear the voice data of the opposite end of the phone through the first earbud.
  • the mobile phone may not perform step 1004, and the first earplug may turn off the MIC by itself.
  • the mobile phone may receive a message sent by the second earplug that the MIC of the second earplug is turned on, and after receiving the message that the MIC of the second earplug is turned on, the mobile phone instructs the first earplug to turn off the MIC.
  • the mobile phone instructs the first earplug to turn off the MIC after receiving the voice data collected by the MIC of the second earplug.
  • a notification message can be sent to the mobile phone so that the mobile phone knows and records that the MIC of the first earplug has been switched to the off state.
  • the MIC of the second earplug can be turned on first, and then the MIC of the first earplug can be turned off, so as to ensure the user
  • the voice data can be provided to the mobile phone without interruption, to avoid the interruption of voice data.
  • the MIC of the first earplug is turned off in time after switching, and the power consumption of the first earplug can also be saved.
  • the first earplug satisfying the switching condition in step 504 may include that the first earplug satisfies the first preset condition and the second earplug satisfies the second preset condition. That is, referring to FIG. 5, step 504 may specifically include:
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • step 1001A in the above steps 1001A-1003 can be replaced by:
  • the mobile phone instructs the second earplug to turn on the MIC, so that the MIC of the second earplug is switched from the off state to the on state.
  • the second preset condition may include one or more of the following: in-ear (in the ear), save the Bluetooth connection with the mobile phone, the power is greater than or equal to the second preset value, and the channel quality of the link with the mobile phone is high Is equal to or equal to the third preset value.
  • the first earplug When the first earplug meets the first preset condition, it may indicate that the first earplug has a problem, and the MIC of the first earplug may not normally provide voice data for the phone service of the mobile phone. If the second earplug satisfies the second preset condition, it may indicate that the MIC of the second earplug may normally provide voice data for the phone service of the mobile phone, and thus the mobile phone can switch to provide the voice data for the phone service through the MIC of the second earplug, Therefore, telephone service processing is performed according to the voice data collected by the MIC of the second earplug. Wherein, the mobile phone can switch to the MIC of the second earplug to provide voice data for the telephone service means that the mobile phone instructs the TWS headset to switch to the MIC of the second earplug to provide voice data for the telephone service.
  • the MIC of the first earplug may continue to be used to provide voice data for the phone service of the mobile phone.
  • the user can be notified of a problem with the TWS headset through the mobile phone or TWS headset, and stop using the TWS headset to provide mobile phone phone services Voice data.
  • the first earplug if it satisfies the first preset condition, it may indicate that there is a problem with the first earplug, regardless of whether the second earplug also has the same problem as the first earplug, as long as the second earplug meets
  • the second preset condition which is to maintain a Bluetooth connection with the mobile phone, can be switched to provide voice data to the phone service of the mobile phone through the MIC of another earplug, so that the mobile phone can handle normally or better Phone business.
  • the mobile phone can be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug. If the second earplug is disconnected from the mobile phone, the mobile phone does not switch the MIC, and the MIC of the first earplug is still used to provide voice data for the phone service of the mobile phone.
  • the first preset condition includes the first earplug being disconnected from the mobile phone
  • the second preset condition is that the second earplug maintains a Bluetooth connection with the mobile phone.
  • the MIC of the first earplug cannot provide voice data for the phone service of the mobile phone; at this time, if the second earplug maintains Bluetooth connection with the mobile phone, the mobile phone can switch to the MIC of the second earplug as the phone Business provides voice data.
  • the first preset condition includes that the first earplug does not play voice data and does not collect voice data within a preset duration
  • the second preset condition includes the second earplug maintaining a Bluetooth connection with the mobile phone.
  • the preset duration can be set according to actual needs, for example, it can be 10 seconds. If the MIC of the first earbud does not play the peer's voice data within the preset duration, the local user may be talking. If the phone does not collect voice data within the preset duration, the mobile phone does not receive the first within the preset duration. For the voice data provided by the MIC of the earplug, the MIC of the first earplug may be damaged or the first earplug may be damaged and cannot be used normally. At this time, if the second earplug maintains a Bluetooth connection with the mobile phone, the mobile phone can be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first preset condition includes that the channel quality of the link between the first earbud and the mobile phone is lower than the third preset value
  • the second preset condition includes that the second earbud maintains a Bluetooth connection with the mobile phone.
  • the first preset condition includes the first earplug being out of the ear, and the channel quality of the link between the first earplug and the mobile phone is lower than the third preset value;
  • the second preset condition includes the second earplug and the mobile phone maintaining Bluetooth connection.
  • the mobile phone can be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first preset condition includes that the power of the first earplug is less than the second preset value
  • the second preset condition includes maintaining a Bluetooth connection between the second earplug and the mobile phone.
  • the first earplug can be reported to the mobile phone when the power is less than the second preset value; in another solution, the mobile phone can monitor the power of the first earplug, so as to easily know whether the power of the first earplug is less than The second preset value. At this time, if the second earplug maintains a Bluetooth connection with the mobile phone, the mobile phone can be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first earplug if it satisfies the first preset condition, it may indicate that there is a problem with the first earplug, and may not provide voice data for the phone service of the mobile phone normally. At this time, if the same problem does not occur in the second earplug, it can be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the second preset condition includes a first sub-condition
  • the first sub-condition is a condition where the first preset condition is opposite
  • the second preset condition may further include a second sub-condition, and the second sub-condition is that the second earplug maintains a Bluetooth connection with the mobile phone.
  • the first sub-condition may include at least one of the following: in-ear state (ie, placed in the ear state), the power is greater than or equal to the second preset value, and the channel quality of the link with the mobile phone is greater than or equal to
  • the third preset value is that voice data is collected within a preset duration.
  • the first preset condition includes the first earplug coming out of the ear
  • the second preset condition includes the second earplug maintaining a Bluetooth connection with the mobile phone
  • the second earplug being in the ear (into the ear) state. If the first earplug comes out of the ear, the first earplug may accidentally drop, or the user may take out the first earplug from the ear, and the first earplug may not provide voice data for the voice service of the mobile phone normally.
  • the mobile phone can be switched to provide voice data for the voice service of the mobile phone through the MIC of the second earplug.
  • the first preset condition includes the first earplug being out of the ear
  • the second preset condition includes maintaining a Bluetooth connection between the second earplug and the mobile phone
  • the second earplug is in the ear state
  • the power of the second earplug is greater than or equal to the second default value. That is to say, if the first earplug comes out of the ear, the first earplug may accidentally drop, or the user may take out the first earplug from the ear, and the first earplug may not normally provide voice data for the phone service of the mobile phone.
  • the mobile phone can be switched to The MIC of the second earplug provides voice data for the phone service of the mobile phone.
  • the first preset condition includes that the power of the first earplug is less than the second preset value
  • the second preset condition includes that the Bluetooth connection between the second earplug and the mobile phone is maintained, and the power of the second earplug is greater than or equal to the second preset Set value.
  • the second earplug maintains a Bluetooth connection with the mobile phone, and the power of the second earplug is greater than or equal to the second preset value, the power of the second earplug is sufficient, and the mobile phone can be switched to the phone that is the mobile phone through the MIC of the second earplug Business provides voice data.
  • the first preset condition includes that the power of the first earplug is less than the second preset value
  • the second preset condition includes maintaining the Bluetooth connection between the second earplug and the mobile phone
  • the power of the second earplug is greater than or equal to the second preset Value
  • the channel quality of the link between the second earbud and the mobile phone is higher than or equal to the third preset value.
  • the power of the first earplug is low, the MIC of the first earplug may not normally provide voice data for the phone service of the mobile phone.
  • the mobile phone can be switched to the phone service of the mobile phone through the MIC of the second earplug Provide higher quality voice data.
  • the first preset condition includes that the power of the first earplug is less than the second preset value, and the channel quality of the link between the second earplug and the mobile phone is lower than the third preset value.
  • the second preset condition includes maintaining a Bluetooth connection between the second earbud and the mobile phone, the power of the second earbud is greater than or equal to the second preset value, and the channel quality of the link between the second earbud and the mobile phone is higher than or equal to the second Three preset values.
  • the MIC of the first earplug may not be suitable for continuing to provide voice data for the phone service of the mobile phone.
  • the second earbud and the mobile phone have a Bluetooth connection, the second earbud has sufficient power, and the channel quality of the link between the second earbud and the mobile phone is high, the MIC of the second earbud can be better switched to The telephone service of the mobile phone provides voice data.
  • the first preset condition includes that the ear-out time of the first earplug is greater than or equal to the first preset value
  • the second preset condition includes that the second earplug maintains a Bluetooth connection with the mobile phone, and the second earplug is in the in-ear state. If the ear-plugging time of the first earplug is greater than or equal to the first preset value, the first earplug may fall for a long time, or the user does not want to use the first earplug again, and the MIC of the first earplug cannot provide voice for the phone service of the mobile phone normally data. If the second earplug maintains a Bluetooth connection with the mobile phone and the second earplug is still in the ear, the mobile phone can be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first preset condition includes the first earplug being out of the ear, and the channel quality of the link between the first earplug and the mobile phone is lower than the third preset value.
  • the second preset condition includes maintaining a Bluetooth connection between the second earbud and the mobile phone, and the channel quality of the link between the second earbud and the mobile phone is higher than or equal to the third preset value.
  • the user may be placing the first earplug Speak at the mouth, but the MIC of the first earbud cannot provide better quality voice data for the mobile phone. If the channel quality of the link between the second earplug and the mobile phone is high, the MIC of the second earplug can better provide voice data for the phone service of the mobile phone, and thus can be switched to the MIC of the second earplug to provide voice data.
  • the first earplug satisfying the switching condition in step 504 may include that the state parameter of the first earplug is worse than the state parameter of the second earplug. That is, referring to FIG. 5, step 504 may specifically include:
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • step 1001A in the above steps 1001A-1003 can be replaced by:
  • the mobile phone instructs the second earplug to turn on the MIC, so that the MIC of the second earplug is switched from the off state to the on state.
  • the state parameters of the earplug may include whether the earplug is connected to the mobile phone, whether the earplug is in the ear, the power of the earplug, and the channel quality of the link between the earplug and the mobile phone. For example, when the first earplug is disconnected from the mobile phone and the second earplug remains connected to the mobile phone, the state parameter of the first earplug is worse than the state parameter of the second earplug, and the state parameter of the second earplug is better than the state parameter of the first earplug .
  • the state parameter of the first earplug when the first earplug is out of the ear and the second earplug is in the ear, the state parameter of the first earplug is worse than the state parameter of the second earplug, and the state parameter of the second earplug is better than the state parameter of the first earplug.
  • the electric quantity of the first earplug is lower than the electric quantity of the second earplug, the state parameter of the first earplug is worse than the state parameter of the second earplug, and the state parameter of the second earplug is better than the state parameter of the first earplug.
  • the state parameter of the first earplug is worse than the state parameter of the second earplug.
  • the state parameter of the second earplug is better than that of the first earplug.
  • the switching condition may include that the power of the first earplug is smaller than the power of the second earplug.
  • the mobile phone can switch to provide voice data for voice services through the MIC of the second earplug.
  • the switching condition may include that the power of the first earplug is less than the power of the second earplug, and the channel quality of the link between the first earplug and the mobile phone is lower than the channel quality of the link between the second earplug and the mobile phone .
  • the switching condition is satisfied, the mobile phone can be switched to provide voice data for the voice service through the MIC of the second earplug.
  • the MIC of the two earplugs provides voice data for the phone's telephone service.
  • the first earplug satisfies the first preset condition
  • the second earplug satisfies the first preset condition and the second preset condition.
  • the second preset condition includes that other state parameters corresponding to the second earplug are better than those corresponding to the first earplug.
  • Other status parameters refer to state parameters other than the state parameters involved in the first preset condition.
  • the MIC is not switched.
  • the second earplug also comes out (that is, the second earplug meets the first preset condition), but the power of the second earplug is higher than The power of the first earplug, or the channel quality of the link between the second earplug and the mobile phone is higher than the channel quality of the link between the first earplug and the mobile phone (that is, the second earplug meets the second preset condition), then switch To the MIC through the second earplug to provide voice data for the phone's telephone service.
  • the second earplug has better state parameters and is more suitable for providing voice data for the phone service of the mobile phone, so that the MIC can be switched.
  • the second earplug also comes out (that is, the second earplug satisfies the first preset condition), but the power of the second earplug is low
  • the electric quantity of the first earplug that is, other state parameters corresponding to the second earplug is worse than other state parameters corresponding to the first earplug
  • the MIC is not switched, and voice data is still provided for the phone service of the mobile phone through the MIC of the first earplug.
  • the first earplug has better state parameters and is more suitable for providing voice data for the phone service of the mobile phone, so the MIC may not be switched.
  • the MIC is not switched and the voice data for the phone service of the mobile phone is still provided through the MIC of the first earplug.
  • both the first earplug and the second earplug satisfy the first preset condition, it may indicate that the second earplug and the first earplug have the same problem.
  • the MIC is not switched, and the The MIC of an earplug provides voice data for the phone's telephone service.
  • the power of the first earplug is lower than the second preset value, and the power of the second earplug is also lower than the second preset value, the MIC is not switched, and the MIC of the first earplug is still the phone of the mobile phone Business provides voice data.
  • the MIC is not switched and the MIC of the first earplug is still used as the phone's phone Business provides voice data.
  • the MIC is not switched, and the MIC of the first earplug is still used to provide the phone service of the mobile phone Voice data.
  • the user may One earplug is placed near the mouth to speak, so although the first earplug comes out of the ear, it does not need to switch to the MIC of the second earplug to provide voice data for the phone service of the mobile phone.
  • the above embodiments are described by taking an example in which the mobile phone instructs the MIC switched to the second earplug to provide voice data for the telephone service when the switching condition is satisfied.
  • the TWS headset can also automatically switch from the MIC of the first earplug to the MIC of the second earplug, To provide voice data for the phone's telephone service.
  • each earplug When there is a wireless connection between the first earplug and the second earplug, the power consumption of each earplug can also be exchanged between the first earplug and the second earplug, the channel quality of the link between each earplug and the mobile phone, each Information such as whether the earplugs are out of the ear, and whether the earplugs are disconnected from the mobile phone.
  • the first preset condition includes the first earplug being out of the ear; the second preset condition includes the second earplug maintaining a Bluetooth connection with the mobile phone, and the second earplug being in the ear state.
  • the first earplug can send a notification message 1 to the second earplug; when the second earplug is in the ear state, maintain a Bluetooth connection with the mobile phone (that is, meet the second preset Condition), and after receiving the notification message 1, the MIC of the second earplug can be turned on, and the notification message 2 can be sent to the first earplug; after receiving the notification message 2, the MIC of the first earplug can be turned off.
  • the TWS headset can also prompt the user whether to switch. After the TWS headset detects the user's switching instruction, the TWS headset switches to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first preset condition includes the first earplug being out of the ear;
  • the second preset condition includes the second earplug maintaining a Bluetooth connection with the mobile phone, and the second earplug being in the ear state.
  • the first earplug satisfies the first preset condition and the second earplug satisfies the second preset condition as an example:
  • the first earplug and/or the second earplug voice prompts the user whether to switch to provide voice data for the phone service of the mobile phone through the MIC of the second earplug. If the second earplug detects the user's first operation on the second earplug, the second earplug turns on the MIC. Then, the second earplug informs the first earplug to turn off the MIC, or if the first earplug detects the user's second operation on the first earplug, the first earplug turns off the MIC.
  • the first earplug and the second earplug may have MIC switches
  • the first operation may be a user's click operation on the MIC switch of the first earplug
  • the second operation may be the user's MIC switch on the second earplug Click Action.
  • the first operation may be an operation of shaking the first earplug by the user
  • the second operation may be an operation of shaking the second earplug by the user.
  • the first earplug and the second earplug shake to switch the on and off states of the MIC, that is, the second earplug turns on the MIC, and the first earplug turns off the MIC.
  • a wireless connection is established between the first earplug and the second earplug, and the first earplug and/or the second earplug voice prompts the user whether to switch to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first earplug is a right earplug, and the first earplug is provided with a MIC switch 1101.
  • the first earplug detects the operation of the user touching the MIC switch 1101
  • the first earplug notifies the second earplug to turn on the MIC, and the first Turn off the MIC with an earbud.
  • a wireless connection is established between the first earplug and the second earplug, and the first earplug and/or the second earplug prompts the user by voice whether to switch to provide the phone service of the mobile phone through the MIC of the second earplug Voice data. If the MIC of the first earplug detects the user's voice switching instruction, the first earplug notifies the second earplug to turn on the MIC through a Bluetooth connection with the second earplug, and the first earplug turns off the MIC.
  • the above-mentioned sound method prompts the user that the content can come from the mobile phone or pre-stored in the earplug.
  • a wireless connection is established between the first earplug and the second earplug.
  • the first earplug is a left earplug
  • the first earplug prompts the user to “switch MIC?” through the display screen. If the display screen detects the user's touch operation, the first earbud informs the second earbud to turn on the MIC through the Bluetooth connection with the second earbud, and the first earbud turns off the MIC; if the user's touch operation is not detected, the MIC is not switched .
  • the second earplug is triggered by a double-click operation to turn on the MIC, and if the display detects the user's double-click operation, the first earplug informs the second earbud to turn on the MIC through a Bluetooth connection with the second earbud, and the first earbud turns off the MIC; If the display does not detect the user's double-click operation, the MIC is not switched.
  • the TWS headset can prompt the user whether to switch to the MIC of other earplugs, for example, by vibrating, by indicating light, or by combining the above mentioned prompts to prompt the user; the user indicates the switch
  • the embodiments of the present application will not be described one by one.
  • Case 2 When the mobile phone performs telephone service processing based on the voice data collected by the MIC of the first earplug, the MIC of the second earplug is also turned on.
  • the MIC of the first earplug and the MIC of the second earplug can be turned off by default, and the mobile phone can instruct to turn on the MIC of the first earplug and the MIC of the second earplug.
  • Both the MIC of the first earplug and the MIC of the second earplug collect voice data.
  • the first earplug and the second earplug respectively send the voice data collected by the respective MIC to the mobile phone through the Bluetooth connection with the mobile phone.
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the first earplug.
  • the MIC of the first earplug and the MIC of the second earplug may be turned on by default. Both the MIC of the first earplug and the MIC of the second earplug collect voice data. The first earplug and the second earplug respectively send the voice data collected by the respective MIC to the mobile phone through the Bluetooth connection with the mobile phone. The mobile phone performs telephone service processing according to the voice data collected by the MIC of the first earplug.
  • the MICs of the two TWS earplugs are both turned on, and the mobile phone can receive two MICs to collect two channels of voice data, but only perform telephone service processing based on the one channel of voice data collected by one MIC.
  • case 2 as in case 1, when the first earplug satisfies the first preset condition and the second earplug satisfies the second preset condition, it can be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug .
  • first preset condition and the second preset condition in Case 2 may be the same as the first preset condition and the second preset condition in Case 1.
  • the first preset condition may further include that the first earplug does not play voice data and does not collect voice data within a preset duration.
  • the second preset condition may further include that the second earplug does not play voice data within a preset time but collects voice data.
  • the first preset condition includes that the first earplug does not play voice data and does not collect voice data within a preset duration;
  • the second preset condition includes maintaining a Bluetooth connection between the second earplug and the mobile phone, and the second earplug The voice data is not played within the set duration, and the second earplug collects the voice data within the preset duration. If the first earplug does not play voice data within the preset duration, and the MIC of the first earplug does not collect voice data within the preset duration, the MIC of the first earplug may be damaged; if the second earplug is between the mobile phone and the mobile phone Keep the Bluetooth connected, and the second earplug does not play voice data within the preset duration. If the second earplug collects voice data within the preset duration, it means that the MIC of the second earplug can be used normally, so you can switch to the second earplug MIC to provide voice data for telephone services.
  • the first preset condition includes that the first earplug comes out of the ear, and the first earplug does not collect voice data within a preset duration.
  • the second preset condition includes maintaining a Bluetooth connection between the second earplug and the mobile phone, the second earplug is in an in-ear state, the second earplug does not play voice data within a preset time but the voice signal is collected, and the power of the second earplug is greater than or equal to A second preset value, and the channel quality of the link between the second earbud and the mobile phone is higher than or equal to the third preset value.
  • the first earplug may not be next to the user, and the MIC of the first earplug cannot normally provide voice data for the mobile phone.
  • the second earplug is in the ear, and the power of the second earplug is sufficient, and the channel quality of the link between the second earplug and the mobile phone is high, you can switch to the MIC through the second earplug to better The telephone service of the mobile phone provides voice data.
  • the state parameter of the first earplug is worse than the state parameter of the second earplug may further include that the first earplug plays voice data within a preset time period and no voice data is collected. The two earplugs did not play voice data and did not collect voice data within a preset duration.
  • the mobile phone or the TWS headset can automatically switch to the MIC of the second earplug for phone service processing.
  • the mobile phone or TWS headset can also prompt the user whether to switch, and after detecting the user's switching instruction, the mobile phone or TWS headset is then switched to provide voice data for the mobile phone's telephone service through the MIC of the second earplug.
  • the mobile phone when the first earplug meets the first preset condition and the second earplug meets the second preset condition, the mobile phone automatically performs telephone service processing based on the voice data collected by the MIC of the second earplug, and stops Perform telephone service processing according to the voice data collected by the MIC of the first earplug.
  • the mobile phone when the first earplug satisfies the first preset condition and the second earplug satisfies the second preset condition, the mobile phone prompts the user via the first earplug and/or the second earplug voice whether to switch To provide voice data for the phone service of the mobile phone through the MIC of the second earplug. If the first earplug or the second earplug detects the user's voice instruction to switch the MIC of the earplug, the first earplug or the second earplug notifies the mobile phone to perform telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the method may further include: 1201, the mobile phone receives the voice data collected by the MIC of the second earplug. Specifically, the mobile phone may receive voice data collected by the MIC of the second earplug and sent by the second earplug through a second Bluetooth connection with the second earplug.
  • Step 504A in FIG. 5 may include:
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the mobile phone stops performing telephone service processing according to the voice data collected by the MIC of the first earplug.
  • step 1201A can also be replaced with step 1202B or step 1202C:
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the mobile phone performs telephone service processing according to the voice data collected by the MIC of the second earplug.
  • the mobile phone may also instruct the first earplug to turn off the MIC.
  • the first earplug has problems such as low battery, poor channel quality of the link with the mobile phone, or the first earplug being out of ear, but both the first earplug and the second earplug maintain Bluetooth with the mobile phone
  • the MIC of the first earplug and the MIC of the second earplug can simultaneously provide voice data for the phone service of the mobile phone.
  • the two earplugs of the TWS earphone are divided into a main earplug and a secondary earplug.
  • the mobile phone can first perform telephone service processing according to the voice data collected by the main earplug.
  • the mobile phone can notify the primary earplug and the secondary earplug to switch between the primary and secondary roles, and switch the original secondary earplug (for example, the foregoing second earplug) to a new one
  • the main earplug switch the original main earplug (that is, the above-mentioned first earplug) to a new sub-earplug, and use the switched new main earplug (that is, the above-mentioned second earplug) to provide voice data for the mobile phone so that the mobile phone can perform telephone service processing . That is, the mobile phone always performs telephone service processing according to the voice data collected by the main earplug.
  • the MIC of the primary earbuds is turned on
  • the MIC of the secondary earbuds is turned off
  • the mobile phone performs telephone service according to the voice data collected by the MIC of the main earbuds deal with.
  • the MIC of the main earplug and the MIC of the secondary earplug are both turned on, and the mobile phone performs telephone service processing according to the voice data collected by the MIC of the main earplug.
  • the roles of the primary and secondary earplugs can also be switched, and the mobile phone performs telephone service processing according to the voice data collected by the MIC of the switched primary earplug.
  • the method may further include: 1300.
  • the mobile phone determines the primary and secondary earplugs, the first earplug is the primary earplug, and the second earplug is the secondary earplug.
  • the mobile phone can determine the main earplugs in multiple ways.
  • the main earplug may be determined by referring to the specific implementation manner of determining the target earplug according to the preset strategy above, and the other earplug other than the main earplug is the secondary earplug, which will not be repeated here.
  • Step 502 may specifically include: 1301, the mobile phone receives the voice data sent by the main earplug.
  • Step 503 may specifically include: 1302.
  • the mobile phone performs telephone service processing according to the voice data collected by the main earplug (ie, the first earplug).
  • Step 504 may specifically include: 1303A. If the first earplug (that is, the main earplug) meets the first preset condition, the mobile phone sends information 1 (that is, the first information) to the second earplug (that is, the secondary earplug), so that the second earplug Switch to the main earplug and turn on the MIC, so that the MIC of the second earplug is switched from the off state to the on state; and send the information 2 (ie, the second information) to the first earplug, so that the first earplug is switched to the secondary earplug and the MIC is turned off, The MIC of the first earplug is switched from the on state to the off state. 1304.
  • the mobile phone receives the voice data sent by the switched main earbuds. 1305.
  • the mobile phone performs telephone service processing according to the voice
  • information 1 can be used to instruct the second earplug to switch to the main earplug and instruct the second earplug to turn on the MIC; or, information 1 can be used to instruct the second earplug to switch to the main earplug, and the main earplug automatically turns on the MIC.
  • the second earplug can switch to the main earplug first and then turn on the MIC; or the second earplug can first turn on the MIC and then switch to the main earplug.
  • the earplug may store first identification information indicating the identity of the primary earplug or second identification information indicating the identity of the secondary earplug.
  • first identification information indicating the identity of the primary earplug
  • second identification information indicating the identity of the secondary earplug.
  • Information 2 may be used to instruct the first earplug to switch to the secondary earplug and instruct the first earplug to close the MIC; or, information 2 may be used to instruct the first earplug to switch to the secondary earplug, and the secondary earplug automatically closes the MIC.
  • the first earplug can first turn off the MIC and then switch to the secondary earplug; or the first earplug can switch to the secondary earplug and then turn off the MIC.
  • the mobile phone may specifically send the information 2 to the first earplug before steps 1304-1305, or may send the information 2 to the first earplug after steps 1304-1305,
  • the embodiments of the present application are not limited.
  • step 1303A can also be replaced with step 1303B or step 1303C:
  • the mobile phone sends a message 1 to the second earplug, so that the second earplug switches Main earplug and open MIC; and send message 2 to the first earplug, so that the first earplug is switched to the secondary earplug and close the MIC.
  • the mobile phone sends a message 1 to the second earplug, so that the second earplug switches to the main earplug and turns on the MIC ; And send message 2 to the first earplug, so that the first earplug is switched to the secondary earplug and the MIC is turned off.
  • the second earplug may also send a notification message to the mobile phone, so that the mobile phone knows and records that the MIC of the second earplug has been switched to the on state.
  • a notification message can also be sent to the mobile phone, so that the mobile phone knows and records that the MIC of the first earplug has been switched to the off state.
  • step 1303A in FIG. 13 may be specifically replaced with 1403A, and step 1303B may be Replace with 1403B, step 1303C can be replaced with 1403C:
  • the mobile phone sends a message 3 to the second earplug to instruct the second earplug to switch to the main earplug; and sends a message 4 to the first earplug to indicate the first One earplug is switched to a secondary earplug.
  • the mobile phone sends a message 3 to the second earplug to instruct the second earplug to switch Main earplug; and send message 4 to the first earplug to instruct the first earplug to switch to the secondary earplug.
  • the mobile phone sends a message 3 to the second earplug, and the phone sends the message 3 to the second earplug to indicate The second earplug is switched to the main earplug; and a message 4 is sent to the first earplug to instruct the first earplug to switch to the secondary earplug.
  • step 1402 can also be executed: the mobile phone receives the voice data collected by the MIC of the secondary earplugs.
  • the mobile phone may perform step 1404: the mobile phone performs telephone service processing according to the voice data collected by the switched main earbud.
  • the mobile phone may also notify the first earplug to turn off the MIC, so that the MIC of the first earplug is switched from the on state to the off state.
  • the first earplug may also send a notification message to the mobile phone so that the mobile phone knows and records that the MIC of the first earplug has been switched to the off state.
  • connection solutions such as monitoring, forwarding, and NFMI
  • the first earplug when providing voice data for the phone service of the mobile phone through the MIC of the first earbud, If the first earplug satisfies the first preset condition and the second earplug satisfies the second preset condition, it may also be switched to provide voice data for the phone service of the mobile phone through the MIC of the second earplug.
  • the first preset condition may include that the first earplug comes out of the ear, the power of the first earplug is low, the MIC of the first earplug has not collected voice data within a preset duration, and the channel quality of the link between the first earplug and the mobile phone One or more of the lower.
  • the second preset condition may include one or more of the second earplug being in an in-ear state, sufficient power of the second earplug, and high channel quality of the link between the second earplug and the mobile phone.
  • TWS earphones include right earplugs and left earplugs.
  • the right earplugs establish a Bluetooth connection with the mobile phone
  • the right earplugs are the main earplugs
  • the first earplugs are the right earplugs
  • the second earplugs are the left earplugs.
  • the MIC of the right earbud provides voice data for the phone's phone service.
  • the mobile phone can maintain a Bluetooth connection with the right earplug, the right earplug is still the main earplug, and the MIC of the right earplug can be kept on or off.
  • the mobile phone can maintain a Bluetooth connection with the right earbud, the left earbud is switched to the main earbud, and the MIC of the right earbud can be kept on or off; in another solution, the mobile phone can be disconnected from the The Bluetooth connection between the right earbud and the left earbud switch to the main earbud.
  • TWS earphones include right earplugs and left earplugs.
  • the right earplugs establish a Bluetooth connection with the mobile phone
  • the right earplugs are the main earplugs
  • the first earplugs are the left earplugs
  • the second earplugs are the right earplugs.
  • the voice data collected by the MIC of the earplug and the left earplug is forwarded to the mobile phone through the right earplug to provide voice data for the phone service of the mobile phone.
  • the MIC of the right earplug can provide voice data for the phone service of the mobile phone, and the MIC of the left earplug can be turned on or off.
  • the earplug should reply to the mobile phone with a response message to notify the mobile phone earplug that the message sent by the mobile phone has been received, or notify the mobile phone earplug that the operation indicated by the message has been performed .
  • the mobile phone also needs to reply to the earplug with a response message. For example, after the mobile phone sends message 1 to the second earplug in step 1303A, after receiving the message 1, the second earplug may send a response message to the mobile phone to notify the mobile phone that the second earplug has received the message.
  • the second earplug may send a response message to the mobile phone to notify the mobile phone that the second earplug has turned on the MIC.
  • the mobile phone may reply to the earplug with a response message to notify the earplug that the mobile phone has received the reported power status of the earplug.
  • the mobile phone can switch the MIC by the method in the above embodiment, which is not described in the embodiments of this application.
  • the electronic device includes hardware and/or software modules corresponding to performing each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered beyond the scope of the present application.
  • the electronic device may be divided into function modules according to the above method example.
  • each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated module can be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 15 shows a schematic diagram of a possible composition of the electronic device 1500 involved in the above embodiment.
  • the electronic device 1500 may include: a connection unit 1501, MIC switching unit 1502, and determination unit 1503.
  • connection unit 1501 may be used to support the electronic device 1500 to perform the above step 500 and/or other processes used in the technology described herein.
  • the MIC switching unit 1502 may be used to support the electronic device 1500 to perform the above steps 501-503, etc., and/or other processes for the technology described herein.
  • the determining unit 1503 may be used to support the electronic device 1500 to perform the above steps 1300 and the like, and/or other processes for the technology described herein.
  • the electronic device 1500 provided in this embodiment is used to perform the above-mentioned MIC switching method, and therefore can achieve the same effect as the above-mentioned implementation method.
  • the electronic device 1500 may include a processing module, a storage module, and a communication module.
  • the processing module may be used to control and manage the actions of the electronic device 1500. For example, it may be used to support the electronic device 1500 to perform the steps performed by the connection unit 1501, the MIC switching unit 1502, and the determination unit 1503.
  • the storage module may be used to support the electronic device 1500 to store program codes and data.
  • the communication module may be used to support communication between the electronic device 1500 and other devices, such as communication with the first earplug and the second earplug.
  • the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
  • the processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.
  • the electronic device involved in this embodiment may be a mobile phone having the structure shown in FIG. 2.
  • An embodiment of the present application also provides a computer storage medium that stores computer instructions, and when the computer instructions run on an electronic device, the electronic device executes the above-mentioned related method steps to implement MIC switching in the above embodiment method.
  • An embodiment of the present application also provides a computer program product, which, when the computer program product runs on a computer, causes the computer to perform the above-mentioned related steps to implement the MIC switching method performed by the electronic device in the above embodiment.
  • the embodiments of the present application also provide an apparatus.
  • the apparatus may specifically be a chip, a component, or a module.
  • the apparatus may include a connected processor and a memory; wherein the memory is used to store computer-executed instructions.
  • the processor may execute computer execution instructions stored in the memory to cause the chip to execute the MIC switching method performed by the electronic device in each of the foregoing method embodiments.
  • the electronic devices, computer storage media, computer program products, or chips provided in this embodiment are used to perform the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding The beneficial effects in the method will not be repeated here.
  • Another embodiment of the present application provides a system, which may include the foregoing electronic device, the foregoing first earplug, and the foregoing second earplug, and may be used to implement the foregoing MIC switching method.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a division of logical functions.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application may essentially be part of or contribute to the existing technology, or all or part of the technical solutions may be embodied in the form of software products, which are stored in a storage medium
  • several instructions are included to enable a device (which may be a single-chip microcomputer, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of the present application.
  • the foregoing storage media include various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Abstract

本申请实施例提供一种MIC切换方法及设备,涉及电子技术领域,能够实时切换TWS耳机中,为电子设备的语音业务提供语音数据的耳塞的MIC,以便更好地进行语音业务处理。具体方案为:电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持第一蓝牙连接和第二蓝牙连接;电子设备分别通过第一蓝牙连接和第二蓝牙连接,向第一无线耳塞和第二无线耳塞发送音频数据;电子设备接收第一无线耳塞的MIC采集到的第一语音数据,根据第一语音数据进行业务处理;当第一无线耳塞满足切换条件时,电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理。本申请实施例用于切换MIC。

Description

一种麦克风MIC切换方法及设备 技术领域
本申请实施例涉及电子技术领域,尤其涉及一种麦克风(microphone,MIC)切换方法及设备。
背景技术
随着用户对便利性要求的提高,无线耳机获得了越来越多用户的青睐。其中,真无线立体声(true wireless stereo,TWS)耳机的两只耳塞之间不需要线材连接,因而能够更好地方便用户使用。
每只TWS耳塞上都设置有MIC。在TWS耳机与手机等电子设备建立无线连接后,电子设备通常根据一只TWS耳塞上的MIC采集到的语音数据进行语音业务处理。
发明内容
本申请实施例提供一种麦克风MIC切换方法及设备,能够实时切换TWS耳机中,为电子设备的语音业务提供语音数据的耳塞的MIC,以便更好地进行语音业务处理。
为达到上述目的,本申请实施例采用如下技术方案:
第一方面,本申请技术方案提供了一种麦克风MIC切换方法,包括:电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持第一蓝牙连接和第二蓝牙连接,且第一无线耳塞的MIC为开启状态,第二无线耳塞的MIC为关闭状态。电子设备分别通过第一蓝牙连接和第二蓝牙连接,向第一无线耳塞和第二无线耳塞发送音频数据。电子设备通过第一蓝牙连接接收第一无线耳塞发送的,第一无线耳塞的MIC采集到的第一语音数据。电子设备根据第一语音数据进行业务处理。当第一无线耳塞满足切换条件时,电子设备指示第二无线耳塞打开MIC使第二无线耳塞的MIC处于开启状态。电子设备接收第二无线耳塞发送的,第二无线耳塞的MIC采集到的第二语音数据。电子设备根据第二语音数据进行业务处理。
在该方案中,电子设备与第一无线耳塞和第二无线耳塞之间分别建立有蓝牙连接,电子设备可以在第一无线耳塞满足切换条件时,通过控制第二无线耳塞打开MIC,控制第一无线耳塞关闭MIC,可以使得由第一无线耳塞的MIC为电子设备的业务提供语音数据,切换为由第二无线耳塞的MIC为电子设备的业务提供语音数据。
第二方面,本申请实施例提供了一种麦克风MIC切换方法,包括:电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持第一蓝牙连接和第二蓝牙连接,第一无线耳塞和第二无线耳塞的MIC均为开启状态。电子设备分别通过第一蓝牙连接和第二蓝牙连接,向第一无线耳塞和第二无线耳塞发送音频数据。电子设备通过第一蓝牙连接接收第一无线耳塞发送的,第一无线耳塞的MIC采集到的第一语音数据。电子设备通过第二蓝牙连接接收第二无线耳塞发送的,第二无线耳塞的MIC采集到的第二语音数据。电子设备根据第一语音数据进行业务处理。当第一无线耳塞满足切换条件时,电子设备根据第二语音数据进行业务处理。
在该方案中,电子设备与第一无线耳塞和第二无线耳塞之间分别建立有蓝牙连接,电子设备可以在第一无线耳塞满足切换条件时,控制由第一无线耳塞的MIC为电子设备的业务提供语音数据,切换为由第二无线耳塞的MIC为电子设备的业务提供语音数据。
第三方面,本申请技术方法还提供了一种麦克风MIC切换方法,包括:电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持第一蓝牙连接和第二蓝牙连接,第一无线耳塞的MIC为开启状态,第二无线耳塞的MIC为关闭状态;第一无线耳塞和第二无线耳塞为一对无线耳塞,第一无线耳塞为主耳塞,第二无线耳塞为副耳塞。电子设备分别通过第一蓝牙连接和第二蓝牙连接,向第一无线耳塞和第二无线耳塞发送音频数据。电子设备通过第一蓝牙连接接收第一无线耳塞发送的,第一无线耳塞的MIC采集到的第一语音数据。电子设备根据第一语音数据进行业务处理。当第一无线耳塞满足切换条件时,电子设备向第二无线耳塞发送第一信息,以使得第二无线耳塞切换为主耳塞并打开MIC使第二无线耳塞的MIC处于开启状态;并向第一无线耳塞发送第二信息,以使得第一无线耳塞切换为副耳塞并关闭MIC使第一无线耳塞的MIC处于关闭状态。电子设备通过第二蓝牙连接接收第二无线耳塞发送的,第二无线耳塞的MIC采集到的第二语音数据。电子设备根据第二语音数据进行业务处理。
在该方案中,电子设备与第一无线耳塞和第二无线耳塞之间分别建立有蓝牙连接,电子设备可以在第一无线耳塞满足切换条件时,通过控制第二无线耳塞切换为主耳塞并打开MIC,控制第一无线耳塞切换为副耳塞并关闭MIC,可以使得由第一无线耳塞的MIC为电子设备的业务提供语音数据,切换为由第二无线耳塞的MIC为电子设备的业务提供语音数据。
第四方面,本申请技术方案还提供了一种麦克风MIC切换方法,包括:电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持第一蓝牙连接和第二蓝牙连接,第一无线耳塞和第二无线耳塞的MIC均为开启状态;第一无线耳塞和第二无线耳塞为一对无线耳塞,第一无线耳塞为主耳塞,第二无线耳塞为副耳塞。电子设备分别通过第一蓝牙连接和第二蓝牙连接,向第一无线耳塞和第二无线耳塞发送音频数据。电子设备通过第一蓝牙连接接收第一无线耳塞发送的,第一无线耳塞的MIC采集到的第一语音数据。电子设备通过第二蓝牙连接接收第二无线耳塞发送的,第二无线耳塞的MIC采集到的第二语音数据。电子设备根据第一语音数据进行业务处理。当第一无线耳塞满足切换条件时,电子设备指示第二无线耳塞切换为主耳塞,并指示第一无线耳塞切换为副耳塞。电子设备根据第二语音数据进行业务处理。
在该方案中,电子设备与第一无线耳塞和第二无线耳塞之间分别建立有蓝牙连接,电子设备可以在第一无线耳塞满足切换条件时,通过控制第二无线耳塞切换为主耳塞,控制第一无线耳塞切换为副耳塞,可以使得由第一无线耳塞的MIC为电子设备的业务提供语音数据,切换为由第二无线耳塞的MIC为电子设备的业务提供语音数据。
结合上述任一方面,在一种可能的实现中,当第一无线耳塞满足切换条件时,该方法还包括:电子设备指示第一无线耳塞关闭MIC使第一无线耳塞的MIC处于关闭 状态。
在第一无线耳塞满足切换条件,切换为由第二无线耳塞的MIC为电子设备的业务提供语音数据时,第一无线耳塞的MIC可以关闭以降低第一无线耳塞的功耗。
在另一种可能的实现中,第一无线耳塞满足切换条件包括:第一无线耳塞出耳;或者,第一无线耳塞出耳,第二无线耳塞入耳;或者,第一无线耳塞出耳且出耳时间大于或者等于第一预设值,第二无线耳塞是入耳状态。
在该种实现中,当第一无线耳塞满足这里的切换条件时,第一无线耳塞不在耳朵中,可能无法正常为电子设备的业务提供语音数据,因而可以切换到由第二无线耳塞的MIC为电子设备的业务提供语音数据。
在另一种可能的实现中,第一无线耳塞满足切换条件包括:第一无线耳塞与电子设备断开连接,且第二无线耳塞与电子设备保持蓝牙连接。
在该种实现中,当第一无线耳塞与电子设备断开连接时,第一无线耳塞无法正常为电子设备的业务提供语音数据,因而可以切换到由第二无线耳塞的MIC为电子设备的业务提供语音数据。
在另一种可能的实现中,第一无线耳塞满足切换条件包括:第一无线耳塞的电量小于第二预设值;或者,第一无线耳塞的电量小于第二无线耳塞的电量;其中,第一无线耳塞的电量通过第一蓝牙连接获知,第二无线耳塞的电量通过第二蓝牙连接获知。
在该种实现中,当第一无线耳塞满足这里的切换条件时,第一无线耳塞的电量较低,可能无法正常为电子设备的业务提供语音数据,因而可以切换到由第二无线耳塞的MIC为电子设备的业务提供语音数据。
在另一种可能的实现中,第一无线耳塞和第二无线耳塞之间具有无线连接;或者,第一无线耳塞和第二无线耳塞之间不具有无线连接。
其中,当第一无线耳塞和第二无线耳塞之间具有无线连接时,他们可以通过该蓝牙耳机之间交互一些电量情况、是否出耳等信息。
第五方面,本申请技术方案提供了一种麦克风MIC切换方法,包括:电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持第一蓝牙连接和第二蓝牙连接。电子设备分别通过第一蓝牙连接和第二蓝牙连接,向第一无线耳塞和第二无线耳塞发送音频数据。电子设备通过第一蓝牙连接接收第一无线耳塞发送的,第一无线耳塞的MIC采集到的第一语音数据。电子设备根据第一语音数据进行业务处理。当第一无线耳塞满足切换条件时,电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理。
在该方案中,电子设备与第一无线耳塞和第二无线耳塞之间分别建立有蓝牙连接,电子设备可以在第一无线耳塞满足切换条件时,控制由第一无线耳塞的MIC为电子设备的业务提供语音数据,切换为由第二无线耳塞的MIC为电子设备的业务提供语音数据。
在第五方面的一种可能的实现中,在电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理之前,第一无线耳塞为主耳塞,第二无线耳塞为副耳塞。电子设备通过第一蓝牙连接接收第一无线耳塞发送的,第一无线耳塞的MIC采集到的第一语音数据,包括:电子设备通过第一蓝牙连接接收主耳塞发送的,第一无线耳塞 的MIC采集到的第一语音数据。电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理,包括:电子设备指示第一无线耳塞切换为副耳塞,并指示第二无线耳塞切换为主耳塞;电子设备根据切换后的主耳塞的MIC采集到的第二语音数据进行业务处理。
在另一种可能的实现中,在电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理之前,第一无线耳塞的MIC为开启状态,第二无线耳塞的MIC为关闭状态。电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理,包括:电子设备指示第二无线耳塞打开MIC;电子设备通过第二蓝牙连接接收第二无线耳塞发送的,第二无线耳塞的MIC采集到的第二语音数据;电子设备根据第二语音数据进行业务处理。
在另一种可能的实现中,在电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理之前,第一无线耳塞和第二无线耳塞的MIC均为开启状态,电子设备还通过第二蓝牙连接接收第二无线耳塞发送的,第二无线耳塞的MIC采集到的第二语音数据。在电子设备根据第二无线耳塞的MIC采集到的第二语音数据进行业务处理之后,方法还包括:电子设备停止根据第一语音数据进行业务处理。
在另一种可能的实现中,当第一无线耳塞满足切换条件时,方法还包括:电子设备指示第一无线耳塞关闭MIC。
在另一种可能的实现中,第一无线耳塞满足切换条件包括:第一无线耳塞出耳;或者,第一无线耳塞出耳,第二无线耳塞是入耳状态;或者,第一无线耳塞出耳且出耳时间大于或者等于第一预设值,第二无线耳塞入耳。
在另一种可能的实现中,第一无线耳塞满足切换条件包括:第一无线耳塞与电子设备断开连接,且第二无线耳塞与电子设备保持蓝牙连接。
在另一种可能的实现中,第一无线耳塞满足切换条件包括:第一无线耳塞的电量小于第二预设值;或者,第一无线耳塞的电量小于第二无线耳塞的电量;其中,第一无线耳塞的电量通过第一蓝牙连接获知,第二无线耳塞的电量通过第二蓝牙连接获知。
在另一种可能的实现中,第一无线耳塞和第二无线耳塞之间具有无线连接;或者,第一无线耳塞和第二无线耳塞之间不具有无线连接。
第六方面,本申请技术方案提供了一种MIC切换装置,该装置包含在电子设备中,该装置具有实现上述第一方面至第五方面的可能实现方式中任一方法中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,连接模块或单元、MIC切换模块或单元、确定模块或单元等。
第七方面,本申请技术方案提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面至第五方面任一项可能的实现中的MIC切换方法。
第八方面,本申请技术方案提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面至第五方面任一项可 能的实现中的MIC切换方法。
第九方面,本申请技术方案提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得电子设备执行上述第一方面至第五方面任一项可能的实现中的MIC切换方法。
第十方面,本申请技术方案提供了一种系统,该系统可以包括以上第一方面或第二方面的任一项可能的实现方式中的电子设备、第一无线耳塞和第二无线耳塞。该电子设备、第一无线耳塞和第二无线耳塞可以执行上述第一方面至第五方面任一项可能的实现中的MIC切换方法。该第一无线耳塞和第二无线耳塞为一对无线耳塞。
附图说明
图1为本申请实施例提供的一种系统示意图;
图2为本申请实施例提供的一种手机的结构示意图;
图3A为本申请实施例提供的一种耳塞的结构示意图;
图3B为本申请实施例提供的一种耳塞和耳机盒的示意图;
图3C为本申请实施例提供的一种耳塞的示意图;
图4为本申请实施例提供的一种双发连接示意图;
图5为本申请实施例提供的一种MIC切换方法流程图;
图6为本申请实施例提供的一组场景示意图;
图7为本申请实施例提供的一种界面示意图;
图8为本申请实施例提供的另一种界面示意图;
图9为本申请实施例提供的另一组场景示意图;
图10为本申请实施例提供的另一种MIC切换方法流程图;
图11A为本申请实施例提供的一种场景示意图;
图11B为本申请实施例提供的另一种场景示意图;
图12为本申请实施例提供的另一种MIC切换方法流程图;
图13为本申请实施例提供的另一种MIC切换方法流程图;
图14为本申请实施例提供的另一种MIC切换方法流程图;
图15为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
如图1所示,本申请实施例提供的配对连接方法可以应用于电子设备01和至少一个外接设备02所组成的系统。在该系统中,电子设备01与外接设备02之间以无线方式连接。其中,该无线方式可以是蓝牙(bluetooth,BT),无线保真(wireless fidelity,Wi-Fi)网络,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等连接。例如,电子设备01可以是手机、媒体播放器(例如 MP3、MP4等)平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、个人数字助理(personal digital assistant,PDA)、电视等设备。例如,外接设备02可以是无线耳机,无线音箱,无线手环,无线车载,无线智能眼镜,增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本申请实施例对此不做任何限制。其中,无线耳机可以是头戴式耳机、耳塞式或其他便携式收听设备。
其中,外接设备02可以包括配对使用的第一主体021和第二主体022,第一主体021和第二主体022之间相互配合、协同工作。例如,例如,外接设备02可以是耳塞式TWS耳机,TWS耳机可以包括配对使用的左耳塞(通常标识有“L”)和右耳塞(通常标识有“R”),左耳塞和右耳塞用于立体声播放,左耳塞可以用于播放音频数据的左声道信号,右耳塞可以用于同步播放该音频数据的右声道信号。再例如,外接设备02可以是无线音箱,无线音箱可以包括配对使用的左声道音箱和右声道音箱,左耳塞和右耳塞用于立体声播放,左声道音箱可以用于播放音频数据的左声道信号,右声道音箱可以用于同步播放该音频数据的右声道信号。
在图1所示的系统中,电子设备01是以手机为例,外接设备02是以TWS耳机为例,第一主体021和第二主体022是以左、右耳塞为例进行说明的。可以理解的是,该系统中的电子设备01和外接设备02,还可以是其他设备,本申请实施例对此不做任何限制。
示例性的,当电子设备01为手机100时,图2示出了手机100的结构示意图。手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现手机100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话等功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。I2S接口和PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现手机100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现手机100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被 配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为手机100充电,也可以用于手机100与外接设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他手机,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机100的结构限定。在本申请另一些实施例中,手机100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过手机100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为手机供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于 处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在手机100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
例如,在本申请实施例中,手机100可以利用无线通信模块160,通过无线通信技术(如蓝牙),建立与外接设备建立无线连接。基于建立的无线连接,手机可以与外接设备交互音频(audio)数据、控制数据等。其中,该音频数据可以包括媒体(media)数据、语音(voice)数据等。例如,手机100可以接收外接设备TWS耳机采集的用户的语音数据。再例如,手机100还可以向外接设备发送音乐媒体数据,以使得外接设备发送播放音乐。
在一些实施例中,手机100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。
手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。手机100可以支持一种或多种视频编解码器。这样,手机100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,通过无线通信模块160分别建立与外接设备的两个主体之间的无线配对连接,以及与外接设备进行短距离数据交换,以通过外接设备实现语音通话,以及播放音乐等功能。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
在本申请实施例中,手机100可以采用无线通信技术(如蓝牙)分别建立与外接设备两个主体之间的无线连接。在建立无线连接后,手机100可以将外接设备的蓝牙地址存储在内部存储器121中。在一些实施例中,当外接设备为包含两个主体的设备, 如TWS耳机时,TWS耳机的左右耳塞分别有各自的蓝牙地址,手机100可以将TWS耳机的左右耳塞的蓝牙地址关联存储在内部存储器121中,以便将TWS耳机的左右耳塞作为一对设备使用。
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机100可以设置至少一个麦克风170C。在另一些实施例中,手机100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动手机平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
在本申请实施例中,当手机100与外接设备,如TWS耳机建立了无线连接时,TWS耳机可以作为手机100的音频输入/输出设备使用。示例性的,音频模块170可以接收无线通信模块160传递的音频电信号,实现通过TWS耳机接打电话、视频通话、播放音乐等功能。例如,在用户打电话的过程中,TWS耳机可以通过一个耳塞的麦克风采集用户的语音数据,并转换为音频电信号后发送给手机100的无线通信模块160,从而为电话业务提供语音数据。当该耳塞出现出耳、断链等问题时,手机可以切换到另一耳塞的麦克风为电话业务提供语音数据。具体的,无线通信模块160将该音频电信号传输给音频模块170。音频模块170可以将接收到的音频电信号转换为数字音频信号,并进行编码后传递至移动通信模块150。由移动通信模块150传输至通话对端设备,以实现通话。
又例如,用户在使用手机100的媒体播放器播放音乐时,应用处理器可以将媒体播放器播放的音乐对应的音频电信号传输至音频模块170。由音频模块170将该音频电信号传输至无线通信模块160。无线通信模块160可以将音频电信号发送给TWS耳机,以便TWS耳机将该音频电信号转换为声音信号后播放。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如 电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。手机100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,手机100根据压力传感器180A检测触摸操作强度。手机100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定手机100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测手机100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消手机100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,手机100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。手机100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当手机100是翻盖机时,手机100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。还可以用于识别手机姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。手机100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,手机100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。手机100通过发光二极管向外发射红外光。手机100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定手机100附近有物体。当检测到不充分的反射光时,手机100可以确定手机100附近没有物体。手机100可以利用接近光传感器180G检测用户手持手机100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。手机100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测手机100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,手机100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,手机100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,手机100对电池142加热,以避免低温导致手机100异常关机。在其他一些实施例中,当温度低于又一阈值时,手机100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音数据,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。手机100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。手机100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机100中,不能和手机100分离。
示例性的,当外接设备02为TWS耳机时,图3A示出了一种TWS耳机的其中一个主体,即耳塞(左耳塞或右耳塞)的结构示意图。如图3A所示,TWS耳机的耳塞可以包括:处理器301、存储器302、传感器303、无线通信模块304、受话器305、 麦克风306以及电源307。
其中,存储器302可以用于存储应用程序代码,如用于与TWS耳机的另一只耳塞建立无线连接,以及使得耳塞与上述电子设备01进行配对连接的应用程序代码。
处理器301可以控制执行上述应用程序代码,以实现本申请实施例中TWS耳机的耳塞的功能。例如,实现TWS耳机的每只耳塞分别与电子设备01之间的无线配对连接。
存储器302中还可以存储有用于唯一标识该耳塞的蓝牙地址,以及存储有TWS耳机的另一只耳塞的蓝牙地址。另外,该存储器302中还可以存储有与该耳塞之前成功配对过的电子设备01的配对历史。例如,该配对历史可以包括与该耳塞成功配对过的电子设备01的蓝牙地址。基于该配对历史,该耳塞能够自动回连至已配对的giant电子设备01。上述蓝牙地址可以为媒体访问控制(media access control,MAC)地址。
传感器303可以为距离传感器或接近光传感器。耳塞可以通过该传感器303确定是否被用户佩戴。例如,耳塞可以利用接近光传感器来检测耳塞附近是否有物体,从而确定耳塞是否被用户佩戴。在确定耳塞被佩戴时,耳塞可以打开受话器305。在一些实施例中,该耳塞还可以包括骨传导传感器,结合成骨传导耳机。利用该骨传导传感器,耳塞可以获取声部振动骨块的振动信号,解析出语音数据,实现语音功能。在另一些实施例中,该耳塞还可以包括触摸传感器,用于检测用户的触摸操作。在另一些实施例中,该耳塞还可以包括指纹传感器,用于检测用户指纹,识别用户身份等。在另一些实施例中,该耳塞还可以包括环境光传感器,可以根据感知的环境光的亮度,自适应调节一些参数,如音量大小。
无线通信模块304,用于支持TWS耳机的耳塞与各种电子设备01,如上述电子设备01之间的短距离数据交换。在一些实施例中,该无线通信模块304可以为蓝牙收发器。TWS耳机的耳塞可以通过该蓝牙收发器与上述电子设备01之间建立无线连接,以实现两者之间的短距离数据交换。
至少一个受话器305,也可以称为“听筒”,可以用于将音频电信号转换成声音信号并播放。例如,当TWS耳机的耳塞作为上述电子设备01的音频输出设备时,受话器305可以将接收到的音频电信号转换为声音信号并播放。
至少一个麦克风306,也可以称为“话筒”,“传声器”,用于将声音信号转换为音频电信号。例如,当TWS耳机的耳塞作为上述电子设备01的音频输入设备时,在用户说话(如通话或发语音消息)的过程中,麦克风306可以采集用户的语音数据,并将其转换为音频电信号,提供给电子设备01进行语音业务处理。上述音频电信号即为本申请实施例中的音频数据。当该耳塞的麦克风出现出耳、断链等问题时,该耳塞可以根据电子设备01的指示,停止向电子设备01的语音业务提供语音数据。再例如,当另一个耳塞出现出耳、断链等问题时,该耳塞可以根据电子设备01的指示,通过麦克风306为电子设备的语音业务提供语音数据。
电源307,可以用于向TWS耳机的耳塞包含的各个部件供电。在一些实施例中,该电源307可以是电池,如可充电电池。
通常,TWS耳机会配有一耳机盒(如,图3B中所示的023)。该耳机盒可以用于收纳TWS耳机的左右耳塞。如结合图3A,如图3B所示,该耳机盒023可以用于 收纳TWS耳机的左耳塞022和右耳塞021。在一些实施例中,该耳机盒023上可以设置有至少一个触摸控件024,可以用于触发TWS耳机与新的电子设备01进行配对,或者触发TWS耳机的两只耳塞之间的重新配对等操作。该耳机盒023上还可以设置有充电口025,用于耳机盒自身进行充电。可以理解的是,该耳机盒023上还可以包括其他控件,此处不再一一说明。另外,该耳机盒023还可以为TWS耳机的左右耳塞充电。相应的,在一些实施例中,上述TWS耳机的耳塞还可以包括:输入/输出接口308。
输入/输出接口308可以用于提供TWS耳机的耳塞与耳机盒(如上述耳机盒023)之间的任何有线连接。在一些实施例中,输入/输出接口308可以为电连接器。当TWS耳机的耳塞置于耳机盒中时,TWS耳机的耳塞可以通过该电连接器与耳机盒(如与耳机盒包括的输入/输出接口)电连接。在该电连接建立后,耳机盒可以为TWS耳机的耳塞的电源307充电。在该电连接建立后,TWS耳机的耳塞还可以与耳机盒进行数据通信。例如,TWS耳机的耳塞可以通过该电连接接收来自耳机盒的配对指令。该配对命令用于指示TWS耳机的耳塞打开无线通信模块304,从而使得TWS耳机的耳塞可以采用对应的无线通信协议(如蓝牙)与电子设备01进行配对连接。
当然,上述TWS耳机的耳塞还可以不包括输入/输出接口308。在这种情况下,耳塞可以基于通过上述无线通信模块304与耳机盒建立的无线连接,实现充电或者数据通信功能。
另外,在一些实施例中,耳机盒(如上述耳机盒023)还可以包括处理器,存储器等部件。该存储器可以用于存储应用程序代码,并由耳机盒的处理器来控制执行,以实现耳机盒的功能。例如。当用户打开耳机盒的盒盖时,耳机盒的处理器通过执行存储在存储器中的应用程序代码,可以响应于用户打开盒盖的操作向TWS耳机的耳塞发送配对命令等。
可以理解的是,本申请实施例示意的结构并不构成对TWS耳机的耳塞的具体限定。其可以具有比图3A中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。例如,该耳塞还可以包括指示灯309(可以指示耳塞的电量等状态)、显示屏310(可以提示用户相关信息)、防尘网(可以配合听筒使用)、马达等部件。图3A中所示出的各种部件可以在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
示例性的,图3C提供了一种右耳塞021的结构示意图,可以包括受话器305,麦克风306,输入/输出接口308,指示等309、显示屏310,以及触摸键311和接近光传感器312等。该触摸键311与触摸传感器配合使用,用于触发暂停、播放、录音、开启麦克风、关闭麦克风等操作。
需要说明的是,TWS耳机的左右耳塞的结构可以相同。例如,TWS耳机的左右耳塞可以都包括图3A中所示的部件。或者,TWS耳机的左右耳塞的结构也可以不同。例如,TWS耳机的一只耳塞(如右耳塞)可以包括图3A中所示的部件,而另一只耳塞(如左耳塞)可以包括图3A中除麦克风306之外的其他的部件。
还需要说明的是,图3A、图3B、图3C所示的结构仅为示例性说明,并不作为对TWS耳机和耳机盒结构或功能的限定。
本申请以下实施例将以手机为电子设备01,TWS耳机为外接设备02,手机01和 TWS耳机02之间以蓝牙方式建立连接为例,对本申请实施例提供的MIC切换方法进行阐述。
目前,TWS耳机与手机之间的蓝牙连接方案主要有监听方案、转发方案、近场磁感应(near field magnetic induction,NFMI)方案和双发方案(或称双连接方案)等。
其中,在监听方案中,TWS耳机可以包括主耳塞和副耳塞,手机和主耳塞建立蓝牙连接,完成音频数据到主耳塞的发送,并完成手机和TWS耳机触发的业务动作(比如,播放、暂停、切换到上一首、切换到下一首等);双耳塞之间建立有蓝牙连接,完成双耳塞之间的信息同步;副耳塞通过监听主耳塞和手机之间的蓝牙链路获取音频数据。
在转发方案中,TWS耳机可以包括主耳塞和副耳塞,手机和主耳塞之间建立蓝牙连接,完成音频数据到主耳塞的发送,并完成手机和TWS耳机触发的业务动作;双耳塞之间建立有蓝牙连接,完成双耳塞之间的信息同步,主耳塞通过与副耳塞之间的蓝牙链路向副耳塞转发音频数据。
在NFMI方案中,TWS耳机可以包括主耳塞和副耳塞,手机和主耳塞之间建立蓝牙连接,完成音频数据到主耳塞的发送,并完成手机和TWS耳机触发的业务动作;双耳塞之间建立有NFMI连接,完成双耳塞之间的信息同步,主耳塞通过与副耳塞之间的NFMI链路向副耳塞转发音频数据。
其中,在监听方案、转发方案和NFMI方案中,由于手机只与主耳塞之间建立了蓝牙连接,并与主耳塞之间交互音频数据;而手机并未与副耳塞之间建立蓝牙连接,且并不与副耳塞之间交互音频数据,因而这些连接方案也可以称为单发方案。
参见图4,在双发方案中,手机分别与TWS的两只耳塞建立蓝牙连接,从而分别通过与TWS的两只耳塞之间的蓝牙链路交互音频数据、业务控制数据等,实现音频数据播放和业务动作控制等操作。TWS的两只耳塞之间可以保持无线连接,也可以断开无线连接。其中,关于双发方案的具体说明可以参见申请号为PCT/CN2018/118783、PCT/CN2018/118730以及PCT/CN2018/118791的申请文件中的相关描述。
本申请以下实施例主要以手机和TWS耳机之间通过双发连接为例进行说明。
TWS耳机可以通过与手机之间的蓝牙双发连接交互音频(audio)数据,该音频数据可以包括媒体(media)数据和语音(voice)数据等。例如,TWS耳机可以为用户播放音乐、录音、视频文件中的声音等媒体数据;在电话、音频通话、视频通话场景下,可以播放来电提示音、播放通话对端的语音数据,并采集用户的语音数据发送给手机;在游戏场景下,可以播放背景音乐、游戏提示音、游戏队友的语音数据等,并采集用户的语音数据发送给手机;在微信语音消息场景下,可以播放语音消息,采集用户录制的语音数据并发送给手机;在语音助手等场景下,可以采集用户的语音数据发送给手机。
具体的,TWS耳机的左耳塞和右耳塞上都设置有MIC,该MIC可以用于在语音业务中采集用户的语音数据,并发送给手机进行语音业务处理。例如,在电话业务、微信音视频聊天业务、微信语音消息业务等语音业务中,耳塞上的MIC可以用于采集用户的语音数据,并通过手机进行处理后发送给对端;还可以用于采集用户指示拨打/接通电话、接通音视频通话等的语音指令,并发送给手机。再例如,在语音控制业务 (例如语音助手业务)中,耳塞上的MIC可以用于采集用户的语音指令并发送给手机,例如指示打开某个APP,指示开始播放音乐、指示播放下一首音乐,指示暂停播放音乐等。再例如,在游戏业务中,耳塞上的MIC可以用于采集用户的语音数据,并通过手机发送给游戏队友。可以理解的是,语音业务还可以包括其他业务场景,本申请实施例不予限定。
为了降低手机的功耗、资源、占空比等,手机通常只会采用一只TWS耳塞的MIC发送的语音数据进行语音业务处理。
本申请以下实施例主要以语音业务为电话业务为例进行说明。参见图5,该方法可以包括:
500、手机建立与每只TWS耳塞之间的蓝牙连接,并同时保持该两路蓝牙连接。
TWS耳机可以包括第一耳塞和第二耳塞,手机可以建立与第一耳塞之间的第一蓝牙连接,以及手机与第二耳塞之间的第二蓝牙连接,并同时保持这两路蓝牙连接。即,手机与TWS耳机之间建立了双发连接。在建立双发连接之后,手机可以通过第一蓝牙连接向第一耳塞发送音频数据,通过第二蓝牙连接向第二耳塞发送音频数据,并使得第一耳塞和第二耳塞能够同步播放音频数据。
501、手机启动电话业务。
在用户希望接打电话时,手机可以先建立与TWS耳机之间的双发连接,而后手机可以开启电话业务(例如打电话或者接电话),从而使用TWS耳机接打电话。
示例性的,在图6中的(a)所示的电话业务场景下,如图6中的(b)所示,用户可以使用TWS耳机接打电话。
在电话业务场景下,第一耳塞可以通过第一蓝牙连接接收手机发送的电话对端的语音数据,第二耳塞可以通过第二蓝牙连接接收手机发送的电话对端的语音数据,用户通过第一耳塞和第二耳塞都能接听到电话对端的语音数据。并且,TWS耳机的MIC还可以采集本地用户的语音数据并发送给手机,手机对用户的语音数据进行处理后发送给对端。
或者,手机也可以先启动电话业务,并采用听筒等其他方式接打电话;在手机建立与TWS耳机之间的双发连接之后,手机再切换为通过TWS耳机接打电话。示例性的,在图6中的(c)所示的电话业务场景下,用户使用听筒接听电话;用户还可以点击控件601以切换接听方式;当用户点击图6中的(d)所示的控件602选择TWS耳机方式接听后,手机可以建立与TWS耳机之间的双发连接,而后参见图6中的(b),用户可以使用TWS耳机接打电话。
502、手机接收第一耳塞的MIC采集到的语音数据。
在手机建立与TWS耳机之间的双发连接并启动电话业务后,手机可以根据预设策略确定一个目标耳塞(左耳塞或右耳塞),而后通过与目标耳塞之间的蓝牙连接接收目标耳塞发送的,目标耳塞的MIC采集到的语音数据。
其中,该预设策略可以有多种。例如,默认TWS耳机的右耳塞为目标耳塞,耳塞可以上报标识给手机以表明自己是左耳塞还是右耳塞,手机根据该标识确定标识自己为右耳塞的耳塞为目标耳塞。
再例如,先从耳机盒中拿出的耳塞为目标耳塞。耳塞出盒时可以通知手机,手机 确定先接收到出盒通知的耳塞为目标耳塞。其中,置于耳机盒中的TWS耳机与耳机盒保持接触或电连接;当耳塞从耳机盒中拿出后,耳塞与耳机盒分离。
再例如,先入耳的耳塞为目标耳塞。耳塞可以通过接近光传感器、环境光传感器或距离传感器确定是否入耳;若确定入耳,则耳塞向手机发送入耳通知,以表明该耳塞已入耳,手机可以确定先发送入耳通知的耳塞为目标耳塞。
再例如,用户可以指示目标耳塞为左耳塞还是右耳塞。比如,手机的显示屏上可以分别显示两个耳塞,用户可以选择一个作为目标耳塞;再比如,用户可以通过手机的MIC或者通过耳塞的MIC语音指示其中一个耳塞为目标耳塞;再比如,若一个耳塞检测到用户在自身的第一控件的触摸操作,则将该操作上报给手机,手机确定该耳塞为目标耳塞。
再例如,TWS耳机中的两只耳塞中,先与手机建立连接的耳塞可以为目标耳塞。
再例如,在建立双发连接后,手机可以通过第一蓝牙连接获知第一耳塞的电量,通过第二蓝牙连接获知第二耳塞的电量,从而确定TWS耳机中电量较大的耳塞为目标耳塞。
再例如,在建立双发连接后,TWS耳机中与手机之间的蓝牙链路的信道质量高的耳塞为目标耳塞。
若手机确定第一耳塞为目标耳塞,则手机可以通过与第一耳塞之间的第一蓝牙连接接收第一耳塞发送的,第一耳塞的MIC采集到的语音数据。
503、手机根据第一耳塞的MIC采集到的语音数据进行电话业务处理。
手机在接收第一耳塞的MIC采集到的语音数据后,可以根据该语音数据进行电话业务处理。例如,对该语音数据进行编码、压缩等处理,并发送给对端设备。
在步骤503之后,该方法还可以包括:
504、若第一耳塞满足切换条件,则手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
在手机根据第一耳塞的MIC采集到的语音数据进行电话业务处理时,若第一耳塞满足切换条件,则可以表明第一耳塞出现了问题,第一耳塞的MIC可能无法正常为手机的电话业务提供语音数据。手机可以切换到通过第二耳塞的MIC来为电话业务提供语音数据,从而根据第二耳塞的MIC采集的语音数据进行电话业务处理。其中,关于切换条件的具体说明可以参见以下实施例中的描述。
在建立手机与TWS耳机的双发连接并开启电话业务后,手机可以确定并记录第一耳塞和第二耳塞的MIC处于开启状态还是关闭状态。并且,在第一耳塞和第二耳塞的MIC的开启/关闭状态发生变化时可以通知给手机,手机可以记录变化后的第一耳塞和第二耳塞的MIC的开启/关闭状态。
在第一耳塞的MIC为手机的语音业务提供语音数据时,若第一耳塞的MIC处于开启状态,第二耳塞的MIC处于关闭状态,则执行以下情况1描述的MIC切换过程;若第一耳塞和第二耳塞的MIC均处于开启状态,则执行以下情况2描述的MIC切换过程。
情况1:在手机根据第一耳塞的MIC采集的语音数据进行电话业务处理时,第二耳塞的MIC处于关闭状态。
其中,在手机与第一耳塞和第二耳塞建立蓝牙连接后,第一耳塞的MIC和第二耳塞的MIC可以默认处于开启状态,手机可以指示关闭第二耳塞的MIC,保持第一耳塞的MIC为开启状态,从而使用第一耳塞的MIC为电话业务提供语音数据。或者,手机可以指示其中一个耳塞为第一耳塞,第一耳塞的MIC为开启状态;手机可以指示另一个耳塞为第二耳塞,第二耳塞自动关闭MIC。
或者,在手机与第一耳塞和第二耳塞建立蓝牙连接后,第一耳塞和第二耳塞的MIC可以默认处于关闭状态,手机可以指示打开第一耳塞的MIC,保持第二耳塞的MIC为关闭状态,从而使用第一耳塞的MIC为电话业务提供语音数据。或者,手机可以指示其中一个耳塞为第一耳塞,第一耳塞自动打开MIC;手机可以指示另一个耳塞为第二耳塞,第二耳塞保持关闭。
在一实施例中,步骤504中的第一耳塞满足切换条件包括第一耳塞满足第一预设条件。即,参见图5,步骤504具体可以包括:
504A、若第一耳塞满足第一预设条件,则手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
其中,该第一预设条件可以包括以下一种或多种:出耳(脱离耳朵),出耳的时间大于或者等于第一预设值,与手机断链(即与手机断开蓝牙连接),电量小于第二预设值,与手机之间的链路的信道质量低于第三预设值,或者在预设时长内未播放(对端的)语音数据且(该耳塞的MIC)未采集到(本地用户的)语音数据等。其中,用于表示信道质量的参数可以有多种,例如丢包率、错包率、信噪比、QoS参数、信道质量指示(channel quality indicator,CQI)参数等中的一个或多个。
若第一耳塞满足第一预设条件,则可以表明第一耳塞出现了问题,第一耳塞的MIC可能无法正常为手机的电话业务提供语音数据。此时不论第二耳塞是否也出现与第一耳塞相同的问题,均可以切换到通过第二耳塞的MIC向手机的电话业务提供语音数据,以使得手机能够正常或更好地处理电话业务。
其中,对于出耳检测,耳塞可以通过距离传感器或接近光传感器等确定是否已脱离耳朵,若脱离耳朵则上报给手机。对于断链检测,耳塞可以向手机发送重置(reset)或拆开(detach)等指示断开连接的信息,以表示与手机断开连接;或者手机也可以自行检测到是否与耳塞断开连接。对于信道参数,耳塞可以测量与手机之间的链路的信道参数,并将信道参数上报给手机;或者,手机也可以自己检测与耳塞之间链路的信道参数。对于电量,耳塞可以将自己的电量上报给手机。对于耳塞是否检测到语音数据,若耳塞在预设时长内未检测到语音数据,则可以将该事件上报给手机;或者,手机自己可以确定在预设时长内是否接收到耳塞发送的语音数据。上述手机收到耳塞的上报消息后可以向耳塞返回确认消息,通知耳塞手机已收到上报消息。
示例性的,第一预设条件为第一耳塞断链。若第一耳塞断链,则不论第二耳塞处于何种状态,均切换到通过第二耳塞的MIC为手机的电话业务提供语音数据。
再示例性的,第一预设条件为第一耳塞出耳。若第一耳塞出耳,则不论第二耳塞处于何种状态,均切换到通过第二耳塞的MIC为手机的电话业务提供语音数据。
并且,当第一耳塞满足第一预设条件时,手机或TWS耳机还可以通过显示、声音、振动、指示灯等方式,提示用户第一耳塞出现了问题。示例性的,第一耳塞为右耳塞, 在第一耳塞断链时,参见图7,手机通过提示框701提示用户“右耳塞已与手机断开蓝牙连接”。
上述手机切换到通过第二耳塞的MIC来为电话业务提供语音数据是指,手机指示TWS耳机切换到通过第二耳塞的MIC为电话业务提供语音数据。以下以第一预设条件为第一耳塞出耳为例,对手机指示TWS耳机进行切换的方式进行举例说明。
在一种方案中,当第一耳塞出耳时,手机可以自动指示切换/自动控制切换为通过第二耳塞的MIC为电话业务提供语音数据。
示例性的,在第一耳塞出耳(即满足第一预设条件),手机可以自动指示第二耳塞打开MIC,并接收第二耳塞的MIC采集的语音数据,根据该语音数据进行电话业务处理,并指示第一耳塞关闭MIC。
在另一种方案中,当第一耳塞出耳时,手机也可以提示用户是否进行切换,在检测到用户的切换指令后,手机再指示TWS耳机切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
示例性的,参见图8,第一耳塞为右耳塞,第二耳塞为左耳塞,手机通过提示框801提示用户是否切换为通过第二耳塞的MIC为手机的电话业务提供语音数据,若手机检测到用户在显示屏上点击“是”的操作,或者手机的MIC检测到用户指示切换的语音数据,则手机指示第二耳塞打开MIC,并指示第一耳塞关闭MIC。
再示例性的,第一耳塞为右耳塞,第二耳塞为左耳塞。参见图9中的(a),手机通过第一耳塞和/或第二耳塞以声音的方式提示用户,是否切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。若第一耳塞的MIC检测用户输入的语音切换指令则发送给手机,手机指示第二耳塞打开MIC,并指示第一耳塞关闭MIC。或者,参见图9中的(b),若手机通过自身的MIC检测到输入的语音切换指令,则手机指示第二耳塞打开MIC,并指示第一耳塞关闭MIC。
其中,手机自动指示切换/自动控制切换或手机根据用户的指令指示切换为第二耳塞的MIC,均可以称为手机切换。本申请实施例主要以手机切换为例进行说明。
在情况1中,参见图10,上述步骤504A具体可以包括:
1001A、若第一耳塞满足第一预设条件,则手机指示第二耳塞打开MIC,以使得第二耳塞的MIC由关闭状态切换为开启状态。
在第二耳塞根据手机的指示打开MIC后,可以向手机发送通知消息以使得手机获知并记录第二耳塞的MIC已切换为开启状态。
1002、手机接收第二耳塞的MIC采集的语音数据。
具体的,手机可以通过与第二耳塞之间的第二蓝牙连接接收第二耳塞发送的,第二耳塞的MIC采集的语音数据。
1003、手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
1004、手机指示第一耳塞关闭MIC。
在步骤1004中,在手机指示第一耳塞关闭MIC后,手机仍然可以向第一耳塞发送音频数据,用户仍然可以通过第一耳塞听到电话对端的语音数据。需要说明的是,若第一预设条件包括第一耳塞断链,则在步骤1001A之后,手机可以不用执行步骤1004,第一耳塞可以自行关闭MIC。
步骤1001A之后,手机可以接收第二耳塞发送的第二耳塞的MIC已开启的消息,手机在接收到第二耳塞的MIC已开启的消息后,指示第一耳塞关闭MIC。
或者手机在接收到第二耳塞的MIC采集的语音数据后指示第一耳塞关闭MIC。
在第一耳塞关闭MIC后,可以向手机发送通知消息以使得手机获知并记录第一耳塞的MIC已切换为关闭状态。
在情况1中,在由第一耳塞的MIC切换为第二耳塞的MIC为手机的电话业务提供语音数据时,可以先打开第二耳塞的MIC,再关闭第一耳塞的MIC,这样可以保证用户的语音数据能够不间断地提供给手机,避免语音数据的中断。并且,切换后及时关闭第一耳塞的MIC,还可以节省第一耳塞的功耗。
在另一实施例中,步骤504中的第一耳塞满足切换条件可以包括,第一耳塞满足第一预设条件且第二耳塞满足第二预设条件。即,参见图5,步骤504具体可以包括:
504B、若第一耳塞满足第一预设条件,且第二耳塞满足第二预设条件,则手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
相应地,参见图10,上述步骤1001A-1003中的步骤1001A可以替换为:
1001B、若第一耳塞满足第一预设条件,且第二耳塞满足第二预设条件,则手机指示第二耳塞打开MIC,以使得第二耳塞的MIC由关闭状态切换为开启状态。
其中,第二预设条件可以包括以下一种或多种:入耳(在耳朵中),与手机保存蓝牙连接,电量大于或者等于第二预设值,与手机之间的链路的信道质量高于或者等于第三预设值等。
当第一耳塞满足第一预设条件时,可以表明第一耳塞出现了问题,第一耳塞的MIC可能无法正常为手机的电话业务提供语音数据。若第二耳塞满足第二预设条件,则可以表明第二耳塞的MIC可能能够正常为手机的电话业务提供语音数据,因而手机可以切换到通过第二耳塞的MIC来为电话业务提供语音数据,从而根据第二耳塞的MIC采集的语音数据进行电话业务处理。其中,手机可以切换到通过第二耳塞的MIC来为电话业务提供语音数据是指,手机指示TWS耳机切换到通过第二耳塞的MIC为电话业务提供语音数据。
在该实施例中,若第一耳塞满足第一预设条件,第二耳塞不满足第二预设条件,则可以继续使用第一耳塞的MIC为手机的电话业务提供语音数据。或者,若第一耳塞满足第一预设条件,第二耳塞不满足第二预设条件,则可以通过手机或TWS耳机提示用户TWS耳机出现了问题,并停止使用TWS耳机为手机的电话业务提供语音数据。
在一具体实施例中,若第一耳塞满足第一预设条件,则可以表明第一耳塞出现了问题,此时不论第二耳塞是否也出现与第一耳塞相同的问题,只要第二耳塞满足第二预设条件,该第二预设条件为与手机保持蓝牙连接,则均可以切换到通过另一只耳塞的MIC向手机的电话业务提供语音数据,以使得手机能够正常或更好地处理电话业务。
也就是说,当第一耳塞满足第一预设条件,出现出耳、断链、低电量、信道质量差或在预设时长内未播放语音数据且未采集到语音数据等问题时,如果第二耳塞与手机保持蓝牙连接,则手机可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。如果第二耳塞与手机已经断链,则手机不切换MIC,仍采用第一耳塞的MIC为手机的电话业务提供语音数据。
例如,第一预设条件包括第一耳塞与手机断链,第二预设条件为第二耳塞与手机保持蓝牙连接。当第一耳塞与手机断链,第一耳塞的MIC无法正常为手机的电话业务提供语音数据;此时,若第二耳塞与手机保持蓝牙连接,则手机可以切换到第二耳塞的MIC为电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞在预设时长内未播放语音数据且未采集到语音数据,第二预设条件包括第二耳塞与手机保持蓝牙连接。其中,预设时长可以根据实际需要进行设置,例如可以为10秒。若第一耳塞的MIC在预设时长内未播放对端的语音数据,则可能本地用户正在说话,若手机在该预设时长内未采集到语音数据,手机在预设时长内未接收到第一耳塞的MIC提供的语音数据,则第一耳塞的MIC可能损坏或者第一耳塞可能损坏从而无法正常使用。此时,若第二耳塞与手机保持蓝牙连接,则手机可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞与手机之间的链路的信道质量低于第三预设值,第二预设条件包括第二耳塞与手机保持蓝牙连接。当第一耳塞与手机之间的链路的信道质量低于第三预设值时,第一耳塞为手机的电话业务提供的语音数据的质量较低。此时,若第二耳塞与手机保持蓝牙连接,则手机可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞出耳,且第一耳塞与手机之间的链路的信道质量低于第三预设值;第二预设条件包括第二耳塞与手机保持蓝牙连接。当第一耳塞出耳,且第一耳塞与手机之间的链路的信道质量低于第三预设值时,例如用户可能将第一耳塞的MIC放在嘴边讲话,但第一耳塞的MIC为手机的电话业务提供的语音数据的质量较低。此时,若第二耳塞与手机保持蓝牙连接,此时,若第二耳塞与手机保持蓝牙连接,则手机可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞的电量小于第二预设值,第二预设条件包括第二耳塞与手机之间保持蓝牙连接。在第一耳塞的电量小于第二预设值时,第一耳塞的电量较低,第一耳塞随时可能停止工作,第一耳塞的MIC可能无法正常为手机的电话业务提供语音数据。在一种方案中,第一耳塞可以在电量小于第二预设值时,上报给手机;在另一种方案中,手机可以监测第一耳塞的电量,从而方便获知第一耳塞的电量是否小于第二预设值。此时,若第二耳塞与手机保持蓝牙连接,则手机可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
在另一具体实施例中,若第一耳塞满足第一预设条件,则可以表明第一耳塞出现了问题,可能无法正常为手机的电话业务提供语音数据。此时,若第二耳塞没有出现同样的问题,则可以切换到通过第二耳塞的MIC为手机的电话业务提供语音数据。其中,当第一耳塞满足第一预设条件,第二耳塞满足第二预设条件,第二预设条件包括第一子条件,第一子条件为第一预设条件相反的条件时,第二耳塞没有出现与第一耳塞相同的问题。
并且,第二预设条件还可以包括第二子条件,第二子条件为第二耳塞与手机保持蓝牙连接。其中,第一子条件可以包括以下至少一种:为入耳状态(即置于耳中的状态),电量大于或者等于第二预设值,与手机之间的链路的信道质量高于或者等于第三预设值,在预设时长内采集到语音数据。
例如,第一预设条件包括第一耳塞出耳,第二预设条件包括第二耳塞与手机保持蓝牙连接,且第二耳塞为入耳(放入耳朵中)状态。若第一耳塞出耳,则第一耳塞可能不小心掉落,或者用户可能从耳朵中拿出了第一耳塞,第一耳塞可能无法正常为手机的语音业务提供语音数据。若第二耳塞与手机保持蓝牙连接,且第二耳塞为入耳状态,即第二耳塞仍在耳朵中,则手机可以切换为通过第二耳塞的MIC为手机的语音业务提供语音数据。
再例如,第一预设条件包括第一耳塞出耳,第二预设条件包括第二耳塞与手机之间保持蓝牙连接,第二耳塞为入耳状态,且第二耳塞的电量大于或者等于第二预设值。也就是说,若第一耳塞出耳,则第一耳塞可能不小心掉落,或者用户可能从耳中拿出了第一耳塞,第一耳塞可能无法正常为手机的电话业务提供语音数据。此时,若第二耳塞与手机保持蓝牙连接,第二耳塞仍在耳中,且第二耳塞的电量大于或者等于第二预设值(即第二耳塞的电量充足),则手机可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞的电量小于第二预设值,第二预设条件包括第二耳塞与手机之间保持蓝牙连接,且第二耳塞的电量大于或者等于第二预设值。在第一耳塞的电量小于第二预设值时,第一耳塞的电量较低,第一耳塞随时可能停止工作,第一耳塞的MIC可能无法正常为手机的电话业务提供语音数据。此时,若第二耳塞与手机保持蓝牙连接,且第二耳塞的电量大于或者等于第二预设值,则第二耳塞的电量充足,手机可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞的电量小于第二预设值,第二预设条件包括第二耳塞与手机之间保持蓝牙连接,第二耳塞的电量大于或者等于第二预设值,且第二耳塞与手机之间的链路的信道质量高于或者等于第三预设值。在第一耳塞的电量较低时,第一耳塞的MIC可能无法正常为手机的电话业务提供语音数据。若第二耳塞与手机保持蓝牙连接,且第二耳塞电量充足,并且第二耳塞与手机之间的链路的信道质量较高,则手机可以切换为通过第二耳塞的MIC为手机的电话业务提供质量更高的语音数据。
再例如,第一预设条件包括第一耳塞的电量小于第二预设值,且第二耳塞与手机之间的链路的信道质量低于第三预设值。第二预设条件包括第二耳塞与手机之间保持蓝牙连接,第二耳塞的电量大于或者等于第二预设值,且第二耳塞与手机之间的链路的信道质量高于或者等于第三预设值。也就是说,如果第一耳塞的电量较低,且第二耳塞与手机之间的链路的信道质量较低,则第一耳塞的MIC可能不适于继续为手机的电话业务提供语音数据。此时,若第二耳塞与手机保存蓝牙连接,第二耳塞的电量充足,且第二耳塞与手机之间的链路的信道质量较高,则可以切换到第二耳塞的MIC更好地为手机的电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞的出耳时间大于或者等于第一预设值,第二预设条件包括第二耳塞与手机保持蓝牙连接,且第二耳塞为入耳状态。若第一耳塞出耳时间大于或者等于第一预设值,则第一耳塞可能掉落时间较长,或者用户不想再使用第一耳塞,第一耳塞的MIC无法正常为手机的电话业务提供语音数据。若第二耳塞与手机保持蓝牙连接,且第二耳塞仍在耳中,则手机可以切换为通过第二耳塞的MIC 为手机的电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞出耳,且第一耳塞与手机之间的链路的信道质量低于第三预设值。第二预设条件包括第二耳塞与手机之间保持蓝牙连接,第二耳塞与手机之间的链路的信道质量的高于或者等于第三预设值。也就是说,如果第一耳塞不在耳中,但第一耳塞的MIC采集到了语音数据,且第一耳塞与手机之间的链路的信道质量较差,则可能用户正在将第一耳塞放在嘴边讲话,但第一耳塞的MIC无法为手机提供质量较好的语音数据。如果第二耳塞与手机之间的链路的信道质量较高,则第二耳塞的MIC可以较好地为手机的电话业务提供语音数据,因而可以切换到第二耳塞的MIC来提供语音数据。
在另一实施例中,步骤504中的第一耳塞满足切换条件可以包括,第一耳塞的状态参数差于第二耳塞的状态参数。即,参见图5,步骤504具体可以包括:
504C、若第一耳塞的状态参数差于第二耳塞的状态参数,则手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
相应地,参见图10,上述步骤1001A-1003中的步骤1001A可以替换为:
1001C、若第一耳塞的状态参数差于第二耳塞的状态参数,则手机指示第二耳塞打开MIC,以使得第二耳塞的MIC由关闭状态切换为开启状态。
其中,耳塞的状态参数可以包括耳塞是否与手机保持连接,耳塞是否在耳中,耳塞的电量,耳塞与手机之间的链路的信道质量等。例如,当第一耳塞与手机断开连接,第二耳塞与手机保持连接时,第一耳塞的状态参数差于第二耳塞的状态参数,第二耳塞的状态参数优于第一耳塞的状态参数。再例如,当第一耳塞出耳第二耳塞入耳时,第一耳塞的状态参数差于第二耳塞的状态参数,第二耳塞的状态参数优于第一耳塞的状态参数。再例如,当第一耳塞的电量低于第二耳塞的电量时,第一耳塞的状态参数差于第二耳塞的状态参数,第二耳塞的状态参数优于第一耳塞的状态参数。再例如,当第一耳塞与手机之间的链路的信道质量低于第二耳塞与手机之间的链路的信道质量时,第一耳塞的状态参数差于第二耳塞的状态参数,第二耳塞的状态参数优于第一耳塞的状态参数。
示例性的,切换条件可以包括第一耳塞的电量小于第二耳塞的电量。当第一耳塞的电量小于第二耳塞的电量时,手机可以切换到通过第二耳塞的MIC为语音业务提供语音数据。
再示例性的,切换条件可以包括第一耳塞的电量小于第二耳塞的电量,且第一耳塞与手机之间的链路的信道质量低于第二耳塞与手机之间的链路的信道质量。当满足该切换条件时,手机可以切换到通过第二耳塞的MIC为语音业务提供语音数据。
在另一实施例中,若第一耳塞出现了问题,第二耳塞也出现了同样的问题,但第二耳塞对应的其他状态参数优于第一耳塞对应的其他状态参数,则切换到通过第二耳塞的MIC为手机的电话业务提供语音数据。也就是说,第一耳塞满足第一预设条件,第二耳塞满足第一预设条件和第二预设条件,第二预设条件包括第二耳塞对应的其他状态参数优于第一耳塞对应的其他状态参数。这里所说的其他状态参数是指第一预设条件涉及的状态参数以外的状态参数。在该实施例中,若第二耳塞对应的其他状态参数差于第一耳塞对应的其他状态参数,则不切换MIC。
示例性的,若第一耳塞出耳(即第一耳塞满足第一预设条件),第二耳塞也出耳(即第二耳塞满足第一预设条件),但第二耳塞的电量高于第一耳塞的电量,或第二耳塞与手机之间的链路的信道质量高于第一耳塞与手机之间的链路的信道质量(即第二耳塞满足第二预设条件),则切换到通过第二耳塞的MIC为手机的电话业务提供语音数据。这样,与第一耳塞相比,第二耳塞具有更优的状态参数,更适于为手机的电话业务提供语音数据,因而可以切换MIC。
再示例性的,若第一耳塞出耳(即第一耳塞满足第一预设条件),第二耳塞也出耳(即第二耳塞满足第一预设条件),但第二耳塞的电量低于第一耳塞的电量(即第二耳塞对应的其他状态参数差于第一耳塞对应的其他状态参数),则不切换MIC,仍通过第一耳塞的MIC为手机的电话业务提供语音数据。这样,与第二耳塞相比,第一耳塞具有更优的状态参数,更适于为手机的电话业务提供语音数据,因而可以不切换MIC。
在另一实施例中,若第一耳塞出现了问题,第二耳塞也出现了同样的问题,则不切换MIC,仍然通过第一耳塞的MIC为手机的电话业务提供语音数据。
例如,若第一耳塞和第二耳塞均满足第一预设条件,则可以表明第二耳塞和第一耳塞出现了同样的问题。
示例性的,若第一耳塞出耳(即第一耳塞满足第一预设条件),第二耳塞也出耳(即第二耳塞满足第一预设条件),则不切换MIC,仍然通过第一耳塞的MIC为手机的电话业务提供语音数据。再示例性的,若第一耳塞的电量低于第二预设值,且第二耳塞的电量也低于第二预设值,则不切换MIC,仍然通过第一耳塞的MIC为手机的电话业务提供语音数据。
在另一实施例中,若第一耳塞出现了问题,第二耳塞没有出现同样的问题,但第二耳塞出现了其他的问题,则不切换MIC,仍然采用第一耳塞的MIC为手机的电话业务提供语音数据。
示例性的,若第一耳塞出耳,第二耳塞为入耳状态,但第二耳塞的电量低于第二预设值,则不切换MIC,仍然采用第一耳塞的MIC为手机的电话业务提供语音数据。
在另一实施例中,在第一耳塞出耳,且第一耳塞与手机之间的链路的信道质量高于第二耳塞与手机之间的链路的信道质量时,用户可能正在将第一耳塞放在嘴边讲话,因而虽然第一耳塞出耳,但不需要切换到第二耳塞的MIC为手机的电话业务提供语音数据。
需要说明的是,以上实施例是以在满足切换条件时,手机指示切换为第二耳塞的MIC为电话业务提供语音数据为例进行说明的。在另一种方案中,若第一耳塞和第二耳塞之间具有无线连接(例如蓝牙连接、NFMI连接等),则TWS耳机也可以自动从第一耳塞的MIC切换为第二耳塞的MIC,来为手机的电话业务提供语音数据。
当第一耳塞和第二耳塞之间具有无线连接时,第一耳塞和第二耳塞之间还可以通过该无线连接交互各耳塞的电量,各耳塞与手机之间的链路的信道质量,各耳塞是否出耳,以及各耳塞与手机之间是否断链等信息。
示例性的,在步骤504B中,第一预设条件包括第一耳塞出耳;第二预设条件包括第二耳塞与手机保持蓝牙连接,且第二耳塞为入耳状态。在第一耳塞出耳(即满足 第一预设条件)后,第一耳塞可以向第二耳塞发送通知消息1;在第二耳塞为入耳状态,与手机保持蓝牙连接(即满足第二预设条件),且接收到通知消息1后,可以打开第二耳塞的MIC,并向第一耳塞发送通知消息2;在第一耳塞接收到通知消息2后,可以关闭第一耳塞的MIC。
在另一种方案中,TWS耳机也可以提示用户是否进行切换,在TWS耳机检测到用户的切换指令后,再切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
在该方案中,以步骤504B中,第一预设条件包括第一耳塞出耳;第二预设条件包括第二耳塞与手机保持蓝牙连接,且第二耳塞为入耳状态。第一耳塞满足第一预设条件,且第二耳塞满足第二预设条件为例进行说明:
示例性的,第一耳塞和/或第二耳塞语音提示用户,是否切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。若第二耳塞检测到用户在第二耳塞上的第一操作,则第二耳塞打开MIC。而后,第二耳塞通知第一耳塞关闭MIC,或者若第一耳塞检测到用户在第一耳塞上的第二操作,则第一耳塞关闭MIC。
举例来说,第一耳塞和第二耳塞上可以有MIC开关,第一操作可以是用户在第一耳塞的MIC开关上的点击操作,第二操作可以是用户在第二耳塞的MIC开关上的点击操作。在另一举例中,第一操作可以是用户晃动第一耳塞的操作,第二操作可以是用户晃动第二耳塞的操作。比如,用户在点头时,第一耳塞和第二耳塞产生晃动从而切换MIC的开、关状态,即第二耳塞打开MIC,第一耳塞关闭MIC。
示例性的,第一耳塞与第二耳塞之间建立有无线连接,第一耳塞和/或第二耳塞语音提示用户,是否切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。参见图11A,第一耳塞为右耳塞,第一耳塞上设置有MIC切换开关1101,在第一耳塞检测到用户触摸MIC切换开关1101的操作时,第一耳塞通知第二耳塞打开MIC,且第一耳塞关闭MIC。
再示例性的,第一耳塞与第二耳塞之间建立有无线连接,第一耳塞和/或第二耳塞以声音的方式提示用户,是否切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。若第一耳塞的MIC检测到用户的语音切换指令,则第一耳塞通过与第二耳塞之间的蓝牙连接通知第二耳塞打开MIC,且第一耳塞关闭MIC。
上述声音的方式提示用户的内容可以来自手机,或者预先存在耳塞中。
再示例性的,第一耳塞与第二耳塞之间建立有无线连接,参见图11B,第一耳塞为左耳塞,第一耳塞通过显示屏提示用户“切换MIC?”。若显示屏检测到用户的触摸操作,则第一耳塞通过与第二耳塞之间的蓝牙连接通知第二耳塞打开MIC,且第一耳塞关闭MIC;若未检测用户的触摸操作,则不切换MIC。或者,以双击操作触发第二耳塞开启MIC,若显示屏检测到用户的双击操作,则第一耳塞通过与第二耳塞之间的蓝牙连接通知第二耳塞打开MIC,且第一耳塞关闭MIC;若显示屏没有检测到用户的双击操作,则不切换MIC。
需要说明的是,TWS耳机提示用户是否切换为其他耳塞的MIC的方式还可以有多种,例如通过振动方式,通过指示灯方式,或者组合以上提到的提示方式来提示用户;用户指示切换的方式也可以有多种,本申请实施例不再一一说明。
情况2:在手机根据第一耳塞的MIC采集的语音数据进行电话业务处理时,第二 耳塞的MIC也处于开启状态。
其中,在手机与第一耳塞和第二耳塞建立蓝牙连接后,第一耳塞的MIC和第二耳塞的MIC可以默认处于关闭状态,手机可以指示打开第一耳塞的MIC和第二耳塞的MIC。第一耳塞的MIC和第二耳塞的MIC均采集语音数据。第一耳塞和第二耳塞分别将各自的MIC采集到的语音数据,通过与手机之间的蓝牙连接发送给手机。手机根据第一耳塞的MIC采集的语音数据进行电话业务处理。
或者,在手机与第一耳塞和第二耳塞建立蓝牙连接后,第一耳塞的MIC和第二耳塞的MIC可以默认处于开启状态。第一耳塞的MIC和第二耳塞的MIC均采集语音数据。第一耳塞和第二耳塞分别将各自的MIC采集到的语音数据,通过与手机之间的蓝牙连接发送给手机。手机根据第一耳塞的MIC采集的语音数据进行电话业务处理。
也就是说,在情况2中,两只TWS耳塞的MIC都处于开启状态,手机可以接收到两个MIC采集两路语音数据,但只根据一个MIC采集的一路语音数据进行电话业务处理。
在情况2中,与情况1相同,在第一耳塞满足第一预设条件,且第二耳塞满足第二预设条件时,可以切换到通过第二耳塞的MIC为手机的电话业务提供语音数据。
在一实施例中,情况2中的第一预设条件和第二预设条件,可以与情况1中的第一预设条件和第二预设条件相同。
在另一实施例中,在情况2中,第一预设条件还可以包括,第一耳塞在预设时长内未播放语音数据且未采集到语音数据。第二预设条件还可以包括,第二耳塞在预设时长内未播放语音数据但采集到语音数据。
例如,第一预设条件包括第一耳塞在预设时长内未播放语音数据且未采集到语音数据;第二预设条件包括第二耳塞与手机之间保持蓝牙连接,且第二耳塞在预设时长内未播放语音数据,第二耳塞在该预设时长内采集到语音数据。若第一耳塞在预设时长内未播放语音数据,且第一耳塞的MIC在该预设时长内未采集到语音数据,则第一耳塞的MIC可能已经损坏;若第二耳塞与手机之间保持蓝牙连接,且第二耳塞在预设时长内未播放语音数据,第二耳塞在该预设时长内采集到语音数据,则说明第二耳塞的MIC可以正常使用,因而可以切换到第二耳塞的MIC来为电话业务提供语音数据。
再例如,第一预设条件包括第一耳塞出耳,且第一耳塞在预设时长内未采集到语音数据。第二预设条件包括第二耳塞与手机之间保持蓝牙连接,第二耳塞为入耳状态,第二耳塞在预设时长内未播放语音数据但采集到语音信号,第二耳塞的电量大于或者等于第二预设值,且第二耳塞与手机之间的链路的信道质量高于或者等于第三预设值。也就是说,如果第一耳塞不在耳中,并且在预设时长内未采集到语音数据,则第一耳塞可能不在用户旁边,第一耳塞的MIC无法正常为手机提供语音数据。此时,如果第二耳塞在耳中,并且第二耳塞的电量充足,且第二耳塞与手机之间的链路的信道质量较高,则可以切换到通过第二耳塞的MIC更好地为手机的电话业务提供语音数据。
在另一实施例中,在情况2中,第一耳塞的状态参数差于第二耳塞的状态参数还可以包括,第一耳塞在预设时长内为播放语音数据且未采集到语音数据,第二耳塞在预设时长内未播放语音数据且未采集到语音数据。
需要说明的是,在情况2中,与情况1相同,在需要切换为通过第二耳塞的MIC 进行电话业务处理时,手机或TWS耳机可以自动切换为通过第二耳塞的MIC进行电话业务处理。或者,手机或TWS耳机也可以提示用户是否进行切换,在检测到用户的切换指示后,手机或TWS耳机再切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
例如,在步骤504B所示方案中,当第一耳塞满足第一预设条件,第二耳塞满足第二预设条件时,手机自动根据第二耳塞的MIC采集的语音数据进行电话业务处理,停止根据第一耳塞的MIC采集的语音数据进行电话业务处理。
再例如,在步骤504B所示方案中,当第一耳塞满足第一预设条件,第二耳塞满足第二预设条件时,手机通过第一耳塞和/或第二耳塞语音提示用户,是否切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。若第一耳塞或第二耳塞检测到用户语音指示切换耳塞的MIC,则第一耳塞或第二耳塞通知手机,根据第二耳塞的MIC采集到的语音数据进行电话业务处理。
还需要说明的是,在情况2中,由于两只耳塞的MIC都处于打开状态,因而当为手机的电话业务提供语音数据的MIC,由第一耳塞的MIC切换为第二耳塞的MIC的过程中,不会中断为手机的电话业务提供的语音数据。
在情况2中,在切换为通过第二耳塞的MIC为手机的电话业务提供语音数据后,在一种方案中,与情况1中不同,第一耳塞的MIC可以保持为开启状态。即,参见图12,在上述图5中的步骤503之前,该方法还可以包括:1201、手机接收第二耳塞的MIC采集的语音数据。具体的,手机可以通过与第二耳塞之间的第二蓝牙连接接收第二耳塞发送的,第二耳塞的MIC采集的语音数据。
图5中的步骤504A可以包括:
1202A、若第一耳塞满足第一预设条件,则手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
1203、手机停止根据第一耳塞的MIC采集的语音数据进行电话业务处理。
其中,对应于图5中的步骤504B和步骤504C,上述步骤1201A还可以替换为步骤1202B或步骤1202C:
1202B、若第一耳塞满足第一预设条件,且第二耳塞满足第二预设条件,则手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
1202C、若第一耳塞的状态参数差于第二耳塞的状态参数,则手机根据第二耳塞的MIC采集的语音数据进行电话业务处理。
在情况2中,在切换为通过第二耳塞的MIC为手机的电话业务提供语音数据后,即在步骤1203之后,在另一种方案中,手机还可以指示第一耳塞关闭MIC。
在本申请其他一些实施例中,在第一耳塞出现低电量、与手机之间的链路的信道质量差或第一耳塞出耳等问题,但第一耳塞与第二耳塞均与手机保持蓝牙连接的情况下,第一耳塞的MIC和第二耳塞的MIC可以同时为手机的电话业务提供语音数据。
在本申请其他一些实施例中,在双发方案中,TWS耳机的两只耳塞有主耳塞和副耳塞之分。手机可以首先根据主耳塞采集到的语音数据进行电话业务处理。当主耳塞(例如可以为上述第一耳塞)满足切换条件时,手机可以通知主耳塞和副耳塞进行主、副角色的切换,将原来的副耳塞(例如可以为上述第二耳塞)切换为新的主耳塞,将 原来的主耳塞(即上述第一耳塞)切换为新的副耳塞,并采用切换后的新的主耳塞(即上述第二耳塞)为手机提供语音数据,以便手机进行电话业务处理。即,手机始终根据主耳塞采集到的语音数据进行电话业务处理。
在建立双发连接并确定主耳塞和副耳塞之后,对应于上述情况1,主耳塞的MIC为开启状态,副耳塞的MIC为关闭状态,手机根据主耳塞的MIC采集到的语音数据进行电话业务处理。对应于上述情况2,主耳塞的MIC和副耳塞的MIC均为开启状态,手机根据主耳塞的MIC采集到的语音数据进行电话业务处理。而后,参考上述实施例描述的过程,在满足切换条件时,主、副耳塞的角色还可以进行切换,手机根据切换后的主耳塞的MIC采集到的语音数据进行电话业务处理。
例如,在情况1中,参见图13,在步骤503之前,该方法还可以包括:1300、手机确定主、副耳塞,第一耳塞为主耳塞,第二耳塞为副耳塞。其中,手机确定主耳塞的方式可以有多种。例如,可以参考上文根据预设策略确定目标耳塞的具体实现方式来确定主耳塞,主耳塞以外的另一只耳塞为副耳塞,此处不予赘述。步骤502具体可以包括:1301、手机接收主耳塞发送的语音数据。步骤503具体可以包括:1302、手机根据主耳塞(即第一耳塞)采集到的语音数据进行电话业务处理。步骤504具体可以包括:1303A、若第一耳塞(即主耳塞)满足第一预设条件,则手机向第二耳塞(即副耳塞)发送信息1(即第一信息),以使得第二耳塞切换为主耳塞并打开MIC,使得第二耳塞的MIC由关闭状态切换为开启状态;并向第一耳塞发送信息2(即第二信息),以使得第一耳塞切换为副耳塞并关闭MIC,使得第一耳塞的MIC由开启状态切换为关闭状态。1304、手机接收切换后的主耳塞发送的语音数据。1305、手机根据切换后的主耳塞采集到的语音数据进行电话业务处理。
其中,信息1可以用于指示第二耳塞切换为主耳塞以及指示第二耳塞打开MIC;或者,信息1可以用于指示第二耳塞切换为主耳塞,主耳塞自动打开MIC。第二耳塞接收到手机发送的信息1后,可以先切换为主耳塞再打开MIC;或者第二耳塞可以先打开MIC再切换为主耳塞。
具体的,耳塞中可以保存有用于表明主耳塞身份的第一标识信息或用于表明副耳塞身份的第二标识信息,当耳塞将第一标识信息更新为第二标识信息时,该耳塞由主耳塞切换为副耳塞;当耳塞将第二标识信息更新为第一标识信息时,该耳塞由副耳塞切换为主耳塞。
信息2可以用于指示第一耳塞切换为副耳塞以及指示第一耳塞关闭MIC;或者,信息2可以用于指示第一耳塞切换为副耳塞,副耳塞自动关闭MIC。第一耳塞接收到手机发送的信息2后,可以先关闭MIC再切换为副耳塞;或者第一耳塞可以先切换为副耳塞再关闭MIC。
还需要说明的是,对于步骤1303A中手机发送信息2的步骤,手机具体可以在步骤1304-1305之前向第一耳塞发送信息2,也可以在步骤1304-1305之后向第一耳塞发送信息2,本申请实施例不予限定。
上述步骤1303A还可以替换为步骤1303B或步骤1303C:
1303B、若第一耳塞(即主耳塞)满足第一预设条件,且第二耳塞(即副耳塞)满足第二预设条件,则手机向第二耳塞发送信息1,以使得第二耳塞切换为主耳塞并 打开MIC;并向第一耳塞发送信息2,以使得第一耳塞切换为副耳塞并关闭MIC。
1303C、若第一耳塞(即主耳塞)的状态参数差于第二耳塞(即副耳塞)的状态参数,则手机向第二耳塞发送信息1,以使得第二耳塞切换为主耳塞并打开MIC;并向第一耳塞发送信息2,以使得第一耳塞切换为副耳塞并关闭MIC。
在步骤1303A、步骤1303B或步骤1303C中,第二耳塞在打开MIC之后,还可以向手机发送通知消息,以使得手机获知并记录第二耳塞的MIC已切换为开启状态。在第一耳塞关闭MIC之后,还可以向手机发送通知消息,以使得手机获知并记录第一耳塞的MIC已切换为关闭状态。
参见图14,在情况2中,在图13所示的步骤500、1300、1301、1302、以及1303A、1303B或1303C的基础上,图13中的步骤1303A具体可以替换为1403A,步骤1303B具体可以替换为1403B,步骤1303C具体可以替换为1403C:
1403A、若第一耳塞(即主耳塞)满足第一预设条件,则手机向第二耳塞发送信息3,以指示第二耳塞切换为主耳塞;并向第一耳塞发送信息4,以指示第一耳塞切换为副耳塞。
1403B、若第一耳塞(即主耳塞)满足第一预设条件,且第二耳塞(即副耳塞)满足第二预设条件,则手机向第二耳塞发送信息3,以指示第二耳塞切换为主耳塞;并向第一耳塞发送信息4,以指示第一耳塞切换为副耳塞。
1403C、若第一耳塞(即主耳塞)的状态参数差于第二耳塞(即副耳塞)的状态参数,则手机向第二耳塞发送信息3,则手机向第二耳塞发送信息3,以指示第二耳塞切换为主耳塞;并向第一耳塞发送信息4,以指示第一耳塞切换为副耳塞。
并且,在情况2中,由于两只耳塞的MIC都处于开启状态,因而在步骤1403A、步骤1403B或步骤1403C之前还可以执行步骤1402:手机接收副耳塞的MIC采集的语音数据。
在步骤1403A、步骤1403B或步骤1403C之后,手机可以执行步骤1404:手机根据切换后的主耳塞采集到的语音数据进行电话业务处理。
可选地,在步骤1403A、步骤1403B或步骤1403C之后,手机还可以通知第一耳塞关闭MIC,以使得第一耳塞的MIC由开启状态切换为关闭状态。第一耳塞在关闭MIC后,还可以向手机发送通知消息以使得手机获知并记录第一耳塞的MIC已切换为关闭状态。
以上主要是以手机与TWS耳机之间的双发连接方案为例进行说明的,在监听、转发、NFMI等其他连接方案中,在通过第一耳塞的MIC为手机的电话业务提供语音数据时,若第一耳塞满足第一预设条件且第二耳塞满足第二预设条件,则也可以切换为通过第二耳塞的MIC为手机的电话业务提供语音数据。
例如,第一预设条件可以包括第一耳塞出耳、第一耳塞电量低、第一耳塞的MIC在预设时长内未采集到语音数据、第一耳塞与手机之间的链路的信道质量低等中的一个或多个。第二预设条件可以包括第二耳塞为入耳状态、第二耳塞的电量充足、第二耳塞与手机之间的链路的信道质量高等中的一个或多个。
例如,TWS耳机包括右耳塞和左耳塞,在监听、转发、NFMI等其他连接方案中,右耳塞与手机建立蓝牙连接,右耳塞为主耳塞,第一耳塞为右耳塞,第二耳塞为左耳 塞,右耳塞的MIC为手机的电话业务提供语音数据。在右耳塞满足第一预设条件,左耳塞满足第二预设条件时,建立与左耳塞之间的蓝牙连接,而后通过左耳塞的MIC为手机的电话业务提供语音数据。之后,在一种方案中,手机可以保持与右耳塞之间的蓝牙连接,右耳塞仍为主耳塞,右耳塞的MIC可以保持开启,也可以关闭。在另一种方案中,手机可以保持与右耳塞之间的蓝牙连接,左耳塞切换为主耳塞,右耳塞的MIC可以保持开启,也可以关闭;在另一种方案中,手机可以断开与右耳塞之间的蓝牙连接,左耳塞切换为主耳塞。
再例如,TWS耳机包括右耳塞和左耳塞,在监听、转发、NFMI等其他连接方案中,右耳塞与手机建立蓝牙连接,右耳塞为主耳塞,第一耳塞为左耳塞,第二耳塞为右耳塞,左耳塞的MIC采集到的语音数据通过右耳塞转发给手机,以为手机的电话业务提供语音数据。在左耳塞满足第一预设条件,右耳塞满足第二预设条件时,可以通过右耳塞的MIC为手机的电话业务提供语音数据,左耳塞的MIC可以打开也可以关闭。
需要说明的是,在本申请实施例中,手机给耳塞发送消息后,耳塞要向手机回复响应信息,以通知手机耳塞已接收到手机发送的消息,或者通知手机耳塞已执行该消息指示的操作。同样地,耳塞给手机发送消息后,手机也要向耳塞回复响应信息。例如,手机在步骤1303A中向第二耳塞发送信息1后,第二耳塞接收到该消息1后可以向手机发送响应信息,以通知手机第二耳塞已接收到该消息。再例如,手机在步骤1303A中向第二耳塞发送信息1后,第二耳塞接收到该信息1并打开MIC后,可以向手机发送响应信息,以通知手机第二耳塞已打开MIC。又例如,耳塞向手机上报电量之后,手机可以回复耳塞一个响应信息,以通知耳塞手机已接收到耳塞上报的电量情况。
以上主要是以电话业务为语音业务为例进行说明的,在微信音视频通话、微信语音消息等语音业务中,手机可以通过上述实施例中的方法切换MIC,本申请实施例不予赘述。
可以理解的是,为了实现上述功能,电子设备包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图15示出了上述实施例中涉及的电子设备1500的一种可能的组成示意图,如图15所示,该电子设备1500可以包括:连接单元1501、MIC切换单元1502和确定单元1503。
其中,连接单元1501可以用于支持电子设备1500执行上述步骤500等,和/或用 于本文所描述的技术的其他过程。
MIC切换单元1502可以用于支持电子设备1500执行上述步骤501-503等,和/或用于本文所描述的技术的其他过程。
确定单元1503可以用于支持电子设备1500执行上述步骤1300等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备1500,用于执行上述MIC切换方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备1500可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备1500的动作进行控制管理,例如,可以用于支持电子设备1500执行上述连接单元1501、MIC切换单元1502和确定单元1503执行的步骤。存储模块可以用于支持电子设备1500存储程序代码和数据等。通信模块,可以用于支持电子设备1500与其他设备的通信,例如与第一耳塞和第二耳塞通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图2所示结构的手机。
本申请的实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的MIC切换方法。
本申请的实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中电子设备执行的MIC切换方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中电子设备执行的MIC切换方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
本申请另一实施例提供了一种系统,该系统可以包括上述电子设备、上述第一耳塞和上述第二耳塞,可以用于实现上述MIC切换方法。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完 成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种麦克风MIC切换方法,其特征在于,包括:
    电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持所述第一蓝牙连接和所述第二蓝牙连接,所述第一无线耳塞的MIC为开启状态,所述第二无线耳塞的MIC为关闭状态;
    所述电子设备分别通过所述第一蓝牙连接和所述第二蓝牙连接,向所述第一无线耳塞和所述第二无线耳塞发送音频数据;
    所述电子设备通过所述第一蓝牙连接接收所述第一无线耳塞发送的,所述第一无线耳塞的MIC采集到的第一语音数据;
    所述电子设备根据所述第一语音数据进行业务处理;
    当所述第一无线耳塞满足切换条件时,所述电子设备指示所述第二无线耳塞打开MIC使所述第二无线耳塞的MIC处于开启状态;
    所述电子设备接收所述第二无线耳塞发送的,所述第二无线耳塞的MIC采集到的第二语音数据;
    所述电子设备根据所述第二语音数据进行业务处理。
  2. 一种麦克风MIC切换方法,其特征在于,包括:
    电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持所述第一蓝牙连接和所述第二蓝牙连接,所述第一无线耳塞和所述第二无线耳塞的MIC均为开启状态;
    所述电子设备分别通过所述第一蓝牙连接和所述第二蓝牙连接,向所述第一无线耳塞和所述第二无线耳塞发送音频数据;
    所述电子设备通过所述第一蓝牙连接接收所述第一无线耳塞发送的,所述第一无线耳塞的MIC采集到的第一语音数据;
    所述电子设备通过所述第二蓝牙连接接收所述第二无线耳塞发送的,所述第二无线耳塞的MIC采集到的第二语音数据;
    所述电子设备根据所述第一语音数据进行业务处理;
    当所述第一无线耳塞满足切换条件时,所述电子设备根据所述第二语音数据进行业务处理。
  3. 根据权利要求1或2所述的方法,其特征在于,当所述第一无线耳塞满足切换条件时,所述方法还包括:
    所述电子设备指示所述第一无线耳塞关闭MIC使所述第一无线耳塞的MIC处于关闭状态。
  4. 一种麦克风MIC切换方法,其特征在于,包括:
    电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持所述第一蓝牙连接和所述第二蓝牙连接,所述第一无线耳塞的MIC为开启状态,所述第二无线耳塞的MIC为关闭状态;所述第一无线耳塞和所述第二无线耳塞为一对无线耳塞,所述第一无线耳塞为主耳塞,所述第二无线耳塞为副耳塞;
    所述电子设备分别通过所述第一蓝牙连接和所述第二蓝牙连接,向所述第一无线耳塞和所述第二无线耳塞发送音频数据;
    所述电子设备通过所述第一蓝牙连接接收所述第一无线耳塞发送的,所述第一无线耳塞的MIC采集到的第一语音数据;
    所述电子设备根据所述第一语音数据进行业务处理;
    当所述第一无线耳塞满足切换条件时,所述电子设备向所述第二无线耳塞发送第一信息,以使得所述第二无线耳塞切换为主耳塞并打开MIC使所述第二无线耳塞的MIC处于开启状态;并向所述第一无线耳塞发送第二信息,以使得所述第一无线耳塞切换为副耳塞并关闭MIC使所述第一无线耳塞的MIC处于关闭状态;
    所述电子设备通过所述第二蓝牙连接接收所述第二无线耳塞发送的,所述第二无线耳塞的MIC采集到的第二语音数据;
    所述电子设备根据所述第二语音数据进行业务处理。
  5. 一种麦克风MIC切换方法,其特征在于,包括:
    电子设备与第一无线耳塞建立第一蓝牙连接,与第二无线耳塞建立第二蓝牙连接,并同时保持所述第一蓝牙连接和所述第二蓝牙连接,所述第一无线耳塞和所述第二无线耳塞的MIC均为开启状态;所述第一无线耳塞和所述第二无线耳塞为一对无线耳塞,所述第一无线耳塞为主耳塞,所述第二无线耳塞为副耳塞;
    所述电子设备分别通过所述第一蓝牙连接和所述第二蓝牙连接,向所述第一无线耳塞和所述第二无线耳塞发送音频数据;
    所述电子设备通过所述第一蓝牙连接接收所述第一无线耳塞发送的,所述第一无线耳塞的MIC采集到的第一语音数据;
    所述电子设备通过所述第二蓝牙连接接收所述第二无线耳塞发送的,所述第二无线耳塞的MIC采集到的第二语音数据;
    所述电子设备根据所述第一语音数据进行业务处理;
    当所述第一无线耳塞满足切换条件时,所述电子设备指示所述第二无线耳塞切换为主耳塞,并指示所述第一无线耳塞切换为副耳塞;
    所述电子设备根据所述第二语音数据进行业务处理。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一无线耳塞满足切换条件包括:
    所述第一无线耳塞出耳;或者,
    所述第一无线耳塞出耳,所述第二无线耳塞入耳;或者,
    所述第一无线耳塞出耳且出耳时间大于或者等于第一预设值,所述第二无线耳塞是入耳状态。
  7. 根据权利要求1、2、4或5所述的方法,其特征在于,所述第一无线耳塞满足切换条件包括:
    所述第一无线耳塞与所述电子设备断开连接,且所述第二无线耳塞与所述电子设备保持蓝牙连接。
  8. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一无线耳塞满足切换条件包括:
    所述第一无线耳塞的电量小于第二预设值;或者,
    所述第一无线耳塞的电量小于所述第二无线耳塞的电量;
    其中,所述第一无线耳塞的电量通过所述第一蓝牙连接获知,所述第二无线耳塞的电量通过所述第二蓝牙连接获知。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述第一无线耳塞和所述第二无线耳塞之间具有无线连接;或者,所述第一无线耳塞和所述第二无线耳塞之间不具有无线连接。
  10. 一种电子设备,包括触摸屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1-9中任一项所述的麦克风MIC切换方法。
  11. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9中任一项所述的麦克风MIC切换方法。
  12. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-9中任一项所述的麦克风MIC切换方法。
PCT/CN2018/120977 2018-12-13 2018-12-13 一种麦克风mic切换方法及设备 WO2020118641A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098498.6A CN112806092B (zh) 2018-12-13 2018-12-13 一种麦克风mic切换方法及设备
PCT/CN2018/120977 WO2020118641A1 (zh) 2018-12-13 2018-12-13 一种麦克风mic切换方法及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120977 WO2020118641A1 (zh) 2018-12-13 2018-12-13 一种麦克风mic切换方法及设备

Publications (1)

Publication Number Publication Date
WO2020118641A1 true WO2020118641A1 (zh) 2020-06-18

Family

ID=71075848

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120977 WO2020118641A1 (zh) 2018-12-13 2018-12-13 一种麦克风mic切换方法及设备

Country Status (2)

Country Link
CN (1) CN112806092B (zh)
WO (1) WO2020118641A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181344A (zh) * 2020-10-19 2021-01-05 Oppo广东移动通信有限公司 器件调用方法、装置、交互系统、电子设备以及存储介质
CN113973249A (zh) * 2020-07-24 2022-01-25 华为技术有限公司 耳机通话方法及耳机
CN116887388A (zh) * 2023-09-06 2023-10-13 荣耀终端有限公司 通信处理方法、电子设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660580A (zh) * 2021-10-20 2021-11-16 翱捷科技(深圳)有限公司 耳机通信方法和系统、一种耳机及一种电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130607A (zh) * 2016-06-27 2016-11-16 联想(北京)有限公司 一种控制方法及电子设备
CN107124674A (zh) * 2017-06-20 2017-09-01 歌尔科技有限公司 一种蓝牙耳机的音频输出方法、装置和蓝牙耳机
CN108718467A (zh) * 2018-06-06 2018-10-30 歌尔科技有限公司 一种语音数据的传输方法、无线耳机及tws耳机
CN108882087A (zh) * 2018-06-12 2018-11-23 歌尔科技有限公司 一种智能语音检测方法、无线耳机、tws耳机及终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271090A (zh) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 蓝牙耳机主从切换方法及装置
CN108345591A (zh) * 2018-01-26 2018-07-31 歌尔股份有限公司 基于移动终端双耳无线耳机的语音实时翻译方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130607A (zh) * 2016-06-27 2016-11-16 联想(北京)有限公司 一种控制方法及电子设备
CN107124674A (zh) * 2017-06-20 2017-09-01 歌尔科技有限公司 一种蓝牙耳机的音频输出方法、装置和蓝牙耳机
CN108718467A (zh) * 2018-06-06 2018-10-30 歌尔科技有限公司 一种语音数据的传输方法、无线耳机及tws耳机
CN108882087A (zh) * 2018-06-12 2018-11-23 歌尔科技有限公司 一种智能语音检测方法、无线耳机、tws耳机及终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973249A (zh) * 2020-07-24 2022-01-25 华为技术有限公司 耳机通话方法及耳机
WO2022017469A1 (zh) * 2020-07-24 2022-01-27 华为技术有限公司 耳机通话方法及耳机
CN112181344A (zh) * 2020-10-19 2021-01-05 Oppo广东移动通信有限公司 器件调用方法、装置、交互系统、电子设备以及存储介质
CN116887388A (zh) * 2023-09-06 2023-10-13 荣耀终端有限公司 通信处理方法、电子设备及存储介质
CN116887388B (zh) * 2023-09-06 2023-12-01 荣耀终端有限公司 通信处理方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN112806092B (zh) 2023-07-28
CN112806092A (zh) 2021-05-14

Similar Documents

Publication Publication Date Title
EP3934292B1 (en) Bluetooth connection method, device and system
US11653398B2 (en) Bluetooth connection method and device
CN112640505B (zh) 一种传输速率的控制方法及设备
CN112042212B (zh) 一种音频数据传输方法及电子设备
CN112789883B (zh) 一种速率控制方法、设备及计算机存储介质
CN112789866B (zh) 应用于tws耳机单双耳切换的音频数据传输方法及设备
WO2020133183A1 (zh) 音频数据的同步方法及设备
WO2020118641A1 (zh) 一种麦克风mic切换方法及设备
WO2021043219A1 (zh) 一种蓝牙回连方法及相关装置
CN113039822B (zh) 一种数据信道的建立方法及设备
CN111385777A (zh) Tws耳机低电量提醒方法及电子设备
EP4336356A1 (en) Screen projection method and related apparatus
WO2022105674A1 (zh) 来电接听方法、电子设备及存储介质
WO2024001735A1 (zh) 网络连接方法、电子设备及存储介质

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: 18943235

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: 18943235

Country of ref document: EP

Kind code of ref document: A1