WO2022213689A1 - Method and device for voice communicaiton between audio devices - Google Patents

Method and device for voice communicaiton between audio devices Download PDF

Info

Publication number
WO2022213689A1
WO2022213689A1 PCT/CN2022/070153 CN2022070153W WO2022213689A1 WO 2022213689 A1 WO2022213689 A1 WO 2022213689A1 CN 2022070153 W CN2022070153 W CN 2022070153W WO 2022213689 A1 WO2022213689 A1 WO 2022213689A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
voice
audio device
user
earphone
Prior art date
Application number
PCT/CN2022/070153
Other languages
French (fr)
Chinese (zh)
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 北京荣耀终端有限公司
Publication of WO2022213689A1 publication Critical patent/WO2022213689A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the smart phone can make a Bluetooth connection with the headset device 1 and the headset device 2, respectively.
  • the audio played on the smartphone can be played simultaneously on the headset device 1 and the headset device 2 connected to it.
  • each user is affected by their own earphones, and the sound of each other's speech and communication will be weakened, which will affect the normal communication between the users.
  • headset device 1 and user 2 wears headset device 2 to share the audio played on the smartphone
  • both parties may not be able to hear each other clearly. words that cause inconvenience.
  • the earphone device 1 and the earphone device 2 support and enable the noise reduction function, the user 1 and the user 2 cannot hear the words of the other party clearly, which affects the normal communication between the two parties.
  • Embodiments of the present application provide a method and device for voice intercommunication between audio devices, which solves the problem of affecting normal voice communication between users using audio devices when multiple audio devices perform audio sharing.
  • the first audio device receives the user's operation to determine to enable the voice interworking function, including: the first audio device receives the user's operation on the function keys on the first audio device; An audio device receives a user's operation on a touch area on the first audio device; or the first audio device receives a user's tap operation on the first audio device.
  • the user can conveniently determine that the voice interworking function needs to be enabled by operating the first audio device, thereby improving the user operation experience.
  • the first link is a Synchronous Connection Oriented (SCO) link.
  • SCO Synchronous Connection Oriented
  • the first link is an isochronous connection stream (CIS) link.
  • CIS isochronous connection stream
  • the CIS link can support the connection between multiple (such as two or more) devices, setting the first link as the CIS link enables the method to support multiple audio devices voice communication between.
  • the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo (TWS) earphones.
  • TWS wireless stereo
  • the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
  • A2DP Bluetooth Stereo Audio Distribution Protocol
  • the user can enable the audio sharing function through the audio sharing option displayed on the electronic device, thereby improving the user's operational convenience.
  • the method further includes: the electronic device displays a pop-up prompt, where the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
  • the user can confirm to enable audio sharing by performing a confirmation operation on the pop-up prompt displayed by the electronic device, thereby improving the convenience of the user's operation.
  • the first audio device outputs prompt information for prompting the user whether to enable the voice interworking function, including: the first audio device prompts the user whether Enable the voice of the voice interworking function.
  • an embodiment of the present application provides a voice interworking system, where the voice interworking system may include an electronic device, a first audio device, and a second audio device.
  • the electronic device can be used to connect with the first audio device through a first asynchronous connectionless (ACL) link; send audio data to the first audio device through the first ACL link; receive the operation of the user enabling the audio sharing function; Detecting an audio device close to the electronic device; detecting that the second audio device establishes a second ACL link with the second audio device; sending audio data to the second audio device through the second ACL link; sending audio data to the first audio device through the first ACL link
  • the audio device sends audio sharing state information and device information of the second audio device; the audio sharing state information is used to indicate that the electronic device is in a state of audio sharing between the first audio device and the second audio device; Instruct, suspend sending audio data to the first audio device and the second audio device according to the first instruction;
  • the first audio device can be used for receiving audio data, and playing audio through the speaker of the first audio device according to the audio data; outputting prompt information for prompting the user whether to enable the voice interworking function; receiving an operation that the user determines to enable the voice interworking function;
  • the electronic device sends the first instruction; establishes a first link with the second audio device according to the device information; receives the user's voice through the microphone of the first audio device, generates first voice data, and sends the first voice data to the second audio device; Or, receive the second voice data from the second audio device, and play the voice through the speaker of the first audio device according to the second voice data;
  • the second audio device can be used to receive audio data, and play audio through the speaker of the second audio device according to the audio data; receive the first voice data from the first audio device, and play the audio through the speaker of the second audio device according to the first voice data voice; or, receiving the user's voice through the microphone of the second audio device, generating second voice data, and sending the second voice data to the first audio device.
  • the first audio device is specifically configured to receive user operations on function keys on the first audio device; The operation of the touch area; or the first audio device receives the user's tapping operation on the first audio device.
  • the first link is a synchronous connection oriented (SCO) link.
  • SCO synchronous connection oriented
  • the first link is an isochronous connection stream (CIS) link.
  • CIS isochronous connection stream
  • the electronic device is a mobile phone, and both the first audio device and the second audio device are True Wireless Stereo (TWS) earphones.
  • TWS True Wireless Stereo
  • the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
  • A2DP Bluetooth Stereo Audio Distribution Protocol
  • the electronic device is specifically configured to receive a user's click operation on an audio sharing option displayed by the electronic device.
  • the electronic device is further used to display a pop-up prompt, and the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
  • the first audio device is specifically configured to play a voice prompting the user whether to enable the voice interworking function through the speaker of the first audio device.
  • an embodiment of the present application provides a method for voice interworking between audio devices, and the method can be applied to a voice interworking system.
  • the voice interworking system may include an electronic device, a first audio device and a second audio device, and the method includes: connecting the electronic device and the first audio device through a first asynchronous connectionless (ACL) link; sending audio data to the first audio device; the first audio device receives the audio data, and plays audio through the speaker of the first audio device according to the audio data; the electronic device receives the operation of the user to enable the audio sharing function; in response to the operation of enabling the audio sharing function , the electronic device detects an audio device close to the electronic device; the electronic device detects a second audio device; the electronic device establishes a second ACL link with the second audio device; the electronic device sends audio data to the second audio device through the second ACL link The second audio device receives the audio data, and plays audio through the speaker of the second audio device according to the audio data; the first audio device outputs a prompt message
  • the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication. For example, when multiple users share the audio played on the mobile phone through the audio sharing function, the multiple users can use the voice intercommunication between their respective earphones for voice communication, so as to prevent the users from being unable to hear the voice of the communication clearly.
  • the first audio device receives the user's operation to determine to enable the voice interworking function, including: the first audio device receives the user's operation on the function keys on the first audio device; An audio device receives a user's operation on a touch area on the first audio device; or the first audio device receives a user's tap operation on the first audio device.
  • the first link is a synchronous connection oriented (SCO) link.
  • SCO synchronous connection oriented
  • the CIS link can support the connection between multiple (such as two or more) devices, setting the first link as the CIS link enables the method to support multiple audio devices voice communication between.
  • the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo (TWS) earphones.
  • TWS wireless stereo
  • the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
  • A2DP Bluetooth Stereo Audio Distribution Protocol
  • the electronic device receives an operation of enabling the audio sharing function from the user, including: the electronic device receives a user's click operation on the audio sharing option displayed by the electronic device.
  • the user can enable the audio sharing function through the audio sharing option displayed on the electronic device, thereby improving the user's operational convenience.
  • the method further includes: the electronic device displays a pop-up prompt, where the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
  • the user can confirm to enable audio sharing by performing a confirmation operation on the pop-up prompt displayed by the electronic device, thereby improving the convenience of the user's operation.
  • the first audio device outputs prompt information for prompting the user whether to enable the voice interworking function, including: the first audio device prompts the user whether Enable the voice of the voice interworking function.
  • an embodiment of the present application provides a method for voice interworking between audio devices, and the method can be applied to a voice interworking system.
  • the voice interworking system may include an electronic device, a first audio device, and a second audio device, and the method includes: in response to a user's operation of turning on the first mode, the electronic device establishes an ACL link with the first audio device and the second audio device respectively.
  • the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication. For example, when multiple users share the audio played on the mobile phone through the audio sharing function, the multiple users can use the voice intercommunication between their respective earphones for voice communication, so as to prevent the users from being unable to hear the voice of the communication clearly.
  • the first link is a synchronous connection oriented (SCO) link.
  • SCO synchronous connection oriented
  • the CIS link can support the connection between multiple (such as two or more) devices, setting the first link as the CIS link enables the method to support multiple audio devices voice communication between.
  • the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo (TWS) earphones.
  • TWS wireless stereo
  • the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
  • A2DP Bluetooth Stereo Audio Distribution Protocol
  • the operation for the user to enable the first mode includes: the user's click operation on the audio sharing option displayed by the electronic device.
  • the user can enable the audio sharing function through the audio sharing option displayed on the electronic device, thereby improving the user's operational convenience.
  • the operation for the user to enable the second mode includes: the user's click operation on the voice interworking option displayed by the electronic device.
  • an embodiment of the present application provides an electronic device, including: a processor, and a memory for storing instructions executable by the processor.
  • the electronic device implements the function of the electronic device in the method for voice intercommunication between audio devices according to any one of the first aspect, the third aspect or the fourth aspect.
  • an embodiment of the present application provides an audio device, including: a processor, and a memory for storing instructions executable by the processor.
  • the audio device can implement the function of the first audio device in the method for voice interworking between audio devices according to any one of the first aspect, the third aspect or the fourth aspect.
  • FIG. 1 is a schematic diagram of an audio sharing link provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of an interface for enabling audio sharing according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of another interface for enabling audio sharing according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for voice intercommunication between audio devices provided by an embodiment of the present application
  • FIG. 6 is a schematic interface diagram when a method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
  • FIG. 7 is a schematic interface diagram when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
  • FIG. 8 is a schematic diagram of a scenario when a method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
  • FIG. 9 is a schematic flowchart of another method for voice intercommunication between audio devices provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a scenario when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
  • FIG. 11 is a schematic flowchart of another method for voice intercommunication between audio devices provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a scenario when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
  • 16 is a schematic interface diagram when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
  • FIG. 17 is a schematic interface diagram when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied.
  • a mobile phone when people watch videos or listen to music on their mobile phones, they can connect their own and their friends' headsets to their own mobile phones through Bluetooth, and use the audio sharing function to enable themselves and their friends to hear through their own headsets. The sound played by the phone.
  • an electronic device such as a mobile phone
  • the electronic device can be respectively connected with a plurality of earphones through Bluetooth (for example, the electronic device establishes a second link with the earphones respectively) to perform audio sharing.
  • an asynchronous connectionless (ACL) link is established between the mobile phone 101 and a plurality of earphones 102 respectively (ACL is the main unit and all the devices coexisting in the piconet).
  • ACL is the main unit and all the devices coexisting in the piconet.
  • One-point-multiple-access connection between the slave units the mobile phone 101 can transmit audio data to each earphone 102 through the ACL link, thereby realizing audio sharing.
  • the electronic device may also share audio with multiple earphones in other ways, which is not limited here.
  • the user may set and enable the connection between the electronic device and multiple earphones and audio sharing in the system settings of the electronic device.
  • the electronic device For example, take the electronic device as a mobile phone and the connected earphones as earphone 1 and earphone 2 as an example, as shown in Figure 2, when the user needs to share audio through the mobile phone, he can open the system settings of the mobile phone to operate.
  • the Bluetooth setting interface of the mobile phone may include setting options for enabling Bluetooth and audio sharing, as well as devices that have been paired with the mobile phone (eg, earphone 1, earphone 2, smart speakers, and smart projectors). equipment list, etc.).
  • the user may select (eg, click to select an operation) the audio sharing option in the Bluetooth setting interface.
  • the phone can display the audio sharing settings interface.
  • the audio sharing setting interface may include setting options for enabling audio sharing, including and a device list of devices that have been paired with the mobile phone.
  • the user can choose to enable the audio sharing function on the audio sharing setting interface, and select the headset 1 and headset 2 that have been paired with the mobile phone.
  • the mobile phone can connect to headset 1 and headset 2 respectively (eg, establish an ACL link), thereby enabling the audio sharing function, so that the audio on the mobile phone can be played through headset 1 and headset 2 at the same time.
  • the user when the user is listening to the audio played by the mobile phone using the headset 1 connected to the mobile phone (for example, the headset 1 is connected to the mobile phone through the first ACL link, and the mobile phone sends the headset to the headset through the first ACL link) 1 to send audio data, and the headset 1 to play audio through the speaker according to the received audio data), the user can click the icon showing more options in the multimedia notification interface in the pull-down notification to select more multimedia options.
  • the user can select an audio sharing option to enable audio sharing.
  • the phone can detect audio devices (eg, headphones) in proximity to it.
  • audio devices eg, headphones
  • the mobile phone detects that the earphone 2 is approaching, and can pop up a pop-up box prompting the user to connect the earphone 2 for audio sharing Prompt 302, the user can click the audio sharing in the pop-up box prompt 302 to make the mobile phone connect with the headset 2 in response to the above operation (for example, the mobile phone and the headset 2 establish a second ACL link), thereby enabling the audio sharing function, so that the The audio on the mobile phone can be played through the headset 1 and the headset 2 at the same time (that is, the mobile phone also sends audio data to the headset 2 through the second ACL link, and the headset 2 plays audio through the speaker according to the received audio data).
  • the mobile phone can transmit audio data to the headset 1 and the headset 2 respectively by using a Bluetooth stereo audio distribution profile (advanced audio distribution profile, A2DP).
  • an electronic device may also perform audio sharing in a manner similar to a true wireless stereo (true wireless stereo, TWS) headset synchronizing audio between two earbuds.
  • a true wireless stereo true wireless stereo, TWS
  • the second earphone can obtain the audio data transmitted between the mobile phone and the first earphone by monitoring the link established between the first earphone and the mobile phone, thereby realizing the first Headphone and second headphone audio sharing.
  • the audio sharing function enables the user to share the audio played on his electronic device with his friends in a better and more convenient manner.
  • the audio sharing function since each user wears the headset, the user's perception of external sound will be weakened due to the impact of the headset. Therefore, when multiple users who are using the audio sharing function speak and communicate with each other, it may be difficult for the users to hear each other's voices.
  • many headphones now support the noise reduction function. When the noise reduction function is turned on, it is more difficult for each user to hear the sounds of mutual communication.
  • an embodiment of the present application provides a method for voice intercommunication between audio devices.
  • the method can be applied to a voice interworking system, that is, a system composed of an electronic device and at least two audio devices (eg, a first audio device and at least one second audio device).
  • the method may include: when the electronic device performs audio sharing with a plurality of audio devices respectively.
  • the electronic device can establish a link (eg, a first link) for voice intercommunication with each audio device, so as to forward or synchronize the voice data transmitted between the audio devices through the electronic device, so as to realize the voice intercommunication between the audio devices.
  • the above established link for voice interworking may be a synchronous connection oriented (SCO) link (SCO uses reserved bandwidth for synchronous communication (circuit switching), and mainly supports transmission time-limited information), extended synchronous connection-oriented (ESCO) (similar to SCO, and has a retransmission mechanism), an isochronous connected isochronous stream (CIS) link (CIS is a logical transmission , enabling connected devices to transmit isochronous data in any direction), etc., or a dedicated link established based on 2.4G wireless technology.
  • SCO synchronous connection oriented
  • ESCO extended synchronous connection-oriented
  • CIS isochronous connected isochronous stream
  • CIS is a logical transmission , enabling connected devices to transmit isochronous data in any direction
  • a dedicated link established based on 2.4G wireless technology a dedicated link established based on 2.4G wireless technology.
  • those skilled in the art can also define a link for user voice interworking according to the actual situation, which is not limited here.
  • the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication.
  • the multiple users can use the voice intercommunication between their respective earphones for voice communication, so as to prevent the users from being unable to hear the voice of the communication clearly.
  • the above-mentioned audio device is a device with functions of sound pickup and playback (eg, a device with a microphone and a speaker), such as an earphone, a Bluetooth speaker, a smart speaker, and the like.
  • the above-mentioned electronic device can be a mobile phone, a tablet computer, a handheld computer, a PC, a cellular phone, a personal digital assistant (personal digital assistant, PDA), a wearable device (such as a smart watch, a smart bracelet), a smart home device (such as : TV), car machine (such as: car computer), smart screen, game console, smart TV box, and augmented reality (AR)/virtual reality (VR) equipment, etc.
  • the embodiments of the present application do not specifically limit the specific device form of the electronic device.
  • the device shapes of the above-mentioned multiple audio devices may be the same.
  • several audio devices are headphones.
  • the device forms of the above-mentioned multiple audio devices may also be different.
  • multiple audio devices include headphones and smart speakers.
  • FIG. 4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. That is, by way of example, the electronic device shown in FIG. 4 may be a mobile phone.
  • the electronic device may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charge management module 440, a power management module 441, a battery 442, Antenna 1, Antenna 2, Mobile Communication Module 450, Wireless Communication Module 460, Audio Module 470, Speaker 470A, Receiver 470B, Microphone 470C, Headphone Interface 470D, Sensor Module 480, Key 490, Motor 491, Indicator 492, Camera 493, A display screen 494, and a subscriber identification module (SIM) card interface 495, etc.
  • SIM subscriber identification module
  • the sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, and an environmental sensor.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • a controller can be the nerve center and command center of an electronic device.
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 410 for storing instructions and data.
  • the memory in processor 410 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 410 . If the processor 410 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 410 is reduced, thereby improving the efficiency of the system.
  • processor 410 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (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 wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device 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 the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 450 can provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the electronic device.
  • the mobile communication module 450 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 450 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 450 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 450 may be provided in the processor 410 .
  • at least part of the functional modules of the mobile communication module 450 may be provided in the same device as at least part of the modules of the processor 410 .
  • the wireless communication module 460 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems applied on electronic devices. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 460 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 460 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 410 .
  • the wireless communication module 460 can also receive the signal to be sent from the processor 410 , perform frequency modulation on it, amplify it, and convert it
  • the antenna 1 of the electronic device is coupled with the mobile communication module 450, and the antenna 2 is coupled with the wireless communication module 460, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a 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
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device realizes the display function through the GPU, the display screen 494, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 494 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 410 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 494 is used to display images, video, and the like.
  • Display screen 494 includes a display panel.
  • the display panel can be 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).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device may include 1 or N display screens 494, where N is a positive integer greater than 1.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of electronic devices can be realized, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • Internal memory 421 may be used to store computer executable program code, which includes instructions.
  • the processor 410 executes various functional applications and data processing of the electronic device by executing the instructions stored in the internal memory 421 .
  • the internal memory 421 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
  • the internal memory 421 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device can implement audio functions through an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, and an application processor. Such as music playback, recording, etc.
  • the audio devices to be communicated with each other are two earphones, that is, the first audio device is the first earphone (or referred to as earphone 1), and the second audio device is the second earphone (or referred to as earphone 2),
  • the established link (eg, the first link) for voice interworking is an SCO link as an example.
  • FIG. 5 is a schematic flowchart of a method for voice intercommunication between audio devices according to an embodiment of the present application. As shown in FIG. 5 , the method for voice intercommunication between audio devices may include the following S501-S503.
  • the mobile phone determines that the user needs to enable the voice interworking function in the case of audio sharing through the first earphone and the second earphone.
  • the mobile phone performs audio sharing through the first earphone and the second earphone, which may be enabled by the user in the manner shown in FIG. 2 or FIG. 3 . It can also be opened by the user through other methods, which is not limited here.
  • the mobile phone may receive the user's operation and determine whether the user needs to enable the voice interworking function according to the user's operation.
  • the audio sharing setting interface may further include an option for enabling voice interworking.
  • the user can activate the voice interworking function by clicking the option of the voice interworking.
  • the mobile phone receives the operation of the user clicking the option of voice interworking, the mobile phone can determine that the user needs to enable the voice interworking function, and in response to the operation, the mobile phone can enable the voice interworking function.
  • the option for voice interworking as shown in FIG. 6 is in Turn off the locked state.
  • the user cannot enable the voice interworking function without enabling audio sharing on the mobile phone.
  • the user may also enable the voice interworking function in the manner shown in FIG. 6 when the mobile phone does not enable audio sharing, which is not limited here.
  • the mobile phone may ask the user whether to enable the voice interworking function through a pop-up window. Then, according to the corresponding operation of the user, it is determined whether the user needs to enable the voice interworking function. For example, as shown in FIG. 7 , after the user enables audio sharing, the mobile phone may pop up a pop-up window asking whether to enable the voice interworking function. In this pop-up window, you can provide two option controls of "Yes” and "No". The user can enable or disable the voice interworking function by clicking the "Yes" or "No” option.
  • the mobile phone can determine whether the user needs to enable the voice interworking function. For example, when the mobile phone receives the user's operation of the "Yes” option, in response, the mobile phone can enable the voice interworking function. For another example, when the mobile phone receives the user's operation of the "No” option, in response, the mobile phone may not enable the voice interworking function.
  • the mobile phone determines that the user needs to enable the voice interworking function, for example, when the mobile phone receives an operation of the user to enable the voice interworking function. Then, the mobile phone can execute the following S502. It should be noted that, in some other embodiments, the mobile phone does not need to determine whether the user needs to enable the voice interworking function, but enables it by default. For example, when the mobile phone audio is shared, the following S502 is performed.
  • the mobile phone establishes a SCO link with the first earphone and the second earphone respectively.
  • the mobile phone can send a request for establishing a SCO link to the first headset and the second headset respectively, and after the first headset and the second headset receive the above request, they can establish a SCO link with the mobile phone respectively. road.
  • a response that the SCO link is established successfully may also be respectively sent to the mobile phone.
  • the mobile phone uses Bluetooth connection to share audio through the first headset and the second headset
  • the pairing between the mobile phone and the first headset and the second headset is usually completed, so the mobile phone is connected to the first headset and the second headset respectively.
  • the pairing of the mobile phone and the headset can no longer be performed before the two headsets establish the SCO link.
  • the audio sharing of the mobile phone through the first earphone and the second earphone is not realized through a Bluetooth connection, but through other connection methods, before the mobile phone establishes the SCO link with the first earphone and the second earphone respectively, the mobile phone It can be paired with the first earphone and the second earphone respectively first.
  • both the first earphone and the second earphone can support a hands-free profile (hands-free profile, HFP).
  • HFP hands-free profile
  • the mobile phone can forward the voice data between the first earphone and the second earphone through the link.
  • the mobile phone can execute the following S503.
  • the mobile phone forwards the voice data between the first earphone and the second earphone.
  • the mobile phone may forward the voice data between the first earphone and the second earphone after decoding, routing, and encoding. It is also possible to directly transparently transmit the voice data between the first earphone and the second earphone, that is, the mobile phone only forwards the voice data without processing it.
  • a SCO link is established between the mobile phone 810 and the first headset 821 and the second headset 822 respectively.
  • the microphone of the first earphone 821 can receive the voice of the first user 831 and convert it Then the first headset 821 can send the voice data to the mobile phone 810 through the SCO link, the mobile phone 810 can forward the voice data to the second headset 822 after receiving the voice data, and finally the second headset 822 that receives the voice data
  • the voice data can be converted into sound through the speaker and played to the second user 832 . Therefore, the second user 832 can hear what the first user 831 speaks to him through the second earphone 822, thereby improving the effect of voice communication between the first user 831 and the second user 832.
  • the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
  • the established link eg, the first link
  • the second audio device is the second earphone (or referred to as earphone 2)
  • the established link eg, the first link
  • a link may also be established between the first earphone and the second earphone, so that voice data may be directly transmitted between the first earphone and the second earphone through the established link.
  • FIG. 9 is a schematic flowchart of another method for voice interworking between audio devices provided by an embodiment of the present application.
  • the method for voice intercommunication between audio devices may include the following S901-S905.
  • the mobile phone performs audio sharing through the first earphone and the second earphone.
  • the mobile phone performs audio sharing through the first earphone and the second earphone, which may be enabled by the user in the manner shown in FIG. 2 or FIG. 3 . It can also be opened by the user through other methods, which is not limited here.
  • the mobile phone can send the device information of the other headset to one of the two headsets.
  • the mobile phone can execute the following S902.
  • the mobile phone sends the audio sharing status information and other earphones, such as the device information (eg, media access control (MAC) address) of the second earphone, to the main earphone, such as the first earphone. That is, the mobile phone sends configuration information to the main earphone, where the configuration information includes audio sharing state information and device information of other earphones.
  • the device information eg, media access control (MAC) address
  • MAC media access control
  • the main earphone can be defined according to actual needs, which is not limited here.
  • the headset that is first connected to the mobile phone can be used as the primary headset.
  • the first earphone is used as the main earphone for illustration.
  • the mobile phone may send the audio sharing state information and the device information of other earphones to the main earphone through the link established by the audio sharing.
  • the mobile phone can also send audio sharing information and device information of other earphones to the main earphone through other forms such as broadcasting, which is not limited here.
  • the audio sharing state information may be indication information that can indicate that the mobile phone is in an audio sharing state.
  • the mobile phone sends the audio sharing state information to the first earphone serving as the main earphone, so that the first earphone can determine that the mobile phone is currently in the audio sharing state according to the audio sharing state information.
  • the device information of other earphones sent by the mobile phone to the first earphone can facilitate the subsequent establishment of a connection between the first earphone and other earphones according to the device information.
  • the main earphone When the main earphone, such as the first earphone, receives the audio sharing status information and the device information of other earphones, the main earphone can perform the following S903.
  • the first headset determines that the user needs to enable the voice interworking function.
  • the first earphone may prompt the user whether to enable the voice interworking function by outputting prompt information, and then receive the user's operation, and determine whether the user needs to enable the voice interworking function according to the user's operation.
  • the first earphone may play the prompt information in the form of voice "whether to enable the voice interworking function" to the user.
  • the user may determine that the voice interworking function needs to be enabled by pressing a physical button (such as a function key) on the first earphone, touching the touch area on the first earphone, and tapping the first earphone.
  • a physical button such as a function key
  • the first earphone determines that the user needs to enable the voice interworking function, for example, when the first earphone receives a corresponding operation performed by the user for the above prompt information, the first earphone can perform the following S904.
  • the first headset establishes a SCO link with the second headset.
  • the first headset may be paired with the second headset first, and after the pairing is completed, the SCO link is established with the second headset.
  • the first earphone may first send a pairing request to the second earphone according to the device information sent by the mobile phone, and after receiving the pairing request, the second earphone may prompt the user to perform pairing (eg, prompt by voice, vibration, etc.).
  • the user can confirm pairing with the first earphone by pressing the physical button on the second earphone, touching the touch area on the second earphone, and tapping the second earphone.
  • the second earphone may complete the pairing with the first earphone according to the pairing request.
  • the first headset can send a request for establishing a SCO link to the second headset, and when the second headset receives the above request, it can establish a SCO link with the first headset.
  • the second headset may further send a response that the SCO link is established successfully to the first headset. It should be noted that, when the second earphone is not confirmed to be paired with the first earphone, or does not support pairing with the first earphone, the first earphone can be unpaired and the voice interworking function can be turned off.
  • the first headset may also send instruction information (eg, a first instruction) to the electronic device to instruct the electronic device to suspend the communication between the first headset and the second headset.
  • instruction information eg, a first instruction
  • Sending audio data instructs the electronic device to pause audio playback. Therefore, when the first earphone and the second earphone communicate with each other, they will not be interfered by the audio data sent by the electronic device during audio sharing, and the quality of the voice intercommunication between the first earphone and the second earphone is improved.
  • the voice data is transmitted between the first earphone and the second earphone through the SCO link.
  • the voice data ie, the first voice data
  • the second earphone For example, take the transmission of the voice data (ie, the first voice data) of the first earphone to the second earphone as an example.
  • voice data ie, the first voice data
  • FIG. 10 For the transmission of voice data between the first earphone and the second earphone through the SCO link, reference may be made to FIG. 10 .
  • a SCO link is established between the first earphone 1011 and the second earphone 1012 .
  • the microphone of the first earphone 1011 can receive the voice of the first user 1021 and convert it Then the first headset 1011 can send the voice data to the second headset 1012 through the SCO link, and the second headset 1012 that finally receives the voice data can convert the voice data into sound through the speaker and play it to the second headset 1012.
  • the second user 1022 can hear what the first user 1021 speaks to him through the second earphone 1012, thereby improving the effect of voice communication between the first user 1021 and the second user 1022.
  • the voice data of the second earphone ie, the second voice data
  • the process is similar to the above-mentioned process, which is not repeated here.
  • the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
  • S901 in the method shown in FIG. 9 may also be replaced with S501 in the method shown in FIG. 5 , and correspondingly, S903 does not need to be executed. In this way, it is relatively convenient and quick for the user to determine whether to enable the voice interworking function through the mobile phone.
  • the audio devices to be communicated with each other are the first earphone (or referred to as earphone 1) and the second earphone (or referred to as earphone 2), and the established link for voice intercommunication (eg, the first link) is an example of a dedicated link established based on 2.4G wireless technology or the like.
  • a dedicated link may also be established between the first headset and the second headset, so that voice data may be directly transmitted between the first headset and the second headset through the established dedicated link.
  • An implementation of this embodiment may be similar to the method shown in FIG. 9 , and the similarities will not be repeated here, and reference may be made to the specific description of the method shown in FIG. 9 .
  • the link established between the first earphone and the second earphone is the above-mentioned dedicated link.
  • voice data is transmitted between the first earphone and the second earphone through the dedicated link.
  • the mobile phone may not send the device information of the second earphone to the first earphone, and the first earphone may negotiate the configuration information required by the above-mentioned dedicated link in the form of broadcasting, and then establish a dedicated link for voice communication . There is no restriction on how to establish a link between the first earphone and the second earphone.
  • the audio devices to be communicated with each other are three earphones, that is, the first audio device is the first earphone (or referred to as earphone 1), the second audio device is the second earphone (or referred to as earphone 2) and The third earphone (or referred to as earphone 3 ), the established link (eg, the first link) for voice interworking is the CIS as an example.
  • FIG. 11 is a schematic flowchart of another method for voice interworking between audio devices according to an embodiment of the present application. As shown in FIG. 11 , the method for voice intercommunication between audio devices may include the following S1101-S1103.
  • the mobile phone determines that the user needs to enable the voice interworking function in the case of audio sharing through the first earphone, the second earphone and the third earphone.
  • the mobile phone and the first earphone, the second earphone and the third earphone establish an isochronous connection group (connected isochronous group, CIG) through the CIS (CIG is created by a host (Master) and includes one or more CISs).
  • CIG connected isochronous group
  • the mobile phone may send a request for establishing a CIS to the first earphone, the second earphone and the third earphone respectively.
  • a CIS is established with the mobile phone respectively, so that the mobile phone and the first earphone, the second earphone and the third earphone form a CIG.
  • a response that the CIS is established successfully may also be respectively sent to the mobile phone.
  • the mobile phone schedules the first earphone, the second earphone and the third earphone to synchronize the voice data through the established CIG.
  • the first earphone, the second earphone and the third earphone can be scheduled to synchronize voice data through the established CIG. That is, the CIG is scheduled through the mobile phone, so that the voice data among the first earphone, the second earphone and the third earphone are synchronized with each other.
  • the mobile phone 1210 establishes a CIG with the first earphone 1221 , the second earphone 1222 and the third earphone 1223 .
  • the microphone of the first earphone 1221 can receive the first user 1231
  • the voice of speaking is converted into voice data
  • the mobile phone 1210 can synchronize the voice data of the first earphone 1221 to the second earphone 1222 and the third earphone 1223 by scheduling CIG
  • the second earphone 1222 that receives the voice data and the third earphone 1223 can respectively convert the voice data into sound through the respective speakers and play it to the second user 1232 and the third user 1233 .
  • the second user 1232 and the third user 1233 can hear what the first user 1231 is saying to them through the second earphone 1222 and the third earphone 1223 they wear, and the first user 1231 and the second user 1232 and the third user can be improved.
  • the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
  • the method shown in FIG. 5 and the method shown in FIG. 11 may also be combined with each other. That is, when the mobile phone is connected to multiple headsets for audio sharing, if it is determined that the user needs to enable the voice interworking function, the mobile phone can establish a SCO link with some headsets, and establish a CIG with another part through the CIS, and then the mobile phone can forward and dispatch In the form of CIG, the voice data between the headset that establishes the SCO link and another part of the headset that establishes the CIG are synchronized, so as to realize the voice intercommunication between the headsets.
  • a mobile phone establishes a CIG with a headset that supports Bluetooth 5.2 through CIS, and establishes a SCO link with other headsets.
  • the first audio device is the first earphone (or referred to as earphone 1)
  • the second audio device is the second earphone (or referred to as earphone 2)
  • the established link eg, the first link
  • the third headset or referred to as the headset 3
  • each audio device such as the first earphone, the second earphone, and the third earphone, may also establish a link for voice communication, so as to synchronize voice data with each other.
  • FIG. 13 is a schematic flowchart of another method for voice interworking between audio devices provided by an embodiment of the present application.
  • the method for voice intercommunication between audio devices may include the following S1301-S1305.
  • the mobile phone performs audio sharing through the first earphone, the second earphone and the third earphone.
  • the mobile phone sends audio sharing status information and other earphones, such as the device information (such as media access control (MAC) addresses) of the second earphone and the third earphone, to the main earphone, such as the first earphone. That is, the mobile phone sends configuration information to the main earphone, where the configuration information includes audio sharing state information and device information of other earphones.
  • the device information such as media access control (MAC) addresses
  • MAC media access control
  • the first headset determines that the user needs to enable the voice interworking function.
  • steps S1301 to S1303 are similar to those of S901 to S903 in the method shown in FIG. 9 , and the relevant descriptions of S901 to S903 may be referred to, which will not be repeated here.
  • the first earphone, the second earphone and the third earphone establish a CIG through the CIS.
  • the first earphone may be paired with the second earphone and the third earphone first, and after the pairing is completed, the CIG is established with the second earphone and the third earphone.
  • the first earphone may first send a pairing request to the second earphone and the third earphone according to the device information sent by the mobile phone, and after receiving the pairing request, the second earphone and the third earphone may prompt the user to perform pairing (for example, by voice , vibration, etc. to prompt).
  • the user can confirm pairing with the first earphone by pressing the physical buttons on the second earphone and the third earphone, touching the touch area on the second earphone and the third earphone, tapping the second earphone and the third earphone, etc. .
  • the second earphone and the third earphone can be paired with the first earphone respectively according to the pairing request.
  • the first earphone can send a request for establishing a CIS to the second earphone and the third earphone respectively.
  • a CIS can be established with the first earphone respectively, so that the first earphone, the second earphone and the third earphone form a CIG (wherein the first earphone serves as the host).
  • a response that the CIS is established successfully may also be respectively sent to the first earphone. It should be noted that, when the second earphone and/or the third earphone are not confirmed to be paired with the first earphone, or do not support pairing with the first earphone, the first earphone can be unpaired and the voice interworking function can be turned off.
  • the first earphone schedules the first earphone, the second earphone and the third earphone to synchronize the voice data through the established CIG.
  • the first headset, the second headset, and the third headset can be scheduled to synchronize voice data through the established CIG. That is, the CIG is scheduled through the first earphone, so that the voice data of the first earphone, the second earphone and the third earphone are synchronized with each other.
  • the first earphone, the second earphone and the third earphone can synchronize the voice data through the established CIG with reference to FIG. 14 .
  • the first earphone 1411, the second earphone 1412, and the third earphone 1413 establish a CIG.
  • the microphone of the first earphone 1411 can receive the first user 1421
  • the voice of speaking is converted into voice data
  • the first earphone 1411 can synchronize the voice data of the first earphone 1411 to the second earphone 1412 and the third earphone 1413 by scheduling CIG, and finally receive the second earphone 1411 of the voice data.
  • the earphone 1412 and the third earphone 1413 can respectively convert the voice data into sound through the respective speakers and play it to the second user 1422 and the third user 1423 .
  • the second user 1422 and the third user 1423 can hear what the first user 1421 says to them through the second earphone 1412 and the third earphone 1413 they wear, and the first user 1421 and the second user 1422 and the third user can be improved.
  • the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
  • S1301 in the method shown in FIG. 13 can also be replaced with S1101 in the method shown in FIG. 11 , and accordingly, S1303 does not need to be executed. In this way, the user can determine whether to enable the voice interworking function through the mobile phone, which is relatively convenient and quick.
  • an electronic device eg, a mobile phone
  • the speaker of the electronic device can also convert the voice data into sound Play, so that the voice of the speaking user is broadcast through the electronic device.
  • the scenario shown in FIG. 8 as an example, as shown in FIG.
  • the mobile phone 15 when the first user 1511 speaks, an indicative utterance such as “broadcast” can be added before the content to be said (for example, the first user 1511 Say “Broadcasting, hello"), so when the first earphone 1521 sends the voice data to the mobile phone 1530, the mobile phone 1530 can decode and recognize it, and when it recognizes that there is an instruction such as "broadcasting" in the voice data, the mobile phone 1530 speaks When the voice data is forwarded to the second earphone 1522, the user's words, such as "hello", are also played through its own speaker.
  • the mobile phone may also be set to broadcast the voice of the speaking user by default. That is, the user does not need to add indicative words such as "broadcast” before the content to be said, and the mobile phone can also broadcast the words spoken by the user, which is not limited here.
  • the earphones for example, the above-mentioned first earphone and the second earphone
  • the link for voice intercommunication for example, SCO
  • a link for voice interworking eg, SCO link or CIS
  • the electronic device may also be connected to multiple audio devices to implement voice intercommunication without audio sharing.
  • the specific implementation is similar to the above-mentioned embodiment, except that the electronic device does not need to determine whether the user needs to enable voice interworking in the case of audio sharing. That is, as long as the electronic device determines that the user needs to enable voice interworking, the electronic device can establish a link (eg, the first link) for voice interworking with each audio device, so as to forward or synchronize the voice transmitted between the audio devices through the mobile phone. data to achieve voice intercommunication between audio devices.
  • a link eg, the first link
  • the electronic device sends the device information of the other audio devices to one of the multiple audio devices, and then the audio device establishes a link for voice communication with the other audio devices according to the device information, thereby realizing voice communication between the audio devices.
  • the user can make a voice call through a plurality of audio devices connected to the electronic device, which is convenient for the users to communicate with each other.
  • the electronic device as a mobile phone and the audio device as two speakers.
  • the mobile phone can be connected to the speakers in the living room and the speakers in the bedroom, and communicate with each other, so that the first user in the living room can communicate with the second user in the bedroom through the voice communication between the speakers in the living room and the bedroom. voice communication.
  • the system settings of the mobile phone can be opened to operate.
  • the Bluetooth setting interface of the mobile phone may include setting options for enabling Bluetooth, audio sharing, and voice interworking, as well as devices that have been paired with the mobile phone (eg, headset 1, headset 2, A list of devices for speakers, bedroom speakers, etc.).
  • the user may select (eg, select operations such as clicking) the voice interworking option in the Bluetooth setting interface to turn on the voice interworking.
  • the user can select the speaker in the living room and the speaker in the bedroom that have been paired with the mobile phone. Connect the speakers in the bedroom (for example, establish a SCO link, etc.) to enable the voice interworking function, so that the mobile phone can forward the voice data between the two speakers to achieve voice communication.
  • the electronic device as a mobile phone and the audio device as two earphones, earphone 1 and earphone 2 .
  • the mobile phone can be connected to the headset 1 and the headset 2 respectively, and communicate with each other, so that the first user wearing the headset 1 and the second user wearing the headset 2 can easily communicate through the headset 1 and the headset 2.
  • the operation can be performed in the multimedia notification interface in the pull-down notification of the mobile phone.
  • the mobile phone has been connected to the headset 1, the user can click the icon displaying more options in the multimedia notification interface in the pull-down notification to select more multimedia options.
  • the user can select a voice interworking option to perform voice interworking.
  • the handset can detect audio devices (eg, headphones) in proximity to it.
  • audio devices eg, headphones
  • the mobile phone detects that the headset 2 1701 is approaching, and a pop-up prompt 1702 prompts the user to connect the headset 2 1701 for voice communication.
  • the pop-up box prompts the voice interworking in 1702, so that the mobile phone connects with the headset 2 1701 in response to the above operation, thereby enabling the voice interworking function, so that the mobile phone can forward the voice data between the headset 1 and the headset 2 1701 to achieve voice interworking.
  • the voice communication between earphone 1 and earphone 2 can be used to enable the two users to hear the other's words more clearly, thereby more convenient to communicate.
  • the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication.
  • the embodiments of the present application further provide a voice interworking system.
  • the voice interworking system may include an electronic device, a first audio device and a second audio device.
  • the electronic device can be used to connect with the first audio device through a first asynchronous connectionless (ACL) link; send audio data to the first audio device through the first ACL link; receive the operation of the user enabling the audio sharing function; Detecting an audio device close to the electronic device; detecting that the second audio device establishes a second ACL link with the second audio device; sending audio data to the second audio device through the second ACL link; sending audio data to the first audio device through the first ACL link
  • the audio device sends audio sharing state information and device information of the second audio device; the audio sharing state information is used to indicate that the electronic device is in a state of audio sharing between the first audio device and the second audio device; Instruct, suspend sending audio data to the first audio device and the second audio device according to the first instruction;
  • the first audio device can be used for receiving audio data, and playing audio through the speaker of the first audio device according to the audio data; outputting prompt information for prompting the user whether to enable the voice interworking function; receiving the operation that the user determines to enable the voice interworking function;
  • the electronic device sends the first instruction; establishes a first link with the second audio device according to the device information; receives the user's voice through the microphone of the first audio device, generates first voice data, and sends the first voice data to the second audio device; Or, receive the second voice data from the second audio device, and play the voice through the speaker of the first audio device according to the second voice data;
  • the second audio device can be used to receive audio data, and play audio through the speaker of the second audio device according to the audio data; receive the first voice data from the first audio device, and play the audio through the speaker of the second audio device according to the first voice data voice; or, receiving the user's voice through the microphone of the second audio device, generating second voice data, and sending the second voice data to the first audio device.
  • the first audio device is specifically configured to receive user operations on function keys on the first audio device; or the first audio device receives user operations on the touch area on the first audio device; Or the first audio device receives a user's tapping operation on the first audio device.
  • the first link is a Synchronous Connection Oriented (SCO) link.
  • SCO Synchronous Connection Oriented
  • the first link is an isochronous connection stream (CIS) link.
  • CIS isochronous connection stream
  • the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo TWS earphones.
  • the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
  • A2DP Bluetooth Stereo Audio Distribution Protocol
  • the electronic device is specifically configured to receive a user's click operation on an audio sharing option displayed by the electronic device.
  • the electronic device is also used to display a pop-up prompt, and the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
  • the first audio device is specifically configured to play a voice prompting the user whether to enable the voice interworking function through the speaker of the first audio device.
  • the electronic device may include: a memory and one or more processors.
  • the memory is coupled to the processor.
  • the memory is used to store computer program code comprising computer instructions.
  • the processor executes the computer instructions, the electronic device can perform various functions or steps performed by the electronic device in the foregoing method embodiments.
  • the electronic device includes, but is not limited to, the aforementioned memory and one or more processors.
  • the structure of the electronic device may refer to the structure of the electronic device shown in FIG. 8 .
  • the audio device may include: a processor, and a memory for storing instructions executable by the processor.
  • the processor executes the computer instructions, the audio device can perform various functions or steps performed by the first audio device or the second audio device in the foregoing method embodiments.
  • Embodiments of the present application further provide a computer-readable storage medium for storing computer instructions for running the electronic device, the first audio device, or the second audio device.
  • Embodiments of the present application further provide a computer program product, including computer instructions executed by the electronic device, the first audio device, or the second audio device.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of 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 shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • 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 can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

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

Abstract

The embodiments of the present application relate to the field of electronic devices. Disclosed are a method and device for voice communication between audio devices, which method and device solve the problem of normal voice communication between users who use audio devices being affected when audio sharing is performed among a plurality of audio devices. The specific solution involves: when an electronic device is respectively connected to a first audio device and a second audio device for audio sharing, the first audio device establishing a first link with the second audio device, and the first audio device synchronizing voice data with the second audio device by means of the first link.

Description

一种音频设备间语音互通的方法及设备A method and device for voice intercommunication between audio devices
本申请要求于2021年04月09日提交国家知识产权局、申请号为202110385309.7、申请名称为“一种音频设备间语音互通的方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110385309.7 and the application title "A method and device for voice intercommunication between audio devices", which was submitted to the State Intellectual Property Office on April 9, 2021, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请实施例涉及电子设备领域,尤其涉及一种音频设备间语音互通的方法及设备。The embodiments of the present application relate to the field of electronic devices, and in particular, to a method and device for voice intercommunication between audio devices.
背景技术Background technique
为了便于用户分享自己的智能手机上播放的音频,目前很多智能手机产品都提供了支持蓝牙音频共享的功能,即音频共享功能。例如,智能手机可以分别与耳机设备1和耳机设备2进行蓝牙连接。通过音频共享功能可以将智能手机上播放的音频在与其连接的耳机设备1和耳机设备2上同时进行播放。In order to facilitate users to share audio played on their own smart phones, many smart phone products currently provide a function that supports Bluetooth audio sharing, that is, an audio sharing function. For example, the smart phone can make a Bluetooth connection with the headset device 1 and the headset device 2, respectively. Through the audio sharing function, the audio played on the smartphone can be played simultaneously on the headset device 1 and the headset device 2 connected to it.
但是,当多个用户通过智能手机提供的音频共享功能分享智能手机上播放的音频时,各用户受到各自耳机的影响,相互说话交流的声音会被减弱,导致各用户间的正常交流受到影响。如,用户1佩戴了耳机设备1,用户2佩戴了耳机设备2,以分享智能手机上播放的音频时,受到各自耳机设备的影响,用户1和用户2相互说话交流时双方可能无法听清对方所说的话,造成不便。尤其,当耳机设备1和耳机设备2支持并开启降噪功能时,用户1和用户2更无法听清对方所说的话,影响双方正常交流。However, when multiple users share the audio played on the smart phone through the audio sharing function provided by the smart phone, each user is affected by their own earphones, and the sound of each other's speech and communication will be weakened, which will affect the normal communication between the users. For example, when user 1 wears headset device 1 and user 2 wears headset device 2 to share the audio played on the smartphone, due to the influence of their respective headset devices, when user 1 and user 2 communicate with each other, both parties may not be able to hear each other clearly. words that cause inconvenience. In particular, when the earphone device 1 and the earphone device 2 support and enable the noise reduction function, the user 1 and the user 2 cannot hear the words of the other party clearly, which affects the normal communication between the two parties.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种音频设备间语音互通的方法及设备,解决了多个音频设备进行音频共享时影响使用音频设备的用户间正常语音交流的问题。Embodiments of the present application provide a method and device for voice intercommunication between audio devices, which solves the problem of affecting normal voice communication between users using audio devices when multiple audio devices perform audio sharing.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
第一方面,本申请实施例提供一种音频设备间语音互通的方法,该方法可应用于语音互通系统。该语音互通系统可以包括电子设备、第一音频设备以及第二音频设备,该方法包括:电子设备与第一音频设备通过第一异步无连接(ACL)链路连接;电子设备通过第一ACL链路向第一音频设备发送音频数据;第一音频设备接收音频数据,根据音频数据通过第一音频设备的扬声器播放音频;电子设备接收用户开启音频共享功能的操作;响应于开启音频共享功能的操作,电子设备检测靠近电子设备的音频设备;电子设备检测到第二音频设备;电子设备与第二音频设备建立第二ACL链路;电子设备通过第二ACL链路向第二音频设备发送音频数据;第二音频设备接收音频数据,根据音频数据通过第二音频设备的扬声器播放音频;电子设备通过第一ACL链路向第一音频设备发送音频共享状态信息和第二音频设备的设备信息;音频共享状态信息用于指示电子设备处于第一音频设备和第二音频设备进行音频共享的状态;第一音频设备输出用于提示用户是否开启语音互通功能的提示信息;第一音频设备接收用户确定开启语音互通功能的操作;响应于确定开启语音互通功能的操作,第一音频设备向电子设备发送第一指示,第一指示用于指示电子设备暂停向第一音频设备和第二音频设备发送音频数据;电子设备根据第一指示暂停向第一音频设备和第二音频设备发送音频数据;第一音频设备根据设备信息与第二音频设备建立第一链路;第一音频设备通过第一音频设备的麦克风接收用户的语音,生成第一语音数据,向第二音频设备发送第一语音数据;第二音频设备根据 第一语音数据通过第二音频设备的扬声器播放语音;或者,第二音频设备通过第二音频设备的麦克风接收用户的语音,生成第二语音数据,向第一音频设备发送第二语音数据;第一音频设备根据第二语音数据通过第一音频设备的扬声器播放语音。In a first aspect, an embodiment of the present application provides a method for voice interworking between audio devices, and the method can be applied to a voice interworking system. The voice interworking system may include an electronic device, a first audio device and a second audio device, and the method includes: connecting the electronic device and the first audio device through a first asynchronous connectionless (ACL) link; sending audio data to the first audio device; the first audio device receives the audio data, and plays audio through the speaker of the first audio device according to the audio data; the electronic device receives the operation of the user to enable the audio sharing function; in response to the operation of enabling the audio sharing function , the electronic device detects an audio device close to the electronic device; the electronic device detects a second audio device; the electronic device establishes a second ACL link with the second audio device; the electronic device sends audio data to the second audio device through the second ACL link The second audio equipment receives the audio data, and plays audio through the speaker of the second audio equipment according to the audio data; The electronic equipment sends the audio sharing status information and the equipment information of the second audio equipment to the first audio equipment through the first ACL link; Audio The sharing state information is used to indicate that the electronic device is in a state of audio sharing between the first audio device and the second audio device; the first audio device outputs prompt information for prompting the user whether to enable the voice interworking function; the first audio device receives the user's confirmation to enable Operation of the voice interworking function; in response to determining the operation of enabling the voice interworking function, the first audio device sends a first instruction to the electronic device, and the first instruction is used to instruct the electronic device to suspend sending audio data to the first audio device and the second audio device. ; The electronic device suspends sending audio data to the first audio device and the second audio device according to the first instruction; the first audio device establishes a first link with the second audio device according to the device information; The microphone receives the user's voice, generates first voice data, and sends the first voice data to the second audio device; the second audio device plays the voice through the speaker of the second audio device according to the first voice data; The microphone of the second audio device receives the user's voice, generates second voice data, and sends the second voice data to the first audio device; the first audio device plays the voice through the speaker of the first audio device according to the second voice data.
其中,当电子设备与第一音频设备和第二音频设备分别通过ACL链路连接后,第二音频设备接收的音频数据与第一音频设备接收的音频数据相同,即电子设备同时向第一音频设备和第二音频设备发送音频数据。Wherein, after the electronic device is connected to the first audio device and the second audio device respectively through the ACL link, the audio data received by the second audio device is the same as the audio data received by the first audio device, that is, the electronic device simultaneously sends the audio data to the first audio device. The device and the second audio device transmit audio data.
基于第一方面的方法,能够使用户可以利用多个音频设备之间的语音互通,进行语音交流,提高用户语音交流的便捷性。如,当多个用户通过音频共享功能分享手机上播放的音频时,多个用户之间能够利用各自耳机之间的语音互通进行语音交流,避免用户之间无法听清交流的声音。Based on the method of the first aspect, the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication. For example, when multiple users share the audio played on the mobile phone through the audio sharing function, the multiple users can use the voice intercommunication between their respective earphones for voice communication, so as to prevent the users from being unable to hear the voice of the communication clearly.
结合第一方面,在一种可能的设计方式中,第一音频设备接收用户确定开启语音互通功能的操作,包括:第一音频设备接收用户对第一音频设备上的功能键的操作;或第一音频设备接收用户对第一音频设备上的触摸区域的操作;或第一音频设备接收用户对第一音频设备的敲击操作。With reference to the first aspect, in a possible design manner, the first audio device receives the user's operation to determine to enable the voice interworking function, including: the first audio device receives the user's operation on the function keys on the first audio device; An audio device receives a user's operation on a touch area on the first audio device; or the first audio device receives a user's tap operation on the first audio device.
基于该可能的设计方式,用户可以通过对第一音频设备进行操作,便捷的确定需要开启语音互通功能,提高用户操作体验。Based on this possible design manner, the user can conveniently determine that the voice interworking function needs to be enabled by operating the first audio device, thereby improving the user operation experience.
结合第一方面,在另一种可能的设计方式中,第一链路为面向同步连接(SCO)链路。With reference to the first aspect, in another possible design manner, the first link is a Synchronous Connection Oriented (SCO) link.
基于该可能的设计方式,由于较早版本的蓝牙协议也支持SCO链路,所以将第一链路设为SCO链路,能够提高该方法对音频设备的适用性。Based on this possible design method, since the earlier version of the Bluetooth protocol also supports the SCO link, setting the first link as the SCO link can improve the applicability of the method to audio devices.
结合第一方面,在另一种可能的设计方式中,第一链路为等时同步连接串流(CIS)链路。With reference to the first aspect, in another possible design manner, the first link is an isochronous connection stream (CIS) link.
基于该可能的设计方式,由于CIS链路能够支持多个(如两个及以上)设备间的连接,因此,将第一链路设为CIS链路,能够使该方法可支持多个音频设备间的语音互通。Based on this possible design method, since the CIS link can support the connection between multiple (such as two or more) devices, setting the first link as the CIS link enables the method to support multiple audio devices voice communication between.
结合第一方面,在另一种可能的设计方式中,电子设备为手机,第一音频设备和第二音频设备均为真无线立体声(TWS)耳机。With reference to the first aspect, in another possible design manner, the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo (TWS) earphones.
结合第一方面,在另一种可能的设计方式中,电子设备采用蓝牙立体声音频传输协议(A2DP)发送音频数据。With reference to the first aspect, in another possible design manner, the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
结合第一方面,在另一种可能的设计方式中,电子设备接收用户开启音频共享功能的操作,包括:电子设备接收用户对电子设备显示的音频共享选项的点击操作。With reference to the first aspect, in another possible design manner, the electronic device receives an operation of enabling the audio sharing function from the user, including: the electronic device receives a user's click operation on the audio sharing option displayed by the electronic device.
基于该可能的设计方式,用户可以通过对电子设备显示的音频共享选项开启音频共享功能,提高用户的操作便捷性。Based on this possible design method, the user can enable the audio sharing function through the audio sharing option displayed on the electronic device, thereby improving the user's operational convenience.
结合第一方面,在另一种可能的设计方式中,在电子设备检测到第二音频设备之后,方法还包括:电子设备显示弹框提示,弹框提示用于提示用户可以连接第二音频设备进行音频共享。With reference to the first aspect, in another possible design manner, after the electronic device detects the second audio device, the method further includes: the electronic device displays a pop-up prompt, where the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
基于该可能的设计方式,用户可以通过对电子设备显示的弹框提示进行确认操作以确定开启音频共享,提高用户操作便捷性。Based on this possible design method, the user can confirm to enable audio sharing by performing a confirmation operation on the pop-up prompt displayed by the electronic device, thereby improving the convenience of the user's operation.
结合第一方面,在另一种可能的设计方式中,第一音频设备输出用于提示用户是否开启语音互通功能的提示信息,包括:第一音频设备通过第一音频设备的扬声器播放提示用户是否开启语音互通功能的语音。With reference to the first aspect, in another possible design manner, the first audio device outputs prompt information for prompting the user whether to enable the voice interworking function, including: the first audio device prompts the user whether Enable the voice of the voice interworking function.
第二方面,本申请实施例提供一种语音互通系统,该语音互通系统可以包括电子设 备、第一音频设备以及第二音频设备。其中,电子设备,可以用于与第一音频设备通过第一异步无连接(ACL)链路连接;通过第一ACL链路向第一音频设备发送音频数据;接收用户开启音频共享功能的操作;检测靠近电子设备的音频设备;检测到第二音频设备与第二音频设备建立第二ACL链路;通过第二ACL链路向第二音频设备发送音频数据;通过第一ACL链路向第一音频设备发送音频共享状态信息和第二音频设备的设备信息;音频共享状态信息用于指示电子设备处于第一音频设备和第二音频设备进行音频共享的状态;接收来自第一音频设备的第一指示,根据第一指示暂停向第一音频设备和第二音频设备发送音频数据;In a second aspect, an embodiment of the present application provides a voice interworking system, where the voice interworking system may include an electronic device, a first audio device, and a second audio device. Wherein, the electronic device can be used to connect with the first audio device through a first asynchronous connectionless (ACL) link; send audio data to the first audio device through the first ACL link; receive the operation of the user enabling the audio sharing function; Detecting an audio device close to the electronic device; detecting that the second audio device establishes a second ACL link with the second audio device; sending audio data to the second audio device through the second ACL link; sending audio data to the first audio device through the first ACL link The audio device sends audio sharing state information and device information of the second audio device; the audio sharing state information is used to indicate that the electronic device is in a state of audio sharing between the first audio device and the second audio device; Instruct, suspend sending audio data to the first audio device and the second audio device according to the first instruction;
第一音频设备,可以用于接收音频数据,根据音频数据通过第一音频设备的扬声器播放音频;输出用于提示用户是否开启语音互通功能的提示信息;接收用户确定开启语音互通功能的操作;向电子设备发送第一指示;根据设备信息与第二音频设备建立第一链路;通过第一音频设备的麦克风接收用户的语音,生成第一语音数据,向第二音频设备发送第一语音数据;或者,接收来自第二音频设备的第二语音数据,根据第二语音数据通过第一音频设备的扬声器播放语音;The first audio device can be used for receiving audio data, and playing audio through the speaker of the first audio device according to the audio data; outputting prompt information for prompting the user whether to enable the voice interworking function; receiving an operation that the user determines to enable the voice interworking function; The electronic device sends the first instruction; establishes a first link with the second audio device according to the device information; receives the user's voice through the microphone of the first audio device, generates first voice data, and sends the first voice data to the second audio device; Or, receive the second voice data from the second audio device, and play the voice through the speaker of the first audio device according to the second voice data;
第二音频设备,可以用于接收音频数据,根据音频数据通过第二音频设备的扬声器播放音频;接收来自第一音频设备的第一语音数据,根据第一语音数据通过第二音频设备的扬声器播放语音;或者,通过第二音频设备的麦克风接收用户的语音,生成第二语音数据,向第一音频设备发送第二语音数据。The second audio device can be used to receive audio data, and play audio through the speaker of the second audio device according to the audio data; receive the first voice data from the first audio device, and play the audio through the speaker of the second audio device according to the first voice data voice; or, receiving the user's voice through the microphone of the second audio device, generating second voice data, and sending the second voice data to the first audio device.
结合第二方面,在一种可能的设计方式中,第一音频设备,具体用于接收用户对第一音频设备上的功能键的操作;或第一音频设备接收用户对第一音频设备上的触摸区域的操作;或第一音频设备接收用户对第一音频设备的敲击操作。With reference to the second aspect, in a possible design manner, the first audio device is specifically configured to receive user operations on function keys on the first audio device; The operation of the touch area; or the first audio device receives the user's tapping operation on the first audio device.
结合第二方面,在另一种可能的设计方式中,第一链路为面向同步连接(SCO)链路。With reference to the second aspect, in another possible design manner, the first link is a synchronous connection oriented (SCO) link.
结合第二方面,在另一种可能的设计方式中,第一链路为等时同步连接串流(CIS)链路。With reference to the second aspect, in another possible design manner, the first link is an isochronous connection stream (CIS) link.
结合第二方面,在另一种可能的设计方式中,电子设备为手机,第一音频设备和第二音频设备均为真无线立体声(TWS)耳机。With reference to the second aspect, in another possible design manner, the electronic device is a mobile phone, and both the first audio device and the second audio device are True Wireless Stereo (TWS) earphones.
结合第二方面,在另一种可能的设计方式中,电子设备采用蓝牙立体声音频传输协议(A2DP)发送音频数据。With reference to the second aspect, in another possible design manner, the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
结合第二方面,在另一种可能的设计方式中,电子设备,具体用于接收用户对电子设备显示的音频共享选项的点击操作。With reference to the second aspect, in another possible design manner, the electronic device is specifically configured to receive a user's click operation on an audio sharing option displayed by the electronic device.
结合第二方面,在另一种可能的设计方式中,电子设备,还用于显示弹框提示,弹框提示用于提示用户可以连接第二音频设备进行音频共享。With reference to the second aspect, in another possible design manner, the electronic device is further used to display a pop-up prompt, and the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
结合第二方面,在另一种可能的设计方式中,第一音频设备,具体用于通过第一音频设备的扬声器播放提示用户是否开启语音互通功能的语音。With reference to the second aspect, in another possible design manner, the first audio device is specifically configured to play a voice prompting the user whether to enable the voice interworking function through the speaker of the first audio device.
应当理解的是,上述第二方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It should be understood that, for the beneficial effects of the foregoing second aspect, reference may be made to the relevant descriptions in the foregoing first aspect, and details are not described herein again.
第三方面,本申请实施例提供一种音频设备间语音互通的方法,该方法可应用于语音互通系统。该语音互通系统可以包括电子设备、第一音频设备以及第二音频设备,该方法包括:电子设备与第一音频设备通过第一异步无连接(ACL)链路连接;电子设备通过第一ACL链路向第一音频设备发送音频数据;第一音频设备接收音频数据,根据音 频数据通过第一音频设备的扬声器播放音频;电子设备接收用户开启音频共享功能的操作;响应于开启音频共享功能的操作,电子设备检测靠近电子设备的音频设备;电子设备检测到第二音频设备;电子设备与第二音频设备建立第二ACL链路;电子设备通过第二ACL链路向第二音频设备发送音频数据;第二音频设备接收音频数据,根据音频数据通过第二音频设备的扬声器播放音频;第一音频设备输出用于提示用户是否开启语音互通功能的提示信息;第一音频设备接收用户确定开启语音互通功能的操作;响应于确定开启语音互通功能的操作,第一音频设备向电子设备发送第一指示,第一指示用于指示电子设备暂停向第一音频设备和第二音频设备发送音频数据;电子设备根据第一指示暂停向第一音频设备和第二音频设备发送音频数据;第一音频设备根据设备信息与第二音频设备建立第一链路;第一音频设备通过第一音频设备的麦克风接收用户的语音,生成第一语音数据,向第二音频设备发送第一语音数据;第二音频设备根据第一语音数据通过第二音频设备的扬声器播放语音;或者,第二音频设备通过第二音频设备的麦克风接收用户的语音,生成第二语音数据,向第一音频设备发送第二语音数据;第一音频设备根据第二语音数据通过第一音频设备的扬声器播放语音。In a third aspect, an embodiment of the present application provides a method for voice interworking between audio devices, and the method can be applied to a voice interworking system. The voice interworking system may include an electronic device, a first audio device and a second audio device, and the method includes: connecting the electronic device and the first audio device through a first asynchronous connectionless (ACL) link; sending audio data to the first audio device; the first audio device receives the audio data, and plays audio through the speaker of the first audio device according to the audio data; the electronic device receives the operation of the user to enable the audio sharing function; in response to the operation of enabling the audio sharing function , the electronic device detects an audio device close to the electronic device; the electronic device detects a second audio device; the electronic device establishes a second ACL link with the second audio device; the electronic device sends audio data to the second audio device through the second ACL link The second audio device receives the audio data, and plays audio through the speaker of the second audio device according to the audio data; the first audio device outputs a prompt message for prompting the user whether to open the voice interworking function; the first audio device receives the user and determines to open the voice interworking the operation of the function; in response to determining the operation of enabling the voice interworking function, the first audio device sends a first instruction to the electronic device, and the first instruction is used to instruct the electronic device to suspend sending audio data to the first audio device and the second audio device; electronic The device suspends sending audio data to the first audio device and the second audio device according to the first instruction; the first audio device establishes a first link with the second audio device according to the device information; the first audio device receives through the microphone of the first audio device The user's voice generates first voice data, and sends the first voice data to the second audio device; the second audio device plays the voice through the speaker of the second audio device according to the first voice data; or, the second audio device passes the second audio The microphone of the device receives the user's voice, generates second voice data, and sends the second voice data to the first audio device; the first audio device plays the voice through the speaker of the first audio device according to the second voice data.
基于第三方面的方法,能够使用户可以利用多个音频设备之间的语音互通,进行语音交流,提高用户语音交流的便捷性。如,当多个用户通过音频共享功能分享手机上播放的音频时,多个用户之间能够利用各自耳机之间的语音互通进行语音交流,避免用户之间无法听清交流的声音。Based on the method of the third aspect, the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication. For example, when multiple users share the audio played on the mobile phone through the audio sharing function, the multiple users can use the voice intercommunication between their respective earphones for voice communication, so as to prevent the users from being unable to hear the voice of the communication clearly.
结合第三方面,在一种可能的设计方式中,第一音频设备接收用户确定开启语音互通功能的操作,包括:第一音频设备接收用户对第一音频设备上的功能键的操作;或第一音频设备接收用户对第一音频设备上的触摸区域的操作;或第一音频设备接收用户对第一音频设备的敲击操作。With reference to the third aspect, in a possible design manner, the first audio device receives the user's operation to determine to enable the voice interworking function, including: the first audio device receives the user's operation on the function keys on the first audio device; An audio device receives a user's operation on a touch area on the first audio device; or the first audio device receives a user's tap operation on the first audio device.
基于该可能的设计方式,用户可以通过对第一音频设备进行操作,便捷的确定需要开启语音互通功能,提高用户操作体验。Based on this possible design manner, the user can conveniently determine that the voice interworking function needs to be enabled by operating the first audio device, thereby improving the user operation experience.
结合第三方面,在另一种可能的设计方式中,第一链路为面向同步连接(SCO)链路。With reference to the third aspect, in another possible design manner, the first link is a synchronous connection oriented (SCO) link.
基于该可能的设计方式,由于较早版本的蓝牙协议也支持SCO链路,所以将第一链路设为SCO链路,能够提高该方法对音频设备的适用性。Based on this possible design method, since the earlier version of the Bluetooth protocol also supports the SCO link, setting the first link as the SCO link can improve the applicability of the method to audio devices.
结合第三方面,在另一种可能的设计方式中,第一链路为等时同步连接串流(CIS)链路。With reference to the third aspect, in another possible design manner, the first link is an isochronous connection stream (CIS) link.
基于该可能的设计方式,由于CIS链路能够支持多个(如两个及以上)设备间的连接,因此,将第一链路设为CIS链路,能够使该方法可支持多个音频设备间的语音互通。Based on this possible design method, since the CIS link can support the connection between multiple (such as two or more) devices, setting the first link as the CIS link enables the method to support multiple audio devices voice communication between.
结合第三方面,在另一种可能的设计方式中,电子设备为手机,第一音频设备和第二音频设备均为真无线立体声(TWS)耳机。With reference to the third aspect, in another possible design manner, the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo (TWS) earphones.
结合第三方面,在另一种可能的设计方式中,电子设备采用蓝牙立体声音频传输协议(A2DP)发送音频数据。With reference to the third aspect, in another possible design manner, the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
结合第三方面,在另一种可能的设计方式中,电子设备接收用户开启音频共享功能的操作,包括:电子设备接收用户对电子设备显示的音频共享选项的点击操作。With reference to the third aspect, in another possible design manner, the electronic device receives an operation of enabling the audio sharing function from the user, including: the electronic device receives a user's click operation on the audio sharing option displayed by the electronic device.
基于该可能的设计方式,用户可以通过对电子设备显示的音频共享选项开启音频共享功能,提高用户的操作便捷性。Based on this possible design method, the user can enable the audio sharing function through the audio sharing option displayed on the electronic device, thereby improving the user's operational convenience.
结合第三方面,在另一种可能的设计方式中,在电子设备检测到第二音频设备之后, 方法还包括:电子设备显示弹框提示,弹框提示用于提示用户可以连接第二音频设备进行音频共享。With reference to the third aspect, in another possible design manner, after the electronic device detects the second audio device, the method further includes: the electronic device displays a pop-up prompt, where the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
基于该可能的设计方式,用户可以通过对电子设备显示的弹框提示进行确认操作以确定开启音频共享,提高用户操作便捷性。Based on this possible design method, the user can confirm to enable audio sharing by performing a confirmation operation on the pop-up prompt displayed by the electronic device, thereby improving the convenience of the user's operation.
结合第三方面,在另一种可能的设计方式中,第一音频设备输出用于提示用户是否开启语音互通功能的提示信息,包括:第一音频设备通过第一音频设备的扬声器播放提示用户是否开启语音互通功能的语音。With reference to the third aspect, in another possible design manner, the first audio device outputs prompt information for prompting the user whether to enable the voice interworking function, including: the first audio device prompts the user whether Enable the voice of the voice interworking function.
第四方面,本申请实施例提供一种音频设备间语音互通的方法,该方法可以应用于语音互通系统。该语音互通系统可以包括电子设备、第一音频设备以及第二音频设备,该方法包括:响应于用户开启第一模式的操作,电子设备分别与第一音频设备和第二音频设备建立ACL链路;电子设备分别向第一音频设备和第二音频设备发送音频数据;第一音频设备和第二音频设备分别接收该音频数据并播放音频;响应于用户开启第二模式的操作,电子设备向第一音频设备发送第二音频设备的设备信息;第一音频设备根据设备信息与第二音频设备建立第一链路;第一音频设备通过第一链路向第二音频设备发送语音数据;第二音频设备根据语音数据播放语音;或,第二音频设备通过第一链路向第一音频设备发送语音数据;第一音频设备根据语音数据播放语音。In a fourth aspect, an embodiment of the present application provides a method for voice interworking between audio devices, and the method can be applied to a voice interworking system. The voice interworking system may include an electronic device, a first audio device, and a second audio device, and the method includes: in response to a user's operation of turning on the first mode, the electronic device establishes an ACL link with the first audio device and the second audio device respectively. The electronic equipment sends audio data to the first audio equipment and the second audio equipment respectively; the first audio equipment and the second audio equipment respectively receive the audio data and play audio; An audio device sends device information of the second audio device; the first audio device establishes a first link with the second audio device according to the device information; the first audio device sends voice data to the second audio device through the first link; the second audio device The audio device plays the voice according to the voice data; or, the second audio device sends the voice data to the first audio device through the first link; the first audio device plays the voice according to the voice data.
基于第四方面的方法,能够使用户可以利用多个音频设备之间的语音互通,进行语音交流,提高用户语音交流的便捷性。如,当多个用户通过音频共享功能分享手机上播放的音频时,多个用户之间能够利用各自耳机之间的语音互通进行语音交流,避免用户之间无法听清交流的声音。Based on the method of the fourth aspect, the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication. For example, when multiple users share the audio played on the mobile phone through the audio sharing function, the multiple users can use the voice intercommunication between their respective earphones for voice communication, so as to prevent the users from being unable to hear the voice of the communication clearly.
结合第四方面,在另一种可能的设计方式中,第一链路为面向同步连接(SCO)链路。With reference to the fourth aspect, in another possible design manner, the first link is a synchronous connection oriented (SCO) link.
基于该可能的设计方式,由于较早版本的蓝牙协议也支持SCO链路,所以将第一链路设为SCO链路,能够提高该方法对音频设备的适用性。Based on this possible design method, since the earlier version of the Bluetooth protocol also supports the SCO link, setting the first link as the SCO link can improve the applicability of the method to audio devices.
结合第四方面,在另一种可能的设计方式中,第一链路为等时同步连接串流(CIS)链路。With reference to the fourth aspect, in another possible design manner, the first link is an isochronous connection stream (CIS) link.
基于该可能的设计方式,由于CIS链路能够支持多个(如两个及以上)设备间的连接,因此,将第一链路设为CIS链路,能够使该方法可支持多个音频设备间的语音互通。Based on this possible design method, since the CIS link can support the connection between multiple (such as two or more) devices, setting the first link as the CIS link enables the method to support multiple audio devices voice communication between.
结合第四方面,在另一种可能的设计方式中,电子设备为手机,第一音频设备和第二音频设备均为真无线立体声(TWS)耳机。With reference to the fourth aspect, in another possible design manner, the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo (TWS) earphones.
结合第四方面,在另一种可能的设计方式中,电子设备采用蓝牙立体声音频传输协议(A2DP)发送音频数据。With reference to the fourth aspect, in another possible design manner, the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
结合第四方面,在另一种可能的设计方式中,用户开启第一模式的操作,包括:用户对电子设备显示的音频共享选项的点击操作。With reference to the fourth aspect, in another possible design manner, the operation for the user to enable the first mode includes: the user's click operation on the audio sharing option displayed by the electronic device.
基于该可能的设计方式,用户可以通过对电子设备显示的音频共享选项开启音频共享功能,提高用户的操作便捷性。Based on this possible design method, the user can enable the audio sharing function through the audio sharing option displayed on the electronic device, thereby improving the user's operational convenience.
结合第四方面,在另一种可能的设计方式中,用户开启第二模式的操作,包括:用户对电子设备显示的语音互通选项的点击操作。With reference to the fourth aspect, in another possible design manner, the operation for the user to enable the second mode includes: the user's click operation on the voice interworking option displayed by the electronic device.
第五方面,本申请实施例提供一种电子设备,包括:处理器,用于存储该处理器可执行指令的存储器。该处理器被配置为执行上述指令时,使得该电子设备实现如第一方面、第三方面或第四方面中任一项的音频设备间语音互通的方法中电子设备的功能。In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor, and a memory for storing instructions executable by the processor. When the processor is configured to execute the above-mentioned instructions, the electronic device implements the function of the electronic device in the method for voice intercommunication between audio devices according to any one of the first aspect, the third aspect or the fourth aspect.
第六方面,本申请实施例提供一种音频设备,包括:处理器,用于存储该处理器可执行指令的存储器。该处理器被配置为执行上述指令时,使得该音频设备实现如第一方面、第三方面或第四方面中任一项的音频设备间语音互通的方法中第一音频设备的功能。In a sixth aspect, an embodiment of the present application provides an audio device, including: a processor, and a memory for storing instructions executable by the processor. When the processor is configured to execute the above instruction, the audio device can implement the function of the first audio device in the method for voice interworking between audio devices according to any one of the first aspect, the third aspect or the fourth aspect.
第七方面,本申请实施例提供一种音频设备,包括:处理器,用于存储该处理器可执行指令的存储器。该处理器被配置为执行上述指令时,使得该音频设备实现如第一方面、第三方面或第四方面中任一项的音频设备间语音互通的方法中第二音频设备的功能。In a seventh aspect, an embodiment of the present application provides an audio device, including: a processor, and a memory for storing instructions executable by the processor. When the processor is configured to execute the above-mentioned instructions, the audio device implements the function of the second audio device in the method for voice interworking between audio devices according to any one of the first aspect, the third aspect or the fourth aspect.
附图说明Description of drawings
图1为本申请实施例提供的一种音频共享链路的示意图;1 is a schematic diagram of an audio sharing link provided by an embodiment of the present application;
图2为本申请实施例提供的一种开启音频共享的界面示意图;2 is a schematic diagram of an interface for enabling audio sharing according to an embodiment of the present application;
图3为本申请实施例提供的另一种开启音频共享的界面示意图;3 is a schematic diagram of another interface for enabling audio sharing according to an embodiment of the present application;
图4为本申请实施例提供的一种电子设备的结构示意图;FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图5为本申请实施例提供的一种音频设备间语音互通的方法的流程示意图;5 is a schematic flowchart of a method for voice intercommunication between audio devices provided by an embodiment of the present application;
图6为本申请实施例提供的一种音频设备间语音互通的方法应用时的界面示意图;6 is a schematic interface diagram when a method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图7为本申请实施例提供的另一种音频设备间语音互通的方法应用时的界面示意图;7 is a schematic interface diagram when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图8为本申请实施例提供的一种音频设备间语音互通的方法应用时的场景示意图;FIG. 8 is a schematic diagram of a scenario when a method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图9为本申请实施例提供的另一种音频设备间语音互通的方法的流程示意图;9 is a schematic flowchart of another method for voice intercommunication between audio devices provided by an embodiment of the present application;
图10为本申请实施例提供的另一种音频设备间语音互通的方法应用时的场景示意图;10 is a schematic diagram of a scenario when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图11为本申请实施例提供的另一种音频设备间语音互通的方法的流程示意图;11 is a schematic flowchart of another method for voice intercommunication between audio devices provided by an embodiment of the present application;
图12为本申请实施例提供的另一种音频设备间语音互通的方法应用时的场景示意图;12 is a schematic diagram of a scenario when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图13为本申请实施例提供的另一种音频设备间语音互通的方法的流程示意图;13 is a schematic flowchart of another method for voice intercommunication between audio devices provided by an embodiment of the present application;
图14为本申请实施例提供的另一种音频设备间语音互通的方法应用时的场景示意图;14 is a schematic diagram of a scenario when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图15为本申请实施例提供的另一种音频设备间语音互通的方法应用时的场景示意图;15 is a schematic diagram of a scenario when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图16为本申请实施例提供的另一种音频设备间语音互通的方法应用时的界面示意图;16 is a schematic interface diagram when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied;
图17为本申请实施例提供的另一种音频设备间语音互通的方法应用时的界面示意图。FIG. 17 is a schematic interface diagram when another method for voice intercommunication between audio devices provided by an embodiment of the present application is applied.
具体实施方式Detailed ways
在人们使用电子设备,如手机、平板或笔记本电脑的过程中,经常会使用这些电子设备观看视频或者听音乐等。为了提高观看视频或听音乐时的听感体验,人们会佩戴耳机以便通过耳机来收听电子设备播放的声音。或者,在公共场所(如,餐厅、咖啡厅、休息室、公共交通工具等)为了避免影响他人,人们也会佩戴耳机通过耳机来收听电子设备播放的声音。不过,当人们通过耳机收听设备上播放的声音时,很难将设备播放的声音与好友分享。因此,现在很多电子设备上都提供了支持蓝牙音频共享的功能,即音频共享功能。以手机为例,当人们通过手机观看视频或听音乐时,可以将自己以及好友的耳机通过蓝牙分别与自己的手机连接,利用音频共享功能便能够使自己以及好友都可以通过各自的耳机听到手机播放的声音。When people use electronic devices, such as mobile phones, tablets or laptops, they often use these electronic devices to watch videos or listen to music. In order to enhance the listening experience when watching videos or listening to music, people wear headphones so that they can listen to the sound played by the electronic device through the headphones. Alternatively, in order to avoid affecting others in public places (eg, restaurants, cafes, lounges, public transportation, etc.), people also wear earphones to listen to the sound played by electronic devices through earphones. However, when people listen to the sound playing on the device through headphones, it is difficult to share the sound playing from the device with friends. Therefore, many electronic devices now provide a function that supports Bluetooth audio sharing, that is, an audio sharing function. Taking a mobile phone as an example, when people watch videos or listen to music on their mobile phones, they can connect their own and their friends' headsets to their own mobile phones through Bluetooth, and use the audio sharing function to enable themselves and their friends to hear through their own headsets. The sound played by the phone.
其中,电子设备(如,手机)可以通过蓝牙分别与多个耳机连接(如电子设备分别 与耳机建立第二链路),以进行音频共享。例如,以电子设备为手机为例,如图1所示,手机101分别与多个耳机102间建立异步无连接(asynchronous connectionless,ACL)链路(ACL是主单元与共存于微微网中的所有从单元之间实现一点多址的连接方式),手机101可通过ACL链路向各耳机102传输音频数据,从而实现音频共享。当然,电子设备还可以通过其他方式与多个耳机实现音频共享,此处不做限制。Wherein, an electronic device (such as a mobile phone) can be respectively connected with a plurality of earphones through Bluetooth (for example, the electronic device establishes a second link with the earphones respectively) to perform audio sharing. For example, taking the electronic device as a mobile phone as an example, as shown in FIG. 1 , an asynchronous connectionless (ACL) link is established between the mobile phone 101 and a plurality of earphones 102 respectively (ACL is the main unit and all the devices coexisting in the piconet). One-point-multiple-access connection between the slave units), the mobile phone 101 can transmit audio data to each earphone 102 through the ACL link, thereby realizing audio sharing. Of course, the electronic device may also share audio with multiple earphones in other ways, which is not limited here.
作为一种示例,用户可以在电子设备的系统设置对电子设备与多个耳机的连接以及音频共享进行设置和开启。例如,以电子设备为手机,连接的耳机为耳机1和耳机2两个耳机为例,如图2所示,当用户需要通过手机进行音频共享时,可以打开手机的系统设置进行操作。如图2中的(a)所示,手机的蓝牙设置界面,可以包括开启蓝牙、音频共享的设置选项,以及包含已经与手机配对的设备(如,耳机1、耳机2、智能音箱、智能投影仪等)的设备列表。用户可以在开启蓝牙功能时,选择(如,点击等选择操作)蓝牙设置界面中的音频共享选项。作为对该操作的响应,手机可以显示音频共享设置界面。如图2中的(b)所示,音频共享设置界面,可以包括开启音频共享的设置选项,包含以及已经与手机配对的设备的设备列表。用户可以在音频共享设置界面选择开启音频共享功能,并选择已经与手机配对的耳机1和耳机2。作为对这些操作的响应,手机可分别与耳机1和耳机2连接(如,建立ACL链路),从而开启音频共享功能,以使手机上的音频能够同时通过耳机1和耳机2进行播放。As an example, the user may set and enable the connection between the electronic device and multiple earphones and audio sharing in the system settings of the electronic device. For example, take the electronic device as a mobile phone and the connected earphones as earphone 1 and earphone 2 as an example, as shown in Figure 2, when the user needs to share audio through the mobile phone, he can open the system settings of the mobile phone to operate. As shown in (a) of Figure 2, the Bluetooth setting interface of the mobile phone may include setting options for enabling Bluetooth and audio sharing, as well as devices that have been paired with the mobile phone (eg, earphone 1, earphone 2, smart speakers, and smart projectors). equipment list, etc.). When turning on the Bluetooth function, the user may select (eg, click to select an operation) the audio sharing option in the Bluetooth setting interface. In response to this action, the phone can display the audio sharing settings interface. As shown in (b) of FIG. 2 , the audio sharing setting interface may include setting options for enabling audio sharing, including and a device list of devices that have been paired with the mobile phone. The user can choose to enable the audio sharing function on the audio sharing setting interface, and select the headset 1 and headset 2 that have been paired with the mobile phone. In response to these operations, the mobile phone can connect to headset 1 and headset 2 respectively (eg, establish an ACL link), thereby enabling the audio sharing function, so that the audio on the mobile phone can be played through headset 1 and headset 2 at the same time.
作为另一种示例,用户可以在电子设备的多媒体通知界面开启和设置音频共享。例如,以电子设备为手机,连接的耳机为耳机1和耳机2两个耳机为例,如图3所示,当用户需要通过手机进行音频共享时,可以在手机的下拉通知中的多媒体通知界面中进行操作。如图3中的(a)所示,当用户正在使用与手机连接的耳机1收听手机播放的音频(如,耳机1与手机通过第一ACL链路连接,手机通过第一ACL链路向耳机1发送音频数据,耳机1根据接收的音频数据通过扬声器播放音频)时,用户可以在下拉通知中的多媒体通知界面点击显示更多选项的图标,以便选择更多关于多媒体的选项。之后,如图3中的(b)所示,用户可以选择音频共享选项,以开启音频共享。当用户选择音频共享后,作为对这些操作的响应,手机可以检测靠近它的音频设备(如,耳机)。如图3中的(c)所示,当耳机2(例如图中所示的耳机301)靠近手机时,手机检测到耳机2靠近,便能够弹出提示用户可以连接耳机2进行音频共享的弹框提示302,用户可以通过点击弹框提示302中的音频共享,以使手机响应上述的操作与耳机2进行连接(如,手机与耳机2建立第二ACL链路),从而开启音频共享功能,使手机上的音频能够同时通过耳机1和耳机2进行播放(即手机还通过第二ACL链路向耳机2发送音频数据,耳机2根据接收到的音频数据通过扬声器播放音频)。可选地,手机可以采用蓝牙立体声音频传输协议(advanced audio distribution profile,A2DP)分别向耳机1和耳机2传输音频数据。As another example, the user may enable and set audio sharing on the multimedia notification interface of the electronic device. For example, take the electronic device as a mobile phone and the connected earphones as earphone 1 and earphone 2 as an example, as shown in Figure 3, when the user needs to share audio through the mobile phone, the multimedia notification interface in the pull-down notification of the mobile phone can be used as an example. operate in. As shown in (a) of Figure 3, when the user is listening to the audio played by the mobile phone using the headset 1 connected to the mobile phone (for example, the headset 1 is connected to the mobile phone through the first ACL link, and the mobile phone sends the headset to the headset through the first ACL link) 1 to send audio data, and the headset 1 to play audio through the speaker according to the received audio data), the user can click the icon showing more options in the multimedia notification interface in the pull-down notification to select more multimedia options. After that, as shown in (b) of FIG. 3 , the user can select an audio sharing option to enable audio sharing. When the user selects audio sharing, in response to these actions, the phone can detect audio devices (eg, headphones) in proximity to it. As shown in (c) of FIG. 3 , when the earphone 2 (such as the earphone 301 shown in the figure) is close to the mobile phone, the mobile phone detects that the earphone 2 is approaching, and can pop up a pop-up box prompting the user to connect the earphone 2 for audio sharing Prompt 302, the user can click the audio sharing in the pop-up box prompt 302 to make the mobile phone connect with the headset 2 in response to the above operation (for example, the mobile phone and the headset 2 establish a second ACL link), thereby enabling the audio sharing function, so that the The audio on the mobile phone can be played through the headset 1 and the headset 2 at the same time (that is, the mobile phone also sends audio data to the headset 2 through the second ACL link, and the headset 2 plays audio through the speaker according to the received audio data). Optionally, the mobile phone can transmit audio data to the headset 1 and the headset 2 respectively by using a Bluetooth stereo audio distribution profile (advanced audio distribution profile, A2DP).
示例地,电子设备(如,手机)还可以通过类似真无线立体声(true wireless stereo,TWS)耳机两个耳塞间同步音频的方式进行音频共享。例如,当第一耳机与手机建立链路后进行音频播放时,第二耳机可以通过监听第一耳机与手机间建立的链路以获取手机和第一耳机间传输的音频数据,从而实现第一耳机和第二耳机音频共享。For example, an electronic device (eg, a mobile phone) may also perform audio sharing in a manner similar to a true wireless stereo (true wireless stereo, TWS) headset synchronizing audio between two earbuds. For example, when audio playback is performed after the first earphone establishes a link with the mobile phone, the second earphone can obtain the audio data transmitted between the mobile phone and the first earphone by monitoring the link established between the first earphone and the mobile phone, thereby realizing the first Headphone and second headphone audio sharing.
由此可以看出,通过音频共享功能,能够使用户更好更方便的与好友分享自己电子设备上播放的音频。但是,当多个用户通过耳机利用音频共享功能分享电子设备上播放的音频时,由于各用户都佩戴了耳机,因此受耳机的影响用户对外界的声音感知会减弱。 所以,当正在使用音频共享功能的多个用户相互说话交流时,各用户之间可能很难听到相互交流的声音。并且,为了提高收听时的沉浸感,现在很多耳机都支持降噪功能,当开启降噪功能时,各用户之间便更加难以听清相互交流的声音。It can be seen from this that the audio sharing function enables the user to share the audio played on his electronic device with his friends in a better and more convenient manner. However, when multiple users use the audio sharing function to share the audio played on the electronic device through the headset, since each user wears the headset, the user's perception of external sound will be weakened due to the impact of the headset. Therefore, when multiple users who are using the audio sharing function speak and communicate with each other, it may be difficult for the users to hear each other's voices. In addition, in order to improve the immersion of listening, many headphones now support the noise reduction function. When the noise reduction function is turned on, it is more difficult for each user to hear the sounds of mutual communication.
为解决上述问题,本申请实施例提供的一种音频设备间语音互通的方法。该方法可以应用于语音互通系统,即由电子设备和至少两个音频设备(如第一音频设备和至少一个第二音频设备)构成的系统。该方法可以包括:当电子设备分别与多个音频设备进行音频共享时。电子设备可以分别与各音频设备建立用于语音互通的链路(如,第一链路),从而通过电子设备转发或同步各音频设备间传输的语音数据,以实现音频设备间的语音互通。或者,多个音频设备中的一个可作为主设备(即主音频设备),分别与其他音频设备建立用于语音互通的链路(如,第一链路),从而通过作为主设备的音频设备转发或同步各音频设备间传输的语音数据,以实现音频设备间的语音互通。In order to solve the above problem, an embodiment of the present application provides a method for voice intercommunication between audio devices. The method can be applied to a voice interworking system, that is, a system composed of an electronic device and at least two audio devices (eg, a first audio device and at least one second audio device). The method may include: when the electronic device performs audio sharing with a plurality of audio devices respectively. The electronic device can establish a link (eg, a first link) for voice intercommunication with each audio device, so as to forward or synchronize the voice data transmitted between the audio devices through the electronic device, so as to realize the voice intercommunication between the audio devices. Alternatively, one of the multiple audio devices can be used as the master device (ie, the master audio device), and establish a link (eg, the first link) for voice interworking with other audio devices, so as to pass the audio device as the master device. Forward or synchronize the voice data transmitted between audio devices to realize voice intercommunication between audio devices.
需要说明的是,上述建立的用于语音互通的链路,可以是面向同步连接(synchronous connection oriented,SCO)链路(SCO用保留带宽进行同步通信(电路交换),主要支持传输有时间限制的信息),扩展同步链路(extended synchronous connection-oriented,ESCO)(与SCO类似,且具有重传机制),等时同步连接串流(connected isochronous stream,CIS)链路(CIS是一种逻辑传输,使连接的设备能够在任意方向传输等时数据)等,也可以是基于2.4G无线技术建立的专用链路等。当然,本领域技术人员也可以根据实际情况定义用于用户语音互通的链路,此处不做限制。It should be noted that the above established link for voice interworking may be a synchronous connection oriented (SCO) link (SCO uses reserved bandwidth for synchronous communication (circuit switching), and mainly supports transmission time-limited information), extended synchronous connection-oriented (ESCO) (similar to SCO, and has a retransmission mechanism), an isochronous connected isochronous stream (CIS) link (CIS is a logical transmission , enabling connected devices to transmit isochronous data in any direction), etc., or a dedicated link established based on 2.4G wireless technology. Of course, those skilled in the art can also define a link for user voice interworking according to the actual situation, which is not limited here.
如此,能够使用户可以利用多个音频设备之间的语音互通,进行语音交流,提高用户语音交流的便捷性。如,当多个用户通过音频共享功能分享手机上播放的音频时,多个用户之间能够利用各自耳机之间的语音互通进行语音交流,避免用户之间无法听清交流的声音。In this way, the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication. For example, when multiple users share the audio played on the mobile phone through the audio sharing function, the multiple users can use the voice intercommunication between their respective earphones for voice communication, so as to prevent the users from being unable to hear the voice of the communication clearly.
以下,将结合附图对本申请实施例提供的音频设备间语音互通的方法进行说明。Hereinafter, the method for voice intercommunication between audio devices provided by the embodiments of the present application will be described with reference to the accompanying drawings.
在本申请实施例中,上述音频设备是具有拾音和放音功能的设备(如,具有麦克风和扬声器的设备),如,耳机、蓝牙音箱、智能音箱等。上述电子设备,可以是手机、平板电脑、手持计算机,PC,蜂窝电话,个人数字助理(personal digital assistant,PDA),可穿戴式设备(如:智能手表、智能手环),智能家居设备(如:电视机),车机(如:车载电脑),智慧屏,游戏机,智能电视盒,以及增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备等。本申请实施例对于电子设备的具体设备形态不作特殊限制。In the embodiments of the present application, the above-mentioned audio device is a device with functions of sound pickup and playback (eg, a device with a microphone and a speaker), such as an earphone, a Bluetooth speaker, a smart speaker, and the like. The above-mentioned electronic device can be a mobile phone, a tablet computer, a handheld computer, a PC, a cellular phone, a personal digital assistant (personal digital assistant, PDA), a wearable device (such as a smart watch, a smart bracelet), a smart home device (such as : TV), car machine (such as: car computer), smart screen, game console, smart TV box, and augmented reality (AR)/virtual reality (VR) equipment, etc. The embodiments of the present application do not specifically limit the specific device form of the electronic device.
可选地,在一些实施方式中,上述多个音频设备的设备形态可以相同。例如,多个音频设备均为耳机。Optionally, in some embodiments, the device shapes of the above-mentioned multiple audio devices may be the same. For example, several audio devices are headphones.
或者,在另一些实施方式中,上述多个音频设备的设备形态还可以不同。例如,多个音频设备中有耳机还有智能音箱。Or, in other embodiments, the device forms of the above-mentioned multiple audio devices may also be different. For example, multiple audio devices include headphones and smart speakers.
示例地,以电子设备为手机为例,图4示出了本申请实施例提供的一种电子设备的结构示意图。也即,示例性的,图4所示的电子设备可以是手机。For example, taking the electronic device as a mobile phone as an example, FIG. 4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. That is, by way of example, the electronic device shown in FIG. 4 may be a mobile phone.
如图4所示,电子设备可以包括处理器410,外部存储器接口420,内部存储器421,通用串行总线(universal serial bus,USB)接口430,充电管理模块440,电源管理模块441,电池442,天线1,天线2,移动通信模块450,无线通信模块460,音频模块470,扬声器470A,受话器470B,麦克风470C,耳机接口470D,传感器模块480,按键490,马达491,指示器492,摄像头493,显示屏494,以及用户标识模块(subscriber identification  module,SIM)卡接口495等。其中,传感器模块480可以包括压力传感器480A,陀螺仪传感器480B,气压传感器480C,磁传感器480D,加速度传感器480E,距离传感器480F,接近光传感器480G,指纹传感器480H,温度传感器480J,触摸传感器480K,环境光传感器480L,骨传导传感器480M等。As shown in FIG. 4 , the electronic device may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charge management module 440, a power management module 441, a battery 442, Antenna 1, Antenna 2, Mobile Communication Module 450, Wireless Communication Module 460, Audio Module 470, Speaker 470A, Receiver 470B, Microphone 470C, Headphone Interface 470D, Sensor Module 480, Key 490, Motor 491, Indicator 492, Camera 493, A display screen 494, and a subscriber identification module (SIM) card interface 495, etc. Wherein, the sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, and an environmental sensor. Light sensor 480L, bone conduction sensor 480M, etc.
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器410可以包括一个或多个处理单元,例如:处理器410可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。A controller can be the nerve center and command center of an electronic device. The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器410中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器410中的存储器为高速缓冲存储器。该存储器可以保存处理器410刚用过或循环使用的指令或数据。如果处理器410需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器410的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in processor 410 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 410 . If the processor 410 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 410 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器410可以包括一个或多个接口。接口可以包括集成电路(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)接口等。In some embodiments, processor 410 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块450,无线通信模块460,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块450可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块450可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块450可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块450还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块450的至少部分功能模块可以被设置于处理器410中。在一些实施例中,移动通信模块450的至少部分功能模块可以与处理器410的至少部分模块被设置在同一个器件中。The mobile communication module 450 can provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the electronic device. The mobile communication module 450 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like. The mobile communication module 450 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 450 may be provided in the processor 410 . In some embodiments, at least part of the functional modules of the mobile communication module 450 may be provided in the same device as at least part of the modules of the processor 410 .
无线通信模块460可以提供应用在电子设备上的包括无线局域网(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)等无线通信的解决方案。无线通信模块460可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块460经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器410。无线通信模块460还可以从处理器410接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 460 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems applied on electronic devices. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 460 may be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 410 . The wireless communication module 460 can also receive the signal to be sent from the processor 410 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,电子设备的天线1和移动通信模块450耦合,天线2和无线通信模块460耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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)。In some embodiments, the antenna 1 of the electronic device is coupled with the mobile communication module 450, and the antenna 2 is coupled with the wireless communication module 460, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
电子设备通过GPU,显示屏494,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏494和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器410可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device realizes the display function through the GPU, the display screen 494, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏494用于显示图像,视频等。显示屏494包括显示面板。显示面板可以采用液晶显示屏(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)等。在一些实施例中,电子设备可以包括1个或N个显示屏494,N为大于1的正整数。Display screen 494 is used to display images, video, and the like. Display screen 494 includes a display panel. The display panel can be 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 (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the electronic device may include 1 or N display screens 494, where N is a positive integer greater than 1.
电子设备可以通过ISP,摄像头493,视频编解码器,GPU,显示屏494以及应用处理器等实现拍摄功能。在一些实施例中,电子设备可以包括1个或N个摄像头493,N为大于1的正整数。The electronic device can realize the shooting function through the ISP, the camera 493, the video codec, the GPU, the display screen 494, and the application processor. In some embodiments, the electronic device may include 1 or N cameras 493 , where N is a positive integer greater than 1.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Through the NPU, applications such as intelligent cognition of electronic devices can be realized, such as image recognition, face recognition, speech recognition, text understanding, etc.
内部存储器421可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器410通过运行存储在内部存储器421的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器421可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器421可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 421 may be used to store computer executable program code, which includes instructions. The processor 410 executes various functional applications and data processing of the electronic device by executing the instructions stored in the internal memory 421 . The internal memory 421 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device. In addition, the internal memory 421 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
电子设备可以通过音频模块470,扬声器470A,受话器470B,麦克风470C,耳机接口470D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device can implement audio functions through an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, and an application processor. Such as music playback, recording, etc.
当然,可以理解的,上述图4所示仅仅为电子设备的形态为手机时的示例性说明。若电子设备是平板电脑,手持计算机,PC,PDA,可穿戴式设备(如:智能手表、智能手环),智能家居设备(如:智能电视),车机(如:车载电脑),智慧屏,游戏机以及AR/VR设备等其他设备形态时,电子设备的结构中可以包括比图4中所示更少的结构,也可以包括比图4中所示更多的结构,在此不作限制。Of course, it can be understood that the above-mentioned FIG. 4 is only an exemplary illustration when the form of the electronic device is a mobile phone. If the electronic devices are tablet computers, handheld computers, PCs, PDAs, wearable devices (such as smart watches, smart bracelets), smart home devices (such as smart TVs), car devices (such as car computers), smart screens , game consoles, AR/VR devices and other device forms, the structure of the electronic device may include fewer structures than those shown in FIG. 4 , or may include more structures than those shown in FIG. 4 , which is not limited here. .
以下实施例中的方法均可以在具有上述硬件结构的电子设备中实现。下面将结合附图对本申请实施例进行举例说明。The methods in the following embodiments can all be implemented in an electronic device having the above-mentioned hardware structure. The embodiments of the present application will be illustrated below with reference to the accompanying drawings.
以电子设备为手机,待语音互通的音频设备为两个耳机,即第一音频设备为第一耳机(或称为耳机1),第二音频设备为第二耳机(或称为耳机2),建立的用于语音互通的链路(如,第一链路)为SCO链路为例。Taking the electronic device as a mobile phone, the audio devices to be communicated with each other are two earphones, that is, the first audio device is the first earphone (or referred to as earphone 1), and the second audio device is the second earphone (or referred to as earphone 2), The established link (eg, the first link) for voice interworking is an SCO link as an example.
图5为本申请实施例提供的一种音频设备间语音互通的方法的流程示意图。如图5所示,该音频设备间语音互通的方法可以包括以下S501-S503。FIG. 5 is a schematic flowchart of a method for voice intercommunication between audio devices according to an embodiment of the present application. As shown in FIG. 5 , the method for voice intercommunication between audio devices may include the following S501-S503.
S501、手机在通过第一耳机和第二耳机进行音频共享的情况下,确定用户需要开启语音互通功能。S501. The mobile phone determines that the user needs to enable the voice interworking function in the case of audio sharing through the first earphone and the second earphone.
其中,手机通过第一耳机和第二耳机进行音频共享,可以是用户通过如图2或如图3所示的方式开启的。还可以是用户通过其他方式开启的,此处不做限制。The mobile phone performs audio sharing through the first earphone and the second earphone, which may be enabled by the user in the manner shown in FIG. 2 or FIG. 3 . It can also be opened by the user through other methods, which is not limited here.
在一些可能的实施方式中,手机可以通过接收用户的操作,根据用户的操作来确定用户是否需要开启语音互通功能。In some possible implementations, the mobile phone may receive the user's operation and determine whether the user needs to enable the voice interworking function according to the user's operation.
作为一种示例,以用户通过如图2所示的方式开启音频共享为例,如图6所示,在音频共享设置界面中还可以包括用于开启语音互通的选项。在用户开启音频共享后,用户可以通过点击该语音互通的选项,以开启语音互通功能。当手机接收到用户点击语音互通的选项的操作时,手机便能够确定用户需要开启语音互通功能,则作为对该操作的响应,手机可开启语音互通功能。需要说明的是,在该示例中,当用户没有通过点击选择如图2中的(b)所示的开启音频共享的选项以开启音频共享时,图6中所示的语音互通的选项则处于关闭锁定状态。即用户无法在手机没有开启音频共享的情况下开启语音互通功能。当然,在本申请的其他实施例中,用户也可以在手机没有开启音频共享的情况下通过如图6所示的方式开启语音互通功能,此处不做限制。As an example, taking the user enabling audio sharing as shown in FIG. 2 as an example, as shown in FIG. 6 , the audio sharing setting interface may further include an option for enabling voice interworking. After the user enables the audio sharing, the user can activate the voice interworking function by clicking the option of the voice interworking. When the mobile phone receives the operation of the user clicking the option of voice interworking, the mobile phone can determine that the user needs to enable the voice interworking function, and in response to the operation, the mobile phone can enable the voice interworking function. It should be noted that, in this example, when the user does not click to select the option for enabling audio sharing as shown in (b) in FIG. 2 to enable audio sharing, the option for voice interworking as shown in FIG. 6 is in Turn off the locked state. That is, the user cannot enable the voice interworking function without enabling audio sharing on the mobile phone. Of course, in other embodiments of the present application, the user may also enable the voice interworking function in the manner shown in FIG. 6 when the mobile phone does not enable audio sharing, which is not limited here.
作为另一种示例,在用户开启音频共享后(如,通过如图2或如图3所示的方式开启音频共享),手机可以通过弹窗的方式,询问用户是否开启语音互通功能。然后根据用户相应的操作来确定用户是否需要开启语音互通功能。例如,如图7所示,在用户开启音频共享后,手机可以弹出询问是否开启语音互通功能的弹窗。在该弹窗中可以提供“是”和“否”两个选项控件。用户可以通过点击“是”或“否”选项来开启或不开启语音互通功能。当手机接收到用户点击“是”或“否”选项的操作时,手机便能够确定用户是否需要开启语音互通功能。如,手机接收到用户对“是”选项的操作,则作为响应,手机可开启语音互通功能。又如,手机接收到用户对“否”选项的操作,则作为响应,手机可不开启语音互通功能。As another example, after the user enables audio sharing (eg, by enabling audio sharing as shown in FIG. 2 or FIG. 3 ), the mobile phone may ask the user whether to enable the voice interworking function through a pop-up window. Then, according to the corresponding operation of the user, it is determined whether the user needs to enable the voice interworking function. For example, as shown in FIG. 7 , after the user enables audio sharing, the mobile phone may pop up a pop-up window asking whether to enable the voice interworking function. In this pop-up window, you can provide two option controls of "Yes" and "No". The user can enable or disable the voice interworking function by clicking the "Yes" or "No" option. When the mobile phone receives the operation of the user clicking the "Yes" or "No" option, the mobile phone can determine whether the user needs to enable the voice interworking function. For example, when the mobile phone receives the user's operation of the "Yes" option, in response, the mobile phone can enable the voice interworking function. For another example, when the mobile phone receives the user's operation of the "No" option, in response, the mobile phone may not enable the voice interworking function.
当手机确定用户需要开启语音互通功能时,如,手机接收到用户开启语音互通功能的操作时。则,手机可执行以下S502。需要说明的是,在一些其他实施例中,手机也可以不需要确定用户是否需要开启语音互通功能,而是默认开启。如,当手机音频共享时, 则执行以下S502。When the mobile phone determines that the user needs to enable the voice interworking function, for example, when the mobile phone receives an operation of the user to enable the voice interworking function. Then, the mobile phone can execute the following S502. It should be noted that, in some other embodiments, the mobile phone does not need to determine whether the user needs to enable the voice interworking function, but enables it by default. For example, when the mobile phone audio is shared, the following S502 is performed.
S502、手机分别与第一耳机和第二耳机建立SCO链路。S502, the mobile phone establishes a SCO link with the first earphone and the second earphone respectively.
在一些可能的实施方式中,手机可以分别向第一耳机和第二耳机发送建立SCO链路的请求,当第一耳机和第二耳机分别接收到上述请求后,便能够分别与手机建立SCO链路。可选地,第一耳机和第二耳机分别与手机建立了SCO链路后,还可以分别向手机发送SCO链路建立成功的响应。In some possible implementations, the mobile phone can send a request for establishing a SCO link to the first headset and the second headset respectively, and after the first headset and the second headset receive the above request, they can establish a SCO link with the mobile phone respectively. road. Optionally, after the first earphone and the second earphone respectively establish the SCO link with the mobile phone, a response that the SCO link is established successfully may also be respectively sent to the mobile phone.
需要说明的是,手机利用蓝牙连接通过第一耳机和第二耳机进行音频共享的情况下,通常手机与第一耳机和第二耳机之间已经完成了配对,因此手机分别与第一耳机和第二耳机建立SCO链路前可以不再进行手机与耳机的配对。当然,若手机通过第一耳机和第二耳机进行音频共享不是通过蓝牙连接实现的,而是通过其他连接方式实现的,则在手机分别与第一耳机和第二耳机建立SCO链路之前,手机可以先分别与第一耳机和第二耳机配对。It should be noted that when the mobile phone uses Bluetooth connection to share audio through the first headset and the second headset, the pairing between the mobile phone and the first headset and the second headset is usually completed, so the mobile phone is connected to the first headset and the second headset respectively. The pairing of the mobile phone and the headset can no longer be performed before the two headsets establish the SCO link. Of course, if the audio sharing of the mobile phone through the first earphone and the second earphone is not realized through a Bluetooth connection, but through other connection methods, before the mobile phone establishes the SCO link with the first earphone and the second earphone respectively, the mobile phone It can be paired with the first earphone and the second earphone respectively first.
其中,第一耳机与第二耳机均可支持免提协议(hands-free profile,HFP)。当手机分别与第一耳机和第二耳机建立了用于语音互通的链路后,手机便能够通过该链路对第一耳机和第二耳机间的语音数据进行转发。如,手机可执行以下S503。Wherein, both the first earphone and the second earphone can support a hands-free profile (hands-free profile, HFP). After the mobile phone establishes a link for voice intercommunication with the first earphone and the second earphone respectively, the mobile phone can forward the voice data between the first earphone and the second earphone through the link. For example, the mobile phone can execute the following S503.
S503、手机转发第一耳机和第二耳机间的语音数据。S503, the mobile phone forwards the voice data between the first earphone and the second earphone.
在一些可能的实施方式中,手机可以将第一耳机和第二耳机间的语音数据进行解码、路由、编码之后进行转发。也可以将第一耳机和第二耳机间的语音数据直接进行透传,即手机对语音数据只做转发不做处理。In some possible implementations, the mobile phone may forward the voice data between the first earphone and the second earphone after decoding, routing, and encoding. It is also possible to directly transparently transmit the voice data between the first earphone and the second earphone, that is, the mobile phone only forwards the voice data without processing it.
示例地,以手机将第一耳机的语音数据转发到第二耳机为例。手机转发第一耳机和第二耳机间的语音数据可以参考图8。如图8所示,手机810分别与第一耳机821和第二耳机822之间建立有SCO链路。当佩戴第一耳机821的第一用户831说话时(如,第一用户831向第二用户832说“你好”),第一耳机821的麦克风可以接收到第一用户831说话的声音并转换成语音数据,然后第一耳机821可以通过SCO链路,将该语音数据发送给手机810,手机810接收到语音数据后可以转发给第二耳机822,最终接收到该语音数据的第二耳机822可以将语音数据通过扬声器转换为声音播放给第二用户832。从而使第二用户832能够通过第二耳机822听到第一用户831对其说的话,提升第一用户831和第二用户832之间语音交流的效果。For example, take the mobile phone forwarding the voice data of the first earphone to the second earphone as an example. Refer to FIG. 8 for the mobile phone to forward the voice data between the first earphone and the second earphone. As shown in FIG. 8 , a SCO link is established between the mobile phone 810 and the first headset 821 and the second headset 822 respectively. When the first user 831 wearing the first earphone 821 speaks (eg, the first user 831 says "hello" to the second user 832), the microphone of the first earphone 821 can receive the voice of the first user 831 and convert it Then the first headset 821 can send the voice data to the mobile phone 810 through the SCO link, the mobile phone 810 can forward the voice data to the second headset 822 after receiving the voice data, and finally the second headset 822 that receives the voice data The voice data can be converted into sound through the speaker and played to the second user 832 . Therefore, the second user 832 can hear what the first user 831 speaks to him through the second earphone 822, thereby improving the effect of voice communication between the first user 831 and the second user 832.
其中,若耳机(如上述第一耳机,第二耳机)为TWS耳机,则可以通过耳机的左耳机或右耳机的麦克风来采集语音,或者同时通过左耳机的麦克风和右耳机的麦克风采集语音。Wherein, if the earphones (such as the first earphone and the second earphone above) are TWS earphones, the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
继续以电子设备为手机,待语音互通的音频设备为两个耳机,即第一音频设备为第一耳机(或称为耳机1),第二音频设备为第二耳机(或称为耳机2),建立的用于语音互通的链路(如,第一链路)为SCO链路为例。本申请实施例还可以通过第一耳机与第二耳机间建立链路,以使第一耳机和第二耳机间可以通过建立的链路直接传输语音数据。Continue to take the electronic device as the mobile phone, and the audio devices to be communicated with each other are two earphones, that is, the first audio device is the first earphone (or referred to as earphone 1), and the second audio device is the second earphone (or referred to as earphone 2) , the established link (eg, the first link) for voice interworking is an SCO link as an example. In this embodiment of the present application, a link may also be established between the first earphone and the second earphone, so that voice data may be directly transmitted between the first earphone and the second earphone through the established link.
例如,图9为本申请实施例提供的另一种音频设备间语音互通的方法的流程示意图。如图9所示,该音频设备间语音互通的方法可以包括以下S901-S905。For example, FIG. 9 is a schematic flowchart of another method for voice interworking between audio devices provided by an embodiment of the present application. As shown in FIG. 9 , the method for voice intercommunication between audio devices may include the following S901-S905.
S901、手机通过第一耳机和第二耳机进行音频共享。S901, the mobile phone performs audio sharing through the first earphone and the second earphone.
手机通过第一耳机和第二耳机进行音频共享,可以是用户通过如图2或如图3所示的方式开启的。还可以是用户通过其他方式开启的,此处不做限制。The mobile phone performs audio sharing through the first earphone and the second earphone, which may be enabled by the user in the manner shown in FIG. 2 or FIG. 3 . It can also be opened by the user through other methods, which is not limited here.
当手机通过第一耳机和第二耳机进行音频共享时,手机可以向两个耳机中的一个发 送其他耳机的设备信息。如,手机可执行以下S902。When the mobile phone performs audio sharing through the first headset and the second headset, the mobile phone can send the device information of the other headset to one of the two headsets. For example, the mobile phone can execute the following S902.
S902、手机向主耳机,如,第一耳机发送音频共享状态信息和其他耳机,如,第二耳机的设备信息(如,媒体存取控制(media access control,MAC)地址)。即,手机向主耳机发送配置信息,该配置信息包括音频共享状态信息和其他耳机的设备信息。S902, the mobile phone sends the audio sharing status information and other earphones, such as the device information (eg, media access control (MAC) address) of the second earphone, to the main earphone, such as the first earphone. That is, the mobile phone sends configuration information to the main earphone, where the configuration information includes audio sharing state information and device information of other earphones.
需要说明的是,需要进行语音互通的多个耳机中,可以根据实际需要定义主耳机,此处不做限制。例如,可以将与手机连接进行音频共享时,最先与手机连接的耳机作为主耳机。在该实施例中,将以第一耳机为主耳机进行举例说明。It should be noted that, among the multiple earphones that need to perform voice intercommunication, the main earphone can be defined according to actual needs, which is not limited here. For example, when connecting to a mobile phone for audio sharing, the headset that is first connected to the mobile phone can be used as the primary headset. In this embodiment, the first earphone is used as the main earphone for illustration.
作为一种示例,手机可以通过进行音频共享所建立的链路将音频共享状态信息和其他耳机的设备信息发送给主耳机。当然,手机还可以通过广播等其他形式将音频共享信息和其他耳机的设备信息发送给主耳机,此处不做限制。As an example, the mobile phone may send the audio sharing state information and the device information of other earphones to the main earphone through the link established by the audio sharing. Of course, the mobile phone can also send audio sharing information and device information of other earphones to the main earphone through other forms such as broadcasting, which is not limited here.
其中,音频共享状态信息可以是能够指示手机处于音频共享状态的指示信息。手机向作为主耳机的第一耳机发送音频共享状态信息,能够使第一耳机根据音频共享状态信息确定手机目前处于音频共享状态。而手机向第一耳机发送的其他耳机的设备信息,能够便于第一耳机后续根据设备信息与其他耳机建立连接。The audio sharing state information may be indication information that can indicate that the mobile phone is in an audio sharing state. The mobile phone sends the audio sharing state information to the first earphone serving as the main earphone, so that the first earphone can determine that the mobile phone is currently in the audio sharing state according to the audio sharing state information. The device information of other earphones sent by the mobile phone to the first earphone can facilitate the subsequent establishment of a connection between the first earphone and other earphones according to the device information.
当主耳机,如第一耳机接收到音频共享状态信息和其他耳机的设备信息,主耳机可执行以下S903。When the main earphone, such as the first earphone, receives the audio sharing status information and the device information of other earphones, the main earphone can perform the following S903.
S903、第一耳机确定用户需要开启语音互通功能。S903. The first headset determines that the user needs to enable the voice interworking function.
在一些可能的实施方式中,第一耳机可以通过输出提示信息的方式提示用户是否开启语音互通功能,然后接收用户的操作,根据用户的操作确定用户是否需要开启语音互通功能。In some possible implementations, the first earphone may prompt the user whether to enable the voice interworking function by outputting prompt information, and then receive the user's operation, and determine whether the user needs to enable the voice interworking function according to the user's operation.
例如,第一耳机可以向用户播放语音形式的提示信息“是否开启语音互通功能”。此时,用户可以通过按动第一耳机上的实体按键(如功能键),触摸第一耳机上的触控区域,敲击第一耳机等操作方式来确定需要开启语音互通功能。当第一耳机接收到上述按动实体键,触摸触控区域,敲击耳机等操作时,则可确定用户需要开启语音互通功能。For example, the first earphone may play the prompt information in the form of voice "whether to enable the voice interworking function" to the user. At this time, the user may determine that the voice interworking function needs to be enabled by pressing a physical button (such as a function key) on the first earphone, touching the touch area on the first earphone, and tapping the first earphone. When the first earphone receives the above operations such as pressing the physical key, touching the touch area, tapping the earphone, etc., it can be determined that the user needs to enable the voice interworking function.
当第一耳机(即主耳机)确定用户需开启语音互通功能时,如,第一耳机接收到用户针对上述提示信息进行的相应操作时,第一耳机可执行以下S904。When the first earphone (ie, the main earphone) determines that the user needs to enable the voice interworking function, for example, when the first earphone receives a corresponding operation performed by the user for the above prompt information, the first earphone can perform the following S904.
S904、第一耳机与第二耳机建立SCO链路。S904, the first headset establishes a SCO link with the second headset.
在一些可能的实施方式中,第一耳机可以先与第二耳机进行配对,完成配对之后再与第二耳机建立SCO链路。例如,第一耳机可以先根据接收到手机发送的设备信息向第二耳机发送配对请求,第二耳机接收到配对请求后,可以提示用户进行配对(如,通过语音、震动等方式进行提示)。用户可以通过按动第二耳机上的实体按键,触摸第二耳机上的触控区域,敲击第二耳机等操作来确认与第一耳机进行配对。作为对用户上述操作的响应,第二耳机可根据配对请求与第一耳机完成配对。当第一耳机与第二耳机配对成功后,第一耳机可以向第二耳机发送建立SCO链路的请求,当第二耳机接收到上述请求后,便能够与第一耳机建立SCO链路。可选地,第一耳机和第二耳机建立SCO链路后,第二耳机还可以向第一耳机发送SCO链路建立成功的响应。需要说明的是,当第二耳机没有确认与第一耳机配对,或不支持与第一耳机配对时,则第一耳机可以取消配对并关闭语音互通功能。In some possible implementations, the first headset may be paired with the second headset first, and after the pairing is completed, the SCO link is established with the second headset. For example, the first earphone may first send a pairing request to the second earphone according to the device information sent by the mobile phone, and after receiving the pairing request, the second earphone may prompt the user to perform pairing (eg, prompt by voice, vibration, etc.). The user can confirm pairing with the first earphone by pressing the physical button on the second earphone, touching the touch area on the second earphone, and tapping the second earphone. As a response to the above operation of the user, the second earphone may complete the pairing with the first earphone according to the pairing request. After the first headset is successfully paired with the second headset, the first headset can send a request for establishing a SCO link to the second headset, and when the second headset receives the above request, it can establish a SCO link with the first headset. Optionally, after the first headset and the second headset establish the SCO link, the second headset may further send a response that the SCO link is established successfully to the first headset. It should be noted that, when the second earphone is not confirmed to be paired with the first earphone, or does not support pairing with the first earphone, the first earphone can be unpaired and the voice interworking function can be turned off.
可选地,在第一耳机与第二耳机建立SCO链路之前,第一耳机还可以向电子设备发送指示信息(如,第一指示),以指示电子设备暂停向第一耳机和第二耳机发送音频数据,即指示电子设备暂停播放音频。从而使第一耳机和第二耳机在语音互通时不会受到 音频共享时电子设备发送的音频数据的干扰,提高第一耳机和第二耳机语音互通的质量。Optionally, before the first headset establishes the SCO link with the second headset, the first headset may also send instruction information (eg, a first instruction) to the electronic device to instruct the electronic device to suspend the communication between the first headset and the second headset. Sending audio data instructs the electronic device to pause audio playback. Therefore, when the first earphone and the second earphone communicate with each other, they will not be interfered by the audio data sent by the electronic device during audio sharing, and the quality of the voice intercommunication between the first earphone and the second earphone is improved.
其中,第一耳机与第二耳机均可支持免提协议(hands-free profile,HFP)。当第一耳机和第二耳机建立了用于语音互通的链路后,第一耳机和第二耳机便能够通过该链路进行语音数据的传输。如,可执行以下S905。Wherein, both the first earphone and the second earphone can support a hands-free profile (hands-free profile, HFP). After the first headset and the second headset establish a link for voice intercommunication, the first headset and the second headset can transmit voice data through the link. For example, the following S905 can be executed.
S905、第一耳机和第二耳机间通过SCO链路进行语音数据的传输。S905, the voice data is transmitted between the first earphone and the second earphone through the SCO link.
示例地,以第一耳机的语音数据(即第一语音数据)向第二耳机传输为例。第一耳机和第二耳机间通过SCO链路进行语音数据的传输可以参考图10。如图10所示,第一耳机1011和第二耳机1012间建立有SCO链路。当佩戴第一耳机1011的第一用户1021说话时(如,第一用户1021向第二用户1022说“你好”),第一耳机1011的麦克风可以接收到第一用户1021说话的声音并转换成语音数据,然后第一耳机1011可以通过SCO链路,将该语音数据发送给第二耳机1012,最终接收到该语音数据的第二耳机1012可以将语音数据通过扬声器转换为声音播放给第二用户1022。从而使第二用户1022能够通过第二耳机1012听到第一用户1021对其说的话,提升第一用户1021和第二用户1022之间语音交流的效果。第二耳机的语音数据(即第二语音数据)向第一耳机传输时,与上述过程类似,此处不做赘述。For example, take the transmission of the voice data (ie, the first voice data) of the first earphone to the second earphone as an example. For the transmission of voice data between the first earphone and the second earphone through the SCO link, reference may be made to FIG. 10 . As shown in FIG. 10 , a SCO link is established between the first earphone 1011 and the second earphone 1012 . When the first user 1021 wearing the first earphone 1011 speaks (eg, the first user 1021 says "hello" to the second user 1022), the microphone of the first earphone 1011 can receive the voice of the first user 1021 and convert it Then the first headset 1011 can send the voice data to the second headset 1012 through the SCO link, and the second headset 1012 that finally receives the voice data can convert the voice data into sound through the speaker and play it to the second headset 1012. User 1022. Thus, the second user 1022 can hear what the first user 1021 speaks to him through the second earphone 1012, thereby improving the effect of voice communication between the first user 1021 and the second user 1022. When the voice data of the second earphone (ie, the second voice data) is transmitted to the first earphone, the process is similar to the above-mentioned process, which is not repeated here.
其中,若耳机(如上述第一耳机,第二耳机)为TWS耳机,则可以通过耳机的左耳机或右耳机的麦克风来采集语音,或者同时通过左耳机的麦克风和右耳机的麦克风采集语音。Wherein, if the earphones (such as the first earphone and the second earphone above) are TWS earphones, the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
在本实施例中,上述图9所示的方法中的S901还可以替换为图5所示方法中的S501,相应地,S903则不需执行。如此,用户通过手机确定是否开启语音互通功能,相对方便快捷。In this embodiment, S901 in the method shown in FIG. 9 may also be replaced with S501 in the method shown in FIG. 5 , and correspondingly, S903 does not need to be executed. In this way, it is relatively convenient and quick for the user to determine whether to enable the voice interworking function through the mobile phone.
示例地,以电子设备为手机,待语音互通的音频设备为第一耳机(或称为耳机1)和第二耳机(或称为耳机2)两个耳机,建立的用于语音互通的链路(如,第一链路)为基于2.4G无线技术等建立的专用链路为例。本申请实施例还可以通过第一耳机与第二耳机间建立专用链路,以使第一耳机和第二耳机间可以通过建立的专用链路直接传输语音数据。该实施例的一种实施方式可以与如图9所示的方法类似,相同之处此处不再赘述,可参考图9所示的方法的具体说明。其区别在于第一耳机和第二耳机间建立的链路为上述专用链路。相应地,第一耳机和第二耳机间通过该专用链路进行语音数据的传输。作为另一种实施方式,手机还可以不向第一耳机发送第二耳机的设备信息,第一耳机可以通过广播的形式协商上述专用链路所需配置信息,然后建立专用链路以进行语音互通。此处对于第一耳机和第二耳机间如何建立链路不做限制。Illustratively, take the electronic device as a mobile phone, and the audio devices to be communicated with each other are the first earphone (or referred to as earphone 1) and the second earphone (or referred to as earphone 2), and the established link for voice intercommunication (eg, the first link) is an example of a dedicated link established based on 2.4G wireless technology or the like. In this embodiment of the present application, a dedicated link may also be established between the first headset and the second headset, so that voice data may be directly transmitted between the first headset and the second headset through the established dedicated link. An implementation of this embodiment may be similar to the method shown in FIG. 9 , and the similarities will not be repeated here, and reference may be made to the specific description of the method shown in FIG. 9 . The difference is that the link established between the first earphone and the second earphone is the above-mentioned dedicated link. Correspondingly, voice data is transmitted between the first earphone and the second earphone through the dedicated link. As another implementation manner, the mobile phone may not send the device information of the second earphone to the first earphone, and the first earphone may negotiate the configuration information required by the above-mentioned dedicated link in the form of broadcasting, and then establish a dedicated link for voice communication . There is no restriction on how to establish a link between the first earphone and the second earphone.
以电子设备为手机,待语音互通的音频设备为三个耳机,即第一音频设备为第一耳机(或称为耳机1),第二音频设备为第二耳机(或称为耳机2)和第三耳机(或称为耳机3),建立的用于语音互通的链路(如,第一链路)为CIS为例。Taking the electronic device as a mobile phone, the audio devices to be communicated with each other are three earphones, that is, the first audio device is the first earphone (or referred to as earphone 1), the second audio device is the second earphone (or referred to as earphone 2) and The third earphone (or referred to as earphone 3 ), the established link (eg, the first link) for voice interworking is the CIS as an example.
图11为本申请实施例提供的另一种音频设备间语音互通的方法的流程示意图。如图11所示,该音频设备间语音互通的方法可以包括以下S1101-S1103。FIG. 11 is a schematic flowchart of another method for voice interworking between audio devices according to an embodiment of the present application. As shown in FIG. 11 , the method for voice intercommunication between audio devices may include the following S1101-S1103.
S1101、手机在通过第一耳机、第二耳机和第三耳机进行音频共享的情况下,确定用户需要开启语音互通功能。S1101. The mobile phone determines that the user needs to enable the voice interworking function in the case of audio sharing through the first earphone, the second earphone and the third earphone.
需要说明的是,该步骤的具体实施方式与如图5所示方法中的S501类似,可参考S501的相关说明,此处不做赘述。It should be noted that the specific implementation of this step is similar to S501 in the method shown in FIG. 5 , and reference may be made to the relevant description of S501 , which is not repeated here.
S1102、手机与第一耳机、第二耳机以及第三耳机通过CIS建立等时同步连接组 (connected isochronous group,CIG)(CIG由主机(Master)创建,包含1个或多个CIS)。S1102, the mobile phone and the first earphone, the second earphone and the third earphone establish an isochronous connection group (connected isochronous group, CIG) through the CIS (CIG is created by a host (Master) and includes one or more CISs).
在一些可能的实施方式中,手机可以分别向第一耳机、第二耳机和第三耳机发送建立CIS的请求,当第一耳机、第二耳机和第三耳机分别接收到上述请求后,便能够分别与手机建立CIS,从而使手机与第一耳机、第二耳机以及第三耳机组成CIG。可选地,第一耳机、第二耳机以及第三耳机分别与手机建立CIS后,还可以分别向手机发送CIS建立成功的响应。In some possible implementation manners, the mobile phone may send a request for establishing a CIS to the first earphone, the second earphone and the third earphone respectively. After the first earphone, the second earphone and the third earphone respectively receive the above request, A CIS is established with the mobile phone respectively, so that the mobile phone and the first earphone, the second earphone and the third earphone form a CIG. Optionally, after the first earphone, the second earphone and the third earphone respectively establish the CIS with the mobile phone, a response that the CIS is established successfully may also be respectively sent to the mobile phone.
S1103、手机调度第一耳机、第二耳机以及第三耳机通过建立的CIG同步语音数据。S1103, the mobile phone schedules the first earphone, the second earphone and the third earphone to synchronize the voice data through the established CIG.
在一些可能的实施方式中,通过手机作为主机,可调度第一耳机、第二耳机以及第三耳机通过建立的CIG同步语音数据。即通过手机对CIG进行调度,使第一耳机、第二耳机以及第三耳机间的语音数据相互同步。In some possible implementations, by using the mobile phone as the host, the first earphone, the second earphone and the third earphone can be scheduled to synchronize voice data through the established CIG. That is, the CIG is scheduled through the mobile phone, so that the voice data among the first earphone, the second earphone and the third earphone are synchronized with each other.
示例地,以将第一耳机的语音数据同步给第二耳机和第三耳机为例。第一耳机、第二耳机以及第三耳机通过建立的CIG同步语音数据可以参考图12。如图12所示,手机1210与第一耳机1221、第二耳机1222以及第三耳机1223建立了CIG。当佩戴第一耳机1221的第一用户1231说话时(如,第一用户1231向第二用户1232和第三用户1233说“你好”),第一耳机1221的麦克风可以接收到第一用户1231说话的声音并转换成语音数据,然后手机1210可以通过调度CIG的方式,使第一耳机1221的语音数据同步到第二耳机1222和第三耳机1223,最终接收到该语音数据的第二耳机1222和第三耳机1223可以分别将语音数据通过各自的扬声器转换为声音播放给第二用户1232和第三用户1233。从而使第二用户1232和第三用户1233能够通过自己佩戴的第二耳机1222和第三耳机1223听到第一用户1231对其说的话,提升第一用户1231和第二用户1232以及第三用户1233之间语音交流的效果。For example, take the synchronization of the voice data of the first earphone to the second earphone and the third earphone as an example. The first earphone, the second earphone, and the third earphone synchronize the voice data through the CIG established by referring to FIG. 12 . As shown in FIG. 12 , the mobile phone 1210 establishes a CIG with the first earphone 1221 , the second earphone 1222 and the third earphone 1223 . When the first user 1231 wearing the first earphone 1221 speaks (eg, the first user 1231 says "hello" to the second user 1232 and the third user 1233), the microphone of the first earphone 1221 can receive the first user 1231 The voice of speaking is converted into voice data, and then the mobile phone 1210 can synchronize the voice data of the first earphone 1221 to the second earphone 1222 and the third earphone 1223 by scheduling CIG, and finally the second earphone 1222 that receives the voice data and the third earphone 1223 can respectively convert the voice data into sound through the respective speakers and play it to the second user 1232 and the third user 1233 . Therefore, the second user 1232 and the third user 1233 can hear what the first user 1231 is saying to them through the second earphone 1222 and the third earphone 1223 they wear, and the first user 1231 and the second user 1232 and the third user can be improved. The effect of voice communication between 1233.
其中,若耳机(如上述第一耳机,第二耳机)为TWS耳机,则可以通过耳机的左耳机或右耳机的麦克风来采集语音,或者同时通过左耳机的麦克风和右耳机的麦克风采集语音。Wherein, if the earphones (such as the first earphone and the second earphone above) are TWS earphones, the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
需要说明的是,在本申请实施例中,如图5所示的方法和如图11所示的方法还可以相互结合。即当手机与多个耳机连接以进行音频共享的情况下,若确定用户需要开启语音互通功能,则手机可以与部分耳机建立SCO链路,与另一部分通过CIS建立CIG,然后手机通过转发和调度CIG的形式将建立SCO链路的耳机和另一部分建立CIG的耳机间的语音数据进行同步,以实现各耳机之间的语音互通。其中,具体哪些耳机与手机建立SCO链路,哪些耳机与手机建立CIG,可以根据实际需要进行定义,此处不做限制。例如,手机与支持蓝牙5.2的耳机建立通过CIS建立CIG,而与其他耳机建立SCO链路。It should be noted that, in this embodiment of the present application, the method shown in FIG. 5 and the method shown in FIG. 11 may also be combined with each other. That is, when the mobile phone is connected to multiple headsets for audio sharing, if it is determined that the user needs to enable the voice interworking function, the mobile phone can establish a SCO link with some headsets, and establish a CIG with another part through the CIS, and then the mobile phone can forward and dispatch In the form of CIG, the voice data between the headset that establishes the SCO link and another part of the headset that establishes the CIG are synchronized, so as to realize the voice intercommunication between the headsets. Specifically, which earphones and mobile phones establish SCO links and which earphones and mobile phones establish CIGs can be defined according to actual needs, and there is no restriction here. For example, a mobile phone establishes a CIG with a headset that supports Bluetooth 5.2 through CIS, and establishes a SCO link with other headsets.
继续以电子设备为手机,待语音互通的音频设备为三个耳机,即第一音频设备为第一耳机(或称为耳机1),第二音频设备为第二耳机(或称为耳机2)和第三耳机(或称为耳机3),建立的用于语音互通的链路(如,第一链路)为CIS为例。在本申请实施例中,各个音频设备,如第一耳机、第二耳机和第三耳机间还可以建立用于语音互通的链路,以相互同步语音数据。Continue to take the electronic device as the mobile phone, and the audio devices to be communicated with each other are three earphones, that is, the first audio device is the first earphone (or referred to as earphone 1), and the second audio device is the second earphone (or referred to as earphone 2) The established link (eg, the first link) for voice intercommunication with the third headset (or referred to as the headset 3 ) is the CIS as an example. In this embodiment of the present application, each audio device, such as the first earphone, the second earphone, and the third earphone, may also establish a link for voice communication, so as to synchronize voice data with each other.
例如,图13为本申请实施例提供的另一种音频设备间语音互通的方法的流程示意图。如图13所示,该音频设备间语音互通的方法可以包括以下S1301-S1305。For example, FIG. 13 is a schematic flowchart of another method for voice interworking between audio devices provided by an embodiment of the present application. As shown in FIG. 13 , the method for voice intercommunication between audio devices may include the following S1301-S1305.
S1301、手机通过第一耳机、第二耳机和第三耳机进行音频共享。S1301. The mobile phone performs audio sharing through the first earphone, the second earphone and the third earphone.
S1302、手机向主耳机,如,第一耳机发送音频共享状态信息和其他耳机,如,第二耳机和第三耳机的设备信息(如,媒体存取控制(media access control,MAC)地址)。 即,手机向主耳机发送配置信息,该配置信息包括音频共享状态信息和其他耳机的设备信息。S1302, the mobile phone sends audio sharing status information and other earphones, such as the device information (such as media access control (MAC) addresses) of the second earphone and the third earphone, to the main earphone, such as the first earphone. That is, the mobile phone sends configuration information to the main earphone, where the configuration information includes audio sharing state information and device information of other earphones.
S1303、第一耳机确定用户需要开启语音互通功能。S1303. The first headset determines that the user needs to enable the voice interworking function.
需要说明的是,步骤S1301至S1303的具体实施方式与如图9所示方法中的S901至S903类似,可参考S901至S903的相关说明,此处不做赘述。It should be noted that the specific implementations of steps S1301 to S1303 are similar to those of S901 to S903 in the method shown in FIG. 9 , and the relevant descriptions of S901 to S903 may be referred to, which will not be repeated here.
S1304、第一耳机与第二耳机和第三耳机通过CIS建立CIG。S1304, the first earphone, the second earphone and the third earphone establish a CIG through the CIS.
在一些可能的实施方式中,第一耳机可以先与第二耳机和第三耳机进行配对,完成配对之后再与第二耳机和第三耳机建立CIG。例如,第一耳机可以先根据接收到手机发送的设备信息向第二耳机和第三耳机发送配对请求,第二耳机和第三耳机接收到配对请求后,可以提示用户进行配对(如,通过语音、震动等方式进行提示)。用户可以通过按动第二耳机和第三耳机上的实体按键,触摸第二耳机和第三耳机上的触控区域,敲击第二耳机和第三耳机等操作来确认与第一耳机进行配对。作为对用户上述操作的响应,第二耳机和第三耳机可根据配对请求分别与第一耳机完成配对。当第一耳机与第二耳机和第三耳机配对成功后,第一耳机可以分别向第二耳机和第三耳机发送建立CIS的请求,当第二耳机和第三耳机分别接收到上述请求后,便能够分别与第一耳机建立CIS,从而使第一耳机与第二耳机和第三耳机组成CIG(其中,第一耳机作为主机)。可选地,第二耳机和第三耳机分别与第一耳机建立CIS后,还可以分别向第一耳机发送CIS建立成功的响应。需要说明的是,当第二耳机和/或第三耳机没有确认与第一耳机配对,或不支持与第一耳机配对时,则第一耳机可以取消配对并关闭语音互通功能。In some possible implementations, the first earphone may be paired with the second earphone and the third earphone first, and after the pairing is completed, the CIG is established with the second earphone and the third earphone. For example, the first earphone may first send a pairing request to the second earphone and the third earphone according to the device information sent by the mobile phone, and after receiving the pairing request, the second earphone and the third earphone may prompt the user to perform pairing (for example, by voice , vibration, etc. to prompt). The user can confirm pairing with the first earphone by pressing the physical buttons on the second earphone and the third earphone, touching the touch area on the second earphone and the third earphone, tapping the second earphone and the third earphone, etc. . As a response to the above operation of the user, the second earphone and the third earphone can be paired with the first earphone respectively according to the pairing request. After the first earphone is successfully paired with the second earphone and the third earphone, the first earphone can send a request for establishing a CIS to the second earphone and the third earphone respectively. When the second earphone and the third earphone respectively receive the above request, A CIS can be established with the first earphone respectively, so that the first earphone, the second earphone and the third earphone form a CIG (wherein the first earphone serves as the host). Optionally, after the second earphone and the third earphone respectively establish the CIS with the first earphone, a response that the CIS is established successfully may also be respectively sent to the first earphone. It should be noted that, when the second earphone and/or the third earphone are not confirmed to be paired with the first earphone, or do not support pairing with the first earphone, the first earphone can be unpaired and the voice interworking function can be turned off.
S1305、第一耳机调度第一耳机、第二耳机以及第三耳机通过建立的CIG同步语音数据。S1305, the first earphone schedules the first earphone, the second earphone and the third earphone to synchronize the voice data through the established CIG.
在一些可能的实施方式中,通过第一耳机作为主机,可调度第一耳机、第二耳机以及第三耳机通过建立的CIG同步语音数据。即通过第一耳机对CIG进行调度,使第一耳机、第二耳机以及第三耳机间的语音数据相互同步。In some possible implementations, by using the first headset as a host, the first headset, the second headset, and the third headset can be scheduled to synchronize voice data through the established CIG. That is, the CIG is scheduled through the first earphone, so that the voice data of the first earphone, the second earphone and the third earphone are synchronized with each other.
示例地,以将第一耳机的语音数据同步给第二耳机和第三耳机为例。第一耳机、第二耳机以及第三耳机通过建立的CIG同步语音数据可以参考图14。如图14所示,第一耳机1411、第二耳机1412以及第三耳机1413建立了CIG。当佩戴第一耳机1411的第一用户1421说话时(如,第一用户1421向第二用户1422和第三用户1423说“你好”),第一耳机1411的麦克风可以接收到第一用户1421说话的声音并转换成语音数据,然后第一耳机1411可以通过调度CIG的方式,使第一耳机1411的语音数据同步到第二耳机1412和第三耳机1413,最终接收到该语音数据的第二耳机1412和第三耳机1413可以分别将语音数据通过各自的扬声器转换为声音播放给第二用户1422和第三用户1423。从而使第二用户1422和第三用户1423能够通过自己佩戴的第二耳机1412和第三耳机1413听到第一用户1421对其说的话,提升第一用户1421和第二用户1422以及第三用户1423之间语音交流的效果。For example, take the synchronization of the voice data of the first earphone to the second earphone and the third earphone as an example. The first earphone, the second earphone and the third earphone can synchronize the voice data through the established CIG with reference to FIG. 14 . As shown in FIG. 14, the first earphone 1411, the second earphone 1412, and the third earphone 1413 establish a CIG. When the first user 1421 wearing the first earphone 1411 speaks (eg, the first user 1421 says "hello" to the second user 1422 and the third user 1423), the microphone of the first earphone 1411 can receive the first user 1421 The voice of speaking is converted into voice data, and then the first earphone 1411 can synchronize the voice data of the first earphone 1411 to the second earphone 1412 and the third earphone 1413 by scheduling CIG, and finally receive the second earphone 1411 of the voice data. The earphone 1412 and the third earphone 1413 can respectively convert the voice data into sound through the respective speakers and play it to the second user 1422 and the third user 1423 . Therefore, the second user 1422 and the third user 1423 can hear what the first user 1421 says to them through the second earphone 1412 and the third earphone 1413 they wear, and the first user 1421 and the second user 1422 and the third user can be improved. The effect of voice communication between 1423.
其中,若耳机(如上述第一耳机,第二耳机)为TWS耳机,则可以通过耳机的左耳机或右耳机的麦克风来采集语音,或者同时通过左耳机的麦克风和右耳机的麦克风采集语音。Wherein, if the earphones (such as the first earphone and the second earphone above) are TWS earphones, the voice can be collected by the microphone of the left earphone or the right earphone, or the microphone of the left earphone and the microphone of the right earphone can simultaneously collect the speech.
在本实施例中,上述图13所示的方法中的S1301还可以替换为图11所示方法中的S1101,相应地,S1303则不需执行。如此,用户可通过手机确定是否开启语音互通功能,相对方便快捷。In this embodiment, S1301 in the method shown in FIG. 13 can also be replaced with S1101 in the method shown in FIG. 11 , and accordingly, S1303 does not need to be executed. In this way, the user can determine whether to enable the voice interworking function through the mobile phone, which is relatively convenient and quick.
需要说明的是,在上述实施例中,当电子设备(如,手机)通过转发或调度各音频设备(如,耳机)间的语音数据时,电子设备的扬声器也可以将该语音数据转化为声音进行播放,从而通过电子设备对说话的用户的语音进行广播。例如,以图8所示的场景为例,如图15所示,当第一用户1511说话时,可以在要说的内容前加上“广播”这样的指示性话语(如,第一用户1511说“广播,你好”),从而当第一耳机1521将语音数据发送给手机1530时,手机1530可以进行解码识别,当识别到语音数据中有“广播”这样的指示时话语时,手机1530便在转发该语音数据给第二耳机1522时,也通过自己的扬声器播放用户所说的话,如,“你好”。又例如,基于上述示例,手机还可以设置为默认广播说话的用户的语音。即用户不需要在要说的内容前加上“广播”等指示性话语,手机也能对用户所说的话进行广播,此处不做限制。It should be noted that, in the above embodiment, when an electronic device (eg, a mobile phone) forwards or schedules voice data between various audio devices (eg, earphones), the speaker of the electronic device can also convert the voice data into sound Play, so that the voice of the speaking user is broadcast through the electronic device. For example, taking the scenario shown in FIG. 8 as an example, as shown in FIG. 15 , when the first user 1511 speaks, an indicative utterance such as “broadcast” can be added before the content to be said (for example, the first user 1511 Say "Broadcasting, hello"), so when the first earphone 1521 sends the voice data to the mobile phone 1530, the mobile phone 1530 can decode and recognize it, and when it recognizes that there is an instruction such as "broadcasting" in the voice data, the mobile phone 1530 speaks When the voice data is forwarded to the second earphone 1522, the user's words, such as "hello", are also played through its own speaker. For another example, based on the above example, the mobile phone may also be set to broadcast the voice of the speaking user by default. That is, the user does not need to add indicative words such as "broadcast" before the content to be said, and the mobile phone can also broadcast the words spoken by the user, which is not limited here.
还需要说明的是,在上述实施例中,若耳机(如,上述的第一耳机、第二耳机)为TWS耳机,则上述手机与耳机间建立的用于语音互通的链路(如,SCO链路或CIS),或作为主设备的耳机与其他耳机间建立的用于语音互通的链路(如,SCO链路或CIS)均可只与TWS耳机中的一只进行建立。It should also be noted that, in the above embodiment, if the earphones (for example, the above-mentioned first earphone and the second earphone) are TWS earphones, the link for voice intercommunication (for example, SCO) established between the mobile phone and the earphones link or CIS), or a link for voice interworking (eg, SCO link or CIS) established between the headset as the main device and other headsets can be established with only one of the TWS headsets.
在本申请的其他实施例中,电子设备还可以在不进行音频共享的情况下,与多个音频设备连接实现语音互通。其具体实施方式与上述实施例类似,区别在于电子设备不需要在进行音频共享的情况下确定用户是否需要开启语音互通。即只要电子设备确定用户需要开启语音互通,电子设备便能够分别与各音频设备建立用于语音互通的链路(如,第一链路),从而通过手机转发或同步各音频设备间传输的语音数据,以实现音频设备间的语音互通。或者,电子设备向多个音频设备中的一个发送其他音频设备的设备信息,然后该音频设备根据设备信息与其他音频设备建立用于语音互通个链路,从而实现音频设备间的语音互通。如此,用户便能够通过与电子设备连接的多个音频设备进行语音通话,便于用户相互交流。In other embodiments of the present application, the electronic device may also be connected to multiple audio devices to implement voice intercommunication without audio sharing. The specific implementation is similar to the above-mentioned embodiment, except that the electronic device does not need to determine whether the user needs to enable voice interworking in the case of audio sharing. That is, as long as the electronic device determines that the user needs to enable voice interworking, the electronic device can establish a link (eg, the first link) for voice interworking with each audio device, so as to forward or synchronize the voice transmitted between the audio devices through the mobile phone. data to achieve voice intercommunication between audio devices. Alternatively, the electronic device sends the device information of the other audio devices to one of the multiple audio devices, and then the audio device establishes a link for voice communication with the other audio devices according to the device information, thereby realizing voice communication between the audio devices. In this way, the user can make a voice call through a plurality of audio devices connected to the electronic device, which is convenient for the users to communicate with each other.
作为一种示例,以电子设备为手机,音频设备为两个音箱为例。可以通过手机分别与客厅的音箱以及卧室的音箱连接,并进行语音互通,以便于位于客厅的第一用户可以通过客厅的音箱和卧室的音箱间的语音互通方便的与位于卧室的第二用户进行语音交流。例如,如图16所示,当用户需要进行语音互通时,可以打开手机的系统设置进行操作。如图16中的(a)所示,手机的蓝牙设置界面,可以包括开启蓝牙、音频共享、语音互通的设置选项,以及包含已经与手机配对的设备(如,耳机1、耳机2、客厅的音箱、卧室的音箱等)的设备列表。用户可以在开启蓝牙功能时,选择(如,点击等选择操作)蓝牙设置界面中的语音互通选项,以打开语音互通。如图16中的(b)所示,当用户打开语音互通后,用户可以选择已经与手机配对的客厅的音箱和卧室的音箱,作为对用户上述操作的响应,手机可分别与客厅的音箱和卧室的音箱连接(如,建立SCO链路等),从而开启语音互通功能,以使手机转发两个音箱间的语音数据实现语音互通。As an example, take the electronic device as a mobile phone and the audio device as two speakers. The mobile phone can be connected to the speakers in the living room and the speakers in the bedroom, and communicate with each other, so that the first user in the living room can communicate with the second user in the bedroom through the voice communication between the speakers in the living room and the bedroom. voice communication. For example, as shown in FIG. 16 , when the user needs to perform voice communication, the system settings of the mobile phone can be opened to operate. As shown in (a) in Figure 16, the Bluetooth setting interface of the mobile phone may include setting options for enabling Bluetooth, audio sharing, and voice interworking, as well as devices that have been paired with the mobile phone (eg, headset 1, headset 2, A list of devices for speakers, bedroom speakers, etc.). When turning on the Bluetooth function, the user may select (eg, select operations such as clicking) the voice interworking option in the Bluetooth setting interface to turn on the voice interworking. As shown in (b) in Figure 16, when the user opens the voice interworking, the user can select the speaker in the living room and the speaker in the bedroom that have been paired with the mobile phone. Connect the speakers in the bedroom (for example, establish a SCO link, etc.) to enable the voice interworking function, so that the mobile phone can forward the voice data between the two speakers to achieve voice communication.
作为另一种示例,以电子设备为手机,音频设备为耳机1和耳机2两个耳机为例。As another example, take the electronic device as a mobile phone and the audio device as two earphones, earphone 1 and earphone 2 .
可以通过手机分别与耳机1和耳机2连接,并进行语音互通,以便于佩戴耳机1的第一用户和佩戴耳机2的第二用户,可以方便的通过耳机1和耳机2进行语音交流。例如,如图17所示,当用户需要进行语音互通时,可以在手机的下拉通知中的多媒体通知界面中进行操作。如图17中的(a)所示,当手机已经连接耳机1时,用户可以在下拉通知中的多媒体通知界面点击显示更多选项的图标,以便选择更多关于多媒体的选项。之后,如图17中的(b)所示,用户可以选择语音互通选项,以进行语音互通。当用户选择语 音互通后,作为对这些操作的响应,手机可以检测靠近它的音频设备(如,耳机)。如图17中的(c)所示,当耳机2 1701靠近手机时,手机检测到耳机2 1701靠近,便能够弹出提示用户可以连接耳机2 1701进行语音互通的弹框提示1702,用户可以通过点击弹框提示1702中的语音互通,以使手机响应上述的操作与耳机2 1701进行连接,从而开启语音互通功能,使手机可转发耳机1和耳机2 1701间的语音数据实现语音互通。通过该示例,若分别佩戴耳机1和耳机2的两个用户均具有听力障碍,则能够利用耳机1和耳机2间的语音互通,使两个用户能够更加清楚的听到对方所说的话,从而更加方便的进行交流。The mobile phone can be connected to the headset 1 and the headset 2 respectively, and communicate with each other, so that the first user wearing the headset 1 and the second user wearing the headset 2 can easily communicate through the headset 1 and the headset 2. For example, as shown in FIG. 17 , when the user needs to perform voice communication, the operation can be performed in the multimedia notification interface in the pull-down notification of the mobile phone. As shown in (a) of FIG. 17 , when the mobile phone has been connected to the headset 1, the user can click the icon displaying more options in the multimedia notification interface in the pull-down notification to select more multimedia options. After that, as shown in (b) of FIG. 17 , the user can select a voice interworking option to perform voice interworking. When the user selects voice interworking, in response to these operations, the handset can detect audio devices (eg, headphones) in proximity to it. As shown in (c) of Figure 17, when the headset 2 1701 is close to the mobile phone, the mobile phone detects that the headset 2 1701 is approaching, and a pop-up prompt 1702 prompts the user to connect the headset 2 1701 for voice communication. The pop-up box prompts the voice interworking in 1702, so that the mobile phone connects with the headset 2 1701 in response to the above operation, thereby enabling the voice interworking function, so that the mobile phone can forward the voice data between the headset 1 and the headset 2 1701 to achieve voice interworking. Through this example, if the two users wearing earphone 1 and earphone 2 are both hearing impaired, the voice communication between earphone 1 and earphone 2 can be used to enable the two users to hear the other's words more clearly, thereby more convenient to communicate.
采用以上实施例中的方法,能够使用户可以利用多个音频设备之间的语音互通,进行语音交流,提高用户语音交流的便捷性。By using the method in the above embodiment, the user can use the voice intercommunication between multiple audio devices to conduct voice communication, thereby improving the convenience of the user's voice communication.
对应于前述实施例中的方法,本申请实施例还提供一种语音互通系统。该语音互通系统可以包括电子设备、第一音频设备以及第二音频设备。其中,电子设备,可以用于与第一音频设备通过第一异步无连接(ACL)链路连接;通过第一ACL链路向第一音频设备发送音频数据;接收用户开启音频共享功能的操作;检测靠近电子设备的音频设备;检测到第二音频设备与第二音频设备建立第二ACL链路;通过第二ACL链路向第二音频设备发送音频数据;通过第一ACL链路向第一音频设备发送音频共享状态信息和第二音频设备的设备信息;音频共享状态信息用于指示电子设备处于第一音频设备和第二音频设备进行音频共享的状态;接收来自第一音频设备的第一指示,根据第一指示暂停向第一音频设备和第二音频设备发送音频数据;Corresponding to the methods in the foregoing embodiments, the embodiments of the present application further provide a voice interworking system. The voice interworking system may include an electronic device, a first audio device and a second audio device. Wherein, the electronic device can be used to connect with the first audio device through a first asynchronous connectionless (ACL) link; send audio data to the first audio device through the first ACL link; receive the operation of the user enabling the audio sharing function; Detecting an audio device close to the electronic device; detecting that the second audio device establishes a second ACL link with the second audio device; sending audio data to the second audio device through the second ACL link; sending audio data to the first audio device through the first ACL link The audio device sends audio sharing state information and device information of the second audio device; the audio sharing state information is used to indicate that the electronic device is in a state of audio sharing between the first audio device and the second audio device; Instruct, suspend sending audio data to the first audio device and the second audio device according to the first instruction;
第一音频设备,可以用于接收音频数据,根据音频数据通过第一音频设备的扬声器播放音频;输出用于提示用户是否开启语音互通功能的提示信息;接收用户确定开启语音互通功能的操作;向电子设备发送第一指示;根据设备信息与第二音频设备建立第一链路;通过第一音频设备的麦克风接收用户的语音,生成第一语音数据,向第二音频设备发送第一语音数据;或者,接收来自第二音频设备的第二语音数据,根据第二语音数据通过第一音频设备的扬声器播放语音;The first audio device can be used for receiving audio data, and playing audio through the speaker of the first audio device according to the audio data; outputting prompt information for prompting the user whether to enable the voice interworking function; receiving the operation that the user determines to enable the voice interworking function; The electronic device sends the first instruction; establishes a first link with the second audio device according to the device information; receives the user's voice through the microphone of the first audio device, generates first voice data, and sends the first voice data to the second audio device; Or, receive the second voice data from the second audio device, and play the voice through the speaker of the first audio device according to the second voice data;
第二音频设备,可以用于接收音频数据,根据音频数据通过第二音频设备的扬声器播放音频;接收来自第一音频设备的第一语音数据,根据第一语音数据通过第二音频设备的扬声器播放语音;或者,通过第二音频设备的麦克风接收用户的语音,生成第二语音数据,向第一音频设备发送第二语音数据。The second audio device can be used to receive audio data, and play audio through the speaker of the second audio device according to the audio data; receive the first voice data from the first audio device, and play the audio through the speaker of the second audio device according to the first voice data voice; or, receiving the user's voice through the microphone of the second audio device, generating second voice data, and sending the second voice data to the first audio device.
在一种可能的设计方式中,第一音频设备,具体用于接收用户对第一音频设备上的功能键的操作;或第一音频设备接收用户对第一音频设备上的触摸区域的操作;或第一音频设备接收用户对第一音频设备的敲击操作。In a possible design, the first audio device is specifically configured to receive user operations on function keys on the first audio device; or the first audio device receives user operations on the touch area on the first audio device; Or the first audio device receives a user's tapping operation on the first audio device.
在另一种可能的设计方式中,第一链路为面向同步连接(SCO)链路。In another possible design, the first link is a Synchronous Connection Oriented (SCO) link.
在另一种可能的设计方式中,第一链路为等时同步连接串流(CIS)链路。In another possible design, the first link is an isochronous connection stream (CIS) link.
在另一种可能的设计方式中,电子设备为手机,第一音频设备和第二音频设备均为真无线立体声TWS耳机。In another possible design manner, the electronic device is a mobile phone, and both the first audio device and the second audio device are true wireless stereo TWS earphones.
在另一种可能的设计方式中,电子设备采用蓝牙立体声音频传输协议(A2DP)发送音频数据。In another possible design manner, the electronic device uses the Bluetooth Stereo Audio Distribution Protocol (A2DP) to send audio data.
在另一种可能的设计方式中,电子设备,具体用于接收用户对电子设备显示的音频共享选项的点击操作。In another possible design manner, the electronic device is specifically configured to receive a user's click operation on an audio sharing option displayed by the electronic device.
在另一种可能的设计方式中,电子设备,还用于显示弹框提示,弹框提示用于提示 用户可以连接第二音频设备进行音频共享。In another possible design manner, the electronic device is also used to display a pop-up prompt, and the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
在另一种可能的设计方式中,第一音频设备,具体用于通过第一音频设备的扬声器播放提示用户是否开启语音互通功能的语音。In another possible design manner, the first audio device is specifically configured to play a voice prompting the user whether to enable the voice interworking function through the speaker of the first audio device.
本申请另一些实施例提供了一种电子设备,该电子设备可以包括:存储器和一个或多个处理器。该存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中电子设备执行的各个功能或者步骤。当然,该电子设备包括但不限于上述存储器和一个或多个处理器。例如,该电子设备的结构可以参考图8所示的电子设备的结构。Other embodiments of the present application provide an electronic device, and the electronic device may include: a memory and one or more processors. The memory is coupled to the processor. The memory is used to store computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device can perform various functions or steps performed by the electronic device in the foregoing method embodiments. Of course, the electronic device includes, but is not limited to, the aforementioned memory and one or more processors. For example, the structure of the electronic device may refer to the structure of the electronic device shown in FIG. 8 .
本申请另一些实施例提供了一种音频设备,该音频设备可以包括:处理器,用于存储该处理器可执行指令的存储器。当处理器执行计算机指令时,该音频设备可执行上述方法实施例中第一音频设备或第二音频设备执行的各个功能或者步骤。Other embodiments of the present application provide an audio device, and the audio device may include: a processor, and a memory for storing instructions executable by the processor. When the processor executes the computer instructions, the audio device can perform various functions or steps performed by the first audio device or the second audio device in the foregoing method embodiments.
本申请实施例还提供一种计算机可读存储介质,用于存储上述电子设备、第一音频设备或第二音频设备运行的计算机指令。Embodiments of the present application further provide a computer-readable storage medium for storing computer instructions for running the electronic device, the first audio device, or the second audio device.
本申请实施例还提供一种计算机程序产品,包括上述电子设备、第一音频设备或第二音频设备运行的计算机指令。Embodiments of the present application further provide a computer program product, including computer instructions executed by the electronic device, the first audio device, or the second audio device.
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of 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 shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If 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. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何 在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above contents are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (18)

  1. 一种音频设备间语音互通的方法,其特征在于,所述方法应用于语音互通系统,所述语音互通系统包括电子设备、第一音频设备以及第二音频设备,所述方法包括:A method for voice interworking between audio devices, wherein the method is applied to a voice interworking system, and the voice interworking system includes an electronic device, a first audio device, and a second audio device, and the method includes:
    所述电子设备与所述第一音频设备通过第一异步无连接ACL链路连接;the electronic device and the first audio device are connected through a first asynchronous connectionless ACL link;
    所述电子设备通过所述第一ACL链路向所述第一音频设备发送音频数据;The electronic device sends audio data to the first audio device through the first ACL link;
    所述第一音频设备接收所述音频数据,根据所述音频数据通过所述第一音频设备的扬声器播放音频;The first audio device receives the audio data, and plays audio through the speaker of the first audio device according to the audio data;
    所述电子设备接收用户开启音频共享功能的操作;The electronic device receives the user's operation of enabling the audio sharing function;
    响应于所述开启音频共享功能的操作,所述电子设备检测靠近所述电子设备的音频设备;In response to the operation of turning on the audio sharing function, the electronic device detects an audio device proximate to the electronic device;
    所述电子设备检测到所述第二音频设备;the electronic device detects the second audio device;
    所述电子设备与所述第二音频设备建立第二ACL链路;establishing a second ACL link between the electronic device and the second audio device;
    所述电子设备通过所述第二ACL链路向所述第二音频设备发送所述音频数据;The electronic device sends the audio data to the second audio device through the second ACL link;
    所述第二音频设备接收所述音频数据,根据所述音频数据通过所述第二音频设备的扬声器播放所述音频;The second audio device receives the audio data, and plays the audio through a speaker of the second audio device according to the audio data;
    所述电子设备通过所述第一ACL链路向所述第一音频设备发送音频共享状态信息和所述第二音频设备的设备信息;所述音频共享状态信息用于指示所述电子设备处于所述第一音频设备和所述第二音频设备进行音频共享的状态;The electronic device sends audio sharing state information and device information of the second audio device to the first audio device through the first ACL link; the audio sharing state information is used to indicate that the electronic device is in any the state in which the first audio device and the second audio device perform audio sharing;
    所述第一音频设备输出用于提示用户是否开启语音互通功能的提示信息;The first audio device outputs prompt information for prompting the user whether to enable the voice interworking function;
    所述第一音频设备接收用户确定开启语音互通功能的操作;The first audio device receives an operation that the user determines to enable the voice interworking function;
    响应于所述确定开启语音互通功能的操作,所述第一音频设备向所述电子设备发送第一指示,所述第一指示用于指示所述电子设备暂停向所述第一音频设备和所述第二音频设备发送所述音频数据;In response to the operation of determining that the voice interworking function is enabled, the first audio device sends a first instruction to the electronic device, where the first instruction is used to instruct the electronic device to suspend the communication between the first audio device and the electronic device. sending the audio data by the second audio device;
    所述电子设备根据所述第一指示暂停向所述第一音频设备和所述第二音频设备发送所述音频数据;The electronic device suspends sending the audio data to the first audio device and the second audio device according to the first indication;
    所述第一音频设备根据所述设备信息与所述第二音频设备建立第一链路;The first audio device establishes a first link with the second audio device according to the device information;
    所述第一音频设备通过所述第一音频设备的麦克风接收用户的语音,生成第一语音数据,向所述第二音频设备发送所述第一语音数据;The first audio device receives the user's voice through the microphone of the first audio device, generates first voice data, and sends the first voice data to the second audio device;
    所述第二音频设备根据所述第一语音数据通过所述第二音频设备的扬声器播放语音;The second audio device plays a voice through the speaker of the second audio device according to the first voice data;
    或者,or,
    所述第二音频设备通过所述第二音频设备的麦克风接收用户的语音,生成第二语音数据,向所述第一音频设备发送所述第二语音数据;The second audio device receives the user's voice through the microphone of the second audio device, generates second voice data, and sends the second voice data to the first audio device;
    所述第一音频设备根据所述第二语音数据通过所述第一音频设备的扬声器播放语音。The first audio device plays a voice through a speaker of the first audio device according to the second voice data.
  2. 根据权利要求1所述的方法,其特征在于,所述第一音频设备接收用户确定开启语音互通功能的操作,包括:The method according to claim 1, wherein the first audio device receiving an operation for determining to enable a voice interworking function from a user comprises:
    所述第一音频设备接收用户对所述第一音频设备上的功能键的操作;The first audio device receives user operations on function keys on the first audio device;
    或所述第一音频设备接收用户对所述第一音频设备上的触摸区域的操作;Or the first audio device receives a user's operation on the touch area on the first audio device;
    或所述第一音频设备接收用户对所述第一音频设备的敲击操作。Or the first audio device receives a user's tapping operation on the first audio device.
  3. 根据权利要求1所述的方法,其特征在于,所述第一链路为面向同步连接SCO链路。The method according to claim 1, wherein the first link is a synchronous connection oriented SCO link.
  4. 根据权利要求1所述的方法,其特征在于,所述第一链路为等时同步连接串流CIS链路。The method of claim 1, wherein the first link is an isochronous connection stream CIS link.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述电子设备为手机,所述第一音频设备和所述第二音频设备均为真无线立体声TWS耳机。The method according to any one of claims 1 to 4, wherein the electronic device is a mobile phone, and the first audio device and the second audio device are both true wireless stereo TWS earphones.
  6. 根据权利要求1所述的方法,其特征在于,所述电子设备采用蓝牙立体声音频传输协议A2DP发送所述音频数据。The method according to claim 1, wherein the electronic device sends the audio data by using a Bluetooth stereo audio transmission protocol A2DP.
  7. 根据权利要求1所述的方法,其特征在于,所述电子设备接收用户开启音频共享功能的操作,包括:The method according to claim 1, wherein the electronic device receives an operation of a user to enable an audio sharing function, comprising:
    所述电子设备接收用户对所述电子设备显示的音频共享选项的点击操作。The electronic device receives a user's click operation on the audio sharing option displayed by the electronic device.
  8. 根据权利要求1所述的方法,其特征在于,在所述电子设备检测到所述第二音频设备之后,所述方法还包括:The method according to claim 1, wherein after the electronic device detects the second audio device, the method further comprises:
    所述电子设备显示弹框提示,所述弹框提示用于提示用户可以连接所述第二音频设备进行音频共享。The electronic device displays a pop-up prompt, where the pop-up prompt is used to prompt the user that the second audio device can be connected for audio sharing.
  9. 根据权利要求1所述的方法,其特征在于,所述第一音频设备输出用于提示用户是否开启语音互通功能的提示信息,包括:The method according to claim 1, wherein the first audio device outputs prompt information for prompting the user whether to enable the voice interworking function, comprising:
    所述第一音频设备通过所述第一音频设备的扬声器播放提示用户是否开启语音互通功能的语音。The first audio device plays a voice prompting the user whether to enable the voice interworking function through the speaker of the first audio device.
  10. 一种语音互通系统,其特征在于,包括电子设备、第一音频设备以及第二音频设备;A voice interworking system, comprising electronic equipment, first audio equipment and second audio equipment;
    所述电子设备,用于与所述第一音频设备通过第一异步无连接ACL链路连接;通过所述第一ACL链路向所述第一音频设备发送音频数据;接收用户开启音频共享功能的操作;检测靠近所述电子设备的音频设备;检测到所述第二音频设备与所述第二音频设备建立第二ACL链路;通过所述第二ACL链路向所述第二音频设备发送所述音频数据;通过所述第一ACL链路向所述第一音频设备发送音频共享状态信息和所述第二音频设备的设备信息;所述音频共享状态信息用于指示所述电子设备处于所述第一音频设备和所述第二音频设备进行音频共享的状态;接收来自第一音频设备的第一指示,根据所述第一指示暂停向所述第一音频设备和所述第二音频设备发送所述音频数据;The electronic device is configured to connect with the first audio device through a first asynchronous connectionless ACL link; send audio data to the first audio device through the first ACL link; the receiving user enables the audio sharing function Detecting an audio device close to the electronic device; Detecting that the second audio device establishes a second ACL link with the second audio device; reporting to the second audio device through the second ACL link sending the audio data; sending audio sharing state information and device information of the second audio device to the first audio device through the first ACL link; the audio sharing state information is used to instruct the electronic device In a state of audio sharing between the first audio device and the second audio device; receiving a first instruction from the first audio device, and suspending the audio to the first audio device and the second audio device according to the first instruction The audio device sends the audio data;
    所述第一音频设备,用于接收所述音频数据,根据所述音频数据通过所述第一音频设备的扬声器播放音频;输出用于提示用户是否开启语音互通功能的提示信息;接收用户确定开启语音互通功能的操作;向所述电子设备发送所述第一指示;根据所述设备信息与所述第二音频设备建立第一链路;通过所述第一音频设备的麦克风接收用户的语音,生成第一语音数据,向所述第二音频设备发送所述第一语音数据;或者,接收来自所述第二音频设备的第二语音数据,根据所述第二语音数据通过所述第一音频设备的扬声器播放语音;The first audio device is configured to receive the audio data, and play audio through the speaker of the first audio device according to the audio data; output prompt information for prompting the user whether to enable the voice interworking function; the receiving user determines to enable operation of the voice interworking function; sending the first indication to the electronic device; establishing a first link with the second audio device according to the device information; receiving the user's voice through the microphone of the first audio device, generating first voice data, and sending the first voice data to the second audio device; or, receiving second voice data from the second audio device, and passing the first audio data according to the second voice data The device's speaker plays the voice;
    所述第二音频设备,用于接收所述音频数据,根据所述音频数据通过所述第二音频设备的扬声器播放所述音频;接收来自所述第一音频设备的所述第一语音数据,根据所述第一语音数据通过所述第二音频设备的扬声器播放语音;或者,通过所述第二音频设备的麦克风接收用户的语音,生成第二语音数据,向所述第一音频设备发送所述第二语音数据。the second audio device, configured to receive the audio data, and play the audio through the speaker of the second audio device according to the audio data; receive the first voice data from the first audio device, Play the voice through the speaker of the second audio device according to the first voice data; or, receive the user's voice through the microphone of the second audio device, generate second voice data, and send the voice to the first audio device. describe the second voice data.
  11. 根据权利要求10所述的语音互通系统,其特征在于,所述第一音频设备,具体用于接收用户对所述第一音频设备上的功能键的操作;或所述第一音频设备接收用户对 所述第一音频设备上的触摸区域的操作;或所述第一音频设备接收用户对所述第一音频设备的敲击操作。The voice interworking system according to claim 10, wherein the first audio device is specifically configured to receive user operations on function keys on the first audio device; or the first audio device receives user operations An operation on a touch area on the first audio device; or the first audio device receives a user's tapping operation on the first audio device.
  12. 根据权利要求10所述的语音互通系统,其特征在于,所述第一链路为面向同步连接SCO链路。The voice interworking system according to claim 10, wherein the first link is a synchronous connection oriented SCO link.
  13. 根据权利要求10所述的语音互通系统,其特征在于,所述第一链路为等时同步连接串流CIS链路。The voice interworking system according to claim 10, wherein the first link is an isochronous connection stream CIS link.
  14. 根据权利要求10至13任一项所述的语音互通系统,其特征在于,所述电子设备为手机,所述第一音频设备和所述第二音频设备均为真无线立体声TWS耳机。The voice interworking system according to any one of claims 10 to 13, wherein the electronic device is a mobile phone, and the first audio device and the second audio device are both true wireless stereo TWS earphones.
  15. 根据权利要求10所述的语音互通系统,其特征在于,所述电子设备采用蓝牙立体声音频传输协议A2DP发送所述音频数据。The voice interworking system according to claim 10, wherein the electronic device sends the audio data by using a Bluetooth stereo audio transmission protocol A2DP.
  16. 根据权利要求10所述的语音互通系统,其特征在于,所述电子设备,具体用于接收用户对所述电子设备显示的音频共享选项的点击操作。The voice interworking system according to claim 10, wherein the electronic device is specifically configured to receive a user's click operation on an audio sharing option displayed by the electronic device.
  17. 根据权利要求10所述的语音互通系统,其特征在于,所述电子设备,还用于显示弹框提示,所述弹框提示用于提示用户可以连接所述第二音频设备进行音频共享。The voice interworking system according to claim 10, wherein the electronic device is further configured to display a pop-up prompt, and the pop-up prompt is used to prompt a user that the second audio device can be connected for audio sharing.
  18. 根据权利要求10所述的语音互通系统,其特征在于,所述第一音频设备,具体用于通过所述第一音频设备的扬声器播放提示用户是否开启语音互通功能的语音。The voice interworking system according to claim 10, wherein the first audio device is specifically configured to play a voice prompting the user whether to enable the voice interworking function through a speaker of the first audio device.
PCT/CN2022/070153 2021-04-09 2022-01-04 Method and device for voice communicaiton between audio devices WO2022213689A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110385309.7A CN113301544B (en) 2021-04-09 2021-04-09 Method and equipment for voice intercommunication between audio equipment
CN202110385309.7 2021-04-09

Publications (1)

Publication Number Publication Date
WO2022213689A1 true WO2022213689A1 (en) 2022-10-13

Family

ID=77319566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/070153 WO2022213689A1 (en) 2021-04-09 2022-01-04 Method and device for voice communicaiton between audio devices

Country Status (2)

Country Link
CN (1) CN113301544B (en)
WO (1) WO2022213689A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301544B (en) * 2021-04-09 2022-05-03 荣耀终端有限公司 Method and equipment for voice intercommunication between audio equipment
CN114785886B (en) * 2022-06-16 2023-05-12 荣耀终端有限公司 Communication method using multiple audio devices and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686516A (en) * 2013-12-11 2014-03-26 乐视致新电子科技(天津)有限公司 Bluetooth headset capable of sharing audios and control method thereof
CN105491482A (en) * 2015-11-20 2016-04-13 广东欧珀移动通信有限公司 Voice transmission method and voice transmission device
CN109388364A (en) * 2018-01-10 2019-02-26 展讯通信(上海)有限公司 A kind of the voice messaging acquisition method for controlling reporting and system of audio frequency apparatus
WO2020088158A1 (en) * 2018-11-01 2020-05-07 歌尔股份有限公司 Headset and playing method therefor
CN111132111A (en) * 2019-12-26 2020-05-08 歌尔股份有限公司 BLE-based audio sharing method and system and computer-readable storage medium
CN113301544A (en) * 2021-04-09 2021-08-24 荣耀终端有限公司 Method and equipment for voice intercommunication between audio equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151640A (en) * 2018-09-03 2019-01-04 中科探索创新(北京)科技院 A kind of bluetooth infinite expanding earphone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686516A (en) * 2013-12-11 2014-03-26 乐视致新电子科技(天津)有限公司 Bluetooth headset capable of sharing audios and control method thereof
CN105491482A (en) * 2015-11-20 2016-04-13 广东欧珀移动通信有限公司 Voice transmission method and voice transmission device
CN109388364A (en) * 2018-01-10 2019-02-26 展讯通信(上海)有限公司 A kind of the voice messaging acquisition method for controlling reporting and system of audio frequency apparatus
WO2020088158A1 (en) * 2018-11-01 2020-05-07 歌尔股份有限公司 Headset and playing method therefor
CN111132111A (en) * 2019-12-26 2020-05-08 歌尔股份有限公司 BLE-based audio sharing method and system and computer-readable storage medium
CN113301544A (en) * 2021-04-09 2021-08-24 荣耀终端有限公司 Method and equipment for voice intercommunication between audio equipment

Also Published As

Publication number Publication date
CN113301544B (en) 2022-05-03
CN113301544A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
US11653398B2 (en) Bluetooth connection method and device
US11805350B2 (en) Point-to-multipoint data transmission method and device
CN113169760B (en) Wireless short-distance audio sharing method and electronic equipment
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
WO2020133183A1 (en) Audio data synchronization method and device
JP2022529033A (en) Bluetooth connection method, device, and system
WO2020253844A1 (en) Method and device for processing multimedia information, and storage medium
US20220394794A1 (en) Bluetooth connection method and related apparatus
WO2022213689A1 (en) Method and device for voice communicaiton between audio devices
WO2021017909A1 (en) Method, electronic device and system for realizing functions through nfc tag
CN113169915A (en) Wireless audio system, audio communication method and equipment
CN113039822B (en) Method and equipment for establishing data channel
WO2021000817A1 (en) Ambient sound processing method and related device
WO2020113587A1 (en) Method, device and system for calling using bluetooth earpiece
WO2021013196A1 (en) Simultaneous response method and device
CN112771828B (en) Audio data communication method and electronic equipment
CN115175159B (en) Bluetooth headset playing method and equipment
WO2022267974A1 (en) Screen projection method and related apparatus
WO2021233398A1 (en) Wireless audio system, wireless communication method, and device
WO2022160967A1 (en) Communication method, mobile device, electronic device, and computer-readable storage medium
WO2023160214A1 (en) Bluetooth earphone, audio output method and audio output system
WO2024109504A1 (en) Audio playback control method, related apparatus, and communication system
CN118158598A (en) Audio playing method, audio playing device and storage medium
CN117857963A (en) Audio transmission method, system and related device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/02/2024)