WO2023045784A1 - Call control method and apparatus, and electronic device and computer-readable storage medium - Google Patents

Call control method and apparatus, and electronic device and computer-readable storage medium Download PDF

Info

Publication number
WO2023045784A1
WO2023045784A1 PCT/CN2022/118078 CN2022118078W WO2023045784A1 WO 2023045784 A1 WO2023045784 A1 WO 2023045784A1 CN 2022118078 W CN2022118078 W CN 2022118078W WO 2023045784 A1 WO2023045784 A1 WO 2023045784A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
transmission link
incoming call
voice transmission
audio output
Prior art date
Application number
PCT/CN2022/118078
Other languages
French (fr)
Chinese (zh)
Inventor
包建全
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023045784A1 publication Critical patent/WO2023045784A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/16Communication-related supplementary services, e.g. call-transfer or call-hold
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Definitions

  • the present application relates to the technical field of communications, and in particular to a call control method, device, electronic equipment, and computer-readable storage medium.
  • Bluetooth is a radio technology that supports short-distance communication between devices. It can realize wireless information exchange between multiple electronic devices that support Bluetooth transmission, making data transmission between electronic devices faster and more efficient. At present, there are many electronic devices on the market that can support the establishment of Bluetooth connections with multiple terminal devices at the same time. The situation will affect the normal business use of the electronic equipment.
  • the embodiment of the application discloses a call control method, device, electronic equipment and computer-readable storage medium.
  • the embodiment of the present application discloses a call control method, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices.
  • the method includes: receiving a first call request sent by the first terminal device and The first voice transmission link establishment request; rejecting the first voice transmission link establishment request, and outputting the first incoming call reminder information corresponding to the first incoming call request; determining to answer the call corresponding to the first incoming call request , establishing a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
  • the embodiment of the present application discloses a call control method, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices.
  • the method includes: receiving a first call request sent by the first terminal device and The first voice transmission link establishment request; judging whether the audio output device is in an occupied state; wherein, the occupied state is a state in which the audio output device and a second terminal device perform audio data transmission, and the second terminal device It is any terminal device except the first terminal device among the at least two terminal devices; if so, rejecting the first voice transmission link establishment request, and outputting the first call corresponding to the first call request An incoming call reminder message, and when it is determined to answer the call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link; and /or, if not, in response to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, and receive the first terminal device through the
  • the embodiment of the present application discloses a call control method, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least a first terminal device and a second terminal device respectively, and the method includes: When the device is in the incoming call state and the second terminal device is in the incoming call state, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the voice data transmitted by the first terminal device If it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
  • the embodiment of the present application discloses a call control device, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices.
  • the device includes: a request receiving module, configured to receive a request sent by the first terminal device. The first incoming call request and the first voice transmission link establishment request; the request rejection module is configured to reject the first voice transmission link establishment request, and output the first incoming call reminder information corresponding to the first incoming call request;
  • a link establishing module configured to establish a first voice transmission link with the first terminal device when it is determined to answer the call corresponding to the first incoming call request, so as to transmit voice data through the first voice transmission link.
  • the embodiment of the present application discloses a call control device, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices.
  • the device includes: a request receiving module, configured to receive a request sent by the first terminal device.
  • the first incoming call request and the first voice transmission link establishment request; the occupancy judgment module is used to judge whether the audio output device is in an occupied state; wherein, the occupied state is that the audio output device communicates with the second terminal device
  • the state of audio data transmission, the second terminal device is any terminal device except the first terminal device among the at least two terminal devices; a rejecting module, configured to, if the audio output device is in an occupied state, Then reject the first voice transmission link establishment request, and output the first call reminder information corresponding to the first call request, and when it is determined to answer the call corresponding to the first call request, communicate with the first call request
  • the terminal device establishes a first voice transmission link to transmit voice data through the first voice transmission link; a response module, configured to respond to the first voice transmission link if the audio output device is not in an occupied state Establishing a request, establishing a first voice transmission link with the first terminal device, receiving the second ringing audio data sent by the first terminal device through the first voice transmission link, and outputting the second
  • the embodiment of the present application discloses a call control device, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least a first terminal device and a second terminal device respectively, and the device includes: an output module configured to When the first terminal device is in the incoming call state and the second terminal device is in the incoming call state, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the first terminal device The voice data transmitted by the device, if it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
  • the embodiment of the present application discloses an electronic device, including a memory storing executable program codes, and a processor coupled to the memory; wherein, the processor invokes the executable program codes stored in the memory , so that the electronic device executes the above-mentioned method.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the electronic device implements the above method.
  • Fig. 1 is an application scenario diagram of a call control method in an embodiment
  • Fig. 2 is a flowchart of a call control method in an embodiment
  • Fig. 3 is a flowchart of a call control method in another embodiment
  • FIG. 4A is a sequence flow chart of two terminal devices receiving incoming calls at the same time period in one embodiment
  • FIG. 4B is a sequence flow chart of another terminal device receiving an incoming call while the previous terminal device is in a call in one embodiment
  • FIG. 4C is a sequence flow chart of another terminal device receiving an incoming call while the previous terminal device is in a call in another embodiment
  • Fig. 5 is a flowchart of a call control method in another embodiment
  • FIG. 6 is a sequence flow chart of two terminal devices receiving incoming calls at the same time period in another embodiment
  • Fig. 7 is a flowchart of a call control method in another embodiment
  • FIG. 8 is a flowchart of a call control method in another embodiment
  • Fig. 9 is a block diagram of a call control device in an embodiment
  • Fig. 10 is a block diagram of a call control device in another embodiment
  • Fig. 11 is a block diagram of a call control device in another embodiment
  • Fig. 12 is a structural block diagram of an electronic device in one embodiment.
  • first, second and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
  • a first terminal device could be termed a second terminal device, and, similarly, a second terminal device could be termed a first terminal device, without departing from the scope of the present application.
  • Both the first terminal device and the second terminal device are terminal devices, but they are not the same terminal device.
  • the term “plurality” and the like used in the embodiments of the present application refer to two or more.
  • Fig. 1 is an application scene diagram of a call control method in an embodiment.
  • the audio output device 10 can establish Bluetooth connections with at least two terminal devices 20, and the audio output device 10 can be various electronic devices with Bluetooth communication functions and audio playback functions, such as Bluetooth earphones, Bluetooth speakers , can also be a terminal device such as a smart watch, and further, the audio output device 10 can be a TWS (True Wireless Stereo, true wireless stereo) earphone.
  • the terminal device 20 may include, but not limited to, a mobile phone, a smart wearable device, a vehicle terminal, a tablet computer, a PC (Personal Computer, personal computer), a PDA (Personal Digital Assistant, personal digital assistant) and the like.
  • the terminal device 20 may be a device capable of accessing a wireless network and performing communication services.
  • the terminal device 20 may be provided with a SIM (Subscriber Identification Module, Subscriber Identification Module) card, and access the fourth terminal through the SIM card.
  • SIM Subscriber Identification Module
  • the above-mentioned bluetooth connection can be realized based on the classic bluetooth protocol (for example, bluetooth 4.0 and other versions established by the bluetooth technology alliance bluetooth and other versions of the protocol) are implemented, and are not limited here, and may change with the development of the Bluetooth protocol.
  • the classic bluetooth protocol for example, bluetooth 4.0 and other versions established by the bluetooth technology alliance bluetooth and other versions of the protocol
  • the terminal device because the terminal device is in the process of using the audio output device, if the terminal device receives an incoming call, the user can hear the ringtone set by the terminal device in time. Listen to the ringtone of the mobile phone, etc., thereby enriching the user experience. Therefore, many terminal devices are set to establish a voice transmission link with the audio output device when an incoming call is received.
  • the inventors have found that this setting causes other problems when the audio output device is connected to multiple terminal devices (such as mobile phones), such as , in the case where the audio output device 10 establishes a Bluetooth connection with at least two terminal devices 20, if the audio output device 10 is currently transmitting audio data with the terminal device A, that is, the terminal device A is currently using the audio output device 10 to play audio At this time, terminal device B receives an incoming call, terminal device B will directly seize the audio output device 10, crowding out terminal device A, if the user is not willing to answer the incoming call of terminal device B, terminal device A will use the audio The output device 10 produces an effect.
  • terminal devices such as mobile phones
  • the audio output device 20 when the audio output device 20 receives the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, it may reject the first voice transmission link establishment request, and output the first voice transmission link establishment request.
  • the first incoming call reminder information corresponding to an incoming call request.
  • the audio output device 20 determines to answer the call corresponding to the first call request, it establishes the first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
  • the audio output device will directly reject it, so the first terminal device will not preempt the audio output device during the incoming call phase, which can prevent the first terminal device from The audio output device is preempted when the user is not willing to answer the call, reducing the impact on the normal use of the audio output device, and more meeting the actual needs of the user.
  • Fig. 2 is a flowchart of a call control method in an embodiment, which can be applied to the above-mentioned audio output device, and the method may include the following steps:
  • Step 210 receiving a first call request and a first voice transmission link establishment request sent by the first terminal device.
  • the audio output device supports the Bluetooth "one-to-many" function, and can support the establishment of Bluetooth connections with at least two terminal devices at the same time, that is, the audio output device can maintain Bluetooth connections with N terminal devices at the same time, where N is an integer greater than or equal to 2 , such as 2, 3, 4, etc., but not limited thereto.
  • the audio output device can establish a Bluetooth connection with at least two terminal devices.
  • the at least two terminal devices can include a first terminal device.
  • the first terminal device can be connected to a wireless network such as 4G, 5G and realize a call function.
  • the call function can be Including but not limited to answering incoming calls, outgoing calls and other functions.
  • the audio output device can transmit voice data with the first terminal device through the Bluetooth connection to realize the function of talking on the audio output device.
  • the audio output device can implement a call function based on a bluetooth call protocol, which can include but not limited to the HFP (Hands-free Profile) protocol, etc., wherein the HFP protocol is a protocol for calling between bluetooth devices. Controlled Bluetooth protocol.
  • the first terminal device may be a terminal device that supports the Bluetooth in-band ring function.
  • the Bluetooth in-band ring function refers to triggering the establishment of a voice transmission link with the audio output device when receiving an incoming call to pass
  • the voice transmission link transmits the function of ringing audio to the audio output device.
  • the voice transmission link may include a physical link capable of meeting high timeliness, such as a Synchronous Connection Oritened (SCO) link.
  • SCO Synchronous Connection Oritened
  • the first terminal device When the first terminal device receives an incoming call, it will send a first incoming call request to the audio output device.
  • the first incoming call request may be used to notify the audio output device that there is an incoming call.
  • the first terminal device is generally a terminal device that supports the Bluetooth in-band ringtone function by default, when the first terminal device receives an incoming call, the first terminal device will send the first call request to the audio output device, and will also send the first call request to the audio output device.
  • a first voice transmission link establishment request where the first voice transmission link establishment request is used to request to establish a first voice transmission link with an audio output device.
  • the first voice transmission link may be an SCO link.
  • the first terminal device may send the first voice transmission link establishment request to the audio output device after sending the first call request to the audio output device.
  • the first incoming call request and the first voice transmission link establishment request may also be sent in other orders, or even sent at the same time.
  • Step 220 rejecting the first voice transmission link establishment request, and outputting first incoming call reminder information corresponding to the first incoming call request.
  • the first terminal device since the first terminal device is a terminal device supporting the Bluetooth in-band ringtone function, when the first terminal device receives an incoming call, it will send a first voice transmission link establishment request to the audio output device. If the device successfully establishes the first voice transmission link with the first terminal device, the first terminal device will transmit the ringing audio data to the audio output device through the first voice transmission link, and the audio output device will play the ringing audio data . If the audio output device is transmitting audio data with the second terminal device before this, that is, the audio output device is playing the audio data transmitted by the second terminal device, the first terminal device will directly seize the audio output device during the incoming call phase. The second end device uses the audio output device to effect.
  • the audio output device may reject the first voice transmission link establishment request sent by the first terminal device.
  • the first voice transmission link is established with the first terminal device, and the first terminal device cannot preempt the audio output device. Therefore, if the audio output device is transmitting audio data with the second terminal device before this, it will not affect the use of the audio output device by the second terminal device.
  • the audio output device rejects the first voice transmission link establishment request, which may include not responding to the first voice transmission link establishment request, or sends a rejection instruction to the first terminal device, and the rejection instruction is used to It indicates that the audio output device refuses to establish the first voice transmission link with the first terminal device.
  • the audio output device does not respond to the first voice transmission link establishment request may mean that the audio output device does not send any feedback signal to the first terminal device after receiving the first voice transmission link establishment request.
  • the first terminal device sends the first voice transmission link establishment request to the audio output device if no feedback signal is received within the preset time period, it means that the audio output device rejects the first voice transmission link establishment request, then It is determined that the establishment of the first voice transmission link fails.
  • the above-mentioned rejection instruction may include an error instruction.
  • the audio output device may return an error instruction to the first terminal device after receiving the first voice transmission link establishment request, and the first terminal device After receiving the error instruction, the device may determine that the establishment of the first voice transmission link fails.
  • the audio output device may, after receiving the first incoming call request sent by the first terminal device, output first incoming call reminder information corresponding to the first incoming call request, the first incoming call reminder information It can be used to remind the user that the first terminal device receives an incoming call.
  • the presentation manner of the first incoming call reminder information may include but not limited to one or more of voice reminder, vibration reminder, display reminder and the like.
  • the first incoming call reminder information may be reminder information locally stored on the audio output device, for example, it may be a locally stored prompt tone, or vibrate according to locally stored vibration parameters, etc., but is not limited thereto.
  • the audio output device may output the first incoming call reminder message while rejecting the first voice transmission link establishment request, or may output the first incoming call reminder before or after rejecting the first voice transmission link establishment request.
  • Reminder information the sequence between the two is not limited here.
  • Step 230 when it is determined to answer the call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
  • the audio output device After the audio output device outputs the first incoming call reminder information to remind the user, the user can answer the incoming call of the first terminal device through the audio output device or on the first terminal device. After determining to answer the call corresponding to the first incoming call request, the audio output device may establish a first voice transmission link with the first terminal device, and perform voice data transmission with the first terminal device through the first voice transmission link. The audio output device can play the voice data transmitted by the first terminal equipment through a speaker, etc., and at the same time can collect the user's voice data through a microphone and other sound collection devices, and transmit the voice data collected by the microphone and other sound collection devices through the first voice transmission link. transmitted to the first terminal device.
  • the first terminal device may send a first answering instruction to the audio output device, and the first answering instruction may be used to indicate that the first terminal device answers the incoming call, from The incoming call state is switched to the call state (referring to the state of the ongoing call).
  • the audio output device may send a second voice transmission link establishment request to the first terminal device, so that the second terminal device establishes a second voice transmission link establishment request with the audio output device according to the second voice transmission link establishment request.
  • a voice transmission link may be used to indicate that the first terminal device answers the incoming call, from The incoming call state is switched to the call state (referring to the state of the ongoing call).
  • the establishment of the first voice transmission link between the audio output device and the first terminal device is initiated by the audio output device, which can realize the call function on the audio output device, and does not need to set the first terminal device that supports the Bluetooth in-band ringtone function Or change to improve the compatibility and adaptability of audio output devices.
  • the audio output device will directly reject the first voice transmission link establishment request sent by the first terminal device during the incoming call phase, so the first terminal device will not preempt the audio output device during the incoming call phase Only when it is determined to answer the call corresponding to the first incoming call request, the first voice transmission link is established with the first terminal device, which can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, Reduce the impact on the normal use of audio output devices, and more meet the actual needs of users.
  • Fig. 3 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device, and the method may include the following steps:
  • Step 302 receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device.
  • Step 304 If the audio output device is currently in an occupied state, reject the first voice transmission link establishment request, and output first call reminder information corresponding to the first call request.
  • the occupied state is a state in which the audio output device is transmitting audio data with a second terminal device, and the second terminal device may be any terminal device except the first terminal device among at least two terminal devices.
  • the audio output device After the audio output device receives the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, it can determine whether the audio output device is currently in the occupied state. If it is currently in the occupied state, it means that the audio output device is currently Playing the audio data transmitted by the second terminal device can reject the first voice transmission link establishment request, preventing the first terminal device from preempting the audio output device.
  • the audio output device may respond to the first voice transmission link establishment request, and communicate with the first terminal The device establishes a first voice transmission link. After the audio output device establishes the first voice transmission link with the first terminal device, it can receive the second ringing audio data sent by the first terminal device through the first voice transmission link, and output the second ringing audio data. When it is determined to answer the call corresponding to the first incoming call request, voice data transmission may be performed with the first terminal device through the first voice transmission link.
  • Step 306 when it is determined to answer the call corresponding to the first incoming call request, disconnect the second voice transmission link, and establish the first voice transmission link with the first terminal device, so as to perform voice data transmission through the first voice transmission link .
  • the second terminal device can perform a multimedia audio playback service, and the above occupation state may include a state in which the audio output device and the second terminal device perform multimedia audio data transmission. Further, the second terminal device can transmit multimedia audio data to the audio output device based on the Bluetooth audio transmission protocol.
  • the audio transmission protocol can include A2DP (Advanced Audio Distribution Profile), etc., and the second terminal device can communicate with the audio output device. An A2DP connection is established between the devices, and multimedia audio data is sent to the second terminal device through the A2DP connection.
  • the first audio transmission link establishment request may be rejected.
  • the voice transmission link establishment request prevents the first terminal device from preempting the audio output device and affecting the multimedia audio playback service of the second terminal device when the user is not willing to answer.
  • the audio output device may disconnect the A2DP connection with the second terminal device, stop receiving audio data transmitted by the second terminal device, and communicate with the first terminal device A first voice transmission link is established.
  • the A2DP connection with the second terminal device may not be disconnected, and the first terminal device may maintain the A2DP connection with the audio output device.
  • the A2DP connection is set to a state where data stream cannot be transmitted, so that the audio output device stops receiving audio data transmitted by the second terminal device.
  • the second terminal device can perform a call service
  • the occupied state may include a state in which the audio output device and the second terminal device perform audio data transmission through the second voice transmission link.
  • a second voice transmission link may be established between the second terminal device and the audio output device.
  • the second voice transmission link may be an SCO link, and the call service-related information is transmitted to the second terminal device through the second voice transmission link.
  • Audio data such as the second ringing audio data of an incoming call, voice data during a call, etc.
  • the audio output device performs audio data transmission with the second terminal device through the second voice transmission link
  • the audio output device receives the first call request and the first voice transmission link establishment request sent by the first terminal device, Then the request for establishing the first voice transmission link can be rejected, so as to prevent the first terminal device from preempting the audio output device and affecting the call service of the second terminal device when the user is not willing to answer the call.
  • the audio output device may mix and output the audio data received through the second voice transmission link and the first incoming call reminder information.
  • the first incoming call reminder information may be a prompt tone locally stored in the audio output device, and the audio output device may play a mixed audio of the audio data received through the second voice transmission link and the first incoming call reminder information.
  • the user can hear the audio data transmitted by the second terminal device and the prompt tone reminding the first terminal device of an incoming call at the same time, which does not affect the use of the audio output device of the second terminal device, and the user can accurately know the information of the incoming call of the first terminal device, which can It is more suitable for user needs and improves user viscosity.
  • the audio output device may disconnect the second voice transmission link, and establish a first voice transmission link with the first terminal device, and the audio output device may pass through the first voice transmission link Perform voice data transmission with the first terminal device.
  • the second terminal device can successfully preempt the audio output device, ensuring that the second terminal device normally uses the audio output device.
  • the scenario in which the second terminal device conducts a call service and occupies the audio output device may include: 1. The scenario in which the second terminal device receives an incoming call but has not yet answered it; 2. The scene where the second terminal device receives an incoming call and has answered it, etc.
  • the step of receiving the first incoming call request and the first voice transmission link establishment request sent by the first terminal device may include: receiving the second incoming call request and the third voice transmission link establishment request sent by the second terminal device; If the audio output device is not in the occupied state, then in response to the third voice transmission link establishment request, establish a second voice transmission link with the second terminal device; receive the first sound sent by the second terminal device through the second voice transmission link ring audio data, and output the first ring audio data.
  • the audio output device may directly respond to the third voice transmission link establishment request, and establish the second voice transmission link with the second terminal device.
  • the second terminal device can send the first ringing audio data to the audio output device through the second voice transmission link, and the audio output device can play the first ringing audio data to prompt the user that the second terminal device receives an incoming call.
  • the second terminal device occupies the audio output device.
  • the first terminal device when the second terminal device is in the incoming call state, receives the incoming call and sends the first incoming call request to the audio output device and a first voice transmission link establishment request.
  • the audio output device may reject the first voice transmission link establishment request, and mix the first ringing audio data of the second terminal device with the first prompt information output.
  • the user can choose to answer the incoming call of the first terminal device or the second terminal device. If it is determined to answer the call corresponding to the second incoming call request (that is, it is determined to answer the incoming call of the second terminal device), the audio output device can directly perform voice data transmission with the second terminal device through the second voice transmission link, and the second terminal device Occupies the audio output device.
  • the audio output device may disconnect the second voice transmission link, and establish the first voice transmission link with the first terminal device , performing voice data transmission with the first terminal device through the first voice transmission link, and the first terminal device preempts the audio output device.
  • FIG. 4A is a sequence flowchart of two terminal devices receiving incoming calls at the same time period in an embodiment.
  • the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively.
  • terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device.
  • the SCO link can be established with the terminal device A in response to the SCO establishment request, and the terminal device A occupies the audio output device.
  • the terminal device A sends the ringtone of the incoming call to the audio output device through the SCO link, and the audio output device can play the received ringtone of the incoming call of the terminal device A.
  • terminal device B While the audio output device is playing the ringtone of the incoming call of terminal device A, that is, the incoming call phase of terminal device A, terminal device B also receives an incoming call, and terminal device B sends an incoming call request and an SCO establishment request to the audio output device. Since the audio output device is in the occupied state at this time, the audio output device may reject the SCO establishment request of the terminal device B, and mix and play the ringtone of the incoming call of the terminal device A and the incoming call prompt tone of the terminal device B stored locally. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer command to the audio output device, and the audio output device may disconnect the SCO link with terminal device A, and send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive the call voice of terminal device B through the SCO link, and play the call voice
  • the audio output device plays the first ringing audio data
  • it can pass the second The second voice transmission link performs voice data transmission with the first terminal device.
  • the first terminal device receives an incoming call, and sends a first incoming call request and a first voice transmission link establishment request to the audio output device.
  • the first terminal device is in the call stage, and the second terminal device is in the incoming call stage.
  • the audio output device can reject the first voice transmission link establishment request, and output the voice data transmitted by the second terminal device in combination with the first prompt information. .
  • the way of mixing and outputting the voice data transmitted by the second terminal device with the first prompt information may be that during the process of outputting the voice data transmitted by the second terminal device, the first prompt information lasts for a first time period.
  • the information and the voice data are mixed and output, and the first time period can be set according to actual needs, such as 3 seconds, 5 seconds, and so on.
  • the first prompt information and the voice data are mixed and output every second time period.
  • the second time period can be set according to actual needs, for example, 5 seconds, 8 seconds and so on.
  • the second voice transmission link with the second terminal device may be disconnected, and A first voice transmission link with the first terminal device is established, voice data transmission is performed with the first terminal device through the first voice transmission link, and the first terminal device preempts the audio output device.
  • FIG. 4B is a sequence flow chart of another terminal device receiving an incoming call when the previous terminal device is in a call in an embodiment.
  • the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively.
  • terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device.
  • the SCO link can be established with the terminal device A in response to the SCO establishment request, and the terminal device A occupies the audio output device.
  • the terminal device A sends the ringtone of the incoming call to the audio output device through the SCO link, and the audio output device can play the received ringtone of the incoming call of the terminal device A.
  • terminal device A sends an answer instruction to the audio output device, and the audio output device can receive and play the call voice sent by terminal device A through the SCO link.
  • terminal device A occupies the audio output device for a call
  • terminal device B receives an incoming call
  • terminal device B sends an incoming call request and an SCO establishment request to the audio output device.
  • the audio output device may reject the SCO establishment request of the terminal device B, and mix and play the call voice of the terminal device A and the incoming call prompt tone of the terminal device B stored locally. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer command to the audio output device, and the audio output device may disconnect the SCO link with terminal device A, and send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive and play the call voice of terminal device B through the SCO link.
  • the second terminal device before the step of receiving the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, it may further include: Receive the second incoming call request and the third voice transmission link establishment request sent by the second terminal device; reject the third voice transmission link establishment request, and output the second incoming call reminder information corresponding to the second incoming call request;
  • a call corresponding to a second incoming call is requested, a second voice transmission link is established with the second terminal device, and voice data transmission is performed with the first terminal device through the second voice transmission link.
  • the audio output device may reject the voice transmission link establishment request, and will not establish a voice transmission link with the terminal device during the incoming call phase.
  • the second terminal device receives an incoming call, it sends a second incoming call request and a third voice transmission link establishment request to the audio output device, and the audio output device can reject the third voice transmission link establishment request, and output the second incoming call request.
  • the corresponding second incoming call reminder information is requested.
  • the manner of rejecting the establishment request of the third voice transmission link and outputting the second incoming call reminder information corresponding to the second incoming call request can be the same as that of rejecting the establishment request of the first voice transmission link in the above embodiment and outputting the second incoming call reminder information.
  • the method of the first incoming call reminder corresponding to an incoming call request is similar and will not be repeated here.
  • the audio output device establishes the second voice transmission link with the second terminal device only when it is determined to answer the call corresponding to the second incoming call request. It can avoid unnecessary power consumption loss caused by establishing the second voice transmission link and then disconnecting the second voice transmission link when the user is not willing to answer the incoming call of the second terminal device, and improve the battery life of the audio output device . Moreover, the logic for all terminal devices to occupy the audio output device is consistent, which avoids confusion for users caused by inconsistencies in the behavior of different terminal devices preempting earphones, and improves user experience.
  • FIG. 4C is a sequence flow chart of another terminal device receiving an incoming call when the previous terminal device is in a call in another embodiment.
  • the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively.
  • terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device.
  • the audio output device rejects the SCO establishment request of terminal device A, and plays the locally stored caller prompt tone of terminal device A.
  • terminal device A When it is determined to answer the incoming call of terminal device A, terminal device A sends an answer command to the audio output device, and the audio output device can send an SCO establishment request to terminal device A, and establish an SCO link with terminal device A, and terminal device A occupies the audio output equipment.
  • the audio output device can receive and play the call voice sent by terminal device A through the SCO link.
  • terminal device A occupies the audio output device for a call
  • terminal device B receives an incoming call
  • terminal device B sends an incoming call request and an SCO establishment request to the audio output device.
  • the audio output device may reject the SCO establishment request of the terminal device B, and mix and play the call voice of the terminal device A and the incoming call prompt tone of the terminal device B stored locally. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer command to the audio output device, and the audio output device may disconnect the SCO link with terminal device A, and send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive and play the call voice of terminal device B through the SCO link.
  • the audio output device can send The device sends a control instruction, and the control instruction may be used to instruct the second terminal device to output the audio data generated by the second terminal device through the speaker.
  • the audio output device may not send a control command to the second terminal device, and after the second terminal device detects that the second voice transmission link with the audio output device is disconnected, it can directly play the generated audio through the speaker. data. Through the way of external release, the second terminal device can continue to conduct business without affecting the use of the audio output device by the first terminal device.
  • the first terminal device when the audio output device is occupied by the second terminal device, the first terminal device receives an incoming call, and the audio output device directly rejects the first voice transmission link sent by the first terminal device during the incoming call phase. Create a request, the first terminal device will not preempt the audio output device during the incoming call, which can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, and reduce the use of audio output for the second terminal device
  • the impact of equipment is more in line with the actual needs of users.
  • FIG. 5 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device.
  • the method may include the following steps:
  • Step 502 receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device.
  • Step 504 If the audio output device is currently in an occupied state, reject the first voice transmission link establishment request, and output first call reminder information corresponding to the first call request.
  • Step 506 when it is determined to answer the call corresponding to the first incoming call request, disconnect the second voice transmission link, and establish the first voice transmission link with the first terminal device, so as to perform voice data transmission through the first voice transmission link .
  • Step 508 if it is determined that the first terminal device ends the call, and the second terminal device is still in a call state or a call state, disconnect the first voice transmission link, and re-establish a second voice transmission link with the second terminal device.
  • the first terminal device When the second terminal device occupies the audio output device for call service, the first terminal device also receives an incoming call, and the user decides to answer the incoming call of the first terminal device, then the first terminal device preempts the audio output device for call service.
  • the first terminal device preempts the audio output device
  • the second terminal device can directly output an incoming call reminder, such as playing the first ringing audio data through its own speaker, or Vibration is used for incoming call reminders, etc. If the second terminal device is in a call state when the first terminal device preempts the audio output device, the second terminal device may maintain the call state without hanging up.
  • the audio output device can disconnect the first voice transmission link and reconnect with the second terminal device. Establish a second voice transmission link.
  • the second terminal device when the incoming call of the second terminal device is hung up, the second terminal device ends the call service, and can send a hangup instruction to the audio output device, and the hangup instruction can be used to represent the incoming call of the second terminal device hanged up, the hangup may be that the user performs a hangup operation on the second terminal device, or it may be that a calling device that calls the second terminal device performs a hangup operation. Therefore, if the audio output device does not receive the hang-up instruction sent by the second terminal device while the first terminal device is occupying the audio output device for the call service, it can be determined that the second terminal device is still in the incoming call state or in the call state.
  • the audio output device When the audio output device receives the hang up instruction sent by the first terminal device, it can determine that the first terminal device has ended the call, and the audio output device can disconnect the first voice transmission link with the first terminal device, and send a message to the first terminal device.
  • the second terminal device sends a fourth voice transmission link establishment request to request to restore the establishment of the second voice transmission link with the second terminal device, so as to continue audio data transmission with the second terminal device through the second voice transmission link.
  • the second terminal device occupies the audio output device and continues the call service.
  • the audio output device when the first terminal device ends the call, can restore the second voice transmission link with the second terminal device, and continue the call service of the second terminal device, ensuring that different terminals
  • the call service of the device can be carried out normally, which meets the different needs of users for using audio output devices.
  • the terminal device that receives the incoming call first occupies the Audio output device
  • the terminal device that receives an incoming call preempts the audio output device when it is determined to answer
  • neither of the two terminal devices preempts the audio output device during the incoming call phase , only after the user chooses to answer one of the terminal devices, the terminal device that answers the call preempts the audio output device.
  • the above call control method may further include: receiving the first call request and the first voice transmission link establishment request sent by the first terminal device, and receiving the second call request and the third voice transmission link request sent by the second terminal device
  • the establishment request rejects the first voice transmission link establishment request and the third voice transmission link establishment request, and outputs the first incoming call reminder information corresponding to the first incoming call request and the second incoming call reminder information corresponding to the second incoming call request.
  • the second terminal device receiving an incoming call first and the first terminal device receiving an incoming call as an example
  • the second terminal device sends a second incoming call request and a third voice transmission link establishment request to the audio output device
  • the audio output device rejects the third voice transmission link establishment request, and outputs second incoming call reminder information corresponding to the second incoming call request.
  • the first terminal device receives an incoming call, sends a first incoming call request and a first voice transmission link establishment request to the audio output device, and the audio output device rejects the first voice transmission link establishment request
  • the first call reminder information corresponding to the first call request and the second call reminder information corresponding to the second call request may be mixed and output. Neither the first terminal device nor the second terminal device occupies the audio output device.
  • the audio output device may also output locally stored third call reminder information, the third call reminder information may be used to prompt both the first terminal device and the second terminal device to receive an incoming call, which may represent the first terminal device and the second terminal device Both terminal devices are in the incoming call state.
  • the user can choose to answer the incoming call of the first terminal device or the incoming call of the second terminal device. If it is determined to receive the incoming call of the first terminal device, the audio output device can establish a first voice transmission link with the first terminal device, and the first terminal device Preempting the audio output device, the audio output device can perform voice data transmission with the first terminal device through the first voice transmission link. If it is determined to answer the incoming call of the second terminal device, the audio output device can establish a second voice transmission link with the second terminal device, and the second terminal device preempts the audio output device, and the audio output device can communicate with the second terminal device through the second voice transmission link. The second terminal device performs voice data transmission.
  • FIG. 6 is a sequence flow chart of two terminal devices receiving incoming calls at the same time period in another embodiment.
  • the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively.
  • terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device.
  • the audio output device may reject the SCO establishment request of the terminal device A, and play the locally stored call prompt tone of the terminal device A.
  • terminal device B also receives an incoming call, and terminal device B sends an incoming call request and an SCO establishment request to the audio output device.
  • the audio output device may reject the SCO establishment request of the terminal device B, and play the locally stored call prompt tone of the terminal device A and the locally stored call prompt tone of the terminal device B. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer instruction to the audio output device, and the audio output device may send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive the call voice of terminal device B through the SCO link, and play the call voice.
  • the audio output device rejects the voice transmission link establishment request initiated by the terminal device during the incoming call phase, and only when it is determined to answer the incoming call of one of the terminal devices , and then establish a voice transmission link with the terminal device that answers the call, which can avoid unnecessary power loss caused by first establishing the voice transmission link and then disconnecting the voice transmission link when the user is not willing to answer the call , improving the battery life of the audio output device.
  • the logic for all terminal devices to occupy the audio output device is consistent, which avoids confusion for users caused by inconsistencies in the behavior of different terminal devices preempting earphones, and improves user experience.
  • the methods of determining to answer the call corresponding to the first call request involved in the above embodiments may include but not limited to the following methods:
  • Method 1 If the first answering operation of answering the first terminal device is detected on the audio output device side, it is determined to answer the call corresponding to the first incoming call request.
  • the operation mode corresponding to the answering operation of each terminal device can be pre-designed, the audio output device can detect the answering operation, and judge whether to answer the incoming call of the first terminal device or the second terminal device according to the detected operation mode of the answering operation.
  • the operation modes of the answering operation of different terminal devices may include but not limited to: the first terminal device and the second terminal device respectively correspond to different operating components on the audio output device, the first terminal device and the second terminal device respectively correspond to Different operating frequencies, the first terminal device and the second terminal device respectively correspond to different continuous operation durations and the like.
  • the audio output device may be provided with a first button and a second button (which may be a physical button , can also be a displayed virtual button), pressing the first button by the user corresponds to answering the incoming call of the first terminal device, and pressing the second button by the user corresponds to answering the incoming call of the second terminal device, etc.
  • a first button and a second button which may be a physical button , can also be a displayed virtual button
  • the user performs a click operation on the touch device of the audio output device, corresponding to answering the incoming call of the first terminal device, and the user clicks on the touch device of the audio output device. Double-click on the control device to answer incoming calls from the second terminal device.
  • the user performs a short press operation on the touch device of the audio output device, corresponding to answering the incoming call of the first terminal device, and the user performs a short press operation on the touch device of the audio output device.
  • a long press operation on the touch device corresponds to answering an incoming call from the second terminal device.
  • first answering operation for the first terminal device and the second answering operation for the second terminal device performed on the audio output device can be set according to actual needs, and are not limited to the above examples Operation method. Different operation modes are set for different terminal devices, and users can choose to answer corresponding terminal devices according to actual needs. The operation mode is convenient and meets user needs.
  • Method 2 If an answering operation is detected on the audio output device side, and the call priority of the first terminal device is higher than that of the second terminal device, it is determined to answer the call corresponding to the first incoming call request.
  • the same answering operation on the audio output device can be set.
  • the answering operation can be any one of single-click operation, double-click operation, and press operation on the touch device of the audio output device. It can also be an interactive operation controlled by voice, etc.
  • the call priority of the first terminal device and the call priority of the second terminal device can be obtained respectively , and compare the call priorities of the two. If the call priority of the first terminal device is higher than the call priority of the second terminal device, it is determined to answer the call corresponding to the first incoming call request.
  • the call priority can be set by the user according to actual needs. For example, if the call priority of the first terminal device is set to 5, and the call priority of the second terminal device is 3, then the call priority of the first terminal device is higher.
  • the call priority of the call priority of the first terminal device can also be set through information in one or more dimensions, for example, according to the order in which the first terminal device and the second terminal device receive incoming calls, the first terminal device and the second terminal device respectively One or more of the sequence of establishing a Bluetooth connection with the audio output device, the remaining power of the first terminal device and the second terminal device, the importance of the incoming call numbers received by the first terminal device and the second terminal device, etc. set up.
  • the call priority of a terminal device that receives an incoming call first may be higher than that of a terminal device that receives an incoming call later; for another example, the call priority of a terminal device that first establishes a Bluetooth connection with an audio output device may be lower than that of a terminal device that receives an incoming call later.
  • the audio output device selects the terminal device with high call priority to answer the incoming call according to the call priority of each terminal device, which can improve the intelligence of the audio output device and meet the different needs of users.
  • Method 3 If the audio output device receives the first answering instruction sent by the first terminal device, it determines to answer the call corresponding to the first incoming call request, wherein the first answering instruction is sent to the first terminal device when an answering operation is detected. sent by the audio output device.
  • the user can directly perform an answering operation on the first terminal device (such as clicking the answer button on the first terminal device, etc.), then the first terminal device answers the incoming call, and the first terminal device switches from the call state to the call state, and the first terminal device
  • the device may directly send the first answering instruction to the audio output device.
  • the first answering instruction can be used to indicate that the first terminal device is switched from the incoming call state to the talking state.
  • the audio output device can send a second voice transmission link establishment request to the first terminal device to communicate with the first terminal device.
  • a terminal device establishes a first voice transmission link.
  • an answering control instruction may be sent to the first terminal device, where the answering control instruction may be used to instruct the first terminal device to answer the incoming call.
  • the answering control instruction may be an AT instruction "ATA (ANSWER)" and the like.
  • the manner of determining to answer the call corresponding to the second incoming call request may be similar to the manner of determining to answer the call corresponding to the first incoming call request, and will not be repeated here.
  • the answering operation can be performed on the audio output device and/or the terminal device, and the ways of answering incoming calls are more flexible and diverse, meeting different needs of users in different scenarios.
  • FIG. 7 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device.
  • the method may include the following steps:
  • Step 710 receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device.
  • Step 720 determine whether the audio output device is in the occupied state, if yes, execute step 730, if not, execute step 750.
  • Step 730 rejecting the first voice transmission link establishment request, and outputting first incoming call reminder information corresponding to the first incoming call request.
  • Step 740 when it is determined to answer the call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
  • Step 750 Respond to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, receive the second ringing audio data sent by the first terminal device through the first voice transmission link, and output the first voice transmission link. Two rings for audio data.
  • Step 760 when it is determined to answer the call corresponding to the first incoming call request, perform voice data transmission with the first terminal device through the first voice transmission link.
  • the first terminal device if the audio output device is in the occupied state, the first terminal device will reject the first voice transmission link establishment request sent by the first terminal device during the incoming call phase, and the first terminal device will not request the audio output device during the incoming call phase. Preemption is performed, and the first voice transmission link is established with the first terminal device only when it is determined to answer the call corresponding to the first incoming call request, which can prevent the first terminal device from making a call to the audio output device when the user is not willing to answer the call. Preemption can reduce the impact on the normal use of the audio output device.
  • FIG. 8 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device.
  • the method may include the following steps:
  • Step 810 the first terminal device is in the incoming call state, and the second terminal device is in the incoming call state.
  • the first terminal device receives the incoming call after the second terminal device receives the incoming call.
  • the method may further include: when the second terminal device receives an incoming call, the audio output device outputs locally stored second incoming call reminder information corresponding to the second terminal device; when the first terminal device receives an incoming call, the audio output device outputs the local The stored first call reminder information and the second call reminder information corresponding to the first terminal device are mixed and output, or, when the first terminal device receives an incoming call, the audio output device outputs the locally stored third call reminder information, and the third call reminder information
  • the reminding information is used to indicate that both the first terminal device and the second terminal device are in an incoming call state.
  • Step 820 if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the voice data transmitted by the first terminal device.
  • Step 830 if it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
  • step 820 may include: if the first answering instruction sent by the first terminal device is received, then determine to answer the incoming call corresponding to the first terminal device, and the audio output device outputs the voice data transmitted by the first terminal device; Wherein, the first answering instruction is generated after the first terminal device detects an answering operation.
  • Step 830 may include: if a second answering instruction sent by the second terminal device is received, determine to answer the incoming call corresponding to the second terminal device, and the audio output device outputs the voice data transmitted by the second terminal device; wherein, the second answering instruction It is generated after the second terminal device detects the answering operation.
  • step 820 and step 830 may include: in response to the detected answering operation, then determine the target terminal device corresponding to the answering operation according to preset rules, if the target terminal device is the first terminal device, the audio output device Outputting the voice data transmitted by the first terminal device, if the target terminal device is the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
  • the preset rule includes an operation mode of the answering operation, and/or call priorities respectively corresponding to the first terminal device and the second terminal device.
  • the audio output device When the audio output device detects an answering operation, it may be determined according to a preset rule whether the answering operation corresponds to answering an incoming call of the first terminal device or an incoming call of the second terminal device.
  • a preset rule For specific descriptions about the operation mode and call priority, reference may be made to the related descriptions in the foregoing embodiments, which will not be repeated here.
  • the method may further include: receiving a second incoming call request and a second voice transmission link establishment request sent by the second terminal device, rejecting the second voice transmission link; receiving the first The first incoming call request and the first voice transmission link establishment request sent by the terminal device reject the first voice transmission link establishment request.
  • Step 820 may include: if it is determined to answer the incoming call corresponding to the first incoming call request, establishing a first voice transmission link with the first terminal device, so as to perform voice data transmission with the first terminal device through the first voice transmission link, And output the voice data transmitted by the first terminal device.
  • Step 830 may include: if it is determined to answer the incoming call corresponding to the second incoming call request, establishing a second voice transmission link with the second terminal device, so as to perform voice data transmission with the second terminal device through the second voice transmission link, And output the voice data transmitted by the second terminal device.
  • the audio output device may output locally stored second incoming call reminder information corresponding to the second terminal device; After the incoming call request, the audio output device may mix and output the locally stored first incoming call reminder information and the second incoming call reminding information corresponding to the first terminal device, or output the third incoming call reminding information.
  • the audio output device when two terminal devices receive incoming calls at the same time period, after determining to answer the incoming call of one of the terminal devices, the audio output device will play the call voice of the terminal device that answers the call.
  • the terminal device can seize the audio output device faster and more directly, improve the efficiency of users to answer incoming calls by using the audio output device, and meet the actual needs of users in different scenarios.
  • Fig. 9 is a block diagram of a call control device in an embodiment, which is applied to the above-mentioned audio output device, and the audio output device establishes Bluetooth connections with at least two terminal devices.
  • the call control device 900 may include a request receiving module 910 , a request rejecting module 920 and a link establishing module 930 .
  • the request receiving module 910 is configured to receive the first incoming call request and the first voice transmission link establishment request sent by the first terminal device.
  • the request rejecting module 920 is configured to reject the first voice transmission link establishment request, and output first incoming call reminder information corresponding to the first incoming call request.
  • the request rejection module 920 is further configured not to respond to the first voice transmission link establishment request; or, to send a rejection instruction to the first terminal device, and the rejection instruction is used to indicate that the audio output device refuses to communicate with the first terminal device.
  • the device establishes a first voice transmission link.
  • the link establishment module 930 is configured to establish a first voice transmission link with the first terminal device when it is determined to answer the call corresponding to the first incoming call request, so as to transmit voice data through the first voice transmission link.
  • the link establishment module 930 is further configured to send a second voice transmission link establishment request to the first terminal device when it is determined to answer the call corresponding to the first incoming call request, so that the second terminal device 2.
  • a voice transmission link establishment request to establish a first voice transmission link with the audio output device, and transmit voice data through the first voice transmission link.
  • the first terminal device it is possible to prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, reduce the impact on the normal use of the audio output device, and better meet the actual needs of the user.
  • the request rejection module 920 is further configured to reject the first voice transmission link establishment request if the audio output device is currently in an occupied state, and output first call reminder information corresponding to the first call request.
  • the occupied state is a state in which the audio output device is transmitting audio data with the second terminal device
  • the second terminal device is any terminal device except the first terminal device among the at least two terminal devices.
  • the link establishment module 930 is further configured to, if the audio output device is not currently in an occupied state, respond to a first voice transmission link establishment request, and establish a first voice transmission link with the first terminal device; by The first voice transmission link receives the second ringing audio data sent by the first terminal device, and outputs the second ringing audio data; and is used to pass the first voice transmission link when it is determined to answer the call corresponding to the first incoming call request voice data transmission with the first terminal device.
  • the occupied state includes: a state link in which the audio output device and the second terminal device perform audio data transmission through the second voice transmission link.
  • the link establishment module 930 is further configured to disconnect the second voice transmission link and establish the first voice transmission link with the first terminal device when it is determined to answer the call corresponding to the first incoming call request.
  • the above-mentioned call control device 900 further includes an instruction sending module.
  • the instruction sending module is configured to send a control instruction to the second terminal device, where the control instruction is used to instruct the second terminal device to output the audio data generated by the second terminal device through the speaker.
  • the request receiving module 910 is further configured to receive the second incoming call request and the third voice transmission link establishment request sent by the second terminal device.
  • the link establishment module 930 is also configured to, if the audio output device is not in the occupied state, respond to the third voice transmission link establishment request, and establish a second voice transmission link with the second terminal device; The link receives the first ringing audio data sent by the second terminal device, and outputs the first ringing audio data.
  • the link establishment module 930 is further configured to perform voice data transmission with the first terminal device through the second voice transmission link when it is determined to answer the call corresponding to the second incoming call request.
  • the request receiving module 910 is further configured to receive the second incoming call request and the third voice transmission link establishment request sent by the second terminal device.
  • the request rejection module 920 is further configured to reject the third voice transmission link establishment request, and output second incoming call reminder information corresponding to the second incoming call request.
  • the link establishment module 930 is further configured to establish a second voice transmission link with the second terminal device when it is determined to answer the call corresponding to the second incoming call request, and communicate voice data with the first terminal device through the second voice transmission link. transmission.
  • the link establishment module 930 is further configured to, after establishing the first voice transmission link with the first terminal device, if it is determined that the first terminal device ends the call, and the second terminal device is still in an incoming call state or a call status, disconnect the first voice transmission link, and re-establish the second voice transmission link with the second terminal device.
  • the first terminal device will not preempt the audio output device during the incoming call, which can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, and reduce the need for the second terminal.
  • the impact of the device using the audio output device is more in line with the actual needs of the user.
  • the request receiving module 910 is also configured to receive the first call request and the first voice transmission link establishment request sent by the first terminal device, and receive the second call request and the third call request sent by the second terminal device. Voice transmission link establishment request.
  • the request rejection module 920 is further configured to reject the first voice transmission link establishment request and the third voice transmission link establishment request, and output the first incoming call reminder information corresponding to the first incoming call request and the second incoming call corresponding to the second incoming call request. Two call reminder information.
  • the above-mentioned call control apparatus 900 may further include an answer determination module.
  • the answering determination module is configured to determine to answer the call corresponding to the first incoming call request if the first answering operation of the first terminal device is detected at the audio output device end; or, if the answering operation is detected at the audio output device end, and The call priority of the first terminal device is higher than the call priority of the second terminal device, then determine to answer the call corresponding to the first incoming call request; or, if the first answering instruction sent by the first terminal device is received, determine to answer the call An incoming call requests a corresponding call, wherein the first answering instruction is sent by the first terminal device to the audio output device when an answering operation is detected.
  • the answering operation can be performed on the audio output device and/or the terminal device, and the ways of answering incoming calls are more flexible and diverse, meeting different needs of users in different scenarios.
  • the call control device 1000 may include a request receiving module 1010 , an occupation judging module 1020 , a rejecting module 1030 and a responding module 1040 .
  • the request receiving module 1010 is configured to receive the first incoming call request and the first voice transmission link establishment request sent by the first terminal device.
  • Occupancy judging module 1020 configured to judge whether the audio output device is in an occupied state; wherein, the occupied state is a state in which the audio output device and a second terminal device perform audio data transmission, and the second terminal device is at least two terminal devices except the first Any terminal equipment other than terminal equipment.
  • the rejecting module 1030 is configured to reject the first voice transmission link establishment request if the audio output device is in an occupied state, and output the first incoming call reminder information corresponding to the first incoming call request, and the corresponding first incoming call request when it is determined to answer the first incoming call request.
  • establish a first voice transmission link with the first terminal device so as to transmit voice data through the first voice transmission link.
  • the response module 1040 is configured to, if the audio output device is not in the occupied state, respond to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, and receive the first terminal device through the first voice transmission link.
  • the device sends the second ringing audio data, outputs the second ringing audio data, and transmits voice data with the first terminal device through the first voice transmission link when it is determined to answer the call corresponding to the first incoming call request.
  • the first terminal device if the audio output device is in the occupied state, the first terminal device will reject the first voice transmission link establishment request sent by the first terminal device during the incoming call phase, and the first terminal device will not request the audio output device during the incoming call phase. Preemption can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, and can reduce the impact on the normal use of the audio output device.
  • Fig. 11 is a block diagram of a call control device in another embodiment, which is applied to an audio output device, and the audio output device at least respectively establishes a Bluetooth connection with a first terminal device and a second terminal device.
  • the call control device 1100 may include an output module 1110 .
  • the output module 1110 is configured to output voice data transmitted by the first terminal device if it is determined to answer the incoming call corresponding to the first terminal device when the first terminal device is in the incoming call state and the second terminal device is in the incoming call state, If it is determined to answer the incoming call corresponding to the second terminal device, the voice data transmitted by the second terminal device is output.
  • the first terminal device receives the incoming call after the second terminal device receives the incoming call.
  • the output module 1110 is further configured to output locally stored second incoming call reminder information corresponding to the second terminal device when the second terminal device receives an incoming call;
  • the first call reminder information and the second call reminder information corresponding to the first terminal device are mixed and output, or, when the first terminal device receives an incoming call, output the locally stored third call reminder information, and the third call reminder information is used to represent Both the first terminal device and the second terminal device are in an incoming call state.
  • the call control device 1100 may further include an answer determination module in addition to the output module 1110 .
  • the answering determination module is configured to determine to answer the incoming call corresponding to the first terminal device if the first answering instruction sent by the first terminal device is received, and the audio output device outputs the voice data transmitted by the first terminal device; wherein, the first answering The instruction is generated after the first terminal device detects the answering operation; and if the second answering instruction sent by the second terminal device is received, it is determined to answer the incoming call corresponding to the second terminal device, and the audio output device outputs the second terminal device transmission voice data; wherein, the second answering instruction is generated after the second terminal device detects the answering operation.
  • the answering determination module is further configured to, in response to the detected answering operation, determine the target terminal device corresponding to the answering operation according to preset rules.
  • the preset rule includes an operation mode of the answering operation, and/or call priorities respectively corresponding to the first terminal device and the second terminal device.
  • the output module 1110 is further configured to output voice data transmitted by the first terminal device if the target terminal device is the first terminal device, and output voice data transmitted by the second terminal device if the target terminal device is the second terminal device.
  • the call control device 1100 may further include a request receiving module and a request rejecting module.
  • the request receiving module is configured to receive the second incoming call request and the second voice transmission link establishment request sent by the second terminal device.
  • the request rejecting module is configured to reject the request for establishing the second voice transmission link.
  • the request receiving module is also configured to receive the first call request and the first voice transmission link establishment request sent by the first terminal device.
  • the request rejecting module is further configured to reject the first voice transmission link establishment request.
  • the output module 1110 is further configured to, if it is determined to answer the incoming call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to perform voice data transmission with the first terminal device through the first voice transmission link , and output the voice data transmitted by the first terminal equipment;
  • the terminal device transmits the voice data, and outputs the voice data transmitted by the second terminal device.
  • the audio output device when two terminal devices receive incoming calls at the same time period, after determining to answer the incoming call of one of the terminal devices, the audio output device will play the call voice of the terminal device that answers the call.
  • the terminal device can seize the audio output device faster and more directly, improve the efficiency of users to answer incoming calls by using the audio output device, and meet the actual needs of users in different scenarios.
  • Fig. 12 is a structural block diagram of an electronic device in one embodiment.
  • an electronic device 1200 may include one or more of the following components: a processor 1210, a memory 1220 coupled to the processor 1210, wherein the memory 1220 may store one or more computer programs, one or more computer programs It may be configured to implement the bluetooth-based control method applied to the first electronic device as described in the above embodiments when executed by one or more processors 1210 .
  • Processor 1210 may include one or more processing cores.
  • the processor 1210 uses various interfaces and circuits to connect various parts of the entire electronic device 1200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1220, and calls data stored in the memory 1220 to execute Various functions of the electronic device 1200 and processing data.
  • the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 1210, but implemented by a communication chip alone.
  • the memory 1220 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory, ROM).
  • the memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • the memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like.
  • the storage data area can also store data created by the electronic device 1200 during use, and the like.
  • the electronic device 1200 can also include a Bluetooth module, which can be used to provide a Bluetooth communication function, establish a Bluetooth connection with other electronic devices, and perform Bluetooth data transmission.
  • the bluetooth module can support one or more bluetooth protocols, such as classic bluetooth, BLE, etc.), but not limited thereto, and can change with the development of bluetooth protocols.
  • the processor 1210 is configured to receive the first incoming call request and the first voice transmission link establishment request sent by the first terminal device through the Bluetooth module, instruct the Bluetooth module to reject the first voice transmission link establishment request, and Output the first incoming call reminder information corresponding to the first incoming call request through the loudspeaker; when it is determined to answer the call corresponding to the first incoming call request, instruct the bluetooth module to establish a first voice transmission link with the first terminal device, so that the bluetooth module passes through the call The first voice transmission link transmits voice data.
  • the electronic device 1200 may include more or less structural elements than those in the above structural block diagram, for example, including a power module, physical keys, sensors, etc., and there is no limitation here.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the Bluetooth-based control method applied to the first electronic device as described in the above-mentioned embodiments is implemented.
  • the embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented.
  • a bluetooth-based control method for a first electronic device is disclosed.
  • an electronic device the electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the processor realizes the above described in each embodiment.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the Bluetooth-based control method applied to the second electronic device as described in the above-mentioned embodiments is implemented.
  • the embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented.
  • a Bluetooth-based control method for a second electronic device is disclosed.
  • the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
  • Non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM can take many forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double data rate) Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Synchlink DRAM, SLDRAM), memory bus direct RAM (Rambus DRAM, RDRAM) and direct memory bus dynamic RAM (Direct Rambus DRAM) , DRDRAM).
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, located in one place, or distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

Abstract

Disclosed in the embodiments of the present application are a call control method and apparatus, and an electronic device and a computer-readable storage medium. The method is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices. The method comprises: receiving a first incoming call request and a first voice transmission link establishment request, which are sent by a first terminal device; rejecting the first voice transmission link establishment request, and outputting first incoming call reminding information corresponding to the first incoming call request; and when it is determined that a call corresponding to the first incoming call request is answered, establishing a first voice transmission link with the first terminal device, so as to transmit voice data by means of the first voice transmission link.

Description

通话控制方法、装置、电子设备及计算机可读存储介质Call control method, device, electronic device, and computer-readable storage medium
本申请要求于2021年08月28日提交、申请号为202111122348.4、发明名称为“通话控制方法、This application is required to be submitted on August 28, 2021, the application number is 202111122348.4, and the invention name is "call control method, 装置、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请device, electronic equipment and computer-readable storage medium", the entire contents of which are incorporated in this application by reference 中。middle.
技术领域technical field
本申请涉及通信技术领域,具体涉及一种通话控制方法、装置、电子设备及计算机可读存储介质。The present application relates to the technical field of communications, and in particular to a call control method, device, electronic equipment, and computer-readable storage medium.
背景技术Background technique
蓝牙是一种支持设备短距离通信的无线电技术,能够实现在多个支持蓝牙传输的电子设备之间的无线信息交换,使得电子设备之间的数据传输更加迅速和高效。目前,市面上出现了许多能够支持同时与多个终端设备建立蓝牙连接的电子设备,在电子设备同时与多个终端设备连接时,多个终端设备之间会出现因为业务需求抢占该电子设备的情况,会对该电子设备的正常业务使用产生影响。Bluetooth is a radio technology that supports short-distance communication between devices. It can realize wireless information exchange between multiple electronic devices that support Bluetooth transmission, making data transmission between electronic devices faster and more efficient. At present, there are many electronic devices on the market that can support the establishment of Bluetooth connections with multiple terminal devices at the same time. The situation will affect the normal business use of the electronic equipment.
发明内容Contents of the invention
本申请实施例公开了一种通话控制方法、装置、电子设备及计算机可读存储介质。The embodiment of the application discloses a call control method, device, electronic equipment and computer-readable storage medium.
本申请实施例公开了一种通话控制方法,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述方法包括:接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息;在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路传输语音数据。The embodiment of the present application discloses a call control method, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices. The method includes: receiving a first call request sent by the first terminal device and The first voice transmission link establishment request; rejecting the first voice transmission link establishment request, and outputting the first incoming call reminder information corresponding to the first incoming call request; determining to answer the call corresponding to the first incoming call request , establishing a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
本申请实施例公开了一种通话控制方法,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述方法包括:接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;判断所述音频输出设备是否处于占用状态;其中,所述占用状态为所述音频输出设备与第二终端设备进行音频数据传输的状态,所述第二终端设备为所述至少两个终端设备中除所述第一终端设备以外的任一终端设备;若是,则拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息,以及在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路传输语音数据;和/或,若否,则响应所述第一语音传输链路建立请求,与所述第一终端设备建立第一语音传输链路,通过所述第一语音传输链路接收所述第一终端设备发送的第二响铃音频数据,并输出所述第二响铃音频数据,以及在确定接听所述第一来电请求对应的通话时,通过所述第一语音传输链路与所述第一终端设备进行语音数据传输。The embodiment of the present application discloses a call control method, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices. The method includes: receiving a first call request sent by the first terminal device and The first voice transmission link establishment request; judging whether the audio output device is in an occupied state; wherein, the occupied state is a state in which the audio output device and a second terminal device perform audio data transmission, and the second terminal device It is any terminal device except the first terminal device among the at least two terminal devices; if so, rejecting the first voice transmission link establishment request, and outputting the first call corresponding to the first call request An incoming call reminder message, and when it is determined to answer the call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link; and /or, if not, in response to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, and receive the first terminal device through the first voice transmission link Send the second ringing audio data, and output the second ringing audio data, and when it is determined to answer the call corresponding to the first incoming call request, communicate with the first terminal through the first voice transmission link The device performs voice data transmission.
本申请实施例公开了一种通话控制方法,应用于音频输出设备,所述音频输出设备至少分别与第一终端设备及第二终端设备建立蓝牙连接,所述方法包括:在所述第一终端设备处于来电状态,且所述第二终端设备处于来电状态的情况下,若确定接听所述第一终端设备对应的来电通话,则所述音频输出设备输出所述第一终端设备传输的语音数据,若确定接听所述第二终端设备对应的来电通话,则所述音频输出设备输出所述第二终端设备传输的语音数据。The embodiment of the present application discloses a call control method, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least a first terminal device and a second terminal device respectively, and the method includes: When the device is in the incoming call state and the second terminal device is in the incoming call state, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the voice data transmitted by the first terminal device If it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
本申请实施例公开了一种通话控制装置,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述装置包括:请求接收模块,用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;请求拒绝模块,用于拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息;链路建立模块,用于在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路传输语音数据。The embodiment of the present application discloses a call control device, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices. The device includes: a request receiving module, configured to receive a request sent by the first terminal device. The first incoming call request and the first voice transmission link establishment request; the request rejection module is configured to reject the first voice transmission link establishment request, and output the first incoming call reminder information corresponding to the first incoming call request; A link establishing module, configured to establish a first voice transmission link with the first terminal device when it is determined to answer the call corresponding to the first incoming call request, so as to transmit voice data through the first voice transmission link.
本申请实施例公开了一种通话控制装置,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述装置包括:请求接收模块,用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;占用判断模块,用于判断所述音频输出设备是否处于占用状态;其中,所述占用状态为所述音频输出设备与第二终端设备进行音频数据传输的状态,所述第二终端设备为所述至少两个终端设备中除所述第一终端设备以外的任一终端设备;拒绝模块,用于若所述音频输出设备处于占用状态,则拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息,以及在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过 所述第一语音传输链路传输语音数据;响应模块,用于若所述音频输出设备不处于占用状态,则响应所述第一语音传输链路建立请求,与所述第一终端设备建立第一语音传输链路,通过所述第一语音传输链路接收所述第一终端设备发送的第二响铃音频数据,并输出所述第二响铃音频数据,以及在确定接听所述第一来电请求对应的通话时,通过所述第一语音传输链路与所述第一终端设备进行语音数据传输。The embodiment of the present application discloses a call control device, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices. The device includes: a request receiving module, configured to receive a request sent by the first terminal device. The first incoming call request and the first voice transmission link establishment request; the occupancy judgment module is used to judge whether the audio output device is in an occupied state; wherein, the occupied state is that the audio output device communicates with the second terminal device The state of audio data transmission, the second terminal device is any terminal device except the first terminal device among the at least two terminal devices; a rejecting module, configured to, if the audio output device is in an occupied state, Then reject the first voice transmission link establishment request, and output the first call reminder information corresponding to the first call request, and when it is determined to answer the call corresponding to the first call request, communicate with the first call request The terminal device establishes a first voice transmission link to transmit voice data through the first voice transmission link; a response module, configured to respond to the first voice transmission link if the audio output device is not in an occupied state Establishing a request, establishing a first voice transmission link with the first terminal device, receiving the second ringing audio data sent by the first terminal device through the first voice transmission link, and outputting the second ringing audio data Ring audio data, and when it is determined to answer the call corresponding to the first incoming call request, perform voice data transmission with the first terminal device through the first voice transmission link.
本申请实施例公开了一种通话控制装置,应用于音频输出设备,所述音频输出设备至少分别与第一终端设备及第二终端设备建立蓝牙连接,所述装置包括:输出模块,用于在所述第一终端设备处于来电状态,且所述第二终端设备处于来电状态的情况下,若确定接听所述第一终端设备对应的来电通话,则所述音频输出设备输出所述第一终端设备传输的语音数据,若确定接听所述第二终端设备对应的来电通话,则所述音频输出设备输出所述第二终端设备传输的语音数据。The embodiment of the present application discloses a call control device, which is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least a first terminal device and a second terminal device respectively, and the device includes: an output module configured to When the first terminal device is in the incoming call state and the second terminal device is in the incoming call state, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the first terminal device The voice data transmitted by the device, if it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
本申请实施例公开了一种电子设备,包括存储有可执行程序代码的存储器,以及与所述存储器耦合的处理器;其中,所述处理器调用所述存储器中存储的所述可执行程序代码,使得电子设备执行如上所述的方法。The embodiment of the present application discloses an electronic device, including a memory storing executable program codes, and a processor coupled to the memory; wherein, the processor invokes the executable program codes stored in the memory , so that the electronic device executes the above-mentioned method.
本申请实施例公开了一种计算机可读存储介质,其存储有计算机程序,所述计算机程序被处理器执行时使得电子设备实现如上所述的方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the electronic device implements the above method.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and beneficial effects of the present application will appear from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为一个实施例中通话控制方法的应用场景图;Fig. 1 is an application scenario diagram of a call control method in an embodiment;
图2为一个实施例中通话控制方法的流程图;Fig. 2 is a flowchart of a call control method in an embodiment;
图3为另一个实施例中通话控制方法的流程图;Fig. 3 is a flowchart of a call control method in another embodiment;
图4A为一个实施例中两个终端设备在同一时间段接收到来电的时序流程图;FIG. 4A is a sequence flow chart of two terminal devices receiving incoming calls at the same time period in one embodiment;
图4B为一个实施例中在前一个终端设备处于通话过程中,另一终端设备接收到来电的时序流程图;FIG. 4B is a sequence flow chart of another terminal device receiving an incoming call while the previous terminal device is in a call in one embodiment;
图4C为另一个实施例中在前一个终端设备处于通话过程中,另一终端设备接收到来电的时序流程图;FIG. 4C is a sequence flow chart of another terminal device receiving an incoming call while the previous terminal device is in a call in another embodiment;
图5为另一个实施例中通话控制方法的流程图;Fig. 5 is a flowchart of a call control method in another embodiment;
图6为另一个实施例中两个终端设备在同一时间段接收到来电的时序流程图;FIG. 6 is a sequence flow chart of two terminal devices receiving incoming calls at the same time period in another embodiment;
图7为另一个实施例中通话控制方法的流程图;Fig. 7 is a flowchart of a call control method in another embodiment;
图8为另一个实施例中通话控制方法的流程图;FIG. 8 is a flowchart of a call control method in another embodiment;
图9为一个实施例中通话控制装置的框图;Fig. 9 is a block diagram of a call control device in an embodiment;
图10为另一个实施例中通话控制装置的框图;Fig. 10 is a block diagram of a call control device in another embodiment;
图11为另一个实施例中通话控制装置的框图;Fig. 11 is a block diagram of a call control device in another embodiment;
图12为一个实施例中电子设备的结构框图。Fig. 12 is a structural block diagram of an electronic device in one embodiment.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some, not all, embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present application and the drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一终端设备称为第二终端设备,且类似地,可将第二终端设备称为第一终端设备。第一终端设备和第二终端设备两者都是终端设备,但其不是同一终端设备。另外,需要说明的是,本申请实施例中所使用的术语“多个”等指的是两个或两个以上。It can be understood that the terms "first", "second" and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first terminal device could be termed a second terminal device, and, similarly, a second terminal device could be termed a first terminal device, without departing from the scope of the present application. Both the first terminal device and the second terminal device are terminal devices, but they are not the same terminal device. In addition, it should be noted that the term "plurality" and the like used in the embodiments of the present application refer to two or more.
图1为一个实施例中通话控制方法的应用场景图。如图1所示,音频输出设备10可与至少两个终端设备20建立蓝牙连接,该音频输出设备10可以是具备蓝牙通信功能及音频播放功能的各类电子设备,例如,蓝牙耳机、蓝牙音箱,也可以是智能手表等终端设备,进一步地,该音频输出设备10可以是TWS(True Wireless Stereo,真无线立体声)耳机。终端设备20可包括但不限于手机、智能可穿戴设备、车载终端、平板电脑、PC(Personal Computer,个人电脑)、PDA(Personal Digital Assistant,个人数字助理)等。进一步地,终端设备20可以是能够接入到无线网络并进行通信业务的设备,终端设备20中可设置有SIM(Subscriber Identification Module,用户身份识别模块)卡,并通过该SIM卡接入第四代(4th generation,4G)、第五代(5th generation,5G)等无线网络,实现接听来电、去电呼叫等通话业务。Fig. 1 is an application scene diagram of a call control method in an embodiment. As shown in Figure 1, the audio output device 10 can establish Bluetooth connections with at least two terminal devices 20, and the audio output device 10 can be various electronic devices with Bluetooth communication functions and audio playback functions, such as Bluetooth earphones, Bluetooth speakers , can also be a terminal device such as a smart watch, and further, the audio output device 10 can be a TWS (True Wireless Stereo, true wireless stereo) earphone. The terminal device 20 may include, but not limited to, a mobile phone, a smart wearable device, a vehicle terminal, a tablet computer, a PC (Personal Computer, personal computer), a PDA (Personal Digital Assistant, personal digital assistant) and the like. Further, the terminal device 20 may be a device capable of accessing a wireless network and performing communication services. The terminal device 20 may be provided with a SIM (Subscriber Identification Module, Subscriber Identification Module) card, and access the fourth terminal through the SIM card. Generation (4th generation, 4G), fifth generation (5th generation, 5G) and other wireless networks, to achieve call services such as answering incoming calls and outgoing calls.
上述的蓝牙连接可以是基于经典蓝牙协议(例如,由蓝牙技术联盟Bluetooth SIG制定的蓝牙4.0等版本的协议)实现的,也可以基于蓝牙低功耗(Bluetooth Low Energy,BLE)协议(例如蓝牙5.0等版本的协议)实现的,在此不作限定,可随着蓝牙协议的发展而变化。The above-mentioned bluetooth connection can be realized based on the classic bluetooth protocol (for example, bluetooth 4.0 and other versions established by the bluetooth technology alliance bluetooth and other versions of the protocol) are implemented, and are not limited here, and may change with the development of the Bluetooth protocol.
在相关的技术中,由于终端设备为了在用户使用音频输出设备的过程中,如果终端设备接收到来电,用户可以及时听到的终端设备设置的来电铃声,如用户在使用耳机的过程中依然可以收听到手机的来电铃声等,从而丰富用户的使用体验。因此,许多终端设备设置在来电时就会与音频输出设备建立语音传输链路,发明人发现,这种设置使得音频输出设备在连接多个终端设备(如手机)时会引起其他的问题,例如,在音频输出设备10与至少两个终端设备20建立蓝牙连接的情况下,若音频输出设备10当前正与终端设备A进行音频数据传输,也即终端设备A当前正使用音频输出设备10播放音频数据,此时终端设备B接收到来电呼叫,终端设备B会直接抢占音频输出设备10,挤占掉终端设备A,如果用户并没有接听终端设备B的来电的意愿,会对终端设备A正常使用音频输出设备10产生影响。在本申请实施例中,在音频输出设备20接收到第一终端设备发送的第一来电请求及第一语音传输链路建立请求时,可拒绝该第一语音传输链路建立请求,并输出第一来电请求对应的第一来电提醒信息。音频输出设备20在确定接听第一来电请求对应的通话时,才与第一终端设备建立第一语音传输链路,以通过第一语音传输链路传输语音数据。对于第一终端设备在来电阶段时发送的第一语音传输链路建立请求,音频输出设备会直接拒绝,因此第一终端设备在来电阶段不会对音频输出设备进行抢占,能够避免第一终端设备在用户没有接听通话意愿的情况下对音频输出设备进行抢占,减少对音频输出设备的正常使用的影响,更加贴合用户的实际需求。In the related technology, because the terminal device is in the process of using the audio output device, if the terminal device receives an incoming call, the user can hear the ringtone set by the terminal device in time. Listen to the ringtone of the mobile phone, etc., thereby enriching the user experience. Therefore, many terminal devices are set to establish a voice transmission link with the audio output device when an incoming call is received. The inventors have found that this setting causes other problems when the audio output device is connected to multiple terminal devices (such as mobile phones), such as , in the case where the audio output device 10 establishes a Bluetooth connection with at least two terminal devices 20, if the audio output device 10 is currently transmitting audio data with the terminal device A, that is, the terminal device A is currently using the audio output device 10 to play audio At this time, terminal device B receives an incoming call, terminal device B will directly seize the audio output device 10, crowding out terminal device A, if the user is not willing to answer the incoming call of terminal device B, terminal device A will use the audio The output device 10 produces an effect. In this embodiment of the application, when the audio output device 20 receives the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, it may reject the first voice transmission link establishment request, and output the first voice transmission link establishment request. The first incoming call reminder information corresponding to an incoming call request. When the audio output device 20 determines to answer the call corresponding to the first call request, it establishes the first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link. For the first voice transmission link establishment request sent by the first terminal device during the incoming call phase, the audio output device will directly reject it, so the first terminal device will not preempt the audio output device during the incoming call phase, which can prevent the first terminal device from The audio output device is preempted when the user is not willing to answer the call, reducing the impact on the normal use of the audio output device, and more meeting the actual needs of the user.
图2为一个实施例中通话控制方法的流程图,可应用于上述的音频输出设备,该方法可包括以下步骤:Fig. 2 is a flowchart of a call control method in an embodiment, which can be applied to the above-mentioned audio output device, and the method may include the following steps:
步骤210,接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求。 Step 210, receiving a first call request and a first voice transmission link establishment request sent by the first terminal device.
音频输出设备支持蓝牙“一拖多”功能,能够支持同时与至少两个终端设备建立蓝牙连接,也即音频输出设备能够同时与N个终端设备保持蓝牙连接,该N为大于或等于2的整数,例如2、3、4等,但不限于此。The audio output device supports the Bluetooth "one-to-many" function, and can support the establishment of Bluetooth connections with at least two terminal devices at the same time, that is, the audio output device can maintain Bluetooth connections with N terminal devices at the same time, where N is an integer greater than or equal to 2 , such as 2, 3, 4, etc., but not limited thereto.
音频输出设备可与至少两个终端设备建立蓝牙连接,该至少两个终端设备可包括第一终端设备,第一终端设备可接入到4G、5G等无线网络并实现通话功能,该通话功能可包括但不限于接听来电,去电呼叫等功能。在第一终端设备进行通话时,音频输出设备可通过与第一终端设备之间的蓝牙连接,与第一终端设备进行语音数据传输,以实现在音频输出设备上进行通话的功能。可选地,音频输出设备可基于蓝牙的通话协议实现通话功能,该通话协议可包括但不限于HFP(Hands-free Profile)协议等,其中,HFP协议是一种用于蓝牙设备之间进行通话控制的蓝牙协议。The audio output device can establish a Bluetooth connection with at least two terminal devices. The at least two terminal devices can include a first terminal device. The first terminal device can be connected to a wireless network such as 4G, 5G and realize a call function. The call function can be Including but not limited to answering incoming calls, outgoing calls and other functions. When the first terminal device is talking, the audio output device can transmit voice data with the first terminal device through the Bluetooth connection to realize the function of talking on the audio output device. Optionally, the audio output device can implement a call function based on a bluetooth call protocol, which can include but not limited to the HFP (Hands-free Profile) protocol, etc., wherein the HFP protocol is a protocol for calling between bluetooth devices. Controlled Bluetooth protocol.
在本申请实施例中,第一终端设备可为支持蓝牙带内铃声功能的终端设备,蓝牙带内铃声功能指的是在接收到来电呼叫时触发与音频输出设备建立语音传输链路,以通过该语音传输链路向音频输出设备传输响铃音频的功能。该语音传输链路可包括同步定向链接(Synchronous Connection Oritened,SCO)链路等能够满足高时效性的物理链路。In this embodiment of the application, the first terminal device may be a terminal device that supports the Bluetooth in-band ring function. The Bluetooth in-band ring function refers to triggering the establishment of a voice transmission link with the audio output device when receiving an incoming call to pass The voice transmission link transmits the function of ringing audio to the audio output device. The voice transmission link may include a physical link capable of meeting high timeliness, such as a Synchronous Connection Oritened (SCO) link.
在第一终端设备接收到来电时,会向音频输出设备发送第一来电请求。其中,第一来电请求可用于通知音频输出设备有来电。例如,第一来电请求可包括AT指令“+CIEV:(callsetup=1)”,该AT指令可于表示电话建立过程,即通知音频输出设备有来电。由于第一终端设备一般默认为支持蓝牙带内铃声功能的终端设备,在第一终端设备接收到来电时,第一终端设备会向音频输出设备发送第一来电请求,还会向音频输出设备发送第一语音传输链路建立请求,该第一语音传输链路建立请求用于请求与音频输出设备建立第一语音传输链路,可选地,该第一语音传输链路可以是SCO链路。When the first terminal device receives an incoming call, it will send a first incoming call request to the audio output device. Wherein, the first incoming call request may be used to notify the audio output device that there is an incoming call. For example, the first incoming call request may include the AT command "+CIEV: (callsetup=1)", and the AT command may indicate the call setup process, that is, notify the audio output device that there is an incoming call. Since the first terminal device is generally a terminal device that supports the Bluetooth in-band ringtone function by default, when the first terminal device receives an incoming call, the first terminal device will send the first call request to the audio output device, and will also send the first call request to the audio output device. A first voice transmission link establishment request, where the first voice transmission link establishment request is used to request to establish a first voice transmission link with an audio output device. Optionally, the first voice transmission link may be an SCO link.
可以理解的,在第一终端设备接收到来电时,第一终端设备可以在向音频输出设备发送第一来电请 求后,再向音频输出设备发送第一语音传输链路建立请求。当然,根据第一终端设备的设置方式也可以采用其他顺序发送第一来电请求及第一语音传输链路建立请求,甚至同时发送。It can be understood that when the first terminal device receives an incoming call, the first terminal device may send the first voice transmission link establishment request to the audio output device after sending the first call request to the audio output device. Of course, according to the configuration of the first terminal device, the first incoming call request and the first voice transmission link establishment request may also be sent in other orders, or even sent at the same time.
步骤220,拒绝第一语音传输链路建立请求,并输出与第一来电请求对应的第一来电提醒信息。 Step 220, rejecting the first voice transmission link establishment request, and outputting first incoming call reminder information corresponding to the first incoming call request.
在相关的技术中,由于第一终端设备为支持蓝牙带内铃声功能的终端设备,在第一终端设备接收到来电,就会向音频输出设备发送第一语音传输链路建立请求,若音频输出设备与该第一终端设备成功建立第一语音传输链路,则第一终端设备会通过该第一语音传输链路将响铃音频数据传输出音频输出设备,音频输出设备播放该响铃音频数据。若在此之前音频输出设备正在与第二终端设备进行音频数据传输,也即音频输出设备正在播放第二终端设备传输的音频数据,则第一终端设备会在来电阶段直接抢占音频输出设备,对第二终端设备使用音频输出设备产生影响。In the related technology, since the first terminal device is a terminal device supporting the Bluetooth in-band ringtone function, when the first terminal device receives an incoming call, it will send a first voice transmission link establishment request to the audio output device. If the device successfully establishes the first voice transmission link with the first terminal device, the first terminal device will transmit the ringing audio data to the audio output device through the first voice transmission link, and the audio output device will play the ringing audio data . If the audio output device is transmitting audio data with the second terminal device before this, that is, the audio output device is playing the audio data transmitted by the second terminal device, the first terminal device will directly seize the audio output device during the incoming call phase. The second end device uses the audio output device to effect.
在本申请实施例中,在第一终端设备处于来电状态(即接收到来电但还未接听的状态)时,音频输出设备可拒绝第一终端设备发送的第一语音传输链路建立请求,不与第一终端设备建立第一语音传输链路,第一终端设备无法对音频输出设备进行抢占。因此,若在此之前音频输出设备正在与第二终端设备进行音频数据传输,也不会对第二终端设备使用音频输出设备产生影响。In this embodiment of the present application, when the first terminal device is in the incoming call state (that is, the state of receiving an incoming call but not yet answering it), the audio output device may reject the first voice transmission link establishment request sent by the first terminal device. The first voice transmission link is established with the first terminal device, and the first terminal device cannot preempt the audio output device. Therefore, if the audio output device is transmitting audio data with the second terminal device before this, it will not affect the use of the audio output device by the second terminal device.
在一些实施例中,音频输出设备拒绝第一语音传输链路建立请求,可包括不对该第一语音传输链路建立请求进行响应,或,向第一终端设备发送拒绝指令,该拒绝指令用于表征音频输出设备拒绝与第一终端设备建立第一语音传输链路。In some embodiments, the audio output device rejects the first voice transmission link establishment request, which may include not responding to the first voice transmission link establishment request, or sends a rejection instruction to the first terminal device, and the rejection instruction is used to It indicates that the audio output device refuses to establish the first voice transmission link with the first terminal device.
其中,音频输出设备不对该第一语音传输链路建立请求进行响应,可指的是音频输出设备在接收到第一语音传输链路建立请求后,不向第一终端设备发送任何反馈信号。第一终端设备在向音频输出设备发送第一语音传输链路建立请求后,若在预设时音段内未接收到反馈信号,说明音频输出设备拒绝该第一语音传输链路建立请求,则确定第一语音传输链路建立失败。Wherein, the audio output device does not respond to the first voice transmission link establishment request may mean that the audio output device does not send any feedback signal to the first terminal device after receiving the first voice transmission link establishment request. After the first terminal device sends the first voice transmission link establishment request to the audio output device, if no feedback signal is received within the preset time period, it means that the audio output device rejects the first voice transmission link establishment request, then It is determined that the establishment of the first voice transmission link fails.
可选地,上述的拒绝指令可包括错误指令,在第一终端设备的来电阶段,音频输出设备接收到第一语音传输链路建立请求后,可向第一终端设备返回错误指令,第一终端设备接收到该错误指令,可确定第一语音传输链路建立失败。Optionally, the above-mentioned rejection instruction may include an error instruction. During the incoming call phase of the first terminal device, the audio output device may return an error instruction to the first terminal device after receiving the first voice transmission link establishment request, and the first terminal device After receiving the error instruction, the device may determine that the establishment of the first voice transmission link fails.
由于在第一终端设备的来电阶段,音频输出设备不会与第一终端设备建立第一语音传输链路,因此,第一终端设备的响铃音频数据不会传输到音频输出设备。为了提醒用户第一终端设备接收到来电,音频输出设备可在接收到第一终端设备发送的第一来电请求后,输出与该第一来电请求对应的第一来电提醒信息,第一来电提醒信息可用于提醒用户第一终端设备接收到来电。第一来电提醒信息的表现方式可包括但不限于语音提醒、震动提醒、显示提示等中的一种或多种。可选地,该第一来电提醒信息可以是音频输出设备本地存储的提醒信息,例如,可以是本地存储的提示音,或是根据本地存储的震动参数进行震动等,但不限于此。Since the audio output device will not establish the first voice transmission link with the first terminal device during the incoming call phase of the first terminal device, the ringing audio data of the first terminal device will not be transmitted to the audio output device. In order to remind the user that the first terminal device receives an incoming call, the audio output device may, after receiving the first incoming call request sent by the first terminal device, output first incoming call reminder information corresponding to the first incoming call request, the first incoming call reminder information It can be used to remind the user that the first terminal device receives an incoming call. The presentation manner of the first incoming call reminder information may include but not limited to one or more of voice reminder, vibration reminder, display reminder and the like. Optionally, the first incoming call reminder information may be reminder information locally stored on the audio output device, for example, it may be a locally stored prompt tone, or vibrate according to locally stored vibration parameters, etc., but is not limited thereto.
需要说明的是,音频输出设备可以在拒绝第一语音传输链路建立请求的同时,输出第一来电提醒信息,也可以是在拒绝第一语音传输链路建立请求之前或之后,输出第一来电提醒信息,二者之间的先后顺序在此不作限定。It should be noted that the audio output device may output the first incoming call reminder message while rejecting the first voice transmission link establishment request, or may output the first incoming call reminder before or after rejecting the first voice transmission link establishment request. Reminder information, the sequence between the two is not limited here.
步骤230,在确定接听第一来电请求对应的通话时,与第一终端设备建立第一语音传输链路,以通过第一语音传输链路传输语音数据。 Step 230, when it is determined to answer the call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
音频输出设备在输出第一来电提醒信息提醒用户之后,用户可以通过音频输出设备或者在第一终端设备上接听第一终端设备的来电通话。在确定接听第一来电请求对应的通话后,音频输出设备可与第一终端设备建立第一语音传输链路,并通过该第一语音传输链路与第一终端设备进行语音数据传输。音频输出设备可通过扬声器等播放第一终端设备传输的语音数据,同时可通过麦克风等声音采集装置采集用户的语音数据,并通过该第一语音传输链路将麦克风等声音采集装置采集的语音数据传输至第一终端设备。After the audio output device outputs the first incoming call reminder information to remind the user, the user can answer the incoming call of the first terminal device through the audio output device or on the first terminal device. After determining to answer the call corresponding to the first incoming call request, the audio output device may establish a first voice transmission link with the first terminal device, and perform voice data transmission with the first terminal device through the first voice transmission link. The audio output device can play the voice data transmitted by the first terminal equipment through a speaker, etc., and at the same time can collect the user's voice data through a microphone and other sound collection devices, and transmit the voice data collected by the microphone and other sound collection devices through the first voice transmission link. transmitted to the first terminal device.
在一些实施例中,在确定接听第一来电请求对应的通话时,第一终端设备可向音频输出设备发送第一接听指令,该第一接听指令可用于表征第一终端设备接听来电通话,从来电状态切换为通话状态(指正在进行通话的状态)。音频输出设备在接收到该第一接听指令后,可向第一终端设备发送第二语音传输链路建立请求,以使第二终端设备根据第二语音传输链路建立请求与音频输出设备建立第一语音传输链路。由音频输出设备发起与第一终端设备之间的第一语音传输链路的建立,既能够在音频输出设备上实现通话功能,又不需要对支持蓝牙带内铃声功能的第一终端设备进行设置或改动,提高音频输出设备的兼容性及适配性。In some embodiments, when it is determined to answer the call corresponding to the first incoming call request, the first terminal device may send a first answering instruction to the audio output device, and the first answering instruction may be used to indicate that the first terminal device answers the incoming call, from The incoming call state is switched to the call state (referring to the state of the ongoing call). After receiving the first answering instruction, the audio output device may send a second voice transmission link establishment request to the first terminal device, so that the second terminal device establishes a second voice transmission link establishment request with the audio output device according to the second voice transmission link establishment request. A voice transmission link. The establishment of the first voice transmission link between the audio output device and the first terminal device is initiated by the audio output device, which can realize the call function on the audio output device, and does not need to set the first terminal device that supports the Bluetooth in-band ringtone function Or change to improve the compatibility and adaptability of audio output devices.
在本申请实施例中,对于第一终端设备在来电阶段时发送的第一语音传输链路建立请求,音频输出设备会直接拒绝,因此第一终端设备在来电阶段不会对音频输出设备进行抢占,仅在确定接听第一来电 请求对应的通话时,才与第一终端设备建立第一语音传输链路,能够避免第一终端设备在用户没有接听通话意愿的情况下对音频输出设备进行抢占,减少对音频输出设备的正常使用的影响,更加贴合用户的实际需求。In the embodiment of this application, the audio output device will directly reject the first voice transmission link establishment request sent by the first terminal device during the incoming call phase, so the first terminal device will not preempt the audio output device during the incoming call phase Only when it is determined to answer the call corresponding to the first incoming call request, the first voice transmission link is established with the first terminal device, which can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, Reduce the impact on the normal use of audio output devices, and more meet the actual needs of users.
图3为另一个实施例中通话控制方法的流程图,可应用于上述的音频输出设备,该方法可包括以下步骤:Fig. 3 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device, and the method may include the following steps:
步骤302,接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求。 Step 302, receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device.
步骤304,若音频输出设备当前处于占用状态,则拒绝第一语音传输链路建立请求,并输出与第一来电请求对应的第一来电提醒信息。Step 304: If the audio output device is currently in an occupied state, reject the first voice transmission link establishment request, and output first call reminder information corresponding to the first call request.
占用状态为音频输出设备与第二终端设备进行音频数据传输的状态,该第二终端设备可为至少两个终端设备中除第一终端设备以外的任一终端设备。在音频输出设备接收到第一终端设备发送的第一来电请求及第一语音传输链路建立请求后,可判断音频输出设备当前是否处于占用状态,若当前处于占用状态,说明音频输出设备当前正在播放第二终端设备传输的音频数据,则可拒绝第一语音传输链路建立请求,避免第一终端设备抢占音频输出设备。The occupied state is a state in which the audio output device is transmitting audio data with a second terminal device, and the second terminal device may be any terminal device except the first terminal device among at least two terminal devices. After the audio output device receives the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, it can determine whether the audio output device is currently in the occupied state. If it is currently in the occupied state, it means that the audio output device is currently Playing the audio data transmitted by the second terminal device can reject the first voice transmission link establishment request, preventing the first terminal device from preempting the audio output device.
在一些实施例中,若音频输出设备当前不处于占用状态,也即音频输出设备当前没有播放任一终端设备传输的音频数据,则可响应该第一语音传输链路建立请求,与第一终端设备建立第一语音传输链路。在音频输出设备与第一终端设备建立第一语音传输链路之后,可通过第一语音传输链路接收第一终端设备发送的第二响铃音频数据,并输出该第二响铃音频数据。在确定接听第一来电请求对应的通话时,可通过第一语音传输链路与第一终端设备进行语音数据传输。In some embodiments, if the audio output device is not currently in an occupied state, that is, the audio output device is not currently playing audio data transmitted by any terminal device, it may respond to the first voice transmission link establishment request, and communicate with the first terminal The device establishes a first voice transmission link. After the audio output device establishes the first voice transmission link with the first terminal device, it can receive the second ringing audio data sent by the first terminal device through the first voice transmission link, and output the second ringing audio data. When it is determined to answer the call corresponding to the first incoming call request, voice data transmission may be performed with the first terminal device through the first voice transmission link.
步骤306,在确定接听第一来电请求对应的通话时,断开第二语音传输链路,并与第一终端设备建立第一语音传输链路,以通过第一语音传输链路进行语音数据传输。 Step 306, when it is determined to answer the call corresponding to the first incoming call request, disconnect the second voice transmission link, and establish the first voice transmission link with the first terminal device, so as to perform voice data transmission through the first voice transmission link .
在一些实施例中,第二终端设备可进行多媒体音频播放业务,上述的占用状态可包括音频输出设备与第二终端设备进行多媒体音频数据传输的状态。进一步地,第二终端设备可基于蓝牙的音频传输协议向音频输出设备传输多媒体音频数据,可选地,该音频传输协议可包括A2DP(Advanced Audio Distribution Profile)等,第二终端设备可与音频输出设备之间建立A2DP连接,并通过A2DP连接向第二终端设备发送多媒体音频数据。In some embodiments, the second terminal device can perform a multimedia audio playback service, and the above occupation state may include a state in which the audio output device and the second terminal device perform multimedia audio data transmission. Further, the second terminal device can transmit multimedia audio data to the audio output device based on the Bluetooth audio transmission protocol. Optionally, the audio transmission protocol can include A2DP (Advanced Audio Distribution Profile), etc., and the second terminal device can communicate with the audio output device. An A2DP connection is established between the devices, and multimedia audio data is sent to the second terminal device through the A2DP connection.
若在音频输出设备与第二终端设备进行多媒体音频数据传输的情况下,音频输出设备接收到第一终端设备发送的第一来电请求及第一语音传输链路建立请求,则可拒绝该第一语音传输链路建立请求,避免在用户没有接听意愿的情况下第一终端设备抢占音频输出设备,影响第二终端设备的多媒体音频播放业务。If the audio output device and the second terminal device perform multimedia audio data transmission, and the audio output device receives the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, the first audio transmission link establishment request may be rejected. The voice transmission link establishment request prevents the first terminal device from preempting the audio output device and affecting the multimedia audio playback service of the second terminal device when the user is not willing to answer.
可选地,在确定接听第一来电请求对应的通话时,音频输出设备可断开与第二终端设备之间的A2DP连接,停止接收第二终端设备传输的音频数据,并与第一终端设备建立第一语音传输链路。可选地,在确定接听第一来电请求对应的通话时,也可以不断开与第二终端设备之间的A2DP连接,第一终端设备可以在与音频输出设备保持A2DP连接的情况下,将该A2DP连接设置成不能传输数据流的状态,从而音频输出设备停止接收第二终端设备传输的音频数据。Optionally, when it is determined to answer the call corresponding to the first incoming call request, the audio output device may disconnect the A2DP connection with the second terminal device, stop receiving audio data transmitted by the second terminal device, and communicate with the first terminal device A first voice transmission link is established. Optionally, when it is determined to answer the call corresponding to the first incoming call request, the A2DP connection with the second terminal device may not be disconnected, and the first terminal device may maintain the A2DP connection with the audio output device. The A2DP connection is set to a state where data stream cannot be transmitted, so that the audio output device stops receiving audio data transmitted by the second terminal device.
在一些实施例中,第二终端设备可进行通话业务,占用状态可包括音频输出设备与第二终端设备通过第二语音传输链路进行音频数据传输的状态。第二终端设备可与音频输出设备之间建立第二语音传输链路,该第二语音传输链路可以是SCO链路,并通过第二语音传输链路向第二终端设备传输通话业务相关的音频数据,如来电时的第二响铃音频数据、通话中的语音数据等。In some embodiments, the second terminal device can perform a call service, and the occupied state may include a state in which the audio output device and the second terminal device perform audio data transmission through the second voice transmission link. A second voice transmission link may be established between the second terminal device and the audio output device. The second voice transmission link may be an SCO link, and the call service-related information is transmitted to the second terminal device through the second voice transmission link. Audio data, such as the second ringing audio data of an incoming call, voice data during a call, etc.
若在音频输出设备通过第二语音传输链路与第二终端设备进行音频数据传输的情况下,音频输出设备接收到第一终端设备发送的第一来电请求及第一语音传输链路建立请求,则可拒绝该第一语音传输链路建立请求,避免在用户没有接听意愿的情况下第一终端设备抢占音频输出设备,影响第二终端设备的通话业务。If the audio output device performs audio data transmission with the second terminal device through the second voice transmission link, the audio output device receives the first call request and the first voice transmission link establishment request sent by the first terminal device, Then the request for establishing the first voice transmission link can be rejected, so as to prevent the first terminal device from preempting the audio output device and affecting the call service of the second terminal device when the user is not willing to answer the call.
在一些实施例中,音频输出设备接收到第一终端设备发送的第一来电请求后,可将通过第二语音传输链路接收的音频数据与第一来电提醒信息混合输出。可选地,该第一来电提醒信息可以是音频输出设备本地存储的提示音,则音频输出设备可播放通过第二语音传输链路接收的音频数据与该第一来电提醒信息的混合音频。用户可同时听到第二终端设备传输的音频数据以及提醒第一终端设备来电的提示音,既不影响第二终端设备使用音频输出设备,用户又可以准确获知第一终端设备来电的信息,能够更加贴合用户需求,提高用户粘度。In some embodiments, after receiving the first incoming call request sent by the first terminal device, the audio output device may mix and output the audio data received through the second voice transmission link and the first incoming call reminder information. Optionally, the first incoming call reminder information may be a prompt tone locally stored in the audio output device, and the audio output device may play a mixed audio of the audio data received through the second voice transmission link and the first incoming call reminder information. The user can hear the audio data transmitted by the second terminal device and the prompt tone reminding the first terminal device of an incoming call at the same time, which does not affect the use of the audio output device of the second terminal device, and the user can accurately know the information of the incoming call of the first terminal device, which can It is more suitable for user needs and improves user viscosity.
在确定接听第一来电请求对应的通话时,音频输出设备可断开第二语音传输链路,并与第一终端设备建立第一语音传输链路,音频输出设备可通过第一语音传输链路与第一终端设备进行语音数据传输。 能够使第二终端设备成功抢占音频输出设备,保证第二终端设备正常使用音频输出设备。When it is determined to answer the call corresponding to the first incoming call request, the audio output device may disconnect the second voice transmission link, and establish a first voice transmission link with the first terminal device, and the audio output device may pass through the first voice transmission link Perform voice data transmission with the first terminal device. The second terminal device can successfully preempt the audio output device, ensuring that the second terminal device normally uses the audio output device.
在一些实施例中,在第一终端设备接收到来电时,第二终端设备进行通话业务并占用音频输出设备的场景,可包括:1、第二终端设备接收到来电但还未接听的场景;2、第二终端设备接收到来电且已接听的场景等。因此,在步骤接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求之前,可包括:接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求;若音频输出设备不处于占用状态,则响应第三语音传输链路建立请求,与第二终端设备建立第二语音传输链路;通过第二语音传输链路接收第二终端设备发送的第一响铃音频数据,并输出第一响铃音频数据。In some embodiments, when the first terminal device receives an incoming call, the scenario in which the second terminal device conducts a call service and occupies the audio output device may include: 1. The scenario in which the second terminal device receives an incoming call but has not yet answered it; 2. The scene where the second terminal device receives an incoming call and has answered it, etc. Therefore, before the step of receiving the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, it may include: receiving the second incoming call request and the third voice transmission link establishment request sent by the second terminal device; If the audio output device is not in the occupied state, then in response to the third voice transmission link establishment request, establish a second voice transmission link with the second terminal device; receive the first sound sent by the second terminal device through the second voice transmission link ring audio data, and output the first ring audio data.
若在音频输出设备接收到第二终端设备发送的第二来电请求及第三语音传输链路建立请求时,音频输出设备不处于占用状态,也即没有其它终端设备占用音频输出设备,则音频输出设备可直接响应该第三语音传输链路建立请求,与第二终端设备建立第二语音传输链路。第二终端设备可通过该第二语音传输链路向音频输出设备发送第一响铃音频数据,音频输出设备可播放该第一响铃音频数据,以提示用户第二终端设备接收到来电。第二终端设备占用音频输出设备。If when the audio output device receives the second incoming call request sent by the second terminal device and the third voice transmission link establishment request, the audio output device is not in the occupied state, that is, no other terminal device occupies the audio output device, then the audio output The device may directly respond to the third voice transmission link establishment request, and establish the second voice transmission link with the second terminal device. The second terminal device can send the first ringing audio data to the audio output device through the second voice transmission link, and the audio output device can play the first ringing audio data to prompt the user that the second terminal device receives an incoming call. The second terminal device occupies the audio output device.
针对上述的第二终端设备接收到来电但还未接听的场景,在一些实施例中,在第二终端设备处于来电状态时,第一终端设备接收到来电,向音频输出设备发送第一来电请求及第一语音传输链路建立请求。此时第二终端设备及第一终端设备均处于来电阶段,音频输出设备可拒绝该第一语音传输链路建立请求,并将第二终端设备的第一响铃音频数据与第一提示信息混合输出。For the above scenario where the second terminal device receives an incoming call but has not answered it, in some embodiments, when the second terminal device is in the incoming call state, the first terminal device receives the incoming call and sends the first incoming call request to the audio output device and a first voice transmission link establishment request. At this time, both the second terminal device and the first terminal device are in the incoming call stage, the audio output device may reject the first voice transmission link establishment request, and mix the first ringing audio data of the second terminal device with the first prompt information output.
在音频输出设备将第二终端设备的第一响铃音频数据与第一提示信息混合输出后,用户可以选择接听第一终端设备或第二终端设备的来电。若确定接听第二来电请求对应的通话(即确定接听第二终端设备的来电),则音频输出设备可直接通过该第二语音传输链路与第二终端设备进行语音数据传输,第二终端设备占用音频输出设备。若确定接听第一来电请求对应的通话(即确定接听第一终端设备的来电),则音频输出设备可断开该第二语音传输链路,并与第一终端设备建立第一语音传输链路,通过该第一语音传输链路与第一终端设备进行语音数据传输,第一终端设备抢占音频输出设备。After the audio output device mixes and outputs the first ringing audio data of the second terminal device and the first prompt information, the user can choose to answer the incoming call of the first terminal device or the second terminal device. If it is determined to answer the call corresponding to the second incoming call request (that is, it is determined to answer the incoming call of the second terminal device), the audio output device can directly perform voice data transmission with the second terminal device through the second voice transmission link, and the second terminal device Occupies the audio output device. If it is determined to answer the call corresponding to the first incoming call request (that is, it is determined to answer the incoming call of the first terminal device), the audio output device may disconnect the second voice transmission link, and establish the first voice transmission link with the first terminal device , performing voice data transmission with the first terminal device through the first voice transmission link, and the first terminal device preempts the audio output device.
示例性地,图4A为一个实施例中两个终端设备在同一时间段接收到来电的时序流程图。如图4A所示,音频输出设备分别与终端设备A及终端设备B建立蓝牙连接。在终端设备A接收到来电时,向音频输出设备发送来电请求及SCO建立请求。此时,音频输出设备不处于占用状态,则可响应该SCO建立请求,与终端设备A建立SCO链路,终端设备A占用音频输出设备。终端设备A通过该SCO链路向音频输出设备发送来电铃声,音频输出设备可播放接收到的终端设备A的来电铃声。在音频输出设备播放终端设备A的来电铃声的过程中,也即终端设备A的来电阶段,终端设备B也接收到来电,终端设备B向音频输出设备发送来电请求及SCO建立请求。由于此时音频输出设备处于占用状态,音频输出设备可拒绝终端设备B的SCO建立请求,并混合播放终端设备A的来电铃声及本地存储的终端设备B的来电提示音。若确定接听终端设备B的来电,则终端设备B向音频输出设备发送接听指令,音频输出设备可断开与终端设备A之间的SCO链路,并向终端设备B发送SCO建立请求。终端设备B响应该SCO建立请求,与音频输出设备建立SCO链路,终端设备B抢占音频输出设备。音频输出设备可通过该SCO链路接收终端设备B的通话语音,并播放该通话语音。Exemplarily, FIG. 4A is a sequence flowchart of two terminal devices receiving incoming calls at the same time period in an embodiment. As shown in FIG. 4A , the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively. When terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device. At this time, if the audio output device is not in the occupied state, the SCO link can be established with the terminal device A in response to the SCO establishment request, and the terminal device A occupies the audio output device. The terminal device A sends the ringtone of the incoming call to the audio output device through the SCO link, and the audio output device can play the received ringtone of the incoming call of the terminal device A. While the audio output device is playing the ringtone of the incoming call of terminal device A, that is, the incoming call phase of terminal device A, terminal device B also receives an incoming call, and terminal device B sends an incoming call request and an SCO establishment request to the audio output device. Since the audio output device is in the occupied state at this time, the audio output device may reject the SCO establishment request of the terminal device B, and mix and play the ringtone of the incoming call of the terminal device A and the incoming call prompt tone of the terminal device B stored locally. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer command to the audio output device, and the audio output device may disconnect the SCO link with terminal device A, and send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive the call voice of terminal device B through the SCO link, and play the call voice.
针对上述的第二终端设备接收到来电且已接听的场景,在一些实施例中,音频输出设备播放该第一响铃音频数据后,在确定接听第二来电请求对应的通话时,可通过第二语音传输链路与第一终端设备进行语音数据传输。在第二终端设备处于通话状态时,第一终端设备接收到来电,向音频输出设备发送第一来电请求及第一语音传输链路建立请求。此时第一终端设备处于通话阶段,第二终端设备处于来电阶段,音频输出设备可拒绝该第一语音传输链路建立请求,并将第二终端设备传输的语音数据与第一提示信息混合输出。Regarding the scenario where the second terminal device receives an incoming call and has answered it, in some embodiments, after the audio output device plays the first ringing audio data, when it is determined to answer the call corresponding to the second incoming call request, it can pass the second The second voice transmission link performs voice data transmission with the first terminal device. When the second terminal device is in a call state, the first terminal device receives an incoming call, and sends a first incoming call request and a first voice transmission link establishment request to the audio output device. At this time, the first terminal device is in the call stage, and the second terminal device is in the incoming call stage. The audio output device can reject the first voice transmission link establishment request, and output the voice data transmitted by the second terminal device in combination with the first prompt information. .
作为一种实施方式,将第二终端设备传输的语音数据与第一提示信息混合输出的方式,可以是在输出第二终端设备传输的语音数据的过程中,持续第一时间段将第一提示信息与该语音数据混合输出,该第一时间段可根据实际需求进行设置,例如3秒、5秒等。作为另一种实施方式,也可以是在输出第二终端设备传输的语音数据的过程中,每隔第二时间段将第一提示信息与该语音数据混合输出。该第二时间段可根据实际需求进行设置,例如5秒、8秒等。仅将第一提示信息与语音数据持续混合输出第一时间段,或是间隔混合输出第一提示信息与语音数据,可避免一直输出第一提示信息对用户收听第二终端设备传输的语音数据造成过多干扰。As an implementation manner, the way of mixing and outputting the voice data transmitted by the second terminal device with the first prompt information may be that during the process of outputting the voice data transmitted by the second terminal device, the first prompt information lasts for a first time period. The information and the voice data are mixed and output, and the first time period can be set according to actual needs, such as 3 seconds, 5 seconds, and so on. As another implementation manner, in the process of outputting the voice data transmitted by the second terminal device, the first prompt information and the voice data are mixed and output every second time period. The second time period can be set according to actual needs, for example, 5 seconds, 8 seconds and so on. Only continuously outputting the first prompt information and voice data for the first time period, or mixing and outputting the first prompt information and voice data at intervals, can avoid causing the user to listen to the voice data transmitted by the second terminal device by always outputting the first prompt information. Too much distraction.
在将第二终端设备传输的语音数据与第一提示信息混合输出后,若确定接听第一来电请求对应的通话,则可断开与第二终端设备之间的第二语音传输链路,并建立与第一终端设备之间的第一语音传输链路,通过该第一语音传输链路与第一终端设备进行语音数据传输,第一终端设备抢占音频输出设备。After the voice data transmitted by the second terminal device is mixed and output with the first prompt information, if it is determined to answer the call corresponding to the first incoming call request, the second voice transmission link with the second terminal device may be disconnected, and A first voice transmission link with the first terminal device is established, voice data transmission is performed with the first terminal device through the first voice transmission link, and the first terminal device preempts the audio output device.
示例性地,图4B为一个实施例中在前一个终端设备处于通话过程中,另一终端设备接收到来电的时序流程图。如图4B所示,音频输出设备分别与终端设备A及终端设备B建立蓝牙连接。在终端设备A接收到来电时,向音频输出设备发送来电请求及SCO建立请求。此时,音频输出设备不处于占用状态,则可响应该SCO建立请求,与终端设备A建立SCO链路,终端设备A占用音频输出设备。终端设备A通过该SCO链路向音频输出设备发送来电铃声,音频输出设备可播放接收到的终端设备A的来电铃声。在确定接听终端设备A的来电时,终端设备A向音频输出设备发送接听指令,音频输出设备可通过该SCO链路接收终端设备A发送的通话语音,并进行播放。在终端设备A占用音频输出设备进行通话的过程中,终端设备B接收到来电,终端设备B向音频输出设备发送来电请求及SCO建立请求。由于此时音频输出设备处于占用状态,音频输出设备可拒绝终端设备B的SCO建立请求,并混合播放终端设备A的通话语音及本地存储的终端设备B的来电提示音。若确定接听终端设备B的来电,则终端设备B向音频输出设备发送接听指令,音频输出设备可断开与终端设备A之间的SCO链路,并向终端设备B发送SCO建立请求。终端设备B响应该SCO建立请求,与音频输出设备建立SCO链路,终端设备B抢占音频输出设备。音频输出设备可通过该SCO链路接收终端设备B的通话语音,并进行播放。Exemplarily, FIG. 4B is a sequence flow chart of another terminal device receiving an incoming call when the previous terminal device is in a call in an embodiment. As shown in FIG. 4B , the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively. When terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device. At this time, if the audio output device is not in the occupied state, the SCO link can be established with the terminal device A in response to the SCO establishment request, and the terminal device A occupies the audio output device. The terminal device A sends the ringtone of the incoming call to the audio output device through the SCO link, and the audio output device can play the received ringtone of the incoming call of the terminal device A. When it is determined to answer the incoming call of terminal device A, terminal device A sends an answer instruction to the audio output device, and the audio output device can receive and play the call voice sent by terminal device A through the SCO link. When terminal device A occupies the audio output device for a call, terminal device B receives an incoming call, and terminal device B sends an incoming call request and an SCO establishment request to the audio output device. Since the audio output device is in the occupied state at this time, the audio output device may reject the SCO establishment request of the terminal device B, and mix and play the call voice of the terminal device A and the incoming call prompt tone of the terminal device B stored locally. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer command to the audio output device, and the audio output device may disconnect the SCO link with terminal device A, and send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive and play the call voice of terminal device B through the SCO link.
针对上述的第二终端设备接收到来电且已接听的场景,在一些实施例中,在步骤接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求之前,还可包括:接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求;拒绝第三语音传输链路建立请求,并输出与第二来电请求对应的第二来电提醒信息;在确定接听第二来电请求对应的通话时,与第二终端设备建立第二语音传输链路,并通过第二语音传输链路与第一终端设备进行语音数据传输。For the above-mentioned scenario where the second terminal device receives an incoming call and has answered it, in some embodiments, before the step of receiving the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, it may further include: Receive the second incoming call request and the third voice transmission link establishment request sent by the second terminal device; reject the third voice transmission link establishment request, and output the second incoming call reminder information corresponding to the second incoming call request; When a call corresponding to a second incoming call is requested, a second voice transmission link is established with the second terminal device, and voice data transmission is performed with the first terminal device through the second voice transmission link.
针对任一终端设备在来电阶段发送的语音传输链路建立请求,音频输出设备均可拒绝该语音传输链路建立请求,不与来电阶段的终端设备建立语音传输链路。在第二终端设备接收到来电时,向音频输出设备发送第二来电请求及第三语音传输链路建立请求,音频输出设备可拒绝该第三语音传输链路建立请求,并输出与第二来电请求对应的第二来电提醒信息。需要说明的是,拒绝第三语音传输链路建立请求,并输出与第二来电请求对应的第二来电提醒信息的方式可与上述实施例中拒绝第一语音传输链路建立请求,并输出第一来电请求对应的第一来电提醒信息的方式类似,在此不再赘述。For the voice transmission link establishment request sent by any terminal device during the incoming call phase, the audio output device may reject the voice transmission link establishment request, and will not establish a voice transmission link with the terminal device during the incoming call phase. When the second terminal device receives an incoming call, it sends a second incoming call request and a third voice transmission link establishment request to the audio output device, and the audio output device can reject the third voice transmission link establishment request, and output the second incoming call request. The corresponding second incoming call reminder information is requested. It should be noted that the manner of rejecting the establishment request of the third voice transmission link and outputting the second incoming call reminder information corresponding to the second incoming call request can be the same as that of rejecting the establishment request of the first voice transmission link in the above embodiment and outputting the second incoming call reminder information. The method of the first incoming call reminder corresponding to an incoming call request is similar and will not be repeated here.
仅在确定接听第二来电请求对应的通话时,音频输出设备才与第二终端设备建立第二语音传输链路。可避免在用户没有意愿接听第二终端设备的来电的情况下,建立第二语音传输链路又再断开第二语音传输链路造成的不必要的功耗损失,提高音频输出设备的续航能力。且对于所有终端设备占用音频输出设备的逻辑都是一致的,避免了不同终端设备抢占耳机的行为不一致带给用户困惑的情况,提高用户体验。The audio output device establishes the second voice transmission link with the second terminal device only when it is determined to answer the call corresponding to the second incoming call request. It can avoid unnecessary power consumption loss caused by establishing the second voice transmission link and then disconnecting the second voice transmission link when the user is not willing to answer the incoming call of the second terminal device, and improve the battery life of the audio output device . Moreover, the logic for all terminal devices to occupy the audio output device is consistent, which avoids confusion for users caused by inconsistencies in the behavior of different terminal devices preempting earphones, and improves user experience.
示例性地,图4C为另一个实施例中在前一个终端设备处于通话过程中,另一终端设备接收到来电的时序流程图。如图4C所示,音频输出设备分别与终端设备A及终端设备B建立蓝牙连接。在终端设备A接收到来电时,向音频输出设备发送来电请求及SCO建立请求。音频输出设备拒绝终端设备A的SCO建立请求,并播放本地存储的终端设备A的来电提示音。在确定接听终端设备A的来电时,终端设备A向音频输出设备发送接听指令,音频输出设备可向终端设备A发送SCO建立请求,并与终端设备A建立SCO链路,终端设备A占用音频输出设备。音频输出设备可通过该SCO链路接收终端设备A发送的通话语音,并进行播放。在终端设备A占用音频输出设备进行通话的过程中,终端设备B接收到来电,终端设备B向音频输出设备发送来电请求及SCO建立请求。由于此时音频输出设备处于占用状态,音频输出设备可拒绝终端设备B的SCO建立请求,并混合播放终端设备A的通话语音及本地存储的终端设备B的来电提示音。若确定接听终端设备B的来电,则终端设备B向音频输出设备发送接听指令,音频输出设备可断开与终端设备A之间的SCO链路,并向终端设备B发送SCO建立请求。终端设备B响应该SCO建立请求,与音频输出设备建立SCO链路,终端设备B抢占音频输出设备。音频输出设备可通过该SCO链路接收终端设备B的通话语音,并进行播放。Exemplarily, FIG. 4C is a sequence flow chart of another terminal device receiving an incoming call when the previous terminal device is in a call in another embodiment. As shown in FIG. 4C , the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively. When terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device. The audio output device rejects the SCO establishment request of terminal device A, and plays the locally stored caller prompt tone of terminal device A. When it is determined to answer the incoming call of terminal device A, terminal device A sends an answer command to the audio output device, and the audio output device can send an SCO establishment request to terminal device A, and establish an SCO link with terminal device A, and terminal device A occupies the audio output equipment. The audio output device can receive and play the call voice sent by terminal device A through the SCO link. When terminal device A occupies the audio output device for a call, terminal device B receives an incoming call, and terminal device B sends an incoming call request and an SCO establishment request to the audio output device. Since the audio output device is in the occupied state at this time, the audio output device may reject the SCO establishment request of the terminal device B, and mix and play the call voice of the terminal device A and the incoming call prompt tone of the terminal device B stored locally. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer command to the audio output device, and the audio output device may disconnect the SCO link with terminal device A, and send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive and play the call voice of terminal device B through the SCO link.
在一些实施例中,在音频输出设备断开与第二终端设备之间的第二语音传输链路,并与第二终端设备建立第一语音传输链路之后,音频输出设备可向第二终端设备发送控制指令,该控制指令可用于指示第二终端设备通过扬声器输出第二终端设备产生的音频数据。可选地,音频输出设备也可不向第二终端设备发送控制指令,在第二终端设备检测到与音频输出设备之间的第二语音传输链路断开后,可直接通过扬声器播放产生的音频数据。通过外放的方式,第二终端设备可继续进行业务,且不会对第一终端设备使用音频输出设备产生影响。In some embodiments, after the audio output device disconnects the second voice transmission link with the second terminal device and establishes the first voice transmission link with the second terminal device, the audio output device can send The device sends a control instruction, and the control instruction may be used to instruct the second terminal device to output the audio data generated by the second terminal device through the speaker. Optionally, the audio output device may not send a control command to the second terminal device, and after the second terminal device detects that the second voice transmission link with the audio output device is disconnected, it can directly play the generated audio through the speaker. data. Through the way of external release, the second terminal device can continue to conduct business without affecting the use of the audio output device by the first terminal device.
在本申请实施例中,在音频输出设备被第二终端设备占用的情况下,第一终端设备接收到来电,音 频输出设备直接拒绝第一终端设备在来电阶段时发送的第一语音传输链路建立请求,第一终端设备在来电阶段不会对音频输出设备进行抢占,可避免第一终端设备在用户没有接听通话意愿的情况下对音频输出设备进行抢占,减少对第二终端设备使用音频输出设备的影响,更加贴合用户的实际需求。In this embodiment of the application, when the audio output device is occupied by the second terminal device, the first terminal device receives an incoming call, and the audio output device directly rejects the first voice transmission link sent by the first terminal device during the incoming call phase. Create a request, the first terminal device will not preempt the audio output device during the incoming call, which can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, and reduce the use of audio output for the second terminal device The impact of equipment is more in line with the actual needs of users.
图5为另一个实施例中通话控制方法的流程图,可应用于上述的音频输出设备,该方法可包括以下步骤:FIG. 5 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device. The method may include the following steps:
步骤502,接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求。 Step 502, receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device.
步骤504,若音频输出设备当前处于占用状态,则拒绝第一语音传输链路建立请求,并输出与第一来电请求对应的第一来电提醒信息。Step 504: If the audio output device is currently in an occupied state, reject the first voice transmission link establishment request, and output first call reminder information corresponding to the first call request.
步骤506,在确定接听第一来电请求对应的通话时,断开第二语音传输链路,并与第一终端设备建立第一语音传输链路,以通过第一语音传输链路进行语音数据传输。 Step 506, when it is determined to answer the call corresponding to the first incoming call request, disconnect the second voice transmission link, and establish the first voice transmission link with the first terminal device, so as to perform voice data transmission through the first voice transmission link .
步骤502~506的描述可参考上述各实施例中的相关描述,在此不再赘述。For descriptions of steps 502 to 506, reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here.
步骤508,若确定第一终端设备结束通话,且第二终端设备仍处于来电状态或通话状态,则断开第一语音传输链路,并与第二终端设备重新建立第二语音传输链路。 Step 508, if it is determined that the first terminal device ends the call, and the second terminal device is still in a call state or a call state, disconnect the first voice transmission link, and re-establish a second voice transmission link with the second terminal device.
在第二终端设备占用音频输出设备进行通话业务的情况下,第一终端设备也接收到来电,且用户确定接听第一终端设备的来电,则第一终端设备抢占音频输出设备进行通话业务。可选地,在第一终端设备抢占音频输出设备时,若第二终端设备处于来电状态,则第二终端设备可直接输出来电提醒,如通过自身的扬声器播放第一响铃音频数据,也可以采用震动的方式进行来电提醒等。若在第一终端设备抢占音频输出设备时,第二终端设备处于通话状态,则第二终端设备可保持该通话状态,不进行挂断。When the second terminal device occupies the audio output device for call service, the first terminal device also receives an incoming call, and the user decides to answer the incoming call of the first terminal device, then the first terminal device preempts the audio output device for call service. Optionally, when the first terminal device preempts the audio output device, if the second terminal device is in an incoming call state, the second terminal device can directly output an incoming call reminder, such as playing the first ringing audio data through its own speaker, or Vibration is used for incoming call reminders, etc. If the second terminal device is in a call state when the first terminal device preempts the audio output device, the second terminal device may maintain the call state without hanging up.
在第一终端设备结束通话时,若第二终端设备仍处于音频输出设备被抢占时的来电状态或通话状态,则音频输出设备可断开第一语音传输链路,并与第二终端设备重新建立第二语音传输链路。When the first terminal device ends the call, if the second terminal device is still in the incoming call state or the call state when the audio output device is preempted, the audio output device can disconnect the first voice transmission link and reconnect with the second terminal device. Establish a second voice transmission link.
作为一种具体实施方式,在第二终端设备的来电被挂断时,第二终端设备结束通话业务,可向音频输出设备发送挂断指令,该挂断指令可用于表征第二终端设备的来电被挂断,该挂断可以是用户在第二终端设备上进行挂断操作,也可以是呼叫第二终端设备的主叫设备进行了挂断操作。因此,若在第一终端设备占用音频输出设备进行通话业务的过程中,音频输出设备未接收到第二终端设备发送的挂断指令,则可确定第二终端设备仍处于来电状态或通话状态。在音频输出设备接收到第一终端设备发送的挂断指令时,可确定第一终端设备结束通话,音频输出设备可断开与第一终端设备之间的第一语音传输链路,并向第二终端设备发送第四语音传输链路建立请求,以请求与第二终端设备恢复建立第二语音传输链路,以通过该第二语音传输链路继续与第二终端设备进行音频数据传输,第二终端设备占用音频输出设备并继续进行通话业务。As a specific implementation manner, when the incoming call of the second terminal device is hung up, the second terminal device ends the call service, and can send a hangup instruction to the audio output device, and the hangup instruction can be used to represent the incoming call of the second terminal device hanged up, the hangup may be that the user performs a hangup operation on the second terminal device, or it may be that a calling device that calls the second terminal device performs a hangup operation. Therefore, if the audio output device does not receive the hang-up instruction sent by the second terminal device while the first terminal device is occupying the audio output device for the call service, it can be determined that the second terminal device is still in the incoming call state or in the call state. When the audio output device receives the hang up instruction sent by the first terminal device, it can determine that the first terminal device has ended the call, and the audio output device can disconnect the first voice transmission link with the first terminal device, and send a message to the first terminal device. The second terminal device sends a fourth voice transmission link establishment request to request to restore the establishment of the second voice transmission link with the second terminal device, so as to continue audio data transmission with the second terminal device through the second voice transmission link. The second terminal device occupies the audio output device and continues the call service.
在本申请实施例中,在第一终端设备结束通话时,音频输出设备可恢复与第二终端设备之间的第二语音传输链路,并继续进行第二终端设备的通话业务,保证不同终端设备的通话业务能够正常进行,满足用户使用音频输出设备的不同需求。In this embodiment of the application, when the first terminal device ends the call, the audio output device can restore the second voice transmission link with the second terminal device, and continue the call service of the second terminal device, ensuring that different terminals The call service of the device can be carried out normally, which meets the different needs of users for using audio output devices.
在一些实施例中,对于两个终端设备在同一时间段内接收到来电的场景,除了上述实施例中涉及的由先接收到来电的终端设备(如上述实施例中的第二终端设备)占用音频输出设备,后接收到来电的终端设备(如上述的第一终端设备)在确定接听时再抢占音频输出设备的方案以外,还可以是在两个终端设备的来电阶段均不抢占音频输出设备,仅在用户选择接听其中的一个终端设备后,再由接听通话的终端设备抢占音频输出设备。In some embodiments, for the scenario where two terminal devices receive an incoming call within the same time period, except that the terminal device that receives the incoming call first (such as the second terminal device in the above embodiment) occupies the Audio output device, in addition to the solution that the terminal device that receives an incoming call (such as the first terminal device above) preempts the audio output device when it is determined to answer, it can also be that neither of the two terminal devices preempts the audio output device during the incoming call phase , only after the user chooses to answer one of the terminal devices, the terminal device that answers the call preempts the audio output device.
上述的通话控制方法,还可包括:接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求,以及接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求,拒绝第一语音传输链路建立请求及第三语音传输链路建立请求,并输出第一来电请求对应的第一来电提醒信息及与第二来电请求对应的第二来电提醒信息。The above call control method may further include: receiving the first call request and the first voice transmission link establishment request sent by the first terminal device, and receiving the second call request and the third voice transmission link request sent by the second terminal device The establishment request rejects the first voice transmission link establishment request and the third voice transmission link establishment request, and outputs the first incoming call reminder information corresponding to the first incoming call request and the second incoming call reminder information corresponding to the second incoming call request.
以第二终端设备先接收到来电,第一终端设备后接收到来电为例,在第二终端设备接收到来电时,向音频输出设备发送第二来电请求及第三语音传输链路建立请求,音频输出设备拒绝该第三语音传输链路建立请求,并输出与第二来电请求对应的第二来电提醒信息。在第二终端设备的来电阶段,第一终端设备接收到来电,向音频输出设备发送第一来电请求及第一语音传输链路建立请求,音频输出设备拒绝该第一语音传输链路建立请求,可将第一来电请求对应的第一来电提醒信息及与第二来电请求对应的第二来电提醒信息混合输出。第一终端设备及第二终端设备均不占用音频输出设备。Taking the second terminal device receiving an incoming call first and the first terminal device receiving an incoming call as an example, when the second terminal device receives an incoming call, it sends a second incoming call request and a third voice transmission link establishment request to the audio output device, The audio output device rejects the third voice transmission link establishment request, and outputs second incoming call reminder information corresponding to the second incoming call request. In the incoming call stage of the second terminal device, the first terminal device receives an incoming call, sends a first incoming call request and a first voice transmission link establishment request to the audio output device, and the audio output device rejects the first voice transmission link establishment request, The first call reminder information corresponding to the first call request and the second call reminder information corresponding to the second call request may be mixed and output. Neither the first terminal device nor the second terminal device occupies the audio output device.
可选地,音频输出设备也可输出本地存储的第三来电提醒信息,该第三来电提醒信息可用于提示第一终端设备及第二终端设备均接收到来电,可表征第一终端设备及第二终端设备均处于来电状态。Optionally, the audio output device may also output locally stored third call reminder information, the third call reminder information may be used to prompt both the first terminal device and the second terminal device to receive an incoming call, which may represent the first terminal device and the second terminal device Both terminal devices are in the incoming call state.
用户可选择接听第一终端设备的来电或第二终端设备的来电,若确定接收第一终端设备的来电,则 音频输出设备可与第一终端设备建立第一语音传输链路,第一终端设备抢占音频输出设备,音频输出设备可通过该第一语音传输链路与第一终端设备进行语音数据传输。若确定接听第二终端设备的来电,则音频输出设备可与第二终端设备建立第二语音传输链路,第二终端设备抢占音频输出设备,音频输出设备可通过该第二语音传输链路与第二终端设备进行语音数据传输。The user can choose to answer the incoming call of the first terminal device or the incoming call of the second terminal device. If it is determined to receive the incoming call of the first terminal device, the audio output device can establish a first voice transmission link with the first terminal device, and the first terminal device Preempting the audio output device, the audio output device can perform voice data transmission with the first terminal device through the first voice transmission link. If it is determined to answer the incoming call of the second terminal device, the audio output device can establish a second voice transmission link with the second terminal device, and the second terminal device preempts the audio output device, and the audio output device can communicate with the second terminal device through the second voice transmission link. The second terminal device performs voice data transmission.
示例性地,图6为另一个实施例中两个终端设备在同一时间段接收到来电的时序流程图。如图6所示,音频输出设备分别与终端设备A及终端设备B建立蓝牙连接。在终端设备A接收到来电时,向音频输出设备发送来电请求及SCO建立请求。音频输出设备可拒绝终端设备A的SCO建立请求,并播放本地存储的终端设备A的来电提示音。在终端设备A的来电阶段,终端设备B也接收到来电,终端设备B向音频输出设备发送来电请求及SCO建立请求。音频输出设备可拒绝终端设备B的SCO建立请求,并混合播放本地存储的终端设备A的来电提示音及本地存储的终端设备B的来电提示音。若确定接听终端设备B的来电,则终端设备B向音频输出设备发送接听指令,音频输出设备可向终端设备B发送SCO建立请求。终端设备B响应该SCO建立请求,与音频输出设备建立SCO链路,终端设备B抢占音频输出设备。音频输出设备可通过该SCO链路接收终端设备B的通话语音,并播放该通话语音。Exemplarily, FIG. 6 is a sequence flow chart of two terminal devices receiving incoming calls at the same time period in another embodiment. As shown in FIG. 6 , the audio output device establishes Bluetooth connections with terminal device A and terminal device B respectively. When terminal device A receives an incoming call, it sends an incoming call request and an SCO establishment request to the audio output device. The audio output device may reject the SCO establishment request of the terminal device A, and play the locally stored call prompt tone of the terminal device A. During the incoming call phase of terminal device A, terminal device B also receives an incoming call, and terminal device B sends an incoming call request and an SCO establishment request to the audio output device. The audio output device may reject the SCO establishment request of the terminal device B, and play the locally stored call prompt tone of the terminal device A and the locally stored call prompt tone of the terminal device B. If it is determined to answer the incoming call of terminal device B, terminal device B sends an answer instruction to the audio output device, and the audio output device may send an SCO establishment request to terminal device B. In response to the SCO establishment request, terminal device B establishes an SCO link with the audio output device, and terminal device B preempts the audio output device. The audio output device can receive the call voice of terminal device B through the SCO link, and play the call voice.
在本申请实施例中,若两个终端设备在同一时间段接收到来电,音频输出设备均拒绝终端设备在来电阶段发起的语音传输链路建立请求,仅在确定接听其中一个终端设备的来电时,再与该接听来电的终端设备建立语音传输链路,可避免在用户没有意愿接听来电的情况下,先建立了语音传输链路后又断开语音传输链路造成的不必要的功耗损失,提高了音频输出设备的续航能力。且对于所有终端设备占用音频输出设备的逻辑都是一致的,避免了不同终端设备抢占耳机的行为不一致带给用户困惑的情况,提高用户体验。In the embodiment of this application, if two terminal devices receive an incoming call at the same time period, the audio output device rejects the voice transmission link establishment request initiated by the terminal device during the incoming call phase, and only when it is determined to answer the incoming call of one of the terminal devices , and then establish a voice transmission link with the terminal device that answers the call, which can avoid unnecessary power loss caused by first establishing the voice transmission link and then disconnecting the voice transmission link when the user is not willing to answer the call , improving the battery life of the audio output device. Moreover, the logic for all terminal devices to occupy the audio output device is consistent, which avoids confusion for users caused by inconsistencies in the behavior of different terminal devices preempting earphones, and improves user experience.
在一些实施例中,上述各实施例中涉及的确定接听第一来电请求对应的通话的方式,可包括但不限于以下几种方式:In some embodiments, the methods of determining to answer the call corresponding to the first call request involved in the above embodiments may include but not limited to the following methods:
方式一、若在音频输出设备端检测到接听第一终端设备的第一接听操作,则确定接听第一来电请求对应的通话。可预先设计对应各个终端设备的接听操作的操作方式,音频输出设备可检测接听操作,并根据检测到的接听操作的操作方式判断接听第一终端设备的来电还是接听第二终端设备的来电。可选地,不同终端设备的接听操作的操作方式可包括但不限于:第一终端设备及第二终端设备分别对应音频输出设备上不同的操作部件、第一终端设备及第二终端设备分别对应不同的操作频率、第一终端设备及第二终端设备分别对应不同的持续操作时长等。Method 1: If the first answering operation of answering the first terminal device is detected on the audio output device side, it is determined to answer the call corresponding to the first incoming call request. The operation mode corresponding to the answering operation of each terminal device can be pre-designed, the audio output device can detect the answering operation, and judge whether to answer the incoming call of the first terminal device or the second terminal device according to the detected operation mode of the answering operation. Optionally, the operation modes of the answering operation of different terminal devices may include but not limited to: the first terminal device and the second terminal device respectively correspond to different operating components on the audio output device, the first terminal device and the second terminal device respectively correspond to Different operating frequencies, the first terminal device and the second terminal device respectively correspond to different continuous operation durations and the like.
以第一终端设备及第二终端设备分别对应音频输出设备上不同的操作部件为例,如音频输出设备为TWS无线耳机,音频输出设备可设置有第一按钮及第二按钮(可以是物理按钮,也可以是显示的虚拟按钮),用户按压第一按钮对应接听第一终端设备的来电,用户按压第二按压对应接听第二终端设备的来电等。Taking the first terminal device and the second terminal device respectively corresponding to different operating components on the audio output device as an example, if the audio output device is a TWS wireless earphone, the audio output device may be provided with a first button and a second button (which may be a physical button , can also be a displayed virtual button), pressing the first button by the user corresponds to answering the incoming call of the first terminal device, and pressing the second button by the user corresponds to answering the incoming call of the second terminal device, etc.
以第一终端设备及第二终端设备分别对应不同的操作频率为例,用户在音频输出设备的触控装置上进行单击操作,对应接听第一终端设备的来电,用户在音频输出设备的触控装置上进行双击操作,对应接听第二终端设备的来电等。Taking the first terminal device and the second terminal device corresponding to different operating frequencies as an example, the user performs a click operation on the touch device of the audio output device, corresponding to answering the incoming call of the first terminal device, and the user clicks on the touch device of the audio output device. Double-click on the control device to answer incoming calls from the second terminal device.
以第一终端设备及第二终端设备分别对应不同的持续操作时长为例,用户在音频输出设备的触控装置上进行短按操作,对应接听第一终端设备的来电,用户在音频输出设备的触控装置上进行长按操作,对应接听第二终端设备的来电等。Taking the first terminal device and the second terminal device corresponding to different continuous operation durations as an example, the user performs a short press operation on the touch device of the audio output device, corresponding to answering the incoming call of the first terminal device, and the user performs a short press operation on the touch device of the audio output device. A long press operation on the touch device corresponds to answering an incoming call from the second terminal device.
需要说明的是,在音频输出设备上进行的针对第一终端设备的第一接听操作,以及针对第二终端设备的第二接听操作可根据实际需求进行设置,并不仅限于上述举例说明的几种操作方式。针对不同的终端设备分别设置不同的操作方式,用户可以根据实际需要选择接听相应的终端设备,操作方式便捷,贴合用户需求。It should be noted that the first answering operation for the first terminal device and the second answering operation for the second terminal device performed on the audio output device can be set according to actual needs, and are not limited to the above examples Operation method. Different operation modes are set for different terminal devices, and users can choose to answer corresponding terminal devices according to actual needs. The operation mode is convenient and meets user needs.
方式二、若在音频输出设备端检测到接听操作,且第一终端设备的通话优先级高于第二终端设备的通话优先级,则确定接听第一来电请求对应的通话。针对不同终端设备,可设置相同的在音频输出设备上进行的接听操作,例如,接听操作可以是在音频输出设备的触控装置上进行的单击操作、双击操作、按压操作等中的任一种,也可以是通过语音控制的交互操作等。Method 2: If an answering operation is detected on the audio output device side, and the call priority of the first terminal device is higher than that of the second terminal device, it is determined to answer the call corresponding to the first incoming call request. For different terminal devices, the same answering operation on the audio output device can be set. For example, the answering operation can be any one of single-click operation, double-click operation, and press operation on the touch device of the audio output device. It can also be an interactive operation controlled by voice, etc.
在音频输出设备端检测到接听操作时,若当前有至少存在第一终端设备及第二终端设备的通话业务,则可分别获取第一终端设备的通话优先级及第二终端设备的通话优先级,并比较二者的通话优先级的高低。若第一终端设备的通话优先级高于第二终端设备的通话优先级,则确定接听第一来电请求对应的通话。When an answering operation is detected on the audio output device side, if there is currently a call service of at least the first terminal device and the second terminal device, the call priority of the first terminal device and the call priority of the second terminal device can be obtained respectively , and compare the call priorities of the two. If the call priority of the first terminal device is higher than the call priority of the second terminal device, it is determined to answer the call corresponding to the first incoming call request.
可选地,通话优先级可由用户根据实际需求自行进行设置,比如设置第一终端设备的通话优先级为 5,第二终端设备的通话优先级为3,则第一终端设备的通话优先级高于第一终端设备的通话优先级的通话优先级。可选地,通话优先级也可通过一个或多个维度的信息进行设置,例如,可根据第一终端设备及第二终端设备接收到来电的先后顺序、第一终端设备及第二终端设备分别与音频输出设备建立蓝牙连接的先后顺序、第一终端设备及第二终端设备的剩余电量、第一终端设备及第二终端设备接收到的来电号码的重要程度等中的一种或多种进行设置。Optionally, the call priority can be set by the user according to actual needs. For example, if the call priority of the first terminal device is set to 5, and the call priority of the second terminal device is 3, then the call priority of the first terminal device is higher. The call priority of the call priority of the first terminal device. Optionally, the call priority can also be set through information in one or more dimensions, for example, according to the order in which the first terminal device and the second terminal device receive incoming calls, the first terminal device and the second terminal device respectively One or more of the sequence of establishing a Bluetooth connection with the audio output device, the remaining power of the first terminal device and the second terminal device, the importance of the incoming call numbers received by the first terminal device and the second terminal device, etc. set up.
比如,先接收来电的终端设备的通话优先级可高于后接收到来电的终端设备的通话优先级;又比如,先与音频输出设备建立蓝牙连接的终端设备的通话优先级,可低于后与音频输出设备建立蓝牙连接的终端设备的通话优先级;又比如,剩余电量高的音频输出设备的通话优先级高于剩余电量低的通话优先级等,但不限于此。For example, the call priority of a terminal device that receives an incoming call first may be higher than that of a terminal device that receives an incoming call later; for another example, the call priority of a terminal device that first establishes a Bluetooth connection with an audio output device may be lower than that of a terminal device that receives an incoming call later. The call priority of the terminal device that establishes a Bluetooth connection with the audio output device; for another example, the call priority of an audio output device with a high remaining power is higher than that of a low remaining power, etc., but not limited thereto.
音频输出设备根据各个终端设备的通话优先级选择通话优先级高的终端设备接听来电,可提高音频输出设备的智能化,贴合用户的不同需求。The audio output device selects the terminal device with high call priority to answer the incoming call according to the call priority of each terminal device, which can improve the intelligence of the audio output device and meet the different needs of users.
方式三、若音频输出设备接收到第一终端设备发送的第一接听指令,则确定接听第一来电话请求对应的通话,其中,第一接听指令为第一终端设备在检测到接听操作时向音频输出设备发送的。用户可直接在第一终端设备上进行接听操作(比如在第一终端设备上点击接听按钮等),则第一终端设备接听来电通话,第一终端设备从来电状态切换为通话状态,第一终端设备可直接向音频输出设备发送第一接听指令。第一接听指令可用于表征第一终端设备从来电状态切换为通话状态,音频输出设备接收到该第一接听指令,则可向第一终端设备发送第二语音传输链路建立请求,以与第一终端设备建立第一语音传输链路。Method 3: If the audio output device receives the first answering instruction sent by the first terminal device, it determines to answer the call corresponding to the first incoming call request, wherein the first answering instruction is sent to the first terminal device when an answering operation is detected. sent by the audio output device. The user can directly perform an answering operation on the first terminal device (such as clicking the answer button on the first terminal device, etc.), then the first terminal device answers the incoming call, and the first terminal device switches from the call state to the call state, and the first terminal device The device may directly send the first answering instruction to the audio output device. The first answering instruction can be used to indicate that the first terminal device is switched from the incoming call state to the talking state. After receiving the first answering instruction, the audio output device can send a second voice transmission link establishment request to the first terminal device to communicate with the first terminal device. A terminal device establishes a first voice transmission link.
在一些实施例中,对于在音频输出设备在检测接收听操并确定接听第一终端设备的方式(上述的方式一和方式二),音频输出设备在确定接听第一来电话请求对应的通话后,可向第一终端设备发送接听控制指令,该接听控制指令可用于指示第一终端设备接听来电通话。例如,该接听控制指令可以是AT指令“ATA(ANSWER)”等。在第一终端设备根据该接听控制指令接听来电后,可向音频输出设备返回第一接听指令,该第一接听指令用于表示第一终端设备从来电状态切换为通话状态,则音频输出设备可与第一终端设备建立第一语音传输链路。In some embodiments, for the way in which the audio output device detects the receiving operation and determines to answer the first terminal device (method 1 and mode 2 above), after the audio output device determines to answer the call corresponding to the first incoming call request , an answering control instruction may be sent to the first terminal device, where the answering control instruction may be used to instruct the first terminal device to answer the incoming call. For example, the answering control instruction may be an AT instruction "ATA (ANSWER)" and the like. After the first terminal device answers the incoming call according to the answering control instruction, it can return the first answering instruction to the audio output device. Establish a first voice transmission link with the first terminal device.
需要说明的是,确定接听第二来电请求对应的通话(即接听第二终端设备的来电)的方式可与确定接听第一来电请求对应的通话的方式类似,在此不再重复赘述。It should be noted that the manner of determining to answer the call corresponding to the second incoming call request (ie, answering the incoming call of the second terminal device) may be similar to the manner of determining to answer the call corresponding to the first incoming call request, and will not be repeated here.
在本申请实施例中,可在音频输出设备和/或终端设备上进行接听操作,接听来电的方式更为灵活且多样化,满足用户在不同场景下的不同需求。In the embodiment of the present application, the answering operation can be performed on the audio output device and/or the terminal device, and the ways of answering incoming calls are more flexible and diverse, meeting different needs of users in different scenarios.
图7为另一个实施例中通话控制方法的流程图,可应用于上述的音频输出设备,该方法可包括以下步骤:FIG. 7 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device. The method may include the following steps:
步骤710,接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求。 Step 710, receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device.
步骤720,判断音频输出设备是否处于占用状态,若是,则执行步骤730,若否,则执行步骤750。 Step 720, determine whether the audio output device is in the occupied state, if yes, execute step 730, if not, execute step 750.
步骤730,拒绝第一语音传输链路建立请求,并输出与第一来电请求对应的第一来电提醒信息。Step 730, rejecting the first voice transmission link establishment request, and outputting first incoming call reminder information corresponding to the first incoming call request.
步骤740,在确定接听第一来电请求对应的通话时,与第一终端设备建立第一语音传输链路,以通过第一语音传输链路传输语音数据。 Step 740, when it is determined to answer the call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
步骤750,响应第一语音传输链路建立请求,与第一终端设备建立第一语音传输链路,通过第一语音传输链路接收第一终端设备发送的第二响铃音频数据,并输出第二响铃音频数据。Step 750: Respond to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, receive the second ringing audio data sent by the first terminal device through the first voice transmission link, and output the first voice transmission link. Two rings for audio data.
步骤760,在确定接听第一来电请求对应的通话时,通过第一语音传输链路与第一终端设备进行语音数据传输。 Step 760, when it is determined to answer the call corresponding to the first incoming call request, perform voice data transmission with the first terminal device through the first voice transmission link.
需要说明的是,本申请实施例的描述可参考上述各实施例中的相关描述,在此不再重复赘述。It should be noted that, for descriptions of the embodiments of the present application, reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here.
在本申请实施例中,若音频输出设备处于占用状态,则会拒绝第一终端设备在来电阶段时发送的第一语音传输链路建立请求,第一终端设备在来电阶段不会对音频输出设备进行抢占,仅在确定接听第一来电请求对应的通话时,才与第一终端设备建立第一语音传输链路,能够避免第一终端设备在用户没有接听通话意愿的情况下对音频输出设备进行抢占,能够减少对音频输出设备的正常使用的影响。In this embodiment of the application, if the audio output device is in the occupied state, the first terminal device will reject the first voice transmission link establishment request sent by the first terminal device during the incoming call phase, and the first terminal device will not request the audio output device during the incoming call phase. Preemption is performed, and the first voice transmission link is established with the first terminal device only when it is determined to answer the call corresponding to the first incoming call request, which can prevent the first terminal device from making a call to the audio output device when the user is not willing to answer the call. Preemption can reduce the impact on the normal use of the audio output device.
图8为另一个实施例中通话控制方法的流程图,可应用于上述的音频输出设备,该方法可包括以下步骤:FIG. 8 is a flowchart of a call control method in another embodiment, which can be applied to the above-mentioned audio output device. The method may include the following steps:
步骤810,第一终端设备处于来电状态,且第二终端设备处于来电状态。 Step 810, the first terminal device is in the incoming call state, and the second terminal device is in the incoming call state.
在一些实施例中,第一终端设备是在第二终端设备接收到来电之后,接收到来电的。该方法还可包括:在第二终端设备接收到来电时,音频输出设备输出本地存储的第二终端设备对应的第二来电提醒信息;在第一终端设备接收到来电时,音频输出设备将本地存储的第一终端设备对应的第一来电提醒信息 及第二来电提醒信息混合输出,或,在第一终端设备接收到来电时,音频输出设备输出本地存储的第三来电提醒信息,第三来电提醒信息用于表征第一终端设备及第二终端设备均处于来电状态。In some embodiments, the first terminal device receives the incoming call after the second terminal device receives the incoming call. The method may further include: when the second terminal device receives an incoming call, the audio output device outputs locally stored second incoming call reminder information corresponding to the second terminal device; when the first terminal device receives an incoming call, the audio output device outputs the local The stored first call reminder information and the second call reminder information corresponding to the first terminal device are mixed and output, or, when the first terminal device receives an incoming call, the audio output device outputs the locally stored third call reminder information, and the third call reminder information The reminding information is used to indicate that both the first terminal device and the second terminal device are in an incoming call state.
步骤820,若确定接听第一终端设备对应的来电通话,则音频输出设备输出第一终端设备传输的语音数据。 Step 820, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the voice data transmitted by the first terminal device.
步骤830,若确定接听第二终端设备对应的来电通话,则音频输出设备输出第二终端设备传输的语音数据。 Step 830, if it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
在一些实施例中,步骤820可包括:若接收到第一终端设备发送的第一接听指令,则确定接听第一终端设备对应的来电通话,音频输出设备输出第一终端设备传输的语音数据;其中,第一接听指令是第一终端设备检测到接听操作后生成的。In some embodiments, step 820 may include: if the first answering instruction sent by the first terminal device is received, then determine to answer the incoming call corresponding to the first terminal device, and the audio output device outputs the voice data transmitted by the first terminal device; Wherein, the first answering instruction is generated after the first terminal device detects an answering operation.
步骤830可包括:若接收到第二终端设备发送的第二接听指令,则确定接听第二终端设备对应的来电通话,音频输出设备输出第二终端设备传输的语音数据;其中,第二接听指令是第二终端设备检测到接听操作后生成的。Step 830 may include: if a second answering instruction sent by the second terminal device is received, determine to answer the incoming call corresponding to the second terminal device, and the audio output device outputs the voice data transmitted by the second terminal device; wherein, the second answering instruction It is generated after the second terminal device detects the answering operation.
在一些实施例中,步骤820及步骤830,可包括:响应检测到的接听操作,则按照预设规则确定接听操作对应的目标终端设备,若目标终端设备为第一终端设备,则音频输出设备输出第一终端设备传输的语音数据,若目标终端设备为第二终端设备,则音频输出设备输出第二终端设备传输的语音数据。In some embodiments, step 820 and step 830 may include: in response to the detected answering operation, then determine the target terminal device corresponding to the answering operation according to preset rules, if the target terminal device is the first terminal device, the audio output device Outputting the voice data transmitted by the first terminal device, if the target terminal device is the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
其中,预设规则包括接听操作的操作方式,和/或,第一终端设备及第二终端设备分别对应的通话优先级。Wherein, the preset rule includes an operation mode of the answering operation, and/or call priorities respectively corresponding to the first terminal device and the second terminal device.
在音频输出设备检测到接听操作时,可根据预设规则判断该接听操作对应的是接听第一终端设备的来电还是接听第二终端设备的来电。具体的关于操作方式及通话优先级的描述可参考上述实施例中的相关描述,在此不再重复赘述。When the audio output device detects an answering operation, it may be determined according to a preset rule whether the answering operation corresponds to answering an incoming call of the first terminal device or an incoming call of the second terminal device. For specific descriptions about the operation mode and call priority, reference may be made to the related descriptions in the foregoing embodiments, which will not be repeated here.
在一些实施例中,在步骤810之前,该方法还可包括:接收第二终端设备发送的第二来电请求及第二语音传输链路建立请求,拒绝该第二语音传输链路;接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求,拒绝该第一语音传输链路建立请求。In some embodiments, before step 810, the method may further include: receiving a second incoming call request and a second voice transmission link establishment request sent by the second terminal device, rejecting the second voice transmission link; receiving the first The first incoming call request and the first voice transmission link establishment request sent by the terminal device reject the first voice transmission link establishment request.
步骤820,可包括:若确定接听第一来电请求对应的来电通话,则与第一终端设备建立第一语音传输链路,以通过第一语音传输链路与第一终端设备进行语音数据传输,并输出第一终端设备传输的语音数据。Step 820 may include: if it is determined to answer the incoming call corresponding to the first incoming call request, establishing a first voice transmission link with the first terminal device, so as to perform voice data transmission with the first terminal device through the first voice transmission link, And output the voice data transmitted by the first terminal device.
步骤830,可包括:若确定接听第二来电请求对应的来电通话,则与第二终端设备建立第二语音传输链路,以通过第二语音传输链路与第二终端设备进行语音数据传输,并输出第二终端设备传输的语音数据。Step 830 may include: if it is determined to answer the incoming call corresponding to the second incoming call request, establishing a second voice transmission link with the second terminal device, so as to perform voice data transmission with the second terminal device through the second voice transmission link, And output the voice data transmitted by the second terminal device.
可选地,在接收到第二终端设备发送的第二来电请求后,音频输出设备可输出本地存储的第二终端设备对应的第二来电提醒信息,在接收到第一终端设备发送的第一来电请求后,音频输出设备可将本地存储的第一终端设备对应的第一来电提醒信息及第二来电提醒信息混合输出,或输出第三来电提醒信息。Optionally, after receiving the second incoming call request sent by the second terminal device, the audio output device may output locally stored second incoming call reminder information corresponding to the second terminal device; After the incoming call request, the audio output device may mix and output the locally stored first incoming call reminder information and the second incoming call reminding information corresponding to the first terminal device, or output the third incoming call reminding information.
需要说明的是,本申请实施例的描述可参考上述各实施例中的相关描述,在此不再重复赘述。It should be noted that, for descriptions of the embodiments of the present application, reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here.
在本申请实施例中,当两个终端设备在同一时间段均接收到来电时,在确定接听其中一终端设备的来电后,音频输出设备播放接听来电的终端设备的通话语音,需要接听来电的终端设备可更快、更直接地抢占音频输出设备,提高用户利用音频输出设备接听来电的效率,满足了用户在不同场景下的实际需求。In the embodiment of the present application, when two terminal devices receive incoming calls at the same time period, after determining to answer the incoming call of one of the terminal devices, the audio output device will play the call voice of the terminal device that answers the call. The terminal device can seize the audio output device faster and more directly, improve the efficiency of users to answer incoming calls by using the audio output device, and meet the actual needs of users in different scenarios.
图9为一个实施例中通话控制装置的框图,应用于上述的音频输出设备,音频输出设备与至少两个终端设备建立蓝牙连接。通话控制装置900可包括请求接收模块910、请求拒绝模块920及链路建立模块930。Fig. 9 is a block diagram of a call control device in an embodiment, which is applied to the above-mentioned audio output device, and the audio output device establishes Bluetooth connections with at least two terminal devices. The call control device 900 may include a request receiving module 910 , a request rejecting module 920 and a link establishing module 930 .
请求接收模块910,用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求。The request receiving module 910 is configured to receive the first incoming call request and the first voice transmission link establishment request sent by the first terminal device.
请求拒绝模块920,用于拒绝第一语音传输链路建立请求,并输出第一来电请求对应的第一来电提醒信息。The request rejecting module 920 is configured to reject the first voice transmission link establishment request, and output first incoming call reminder information corresponding to the first incoming call request.
在一个实施例中,请求拒绝模块920,还用于不对第一语音传输链路建立请求进行响应;或,向第一终端设备发送拒绝指令,拒绝指令用于表征音频输出设备拒绝与第一终端设备建立第一语音传输链路。In one embodiment, the request rejection module 920 is further configured not to respond to the first voice transmission link establishment request; or, to send a rejection instruction to the first terminal device, and the rejection instruction is used to indicate that the audio output device refuses to communicate with the first terminal device. The device establishes a first voice transmission link.
链路建立模块930,用于在确定接听第一来电请求对应的通话时,与第一终端设备建立第一语音传输链路,以通过第一语音传输链路传输语音数据。The link establishment module 930 is configured to establish a first voice transmission link with the first terminal device when it is determined to answer the call corresponding to the first incoming call request, so as to transmit voice data through the first voice transmission link.
在一个实施例中,链路建立模块930,还用于在确定接听第一来电请求对应的通话时,向第一终端设备发送第二语音传输链路建立请求,以使第二终端设备根据第二语音传输链路建立请求与音频输出设备建立第一语音传输链路,并通过第一语音传输链路传输语音数据。In one embodiment, the link establishment module 930 is further configured to send a second voice transmission link establishment request to the first terminal device when it is determined to answer the call corresponding to the first incoming call request, so that the second terminal device 2. A voice transmission link establishment request to establish a first voice transmission link with the audio output device, and transmit voice data through the first voice transmission link.
在本申请实施例中,能够避免第一终端设备在用户没有接听通话意愿的情况下对音频输出设备进行抢占,减少对音频输出设备的正常使用的影响,更加贴合用户的实际需求。In the embodiment of the present application, it is possible to prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, reduce the impact on the normal use of the audio output device, and better meet the actual needs of the user.
在一个实施例中,请求拒绝模块920,还用于若音频输出设备当前处于占用状态,则拒绝第一语音传输链路建立请求,并输出与第一来电请求对应的第一来电提醒信息。其中,占用状态为音频输出设备与第二终端设备进行音频数据传输的状态,第二终端设备为至少两个终端设备中除第一终端设备以外的任一终端设备。In one embodiment, the request rejection module 920 is further configured to reject the first voice transmission link establishment request if the audio output device is currently in an occupied state, and output first call reminder information corresponding to the first call request. Wherein, the occupied state is a state in which the audio output device is transmitting audio data with the second terminal device, and the second terminal device is any terminal device except the first terminal device among the at least two terminal devices.
在一个实施例中,链路建立模块930,还用于若音频输出设备当前不处于占用状态,则响应第一语音传输链路建立请求,与第一终端设备建立第一语音传输链路;通过第一语音传输链路接收第一终端设备发送的第二响铃音频数据,并输出第二响铃音频数据;以及用于在确定接听第一来电请求对应的通话时,通过第一语音传输链路与第一终端设备进行语音数据传输。In one embodiment, the link establishment module 930 is further configured to, if the audio output device is not currently in an occupied state, respond to a first voice transmission link establishment request, and establish a first voice transmission link with the first terminal device; by The first voice transmission link receives the second ringing audio data sent by the first terminal device, and outputs the second ringing audio data; and is used to pass the first voice transmission link when it is determined to answer the call corresponding to the first incoming call request voice data transmission with the first terminal device.
在一个实施例中,占用状态包括:音频输出设备与第二终端设备通过第二语音传输链路进行音频数据传输的状态链路。链路建立模块930,还用于在确定接听第一来电请求对应的通话时,断开第二语音传输链路,并与第一终端设备建立第一语音传输链路。In an embodiment, the occupied state includes: a state link in which the audio output device and the second terminal device perform audio data transmission through the second voice transmission link. The link establishment module 930 is further configured to disconnect the second voice transmission link and establish the first voice transmission link with the first terminal device when it is determined to answer the call corresponding to the first incoming call request.
在一个实施例中,上述的通话控制装置900,还包括指令发送模块。指令发送模块,用于向第二终端设备发送控制指令,该控制指令用于指示第二终端设备通过扬声器输出第二终端设备产生的音频数据。In one embodiment, the above-mentioned call control device 900 further includes an instruction sending module. The instruction sending module is configured to send a control instruction to the second terminal device, where the control instruction is used to instruct the second terminal device to output the audio data generated by the second terminal device through the speaker.
在一个实施例中,请求接收模块910,还用于接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求。In one embodiment, the request receiving module 910 is further configured to receive the second incoming call request and the third voice transmission link establishment request sent by the second terminal device.
链路建立模块930,还用于若音频输出设备不处于占用状态,则响应第三语音传输链路建立请求,与第二终端设备建立第二语音传输链路;以及用于通过第二语音传输链路接收第二终端设备发送的第一响铃音频数据,并输出第一响铃音频数据。The link establishment module 930 is also configured to, if the audio output device is not in the occupied state, respond to the third voice transmission link establishment request, and establish a second voice transmission link with the second terminal device; The link receives the first ringing audio data sent by the second terminal device, and outputs the first ringing audio data.
在一个实施例中,链路建立模块930,还用于在确定接听第二来电请求对应的通话时,通过第二语音传输链路与第一终端设备进行语音数据传输。In one embodiment, the link establishment module 930 is further configured to perform voice data transmission with the first terminal device through the second voice transmission link when it is determined to answer the call corresponding to the second incoming call request.
在一个实施例中,请求接收模块910,还用于接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求。In one embodiment, the request receiving module 910 is further configured to receive the second incoming call request and the third voice transmission link establishment request sent by the second terminal device.
请求拒绝模块920,还用于拒绝第三语音传输链路建立请求,并输出与第二来电请求对应的第二来电提醒信息。The request rejection module 920 is further configured to reject the third voice transmission link establishment request, and output second incoming call reminder information corresponding to the second incoming call request.
链路建立模块930,还用于在确定接听第二来电请求对应的通话时,与第二终端设备建立第二语音传输链路,并通过第二语音传输链路与第一终端设备进行语音数据传输。The link establishment module 930 is further configured to establish a second voice transmission link with the second terminal device when it is determined to answer the call corresponding to the second incoming call request, and communicate voice data with the first terminal device through the second voice transmission link. transmission.
在一个实施例中,链路建立模块930,还用于在与第一终端设备建立第一语音传输链路之后,若确定第一终端设备结束通话,且第二终端设备仍处于来电状态或通话状态,则断开第一语音传输链路,并与第二终端设备重新建立第二语音传输链路。In one embodiment, the link establishment module 930 is further configured to, after establishing the first voice transmission link with the first terminal device, if it is determined that the first terminal device ends the call, and the second terminal device is still in an incoming call state or a call status, disconnect the first voice transmission link, and re-establish the second voice transmission link with the second terminal device.
在本申请实施例中,第一终端设备在来电阶段不会对音频输出设备进行抢占,可避免第一终端设备在用户没有接听通话意愿的情况下对音频输出设备进行抢占,减少对第二终端设备使用音频输出设备的影响,更加贴合用户的实际需求。In the embodiment of this application, the first terminal device will not preempt the audio output device during the incoming call, which can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, and reduce the need for the second terminal. The impact of the device using the audio output device is more in line with the actual needs of the user.
在一个实施例中,请求接收模块910,还用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求,以及接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求。In one embodiment, the request receiving module 910 is also configured to receive the first call request and the first voice transmission link establishment request sent by the first terminal device, and receive the second call request and the third call request sent by the second terminal device. Voice transmission link establishment request.
请求拒绝模块920,还用于拒绝第一语音传输链路建立请求及第三语音传输链路建立请求,并输出与第一来电请求对应的第一来电提醒信息及与第二来电请求对应的第二来电提醒信息。The request rejection module 920 is further configured to reject the first voice transmission link establishment request and the third voice transmission link establishment request, and output the first incoming call reminder information corresponding to the first incoming call request and the second incoming call corresponding to the second incoming call request. Two call reminder information.
在一个实施例中,上述的通话控制装置900,还可包括接听确定模块。In an embodiment, the above-mentioned call control apparatus 900 may further include an answer determination module.
接听确定模块,用于若在音频输出设备端检测到接听第一终端设备的第一接听操作,则确定接听第一来电请求对应的通话;或者,若在音频输出设备端检测到接听操作,且第一终端设备的通话优先级高于第二终端设备的通话优先级,则确定接听第一来电请求对应的通话;或者,若接收到第一终端设备发送的第一接听指令,则确定接听第一来电话请求对应的通话,其中,第一接听指令为第一终端设备在检测到接听操作时向音频输出设备发送的。The answering determination module is configured to determine to answer the call corresponding to the first incoming call request if the first answering operation of the first terminal device is detected at the audio output device end; or, if the answering operation is detected at the audio output device end, and The call priority of the first terminal device is higher than the call priority of the second terminal device, then determine to answer the call corresponding to the first incoming call request; or, if the first answering instruction sent by the first terminal device is received, determine to answer the call An incoming call requests a corresponding call, wherein the first answering instruction is sent by the first terminal device to the audio output device when an answering operation is detected.
在本申请实施例中,可在音频输出设备和/或终端设备上进行接听操作,接听来电的方式更为灵活且多样化,满足用户在不同场景下的不同需求。In the embodiment of the present application, the answering operation can be performed on the audio output device and/or the terminal device, and the ways of answering incoming calls are more flexible and diverse, meeting different needs of users in different scenarios.
图10为另一个实施例中通话控制装置的框图,应用于音频输出设备,该通话控制装置1000可包括请求接收模块1010、占用判断模块1020、拒绝模块1030及响应模块1040。10 is a block diagram of a call control device in another embodiment, which is applied to an audio output device. The call control device 1000 may include a request receiving module 1010 , an occupation judging module 1020 , a rejecting module 1030 and a responding module 1040 .
请求接收模块1010,用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求。The request receiving module 1010 is configured to receive the first incoming call request and the first voice transmission link establishment request sent by the first terminal device.
占用判断模块1020,用于判断音频输出设备是否处于占用状态;其中,占用状态为音频输出设备与第二终端设备进行音频数据传输的状态,第二终端设备为至少两个终端设备中除第一终端设备以外的任一终端设备。 Occupancy judging module 1020, configured to judge whether the audio output device is in an occupied state; wherein, the occupied state is a state in which the audio output device and a second terminal device perform audio data transmission, and the second terminal device is at least two terminal devices except the first Any terminal equipment other than terminal equipment.
拒绝模块1030,用于若音频输出设备处于占用状态,则拒绝第一语音传输链路建立请求,并输出与第一来电请求对应的第一来电提醒信息,以及在确定接听第一来电请求对应的通话时,与第一终端设备建立第一语音传输链路,以通过第一语音传输链路传输语音数据。The rejecting module 1030 is configured to reject the first voice transmission link establishment request if the audio output device is in an occupied state, and output the first incoming call reminder information corresponding to the first incoming call request, and the corresponding first incoming call request when it is determined to answer the first incoming call request. During a call, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link.
响应模块1040,用于若音频输出设备不处于占用状态,则响应第一语音传输链路建立请求,与第一终端设备建立第一语音传输链路,通过第一语音传输链路接收第一终端设备发送的第二响铃音频数据,并输出第二响铃音频数据,以及在确定接听第一来电请求对应的通话时,通过第一语音传输链路与第一终端设备进行语音数据传输。The response module 1040 is configured to, if the audio output device is not in the occupied state, respond to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, and receive the first terminal device through the first voice transmission link. The device sends the second ringing audio data, outputs the second ringing audio data, and transmits voice data with the first terminal device through the first voice transmission link when it is determined to answer the call corresponding to the first incoming call request.
在本申请实施例中,若音频输出设备处于占用状态,则会拒绝第一终端设备在来电阶段时发送的第一语音传输链路建立请求,第一终端设备在来电阶段不会对音频输出设备进行抢占,能够避免第一终端设备在用户没有接听通话意愿的情况下对音频输出设备进行抢占,能够减少对音频输出设备的正常使用的影响。In this embodiment of the application, if the audio output device is in the occupied state, the first terminal device will reject the first voice transmission link establishment request sent by the first terminal device during the incoming call phase, and the first terminal device will not request the audio output device during the incoming call phase. Preemption can prevent the first terminal device from preempting the audio output device when the user is not willing to answer the call, and can reduce the impact on the normal use of the audio output device.
图11为另一个实施例中通话控制装置的框图,应用于音频输出设备,音频输出设备至少分别与第一终端设备及第二终端设备建立蓝牙连接。该通话控制装置1100可包括输出模块1110。Fig. 11 is a block diagram of a call control device in another embodiment, which is applied to an audio output device, and the audio output device at least respectively establishes a Bluetooth connection with a first terminal device and a second terminal device. The call control device 1100 may include an output module 1110 .
输出模块1110,用于在第一终端设备处于来电状态,且第二终端设备处于来电状态的情况下,若确定接听第一终端设备对应的来电通话,则输出第一终端设备传输的语音数据,若确定接听第二终端设备对应的来电通话,则输出第二终端设备传输的语音数据。The output module 1110 is configured to output voice data transmitted by the first terminal device if it is determined to answer the incoming call corresponding to the first terminal device when the first terminal device is in the incoming call state and the second terminal device is in the incoming call state, If it is determined to answer the incoming call corresponding to the second terminal device, the voice data transmitted by the second terminal device is output.
在一个实施例中,第一终端设备是在第二终端设备接收到来电之后,接收到来电的。输出模块1110,还用于在第二终端设备接收到来电时,输出本地存储的第二终端设备对应的第二来电提醒信息;以及用于在第一终端设备接收到来电时,将本地存储的第一终端设备对应的第一来电提醒信息及第二来电提醒信息混合输出,或,在第一终端设备接收到来电时,输出本地存储的第三来电提醒信息,第三来电提醒信息用于表征第一终端设备及第二终端设备均处于来电状态。In an embodiment, the first terminal device receives the incoming call after the second terminal device receives the incoming call. The output module 1110 is further configured to output locally stored second incoming call reminder information corresponding to the second terminal device when the second terminal device receives an incoming call; The first call reminder information and the second call reminder information corresponding to the first terminal device are mixed and output, or, when the first terminal device receives an incoming call, output the locally stored third call reminder information, and the third call reminder information is used to represent Both the first terminal device and the second terminal device are in an incoming call state.
在一个实施例中,通话控制装置1100除了包括输出模块1110,还可包括接听确定模块。In one embodiment, the call control device 1100 may further include an answer determination module in addition to the output module 1110 .
接听确定模块,用于若接收到第一终端设备发送的第一接听指令,则确定接听第一终端设备对应的来电通话,音频输出设备输出第一终端设备传输的语音数据;其中,第一接听指令是第一终端设备检测到接听操作后生成的;以及若接收到第二终端设备发送的第二接听指令,则确定接听第二终端设备对应的来电通话,音频输出设备输出第二终端设备传输的语音数据;其中,第二接听指令是第二终端设备检测到接听操作后生成的。The answering determination module is configured to determine to answer the incoming call corresponding to the first terminal device if the first answering instruction sent by the first terminal device is received, and the audio output device outputs the voice data transmitted by the first terminal device; wherein, the first answering The instruction is generated after the first terminal device detects the answering operation; and if the second answering instruction sent by the second terminal device is received, it is determined to answer the incoming call corresponding to the second terminal device, and the audio output device outputs the second terminal device transmission voice data; wherein, the second answering instruction is generated after the second terminal device detects the answering operation.
在一个实施例中,接听确定模块,还用于响应检测到的接听操作,则按照预设规则确定该接听操作对应的目标终端设备。其中,预设规则包括接听操作的操作方式,和/或,第一终端设备及第二终端设备分别对应的通话优先级。In one embodiment, the answering determination module is further configured to, in response to the detected answering operation, determine the target terminal device corresponding to the answering operation according to preset rules. Wherein, the preset rule includes an operation mode of the answering operation, and/or call priorities respectively corresponding to the first terminal device and the second terminal device.
输出模块1110,还用于若目标终端设备为第一终端设备,则输出第一终端设备传输的语音数据,若目标终端设备为第二终端设备,则输出第二终端设备传输的语音数据。The output module 1110 is further configured to output voice data transmitted by the first terminal device if the target terminal device is the first terminal device, and output voice data transmitted by the second terminal device if the target terminal device is the second terminal device.
在一个实施例中,通话控制装置1100还可包括请求接收模块及请求拒绝模块。In one embodiment, the call control device 1100 may further include a request receiving module and a request rejecting module.
请求接收模块,用于接收第二终端设备发送的第二来电请求及第二语音传输链路建立请求。The request receiving module is configured to receive the second incoming call request and the second voice transmission link establishment request sent by the second terminal device.
请求拒绝模块,用于拒绝第二语音传输链路建立请求。The request rejecting module is configured to reject the request for establishing the second voice transmission link.
请求接收模块,还用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求。The request receiving module is also configured to receive the first call request and the first voice transmission link establishment request sent by the first terminal device.
请求拒绝模块,还用于拒绝第一语音传输链路建立请求。The request rejecting module is further configured to reject the first voice transmission link establishment request.
输出模块1110,还用于若确定接听第一来电请求对应的来电通话,则与第一终端设备建立第一语音传输链路,以通过第一语音传输链路与第一终端设备进行语音数据传输,并输出第一终端设备传输的语音数据;以及若确定接听第二来电请求对应的来电通话,则与第二终端设备建立第二语音传输链路,以通过第二语音传输链路与第二终端设备进行语音数据传输,并输出第二终端设备传输的语音数据。The output module 1110 is further configured to, if it is determined to answer the incoming call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to perform voice data transmission with the first terminal device through the first voice transmission link , and output the voice data transmitted by the first terminal equipment; The terminal device transmits the voice data, and outputs the voice data transmitted by the second terminal device.
在本申请实施例中,当两个终端设备在同一时间段均接收到来电时,在确定接听其中一终端设备的来电后,音频输出设备播放接听来电的终端设备的通话语音,需要接听来电的终端设备可更快、更直接地抢占音频输出设备,提高用户利用音频输出设备接听来电的效率,满足了用户在不同场景下的实际需 求。In the embodiment of the present application, when two terminal devices receive incoming calls at the same time period, after determining to answer the incoming call of one of the terminal devices, the audio output device will play the call voice of the terminal device that answers the call. The terminal device can seize the audio output device faster and more directly, improve the efficiency of users to answer incoming calls by using the audio output device, and meet the actual needs of users in different scenarios.
图12为一个实施例中电子设备的结构框图。如图12所示,电子设备1200可以包括一个或多个如下部件:处理器1210、与处理器1210耦合的存储器1220,其中存储器1220可存储有一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器1210执行时实现如上述各实施例描述的应用于第一电子设备的基于蓝牙的控制方法。Fig. 12 is a structural block diagram of an electronic device in one embodiment. As shown in FIG. 12 , an electronic device 1200 may include one or more of the following components: a processor 1210, a memory 1220 coupled to the processor 1210, wherein the memory 1220 may store one or more computer programs, one or more computer programs It may be configured to implement the bluetooth-based control method applied to the first electronic device as described in the above embodiments when executed by one or more processors 1210 .
处理器1210可以包括一个或者多个处理核。处理器1210利用各种接口和线路连接整个电子设备1200内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用存储在存储器1220内的数据,执行电子设备1200的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1210可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块通信芯片进行实现。 Processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and circuits to connect various parts of the entire electronic device 1200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1220, and calls data stored in the memory 1220 to execute Various functions of the electronic device 1200 and processing data. Optionally, the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 1210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 1210, but implemented by a communication chip alone.
存储器1220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储电子设备1200在使用中所创建的数据等。The memory 1220 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory, ROM). The memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions. The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like. The storage data area can also store data created by the electronic device 1200 during use, and the like.
电子设备1200还可包括蓝牙模块,蓝牙模块可用于提供蓝牙通信功能,与其它电子设备建立蓝牙连接,并进行蓝牙数据传输。蓝牙模块可支持一种或多种蓝牙协议,如经典蓝牙、BLE等),但不限于此,可随着蓝牙协议的发展而变化。The electronic device 1200 can also include a Bluetooth module, which can be used to provide a Bluetooth communication function, establish a Bluetooth connection with other electronic devices, and perform Bluetooth data transmission. The bluetooth module can support one or more bluetooth protocols, such as classic bluetooth, BLE, etc.), but not limited thereto, and can change with the development of bluetooth protocols.
在一些实施例中,处理器1210,用于通过蓝牙模块接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求,指示蓝牙模块拒绝第一语音传输链路建立请求,并通过扬声器输出与第一来电请求对应的第一来电提醒信息;在确定接听第一来电请求对应的通话时,指示蓝牙模块与第一终端设备建立第一语音传输链路,以使蓝牙模块通过该第一语音传输链路传输语音数据。In some embodiments, the processor 1210 is configured to receive the first incoming call request and the first voice transmission link establishment request sent by the first terminal device through the Bluetooth module, instruct the Bluetooth module to reject the first voice transmission link establishment request, and Output the first incoming call reminder information corresponding to the first incoming call request through the loudspeaker; when it is determined to answer the call corresponding to the first incoming call request, instruct the bluetooth module to establish a first voice transmission link with the first terminal device, so that the bluetooth module passes through the call The first voice transmission link transmits voice data.
可以理解地,电子设备1200可包括比上述结构框图中更多或更少的结构元件,例如,包括电源模块、物理按键、传感器等,还可在此不进行限定。It can be understood that the electronic device 1200 may include more or less structural elements than those in the above structural block diagram, for example, including a power module, physical keys, sensors, etc., and there is no limitation here.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的应用于第一电子设备的基于蓝牙的控制方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the Bluetooth-based control method applied to the first electronic device as described in the above-mentioned embodiments is implemented.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于第一电子设备的基于蓝牙的控制方法。The embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented. A bluetooth-based control method for a first electronic device.
在一个实施例中,还提供一种电子设备,该电子设备包括存储器及处理器,存储器中存储有计算机程序,该计算机程序被该处理器执行时,使得该处理器实现如上各实施例中描述的应用于第二电子设备的基于蓝牙的控制方法。In one embodiment, there is also provided an electronic device, the electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the processor realizes the above described in each embodiment. A Bluetooth-based control method applied to a second electronic device.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的应用于第二电子设备的基于蓝牙的控制方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the Bluetooth-based control method applied to the second electronic device as described in the above-mentioned embodiments is implemented.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于第二电子设备的基于蓝牙的控制方法。The embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented. A Bluetooth-based control method for a second electronic device.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically Erasable PROM,EEPROM)或闪存。易失性存储器可包括随机存取存储器(random access memory,RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM可为多种形式,诸如静态RAM(Static RAM,SRAM)、动态RAM(Dynamic Random Access  Memory,DRAM)、同步DRAM(synchronous DRAM,SDRAM)、双倍数据率SDRAM(Double Data Rate SDRAM,DDR SDRAM)、增强型SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Synchlink DRAM,SLDRAM)、存储器总线直接RAM(Rambus DRAM,RDRAM)及直接存储器总线动态RAM(Direct Rambus DRAM,DRDRAM)。Any reference to memory, storage, database or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM can take many forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double data rate) Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Synchlink DRAM, SLDRAM), memory bus direct RAM (Rambus DRAM, RDRAM) and direct memory bus dynamic RAM (Direct Rambus DRAM) , DRDRAM).
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。需要说明的,本申请中的“多个”包括“两个或两个以上”。It should be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application. It should be noted that "plurality" in this application includes "two or more".
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In various embodiments of the present application, it should be understood that the sequence numbers of the above-mentioned processes do not necessarily mean the order of execution. The implementation of the examples constitutes no limitation.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, located in one place, or distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
以上对本申请实施例公开的一种通话控制方法、装置、电子设备及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A call control method, device, electronic device, and computer-readable storage medium disclosed in the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The above embodiments The description is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, based on the idea of this application, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the application.

Claims (27)

  1. 一种通话控制方法,其特征在于,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述方法包括:A call control method, characterized in that it is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices, and the method includes:
    接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;receiving a first call request and a first voice transmission link establishment request sent by the first terminal device;
    拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息;Rejecting the first voice transmission link establishment request, and outputting first incoming call reminder information corresponding to the first incoming call request;
    在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路传输语音数据。When it is determined to answer the call corresponding to the first incoming call request, a first voice transmission link is established with the first terminal device, so as to transmit voice data through the first voice transmission link.
  2. 根据权利要求1所述的方法,其特征在于,所述与所述第一终端设备建立第一语音传输链路,包括:The method according to claim 1, wherein said establishing a first voice transmission link with said first terminal device comprises:
    向所述第一终端设备发送第二语音传输链路建立请求,以使所述第二终端设备根据所述第二语音传输链路建立请求与所述音频输出设备建立第一语音传输链路。Sending a second voice transmission link establishment request to the first terminal device, so that the second terminal device establishes a first voice transmission link with the audio output device according to the second voice transmission link establishment request.
  3. 根据权利要求1所述的方法,其特征在于,所述拒绝所述第一语音传输链路建立请求,包括:The method according to claim 1, wherein said rejecting said first voice transmission link establishment request comprises:
    不对所述第一语音传输链路建立请求进行响应;或,not responding to the first voice transmission link establishment request; or,
    向所述第一终端设备发送拒绝指令,所述拒绝指令用于表征所述音频输出设备拒绝与所述第一终端设备建立第一语音传输链路。Sending a rejection instruction to the first terminal device, where the rejection instruction is used to indicate that the audio output device refuses to establish a first voice transmission link with the first terminal device.
  4. 根据权利要求1~3任一所述的方法,其特征在于,所述拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息,包括:The method according to any one of claims 1 to 3, wherein the rejecting the first voice transmission link establishment request, and outputting the first incoming call reminder information corresponding to the first incoming call request includes:
    若所述音频输出设备当前处于占用状态,则拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息;其中,所述占用状态为所述音频输出设备与第二终端设备进行音频数据传输的状态,所述第二终端设备为所述至少两个终端设备中除所述第一终端设备以外的任一终端设备。If the audio output device is currently in an occupied state, reject the first voice transmission link establishment request, and output first incoming call reminder information corresponding to the first incoming call request; wherein, the occupied state is the A state in which the audio output device is transmitting audio data with a second terminal device, and the second terminal device is any terminal device in the at least two terminal devices except the first terminal device.
  5. 根据权利要求4所述的方法,其特征在于,所述占用状态包括:所述音频输出设备与所述第二终端设备通过第二语音传输链路进行音频数据传输的状态;The method according to claim 4, wherein the occupied state comprises: a state in which the audio output device and the second terminal device perform audio data transmission through a second voice transmission link;
    所述在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,包括:The establishing a first voice transmission link with the first terminal device when determining to answer the call corresponding to the first incoming call request includes:
    在确定接听所述第一来电请求对应的通话时,断开所述第二语音传输链路,并与所述第一终端设备建立第一语音传输链路。When it is determined to answer the call corresponding to the first incoming call request, disconnect the second voice transmission link, and establish a first voice transmission link with the first terminal device.
  6. 根据权利要求5所述的方法,其特征在于,在所述接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求之前,所述方法还包括:The method according to claim 5, wherein before receiving the first call request and the first voice transmission link establishment request sent by the first terminal device, the method further comprises:
    接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求;receiving a second incoming call request and a third voice transmission link establishment request sent by the second terminal device;
    若所述音频输出设备不处于占用状态,则响应所述第三语音传输链路建立请求,与所述第二终端设备建立第二语音传输链路;If the audio output device is not in the occupied state, then respond to the third voice transmission link establishment request, and establish a second voice transmission link with the second terminal device;
    通过所述第二语音传输链路接收所述第二终端设备发送的第一响铃音频数据,并输出所述第一响铃音频数据。receiving the first ringing audio data sent by the second terminal device through the second voice transmission link, and outputting the first ringing audio data.
  7. 根据权利要求6所述的方法,其特征在于,在所述输出所述第一响铃音频数据之后,所述方法还包括:The method according to claim 6, wherein after said outputting said first ringing audio data, said method further comprises:
    在确定接听所述第二来电请求对应的通话时,通过所述第二语音传输链路与所述第一终端设备进行语音数据传输。When it is determined to answer the call corresponding to the second incoming call request, perform voice data transmission with the first terminal device through the second voice transmission link.
  8. 根据权利要求5所述的方法,其特征在于,在所述接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求之前,所述方法还包括:The method according to claim 5, wherein before receiving the first call request and the first voice transmission link establishment request sent by the first terminal device, the method further comprises:
    接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求;receiving a second incoming call request and a third voice transmission link establishment request sent by the second terminal device;
    拒绝所述第三语音传输链路建立请求,并输出与所述第二来电请求对应的第二来电提醒信息;Rejecting the third voice transmission link establishment request, and outputting second incoming call reminder information corresponding to the second incoming call request;
    在确定接听所述第二来电请求对应的通话时,与所述第二终端设备建立第二语音传输链路,并通过所述第二语音传输链路与所述第一终端设备进行语音数据传输。When it is determined to answer the call corresponding to the second incoming call request, establish a second voice transmission link with the second terminal device, and perform voice data transmission with the first terminal device through the second voice transmission link .
  9. 根据权利要求5~8任一所述的方法,其特征在于,所述输出与所述第一来电请求对应的第一来电提醒信息,包括:The method according to any one of claims 5-8, wherein the outputting the first call reminder information corresponding to the first call request includes:
    将通过所述第二语音传输链路接收的音频数据与所述第一来电提醒信息混合输出。Mixing and outputting the audio data received through the second voice transmission link and the first call reminder information.
  10. 根据权利要求5~8任一所述的方法,其特征在于,在所述断开所述第二语音传输链路,并与所述第二终端设备建立第一语音传输链路之后,所述方法还包括:The method according to any one of claims 5-8, characterized in that, after said disconnecting said second voice transmission link and establishing a first voice transmission link with said second terminal device, said Methods also include:
    向所述第二终端设备发送控制指令,所述控制指令用于指示所述第二终端设备通过扬声器输出所述第二终端设备产生的音频数据。sending a control instruction to the second terminal device, where the control instruction is used to instruct the second terminal device to output the audio data generated by the second terminal device through a speaker.
  11. 根据权利要求5所述的方法,其特征在于,在所述断开所述第二语音传输链路,并与所述第二终端设备建立第一语音传输链路之后,所述方法还包括:The method according to claim 5, wherein after disconnecting the second voice transmission link and establishing a first voice transmission link with the second terminal device, the method further comprises:
    若确定所述第一终端设备结束通话,且所述第二终端设备仍处于来电状态或通话状态,则断开所述第一语音传输链路,并与所述第二终端设备重新建立所述第二语音传输链路。If it is determined that the first terminal device ends the call, and the second terminal device is still in the incoming call state or in the call state, disconnect the first voice transmission link, and re-establish the Second voice transmission link.
  12. 根据权利要求1所述的方法,其特征在于,所述接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求,包括:The method according to claim 1, wherein the receiving the first call request and the first voice transmission link establishment request sent by the first terminal device comprises:
    接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求,以及接收第二终端设备发送的第二来电请求及第三语音传输链路建立请求;receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device, and receiving a second incoming call request and a third voice transmission link establishment request sent by the second terminal device;
    所述拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息,包括:The rejecting the first voice transmission link establishment request, and outputting the first incoming call reminder information corresponding to the first incoming call request includes:
    拒绝所述第一语音传输链路建立请求及所述第三语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息及与所述第二来电请求对应的第二来电提醒信息。Rejecting the first voice transmission link establishment request and the third voice transmission link establishment request, and outputting the first incoming call reminder information corresponding to the first incoming call request and the first incoming call reminder information corresponding to the second incoming call request Two call reminder information.
  13. 根据权利要求5~12任一所述的方法,其特征在于,所述在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路之前,包括:The method according to any one of claims 5 to 12, wherein when determining to answer the call corresponding to the first incoming call request, before establishing the first voice transmission link with the first terminal device, including :
    若在所述音频输出设备端检测到接听所述第一终端设备的第一接听操作,则确定接听所述第一来电请求对应的通话;或者,If the first answering operation of answering the first terminal device is detected on the audio output device side, then determine to answer the call corresponding to the first incoming call request; or,
    若在所述音频输出设备端检测到接听操作,且所述第一终端设备的通话优先级高于所述第二终端设备的通话优先级,则确定接听所述第一来电请求对应的通话;或者,If an answering operation is detected at the audio output device, and the call priority of the first terminal device is higher than that of the second terminal device, then determine to answer the call corresponding to the first incoming call request; or,
    若接收到所述第一终端设备发送的第一接听指令,则确定接听所述第一来电话请求对应的通话,其中,所述第一接听指令为所述第一终端设备在检测到接听操作时向所述音频输出设备发送的。If the first answering instruction sent by the first terminal device is received, it is determined to answer the call corresponding to the first incoming call request, wherein the first answering instruction is when the first terminal device detects the answering operation is sent to the audio output device.
  14. 根据权利要求1所述的方法,其特征在于,在所述接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求之后,所述方法还包括:The method according to claim 1, characterized in that, after receiving the first incoming call request and the first voice transmission link establishment request sent by the first terminal device, the method further comprises:
    若所述音频输出设备当前不处于占用状态,则响应所述第一语音传输链路建立请求,与所述第一终端设备建立第一语音传输链路;If the audio output device is not currently in an occupied state, then respond to the first voice transmission link establishment request, and establish a first voice transmission link with the first terminal device;
    通过所述第一语音传输链路接收所述第一终端设备发送的第二响铃音频数据,并输出所述第二响铃音频数据;receiving the second ringing audio data sent by the first terminal device through the first voice transmission link, and outputting the second ringing audio data;
    在确定接听所述第一来电请求对应的通话时,通过所述第一语音传输链路与所述第一终端设备进行语音数据传输。When it is determined to answer the call corresponding to the first incoming call request, perform voice data transmission with the first terminal device through the first voice transmission link.
  15. 根据权利要求1~3、14任一所述的方法,其特征在于,所述第一终端设备为支持蓝牙带内铃声功能的终端设备,所述蓝牙带内铃声功能指的是在接收到来电呼叫时触发与音频输出设备建立语音传输链路,以通过语音传输链路向音频输出设备传输响铃音频的功能。The method according to any one of claims 1-3, 14, wherein the first terminal device is a terminal device supporting the Bluetooth in-band ringtone function, and the Bluetooth in-band ringtone function refers to Trigger the establishment of a voice transmission link with the audio output device when calling, so as to transmit the ringing audio to the audio output device through the voice transmission link.
  16. 一种通话控制方法,其特征在于,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述方法包括:A call control method, characterized in that it is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices, and the method includes:
    接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device;
    判断所述音频输出设备是否处于占用状态;其中,所述占用状态为所述音频输出设备与第二终端设备进行音频数据传输的状态,所述第二终端设备为所述至少两个终端设备中除所述第一终端设备以外的任一终端设备;Judging whether the audio output device is in an occupied state; wherein, the occupied state is a state in which the audio output device and a second terminal device perform audio data transmission, and the second terminal device is one of the at least two terminal devices Any terminal device other than the first terminal device;
    若是,则拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息,以及在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路传输语音数据;和/或,If so, rejecting the first voice transmission link establishment request, and outputting the first incoming call reminder information corresponding to the first incoming call request, and when it is determined to answer the call corresponding to the first incoming call request, communicate with the The first terminal device establishes a first voice transmission link to transmit voice data through the first voice transmission link; and/or,
    若否,则响应所述第一语音传输链路建立请求,与所述第一终端设备建立第一语音传输链路,通过所述第一语音传输链路接收所述第一终端设备发送的第二响铃音频数据,并输出所述第二响铃音频数据,以及在确定接听所述第一来电请求对应的通话时,通过所述第一语音传输链路与所述第一终端设备进行语音数据传输。If not, in response to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, and receive the first voice transmission link sent by the first terminal device through the first voice transmission link Two ringing audio data, and output the second ringing audio data, and when it is determined to answer the call corresponding to the first incoming call request, make a voice call with the first terminal device through the first voice transmission link data transmission.
  17. 根据权利要求16所述的方法,其特征在于,所述占用状态包括:所述音频输出设备与所述第二终端设备通过第二语音传输链路进行音频数据传输的状态;所述在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,包括:The method according to claim 16, wherein the occupation status includes: the status of audio data transmission between the audio output device and the second terminal device through the second voice transmission link; When the first incoming call requests a corresponding call, establishing a first voice transmission link with the first terminal device includes:
    在确定接听所述第一来电请求对应的通话时,所述第二语音传输链路,并与所述第一终端设备建立 第一语音传输链路。When it is determined to answer the call corresponding to the first incoming call request, the second voice transmission link is established, and the first voice transmission link is established with the first terminal device.
  18. 一种通话控制方法,其特征在于,应用于音频输出设备,所述音频输出设备至少分别与第一终端设备及第二终端设备建立蓝牙连接,所述方法包括:A call control method, characterized in that it is applied to an audio output device, and the audio output device at least respectively establishes a Bluetooth connection with a first terminal device and a second terminal device, and the method includes:
    在所述第一终端设备处于来电状态,且所述第二终端设备处于来电状态的情况下,若确定接听所述第一终端设备对应的来电通话,则所述音频输出设备输出所述第一终端设备传输的语音数据,若确定接听所述第二终端设备对应的来电通话,则所述音频输出设备输出所述第二终端设备传输的语音数据。When the first terminal device is in the incoming call state and the second terminal device is in the incoming call state, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the first For the voice data transmitted by the terminal device, if it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
  19. 根据权利要求18所述的方法,其特征在于,所述第一终端设备是在所述第二终端设备接收到来电之后,接收到来电的,所述方法还包括:The method according to claim 18, wherein the first terminal device receives the incoming call after the second terminal device receives the incoming call, and the method further comprises:
    在所述第二终端设备接收到来电时,所述音频输出设备输出本地存储的所述第二终端设备对应的第二来电提醒信息;When the second terminal device receives an incoming call, the audio output device outputs locally stored second incoming call reminder information corresponding to the second terminal device;
    在所述第一终端设备接收到来电时,所述音频输出设备将本地存储的所述第一终端设备对应的第一来电提醒信息及所述第二来电提醒信息混合输出,或,在所述第一终端设备接收到来电时,所述音频输出设备输出本地存储的第三来电提醒信息,所述第三来电提醒信息用于表征所述第一终端设备及第二终端设备均处于来电状态。When the first terminal device receives an incoming call, the audio output device mixes and outputs the locally stored first call reminder information corresponding to the first terminal device and the second call reminder information, or, in the When the first terminal device receives an incoming call, the audio output device outputs locally stored third call reminder information, where the third call reminder information is used to indicate that both the first terminal device and the second terminal device are in an incoming call state.
  20. 根据权利要求18所述的方法,其特征在于,所述若确定接听所述第一终端设备对应的来电通话,则所述音频输出设备输出所述第一终端设备传输的语音数据,若确定接听所述第二终端设备对应的来电通话,则所述音频输出设备输出所述第二终端设备传输的语音数据,包括:The method according to claim 18, wherein if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the voice data transmitted by the first terminal device, and if it is determined to answer the call For an incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device, including:
    若接收到所述第一终端设备发送的第一接听指令,则确定接听所述第一终端设备对应的来电通话,所述音频输出设备输出所述第一终端设备传输的语音数据;其中,所述第一接听指令是所述第一终端设备检测到接听操作后生成的;If the first answering instruction sent by the first terminal device is received, it is determined to answer the incoming call corresponding to the first terminal device, and the audio output device outputs the voice data transmitted by the first terminal device; wherein, the The first answering instruction is generated after the first terminal device detects an answering operation;
    若接收到所述第二终端设备发送的第二接听指令,则确定接听所述第二终端设备对应的来电通话,所述音频输出设备输出所述第二终端设备传输的语音数据;其中,所述第二接听指令是所述第二终端设备检测到接听操作后生成的。If the second answering instruction sent by the second terminal device is received, it is determined to answer the incoming call corresponding to the second terminal device, and the audio output device outputs the voice data transmitted by the second terminal device; wherein, the The second answering instruction is generated after the second terminal device detects an answering operation.
  21. 根据权利要求18所述的方法,其特征在于,所述若确定接听所述第一来电请求对应的通话,则所述音频输出设备输出所述第一终端设备传输的语音数据,若确定接听所述第二来电请求对应的通话,则所述音频输出设备输出所述第二终端设备传输的语音数据,包括:The method according to claim 18, wherein if it is determined to answer the call corresponding to the first incoming call request, the audio output device outputs the voice data transmitted by the first terminal device, and if it is determined to answer the call If the call corresponding to the second incoming call request is made, the audio output device outputs the voice data transmitted by the second terminal device, including:
    响应检测到的接听操作,则按照预设规则确定所述接听操作对应的目标终端设备,若所述目标终端设备为所述第一终端设备,则所述音频输出设备输出所述第一终端设备传输的语音数据,若所述目标终端设备为所述第二终端设备,则所述音频输出设备输出所述第二终端设备传输的语音数据;In response to the detected answering operation, determine the target terminal device corresponding to the answering operation according to preset rules, and if the target terminal device is the first terminal device, the audio output device outputs the first terminal device For the transmitted voice data, if the target terminal device is the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device;
    其中,所述预设规则包括所述接听操作的操作方式,和/或,所述第一终端设备及第二终端设备分别对应的通话优先级。Wherein, the preset rule includes an operation mode of the answering operation, and/or call priorities respectively corresponding to the first terminal device and the second terminal device.
  22. 根据权利要求18~21任一所述的方法,其特征在于,在所述若确定接听所述第一终端设备对应的来电通话,则所述音频输出设备输出所述第一终端设备传输的语音数据之前,所述方法还包括:The method according to any one of claims 18-21, wherein, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the voice transmitted by the first terminal device Before the data, the method also includes:
    接收所述第二终端设备发送的第二来电请求及第二语音传输链路建立请求;receiving a second incoming call request and a second voice transmission link establishment request sent by the second terminal device;
    拒绝所述第二语音传输链路建立请求;rejecting the second voice transmission link establishment request;
    接收所述第一终端设备发送的第一来电请求及第一语音传输链路建立请求;receiving a first incoming call request and a first voice transmission link establishment request sent by the first terminal device;
    拒绝所述第一语音传输链路建立请求;rejecting the first voice transmission link establishment request;
    所述若确定接听所述第一终端设备对应的来电通话,则所述音频输出设备输出所述第一终端设备传输的语音数据,若确定接听所述第二终端设备对应的来电通话,则所述音频输出设备输出所述第二终端设备传输的语音数据,包括:If it is determined to answer the incoming call corresponding to the first terminal device, the audio output device outputs the voice data transmitted by the first terminal device; if it is determined to answer the incoming call corresponding to the second terminal device, the The audio output device outputs the voice data transmitted by the second terminal device, including:
    若确定接听所述第一来电请求对应的来电通话,则与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路与所述第一终端设备进行语音数据传输,并输出所述第一终端设备传输的语音数据;If it is determined to answer the incoming call corresponding to the first incoming call request, establish a first voice transmission link with the first terminal device, so as to exchange voice data with the first terminal device through the first voice transmission link transmit, and output the voice data transmitted by the first terminal device;
    若确定接听所述第二来电请求对应的来电通话,则与所述第二终端设备建立第二语音传输链路,以通过所述第二语音传输链路与所述第二终端设备进行语音数据传输,并输出所述第二终端设备传输的语音数据。If it is determined to answer the incoming call corresponding to the second incoming call request, establish a second voice transmission link with the second terminal device, so as to exchange voice data with the second terminal device through the second voice transmission link transmit, and output the voice data transmitted by the second terminal device.
  23. 一种通话控制装置,其特征在于,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述装置包括:A call control device, characterized in that it is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices, and the device includes:
    请求接收模块,用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;A request receiving module, configured to receive a first call request and a first voice transmission link establishment request sent by the first terminal device;
    请求拒绝模块,用于拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一 来电提醒信息;A request rejection module, configured to reject the first voice transmission link establishment request, and output the first incoming call reminder information corresponding to the first incoming call request;
    链路建立模块,用于在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路传输语音数据。A link establishing module, configured to establish a first voice transmission link with the first terminal device when it is determined to answer the call corresponding to the first incoming call request, so as to transmit voice data through the first voice transmission link.
  24. 一种通话控制装置,其特征在于,应用于音频输出设备,所述音频输出设备与至少两个终端设备建立蓝牙连接,所述装置包括:A call control device, characterized in that it is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least two terminal devices, and the device includes:
    请求接收模块,用于接收第一终端设备发送的第一来电请求及第一语音传输链路建立请求;A request receiving module, configured to receive a first call request and a first voice transmission link establishment request sent by the first terminal device;
    占用判断模块,用于判断所述音频输出设备是否处于占用状态;其中,所述占用状态为所述音频输出设备与第二终端设备进行音频数据传输的状态,所述第二终端设备为所述至少两个终端设备中除所述第一终端设备以外的任一终端设备;An occupation judging module, configured to judge whether the audio output device is in an occupied state; wherein, the occupied state is a state in which the audio output device is transmitting audio data with a second terminal device, and the second terminal device is the Any terminal device except the first terminal device among the at least two terminal devices;
    拒绝模块,用于若所述音频输出设备处于占用状态,则拒绝所述第一语音传输链路建立请求,并输出与所述第一来电请求对应的第一来电提醒信息,以及在确定接听所述第一来电请求对应的通话时,与所述第一终端设备建立第一语音传输链路,以通过所述第一语音传输链路传输语音数据;A rejection module, configured to reject the first voice transmission link establishment request if the audio output device is in an occupied state, and output the first incoming call reminder information corresponding to the first incoming call request, and when it is determined to answer the incoming call When the call corresponding to the first incoming call request is made, establish a first voice transmission link with the first terminal device, so as to transmit voice data through the first voice transmission link;
    响应模块,用于若所述音频输出设备不处于占用状态,则响应所述第一语音传输链路建立请求,与所述第一终端设备建立第一语音传输链路,通过所述第一语音传输链路接收所述第一终端设备发送的第二响铃音频数据,并输出所述第二响铃音频数据,以及在确定接听所述第一来电请求对应的通话时,通过所述第一语音传输链路与所述第一终端设备进行语音数据传输。A response module, configured to, if the audio output device is not in an occupied state, respond to the first voice transmission link establishment request, establish a first voice transmission link with the first terminal device, and pass the first voice transmission link The transmission link receives the second ringing audio data sent by the first terminal device, and outputs the second ringing audio data, and when it is determined to answer the call corresponding to the first incoming call request, through the first The voice transmission link performs voice data transmission with the first terminal device.
  25. 一种通话控制装置,其特征在于,应用于音频输出设备,所述音频输出设备至少分别与第一终端设备及第二终端设备建立蓝牙连接,所述装置包括:A call control device, characterized in that it is applied to an audio output device, and the audio output device establishes a Bluetooth connection with at least a first terminal device and a second terminal device respectively, and the device includes:
    输出模块,用于在所述第一终端设备处于来电状态,且所述第二终端设备处于来电状态的情况下,若确定接听所述第一终端设备对应的来电通话,则所述音频输出设备输出所述第一终端设备传输的语音数据,若确定接听所述第二终端设备对应的来电通话,则所述音频输出设备输出所述第二终端设备传输的语音数据。The output module is configured to: when the first terminal device is in the incoming call state and the second terminal device is in the incoming call state, if it is determined to answer the incoming call corresponding to the first terminal device, the audio output device Outputting the voice data transmitted by the first terminal device, and if it is determined to answer the incoming call corresponding to the second terminal device, the audio output device outputs the voice data transmitted by the second terminal device.
  26. 一种电子设备,其特征在于,包括存储有可执行程序代码的存储器,以及与所述存储器耦合的处理器;其中,所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1~22任一项所述的方法。An electronic device, characterized by comprising a memory storing executable program codes, and a processor coupled to the memory; wherein the processor invokes the executable program codes stored in the memory to execute The method according to any one of claims 1-22.
  27. 一种计算机可读存储介质,其存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~22任一项所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the method according to any one of claims 1-22 when executed by a processor.
PCT/CN2022/118078 2021-09-24 2022-09-09 Call control method and apparatus, and electronic device and computer-readable storage medium WO2023045784A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111122348.4A CN115915037A (en) 2021-09-24 2021-09-24 Call control method and device, electronic equipment and computer readable storage medium
CN202111122348.4 2021-09-24

Publications (1)

Publication Number Publication Date
WO2023045784A1 true WO2023045784A1 (en) 2023-03-30

Family

ID=85720034

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/118078 WO2023045784A1 (en) 2021-09-24 2022-09-09 Call control method and apparatus, and electronic device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115915037A (en)
WO (1) WO2023045784A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744244A (en) * 2023-08-15 2023-09-12 荣耀终端有限公司 Communication method, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108064445A (en) * 2016-12-30 2018-05-22 深圳市柔宇科技有限公司 Virtual reality device and its call management method
WO2020077512A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Voice communication method, electronic device, and system
CN111818503A (en) * 2020-09-08 2020-10-23 深圳市汇顶科技股份有限公司 Voice communication method, system, chip, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635482A (en) * 2016-01-26 2016-06-01 广东欧珀移动通信有限公司 Call processing method and device
WO2018023413A1 (en) * 2016-08-02 2018-02-08 张阳 Technical data feedback method used during answering phone call, and glasses
US10404847B1 (en) * 2016-09-02 2019-09-03 Amnon Unger Apparatus, method, and computer readable medium for communicating between a user and a remote smartphone
CN107509182A (en) * 2017-08-01 2017-12-22 努比亚技术有限公司 Refuse method, mobile terminal and the computer-readable recording medium of voice call
CN108319442B (en) * 2018-01-23 2019-12-10 维沃移动通信有限公司 Audio playing control method and mobile terminal
US10455078B1 (en) * 2018-07-11 2019-10-22 International Business Machines Corporation Enhancing privacy in mobile phone calls by caller controlled audio delivering modes
CN110381485B (en) * 2019-06-14 2021-01-29 华为技术有限公司 Bluetooth communication method, TWS (two way communication system) Bluetooth headset and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108064445A (en) * 2016-12-30 2018-05-22 深圳市柔宇科技有限公司 Virtual reality device and its call management method
WO2020077512A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Voice communication method, electronic device, and system
CN111818503A (en) * 2020-09-08 2020-10-23 深圳市汇顶科技股份有限公司 Voice communication method, system, chip, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744244A (en) * 2023-08-15 2023-09-12 荣耀终端有限公司 Communication method, storage medium and electronic equipment
CN116744244B (en) * 2023-08-15 2023-10-31 荣耀终端有限公司 Communication method, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN115915037A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
US11812485B2 (en) Bluetooth communication method and terminal
US8363844B2 (en) Contextual audio switching for a USB controlled audio device
US20100048133A1 (en) Audio data flow input/output method and system
CN111818503B (en) Voice communication method, system, chip, electronic equipment and storage medium
WO2018082335A1 (en) Method, apparatus, system, and device for connecting bluetooth device
US7729298B2 (en) Method and system for manipulating a shared object
CN110602681B (en) Information processing method and electronic device
WO2009014925A2 (en) Multiple interactive modes for using multiple earpieces linked to a common mobile handset
WO2023087793A1 (en) Audio service processing method and apparatus, electronic device, and storage medium
US20230325145A1 (en) Audio Control System
WO2023040517A1 (en) Audio data playback method, device, electronic equipment, and storage medium
WO2023045784A1 (en) Call control method and apparatus, and electronic device and computer-readable storage medium
CN110602683B (en) Bluetooth control method, device, mobile terminal and storage medium
KR20070049384A (en) Method of providing a multimedia video service on call waiting
CN116684856A (en) Bluetooth connection method and device
CN113286281B (en) Emergency call method and related device
WO2023109282A1 (en) Incoming call processing method and apparatus, electronic device, and storage medium
CN115696283A (en) Audio control method, electronic device, audio device, and storage medium
WO2023045800A1 (en) Call control method and apparatus, electronic device, and computer-readable storage medium
CN113271385A (en) Call forwarding method
CN110999340A (en) Near field communication device and method
WO2022051901A1 (en) Method for voice calling, system, chip, electronic device, and storage medium
WO2023035918A1 (en) Audio playing control method and apparatus, and audio output device and storage medium
WO2022228569A1 (en) Method and apparatus for bluetooth device to control transmission and electronic device
WO2024060750A1 (en) Bluetooth switching method and apparatus, bluetooth connection method and apparatus, and electronic 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: 22871832

Country of ref document: EP

Kind code of ref document: A1