WO2022257591A1 - 通话切换方法、装置、终端和计算机可读存储介质 - Google Patents

通话切换方法、装置、终端和计算机可读存储介质 Download PDF

Info

Publication number
WO2022257591A1
WO2022257591A1 PCT/CN2022/086352 CN2022086352W WO2022257591A1 WO 2022257591 A1 WO2022257591 A1 WO 2022257591A1 CN 2022086352 W CN2022086352 W CN 2022086352W WO 2022257591 A1 WO2022257591 A1 WO 2022257591A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
call
peer
quality
candidate
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2022/086352
Other languages
English (en)
French (fr)
Inventor
张忠义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2022257591A1 publication Critical patent/WO2022257591A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Definitions

  • the present application relates to computer technology, in particular to a call switching method, device, terminal and computer-readable storage medium.
  • Various embodiments of the present application provide a call switching method, device, terminal, and computer-readable storage medium.
  • a call switching method applied to a first terminal comprising:
  • the identifier of the second terminal is sent to the opposite end of the call to indicate that the end of the call is connected to the second end.
  • the terminal makes a call.
  • a call switching device applied to a first terminal comprising:
  • a state detection module configured to detect the state of components associated with the video call in the first terminal during the video call with the opposite end of the call;
  • An acquisition module configured to acquire a second terminal within a preset distance range from the first terminal
  • a sending module configured to send the identity of the second terminal to the call peer to indicate that the call peer Talk to the second terminal.
  • a terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to perform the operations of the call switching method described above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the operation of the above-mentioned method is realized.
  • the first terminal detects the status of the components associated with the video call in the first terminal during the video call with the opposite end of the call, and obtains the first terminal preview Assuming that the second terminal within the distance range detects that the components associated with the video call in the first terminal are turned off, it can be considered that the first terminal cannot continue to implement the video call, which triggers the first terminal to switch to If other communication terminal conditions are met, the identification of the second terminal is sent to the opposite end of the call, and the opposite end of the call can find the second terminal, and automatically communicate with the second terminal, avoiding the user to manually select a new call terminal to switch, Improve the efficiency of the call.
  • a call switching method applied to a first terminal comprising:
  • the shutdown instruction is generated when the shutdown instruction is triggered by the user, or the distance between the user and the first terminal is greater than a distance threshold
  • the identifier of the second terminal is sent to the peer end to instruct the peer end to communicate with the second terminal.
  • a call switching device applied to a first terminal comprising:
  • An acquisition module configured to acquire a second terminal within a preset distance range of the first terminal during an audio call with the opposite end of the call;
  • a receiving module configured to receive a shutdown instruction of components associated with the audio call in the first terminal
  • the sending module is configured to send the second terminal to the second terminal when the closing command is a closing command triggered by the user, or a closing command generated when the distance between the user and the first terminal is greater than a distance threshold.
  • the identification of the call peer is sent to the call peer to instruct the call peer to communicate with the second terminal.
  • a terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to perform the operations of the call switching method described above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the operation of the above-mentioned method is realized.
  • the first terminal obtains the second terminal within the preset distance range of the first terminal during an audio call with the opposite end of the call, and receives the audio message from the first terminal.
  • the shutdown command of the components associated with the call if the shutdown command is a shutdown command triggered by the user, or a shutdown command generated when the distance between the user and the first terminal is greater than the distance threshold, it can be considered that the user needs to If the device is switched, or the first terminal cannot continue to realize the video call, that is, the condition for the first terminal to switch to another call terminal is triggered, the identity of the second terminal is sent to the call peer, and the call peer can find the second terminal. And automatically communicate with the second terminal, avoiding the user to manually select a new communication terminal for switching, and improving the efficiency of the communication.
  • a call switching method applied to a first terminal comprising:
  • a call switching device applied to a first terminal comprising:
  • a call quality acquisition module configured to detect the call quality of the first terminal during an audio and video call with the opposite end of the call, and acquire the call quality of each candidate terminal within a preset distance range of the first terminal;
  • a second terminal determining module configured to determine a second terminal from each of the candidate terminals when the call quality of the first terminal and the call quality of each of the candidate terminals meet the call quality switching condition
  • a sending module configured to send the identifier of the second terminal to the call counterpart, so as to instruct the call counterpart to communicate with the second terminal.
  • a terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to perform the operations of the call switching method described above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the operation of the above-mentioned method is realized.
  • the first terminal detects the call quality of the first terminal during an audio and video call with the opposite end of the call, and acquires each call within the preset distance range of the first terminal.
  • the call quality of the candidate terminal when the call quality of the first terminal and the call quality of each candidate terminal meet the call quality switching condition, it can be considered that the condition of switching the first terminal to other call terminals is triggered, and then from each candidate terminal Determine the second terminal; send the identity of the second terminal to the opposite end of the call, then the opposite end of the call can find the second terminal and automatically communicate with the second terminal, avoiding the user to manually select a new call terminal to switch, improving improved call efficiency.
  • a call switching method applied to a second terminal comprising:
  • the switch request is generated by the opposite end of the call according to the received identifier of the second terminal, and the identifier of the second terminal is that the first terminal is in a video call with the opposite end of the call
  • the identification of the second terminal is preset by the first terminal. identification of the second terminal within the distance range
  • a call switching device applied to a second terminal comprising:
  • the receiving module is configured to receive a switch request from the call peer; the switch request is generated by the call peer according to the received identifier of the second terminal, and the identifier of the second terminal is that the first terminal is communicating with the call peer In the process of a video call between two terminals, when the first terminal detects that the status of the components associated with the video call is off, the identification of the second terminal is the the identification of the second terminal within the preset distance range of the first terminal;
  • a sending module configured to return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • a terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to perform the operations of the call switching method described above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the operation of the above-mentioned method is realized.
  • the first terminal detects the status of the components associated with the video call in the first terminal during the video call with the opposite end of the call, and obtains the first terminal preview Assuming that the second terminal within the distance range detects that the components associated with the video call in the first terminal are turned off, it can be considered that the first terminal cannot continue to implement the video call, which triggers the first terminal to switch to If other conditions of the call terminal are met, the identity of the second terminal is sent to the peer end of the call, and the peer end of the call can generate a switch request according to the identity of the second terminal, and send the switch request to the second terminal.
  • the second terminal receives the handover request, and returns a handover response to the call peer to instruct the call peer to communicate with the second terminal. It can be seen that, during the video call with the opposite end of the call, the first terminal detects that the components associated with the video call in the first terminal are in the off state, then it can automatically switch to the second terminal, that is, through the second terminal and the call The opposite end makes a call, avoiding the user to manually select a new call terminal for switching, and improving the efficiency of the call.
  • a call switching method applied to a second terminal comprising:
  • the switching request is generated by the opposite end of the conversation according to the received identifier of the second terminal, and the identifier of the second terminal is that the first terminal is in an audio conversation with the opposite end of the conversation
  • the first terminal receives a closing instruction of the components associated with the audio call in the first terminal, and the closing instruction is a closing instruction generated by the user trigger, or the user and the second
  • the second terminal identifier is the identifier of the second terminal within the preset distance range of the first terminal;
  • a call switching device applied to a second terminal comprising:
  • the receiving module is configured to receive a switching request from the opposite end of the conversation; the switching request is generated by the opposite end of the conversation according to the received identification of the second terminal, and the identification of the second terminal is that the first terminal is communicating with During the audio call at the opposite end, the first terminal receives a shutdown command of the components associated with the audio call in the first terminal, and the shutdown command is triggered by the user when the shutdown command is generated, or the When the distance between the user and the first terminal is greater than the distance threshold, the close instruction is sent to the opposite end of the call, and the identity of the second terminal is the second terminal within the preset distance range of the first terminal. identification of the terminal;
  • a sending module configured to return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • a sending module configured to return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • a terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to perform the operations of the call switching method described above.
  • the first terminal detects the status of the components associated with the audio call in the first terminal during the audio call with the call peer, and obtains the first terminal preview Assuming that the second terminal within the distance range detects that the components associated with the audio call in the first terminal are turned off, it can be considered that the first terminal cannot continue to implement the audio call, which triggers the first terminal to switch to If other conditions of the call terminal are met, the identity of the second terminal is sent to the peer end of the call, and the peer end of the call can generate a switch request according to the identity of the second terminal, and send the switch request to the second terminal.
  • the second terminal receives the handover request, and returns a handover response to the call peer to instruct the call peer to communicate with the second terminal. It can be seen that, during the audio call with the call peer, the first terminal detects that the components associated with the audio call in the first terminal are in the off state, then it can automatically switch to the second terminal, that is, through the second terminal and the call The opposite end makes a call, avoiding the user to manually select a new call terminal for switching, and improving the efficiency of the call.
  • a call switching method applied to a second terminal comprising:
  • the switching request is generated by the opposite end of the conversation according to the received identifier of the second terminal, and the identifier of the second terminal is the second terminal within the preset distance range of the first terminal.
  • the identifier of the terminal, the second terminal is the audio and video call between the first terminal and the call peer, and the call quality of the first terminal and each candidate in the current environment of the first terminal When the call quality of the terminal satisfies the call quality switching condition, it is determined from each of the candidate terminals;
  • a call switching device applied to a second terminal comprising:
  • the receiving module is configured to receive a switch request from the call peer; the switch request is generated by the call peer according to the received identifier of the second terminal, and the identifier of the second terminal is a preset distance from the first terminal.
  • the identification of the second terminal within the range, the second terminal is in the process of the audio and video call between the first terminal and the call peer, and the call quality of the first terminal is in the first terminal In the current environment, when the call quality of each candidate terminal satisfies the call quality switching condition, it is determined from each of the candidate terminals;
  • a sending module configured to return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • a terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to perform the operations of the call switching method described above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the operation of the above-mentioned method is realized.
  • the first terminal detects the call quality of the first terminal during an audio and video call with the opposite end of the call, and acquires each call within the preset distance range of the first terminal.
  • the call quality of the candidate terminal when the call quality of the first terminal and the call quality of each candidate terminal meet the call quality switching condition, it can be considered that the condition of switching the first terminal to other call terminals is triggered, and then from each candidate terminal Determining the second terminal; sending the identity of the second terminal to the opposite end of the conversation, and the opposite end of the conversation generates a switch request according to the received identity of the second terminal, and sends the switch request to the second terminal.
  • the second terminal Based on the received switching request, the second terminal returns a switching response to the call peer to instruct the call peer to communicate with the second terminal, avoiding the user from manually selecting a new call terminal for switching, and improving call efficiency.
  • Fig. 1 is an application environment diagram of a call switching method in an embodiment.
  • Fig. 2 is a flowchart of a call switching method in an embodiment.
  • Fig. 3 is a flowchart of an operation to acquire a second terminal within a preset distance range of a first terminal in an embodiment.
  • Fig. 4 is a flowchart of a call switching method in another embodiment.
  • Fig. 5 is a sequence diagram of a call switching method in an embodiment.
  • Fig. 6 is a flowchart of a call switching method in another embodiment.
  • Fig. 7 is a flowchart of a call switching method in another embodiment.
  • Fig. 8 is a flowchart of a call switching method in another embodiment.
  • FIG. 9 is a sequence diagram of a call switching method in another embodiment.
  • Fig. 10 is a sequence diagram of a call switching method in another embodiment.
  • Fig. 11 is a flowchart of a call switching method in another embodiment.
  • Fig. 12 is a structural block diagram of a call switching device in an embodiment.
  • Fig. 13 is a structural block diagram of a call switching device in another embodiment.
  • Fig. 14 is a schematic diagram of an internal structure of a terminal in an 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 could be termed a second terminal, and, similarly, a second terminal could be termed a first terminal, without departing from the scope of the present application.
  • Both the first terminal and the second terminal are terminals, but they are not the same terminal.
  • Fig. 1 is a schematic diagram of an application environment of a call switching method in an embodiment.
  • the application environment includes a server 102 , a call terminal 108 used by a first user, and a call peer 110 used by a second user.
  • the calling terminal 108 used by the first user is the first terminal 104
  • the first terminal 104 and the calling peer 110 conduct a video call through the calling data channel.
  • the first terminal 104 detects the state of the components associated with the video call in the first terminal 104; obtains the second terminal 106 within the preset distance range of the first terminal 104; When it is detected that the status of the components associated with the video call is off, the identifier of the second terminal 106 is sent to the call peer 110 to instruct the call peer 110 to communicate with the second terminal 106 .
  • the first terminal 104, the second terminal 106 and the peer terminal 110 can all be smart phones, tablet computers, notebook computers, desktop computers, smart speakers, smart watches, vehicle-mounted terminals, etc., but are not limited thereto.
  • the server 102 can be implemented by an independent server or a server cluster composed of multiple servers. Server 102 may also be a cloud server.
  • Fig. 2 is a flowchart of a call switching method in an embodiment.
  • the call switching method in this embodiment is described by taking the first terminal running on the first terminal in FIG. 1 as an example. As shown in FIG. 2 , the call switching method includes operation 202 to operation 206 .
  • a state of a component associated with the video call in the first terminal is detected.
  • the first terminal is a terminal used for switching between the two parties in the call.
  • the call peer is a terminal that communicates with the first terminal.
  • the first terminal and the peer end may use Web Real-Time Communication (Web Real-Time Communication, WebRTC) technology to conduct a video call.
  • Web Real-Time Communication Web Real-Time Communication
  • the web instant messaging technology is an API (Application Programming Interface, Application Programming Interface) that supports web browsers to conduct real-time voice conversations or video conversations.
  • the first terminal Before the first terminal conducts a video call with the opposite end of the call, the first terminal initiates a video call to the server, and conducts message-level negotiation with the opposite end of the call through the server; after the negotiation is completed, the first terminal establishes a call with the opposite end of the call Data channel, make a video call through the call data channel.
  • the message level may specifically include media information, IP (Internet Protocol, Internet Protocol) address information, and the like.
  • the call data channel can transmit call-related data, including at least audio data, video data, and the like.
  • the first terminal may directly connect to the call peer using a peer-to-peer technology (peer-to-peer, P2P), so as to establish a call data channel between the first terminal and the call peer.
  • P2P peer-to-peer
  • the first terminal and the peer end of the call may also be respectively connected to the server, and the data is forwarded through the server, so as to conduct a video call.
  • the components associated with the video call that is, many components that need to be used during the call, including screen, CPU (central processing unit, central processing unit), speaker, microphone etc.
  • the components associated with the video call in the first terminal include an on state and an off state, and may also include a sleep state, a low power consumption state, and the like.
  • the components associated with the video call in the first terminal are in an off state, which may be the screen of the mobile phone is off, the screen of the mobile phone is on standby, the CPU of the mobile phone is turned off, and the like.
  • the mobile phone screen includes LCD (Liquid Crystal Display, liquid crystal display) screen and OLCD (Organic Light-Emitting Diode, organic light-emitting diode) screen.
  • the mobile phone screen is an OLCD screen
  • the mobile phone screen off screen includes the mobile phone screen completely off screen and the mobile phone screen animation off screen.
  • the off-screen animation of the mobile phone screen means that the off-screen animation is displayed when the mobile phone screen is in the off-screen state.
  • the components associated with the video call in the first terminal are in an off state, which may be that the TV screen is off, the TV is turned off, and the like.
  • the first terminal is a sound box
  • the components associated with the video call in the first terminal are in an off state, which may be that the sound box is turned off or the like.
  • the first terminal is a vehicle-mounted terminal
  • the components associated with the video call in the first terminal are in an off state, which may be that the screen of the vehicle-mounted terminal is turned off, the vehicle is turned off, and the like.
  • Operation 204 acquiring a second terminal within a preset distance range from the first terminal.
  • the second terminal is a terminal within the preset distance range of the first terminal and used for switching.
  • the preset distance range can be set as required.
  • the preset distance range may be a spherical range with the first terminal as the center and a radius of 10 meters.
  • the preset distance range may be a search range of the first terminal, specifically, a Bluetooth search range, a WiFi search range, a zigbee search, and the like of the first terminal.
  • the identifier of the second terminal is an identifier for uniquely identifying the second terminal.
  • the identifier of the second terminal may specifically be the MAC (Media Access Control Address, Media Access Control Address) address, IMEI code (International Mobile Equipment Identity, International Mobile Equipment Identity) of the second terminal, a unique character string, Account name + user name, etc.
  • the first terminal searches the memory for the identifier of the second terminal, and sends the identifier of the second terminal to the opposite end of the call. After receiving the identifier of the second terminal, the opposite end of the call can uniquely find the second terminal through the identifier, and communicate with the second terminal.
  • the call between the peer end and the second terminal may be a video call or an audio call.
  • the first terminal, the second terminal, and the call peer are all installed with a call application, the first terminal and the call peer perform a video call through the call application, and the second terminal and the call peer use the call application
  • the program makes a call.
  • the first terminal detects the status of the components associated with the video call in the first terminal during the video call with the opposite end of the call, and obtains the second terminal within the preset distance range of the first terminal.
  • the first terminal cannot continue to implement the video call, that is, the condition that the first terminal is switched to another call terminal is triggered, and the second
  • the identification of the terminal is sent to the opposite end of the call, and the opposite end of the call can find the second terminal and automatically communicate with the second terminal, which avoids the user from manually selecting a new call terminal for switching, and improves the efficiency of the call.
  • obtaining the second terminal within the preset distance range of the first terminal includes:
  • call quality of each candidate terminal within a preset distance range of the first terminal is acquired.
  • the candidate terminal is a terminal that is within a preset distance range of the first terminal and is used to screen out the second terminal.
  • the call quality of the candidate terminal refers to the quality of the candidate terminal during a call in the future. Specifically, the call quality may be a call quality score, a call quality level, a call quality label, and the like. It can be understood that the candidate terminal can collect the voice signal in the current environment, and determine the quality of the candidate terminal during the call at a future moment through the attribute characteristics of the voice signal.
  • the first terminal searches for devices within a preset distance range; and when candidate terminals are found, the call quality of each candidate terminal is acquired.
  • the first terminal may search for devices by means of bluetooth search, WiFi search, zigbee search and the like.
  • the first terminal uses Bluetooth to search, the first terminal obtains the devices paired with the first terminal Bluetooth within the preset distance range through the call application program, and then determines whether each device paired with the first terminal Bluetooth is installed through the preset private protocol. There is a call application; the device with the call application installed is determined as a candidate terminal. If the first terminal uses WiFi search, the first terminal uses UDP (User Datagram Protocol, User Datagram Protocol) multicast to search for devices within a preset distance as candidate terminals.
  • UDP User Datagram Protocol, User Datagram Protocol
  • prompt information may be generated.
  • the prompt information may specifically be information such as a breathing light that is always on or a text floating window, which is not limited here.
  • the first terminal acquires the IDs of candidate terminals input by the user within the preset distance range of the first terminal, finds each candidate terminal based on the IDs of each candidate terminal, and acquires the call quality of each candidate terminal .
  • the first terminal before the first terminal makes a video call with the call peer, it can also configure available devices in the first terminal, and then determine candidate terminals within a preset distance range of the first terminal from the available devices.
  • the first terminal may configure information such as MAC addresses and names of available devices.
  • each device within the preset distance range of the first terminal may be pre-configured with available devices.
  • a second terminal is determined from each candidate terminal according to the call quality of each candidate terminal.
  • the number of candidate terminals can be one or more.
  • the candidate terminal may be directly determined as the second terminal.
  • the second terminal is determined from each candidate terminal based on the call quality of each candidate terminal.
  • the first terminal may sort the candidate terminals according to the call quality of the candidate terminals in order of the call quality, and then determine the second terminal from the sorted candidate terminals. For example, the first terminal may determine the candidate terminal with the highest call quality from the sorted candidate terminals as the second terminal, or may determine the candidate terminal with the second highest call quality from the sorted candidate terminals as the second terminal. This is not limited.
  • the first terminal determines the second terminal that meets the preset call condition from the candidate terminals according to the call quality of each candidate terminal.
  • the preset call condition is a pre-set call condition.
  • the preset call conditions may at least include that the detected sound decibel value is greater than the preset decibel value, the detected sound clarity is higher than the preset clarity threshold, the signal-to-noise ratio is higher than the preset signal-to-noise ratio threshold, and the sound fluctuation range is less than Preset amplitude thresholds, etc.
  • the preset decibel value, the preset sharpness threshold, the preset signal-to-noise ratio threshold and the preset amplitude threshold can all be set as required.
  • the preset decibel value may be 30Db.
  • the first terminal determines the candidate terminal with the highest call quality among the candidate terminals as the second terminal according to the call quality of each candidate terminal. In another embodiment, the first terminal determines, from among the candidate terminals, the candidate terminal that meets the preset call condition and has the highest call quality as the second terminal according to the call quality of each candidate terminal.
  • the first terminal acquires the call quality of each candidate terminal within the preset distance range of the first terminal, and can accurately determine the second terminal from each candidate terminal according to the call quality of each candidate terminal, thereby quickly
  • the communication between the second terminal and the opposite end is carried out, which improves the efficiency of call switching.
  • acquiring the call quality of each candidate terminal within the preset distance range of the first terminal includes:
  • a call quality subscription instruction is sent to each candidate terminal within a preset distance range from the first terminal.
  • the call quality subscription instruction refers to an instruction for subscribing to call quality.
  • the time when the candidate terminal reports the call quality is included in the call quality subscription instruction.
  • the call quality is regularly reported every 1 minute, or the call quality can be reported in real time, which can be set according to needs, and is not limited here.
  • the first terminal sends a call quality subscription instruction to each candidate terminal within a preset distance range of the first terminal.
  • the candidate terminal receives the call quality subscription instruction, it can detect its own call quality according to the moment of reporting the call quality indicated by the call quality subscription instruction, and send the detected call quality to the first terminal.
  • Operation 404 receiving the call quality sent by each candidate terminal.
  • determine the second terminal from each candidate terminal including:
  • the first terminal receives the call quality regularly reported by each candidate terminal, and when it detects that the components associated with the video call in the first terminal are in the off state, according to the received latest call quality of each candidate terminal, select from each candidate The second terminal is determined among the terminals.
  • the first terminal When the first terminal receives the call quality sent by each candidate terminal, it may store the call quality of each candidate terminal in the local storage, and may also delete other call qualities corresponding to each candidate terminal except the latest call instruction information, In order to save the storage space of the first terminal.
  • the first terminal determines the second terminal that meets the preset call condition from among the candidate terminals according to the received latest call quality of each candidate terminal.
  • the preset call condition is a pre-set call condition.
  • the preset call conditions may at least include that the detected sound decibel value is greater than the preset decibel value, the detected sound clarity is higher than the preset clarity threshold, the signal-to-noise ratio is higher than the preset signal-to-noise ratio threshold, and the sound fluctuation range is less than Preset amplitude thresholds, etc.
  • the manner in which the first terminal determines the second terminal from the candidate terminals is not limited, and may be set as required.
  • the first terminal determines the candidate terminal with the highest call quality among the candidate terminals as the second terminal according to the received latest call quality of each candidate terminal. In another embodiment, the first terminal determines the candidate terminal that meets the preset call condition and has the highest call quality from among the candidate terminals according to the received latest call quality of each candidate terminal as the second terminal.
  • the manner in which the first terminal determines the second terminal from the candidate terminals is not limited, and may be set as required.
  • the first terminal sends a call quality subscription command to each candidate terminal within the preset distance range of the first terminal, and may instruct each candidate terminal to detect its own call quality, and send the detected call quality to The first terminal, the first terminal may receive the call quality sent by each candidate terminal, so as to timely and accurately update the second terminal from each candidate terminal according to the received latest call quality of each candidate terminal.
  • Fig. 5 is a sequence diagram of a call switching method in an embodiment.
  • the mobile phone sends a video call request to the server for making a video call with the call peer.
  • the server determines the call peer from the video call request, and sends the video call request to the call peer.
  • the opposite end of the call receives the video call request, returns a video call response to the server, and then forwards the video call response to the mobile phone through the server.
  • the mobile phone After receiving the video call response, the mobile phone establishes a call data channel with the call peer, and then conducts a call through the call data channel.
  • the mobile phone can perform device search during a video call with the opposite end of the call, and each candidate terminal within a specified distance from the mobile phone sends a device search response to the mobile phone.
  • the manner of device search may specifically include Bluetooth search, WiFi search, zigbee search, and the like.
  • Each candidate terminal within the specified distance range of the mobile phone includes a TV and a sound box.
  • the mobile phone then sends the call subscription instruction to the TV and the speaker respectively.
  • the television After receiving the call subscription instruction sent by the mobile phone, the television detects its own call quality, and reports the detected call quality to the mobile phone.
  • the speaker After the speaker receives the call subscription instruction sent by the mobile phone, it detects its own call quality, and reports the detected call quality to the mobile phone.
  • the mobile phone can generate prompt information according to the received latest call quality of the TV and the sound box, so as to prompt the respective call quality of the TV and the sound box.
  • the mobile phone can also judge whether the call quality of the TV and the sound box meet the preset call conditions according to the latest call quality received by the TV and the sound box.
  • a prompt message is generated to prompt the user
  • determining the candidate terminal whose call quality meets the preset call condition as an available terminal includes: determining the second terminal from each available terminal according to the call quality of each available terminal.
  • the preset call condition is a pre-set call condition.
  • the preset call conditions may at least include that the detected sound decibel value is greater than the preset decibel value, the detected sound clarity is higher than the preset clarity threshold, the signal-to-noise ratio is higher than the preset signal-to-noise ratio threshold, and the sound fluctuation range is less than Preset amplitude thresholds, etc.
  • Available terminals are candidate terminals whose call instruction information meets preset call conditions.
  • the number of available terminals can be 0, 1 or more.
  • the first terminal compares the call quality of each candidate terminal with a preset call condition, screens out a candidate terminal whose call quality meets the preset call condition from each candidate terminal, and determines the candidate terminal as an available terminal.
  • the available terminal can be directly determined as the second terminal; when the number of available terminals is multiple In the case of , the second terminal is determined from the available terminals according to the call quality of the available terminals.
  • the first terminal determines, from among the available terminals, the available terminal with the highest call quality as the second terminal according to the call quality of each available terminal. In another implementation manner, the first terminal randomly selects one of the available terminals as the second terminal from the available terminals according to the call quality of each available terminal.
  • the manner in which the first terminal determines the second terminal from all available terminals is not limited, and may be set as required.
  • the first terminal determines the candidate terminals that meet the preset call conditions as available terminals, and can determine the second terminal from all available terminals to ensure that the call quality of the second terminal meets the preset call conditions.
  • the above method further includes: after the call peer end has a call with the second terminal, if it is detected that the components associated with the video call in the first terminal are switched to the on state, then obtaining the call peer end and the second terminal
  • the state of the call between the two terminals when the state of the call between the opposite end of the call and the second terminal is an in-call state, in response to the trigger operation of the forced handover, the first terminal communicates with the opposite end of the call.
  • the call state between the call peer and the second terminal includes a call state and an idle state.
  • the in-call state indicates that the call peer is in a call with the second terminal.
  • the idle state indicates that the opposite end of the call is not in a call with the second terminal, that is, the call has been disconnected.
  • the first terminal After the conversation between the call peer and the second terminal, if the first terminal detects that the components associated with the video call in the first terminal are switched to the on state, it will send a call state request to the server to instruct the server to obtain the call The call state between the opposite end and the second terminal, and return the call state to the first terminal.
  • the first terminal When the first terminal acquires that the call state between the call peer and the second terminal is in the call state, it can display the call state on the display interface.
  • the first terminal When the user executes the trigger operation of forced switching, the first terminal responds Due to the trigger operation of the forced switching, the second terminal that is in communication with the opposite end of the call is forced to be switched to the first terminal, and the first terminal is used to communicate with the opposite end of the call.
  • Conversation state when the state of the conversation between the opposite end of the call and the second terminal is the state of the call, in response to the trigger operation of the forced switching, the second terminal that is in the conversation with the opposite end of the call can be forcibly switched to the first terminal , and communicate with the call peer through the first terminal.
  • the above method further includes: after the call peer end talks with the second terminal, acquiring the sound detected by the first terminal; according to the detected sound, determining the call quality of the first terminal, and The call quality of the first terminal is sent to the second terminal; when the second terminal is switched to the first terminal according to the preset switching condition, the first terminal communicates with the call counterpart.
  • the preset switching condition is a condition preset in the second terminal for switching to another calling terminal.
  • Preset switching conditions can be set as required.
  • the preset switching condition may be that a mandatory switching instruction sent by the first terminal is received, or that the call quality of the second terminal does not meet the preset call condition, or that the element associated with the call is detected in the second terminal.
  • the device switches to an off state, etc., without limitation.
  • the first terminal After the conversation between the peer end and the second terminal, the first terminal obtains the sound detected by itself through the microphone.
  • the first terminal determines the call quality of the first terminal according to the detected sound, which specifically includes: determining the attribute feature of the detected sound; and determining the call quality of the first terminal according to the attribute feature.
  • the attribute feature is a feature of an attribute possessed by the detected sound.
  • the attribute characteristics may be decibel value, signal-to-noise ratio, clarity, sound fluctuation range, and the like.
  • the attribute characteristics of the detected sound include a decibel value
  • the first terminal determines the decibel value of the detected sound, and determines the call quality of the first terminal according to the decibel value; the decibel value is proportional to the call quality relation.
  • Decibels are used to measure the intensity of sound. The higher the decibel value, the louder the detected sound, and the higher the call quality of the first terminal.
  • the first terminal determines each attribute feature of the detected sound; determines the sub-call quality corresponding to each attribute feature, and then determines the call quality of the first terminal based on each sub-call quality.
  • the first terminal may add the call quality of the sub-calls to obtain the call quality of the first terminal; it may also multiply the call quality of each sub-call by a corresponding weight factor, and then add the products to obtain the call quality of the first terminal .
  • the manner in which the first terminal determines the call quality of the first terminal based on the call quality of each sub-call is not limited here.
  • the first terminal uses the camera to capture the user's face image, performs face recognition on the face image, and determines the call quality of the first terminal according to the face recognition result.
  • the face recognition result may include information such as the clarity of the face, the distance between the face and the camera, whether the face is blocked, and the like.
  • the first terminal sends its call quality to the second terminal.
  • the second terminal receives the call quality of each candidate terminal including the first terminal, and determines the switching terminal according to the call quality of each candidate terminal including the first terminal when the second terminal meets the preset handover condition .
  • the handover terminal is the terminal determined by the second terminal to be handed over during the process of talking with the call peer.
  • the second terminal determines that the switched terminal is the first terminal, the second terminal sends the identifier of the first terminal to the call peer to instruct the call peer to communicate with the first terminal.
  • the first terminal after the conversation between the peer end and the second terminal, the first terminal obtains the sound detected by itself, determines the call quality of the first terminal, and sends the call quality of the first terminal to the second terminal. terminal, when the second terminal is switched to the first terminal according to preset switching conditions, the first terminal communicates with the counterparty, and the second terminal that communicates with the counterparty can be switched to the first terminal.
  • acquiring the sound detected by the first terminal includes: after detecting that the components associated with the video call in the first terminal are switched to an on state, and detecting that the application used for the video call is in the When running in the foreground, acquire the sound detected by the first terminal.
  • the second A terminal obtains the sound detected by the first terminal, determines the call quality of the first terminal, and sends the call quality to the second terminal, so that the first terminal may have the opportunity to be the switching terminal determined by the second terminal, realizing the second A terminal communicates with a communication peer.
  • the first terminal after acquiring the sound detected by the first terminal, it further includes: matching the sound detected by the first terminal with the specified voiceprint; matching the sound detected by the first terminal with the specified voiceprint In the case of matching, the call quality of the first terminal is determined according to the detected sound.
  • Voiceprint is the sound wave spectrum that carries speech information displayed by electroacoustic instruments. Whether the voice is the voice of a certain user can be identified through the voiceprint of the voice.
  • the specified voiceprint is a pre-designated voiceprint.
  • the specified voiceprint is the voiceprint of the user who uses the first terminal or the second terminal to make a call.
  • the first terminal Before matching the sound detected by the first terminal with the specified voiceprint, it also includes: the first terminal obtains the input user's voice and recognizes the voiceprint information of the user's voice when the user account is used to log in to the calling application program. to bind the voiceprint information with the user account. Wherein, the voiceprint information of the user's voice is also the specified voiceprint in this embodiment. Then, after acquiring the sound detected by itself, the first terminal may match the detected sound with the specified voiceprint, so as to determine whether the detected sound is the user's voice.
  • the first terminal may send the identified voiceprint information to the server for storage; when the trusted user identifier added by the second terminal is the user identifier, the voiceprint information of the user identifier is obtained from the server for use with The voiceprint information detected by the second terminal is matched to determine whether the sound detected by the second terminal is the user's voice.
  • the first terminal matches the detected sound with the specified voiceprint. , determining the call quality of the voice of the calling user detected by the first terminal.
  • the detected sound does not match the specified voiceprint, it means that the detected sound does not belong to the voice of the calling user, and the detected sound is discarded.
  • the sound detected by the first terminal is matched with the specified voiceprint; when the sound detected by the first terminal matches the specified voiceprint, the first terminal is determined according to the detected sound.
  • the call quality of a terminal can accurately detect the call quality when the first terminal is used for a call.
  • a specified spatial extent is a pre-specified spatial extent.
  • the specified spatial range may be a spherical spatial range with the first terminal as the center and a radius of a preset distance, or the search range of the first terminal.
  • the preset distance is, for example, 10 meters, 20 meters and so on.
  • the search range of the first terminal may be a Bluetooth search range, a WiFi search range, a zigbee search range, and the like.
  • the pre-connection terminal is a terminal within the specified space range of the first terminal for pre-connection with the call counterpart.
  • the number of pre-connected terminals can be one or more.
  • the identifiers of the pre-connection terminals are sent to the peer end of the call, so as to instruct the peer end of the call to establish a pre-connection call data channel with each pre-connection terminal.
  • the identifier of the pre-connection terminal is an identifier for uniquely identifying the pre-connection terminal.
  • the identification of the pre-connection terminal may specifically be the MAC (Media Access Control Address) address of the pre-connection terminal, the IMEI code (International Mobile Equipment Identity, International Mobile Equipment Identity), a unique character string, etc. .
  • the pre-connected call data channel is a data channel for pre-connected user calls.
  • the opposite end of the call can find out the pre-connected terminals and establish a pre-connected call data channel with each pre-connected terminal.
  • Sending the identity of the second terminal to the call peer to instruct the call peer to communicate with the second terminal including:
  • Operation 606 In the case that the second terminal is a pre-connected terminal, send the identifier of the second terminal to the call peer, so as to instruct the call peer to communicate with the second terminal through the pre-connection data channel.
  • the second terminal is a pre-connection terminal, and the call counterpart establishes a pre-connection call data channel with the second terminal.
  • the first terminal sends the identity of the second terminal to the opposite end of the call
  • the opposite end of the call can directly communicate with the second terminal through the pre-connected data channel, avoiding the establishment of a data channel during the handover process, and improving the switching efficiency of the call terminal Efficiency, and the efficiency of calls.
  • another call switching method is provided, which is described by taking the first terminal running on the first terminal in FIG. A second terminal within a preset distance range; receiving a closing command of the components associated with the audio call in the first terminal, and triggering the closing command generated by the user in the closing command, or the distance between the user and the first terminal is greater than
  • a closing instruction generated when the distance is from the threshold the identity of the second terminal is sent to the peer end to instruct the peer end to communicate with the second terminal.
  • the components associated with the audio call in the first terminal at least include a speaker, a microphone, a screen, a sound processor, and the like.
  • the shutdown instruction generated by the user trigger is an instruction for the user to actively trigger the shutdown of the components associated with the audio call in the first terminal.
  • the first terminal is a mobile phone, and the user presses the power button on the screen to generate a shutdown command to turn off the screen during an audio call between the mobile phone and the opposite end.
  • the first terminal is a sound box, and during the audio communication between the sound box and the call peer, the user turns off the speaker switch of the sound box to generate a turn off command to turn off the speaker.
  • the first terminal is a vehicle-mounted terminal. During an audio call between the vehicle-mounted terminal and the other end of the call, the user turns off the power to generate a shutdown command to turn off various components of the vehicle-mounted terminal.
  • the infrared sensor installed on the outer wall of the first terminal detects the distance between the user and the first terminal. If the distance between the user and the first terminal is less than or equal to the distance threshold, it means that the user will use the communication hole to make a call. In order to prevent accidental touches, the first terminal usually turns off the screen. Among them, the distance threshold can be set as required.
  • the closing instruction when the closing instruction is generated when the distance between the user and the first terminal is greater than the distance threshold, the situation that the user will use the communication hole to make a call and the screen is off, then based on the closing instruction Turning off the components associated with the audio call in the first terminal will affect the audio call between the first terminal and the call peer, then send the identity of the second terminal to the call peer to indicate the call peer and the second call The terminal makes a call.
  • the first terminal acquires the second terminal within the preset distance range of the first terminal during the audio call with the call peer, and receives the shutdown instruction of the components associated with the audio call in the first terminal , if the closing command is a closing command triggered by the user, or a closing command generated when the distance between the user and the first terminal is greater than the distance threshold, it can be considered that the user needs to switch devices, or the first terminal cannot continue Realize video call, that is, trigger the condition that the first terminal is switched to another call terminal, then send the identity of the second terminal to the call peer, and the call peer can find the second terminal, and automatically communicate with the second terminal, This prevents the user from manually selecting a new call terminal for switching, thereby improving call efficiency.
  • the closing command is a closing command triggered by the user, or a closing command generated when the distance between the user and the first terminal is greater than the distance threshold
  • Fig. 7 is a flowchart of a call switching method in another embodiment.
  • the call switching method in this embodiment is described by taking the first terminal running on the first terminal in FIG. 1 as an example. As shown in FIG. 7 , the call switching method includes operation 702 to operation 706 .
  • the candidate terminal is a terminal that is within a preset distance range of the first terminal and is used to screen out the second terminal.
  • the call quality of the first terminal refers to the quality of the first terminal during a call in the future. Specifically, the call quality may be a call quality score, a call quality level, a call quality label, and the like.
  • Detecting the call quality of the first terminal includes: acquiring the sound detected by the first terminal; and determining the call quality of the first terminal according to the detected sound. Wherein, determining the call quality of the first terminal according to the detected sound includes: determining an attribute feature of the detected sound; and determining the call quality of the first terminal according to the attribute feature.
  • the call quality switching condition refers to the switching condition set for the call quality of the first terminal and the candidate terminal. Call quality switching conditions can be set as required. For example, the call quality switching condition may be that the call quality of the first terminal does not meet the preset call condition, and there are candidate terminals whose call quality meets the preset call condition. For another example, the call quality switching condition may be that the call quality of the candidate terminal is higher than the call quality of the first terminal.
  • the second terminal is determined from the candidate terminals.
  • the identifier of the second terminal is sent to the call peer, so as to instruct the call peer to communicate with the second terminal.
  • the identifier of the second terminal is an identifier for uniquely identifying the second terminal.
  • the identifier of the second terminal may specifically be the MAC (Media Access Control Address) address of the second terminal, the IMEI code (International Mobile Equipment Identity, International Mobile Equipment Identity), a unique character string, etc. .
  • the first terminal After the first terminal determines the second terminal, it may search the memory for the identifier of the second terminal, and send the identifier of the second terminal to the call peer. After receiving the identifier of the second terminal, the opposite end of the call can uniquely find the second terminal through the identifier of the second terminal, and communicate with the second terminal.
  • the call between the peer end and the second terminal may be a video call or an audio call.
  • the first terminal detects the call quality of the first terminal during the audio and video call with the call counterpart, and obtains the call quality of each candidate terminal within the preset distance range of the first terminal.
  • the call quality of the call quality and the call quality of each candidate terminal meet the call quality switching condition, it can be considered that the condition of switching the first terminal to other call terminals is triggered, and then the second terminal is determined from each candidate terminal; the second terminal's After the identification is sent to the call peer, the call peer can find the second terminal and automatically communicate with the second terminal, which avoids the user from manually selecting a new call terminal for switching, and improves the efficiency of the call.
  • the call quality switching condition is that the call quality of the first terminal does not meet the preset call conditions, and there are candidate terminals whose call quality meets the preset call conditions; determining the second terminal from each candidate terminal includes: The second terminal is determined among the candidate terminals whose call quality meets the preset call condition.
  • the preset call condition is a pre-set call condition.
  • Preset call conditions can be set as required.
  • the preset call condition may be that the call quality score is qualified, or that the call quality level is higher than level 3, and so on.
  • the first terminal may select a candidate terminal whose call quality meets the preset call condition from among the candidate terminals as the second terminal.
  • the first terminal can determine the second terminal from among the candidate terminals whose call quality meets the preset call conditions, which avoids screening all candidate terminals, improves the switching efficiency of the calling terminal, and ensures that the second terminal The call quality of meets the preset call conditions.
  • Fig. 8 is a flowchart of a call switching method in another embodiment.
  • the call switching method in this embodiment is described by taking the second terminal running on the second terminal in FIG. 1 as an example. As shown in FIG. 8 , the call switching method includes operation 802 to operation 804 .
  • Operation 802 receiving a switching request from the opposite end of the call; the switching request is generated by the opposite end of the call according to the received identifier of the second terminal, and the identifier of the second terminal is that the first terminal is in the process of video calling with the opposite end of the call.
  • the identification of the second terminal is the identification of the second terminal within the preset distance range of the first terminal.
  • operation 804 return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • the second terminal receives the handover request from the call peer, and returns a handover response to the call peer based on the handover request, and the call peer can communicate with the second terminal after receiving the handover response.
  • the first terminal detects the status of the components associated with the video call in the first terminal during the video call with the opposite end of the call, and obtains the second terminal within the preset distance range of the first terminal.
  • the first terminal cannot continue to implement the video call, that is, the condition that the first terminal is switched to another call terminal is triggered, and the second
  • the identification of the terminal is sent to the opposite end of the call, and the opposite end of the call can generate a handover request according to the identity of the second terminal, and send the handover request to the second terminal.
  • the second terminal receives the handover request, and returns a handover response to the call peer to instruct the call peer to communicate with the second terminal. It can be seen that, during the video call with the opposite end of the call, the first terminal detects that the components associated with the video call in the first terminal are in the off state, then it can automatically switch to the second terminal, that is, through the second terminal and the call The opposite end makes a call, avoiding the user to manually select a new call terminal for switching, and improving the efficiency of the call.
  • FIG. 9 is a sequence diagram of a call switching method in another embodiment.
  • the first terminal is a mobile phone and the second terminal is a TV as an example for description.
  • the first terminal determines that the second terminal is a TV when the automatic switching condition is satisfied, and sends the identification of the TV to the opposite end of the call.
  • the automatic switching condition may be detecting that the components associated with the video call in the first terminal are switched to an off state, or the call quality of the first terminal and the call quality of each candidate terminal meet the call quality switching condition.
  • each candidate terminal corresponding to the first terminal is a television and a sound box.
  • the call peer initiates a switching request to the server, and forwards the switching request to the TV through the server.
  • the TV will match the detected sound with the voiceprint of the trusted user.
  • the detected sound matches the voiceprint of the trusted user, it will return the switching response to the server, and then send The switching response is forwarded to the opposite end of the call, and then a call data channel can be established between the call end and the TV, and the call can be made through the call data channel.
  • the mobile phone and the calling end can disconnect the call data channel, and then the mobile phone performs resource cleaning to save storage space.
  • the TV can perform a device search, and each candidate terminal within a specified distance from the TV sends a device search response to the TV.
  • the manner of device search may specifically include Bluetooth search, WiFi search, zigbee search, and the like.
  • Each candidate terminal within the specified distance range of the TV includes a mobile phone and a sound box.
  • the TV then sends the call quality subscription command to the mobile phone and the speaker respectively.
  • the mobile phone After receiving the call quality subscription instruction sent by the TV, the mobile phone detects its own call quality, and reports the detected call quality to the TV.
  • the speaker After the speaker receives the call subscription instruction sent by the TV, it detects its own call quality, and reports the detected call quality to the TV.
  • the TV After receiving the call quality of the mobile phone and the sound box, the TV can determine a new terminal to be switched according to the call quality.
  • the above method further includes: acquiring the sound detected by the second terminal during the video call between the first terminal and the call counterpart; determining the call quality of the second terminal according to the detected sound, And send the call quality of the second terminal to the first terminal to indicate that the first terminal detects that the components associated with the video call in the first terminal are switched to the off state, and the determined terminal to be switched is the second In the case of a terminal, the identifier of the second terminal is sent to the opposite end of the call.
  • the second terminal obtains the sound detected by itself through the microphone.
  • the second terminal determines the call quality of the second terminal according to the detected sound, which specifically includes: the second terminal determines the attribute feature of the detected sound; and determines the call quality of the second terminal according to the attribute feature.
  • the attribute feature is a feature of an attribute possessed by the detected sound.
  • the attribute characteristics may be decibel value, signal-to-noise ratio, clarity, sound fluctuation range, and the like.
  • the attribute characteristics of the detected sound include a decibel value
  • the second terminal determines the decibel value of the detected sound, and determines the call quality of the second terminal according to the decibel value; the decibel value is proportional to the call quality relation.
  • Decibels are used to measure the intensity of sound. The higher the decibel value, the louder the detected sound, and the higher the call quality of the second terminal.
  • the second terminal determines each attribute feature of the detected sound; determines the sub-call quality corresponding to each attribute feature, and then determines the call quality of the second terminal based on each sub-call quality.
  • the second terminal can add the call quality of the sub-calls to obtain the call quality of the second terminal; it can also multiply the call quality of each sub-call by a corresponding weight factor, and then add the products to obtain the call quality of the second terminal .
  • the manner in which the second terminal determines the call quality of the first terminal based on the call quality of each sub-call is not limited here.
  • the second terminal receives the call quality detection instruction sent by the first terminal, calls the camera to capture the user's face image according to the call quality detection instruction, and performs face recognition on the face image.
  • the result determines the call quality of the second terminal.
  • the face recognition result may include information such as the clarity of the face, the distance between the face and the camera, whether the face is blocked, and the like.
  • the sound detected by the second terminal is obtained; according to the detected sound, the call quality of the second terminal is determined, and the second terminal
  • the call quality is sent to the first terminal to indicate that when the first terminal detects that the components associated with the video call in the first terminal are switched to the off state, and the determined terminal to be switched is the second terminal,
  • the identification of the second terminal is sent to the opposite end of the call, thereby improving the efficiency of the call.
  • the second terminal after acquiring the sound detected by the second terminal, it further includes: matching the sound detected by the second terminal with the specified voiceprint; matching the sound detected by the second terminal with the specified voiceprint In the case of matching, the call quality of the second terminal is determined according to the detected sound.
  • Voiceprint is the sound wave spectrum that carries speech information displayed by electroacoustic instruments. Whether the voice is the voice of a certain user can be identified through the voiceprint of the voice.
  • the specified voiceprint is a pre-designated voiceprint.
  • the specified voiceprint is the voiceprint of the user who uses the first terminal or the second terminal to make a call.
  • the second terminal matches the detected sound with the specified voiceprint. If the detected sound matches the specified voiceprint, it means that the detected sound belongs to the voice of the user calling. , determining the call quality of the voice of the calling user detected by the second terminal.
  • the detected sound does not match the specified voiceprint, it means that the detected sound does not belong to the voice of the calling user, and the detected sound is discarded.
  • the second terminal matches the sound detected by itself with the specified voiceprint; when the sound detected by the second terminal matches the specified voiceprint, according to the detected sound, determine The call quality of the second terminal can accurately detect the call quality when the second terminal is used for a call.
  • matching the sound detected by the second terminal with the specified voiceprint includes: obtaining the user identification of the call application program registered in the first terminal; from the pre-stored candidate trusted user identifications, determining A target trusted user ID matched with the user ID; matching the sound detected by the second terminal with the voiceprint of the target trusted user ID.
  • the candidate trusted user ID is a user ID set in the second terminal that can make a call, that is, a user ID that can be trusted. It should be noted that the call application program can be registered in the second terminal, or the call application program can not be registered; the account of the call application program registered in the second terminal can IDs are the same, or any of the candidate trusted user IDs.
  • the target trusted user ID is a candidate trusted user ID that matches the user ID of the calling application program logged into the first terminal.
  • the second terminal obtains the user identification of the call application program logged in in the first terminal, matches the user identification with each candidate trusted user identification pre-stored in the second terminal, and determines a target trusted user identification matching the user identification,
  • the target trusted user ID is the user ID of the call application program registered in the first terminal, and the sound detected by the second terminal is matched with the voiceprint of the target trusted user ID.
  • the second terminal can obtain the voiceprint of user ID A, and The voiceprint is matched with the detected sound, so that when the detected sound matches the voiceprint of user identification A, it is determined that the detected sound is the voice of user identification A, and then the second terminal can be used to communicate with The opposite end makes a call, avoiding the second terminal also needing to log in the user ID A, which can improve the efficiency of the call.
  • the user identification of the call application program registered in the first terminal is obtained, and the target trusted user identification matching the user identification is determined from the pre-stored candidate trusted user identifications, and the second terminal detects the The voice is matched with the voiceprint of the target trusted user ID, which does not require the user to log in to the account of the user ID in the second terminal, avoiding that the second terminal can only be used by users who log in to the account, and the second terminal can be used by multiple pre-stored Candidate trusted user IDs for users to use.
  • Fig. 10 is a sequence diagram of a call switching method in an embodiment.
  • the first terminal is a mobile phone and the second terminal is a TV as an example for description.
  • the mobile phone After the mobile phone detects that the components associated with the video call in the mobile phone are switched to the on state, it sends a request to the server for the call status between the call peer and the TV, and receives the call status between the call peer and the TV.
  • the call state includes a call state and an idle state.
  • another call switching method is provided, which is described by taking the second terminal in FIG. 1 as an example, including the following operations: receiving a switching request from the calling peer; Generated by the identification of the second terminal received, the identification of the second terminal is that the first terminal is receiving an instruction to close the components associated with the audio communication in the first terminal during the audio communication with the counterparty , when the closing command is a closing command triggered by the user, or a closing command generated when the distance between the user and the first terminal is greater than the distance threshold, it is sent to the opposite end of the call, and the identity of the second terminal is the first terminal An identification of the second terminal within the preset distance range; and returning a switching response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • the first terminal detects the state of the components associated with the audio call in the first terminal during the audio call with the call peer, and obtains the second terminal within the preset distance range of the first terminal, When it is detected that the components associated with the audio call in the first terminal are in the off state, it can be considered that the first terminal cannot continue to implement the audio call, that is, the condition that the first terminal is switched to another call terminal is triggered, then the second The identifiers of the two terminals are sent to the opposite end of the call, and the opposite end of the call can generate a switching request according to the identifier of the second terminal, and send the switching request to the second terminal.
  • the second terminal receives the handover request, and returns a handover response to the call peer to instruct the call peer to communicate with the second terminal. It can be seen that, during the audio call with the call peer, the first terminal detects that the components associated with the audio call in the first terminal are in the off state, then it can automatically switch to the second terminal, that is, through the second terminal and the call The opposite end makes a call, avoiding the user to manually select a new call terminal for switching, and improving the efficiency of the call.
  • Fig. 11 is a flowchart of a call switching method in another embodiment.
  • the call switching method in this embodiment is described by taking the second terminal running on the second terminal in FIG. 1 as an example. As shown in FIG. 11 , the call switching method includes operation 1102 to operation 1104 .
  • Operation 1102 receiving a switching request from the opposite end of the call; the switching request is generated by the opposite end of the call according to the received identifier of the second terminal, and the identifier of the second terminal is an identifier of a second terminal within a preset distance from the first terminal.
  • the second terminal is when the first terminal is in the process of audio and video conversation with the opposite end of the call, and the call quality of the first terminal and the call quality of each candidate terminal in the current environment of the first terminal meet the call quality switching conditions, from each identified among the candidate terminals.
  • Operation 1104 Return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • the first terminal detects the call quality of the first terminal during the audio and video call with the call counterpart, and obtains the call quality of each candidate terminal within the preset distance range of the call terminal.
  • the call quality and the call quality of each candidate terminal meet the call quality switching condition, it can be considered that the condition that the first terminal is switched to another call terminal is triggered, and then the second terminal is determined from each candidate terminal; the identification of the second terminal If it is sent to the call peer, the call peer generates a switching request according to the received identifier of the second terminal, and sends the switching request to the second terminal.
  • the second terminal returns a switching response to the call peer based on the received switch request to instruct the call peer to talk with the second terminal, avoiding the user to manually select a new call terminal for switching, and improving the efficiency of the call.
  • a call switching system including a first terminal, a call peer and candidate terminals; wherein:
  • the first terminal is used to detect the state of the components associated with the video call in the first terminal during the video call with the call peer; obtain the second terminal within the preset distance range of the first terminal; When the state of the components associated with the video call is off, send the identity of the second terminal to the opposite end of the call;
  • the first terminal is used to obtain a second terminal within a preset distance range of the first terminal during an audio call with the call counterpart; receive an instruction to close components associated with the audio call in the first terminal, and then If the closing command is a closing command triggered by the user, or a closing command generated when the distance between the user and the first terminal is greater than the distance threshold, the identification of the second terminal is sent to the opposite end of the call;
  • the first terminal is used to detect the call quality of the first terminal during the audio and video call with the call counterpart, and obtain the call quality of each candidate terminal within the preset distance range of the first terminal; When the call quality and the call quality of each candidate terminal meet the call quality switching condition, determine the second terminal from each candidate terminal; send the identity of the second terminal to the opposite end of the call;
  • the opposite end of the call is used to receive the identification of the second terminal and communicate with the second terminal;
  • the second terminal is used for talking with the opposite end of the call.
  • FIGS. 2 to 4 , 6 to 8 , and 11 are displayed sequentially as indicated by the arrows, these operations are not necessarily performed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these operations, and these operations can be executed in other orders. Moreover, at least some of the operations in FIGS. 2 to 4 , FIGS. 6 to 8 and FIG. 11 may include multiple sub-operations or multiple stages, and these sub-operations or stages are not necessarily performed at the same time, but may be performed at the same time. Executed at different times, the execution order of these sub-operations or stages is not necessarily sequential, but may be performed in turn or alternately with other operations or at least a part of sub-operations or stages of other operations.
  • Fig. 12 is a structural block diagram of a call switching device of an embodiment. As shown in Figure 12, a call switching device is provided, which is applied to the first terminal, and the device includes: a state detection module 1202, an acquisition module 1204 and a sending module 1206, wherein:
  • the state detection module 1202 is configured to detect the state of components associated with the video call in the first terminal during the video call with the peer end.
  • An acquiring module 1204 configured to acquire a second terminal within a preset distance range from the first terminal.
  • the sending module 1206 is configured to send the identification of the second terminal to the call peer to instruct the call peer to communicate with the second terminal when it is detected that the status of the components associated with the video call is off.
  • the first terminal detects the status of the components associated with the video call in the first terminal during the video call with the call counterpart, obtains the second terminal within the preset distance range of the first terminal, and then When it is detected that the components associated with the video call in the first terminal are in the off state, it can be considered that the first terminal cannot continue to implement the video call, that is, the condition that the first terminal is switched to another call terminal is triggered, and the second The identification of the terminal is sent to the opposite end of the call, and the opposite end of the call can find the second terminal and automatically communicate with the second terminal, which avoids the user from manually selecting a new call terminal for switching, and improves the efficiency of the call.
  • the acquiring module 1204 is further configured to acquire the call quality of each candidate terminal within the preset distance range of the first terminal; and determine the second terminal from each candidate terminal according to the call quality of each candidate terminal.
  • the acquisition module 1204 is further configured to send the call quality subscription instruction to each candidate terminal within the preset distance range of the first terminal; receive the call quality sent by each candidate terminal; The call quality of , determine the second terminal from each candidate terminal
  • the acquisition module 1204 is further configured to determine the candidate terminals whose call quality meets the preset call conditions as available terminals; and determine the second terminal from the available terminals according to the call quality of each available terminal.
  • the above-mentioned call switching device further includes a forced switching module, which is used to detect that the components associated with the video call in the first terminal are switched to the on state after the call peer end has a call with the second terminal, Then obtain the call status between the call peer and the second terminal; under the situation that the call state between the call peer and the second terminal is the state of the call, in response to the trigger operation of forced switching, the first terminal and the call pair terminal to make a call.
  • a forced switching module which is used to detect that the components associated with the video call in the first terminal are switched to the on state after the call peer end has a call with the second terminal, Then obtain the call status between the call peer and the second terminal; under the situation that the call state between the call peer and the second terminal is the state of the call, in response to the trigger operation of forced switching, the first terminal and the call pair terminal to make a call.
  • the above-mentioned call switching device further includes a call quality detection module, which is used to obtain the sound detected by the first terminal after the call peer has a call with the second terminal; and determine the second terminal according to the detected sound The call quality of a terminal, and send the call quality of the first terminal to the second terminal; when the second terminal is switched to the first terminal according to the preset switching condition, the first terminal talks with the call counterpart.
  • a call quality detection module which is used to obtain the sound detected by the first terminal after the call peer has a call with the second terminal; and determine the second terminal according to the detected sound The call quality of a terminal, and send the call quality of the first terminal to the second terminal; when the second terminal is switched to the first terminal according to the preset switching condition, the first terminal talks with the call counterpart.
  • the above-mentioned call quality detection module is further configured to detect that the application program used for the video call is running in the foreground after detecting that the components associated with the video call in the first terminal are switched to the on state Next, acquire the sound detected by the first terminal.
  • the call quality detection module is further configured to match the sound detected by the first terminal with the specified voiceprint; when the sound detected by the first terminal matches the specified voiceprint, according to The detected sound determines the call quality of the first terminal; if the detected sound does not match the specified voiceprint, the detected sound is discarded.
  • the above-mentioned call quality detection module is further configured to determine the attribute characteristics of the detected sound; and determine the call quality of the first terminal according to the attribute characteristics.
  • the above-mentioned device further includes a pre-connection module, configured to determine each pre-connection terminal within the specified space range of the first terminal; The pre-connection call data channel between each pre-connection terminal; the above-mentioned sending module is also used to send the identification of the second terminal to the call counterpart when the second terminal is a pre-connection terminal, so as to indicate that the call counterpart and The second terminal makes a call through the pre-connected data channel.
  • a pre-connection module configured to determine each pre-connection terminal within the specified space range of the first terminal;
  • the above-mentioned sending module is also used to send the identification of the second terminal to the call counterpart when the second terminal is a pre-connection terminal, so as to indicate that the call counterpart and
  • the second terminal makes a call through the pre-connected data channel.
  • a call switching device which is applied to a first terminal, and the device includes: an acquiring module, a receiving module, and a sending module, wherein:
  • the obtaining module is configured to obtain the second terminal within the preset distance range of the first terminal during the audio call with the opposite end of the call.
  • a receiving module configured to receive a closing instruction of a component associated with an audio call in the first terminal
  • the sending module is used to send the identification of the second terminal to the call pair when the closing command is a closing command triggered by the user, or a closing command generated when the distance between the user and the first terminal is greater than the distance threshold terminal to instruct the call peer to communicate with the second terminal.
  • the first terminal obtains the second terminal within the preset distance range of the first terminal during the audio call with the call counterpart, and receives a shutdown instruction of the components associated with the audio call in the first terminal, If the closing command is a closing command triggered by the user, or a closing command generated when the distance between the user and the first terminal is greater than the distance threshold, it can be considered that the user needs to switch devices, or the first terminal cannot continue to implement Video call, that is, the condition that the first terminal is switched to another call terminal is triggered, and the identity of the second terminal is sent to the call peer.
  • the call peer can find the second terminal and automatically communicate with the second terminal, avoiding This eliminates the need for the user to manually select a new call terminal for switching, thereby improving call efficiency.
  • a call switching device which is applied to the first terminal, and the device includes: a call quality acquiring module, a second terminal determining module, and a sending module, wherein:
  • the call quality acquisition module is used to detect the call quality of the first terminal during the audio and video call with the opposite end of the call, and acquire the call quality of each candidate terminal within the preset distance range of the first terminal.
  • the second terminal determining module is configured to determine the second terminal from the candidate terminals when the call quality of the first terminal and the call quality of each candidate terminal meet the call quality switching condition.
  • the sending module is used to send the identification of the second terminal to the call counterpart, so as to instruct the call counterpart to communicate with the second terminal.
  • the first terminal detects the call quality of the first terminal during the audio and video call with the call counterpart, and obtains the call quality of each candidate terminal within the preset distance range of the first terminal.
  • the call quality of the call quality and the call quality of each candidate terminal meet the call quality switching condition, it can be considered that the condition of switching the first terminal to other call terminals is triggered, and then the second terminal is determined from each candidate terminal; the second terminal's After the identification is sent to the opposite end of the call, the opposite end of the call can find the second terminal, and automatically communicate with the second terminal to avoid the user manually selecting a new call terminal for switching, and improve the efficiency of the call.
  • the call quality switching condition is that the call quality of the first terminal does not meet the preset call conditions, and there is a candidate terminal whose call quality meets the preset call conditions;
  • the second terminal is determined among the candidate terminals with preset call conditions.
  • Fig. 13 is a structural block diagram of a call switching device of an embodiment. As shown in Figure 13, a call switching device is provided, which is applied to the second terminal, and the device includes: a receiving module 1302 and a sending module 1304, wherein:
  • the receiving module 1302 is configured to receive a switch request from the call peer; the switch request is generated by the call peer according to the received identifier of the second terminal, and the second terminal identifier is that the first terminal is in the process of video calling with the call peer , when the first terminal detects that the status of the components associated with the video call is off, the identification of the second terminal is the identification of the second terminal within the preset distance range of the first terminal.
  • the sending module 1304 is configured to return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • the first terminal detects the status of the components associated with the video call in the first terminal during the video call with the call counterpart, obtains the second terminal within the preset distance range of the first terminal, and then When it is detected that the components associated with the video call in the first terminal are in the off state, it can be considered that the first terminal cannot continue to implement the video call, that is, the condition that the first terminal is switched to another call terminal is triggered, and the second The identification of the terminal is sent to the opposite end of the call, and the opposite end of the call can generate a handover request according to the identity of the second terminal, and send the handover request to the second terminal.
  • the second terminal receives the handover request, and returns a handover response to the call peer to instruct the call peer to communicate with the second terminal. It can be seen that, during the video call with the opposite end of the call, the first terminal detects that the components associated with the video call in the first terminal are in the off state, then it can automatically switch to the second terminal, that is, through the second terminal and the call The opposite end makes a call, avoiding the user to manually select a new call terminal for switching, and improving the efficiency of the call.
  • the above device further includes a call quality detection module, configured to acquire the sound detected by the second terminal during the video call between the first terminal and the call peer; call quality of the second terminal, and send the call quality of the second terminal to the first terminal to indicate that the first terminal detects that the components associated with the video call in the first terminal are switched to the off state, and the determined pending If the terminal to be switched is the second terminal, the identifier of the second terminal is sent to the opposite end of the call.
  • a call quality detection module configured to acquire the sound detected by the second terminal during the video call between the first terminal and the call peer; call quality of the second terminal, and send the call quality of the second terminal to the first terminal to indicate that the first terminal detects that the components associated with the video call in the first terminal are switched to the off state, and the determined pending If the terminal to be switched is the second terminal, the identifier of the second terminal is sent to the opposite end of the call.
  • the above-mentioned call quality detection module is also used to match the sound detected by the second terminal with the specified voiceprint; when the sound detected by the second terminal matches the specified voiceprint, according to The detected sound determines the call quality of the second terminal; if the detected sound does not match the specified voiceprint, the detected sound is discarded.
  • the above-mentioned call quality detection module is also used to obtain the user identification of the call application program registered in the first terminal; from the pre-stored candidate trusted user identifications, determine the target trusted user identification matching the user identification ; Matching the sound detected by the second terminal with the voiceprint of the target trusted user identifier.
  • a call switching device which is applied to a second terminal, and the device includes: a receiving module and a sending module, wherein:
  • the receiving module is configured to receive a switching request from the opposite end of the call; the switching request is generated by the opposite end of the call according to the received identifier of the second terminal, and the identifier of the second terminal is that the first terminal is in the process of audio conversation with the opposite end of the call,
  • the first terminal receives a shutdown instruction of the components associated with the audio call in the first terminal
  • the shutdown instruction is generated when the shutdown instruction is triggered by the user, or when the distance between the user and the first terminal is greater than the distance threshold
  • the identification of the second terminal is the identification of the second terminal within the preset distance range of the first terminal.
  • a sending module configured to return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • the first terminal detects the state of the components associated with the audio call in the first terminal during the audio call with the call counterpart, obtains the second terminal within the preset distance range of the first terminal, and then When it is detected that the components associated with the audio call in the first terminal are in the off state, it can be considered that the first terminal cannot continue to implement the audio call, that is, the condition that the first terminal is switched to another call terminal is triggered, and the second The identification of the terminal is sent to the opposite end of the call, and the opposite end of the call can generate a handover request according to the identity of the second terminal, and send the handover request to the second terminal.
  • the second terminal receives the handover request, and returns a handover response to the call peer to instruct the call peer to communicate with the second terminal. It can be seen that, during the audio call with the call peer, the first terminal detects that the components associated with the audio call in the first terminal are in the off state, then it can automatically switch to the second terminal, that is, through the second terminal and the call The opposite end makes a call, avoiding the user to manually select a new call terminal for switching, and improving the efficiency of the call.
  • a call switching device which is applied to a second terminal, and the device includes: a receiving module and a sending module, wherein:
  • the receiving module is configured to receive a switching request from the opposite end of the conversation; the switching request is generated by the opposite end of the conversation according to the received identification of the second terminal, and the identification of the second terminal is the identification of the second terminal within the preset distance range of the first terminal , the second terminal is when the first terminal is in the process of audio and video conversation with the opposite end of the call, and the call quality of the first terminal and the call quality of each candidate terminal in the current environment of the first terminal meet the call quality switching condition, determined from each candidate terminal;
  • a sending module configured to return a handover response to the call peer based on the handover request, so as to instruct the call peer to communicate with the second terminal.
  • the first terminal detects the call quality of the first terminal during the audio and video call with the call counterpart, and obtains the call quality of each candidate terminal within the preset distance range of the first terminal.
  • the call quality of the call quality and the call quality of each candidate terminal meet the call quality switching condition, it can be considered that the condition of switching the first terminal to other call terminals is triggered, and then the second terminal is determined from each candidate terminal; the second terminal's The identification is sent to the opposite end of the call, and then the opposite end of the call generates a switching request according to the received identification of the second terminal, and sends the switching request to the second terminal.
  • the second terminal Based on the received switching request, the second terminal returns a switching response to the call peer to instruct the call peer to communicate with the second terminal, avoiding the user from manually selecting a new call terminal for switching, and improving call efficiency.
  • each module in the above-mentioned call switching device is only for illustration. In other embodiments, the call switching device can be divided into different modules according to needs, so as to complete all or part of the functions of the above-mentioned call switching device.
  • Each module in the above-mentioned call switching device can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • Fig. 14 is a schematic diagram of an internal structure of a terminal in an embodiment.
  • the terminal includes a processor and a memory connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal.
  • the memory may include non-volatile storage media and internal memory. Nonvolatile storage media store operating systems and computer programs.
  • the computer program can be executed by a processor, so as to implement a call switching method provided in the following embodiments.
  • the internal memory provides a high-speed running environment for the operating system computer program in the non-volatile storage medium.
  • the terminal can be any terminal device such as mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, wearable device, etc.
  • each module in the call switching device provided in the embodiment of the present application may be in the form of a computer program.
  • the computer program can run on a terminal or a server.
  • the program modules constituted by the computer program can be stored on the memory of the terminal.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform operations of the call switching method.
  • a computer program product containing instructions which, when run on a computer, cause the computer to perform the call switching method.
  • Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
  • SRAM Static RAM
  • DRAM Dynamic RAM
  • SDRAM Synchronous DRAM
  • DDR SDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced SDRAM
  • SLDRAM Synchronous Synchlink DRAM
  • SLDRAM Synchronous Synchlink DRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

一种通话切换方法,包括:在与通话对端视频通话的过程中,检测所述第一终端中与视频通话相关联的元器件的状态(202);获取所述第一终端预设距离范围内的第二终端(204);在检测到所述与视频通话相关联的元器件的状态为关闭状态的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话(206)。

Description

通话切换方法、装置、终端和计算机可读存储介质
相关申请的交叉引用
本申请要求于2021年06月08日提交中国专利局、申请号为202110637104.3、发明名称为“通话切换方法、装置、终端和计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术,特别是涉及一种通话切换方法、装置、终端和计算机可读存储介质。
背景技术
随着计算机技术的发展,很多智能设备都可以实现通话,包括音频通话和视频通话等。而在通话过程中,可能由于网络、信号强度等原因,需要对通话的终端进行切换。传统的通话终端的切换方法,在通话终端通话的过程中,通常需要用户手动点击屏幕中的切换虚拟按钮或者手动输入切换指令等方式,并且需要手动选择新的通话终端,再通过新的通话终端进行通话。
然而,传统的通话切换方法,在通话过程中手动进行切换通话终端,存在切换效率低的问题。
发明内容
根据本申请的各种实施例提供一种通话切换方法、装置、终端、计算机可读存储介质。
一种通话切换方法,应用于第一终端,所述方法包括:
在与通话对端视频通话的过程中,检测所述第一终端中与视频通话相关联的元器件的状态;
获取所述第一终端预设距离范围内的第二终端;
在检测到所述与视频通话相关联的元器件的状态为关闭状态的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
一种通话切换装置,应用于第一终端中,所述装置包括:
状态检测模块,用于在与通话对端视频通话的过程中,检测所述第一终端中与视频通话相关联的元器件的状态;
获取模块,用于获取所述第一终端预设距离范围内的第二终端;
发送模块,用于在检测到所述与视频通话相关联的元器件的状态为关闭状态的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述的通话切换方法的操作。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的方法的操作。
上述通话切换方法、装置、终端、计算机可读存储介质,第一终端在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与视频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
一种通话切换方法,应用于第一终端,所述方法包括:
在与通话对端音频通话的过程中,获取所述第一终端预设距离范围内的第二终端;
接收所述第一终端中与音频通话相关联的元器件的关闭指令,在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
一种通话切换装置,应用于第一终端中,所述装置包括:
获取模块,用于在与通话对端音频通话的过程中,获取所述第一终端预设距离范围内的第二终端;
接收模块,用于接收所述第一终端中与音频通话相关联的元器件的关闭指令,
发送模块,用于在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述的通话切换方法的操作。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的方法的操作。
上述通话切换方法、装置、终端、计算机可读存储介质,第一终端在与通话对端音频通话的过程中,获取第一终端预设距离范围内的第二终端,接收第一终端中与音频通话相关联的元器件的关闭指令,在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,可以认为使用者需要切换设备,或者第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
一种通话切换方法,应用于第一终端,所述方法包括:
在与通话对端音视频通话的过程中,检测所述第一终端的通话质量,以及获取所述第一终端预设距离范围内的各候选终端的通话质量;
在所述第一终端的通话质量和各所述候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定第二终端;
将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
一种通话切换装置,应用于第一终端中,所述装置包括:
通话质量获取模块,用于在与通话对端音视频通话的过程中,检测所述第一终端的通话质量,以及获取所述第一终端预设距离范围内的各候选终端的通话质量;
第二终端确定模块,用于在所述第一终端的通话质量和各所述候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定第二终端;
发送模块,用于将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述的通话切换方法的操作。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的方法的操作。
上述通话切换方法、装置、终端、计算机可读存储介质,第一终端在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取第一终端预设距离范围内的各候选终端的通话质量,在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,可以认为触发了第一终端切换至其他通话终端的条件,则从各候选终端中确定第二终端;将第二终端的标识发送至通话对端,则通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
一种通话切换方法,应用于第二终端中,所述方法包括:
接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端在与通话对端视频通话的过程中,所述第一终端在检测到与视频通话相关联的元器件的状态为关闭状态的情况下发送至所述通话对端的,所述第二终端的标识是所述第一终端预设距离范围内的第二终端的标识;
基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
一种通话切换装置,应用于第二终端中,所述装置包括:
接收模块,用于接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识第一终端在与通话对端视频通话的过程中,所述第一终端在检测到与视频通话相关联的元器件的状态为关闭状态的情况下发送至所述通话对端的,所述第二终端的标识是是所述第一终端预设距离范围内的第二终端的标识;
发送模块,用于基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述的通话切换方法的操作。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的方法的操作。
上述通话切换方法、装置、终端、计算机可读存储介质,第一终端在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与视频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以根据第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端接收到切换请求,并返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。可知,第一终端在与通话对端视频通话的过程中,检测到第一终端中与视频通话相关联的元器件为关闭状态,则可以自动切换至第二终端,即通过第二终端与通话对端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
一种通话切换方法,应用于第二终端,所述方法包括:
接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端在与通话对端音频通话的过程中,所述第一终端在接收所述第一终端中与音频通话相关联的元器件的关闭指令,在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下发送至所述通话对端的,所述第二终端的标识是所述第一终端预设距离范围内的第二终端的标识;
基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
一种通话切换装置,应用于第二终端中,所述装置包括:
接收模块,用于接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端在与通话对端音频通话的过程中,所述第一终端在接收所述第一终端中与音频通话相关联的元器件的关闭指令,在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下发送至所述通话对端的,所述第二终端的标识是所述第一终端预设距离范围内的第二终端的标识;
发送模块,用于基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
发送模块,用于基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述的通话切换方法的操作。
上述通话切换方法、装置、终端、计算机可读存储介质,第一终端在与通话对端音频通话的过程中,检测第一终端中与音频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与音频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现音频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以根据第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端接收到切换请求,并返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。可知,第一终端在与通话对端音频通话的过程中,检测到第一终端中与音频通话相关联的元器件为关闭状态,则可以自动切换至第二终端,即通过第二终端与通话对端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
一种通话切换方法,应用于第二终端中,所述方法包括:
接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端预设距离范围内的第二终端的标识,所述第二终端是所述第一终端在与所述通话对端音视频通话的过程中,并且所述第一终端的通话质量和处于所述第一终端当前环境中各候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定的;
基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
一种通话切换装置,应用于第二终端中,所述装置包括:
接收模块,用于接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端预设距离范围内的第二终端的标识,所述第二终端是所述第一终端在与所述通话对端音视频通话的过程中,并且所述第一终端的通话质量和处于所述第一终端当前环境中各候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定的;
发送模块,用于基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述的通话切换方法的操作。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的方法的操作。
上述通话切换方法、装置、终端、计算机可读存储介质,第一终端在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取第一终端预设距离范围内的各候选终端的通话质量,在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,可以认为触发了第一终端切换至其他通话终端的条件,则从各候选终端中确定第二终端;将第二终端的标识发送至通话对端,则通话对端根据接收到的第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端基于接收到的切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中通话切换方法的应用环境图。
图2为一个实施例中通话切换方法的流程图。
图3为一个实施例中操作获取第一终端预设距离范围内的第二终端的流程图。
图4为另一个实施例中通话切换方法的流程图。
图5为一个实施例中通话切换方法的时序图。
图6为另一个实施例中通话切换方法的流程图。
图7为另一个实施例中通话切换方法的流程图。
图8为另一个实施例中通话切换方法的流程图。
图9为另一个实施例中通话切换方法的时序图。
图10为另一个实施例中通话切换方法的时序图。
图11为另一个实施例中通话切换方法的流程图。
图12为一个实施例中通话切换装置的结构框图。
图13为另一个实施例中通话切换装置的结构框图。
图14为一个实施例中终端的内部结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一终端称为第二终端,且类似地,可将第二终端称为第一终端。第一终端和第二终端两者都是终端,但其不是同一终端。
图1为一个实施例中通话切换方法的应用环境示意图。如图1所示,该应用环境包括服务器102、第一用户所采用的通话终端108、第二用户所采用的通话对端110。在第一用户所采用的通话终端108是第一终端104的情况下,第一终端104与通话对端110通过通话数据通道进行视频通话。第一终端104在与通话对端110视频通话的过程中,检测第一终端104中与视频通话相关联的元器件的状态;获取第一终端104预设距离范围内的第二终端106;在检测到与视频通话相关联的元器件的状态为关闭状态的情况下,将第二终端106的标识发送至通话对端110,以指示通话对端110与第二终端106进行通话。其中,第一终端104、第二终端106和通话对端110均可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表、车载终端等,但并不局限于此。服务器102可以用独立的服务器或者是多个服务器组成的服务器集群来实现。服务器102还可以是云服务器。
图2为一个实施例中通话切换方法的流程图。本实施例中的通话切换方法,以运行于图1中的第一终端上为例进行描述。如图2所示,通话切换方法包括操作202至操作206。
操作202,在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态。
第一终端是通话双方中用于切换的终端。通话对端是与第一终端进行通话的终端。
在一种实施方式中,第一终端与通话对端可以采用通过网页即时通信(Web Real-Time Communication,WebRTC)技术进行视频通话。其中,网页即时通信技术是一个支持网页浏览器进行实时语音对话或视频对话的API(Application Programming Interface,应用程序接口)。
在第一终端与通话对端进行视频通话之前,第一终端向服务器发起视频通话,通过服务器与通话对端进行消息层面的协商;协商完成后,第一终端建立与通话对端之间的通话数据通道,通过通话数据通道进行视频通话。其中,消息层面具体可以包括媒体信息、IP(Internet Protocol,互联网协议)地址信息等。通话数据通道可以传输通话相关的数据,至少包括音频数据、视频数据等。
在另一种实施方式中,第一终端可以采用点对点技术(peer-to-peer,P2P)直接与通话对端进行连接,从而建立第一终端与通话对端之间的通话数据通道。在另一种实施方式中,第一终端和通话对端也可以分别与服务器进行连接,通过服务器进行数据转发,从而进行视频通话。
可以理解的是,在视频通话的过程中,与视频通话相关联的元器件,即在通话过程中需要使用到的很多元器件,包括屏幕、CPU(central processing unit,中央处理器)、扬声器、麦克风等。第一终端中与视频通话相关联的元器件,包括有开启状态和关闭状态,还可以包括有休眠状态、低功耗状态等。
当第一终端是手机时,第一终端中与视频通话相关联的元器件为关闭状态,可以是手机屏幕息屏、手机屏幕待机、手机CPU关机等。其中,手机屏幕包括LCD(Liquid Crystal Display,液晶显示器)屏和OLCD(Organic Light-Emitting Diode,有机发光二极管)屏。当手机屏幕是OLCD屏时,手机屏幕息屏包括手机屏幕完全息屏和手机屏幕动画息屏。手机屏幕动画息屏即手机屏幕在息屏状态下展示息屏动画。
当第一终端是电视时,第一终端中与视频通话相关联的元器件为关闭状态,可以是电视息屏、电视关机等。当第一终端是音箱时,第一终端中与视频通话相关联的元器件为关闭状态,可以是音箱关机等。当第一终端是车载终端时,第一终端中与视频通话相关联的元器件为关闭状态,可以是车载终端息屏、车辆熄火等。
操作204,获取第一终端预设距离范围内的第二终端。
第二终端是处于第一终端预设距离范围内并且用于切换的终端。
其中,预设距离范围可以根据需要进行设置。例如,预设距离范围可以是以第一终端为中心,半径为10米的球形范围。又如,预设距离范围可以是第一终端的搜索范围,具体可以是第一终端的蓝牙搜索范围、WiFi搜索范围、zigbee搜索,等等。
操作206,在检测到与视频通话相关联的元器件的状态为关闭状态的情况下,将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话。
第二终端的标识是用于唯一识别出第二终端的标识。第二终端的标识具体可以是第二终端的MAC(Media Access Control Address,媒体存取控制位址)地址、IMEI码(International Mobile Equipment Identity,国际移动设备识别码)、具有唯一性的字符串、账户名+用户名称等。
若第一终端中与视频通话相关联的一个或者多个元器件为关闭状态,则会影响第一终端与通话对端的视频通话,可以认为触发了第一终端进行通话切换的条件。在检测到与视频通话相关联的元器件的状态为关闭状态的情况下,第一终端从存储器中查找该第二终端的标识,并将第二终端的标识发送至通话对端。通话对端接收到第二终端的标识,可以通过该标识唯一查找到第二终端,与第二终端进行通话。可选地,通话对端与第二终端进行通话,可以是视频通话,也可以是音频通话等。
在一个实施例中,第一终端、第二终端和通话对端中均安装有通话应用程序,第一终端与通话对端通过通话应用程序进行视频通话,第二终端与通话对端通过通话应用程序进行通话。
上述通话切换方法,第一终端在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与视频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在一个实施例中,如图3所示,获取第一终端预设距离范围内的第二终端,包括:
操作302,获取第一终端预设距离范围内的各候选终端的通话质量。
候选终端是处于第一终端预设距离范围内,并且用于筛选出第二终端的终端。候选终端的通话质量指的是候选终端在未来时刻通话过程中的质量。通话质量具体可以是通话质量评分、通话质量等级、通话质量标签等。可以理解的是,候选终端可以采集当前环境中的语音信号,通过语音信号的属性特征确定出候选终端在未来时刻通话过程中的质量。
在一种实施方式中,第一终端对预设距离范围进行设备搜索;在搜索到候选终端的情况下,获取各候选终端的通话质量。其中,第一终端可以采用蓝牙搜索、WiFi搜索、zigbee搜索等方式进行设备搜索。
若第一终端采用蓝牙搜索时,第一终端通过通话应用程序获取预设距离范围内与第一终端蓝牙配对的设备,再通过预设的私有协议确定与第一终端蓝牙配对的各设备是否安装有通话应用程序;将安装有通话应用程序的设备确定为候选终端。若第一终端采用WiFi搜索时,第一终端通过UDP(User Datagram Protocol,用户数据报协议)组播搜索预设距离范围内的设备作为候选终端。
进一步地,若在第一终端预设距离范围内搜索到候选终端,可以生成提示信息。提示信息具体可以是呼吸灯常亮或者文字浮窗等信息,在此并不限定。
在另一种实施方式中,第一终端获取用户输入的处于第一终端预设距离范围内的候选终端的标识,基于各候选终端的标识查找到各候选终端,并获取各候选终端的通话质量。
在一个实施例中,第一终端在与通话对端进行视频通话之前,还可以在第一终端中配置可用设备,再从可用设备中确定第一终端预设距离范围内的候选终端。其中,第一终端可以配置可用设备的MAC地址、名称等信息。同样的,第一终端预设距离范围内的各个设备可以预先配置可用设备。
操作304,根据各候选终端的通话质量,从各候选终端中确定第二终端。
候选终端的数量可以是一个,也可以是多个。在候选终端的数量是一个的情况下,可以直接将该候选终端确定为第二终端。在候选终端的数量是多个的情况下,根据各候选终端的通话质量,从各候选终端中确定第二终端。
第一终端可以根据各候选终端的通话质量,按照通话质量的大小顺序将各候选终端进行排序,再从排序后的各候选终端中确定第二终端。例如,第一终端可以从排序后的各候选终端中确定通话质量最高的候选终端作为第二终端,也可以从排序后的各候选终端中确定通话质量次高的候选终端作为第二终端,在此不做限定。
在一种实施方式中,第一终端根据各候选终端的通话质量,从各候选终端中确定符合预设通话条 件的第二终端。其中,预设通话条件是预先设置的通话所具备的条件。预设通话条件可以至少包括所检测到的声音分贝值大于预设分贝值,检测到的声音清晰度高于预设清晰度阈值,信噪比高于预设信噪比阈值,声音波动幅度小于预设幅度阈值,等等。其中,预设分贝值、预设清晰度阈值、预设信噪比阈值和预设幅度阈值均可以根据需要进行设置。例如,预设分贝值可以为30Db。
在另一种实施方式中,第一终端根据各候选终端的通话质量,从各候选终端中确定通话质量最高的候选终端作为第二终端。在另一种实施方式中,第一终端根据各候选终端的通话质量,从各候选终端中确定符合预设通话条件,并且通话质量最高的候选终端作为第二终端。
在本实施例中,第一终端获取第一终端预设距离范围内的各候选终端的通话质量,可以根据各候选终端的通话质量,准确地从各候选终端中确定出第二终端,从而快速通过第二终端与通话对端进行通话,提高了通话切换的效率。
在一个实施例中,如图4所示,获取第一终端预设距离范围内的各候选终端的通话质量,包括:
操作402,将通话质量订阅指令发送至第一终端预设距离范围内的各候选终端。
通话质量订阅指令指的是预订通话质量的指令。在通话质量订阅指令中包含有候选终端上报通话质量的时刻。例如,每间隔1分钟定时上报通话质量,也可以实时上报通话质量,可以根据需要进行设置,在此不做限定。
第一终端在与通话对端视频通话的过程中,将通话质量订阅指令发送至第一终端预设距离范围内的各候选终端。候选终端接收到通话质量订阅指令时,可以按照通话质量订阅指令所指示的上报通话质量的时刻,检测自身的通话质量,并将检测得到的通话质量发送至第一终端。
操作404,接收各候选终端发送的通话质量。
根据各候选终端的通话质量,从各候选终端中确定第二终端,包括:
操作406,根据所接收的各候选终端最新的通话质量,从各候选终端中确定第二终端。
第一终端接收各候选终端定时上报的通话质量,在检测到第一终端中与视频通话相关联的元器件为关闭状态的情况下,根据所接收的各候选终端最新的通话质量,从各候选终端中确定第二终端。
第一终端接收到各候选终端发送的通话质量时,可以将各候选终端的通话质量存储在当地存储器中,也可以将各候选终端对应的除最新的通话指令信息之外的其他通话质量删除,以节约第一终端的存储空间。
在一种实施方式中,第一终端根据所接收的各候选终端最新的通话质量,从各候选终端中确定符合预设通话条件的第二终端。其中,预设通话条件是预先设置的通话所具备的条件。预设通话条件可以至少包括所检测到的声音分贝值大于预设分贝值,检测到的声音清晰度高于预设清晰度阈值,信噪比高于预设信噪比阈值,声音波动幅度小于预设幅度阈值,等等。第一终端从各候选终端中确定第二终端的方式并不限定,可以根据需要进行设置。
在另一种实施方式中,第一终端根据所接收的各候选终端最新的通话质量,从各候选终端中确定通话质量最高的候选终端作为第二终端。在另一种实施方式中,第一终端根据所接收的各候选终端最新的通话质量,从各候选终端中确定符合预设通话条件,并且通话质量最高的候选终端作为第二终端。第一终端从各候选终端中确定第二终端的方式并不限定,可以根据需要进行设置。
在本实施例中,第一终端将通话质量订阅指令发送至第一终端预设距离范围内的各候选终端,可以指示各候选终端分别检测自身的通话质量,并将检测得到的通话质量发送至第一终端,则第一终端可以接收到各候选终端发送的通话质量,从而根据所接收的各候选终端最新的通话质量,及时并且准确地从各候选终端中更新第二终端。
图5为一个实施例中通话切换方法的时序图。以第一终端为手机为例,手机向服务器发送与通话对端进行视频通话的视频通话请求。服务器从视频通话请求中确定通话对端,将视频通话请求发送至通话对端。通话对端接收到视频通话请求,返回视频通话响应至服务器,再通过服务器转发该视频通话响应至手机。手机接收到视频通话响应后,与通话对端之间建立通话数据通道,再通过该通话数据通道进行通话。
手机在与通话对端视频通话的过程中,可以进行设备搜索,则在手机的指定距离范围内的各候选终端将设备搜索响应发送至手机中。其中,设备搜索的方式具体可以包括蓝牙搜索、WiFi搜索、zigbee 搜索等。手机的指定距离范围内的各候选终端包括电视和音箱。
手机再将通话订阅指令分别发送至电视和音箱。电视接收到手机发送的通话订阅指令后,对自身的通话质量进行检测,并将检测得到的通话质量上报至手机中。音箱接收到手机发送的通话订阅指令后,对自身的通话质量进行检测,并将检测得到的通话质量上报至手机中。
手机可以根据接收的电视和音箱最新的通话质量,可以生成提示信息,以提示电视和音箱各自的通话质量。手机还可以根据接收的电视和音箱最新的通话质量分别判断电视和音箱的通话质量是否符合预设通话条件,当存在符合预设通话条件的候选终端时,则生成提示信息,以提示用户在指定距离范围内存在符合预设通话条件的候选终端。
在一个实施例中,获取第一终端预设距离范围内的各候选终端的通话质量之后,还包括:将符合预设通话条件的通话质量所属的候选终端确定为可用终端;根据各候选终端的通话质量,从各候选终端中确定第二终端,包括:根据各可用终端的通话质量,从各可用终端中确定第二终端。
预设通话条件是预先设置的通话所具备的条件。预设通话条件可以至少包括所检测到的声音分贝值大于预设分贝值,检测到的声音清晰度高于预设清晰度阈值,信噪比高于预设信噪比阈值,声音波动幅度小于预设幅度阈值,等等。
可用终端是通话指令信息符合预设通话条件的候选终端。可用终端的数量可以为0、1个或者多个。
第一终端将各候选终端的通话质量与预设通话条件进行比较,从各候选终端中筛选出通话质量符合预设通话条件的候选终端,并将该候选终端确定为可用终端。
在不存在可用终端的情况下,则继续接收各候选的通话质量;在可用终端的数量是1个的情况下,可以直接将该可用终端确定为第二终端;在可用终端的数量是多个的情况下,根据各可用终端的通话质量,从各可用终端中确定第二终端。
在一种实施方式中,第一终端根据各可用终端的通话质量,从各可用终端中确定通话质量最高的可用终端为第二终端。在另一种实施方式中,第一终端根据各可用终端的通话质量,从各可用终端中随机选择其中一个可用终端作为第二终端。第一终端从各可用终端中确定第二终端的方式并不限定,可以根据需要进行设置。
在本实施例中,第一终端将符合预设通话条件的候选终端确定为可用终端,可以从各可用终端中确定第二终端,保证第二终端的通话质量符合预设通话条件。
在一个实施例中,上述方法还包括:在通话对端与第二终端进行通话之后,若检测到第一终端中与视频通话相关联的元器件切换至开启状态,则获取通话对端与第二终端之间的通话状态;在通话对端与第二终端之间的通话状态是通话中状态的情况下,响应于强制切换的触发操作,第一终端与通话对端进行通话。
通话对端与第二终端之间的通话状态,包括通话中状态和空闲状态。通话中状态表示通话对端与第二终端处于通话中。空闲状态表示通话对端与第二终端未处于通话中,即通话已断开。
在通话对端与第二终端进行通话之后,第一终端若检测到第一终端中与视频通话相关联的元器件切换至开启状态,则将通话状态的请求发送至服务器,以指示服务器获取通话对端与第二终端之间的通话状态,并将该通话状态返回至第一终端。
第一终端在获取到通话对端与第二终端之间的通话状态是通话中状态的情况下,可以将该通话状态展示在显示界面中,当用户执行强制切换的触发操作,第一终端响应于强制切换的触发操作,强制将与通话对端进行通话的第二终端切换至第一终端,通过第一终端与通话对端进行通话。
在本实施例中,在通话对端与第二终端进行通话之后,若检测到第一终端中与视频通话相关联的元器件切换至开启状态,则获取通话对端与第二终端之间的通话状态;在通话对端与第二终端之间的通话状态是通话中状态的情况下,响应于强制切换的触发操作,可以强制将与通话对端进行通话的第二终端切换至第一终端,通过第一终端与通话对端进行通话。
在一个实施例中,上述方法还包括:在通话对端与第二终端进行通话之后,获取第一终端所检测到的声音;根据所检测到的声音,确定第一终端的通话质量,并将第一终端的通话质量发送至第二终端;在第二终端根据预设切换条件切换至第一终端的情况下,第一终端与通话对端进行通话。
预设切换条件是第二终端中预先设置的切换至其他通话终端的条件。预设切换条件可以根据需要进行设置。例如,预设切换条件可以是接收到第一终端发送的强制切换指令,也可以是第二终端的通话质量不符合预设通话条件,还可以是检测到第二终端中与通话相关联的元器件切换至关闭状态,等等,在此不做限定。
在通话对端与第二终端进行通话之后,第一终端通过麦克风获取自身所检测到的声音。
第一终端根据所检测到的声音,确定第一终端的通话质量,具体包括:确定所检测到的声音的属性特征;根据属性特征确定第一终端的通话质量。
属性特征是所检测到的声音具备的属性的特征。属性特征具体可以是分贝值、信噪比、清晰度、声音波动幅度等。
在一种实施方式中,所检测到的声音的属性特征包括分贝值,第一终端确定所检测到的声音的分贝值,根据分贝值确定第一终端的通话质量;分贝值与通话质量成正比例关系。分贝值用于度量声音强度。分贝值越高,表示所检测到的声音越大,则第一终端的通话质量越高。
在另一种实施方式中,第一终端确定所检测到的声音的各属性特征;确定各属性特征分别对应的子通话质量,再基于各子通话质量确定第一终端的通话质量。可选地,第一终端可以将各子通话质量相加得到第一终端的通话质量;也可以将各子通话质量乘以相应的权重因子,再将各乘积相加得到第一终端的通话质量。第一终端基于各子通话质量确定第一终端的通话质量的方式,在此并不限定。
在另一种实施方式中,第一终端调用摄像头抓拍到用户的人脸图像,对人脸图像进行人脸识别,根据人脸识别结果确定第一终端的通话质量。其中,人脸识别结果可以包括人脸的清晰度、人脸与摄像头的距离、人脸是否被遮挡等信息。
第一终端将自身的通话质量发送至第二终端。第二终端接收到包括第一终端在内的各候选终端的通话质量,在第二终端符合预设切换条件的情况下,根据包括第一终端在内的各候选终端的通话质量,确定切换终端。其中,切换终端是第二终端在与通话对端通话的过程中,所确定的进行切换的终端。
在第二终端确定出切换终端是第一终端的情况下,第二终端将第一终端的标识发送至通话对端,以指示通话对端与第一终端进行通话。
在本实施例中,在通话对端与第二终端进行通话之后,第一终端获取自身所检测到的声音,确定出第一终端的通话质量,并将第一终端的通话质量发送至第二终端,则在第二终端根据预设切换条件切换至第一终端的情况下,第一终端与通话对端进行通话,可以实现与通话对端进行通话的第二终端切换至第一终端。
在一个实施例中,获取第一终端所检测到的声音,包括:在检测到第一终端中与视频通话相关联的元器件切换至开启状态之后,并且检测到视频通话所使用的应用程序处于前台运行的情况下,获取第一终端所检测到的声音。
在检测到第一终端中与视频通话相关联的元器件切换至开启状态之后,并且检测到视频通话所使用的应用程序处于前台运行的情况下,表示用户需要通过应用程序进行视频通话,则第一终端获取第一终端所检测到的声音,确定第一终端的通话质量,并将通话质量发送至第二终端,从而可以有机会使得第一终端作为第二终端所确定的切换终端,实现第一终端与通话对端进行通话。
在一个实施例中,获取第一终端所检测到的声音之后,还包括:将第一终端所检测到的声音与指定声纹进行匹配;在第一终端所检测到的声音与指定声纹相匹配的情况下,根据所检测到的声音,确定第一终端的通话质量。
声纹(Voiceprint),是用电声学仪器显示的携带言语信息的声波频谱。通过声音的声纹可以识别出该声音是否为某一用户的声音。指定声纹是预先指定的声纹。指定声纹是采用第一终端或第二终端进行通话的用户的声纹。
在将第一终端所检测到的声音与指定声纹进行匹配之前,还包括:第一终端在采用用户账号登录通话应用程序的情况下,获取输入的用户声音,识别出用户声音的声纹信息,将该声纹信息与用户账号进行绑定。其中,用户声音的声纹信息也即本实施例中的指定声纹。那么,第一终端获取自身检测到的声音之后,可以将检测到的声音与指定声纹进行匹配,从而判断检测到的声音是否为用户的声音。
进一步地,第一终端可以将识别出的声纹信息发送至服务器进行存储;当第二终端添加的信任用户 标识为该用户标识时,从服务器中获取该用户标识的声纹信息,用于与第二终端所检测到的声纹信息进行匹配,从而判断第二终端所检测到的声音是否为用户的声音。
第一终端将检测到声音与指定声纹进行匹配,在所检测到的声音与指定声纹相匹配的情况下,表示所检测到的声音属于通话的用户的声音,则根据所检测到的声音,确定第一终端所检测到的通话的用户的声音的通话质量。
在所检测到的声音与指定声纹不匹配的情况下,表示所检测到的声音不属于通话的用户的声音,则丢弃所检测到的声音。
在本实施例中,将第一终端所检测到的声音与指定声纹进行匹配;在第一终端所检测到的声音与指定声纹相匹配的情况下,根据所检测到的声音,确定第一终端的通话质量,可以准确地检测出第一终端用于通话的情况下的通话质量。
在一个实施例中,如图6所示,将第二终端的标识发送至通话对端之前,还包括:
操作602,确定处于第一终端的指定空间范围内各预连接终端。
指定空间范围是预先指定的空间范围。指定空间范围可以是以第一终端为中心,半径为预设距离的球形空间范围,也可以是第一终端的搜索范围。其中,预设距离例如10米,20米等。第一终端的搜索范围具体可以是蓝牙的搜索范围、WiFi的搜索范围、zigbee的搜索范围等。
预连接终端是第一终端的指定空间范围内用于与通话对端进行预连接的终端。预连接终端的数量可以是一个,也可以是多个。
操作604,将各预连接终端的标识发送至通话对端,以指示通话对端建立与各预连接终端之间的预连接通话数据通道。
预连接终端的标识是用于唯一识别出预连接终端的标识。预连接终端的标识具体可以是预连接终端的MAC(Media Access Control Address,媒体存取控制位址)地址、IMEI码(International Mobile Equipment Identity,国际移动设备识别码)、具有唯一性的字符串等。预连接通话数据通道是预连接的用户通话的数据通道。
通话对端接收到各预连接终端的标识后,可以查找到各预连接终端,并建立与各预连接终端之间的预连接通话数据通道。
将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话,包括:
操作606,在第二终端是预连接终端的情况下,将第二终端的标识发送至通话对端,以指示通话对端与第二终端通过预连接数据通道进行通话。
若第二终端处于第一终端的指定空间范围内,则第二终端是预连接终端,通话对端建立与第二终端之间的预连接通话数据通道。第一终端将第二终端的标识发送至通话对端后,则通话对端可以直接通过预连接数据通道与第二终端进行通话,避免了在切换过程中建立数据通道,可以提高通话终端切换的效率,以及通话的效率。
在一个实施例中,提供了另一种通话切换方法,以运行于图1中的第一终端上为例进行描述,包括以下操作:在与通话对端音频通话的过程中,获取第一终端预设距离范围内的第二终端;接收第一终端中与音频通话相关联的元器件的关闭指令,在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话。
第一终端中与音频通话相关联的元器件,至少包括扬声器、麦克风、屏幕、声音处理器等。
使用者触发所产生的关闭指令,是使用者主动触发关闭第一终端中与音频通话相关联的元器件的指令。例如,第一终端为手机,在手机与通话对端音频通话的过程中,使用者按压屏幕电源按键产生关闭指令,关闭屏幕。又如,第一终端为音箱,在音箱与通话对端音频通话的过程中,使用者关闭音箱的扬声器开关产生关闭指令,关闭扬声器。又如,第一终端为车载终端,在车载终端与通话对端音频通话的过程中,使用者关闭电源产生关闭指令,关闭车载终端的各个元器件。
可以理解的是,在第一终端与通话对端音频通话的过程中,通过第一终端的外壁上所安装的红外传感器,检测使用者与第一终端之间的距离。若使用者与第一终端的距离小于或等于距离阈值时,表示使用者将采用通话孔进行通话,为了防止误触,第一终端通常会息屏处理。其中,距离阈值可以根据需 要进行设置。
而在本实施例中,在关闭指令是使用者与第一终端的距离大于距离阈值时所产生的情况下,排除了使用者将采用通话孔进行通话而息屏的情况,则基于该关闭指令关闭第一终端中与音频通话相关联的元器件,会影响第一终端与通话对端之间的音频通话,则将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话。
在本实施例中,第一终端在与通话对端音频通话的过程中,获取第一终端预设距离范围内的第二终端,接收第一终端中与音频通话相关联的元器件的关闭指令,在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,可以认为使用者需要切换设备,或者第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
图7为另一个实施例中通话切换方法的流程图。本实施例中的通话切换方法,以运行于图1中的第一终端上为例进行描述。如图7所示,通话切换方法包括操作702至操作706。
操作702,在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取第一终端预设距离范围内的各候选终端的通话质量。
候选终端是处于第一终端预设距离范围内,并且用于筛选出第二终端的终端。第一终端的通话质量指的是第一终端在未来时刻通话过程中的质量。通话质量具体可以是通话质量评分、通话质量等级、通话质量标签等。
检测第一终端的通话质量,包括:获取第一终端所检测到的声音;根据所检测到的声音,确定第一终端的通话质量。其中,根据所检测到的声音,确定第一终端的通话质量,包括:确定所检测到的声音的属性特征;根据属性特征确定第一终端的通话质量。
操作704,在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,从各候选终端中确定第二终端。
通话质量切换条件指的是对于第一终端和候选终端的通话质量所设置的切换条件。通话质量切换条件可以根据需要进行设置。例如,通话质量切换条件可以是第一终端的通话质量不符合预设通话条件,并且存在通话质量符合预设通话条件的候选终端。又如,通话质量切换条件可以是存在候选终端的通话质量高于第一终端的通话质量。
在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,表示用户需要对第一终端进行切换,则从各候选终端中确定第二终端。
操作706,将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话。
第二终端的标识是用于唯一识别出第二终端的标识。第二终端的标识具体可以是第二终端的MAC(Media Access Control Address,媒体存取控制位址)地址、IMEI码(International Mobile Equipment Identity,国际移动设备识别码)、具有唯一性的字符串等。
第一终端确定第二终端后,可以从存储器中查找该第二终端的标识,并将第二终端的标识发送至通话对端。通话对端接收到第二终端的标识,可以通过该第二终端的标识唯一查找到第二终端,与第二终端进行通话。
可选地,通话对端与第二终端进行通话,可以是视频通话,也可以是音频通话等。
上述通话切换方法,第一终端在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取第一终端预设距离范围内的各候选终端的通话质量,在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,可以认为触发了第一终端切换至其他通话终端的条件,则从各候选终端中确定第二终端;将第二终端的标识发送至通话对端,则通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在一个实施例中,通话质量切换条件是第一终端的通话质量不符合预设通话条件,并且存在通话质量符合预设通话条件的候选终端;从各候选终端中确定第二终端,包括:从通话质量符合预设通话条件的各候选终端中确定第二终端。
预设通话条件是预先设置的通话所具备的条件。预设通话条件可以根据需要进行设置。例如,预设 通话条件可以是通话质量评分合格,也可以是通话质量等级高于3级,等等。
在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,即第一终端的通话质量不符合预设通话条件,并且存在通话质量符合预设通话条件的候选终端,则第一终端可以从各候选终端中将通话质量符合预设通话条件的候选终端作为第二终端。
进一步地,第一终端可以从通话质量符合预设通话条件的各候选终端中确定第二终端,避免了对所有候选终端进行筛选,提高了通话的终端进行切换的效率,也保证了第二终端的通话质量符合预设通话条件。
图8为另一个实施例中通话切换方法的流程图。本实施例中的通话切换方法,以运行于图1中的第二终端上为例进行描述。如图8所示,通话切换方法包括操作802至操作804。
操作802,接收通话对端的切换请求;切换请求是通话对端根据接收到的第二终端的标识生成的,第二终端的标识是第一终端在与通话对端视频通话的过程中,第一终端在检测到与视频通话相关联的元器件的状态为关闭状态的情况下发送至通话对端的,第二终端的标识是第一终端预设距离范围内的第二终端的标识。
操作804,基于切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。
第二终端接收到通话对端的切换请求,基于切换请求返回切换响应至通话对端中,则通话对端接收到该切换响应后,可以与第二终端进行通话。
上述通话切换方法,第一终端在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与视频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以根据第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端接收到切换请求,并返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。可知,第一终端在与通话对端视频通话的过程中,检测到第一终端中与视频通话相关联的元器件为关闭状态,则可以自动切换至第二终端,即通过第二终端与通话对端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
图9为另一个实施例中通话切换方法的时序图。以第一终端为手机,第二终端为电视作为示例进行描述。第一终端在与通话对端视频通话的过程中,在满足自动切换条件的情况下,确定第二终端为电视,将电视的标识发送至通话对端。其中,自动切换条件可以是检测到第一终端中与视频通话相关联的元器件切换至关闭状态,或者第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件。第一终端在于通话对端视频通话的情况下,第一终端对应的各候选终端是电视和音箱。
通话对端向服务器发起切换请求,并通过服务器将切换请求转发至电视。电视接收通话对端的切换请求后,将检测到的声音与信任用户的声纹进行匹配,当检测到的声音与信任用户的声纹相匹配时,则将切换响应返回至服务器,再通过服务器将切换响应转发至通话对端,则通话对端与电视之间可以建立通话数据通道,在通过通话数据通道进行通话。
在通话对端与电视建立通话数据通道后,手机与通话对端可以断开之间的通话数据通道,手机再进行资源清理,以节约存储空间。
电视在与通话对端进行通话的过程中,可以进行设备搜索,则在电视的指定距离范围内的各候选终端将设备搜索响应发送至电视中。其中,设备搜索的方式具体可以包括蓝牙搜索、WiFi搜索、zigbee搜索等。电视的指定距离范围内的各候选终端包括手机和音箱。
电视再将通话质量订阅指令分别发送至手机和音箱。手机接收到电视发送的通话质量订阅指令后,对自身的通话质量进行检测,并将检测得到的通话质量上报至电视中。音箱接收到电视发送的通话订阅指令后,对自身的通话质量进行检测,并将检测得到的通话质量上报至电视中。
电视接收到手机和音箱的通话质量后,可以根据各通话质量确定新的待切换的终端。
在一个实施例中,上述方法还包括:在第一终端与通话对端视频通话的过程中,获取第二终端所检测到的声音;根据所检测到的声音,确定第二终端的通话质量,并将第二终端的通话质量发送至第一终端,以指示第一终端在检测到第一终端中与视频通话相关联的元器件切换至关闭状态,并且所确定的待切换的终端是第二终端的情况下,将第二终端的标识发送至通话对端。
在第一终端与通话对端视频通话的过程中,第二终端通过麦克风获取自身所检测到的声音。
第二终端根据所检测到的声音,确定第二终端的通话质量,具体包括:第二终端确定所检测到的声音的属性特征;根据属性特征确定第二终端的通话质量。
属性特征是所检测到的声音具备的属性的特征。属性特征具体可以是分贝值、信噪比、清晰度、声音波动幅度等。
在一种实施方式中,所检测到的声音的属性特征包括分贝值,第二终端确定所检测到的声音的分贝值,根据分贝值确定第二终端的通话质量;分贝值与通话质量成正比例关系。分贝值用于度量声音强度。分贝值越高,表示所检测到的声音越大,则第二终端的通话质量越高。
在另一种实施方式中,第二终端确定所检测到的声音的各属性特征;确定各属性特征分别对应的子通话质量,再基于各子通话质量确定第二终端的通话质量。可选地,第二终端可以将各子通话质量相加得到第二终端的通话质量;也可以将各子通话质量乘以相应的权重因子,再将各乘积相加得到第二终端的通话质量。第二终端基于各子通话质量确定第一终端的通话质量的方式,在此并不限定。
在另一种实施方式中,第二终端接收第一终端发送的通话质量检测指令,根据通话质量检测指令调用摄像头抓拍到用户的人脸图像,对人脸图像进行人脸识别,根据人脸识别结果确定第二终端的通话质量。其中,人脸识别结果可以包括人脸的清晰度、人脸与摄像头的距离、人脸是否被遮挡等信息。
在本实施例中,在第一终端与通话对端视频通话的过程中,获取第二终端所检测到的声音;根据所检测到的声音,确定第二终端的通话质量,并将第二终端的通话质量发送至第一终端,以指示第一终端在检测到第一终端中与视频通话相关联的元器件切换至关闭状态,并且所确定的待切换的终端是第二终端的情况下,将第二终端的标识发送至通话对端,从而提高通话的效率。
在一个实施例中,获取第二终端所检测到的声音之后,还包括:将第二终端所检测到的声音与指定声纹进行匹配;在第二终端所检测到的声音与指定声纹相匹配的情况下,根据所检测到的声音,确定第二终端的通话质量。
声纹(Voiceprint),是用电声学仪器显示的携带言语信息的声波频谱。通过声音的声纹可以识别出该声音是否为某一用户的声音。
指定声纹是预先指定的声纹。指定声纹是采用第一终端或第二终端进行通话的用户的声纹。
第二终端将检测到声音与指定声纹进行匹配,在所检测到的声音与指定声纹相匹配的情况下,表示所检测到的声音属于通话的用户的声音,则根据所检测到的声音,确定第二终端所检测到的通话的用户的声音的通话质量。
在所检测到的声音与指定声纹不匹配的情况下,表示所检测到的声音不属于通话的用户的声音,则丢弃所检测到的声音。
在本实施例中,第二终端将自身所检测到的声音与指定声纹进行匹配;在第二终端所检测到的声音与指定声纹相匹配的情况下,根据所检测到的声音,确定第二终端的通话质量,可以准确地检测出第二终端用于通话的情况下的通话质量。
在一个实施例中,将第二终端所检测到的声音与指定声纹进行匹配,包括:获取第一终端中所登录的通话应用程序的用户标识;从预存的各候选信任用户标识中,确定与用户标识相匹配的目标信任用户标识;将第二终端所检测到的声音与目标信任用户标识的声纹进行匹配。
候选信任用户标识是第二终端中设置的可进行通话的用户标识,即可以信任的用户标识。需要说明的是,第二终端中既可以登录通话应用程序,也可以不登录通话应用程序;第二终端中所登录的通话应用程序的账号可以与第一终端中所登录的通话应用程序的用户标识相同,也可以是候选信任用户标识中任意一个。
目标信任用户标识是与第一终端中所登录的通话应用程序的用户标识相匹配的候选信任用户标识。
第二终端获取到第一终端中所登录的通话应用程序的用户标识,将用户标识分别与第二终端中预存的各候选信任用户标识进行匹配,确定与用户标识相匹配的目标信任用户标识,该目标信任用户标识为第一终端中所登录的通话应用程序的用户标识,则将第二终端所检测到的声音与目标信任用户标识的声纹进行匹配。
例如,第一终端登录用户标识A,第二终端登录用户标识B,并且第二终端中预存的候选信任用户 标识包括有用户标识A,那么,第二终端可以获取用户标识A的声纹,并将声纹与检测到的声音进行匹配,从而在检测到的声音与用户标识A的声纹相匹配的情况下,确定检测到的声音为用户标识A的声音,则可以通过第二终端与通话对端进行通话,避免了第二终端也需要登录用户标识A,可以提高通话的效率。
在本实施例中,获取第一终端中所登录的通话应用程序的用户标识,从预存的各候选信任用户标识中,确定与用户标识相匹配的目标信任用户标识,将第二终端所检测到的声音与目标信任用户标识的声纹进行匹配,不需要用户在第二终端中登录用户标识的账号,避免了第二终端仅可以被登录账号的用户进行使用,第二终端可以被多个预存的候选信任用户标识的用户使用。
图10为一个实施例中通话切换方法的时序图。以第一终端为手机,第二终端为电视作为示例进行描述。手机检测到手机中与视频通话相关联的元器件切换至开启状态之后,向服务器发送通话对端和电视之间的通话状态的请求,接收通话对端和电视之间的通话状态。其中,通话状态包括通话中状态和空闲状态。
情况一:在通话对端和电视之间的通话状态为通话中状态的情况下,手机检测到视频通话所使用的应用程序处于前台运行,则将手机自身的通话质量发送至电视,在电视根据预设切换条件确定出切换终端是手机的情况下,手机与通话对端进行通话。
情况二:在通话对端和电视之间的通话状态为通话中状态的情况下,手机向服务器发起强制切换请求,再通过服务器将强制切换请求转发至通话对端。通话对端接收到强制切换请求,将生成的强制切换响应发送至服务器,再通过服务器将强制切换响应转发至手机。那么,电视和通话对端之间可以建立通话数据通道,通过通话数据通道进行通话。通话对端和电视则可以断开通话对端和电视之间的通话数据通道,以节约存储空间。
在一个实施例中,提供了另一种通话切换方法,以运行于图1中的第二终端上为例进行描述,包括以下操作:接收通话对端的切换请求;切换请求是通话对端根据接收到的第二终端的标识生成的,第二终端的标识是第一终端在与通话对端音频通话的过程中,第一终端在接收第一终端中与音频通话相关联的元器件的关闭指令,在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下发送至通话对端的,第二终端的标识是第一终端预设距离范围内的第二终端的标识;基于切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。
在本实施例中,第一终端在与通话对端音频通话的过程中,检测第一终端中与音频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与音频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现音频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以根据第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端接收到切换请求,并返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。可知,第一终端在与通话对端音频通话的过程中,检测到第一终端中与音频通话相关联的元器件为关闭状态,则可以自动切换至第二终端,即通过第二终端与通话对端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
图11为另一个实施例中通话切换方法的流程图。本实施例中的通话切换方法,以运行于图1中的第二终端上为例进行描述。如图11所示,通话切换方法包括操作1102至操作1104。
操作1102,接收通话对端的切换请求;切换请求是通话对端根据接收到的第二终端的标识生成的,第二终端的标识是第一终端预设距离范围内的第二终端的标识,第二终端是第一终端在与通话对端音视频通话的过程中,并且第一终端的通话质量和处于第一终端当前环境中各候选终端的通话质量满足通话质量切换条件的情况下,从各候选终端中确定的。
操作1104,基于切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。
上述通话切换方法,第一终端在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取通话终端预设距离范围内的各候选终端的通话质量,在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,可以认为触发了第一终端切换至其他通话终端的条件,则从各候选终端中确定第二终端;将第二终端的标识发送至通话对端,则通话对端根据接收到的第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端基于接收到的切换请求返回切换响应至通话对端 中,以指示通话对端与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在一个实施例中,提供了一种通话切换系统,包括第一终端、通话对端和各候选终端;其中:
第一终端,用于在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态;获取第一终端预设距离范围内的第二终端;在检测到与视频通话相关联的元器件的状态为关闭状态的情况下,将第二终端的标识发送至通话对端;
或者,第一终端用于在与通话对端音频通话的过程中,获取第一终端预设距离范围内的第二终端;接收第一终端中与音频通话相关联的元器件的关闭指令,在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,将第二终端的标识发送至通话对端;
或者,第一终端用于在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取第一终端预设距离范围内的各候选终端的通话质量;在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,从各候选终端中确定第二终端;将第二终端的标识发送至通话对端;
通话对端,用于接收第二终端的标识,并与第二终端进行通话;
第二终端,用于与通话对端进行通话。
应该理解的是,虽然图2至图4、图6至图8和图11的流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,图2至图4、图6至图8和图11中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。
图12为一个实施例的通话切换装置的结构框图。如图12所示,提供了一种通话切换装置,应用于第一终端,该装置包括:状态检测模块1202、获取模块1204和发送模块1206,其中:
状态检测模块1202,用于在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态。
获取模块1204,用于获取第一终端预设距离范围内的第二终端。
发送模块1206,用于在检测到与视频通话相关联的元器件的状态为关闭状态的情况下,将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话。
上述通话切换装置,第一终端在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与视频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在一个实施例中,上述获取模块1204还用于获取第一终端预设距离范围内的各候选终端的通话质量;根据各候选终端的通话质量,从各候选终端中确定第二终端。
在一个实施例中,上述获取模块1204还用于将通话质量订阅指令发送至第一终端预设距离范围内的各候选终端;接收各候选终端发送的通话质量;根据所接收的各候选终端最新的通话质量,从各候选终端中确定第二终端
在一个实施例中,上述获取模块1204还用于将符合预设通话条件的通话质量所属的候选终端确定为可用终端;根据各可用终端的通话质量,从各可用终端中确定第二终端。
在一个实施例中,上述通话切换装置还包括强制切换模块,用于在通话对端与第二终端进行通话之后,若检测到第一终端中与视频通话相关联的元器件切换至开启状态,则获取通话对端与第二终端之间的通话状态;在通话对端与第二终端之间的通话状态是通话中状态的情况下,响应于强制切换的触发操作,第一终端与通话对端进行通话。
在一个实施例中,上述通话切换装置还包括通话质量检测模块,用于在通话对端与第二终端进行通话之后,获取第一终端所检测到的声音;根据所检测到的声音,确定第一终端的通话质量,并将第一终 端的通话质量发送至第二终端;在第二终端根据预设切换条件切换至第一终端的情况下,第一终端与通话对端进行通话。
在一个实施例中,上述通话质量检测模块还用于在检测到第一终端中与视频通话相关联的元器件切换至开启状态之后,并且检测到视频通话所使用的应用程序处于前台运行的情况下,获取第一终端所检测到的声音。
在一个实施例中,上述通话质量检测模块还用于将第一终端所检测到的声音与指定声纹进行匹配;在第一终端所检测到的声音与指定声纹相匹配的情况下,根据所检测到的声音,确定第一终端的通话质量;在所检测到的声音与指定声纹不匹配的情况下,则丢弃所检测到的声音。
在一个实施例中,上述通话质量检测模块还用于确定所检测到的声音的属性特征;根据属性特征确定第一终端的通话质量。
在一个实施例中,上述装置还包括预连接模块,用于确定处于第一终端的指定空间范围内各预连接终端;将各预连接终端的标识发送至通话对端,以指示通话对端建立与各预连接终端之间的预连接通话数据通道;上述发送模块还用于在第二终端是预连接终端的情况下,将第二终端的标识发送至通话对端,以指示通话对端与第二终端通过预连接数据通道进行通话。
在另一个实施例中,还提供了一种通话切换装置,应用于第一终端,该装置包括:获取模块、接收模块和发送模块,其中:
获取模块,用于在与通话对端音频通话的过程中,获取第一终端预设距离范围内的第二终端。
接收模块,用于接收第一终端中与音频通话相关联的元器件的关闭指令,
发送模块,用于在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话。
上述通话切换装置,第一终端在与通话对端音频通话的过程中,获取第一终端预设距离范围内的第二终端,接收第一终端中与音频通话相关联的元器件的关闭指令,在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,可以认为使用者需要切换设备,或者第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以查找到第二终端,并自动与第二终端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在另一个实施例中,还提供了一种通话切换装置,应用于第一终端,该装置包括:通话质量获取模块、第二终端确定模块和发送模块,其中:
通话质量获取模块,用于在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取第一终端预设距离范围内的各候选终端的通话质量。
第二终端确定模块,用于在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,从各候选终端中确定第二终端。
发送模块,用于将第二终端的标识发送至通话对端,以指示通话对端与第二终端进行通话。
上述通话切换装置,第一终端在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及获取第一终端预设距离范围内的各候选终端的通话质量,在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,可以认为触发了第一终端切换至其他通话终端的条件,则从各候选终端中确定第二终端;将第二终端的标识发送至通话对端,则通话对端可以查找到第二终端,并自动与第二终端进行通话避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在一个实施例中,通话质量切换条件是第一终端的通话质量不符合预设通话条件,并且存在通话质量符合预设通话条件的候选终端;上述第二终端确定模块还用于从通话质量符合预设通话条件的各候选终端中确定第二终端。
图13为一个实施例的通话切换装置的结构框图。如图13所示,提供了一种通话切换装置,应用于第二终端,装置包括:接收模块1302和发送模块1304,其中:
接收模块1302,用于接收通话对端的切换请求;切换请求是通话对端根据接收到的第二终端的标识生成的,第二终端的标识是第一终端在与通话对端视频通话的过程中,第一终端在检测到与视频通话 相关联的元器件的状态为关闭状态的情况下发送至通话对端的,第二终端的标识是第一终端预设距离范围内的第二终端的标识。
发送模块1304,用于基于切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。
上述通话切换装置,第一终端在与通话对端视频通话的过程中,检测第一终端中与视频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与视频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现视频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以根据第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端接收到切换请求,并返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。可知,第一终端在与通话对端视频通话的过程中,检测到第一终端中与视频通话相关联的元器件为关闭状态,则可以自动切换至第二终端,即通过第二终端与通话对端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在一个实施例中,上述装置还包括通话质量检测模块,用于在第一终端与通话对端视频通话的过程中,获取第二终端所检测到的声音;根据所检测到的声音,确定第二终端的通话质量,并将第二终端的通话质量发送至第一终端,以指示第一终端在检测到第一终端中与视频通话相关联的元器件切换至关闭状态,并且所确定的待切换的终端是第二终端的情况下,将第二终端的标识发送至通话对端。
在一个实施例中,上述通话质量检测模块还用于将第二终端所检测到的声音与指定声纹进行匹配;在第二终端所检测到的声音与指定声纹相匹配的情况下,根据所检测到的声音,确定第二终端的通话质量;在所检测到的声音与指定声纹不匹配的情况下,则丢弃所检测到的声音。
在一个实施例中,上述通话质量检测模块还用于获取第一终端中所登录的通话应用程序的用户标识;从预存的各候选信任用户标识中,确定与用户标识相匹配的目标信任用户标识;将第二终端所检测到的声音与目标信任用户标识的声纹进行匹配。
在另一个实施例中,还提供了一种通话切换装置,应用于第二终端,该装置包括:接收模块和发送模块,其中:
接收模块,用于接收通话对端的切换请求;切换请求是通话对端根据接收到的第二终端的标识生成的,第二终端的标识是第一终端在与通话对端音频通话的过程中,第一终端在接收第一终端中与音频通话相关联的元器件的关闭指令,在关闭指令为使用者触发所产生的关闭指令,或使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下发送至通话对端的,第二终端的标识是第一终端预设距离范围内的第二终端的标识。
发送模块,用于基于切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。
上述通话切换装置,第一终端在与通话对端音频通话的过程中,检测第一终端中与音频通话相关联的元器件的状态,获取第一终端预设距离范围内的第二终端,在检测到第一终端中与音频通话相关联的元器件为关闭状态的情况下,可以认为第一终端无法继续实现音频通话,即触发了第一终端切换至其他通话终端的条件,则将第二终端的标识发送至通话对端,通话对端可以根据第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端接收到切换请求,并返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。可知,第一终端在与通话对端音频通话的过程中,检测到第一终端中与音频通话相关联的元器件为关闭状态,则可以自动切换至第二终端,即通过第二终端与通话对端进行通话,避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
在另一个实施例中,还提供了一种通话切换装置,应用于第二终端,该装置包括:接收模块和发送模块,其中:
接收模块,用于接收通话对端的切换请求;切换请求是通话对端根据接收到的第二终端的标识生成的,第二终端的标识是第一终端预设距离范围内的第二终端的标识,第二终端是第一终端在与通话对端音视频通话的过程中,并且第一终端的通话质量和处于第一终端当前环境中各候选终端的通话质量满足通话质量切换条件的情况下,从各候选终端中确定的;
发送模块,用于基于切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话。
上述通话切换装置,第一终端在与通话对端音视频通话的过程中,检测第一终端的通话质量,以及 获取第一终端预设距离范围内的各候选终端的通话质量,在第一终端的通话质量和各候选终端的通话质量满足通话质量切换条件的情况下,可以认为触发了第一终端切换至其他通话终端的条件,则从各候选终端中确定第二终端;将第二终端的标识发送至通话对端,则通话对端根据接收到的第二终端的标识生成切换请求,并将切换请求发送至第二终端。第二终端基于接收到的切换请求返回切换响应至通话对端中,以指示通话对端与第二终端进行通话避免了用户手动选择新的通话终端进行切换,提高了通话的效率。
上述通话切换装置中各个模块的划分仅仅用于举例说明,在其他实施例中,可将通话切换装置按照需要划分为不同的模块,以完成上述通话切换装置的全部或部分功能。
关于通话切换装置的具体限定可以参见上文中对于通话切换方法的限定,在此不再赘述。上述通话切换装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
图14为一个实施例中终端的内部结构示意图。如图14所示,该终端包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个终端的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种通话切换方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该终端可以是手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备。
本申请实施例中提供的通话切换装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的操作。
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行通话切换方法的操作。
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行通话切换方法。
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (27)

  1. 一种通话切换方法,应用于第一终端,所述方法包括:
    在与通话对端视频通话的过程中,检测所述第一终端中与视频通话相关联的元器件的状态;
    获取所述第一终端预设距离范围内的第二终端;及
    在检测到所述与视频通话相关联的元器件的状态为关闭状态的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
  2. 根据权利要求1所述的方法,所述获取所述第一终端预设距离范围内的第二终端,包括:
    获取所述第一终端预设距离范围内的各候选终端的通话质量;及
    根据各所述候选终端的通话质量,从各所述候选终端中确定第二终端。
  3. 根据权利要求2所述的方法,所述获取所述第一终端预设距离范围内的各候选终端的通话质量,包括:
    将通话质量订阅指令发送至所述第一终端预设距离范围内的各候选终端;
    接收各所述候选终端发送的通话质量;及
    所述根据各所述候选终端的通话质量,从各所述候选终端中确定第二终端,包括:
    根据所接收的各所述候选终端最新的通话质量,从各所述候选终端中确定第二终端。
  4. 根据权利要求2所述的方法,所述获取所述第一终端预设距离范围内的各候选终端的通话质量之后,还包括:
    将符合预设通话条件的通话质量所属的候选终端确定为可用终端;及
    所述根据各所述候选终端的通话质量,从各所述候选终端中确定第二终端,包括:
    根据各所述可用终端的通话质量,从各所述可用终端中确定第二终端。
  5. 根据权利要求1所述的方法,所述方法还包括:
    在所述通话对端与所述第二终端进行通话之后,若检测到所述第一终端中与视频通话相关联的元器件切换至开启状态,则获取所述通话对端与所述第二终端之间的通话状态;及
    在所述通话对端与所述第二终端之间的通话状态是通话中状态的情况下,响应于强制切换的触发操作,所述第一终端与所述通话对端进行通话。
  6. 根据权利要求1所述的方法,所述方法还包括:
    在所述通话对端与所述第二终端进行通话之后,获取所述第一终端所检测到的声音;
    根据所述所检测到的声音,确定所述第一终端的通话质量,并将所述第一终端的通话质量发送至所述第二终端;及
    在所述第二终端根据预设切换条件切换至所述第一终端的情况下,所述第一终端与所述通话对端进行通话。
  7. 根据权利要求6所述的方法,所述获取所述第一终端所检测到的声音,包括:
    在检测到所述第一终端中与视频通话相关联的元器件切换至开启状态之后,并且检测到视频通话所使用的应用程序处于前台运行的情况下,获取所述第一终端所检测到的声音。
  8. 根据权利要求6所述的方法,所述获取所述第一终端所检测到的声音之后,还包括:
    将所述第一终端所检测到的声音与指定声纹进行匹配;及
    在所述第一终端所检测到的声音与所述指定声纹相匹配的情况下,根据所述所检测到的声音,确定所述第一终端的通话质量。
  9. 根据权利要求6至8中任一项所述的方法,所述根据所述所检测到的声音,确定所述第一终端的通话质量,包括:
    确定所述所检测到的声音的属性特征;及
    根据所述属性特征确定所述第一终端的通话质量。
  10. 根据权利要求1所述的方法,所述将所述第二终端的标识发送至所述通话对端之前,还包括:
    确定处于所述第一终端的指定空间范围内各预连接终端;
    将各所述预连接终端的标识发送至所述通话对端,以指示所述通话对端建立与各所述预连接终端之间的预连接通话数据通道;及
    所述将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话,包括:
    在所述第二终端是所述预连接终端的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端通过所述预连接数据通道进行通话。
  11. 一种通话切换方法,应用于第一终端,所述方法包括:
    在与通话对端音频通话的过程中,获取所述第一终端预设距离范围内的第二终端;及
    接收所述第一终端中与音频通话相关联的元器件的关闭指令,在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
  12. 一种通话切换方法,应用于第一终端,所述方法包括:
    在与通话对端音视频通话的过程中,检测所述第一终端的通话质量,以及获取所述第一终端预设距离范围内的各候选终端的通话质量;
    在所述第一终端的通话质量和各所述候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定第二终端;及
    将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
  13. 根据权利要求12所述的方法,所述通话质量切换条件是所述第一终端的通话质量不符合预设通话条件,并且存在通话质量符合预设通话条件的候选终端;及
    所述从各所述候选终端中确定第二终端,包括:
    从通话质量符合预设通话条件的各候选终端中确定第二终端。
  14. 一种通话切换方法,应用于第二终端中,所述方法包括:
    接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端在与通话对端视频通话的过程中,所述第一终端在检测到与视频通话相关联的元器件的状态为关闭状态的情况下发送至所述通话对端的,所述第二终端的标识是所述第一终端预设距离范围内的第二终端的标识;及
    基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
  15. 根据权利要求14所述的方法,所述方法还包括:
    在所述第一终端与所述通话对端视频通话的过程中,获取所述第二终端所检测到的声音;及
    根据所述所检测到的声音,确定所述第二终端的通话质量,并将所述第二终端的通话质量发送至所述第一终端,以指示所述第一终端在检测到所述第一终端中与视频通话相关联的元器件切换至关闭状态,并且所确定的待切换的终端是第二终端的情况下,将所述第二终端的标识发送至所述通话对端。
  16. 根据权利要求15所述的方法,所述获取所述第二终端所检测到的声音之后,还包括:
    将所述第二终端所检测到的声音与指定声纹进行匹配;及
    在所述第二终端所检测到的声音与所述指定声纹相匹配的情况下,根据所述所检测到的声音,确定所述第二终端的通话质量。
  17. 根据权利要求16所述的方法,所述将所述第二终端所检测到的声音与指定声纹进行匹配,包括:
    获取所述第一终端中所登录的通话应用程序的用户标识;
    从预存的各候选信任用户标识中,确定与所述用户标识相匹配的目标信任用户标识;及
    将所述第二终端所检测到的声音与所述目标信任用户标识的声纹进行匹配。
  18. 一种通话切换方法,应用于第二终端,所述方法包括:
    接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端在与通话对端音频通话的过程中,所述第一终端在接收所述第一终端中与音频通话相关联的元器件的关闭指令,在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下发送至所述通话对端的,所述第二终端的标识是所述第一终端预设距离范围内的第二终端的标识;及
    基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
  19. 一种通话切换方法,应用于第二终端中,所述方法包括:
    接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端预设距离范围内的第二终端的标识,所述第二终端是所述第一终端在与所述通话对端音视频通话的过程中,并且所述第一终端的通话质量和处于所述第一终端当前环境中各候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定的;及
    基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
  20. 一种通话切换装置,应用于第一终端中,所述装置包括:
    状态检测模块,用于在与通话对端视频通话的过程中,检测所述第一终端中与视频通话相关联的元器件的状态;
    获取模块,用于获取所述第一终端预设距离范围内的第二终端;及
    发送模块,用于在检测到所述与视频通话相关联的元器件的状态为关闭状态的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
  21. 一种通话切换装置,应用于第一终端中,所述装置包括:
    获取模块,用于在与通话对端音频通话的过程中,获取所述第一终端预设距离范围内的第二终端;
    接收模块,用于接收所述第一终端中与音频通话相关联的元器件的关闭指令,及
    发送模块,用于在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下,将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
  22. 一种通话切换装置,应用于第一终端中,所述装置包括:
    通话质量获取模块,用于在与通话对端音视频通话的过程中,检测所述第一终端的通话质量,以及获取所述第一终端预设距离范围内的各候选终端的通话质量;
    第二终端确定模块,用于在所述第一终端的通话质量和各所述候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定第二终端;及
    发送模块,用于将所述第二终端的标识发送至所述通话对端,以指示所述通话对端与所述第二终端进行通话。
  23. 一种通话切换装置,应用于第二终端中,所述装置包括:
    接收模块,用于接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端在与通话对端视频通话的过程中,所述第一终端在检测到与视频通话相关联的元器件的状态为关闭状态的情况下发送至所述通话对端的,所述第二终端的标识是所述第一终端预设距离范围内的第二终端的标识;及
    发送模块,用于基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
  24. 一种通话切换装置,应用于第二终端中,所述装置包括:
    接收模块,用于接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端在与通话对端音频通话的过程中,所述第一终端在接收所述第一终端中与音频通话相关联的元器件的关闭指令,在所述关闭指令为使用者触发所产生的关闭指令,或所述使用者与第一终端的距离大于距离阈值时所产生的关闭指令的情况下发送至所述通话对端的,所述第二终端的标识是所述第一终端预设距离范围内的第二终端的标识;及
    发送模块,用于基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
  25. 一种通话切换装置,应用于第二终端中,所述装置包括:
    接收模块,用于接收通话对端的切换请求;所述切换请求是所述通话对端根据接收到的所述第二终端的标识生成的,所述第二终端的标识是第一终端预设距离范围内的第二终端的标识,所述第二终端是 所述第一终端在与所述通话对端音视频通话的过程中,并且所述第一终端的通话质量和处于所述第一终端当前环境中各候选终端的通话质量满足通话质量切换条件的情况下,从各所述候选终端中确定的;及
    发送模块,用于基于所述切换请求返回切换响应至所述通话对端中,以指示所述通话对端与所述第二终端进行通话。
  26. 一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至19中任一项所述的通话切换方法的操作。
  27. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至19中任一项所述的方法的操作。
PCT/CN2022/086352 2021-06-08 2022-04-12 通话切换方法、装置、终端和计算机可读存储介质 Ceased WO2022257591A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110637104.3 2021-06-08
CN202110637104.3A CN113242399B (zh) 2021-06-08 2021-06-08 通话切换方法、装置、终端和计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2022257591A1 true WO2022257591A1 (zh) 2022-12-15

Family

ID=77137145

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086352 Ceased WO2022257591A1 (zh) 2021-06-08 2022-04-12 通话切换方法、装置、终端和计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN113242399B (zh)
WO (1) WO2022257591A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242399B (zh) * 2021-06-08 2023-11-10 Oppo广东移动通信有限公司 通话切换方法、装置、终端和计算机可读存储介质
CN115842776B (zh) * 2021-08-13 2025-07-18 展讯通信(上海)有限公司 热备份方法及装置、计算机可读存储介质、用户设备
CN114828122B (zh) * 2022-04-26 2024-11-22 维沃移动通信有限公司 通话切换方法、装置和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120017555A (ko) * 2010-08-19 2012-02-29 엘지전자 주식회사 영상통화 단말기의 전환 방법 및 그에 따른 영상통화 단말기
TW201345258A (zh) * 2012-04-16 2013-11-01 Acer Inc 視訊通話系統及其視訊通話切換方法
CN106331258A (zh) * 2016-08-24 2017-01-11 乐视控股(北京)有限公司 一种通话方法、装置及系统
CN111148171A (zh) * 2019-12-30 2020-05-12 中国联合网络通信集团有限公司 通话切换方法及服务器
CN112671971A (zh) * 2020-12-21 2021-04-16 青岛海尔科技有限公司 通话处理方法及装置、存储介质、电子装置
CN113242399A (zh) * 2021-06-08 2021-08-10 Oppo广东移动通信有限公司 通话切换方法、装置、终端和计算机可读存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030012169A1 (en) * 2001-03-30 2003-01-16 Sunao Takatori Wireless lan system and control method and control and control program of wireless lan system
CN107820331B (zh) * 2017-10-31 2021-05-11 Oppo广东移动通信有限公司 通话方法、装置、计算机设备及可读存储介质
CN109348419A (zh) * 2018-10-26 2019-02-15 中国联合网络通信集团有限公司 通话切换方法、车载终端以及核心网
JP2020107927A (ja) * 2018-12-26 2020-07-09 キヤノン株式会社 画像表示装置の音声制御方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120017555A (ko) * 2010-08-19 2012-02-29 엘지전자 주식회사 영상통화 단말기의 전환 방법 및 그에 따른 영상통화 단말기
TW201345258A (zh) * 2012-04-16 2013-11-01 Acer Inc 視訊通話系統及其視訊通話切換方法
CN106331258A (zh) * 2016-08-24 2017-01-11 乐视控股(北京)有限公司 一种通话方法、装置及系统
CN111148171A (zh) * 2019-12-30 2020-05-12 中国联合网络通信集团有限公司 通话切换方法及服务器
CN112671971A (zh) * 2020-12-21 2021-04-16 青岛海尔科技有限公司 通话处理方法及装置、存储介质、电子装置
CN113242399A (zh) * 2021-06-08 2021-08-10 Oppo广东移动通信有限公司 通话切换方法、装置、终端和计算机可读存储介质

Also Published As

Publication number Publication date
CN113242399A (zh) 2021-08-10
CN113242399B (zh) 2023-11-10

Similar Documents

Publication Publication Date Title
US11811973B2 (en) Computer-programmed telephone-enabled devices for processing and managing numerous simultaneous voice conversations conducted by an individual over a computer network and computer methods of implementing thereof
CN108881779B (zh) 智能设备之间的视频通话接听转移方法、系统及服务器
WO2022257591A1 (zh) 通话切换方法、装置、终端和计算机可读存储介质
JP7257526B2 (ja) I/oデバイスのセットを使用した通信サービスの提供
CN105162678B (zh) 语音聊天的模式自适应方法及装置
KR102472916B1 (ko) 대화형 콘텐츠 제공 시스템 및 방법
WO2016000636A1 (zh) 一种通信处理方法和系统
US10511569B2 (en) Techniques for providing multi-modal multi-party calling
JP2023509407A (ja) マルチキャストサービス処理方法、マルチキャストサービス構成方法、端末及びネットワーク機器
WO2021169472A1 (zh) 语音通话转移方法及电子设备
US9750062B2 (en) Establishing a communication session
CN106792600A (zh) 一种信息处理方法、移动终端、信息处理服务器
US20150056967A1 (en) System and method for community based mobile device profiling
WO2021223157A1 (zh) 通信控制方法和通信控制装置
CN104618987B (zh) 接入网络的方法及装置
US8976223B1 (en) Speaker switching in multiway conversation
WO2022247404A1 (zh) 通话控制方法、装置、通话系统、可穿戴设备及可读介质
US10477002B2 (en) Communication server and communication terminal
CN107800617A (zh) 问题处理方法及装置
US20140359147A1 (en) Systems and methods of communicating via a web browser
CN116260856B (zh) 音视频通话方法和装置
CN113259526A (zh) 一种视频内容的播放方法、装置及电子设备
US11381410B1 (en) Dynamic media switching between different devices of same user based on quality of service and performance
CN104580070B (zh) 网络会话确认方法、装置及系统
US11070677B1 (en) Techniques for media call multiway relay escalation

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22819195

Country of ref document: EP

Kind code of ref document: A1