Voice call control method and device, terminal and storage medium
By establishing two voice calls at the same time in the terminal device and automatically switching to better quality calls, the poor voice call quality caused by unstable network signals of SIM card operators is solved, and the effect of improving voice call quality and simplifying operation is achieved. .
Patent Information
- Application Number
- CN202310851372.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When users make voice calls, due to the unstable network signal of the SIM card operator, the call quality is poor, the existing methods are cumbersome and inefficient.
By establishing two voice calls at the same time in the terminal device and automatically switching to a call with better call quality when the call quality is below the threshold, the quality of voice calls is improved and operation simplified.
It improves the call quality of voice calls, simplifies user operations, improves the efficiency of voice calls, and avoids the steps of users manually hang up and re-initiating calls.
Smart Images

Figure CN119316977A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a voice call control method, device, terminal and storage medium. Background Art
[0002] With the development of communication technology, most terminals already support the installation of two SIM (Subscriber Identity Module) cards. Users can choose any SIM card provided by any operator installed in the terminal to initiate a voice call. Because the network signal provided by the operator of a SIM card may be unstable during the process of the user making a voice call through a certain SIM card, the quality of the voice call is poor. In the case of poor voice call quality, the user can only manually hang up the voice call and then manually initiate a voice call through another SIM card. The operation is relatively cumbersome and results in low efficiency of voice calls. Therefore, there is an urgent need for a method that can effectively improve the call quality of voice calls. Summary of the Invention
[0003] The embodiments of the present application provide a voice call control method, device, terminal, and storage medium, which can improve the quality of voice calls, simplify user operations, and improve the efficiency of voice calls. The technical solution is as follows:
[0004] According to one aspect of an embodiment of the present application, a voice call control method is provided, the method comprising:
[0005] A first voice call and a second voice call are established between a first terminal and a second terminal, where the first voice call is established between a first subscriber identity SIM card and a second SIM card, and the second voice call is established between a third SIM card and a fourth SIM card. The first SIM card and the third SIM card are SIM cards installed in the first terminal, and the second SIM card and the fourth SIM card are SIM cards installed in the second terminal.
[0006] During the first voice call and the second voice call, controlling the first terminal to play a target voice call, where the target voice call is the first voice call that is successfully established between the first voice call and the second voice call;
[0007] When the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call, the voice call played by the first terminal is switched to the background voice call, and the background voice call is the voice call other than the target voice call between the first voice call and the second voice call.
[0008] According to another aspect of an embodiment of the present application, a voice call control device is provided, the device comprising:
[0009] a call establishment module, configured to establish a first voice call and a second voice call between a first terminal and a second terminal, wherein the first voice call is a voice call established between a first subscriber identity SIM card and a second SIM card, and the second voice call is a voice call established between a third SIM card and a fourth SIM card, wherein the first SIM card and the third SIM card are SIM cards installed in the first terminal, and the second SIM card and the fourth SIM card are SIM cards installed in the second terminal;
[0010] a call control module, configured to control the first terminal to play a target voice call during the first voice call and the second voice call, where the target voice call is the first voice call successfully established between the first voice call and the second voice call;
[0011] A call switching module is used to switch the voice call played by the first terminal to the background voice call when the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call. The background voice call is the voice call other than the target voice call between the first voice call and the second voice call.
[0012] In some embodiments, the call establishment module includes:
[0013] a first determining unit, configured to, in response to a voice initiation operation, determine the first SIM card and the second SIM card indicated by the voice initiation operation;
[0014] a second determining unit, configured to determine the fourth SIM card associated with the second SIM card;
[0015] a request sending unit, configured to send a first call request and a second call request to the second terminal, where the first call request is a call request sent by the first SIM card to the second SIM card, and the first call request is used to request establishment of the first voice call; and the second call request is a call request sent by the third SIM card to the fourth SIM card, and the second call request is used to request establishment of the second voice call;
[0016] A call establishing unit is used to establish the first voice call and the second voice call between the first terminal and the second terminal in response to an accept call response from the second terminal, wherein the accept call response is used to indicate that the second terminal accepts the first call request or the second call request.
[0017] In some embodiments, the second determining unit is configured to obtain SIM card association information stored in the first terminal, where the SIM card association information is used to indicate an association relationship between two SIM cards installed on the same terminal; and determine the fourth SIM card based on the second SIM card and the SIM card association information.
[0018] In some embodiments, the call establishment module is configured to, in response to the first terminal receiving a third call request and a fourth call request, obtain SIM card association information stored in the first terminal, where the third call request is a call request sent through the second SIM card, and the fourth call request is a call request sent through the fourth SIM card, and the SIM card association information is used to indicate an association relationship between two SIM cards installed on the same terminal; determine, based on the SIM card association information, whether there is an association relationship between the second SIM card and the fourth SIM card; and, in response to an answering operation by the first terminal, establish the first voice call and the second voice call between the first terminal and the second terminal if there is an association relationship between the second SIM card and the fourth SIM card, where the answering operation is the first terminal accepting the third call request or the fourth call request; and establish, between the first terminal and the second terminal, a voice call corresponding to the answering operation if there is no association relationship between the second SIM card and the fourth SIM card.
[0019] In some embodiments, the apparatus further comprises:
[0020] a detection module, configured to detect at least one of a packet loss rate and a signal-to-noise ratio of the target voice call during the process of performing the target voice call and the background voice call;
[0021] The detection module is further configured to detect at least one of a packet loss rate and a signal-to-noise ratio of the background voice call;
[0022] a determination module, configured to determine a call quality of the target voice call based on at least one of a packet loss rate and a signal-to-noise ratio of the target voice call, wherein the call quality is negatively correlated with the packet loss rate and positively correlated with the signal-to-noise ratio;
[0023] The determination module is further configured to determine the call quality of the background voice call based on at least one of a packet loss rate and a signal-to-noise ratio of the background voice call.
[0024] In some embodiments, the call switching module is used to determine the difference between the call quality of the background voice call and the call quality of the target voice call when the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call; and when the difference is greater than a preset threshold, switch the voice call played by the first terminal to the background voice call.
[0025] In some embodiments, the apparatus further comprises:
[0026] a call closing module, configured to close the target voice call and the background voice call in response to a call end response from the second terminal, wherein the call end response is used to instruct the second terminal to close the target voice call;
[0027] The call closing module is further configured to close the target voice call and the background voice call in response to a closing operation of the first terminal on the target voice call.
[0028] According to another aspect of an embodiment of the present application, a terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the voice call control method as described in the above aspect.
[0029] According to another aspect of an embodiment of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the voice call control method described in the above aspects.
[0030] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method as described in the above aspect.
[0031] According to another aspect of an embodiment of the present application, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method described in the above aspect.
[0032] The embodiments of the present application provide a voice call control solution. For two terminals, both of which have two SIM cards installed, two voice calls can be established simultaneously between the two terminals using the two SIM cards installed. Furthermore, if the quality of the current voice call is poor, the terminal can automatically play the other voice call with better quality. This method eliminates the need for the user to manually hang up the voice call and then manually initiate another voice call when the current voice call quality is poor. This not only improves the quality of the voice call, but also simplifies user operations and increases the efficiency of voice calls. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] Figure 1 This is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0035] Figure 2 This is a flow chart of a voice call control method provided by an embodiment of the present application;
[0036] Figure 3 This is a flowchart of another voice call control method provided by an embodiment of the present application;
[0037] Figure 4 This is a schematic diagram of playing a voice call provided by an embodiment of the present application;
[0038] Figure 5 This is a flow chart of a voice call provided by an embodiment of the present application;
[0039] Figure 6 This is a structural diagram of a voice call control device provided in an embodiment of the present application;
[0040] Figure 7 This is a structural diagram of another voice call control device provided in an embodiment of the present application;
[0041] Figure 8 This is a structural block diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0043] As used herein, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0044] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, storage, and display, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the SIM card association information involved in this application was obtained with full authorization.
[0045] Figure 1 This is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 The implementation environment includes a first terminal 101, a second terminal 102, and a network device 103. The first terminal 101 and the second terminal 102 can respectively communicate with the network device 103 directly or indirectly. The first terminal 101 and the second terminal 102 can also communicate with each other through the network device 103, which is not limited in this embodiment of the present application.
[0046] In some embodiments, the first terminal 101 and the second terminal 102 are both terminals with wireless communication capabilities. Specifically, the first terminal 101 and the second terminal 102 can both communicate with one or more core networks via a radio access network (RAN). The first terminal 101 and the second terminal 102 can be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals. For example, the first terminal 101 can be a portable, pocket-sized, handheld, computer-built-in, or vehicle-mounted mobile device. The first terminal 101 can also be a mobile phone, a tablet computer, a computer with wireless communication capabilities, or a wearable device. In the embodiments of the present application, this is not specifically limited.
[0047] In some embodiments, the network device 102 is a base station corresponding to at least one of the Long Term Evolution (LTE) system, the Wideband Code Division Multiple Access (WCDMA) system, or the Global System for Mobile Communications (GSM) system. In the embodiments of the present application, this is not specifically limited. In some embodiments, the network device 102 is any network device 102 with wireless transceiver functions. For example, the network device 102 is an evolved Node B (eNB), a next generation Node B (gNB), an access point (AP) in a Wireless Fidelity (WIFI) system, a wireless relay node, a wireless backhaul node, a transmission point (TP), or a transmission and reception point (TRP).
[0048] In some embodiments, the first terminal 101 and the second terminal 102 can conduct a voice call through the network device 103. For example, in response to the first terminal 101 initiating a voice call to the second terminal 102, the first terminal 101 sends a voice call request to the network device 103, and the network device 103 forwards the voice call request to the second terminal 102. In response to the second terminal 102 accepting the voice call request, a voice call is established between the first terminal 101 and the second terminal 102, and the first terminal 101 and the second terminal 102 can communicate through the voice call.
[0049] Figure 2 This is a flow chart of a voice call control method provided by an embodiment of the present application, see Figure 2 , the method comprising:
[0050] 201. A first voice call and a second voice call are established between a first terminal and a second terminal. The first voice call is a voice call established between a first subscriber identity SIM card and a second SIM card, and the second voice call is a voice call established between a third SIM card and a fourth SIM card. The first SIM card and the third SIM card are SIM cards installed in the first terminal, and the second SIM card and the fourth SIM card are SIM cards installed in the second terminal.
[0051] In the embodiments of the present application, a first terminal and a second terminal are two terminals performing data communication. Data communication can be achieved between the first terminal and the second terminal by establishing a voice call. During the voice call establishment process, the first terminal can be the calling terminal, i.e., the terminal initiating the voice call, and the second terminal can be the called terminal, i.e., the terminal receiving the voice call. Alternatively, the first terminal can be the called terminal, and the second terminal can be the calling terminal, which is not limited in the embodiments of the present application.
[0052] Both the first and second terminals are installed with two SIM (Subscriber Identity Module) cards, and both terminals support simultaneous voice calls through the two installed SIM cards. For example, in response to a voice initiation operation by any SIM card installed in the first terminal to any SIM card installed in the second terminal, the first terminal sends a voice call request to the corresponding SIM card installed in the second terminal through the SIM card installed, and also sends a voice call request to the other SIM card installed in the second terminal through the other installed SIM card. If the second terminal accepts either call request, two voice calls are established between the first and second terminals.
[0053] For ease of description, the two SIM cards involved in the above-mentioned voice initiation operation are referred to as the first SIM card and the second SIM card. The first SIM card is the SIM card installed in the first terminal, and the second SIM card is the SIM card installed in the second terminal. The other SIM card installed in the first terminal is referred to as the third SIM card, and the other SIM card installed in the second terminal is referred to as the fourth SIM card. The voice call established between the first SIM card and the second SIM card is referred to as the first voice call, and the voice call established between the third SIM card and the fourth SIM card is referred to as the second voice call. The first SIM card and the third SIM card can be SIM cards provided by different operators or by the same operator; the same applies to the second SIM card and the fourth SIM card, which are not limited in this embodiment of the present application.
[0054] 202. During the first voice call and the second voice call, control the first terminal to play a target voice call, where the target voice call is the first voice call that is successfully established between the first voice call and the second voice call.
[0055] In an embodiment of the present application, due to the influence of the network signal fluctuation of the operator, the voice data transmitted by the first voice call and the second voice call are each delayed to a certain extent, and the delay time may be different, resulting in different voice playback progress of the two voice calls. Therefore, the first terminal only selects one of the voice calls for playback, avoiding the occurrence of voice overlap, voice conflict, and user inability to hear the voice caused by playing two voice calls at the same time. In addition, since it cannot be guaranteed that the first voice and the second voice calls are established successfully at the same time. Therefore, in the process of the first terminal and the second terminal conducting the above two voice calls, the first terminal can choose to first establish the successful voice call, that is, the target voice call to play, avoiding the situation where the target voice call has been successfully established, but the first terminal has not played the target voice call, resulting in the loss of voice data transmitted by the target voice call.
[0056] 203. When the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call, the voice call played on the first terminal is switched to the background voice call, where the background voice call is the voice call other than the target voice call between the first voice call and the second voice call.
[0057] In this embodiment of the present application, during the first terminal's first and second voice calls, the voice call currently being played on the first terminal is the target voice call. Therefore, before the first terminal switches to the currently playing voice call, the voice call currently being played on the first terminal is the target voice call, and the voice call currently not being played on the first terminal is the background voice call. Although the first terminal is not currently playing the background voice call, it continues to receive voice data transmitted by the background voice call and transmits the collected voice data to the second terminal via the background voice call. Therefore, the first terminal can determine the call quality of the target voice call and the background voice call based on the voice data transmitted by each of the two voice calls. If the call quality of the target voice call currently being played on the first terminal falls below a call quality threshold, and the call quality of the background voice call exceeds that of the target voice call, the first terminal switches the currently playing voice call to the background voice call with better call quality to improve the call quality of the voice call. The call quality threshold can be a preset value, such as 70, 80, or 90, and is not limited in this embodiment of the present application.
[0058] In some embodiments, the call quality of a voice call can be a value quantified by the first terminal based on the packet loss rate of voice data transmitted during the voice call. For example, if the packet loss rate of the voice call is less than 3%, the first terminal determines the call quality of the voice call to be 90%; if the packet loss rate of the voice call is not less than 3% but less than 5%, the first terminal determines the call quality of the voice call to be 80%; if the packet loss rate of the voice call is not less than 5% but less than 10%, the first terminal determines the call quality of the voice call to be 70%; and if the packet loss rate of the voice call is not less than 10%, the first terminal determines the call quality of the voice call to be 60%.
[0059] It should be noted that the embodiment of the present application is an explanation of the process of the first terminal controlling the voice call played by itself. In some embodiments, the second terminal can also use the above method to control the voice call played by itself, and the embodiment of the present application does not limit this.
[0060] The embodiments of the present application provide a voice call control method. For two terminals, both of which have two SIM cards installed, two voice calls can be established simultaneously between the two terminals using the two SIM cards installed. Furthermore, if the call quality of the current voice call is poor, the terminal can automatically play the other voice call with better call quality. This method eliminates the need for the user to manually hang up the voice call and then manually initiate another voice call when the current voice call quality is poor. This not only improves the call quality of the voice call, but also simplifies user operations and increases the efficiency of the voice call.
[0061] Figure 3 This is a flow chart of another voice call control method provided by an embodiment of the present application. The method is executed by the terminal, see Figure 3 , the method comprising:
[0062] 301. A first voice call and a second voice call are established between a first terminal and a second terminal. The first voice call is a voice call established between a first subscriber identity SIM card and a second SIM card, and the second voice call is a voice call established between a third SIM card and a fourth SIM card. The first SIM card and the third SIM card are SIM cards installed in the first terminal, and the second SIM card and the fourth SIM card are SIM cards installed in the second terminal.
[0063] In an embodiment of the present application, a first terminal and a second terminal are two terminals performing data communication. Data communication between the first terminal and the second terminal can be achieved by establishing a voice call. During the voice call establishment process, the first terminal can be the calling terminal, i.e., the terminal initiating the voice call, and the second terminal can be the called terminal, i.e., the terminal receiving the voice call. Alternatively, the first terminal can be the called terminal and the second terminal can be the calling terminal, which is not limited in this embodiment of the present application. The first terminal and the second terminal are both installed with two SIM cards, and both the first terminal and the second terminal support simultaneous voice calls using both installed SIM cards. For example, in response to a voice initiation operation by any SIM card installed in the first terminal to any SIM card installed in the second terminal, the first terminal sends a voice call request to the corresponding SIM card installed in the second terminal via the SIM card installed, and also sends a voice call request to the other SIM card installed in the second terminal via the other installed SIM card. If the second terminal accepts either call request, two voice calls are established between the first terminal and the second terminal.
[0064] For example, let's say the first terminal is A and the second terminal is B. Both terminals are installed with a SIM card provided by operator C and a SIM card provided by operator D. A stores the numbers of the two SIM cards installed by B: number NumOB_C of the SIM card provided by operator C and phone number NumOB_D of the SIM card provided by operator D. Accordingly, B also stores the numbers of the two SIM cards installed by A: number NumOA_C of the SIM card provided by operator C and phone number NumOA_D of the SIM card provided by operator D. In response to a voice initiation operation from SIM card number NumOA_C to SIM card number NumOB_D, A automatically initiates a voice call to SIM card number NumOB_C via SIM card number NumOA_D. Alternatively, in response to a voice initiation operation from SIM card number NumOA_C to SIM card number NumOB_C, A automatically initiates a voice call to SIM card number NumOB_D via SIM card number NumOA_D.
[0065] For ease of description, the two SIM cards involved in the above-mentioned voice initiation operation are referred to as the first SIM card and the second SIM card. The first SIM card is the SIM card installed in the first terminal, and the second SIM card is the SIM card installed in the second terminal. The other SIM card installed in the first terminal is referred to as the third SIM card, and the other SIM card installed in the second terminal is referred to as the fourth SIM card. The voice call established between the first SIM card and the second SIM card is referred to as the first voice call, and the voice call established between the third SIM card and the fourth SIM card is referred to as the second voice call. The first SIM card and the third SIM card can be SIM cards provided by different operators or by the same operator; the same applies to the second SIM card and the fourth SIM card, which are not limited in this embodiment of the present application.
[0066] The following describes the process of establishing the first and second voice calls by taking two cases as examples: the first terminal is the calling terminal and the second terminal is the called terminal; and the first terminal is the called terminal and the second terminal is the calling terminal.
[0067] Scenario 1: The first terminal is the calling terminal, and the second terminal is the called terminal. In response to a voice initiation operation, the first terminal determines the first SIM card and the second SIM card indicated by the voice initiation operation. The voice initiation operation refers to initiating a voice call from the first SIM card installed in the first terminal to the second SIM card installed in the second terminal. The first terminal determines the fourth SIM card associated with the second SIM card. The association between the fourth SIM card and the second SIM card indicates that both are installed in the second terminal. After determining the second and fourth SIM cards, the first terminal sends a call request to the second terminal via the first and third SIM cards, respectively. The call request sent by the first terminal to the second SIM card via the first SIM card is a first call request, requesting the establishment of a first voice call. The call request sent by the first terminal to the fourth SIM card via the third SIM card is a second call request, requesting the establishment of a second voice call. After receiving the first and second call requests, the second terminal sends a call reception response to the first terminal in response to the second terminal accepting the first or second call request. Accordingly, in response to the second terminal's call reception response, the first and second voice calls are established between the first and second terminals. The call acceptance response is used to instruct the second terminal to accept the first call request or the second call request.
[0068] In some embodiments, the voice initiation operation can be triggered by a user through the first terminal or automatically by the first terminal. When the user triggers the voice initiation operation, the user initiates a voice call to the second SIM card installed in the second terminal via the first SIM card installed in the first terminal. When the first terminal triggers the voice initiation operation, the first terminal can automatically initiate a voice call to the second SIM card via the first SIM card at a preset time. The first and second SIM cards involved in the voice initiation operation can also be pre-set.
[0069] For example, the preset time is 2:00 PM on July 6, the preset first SIM card is the SIM card with number NumOA_C provided by operator C, and the preset second SIM card is the SIM card with number NumOB_D provided by operator D. At 2:00 PM on July 6, the first terminal initiates a voice call through the SIM card with number NumOA_C to the SIM card with number NumOB_D.
[0070] In some embodiments, a first terminal can determine a fourth SIM card associated with a second SIM card based on stored SIM card association information. First, the first terminal obtains the stored SIM card association information. The SIM card association information indicates the association between two SIM cards installed on the same terminal. Based on the second SIM card and the SIM card association information, the first terminal determines, from the SIM card association information, that the fourth SIM card is associated with the second SIM card.
[0071] In the process of storing the SIM card numbers, the first terminal can bind the association relationship between the SIM cards, and then generate and store SIM card association information based on the association relationship between the SIM cards. For example, the first terminal binds the numbers of two SIM cards installed on the same terminal into a combination, and generates SIM card association information based on multiple combinations. By generating SIM card association information through the above-mentioned binding combination method, when initiating a voice call to any terminal, the two SIM cards installed on the terminal can be found in the SIM card association information more quickly, and voice calls can be initiated to these two SIM cards separately, eliminating the need to manually search for the numbers of the two SIM cards installed on the terminal, thereby improving the efficiency of voice calls.
[0072] Case 2: The first terminal is the called terminal, and the second terminal is the calling terminal. If the second terminal is the calling terminal, the second terminal can also use the method described in Case 1 above to initiate two voice call requests to the first terminal via the second SIM card and the fourth SIM card, respectively. For ease of description, the call request sent by the second terminal to the first SIM card via the second SIM card is referred to as the third call request, which is used to request the establishment of the first voice call. The call request sent by the second terminal to the third SIM card via the fourth SIM card is referred to as the fourth call request, which is used to request the establishment of the second voice call. In response to the first terminal receiving the third and fourth call requests, the first terminal retrieves stored SIM card association information. Based on the SIM card association information, the first terminal determines whether an association exists between the second and fourth SIM cards. In response to an answer operation by the first terminal, if an association exists between the second and fourth SIM cards, the first and second voice calls are established between the first and second terminals. The answer operation refers to the first terminal accepting the third or fourth call request. If no association exists between the second and fourth SIM cards, the voice calls corresponding to the answer operation are established between the first and second terminals.
[0073] In some embodiments, after a first terminal receives the third and fourth call requests, the first terminal may first determine, using SIM card association information, whether there is an association between the second SIM card that sent the third call request and the fourth SIM card that sent the fourth call request. If an association exists between the second and fourth SIM cards, the first terminal displays only one call request. Optionally, the first terminal may display the call request received first. Then, in response to the first terminal answering the call request, a first voice call and a second voice call are established between the first and second terminals. If there is no association between the second and fourth SIM cards, the first terminal displays both call requests. The user can choose to answer one of the call requests. In response to the first terminal answering the call request, a voice call corresponding to the voice call request answered by the answering operation is established between the first and second terminals.
[0074] It should be noted that the embodiments of this application use the example of establishing two voice calls between a first terminal and a second terminal in response to an initial voice initiation operation. In some embodiments, two voice calls can also be established between a first terminal and a second terminal in response to a non-initial voice initiation operation, such as a redial operation. For a voice call initiated by a redial operation, the process of establishing two voice calls between a first terminal and a second terminal is similar to the above process and will not be further described here.
[0075] In some embodiments, after two voice calls are established between a first terminal and a second terminal, if either voice call is interrupted, such as due to network fluctuations, the first terminal or the second terminal can automatically initiate a redial while continuing to play the other voice call, thereby reestablishing the interrupted voice call without disrupting normal communication. For example, if the first voice call is interrupted, the first terminal and the second terminal play the second voice call. The first terminal resends a voice call request to the second SIM card via the first SIM card. In response to the second terminal automatically accepting the voice call request, the first voice call is reestablished between the first and second terminals, thereby reestablishing the interrupted first voice call without the user noticing. Alternatively, if the first voice call is interrupted, the second terminal can resend the voice call request to the first SIM card via the second SIM card, although this is not limited in this embodiment of the present application. The process by which the second terminal proactively initiates a redial to reestablish the first voice call is similar to the process described above and is not further described here.
[0076] 302. During the first voice call and the second voice call, control the first terminal to play a target voice call, where the target voice call is the first voice call that is successfully established between the first voice call and the second voice call.
[0077] In an embodiment of the present application, due to the influence of the network signal fluctuation of the operator, the voice data transmitted by the first voice call and the second voice call are each delayed to a certain extent, and the delay time may be different, resulting in different voice playback progress of the two voice calls. Therefore, the first terminal only selects one of the voice calls for playback, avoiding the voice overlap and voice conflict caused by playing two voice calls at the same time, and the user cannot hear the voice clearly. In addition, since it cannot be guaranteed that the first voice and the second voice calls are established successfully at the same time. Therefore, in the process of the first terminal and the second terminal conducting the above two voice calls, the first terminal selects the voice call that is successfully established first, that is, the target voice call to play, avoiding the situation where the target voice call has been successfully established, but the first terminal has not played the target voice call, and the voice data transmitted by the target voice call is lost.
[0078] In some embodiments, when the first terminal is connected to an audio device, the first terminal can play the target voice call through the audio device, that is, play the voice data transmitted to the first terminal by the target voice call. The audio device can be a device capable of outputting audio, such as a wired headset, wireless headset, Bluetooth speaker, or car audio. If the first terminal is not connected to an audio device, the first terminal plays the target voice call through its speaker.
[0079] For example, Figure 4 This is a schematic diagram of playing a voice call. Figure 4 As shown, the first terminal collects voice data through the microphone, and then transmits the collected voice data to the second terminal in the target voice call and the background voice call respectively. Similarly, the second terminal can also transmit the collected voice data to the first terminal through the above two voice calls respectively. Correspondingly, the first terminal plays the voice data received from the target voice call through the speaker. The first terminal can also play the voice data received from the background voice call through the speaker, thereby realizing the reuse of hardware devices such as microphones and speakers during the two voice calls.
[0080] 303. During the first voice call and the second voice call, determine the call quality of the first voice call and the call quality of the second voice call.
[0081] In an embodiment of the present application, during the process of the first terminal conducting the above-mentioned first voice call and the second voice call, the voice call played by the first terminal is the target voice call. Therefore, before the first terminal switches to the voice call being played, the voice call being played by the first terminal is the target voice call, and the voice call not played by the first terminal is the background voice call. Although the first terminal is not currently playing the background voice call, the first terminal still normally receives the voice data transmitted by the background voice call and transmits the collected voice data to the second terminal through the background voice call. Therefore, the first terminal can determine the call quality of the first voice call and the call quality of the second voice call respectively based on the voice data transmitted by the above-mentioned first voice call and the second voice call.
[0082] To distinguish the first and second voice calls between the currently playing voice call on the first terminal and the unplayed voice call, the voice call currently playing on the first terminal is referred to as the target voice call, and the unplayed voice call on the first terminal is referred to as the background voice call. For example, if the terminal is currently playing the first voice call, the first voice call is the target voice call, and the second voice call is the background voice call, and vice versa. The following describes the process by which the first terminal determines the call quality of the target voice call and the background voice call.
[0083] For the target voice call, the first terminal detects at least one of the packet loss rate and signal-to-noise ratio of the target voice call. The packet loss rate of the target voice call may be the packet loss rate of data packets transmitted for the target voice call. Since data packets encapsulate voice data, a higher packet loss rate indicates more voice data loss and lower call quality for the target voice call. The signal-to-noise ratio may be the ratio of signal power to noise power in the voice data transmitted for the target voice call. A higher signal-to-noise ratio indicates less noise in the voice data and higher call quality for the target voice call. The first terminal determines the call quality of the target voice call based on at least one of the packet loss rate and signal-to-noise ratio of the target voice call. Call quality is negatively correlated with packet loss rate, while call quality is positively correlated with signal-to-noise ratio. For background voice calls, the first terminal can use a similar method to determine the call quality of background voice calls, which will not be further described here.
[0084] In some embodiments, the first terminal may quantify the call quality of the target voice call into a numerical value based on at least one of the detected packet loss rate and signal-to-noise ratio of the target voice call. For example, the first terminal detects the packet loss rate of the target voice call and determines the call quality of the target voice call based on the packet loss rate. If the packet loss rate is less than 3%, the first terminal determines the call quality of the target voice call to be 90%; if the packet loss rate is not less than 3% and less than 5%, the first terminal determines the call quality of the target voice call to be 80%; if the packet loss rate is not less than 5% and less than 10%, the first terminal determines the call quality of the target voice call to be 70%; and if the packet loss rate is not less than 10%, the first terminal determines the call quality of the target voice call to be 60%.
[0085] Alternatively, the first terminal detects the signal-to-noise ratio of the target voice call and determines the call quality of the target voice call based on the signal-to-noise ratio. If the signal-to-noise ratio is not less than 95dB (decibels), the first terminal determines the call quality of the target voice call as 90%; if the signal-to-noise ratio is not less than 85dB but less than 95dB, the first terminal determines the call quality of the target voice call as 80%; if the signal-to-noise ratio is not less than 75dB but less than 85dB, the first terminal determines the call quality of the target voice call as 70%; and if the signal-to-noise ratio is less than 75dB, the first terminal determines the call quality of the target voice call as 60%.
[0086] Alternatively, the first terminal detects the packet loss rate and signal-to-noise ratio of the target voice call and, based on the weights of the packet loss rate and the signal-to-noise ratio, performs a weighted summation of the call quality quantified based on the packet loss rate and the call quality quantified based on the signal-to-noise ratio to obtain the call quality of the target voice call. The weights of the packet loss rate and the signal-to-noise ratio can be adjusted as needed. For example, if call continuity is more important, the weight of the packet loss rate can be increased. In determining call quality, call continuity is given greater attention, and voice calls with better call continuity can be determined to have higher call quality. In determining call clarity, the weight of the signal-to-noise ratio can be increased. In determining call quality, call clarity is given greater attention, and voice calls with better call clarity can be determined to have higher call quality.
[0087] 304. When the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call, determine the difference between the call quality of the background voice call and the call quality of the target voice call.
[0088] In an embodiment of the present application, after the first terminal determines the call quality of the target voice call and the call quality of the background voice call, it can determine whether to switch to playing the voice call based on the call quality of the two. If the call quality of the target voice call currently being played by the first terminal is lower than the call quality threshold, and the call quality of the background voice call is higher than the call quality of the target voice call, the first terminal determines the difference between the call quality of the background voice call and the call quality of the target voice call. The call quality threshold can be a preset value such as 70, 80, or 90, which is not limited in this embodiment of the present application.
[0089] 305. When the difference is greater than a preset threshold, switch the voice call played on the first terminal to a background voice call.
[0090] In an embodiment of the present application, a first terminal determines whether to switch to playing a voice call based on the difference between the call quality of the background voice call and the call quality of the target voice call and a preset threshold. If the difference is greater than the preset threshold, indicating that the call quality of the background voice call is significantly higher than that of the target voice call, the first terminal switches the currently playing voice call to the background voice call with better call quality to improve the call quality of the voice call. If the difference is not greater than the preset threshold, indicating that the call quality of the background voice call is close to that of the target voice call, the first terminal continues to play the target voice call and does not switch the voice call. Therefore, using the above method, the voice call played by the first terminal is only switched when the call quality of the background voice call is significantly better than that of the target voice call, reducing the number of voice call switches and avoiding voice freezes, discontinuities, and other issues caused by frequent voice call switches.
[0091] It should be noted that the embodiment of the present application is an explanation of the process of the first terminal controlling the voice call played by itself. In some embodiments, the second terminal can also use the above method to control the voice call played by itself, and the embodiment of the present application does not limit this.
[0092] 306. In response to the closing operation on the target voice call, close the target voice call and the background voice call.
[0093] In an embodiment of the present application, when the first terminal is currently playing a target voice call, in response to a closing operation on the target voice call, the first terminal simultaneously closes the target voice call and the background voice call. The closing operation on the target voice call can be performed by the first terminal or the second terminal. When the second terminal performs the closing operation, the first terminal closes the target voice call and the background voice call in response to receiving a call end response from the second terminal. The call end response is used to instruct the second terminal to close the target voice call. When the first terminal performs the closing operation, in response to the first terminal's closing operation on the target voice call, the first terminal closes the target voice call and the background voice call.
[0094] In some embodiments, the closing operation of the target voice call may be a triggering operation of a hang-up control in a call interface displayed on the first terminal or the second terminal, wherein the hang-up control is used to close the ongoing voice call of the current terminal after being triggered.
[0095] In order to more clearly illustrate the above method of controlling voice calls, Figure 5 The flowchart of the voice call shown in FIG. Figure 5As shown, in response to a voice call from the calling device, the calling device initiates a voice call to the called device using both installed SIM cards. In response to the called device answering either voice call, two voice calls are established between the calling and called devices. Both the calling and called devices can then monitor the call quality of the two voice calls and select the one with the better quality for playback. At the end of each call, in response to a call closing operation, both the calling and called devices hang up both calls.
[0096] It should be noted that the above embodiment is described based on an example in which both the first terminal and the second terminal are installed with two SIM cards. In some embodiments, the first terminal (or the second terminal) may be installed with one SIM card or multiple SIM cards. The SIM card installed in the first terminal (or the second terminal) may be a physical SIM card or a virtual SIM card, which is not limited in this embodiment of the present application. The following three methods of establishing a voice call are described below, depending on the number of SIM cards installed in the first terminal and the second terminal.
[0097] Method 1: When both a first terminal and a second terminal are installed with multiple SIM cards, in response to a voice initiation operation initiated by any SIM card installed in the first terminal to any SIM card installed in the second terminal, the first terminal sends a voice call request to at least one SIM card installed in the second terminal via at least one installed SIM card. For example, the first terminal has a first number of SIM cards installed, and the second terminal has a second number of SIM cards installed. If the first number is less than the second number, the first terminal randomly selects the first number of SIM cards from the second number of SIM cards installed in the second terminal and sends voice call requests to the selected SIM cards in the second terminal via the SIM cards installed in the first terminal. If the first number is equal to the second number, the first terminal sends voice call requests to the SIM cards installed in the second terminal via the installed SIM cards. If the first number is greater than the second number, the first terminal randomly selects a second number of SIM cards from the first number of SIM cards installed, and sends voice call requests to the second number of SIM cards installed in the second terminal via the selected SIM cards. In the process of sending the voice call requests, there is a one-to-one correspondence between the multiple SIM cards installed in the first terminal and the multiple SIM cards installed in the second terminal, which prevents two different SIM cards installed in the first terminal from sending voice call requests to one of the SIM cards installed in the second terminal. If the second terminal accepts any call request, multiple voice calls are established between the first terminal and the second terminal.
[0098] Method 2: When a first terminal has one SIM card installed and a second terminal has two or more SIM cards installed, in response to a voice initiation operation initiated by the SIM card installed in the first terminal to any SIM card installed in the second terminal, the first terminal sends a voice call request to each SIM card installed in the second terminal via the installed SIM card. If the second terminal accepts any call request, multiple voice calls are established between the first terminal and the second terminal. The number of established voice calls is the same as the number of SIM cards installed in the second terminal.
[0099] Method 3: When two or more SIM cards are installed in the first terminal and one SIM card is installed in the second terminal, in response to a voice initiation operation by any SIM card installed in the first terminal to the SIM card installed in the second terminal, the first terminal sends a voice call request to the SIM card installed in the second terminal through each installed SIM card. If the second terminal accepts any call request, multiple voice calls are established between the first terminal and the second terminal. The number of established voice calls is equal to the number of SIM cards installed in the first terminal.
[0100] In some embodiments, when a first terminal has two or more SIM cards installed, the first terminal can determine at least one target SIM card based on the call quality of historical voice calls. The target SIM card may be the SIM card corresponding to a historical voice call whose call quality exceeds a call quality threshold. Then, in response to a voice initiation operation by any SIM card installed in the first terminal to the SIM card installed in the second terminal, if the SIM card installed in the first terminal is the target SIM card, the first terminal sends a voice call request to the SIM card installed in the second terminal via the at least one installed target SIM card. If the SIM card installed in the first terminal is not the target SIM card, the first terminal sends a voice call request to the SIM card installed in the second terminal via the SIM card installed in the first terminal and the at least one installed target SIM card. Using this method, when the first terminal has multiple SIM cards installed, it is possible to further select a SIM card that can provide higher quality voice calls, avoiding the need to initiate a voice call via each SIM card installed in the first terminal and reducing call costs.
[0101] It should be noted that in the above-mentioned method 1, the first terminal can also use the above-mentioned method to screen out at least one target SIM card from multiple installed SIM cards, and initiate a voice call to the second terminal only through the target SIM card. This embodiment of the present application does not limit this.
[0102] The embodiments of the present application provide a voice call control method. For two terminals, both of which have two SIM cards installed, two voice calls can be established simultaneously between the two terminals using the two SIM cards installed. Furthermore, if the call quality of the current voice call is poor, the terminal can automatically play the other voice call with better call quality. This method eliminates the need for the user to manually hang up the voice call and then manually initiate another voice call when the current voice call quality is poor. This not only improves the call quality of the voice call, but also simplifies user operations and increases the efficiency of the voice call.
[0103] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0104] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0105] Figure 6 This is a structural diagram of a voice call control device provided by an embodiment of the present application. Figure 6 The device includes: a call establishing module 601, a call control module 602 and a call switching module 603.
[0106] A call establishment module 601 is configured to establish a first voice call and a second voice call between a first terminal and a second terminal, where the first voice call is established between a first subscriber identity SIM card and a second SIM card, and the second voice call is established between a third SIM card and a fourth SIM card. The first and third SIM cards are SIM cards installed in the first terminal, and the second and fourth SIM cards are SIM cards installed in the second terminal.
[0107] A call control module 602 is configured to control the first terminal to play a target voice call during the first and second voice calls, where the target voice call is the first successfully established voice call between the first and second voice calls;
[0108] The call switching module 603 is used to switch the voice call played on the first terminal to a background voice call when the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call. The background voice call is the voice call other than the target voice call between the first voice call and the second voice call.
[0109] In some embodiments, Figure 7 This is a structural diagram of another voice call control device provided in an embodiment of the present application, see Figure 7, the call establishment module 601 includes:
[0110] The first determining unit 6011 is configured to determine, in response to a voice initiation operation, a first SIM card and a second SIM card indicated by the voice initiation operation;
[0111] A second determining unit 6012 is configured to determine a fourth SIM card associated with the second SIM card;
[0112] a request sending unit 6013, configured to send a first call request and a second call request to the second terminal, where the first call request is a call request sent via the first SIM card to the second SIM card, requesting establishment of a first voice call; and the second call request is a call request sent via the third SIM card to the fourth SIM card, requesting establishment of a second voice call;
[0113] The call establishing unit 6014 is used to establish a first voice call and a second voice call between the first terminal and the second terminal in response to an accept call response from the second terminal, where the accept call response is used to indicate that the second terminal accepts the first call request or the second call request.
[0114] In some embodiments, the second determining unit 6012 is configured to obtain SIM card association information stored in the first terminal, where the SIM card association information indicates an association relationship between two SIM cards installed on the same terminal; and determine a fourth SIM card based on the second SIM card and the SIM card association information.
[0115] In some embodiments, the call establishment module 601 is used to obtain SIM card association information stored in the first terminal in response to the first terminal receiving a third call request and a fourth call request, where the third call request is a call request sent through the second SIM card, and the fourth call request is a call request sent through the fourth SIM card. The SIM card association information is used to indicate the association relationship between the two SIM cards installed on the same terminal; based on the SIM card association information, determine whether there is an association relationship between the second SIM card and the fourth SIM card; in response to an answering operation of the first terminal, if there is an association relationship between the second SIM card and the fourth SIM card, establish a first voice call and a second voice call between the first terminal and the second terminal, where the answering operation is the first terminal accepting the third call request or the fourth call request; if there is no association relationship between the second SIM card and the fourth SIM card, establish a voice call corresponding to the answering operation between the first terminal and the second terminal.
[0116] In some embodiments, the apparatus further comprises:
[0117] a detection module 604 for detecting at least one of a packet loss rate and a signal-to-noise ratio of the target voice call during the target voice call and the background voice call;
[0118] The detection module 604 is further configured to detect at least one of a packet loss rate and a signal-to-noise ratio of the background voice call;
[0119] a determination module 605 for determining a call quality of the target voice call based on at least one of a packet loss rate and a signal-to-noise ratio of the target voice call, wherein the call quality is negatively correlated with the packet loss rate and positively correlated with the signal-to-noise ratio;
[0120] The determination module 605 is further configured to determine the call quality of the background voice call based on at least one of the packet loss rate and the signal-to-noise ratio of the background voice call.
[0121] In some embodiments, the call switching module 603 is used to determine the difference between the call quality of the background voice call and the call quality of the target voice call when the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call; when the difference is greater than the preset threshold, the voice call played on the first terminal is switched to the background voice call.
[0122] In some embodiments, the apparatus further comprises:
[0123] A call closing module 606 is configured to close the target voice call and the background voice call in response to a call ending response from the second terminal, where the call ending response is used to instruct the second terminal to close the target voice call;
[0124] The call closing module 606 is further configured to close the target voice call and the background voice call in response to the first terminal's closing operation on the target voice call.
[0125] The embodiments of the present application provide a voice call control device. For two terminals, both of which are equipped with two SIM cards, two voice calls can be established simultaneously between the two terminals through the two SIM cards installed in the terminals. Furthermore, if the call quality of the current voice call is poor, the terminal can automatically play the other voice call with better call quality. This method eliminates the need for the user to manually hang up the voice call and then manually initiate another voice call when the call quality of the current voice call is poor. This not only improves the call quality of the voice call, but also simplifies the user's operation and increases the efficiency of the voice call.
[0126] It should be noted that the voice call control device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the voice call control device provided in the above embodiment and the voice call control method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0127] An embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the voice call control method provided by the above-mentioned various method embodiments.
[0128] Figure 8 This is a block diagram of the structure of a terminal provided in an embodiment of the present application. In some embodiments, terminal 800 is a terminal such as a smartphone, tablet computer, or wearable device that can access a wireless local area network as a wireless station. Terminal 800 in this application includes at least one or more of the following components: a processor 810, a memory 820, and at least two wireless links 830.
[0129] In some embodiments, the processor 810 includes one or more processing cores. The processor 810 uses various interfaces and lines to connect various parts of the entire terminal 800. By running or executing program code stored in the memory 820 and calling data stored in the memory 820, it performs various functions of the terminal 800 and processes data. In some embodiments, the processor 810 is implemented in the form of at least one hardware of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 810 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processing unit (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to handle wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 810 but may be implemented by a separate chip.
[0130] In some embodiments, the processor 810 is used to control the operating status of at least two wireless links 830. Accordingly, the processor 810 is a processor integrated with a Wireless Fidelity (Wi-Fi) chip. The Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual concurrent (DBDC) chip or a dual-band simultaneous (DBS) chip.
[0131] In some embodiments, the memory 820 includes a random access memory (RAM), and in some embodiments, the memory 820 includes a read-only memory (ROM). In some embodiments, the memory 820 includes a non-transitory computer-readable storage medium. The memory 820 can be used to store program code. The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 800 (such as audio data, a phone book), etc.
[0132] In some embodiments, the memory 820 stores receiving schemes for receiving beacon frames of different wireless links 830, as well as identifiers of access nodes connected to different wireless links 830, identifiers of wireless links 830, and the like.
[0133] The at least two wireless links 830 are used to connect different access points (APs) to receive downlink data sent by the APs, wherein the different access points are access points in the same router or access points in different routers.
[0134] In some embodiments, the terminal 800 further includes a display screen. The display screen is a display component for displaying a user interface. In some embodiments, the display screen is a display screen with a touch function, through which the user can use any suitable object such as a finger or a touch pen to perform touch operations on the display screen. In some embodiments, the display screen is generally provided on the front panel of the terminal 800. In some embodiments, the display screen is designed to be a full screen, a curved screen, a special-shaped screen, a double-sided screen, or a folding screen. In some embodiments, the display screen is also designed to be a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
[0135] In addition, those skilled in the art will appreciate that the structure of terminal 800 shown in the above figures does not limit terminal 800. Terminal 800 may include more or fewer components than shown, or may combine certain components or arrange the components differently. For example, terminal 800 may also include a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, a Bluetooth module, and other components, which will not be described in detail here.
[0136] The present application also provides a computer-readable storage medium, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the voice call control method shown in the above embodiments.
[0137] The present application also provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the voice call control method shown in the above embodiments.
[0138] The present application also provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method shown in the above embodiments.
[0139] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0140] Those skilled in the art will appreciate that all or part of the steps in the voice call control method of the above-described embodiment can be implemented by hardware or by a program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk. The foregoing description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A voice call control method, characterized in that: The method comprises: A first voice call and a second voice call are established between a first terminal and a second terminal, wherein the first voice call is a voice call established between a first user identity SIM card and a second SIM card, and the second voice call is a voice call established between a third SIM card and a fourth SIM card, wherein the first SIM card and the third SIM card are SIM cards installed in the first terminal, and the second SIM card and the fourth SIM card are SIM cards installed in the second terminal; During the first voice call and the second voice call, controlling the first terminal to play a target voice call, where the target voice call is the first voice call successfully established between the first voice call and the second voice call; When the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call, the voice call played by the first terminal is switched to the background voice call, and the background voice call is a voice call other than the target voice call between the first voice call and the second voice call.
2. The method according to claim 1, characterized in that: The establishing of a first voice call and a second voice call between the first terminal and the second terminal includes: In response to a voice initiation operation, determining the first SIM card and the second SIM card indicated by the voice initiation operation; Determining the fourth SIM card associated with the second SIM card; Sending a first call request and a second call request to the second terminal, where the first call request is a call request sent from the first SIM card to the second SIM card, and the first call request is used to request to establish the first voice call, and the second call request is a call request sent from the third SIM card to the fourth SIM card, and the second call request is used to request to establish the second voice call; In response to a call acceptance response from the second terminal, the first voice call and the second voice call are established between the first terminal and the second terminal, wherein the call acceptance response is used to indicate that the second terminal accepts the first call request or the second call request.
3. The method according to claim 2, characterized in that The determining the fourth SIM card associated with the second SIM card comprises: Acquire SIM card association information stored in the first terminal, where the SIM card association information is used to indicate an association relationship between two SIM cards installed on the same terminal; The fourth SIM card is determined based on the second SIM card and the SIM card association information.
4. The method according to claim 1, characterized in that: The establishing of a first voice call and a second voice call between the first terminal and the second terminal includes: In response to the first terminal receiving a third call request and a fourth call request, acquiring SIM card association information stored in the first terminal, wherein the third call request is a call request sent through the second SIM card, the fourth call request is a call request sent through the fourth SIM card, and the SIM card association information is used to indicate an association relationship between two SIM cards installed on the same terminal; Based on the SIM card association information, determining whether there is an association relationship between the second SIM card and the fourth SIM card; In response to an answering operation of the first terminal, when there is an association relationship between the second SIM card and the fourth SIM card, establishing the first voice call and the second voice call between the first terminal and the second terminal, the answering operation being that the first terminal accepts the third call request or the fourth call request; In the case that there is no association relationship between the second SIM card and the fourth SIM card, a voice call corresponding to the answering operation is established between the first terminal and the second terminal.
5. The method according to claim 1, characterized in that The method further comprises: During the process of performing the target voice call and the background voice call, detecting at least one of a packet loss rate and a signal-to-noise ratio of the target voice call; detecting at least one of a packet loss rate and a signal-to-noise ratio of the background voice call; Determine the call quality of the target voice call based on at least one of a packet loss rate and a signal-to-noise ratio of the target voice call, wherein the call quality is negatively correlated with the packet loss rate, and the call quality is positively correlated with the signal-to-noise ratio; The call quality of the background voice call is determined based on at least one of a packet loss rate and a signal-to-noise ratio of the background voice call.
6. The method according to claim 1, characterized in that When the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call, switching the voice call played by the first terminal to the background voice call includes: When the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call, determine the difference between the call quality of the background voice call and the call quality of the target voice call; When the difference is greater than a preset threshold, the voice call played by the first terminal is switched to the background voice call.
7. The method according to claim 1, characterized in that The method further comprises: In response to a call end response from the second terminal, closing the target voice call and the background voice call, wherein the call end response is used to instruct the second terminal to close the target voice call; Alternatively, in response to a closing operation of the first terminal on the target voice call, the target voice call and the background voice call are closed.
8. A voice call control device, characterized in that: The device comprises: a call establishment module, configured to establish a first voice call and a second voice call between a first terminal and a second terminal, wherein the first voice call is a voice call established between a first user identity SIM card and a second SIM card, and the second voice call is a voice call established between a third SIM card and a fourth SIM card, wherein the first SIM card and the third SIM card are SIM cards installed in the first terminal, and the second SIM card and the fourth SIM card are SIM cards installed in the second terminal; A call control module, used for controlling the first terminal to play a target voice call during the first voice call and the second voice call, wherein the target voice call is the first voice call successfully established between the first voice call and the second voice call; A call switching module is used to switch the voice call played by the first terminal to the background voice call when the call quality of the target voice call is lower than the call quality threshold and the call quality of the background voice call is higher than the call quality of the target voice call. The background voice call is a voice call other than the target voice call between the first voice call and the second voice call.
9. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the voice call control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method as described in any one of claims 1 to 7.
11. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions, and when the chip runs on the terminal, it is used to implement the voice call control method as described in any one of claims 1 to 7.
12. A computer program product, comprising a computer program, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method according to any one of claims 1 to 7.