Voice service switching method and device, computer equipment and storage medium
By detecting the quality of voice service based on voice packet indicators in the user terminal and switching voice services, the problem of difficulty in switching to VoLTE/VoNR in time is solved, and the user's voice call experience is improved.
Patent Information
- Application Number
- CN202411403238.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-02-07
AI Technical Summary
In residential buildings and dense high-rise areas, weak coverage of voice calls on cellular networks makes it difficult to switch VoWiFi to VoLTE/VoNR in time, causing users to 'hang' on WiFi network, affecting the voice call experience.
In the user terminal, the voice service quality is determined based on the voice packet indicator of the RTP voice packet, and when the voice quality detection result is below the threshold, the voice service is switched from VoWiFi to the mobile network voice service (such as VoLTE or VoNR).
It effectively improves the user's voice call experience, solves the problem of VoWiFi switching failure caused by high signal strength but network blockage, and ensures that voice services switch to a more stable mobile network when meeting the quality threshold.
Smart Images

Figure CN119402930A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal communication technology, and in particular to a voice service switching method, device, computer equipment and storage medium. Background Art
[0002] In order to effectively solve the problem of voice call demand in residential areas and densely populated high-rise areas with weak cellular network coverage, the introduction of VoWiFi (full name: Voice over WiFi, WiFi voice call) has become an industry-recognized effective supplementary solution. It can seamlessly switch with VoLTE (Voice over LTE, long-term evolution voice bearer) / VoNR (voice over New Radio, new air interface voice bearer) to improve the user's voice call experience. At present, the strategy for switching from VoWiFi to VoLTE / VoNR is that the user terminal mainly compares the signal strength of the current WiFi network with the reference signal receiving power (RSRP) of the cellular LTE / NR network to determine whether the switching threshold is met. If it is met, it will switch, otherwise it will not switch.
[0003] However, WiFi networks are prone to high signal strength but poor network connectivity, which causes VoWiFi to be unable to switch to VoLTE / VoNR in a timely manner, resulting in the situation of being "stuck" on the WiFi network, seriously affecting the user's voice call experience. Summary of the invention
[0004] Based on this, it is necessary to provide a voice service switching method, device, computer equipment and storage medium that can effectively improve the user's voice call experience in response to the above technical problems.
[0005] In a first aspect, the present application provides a voice service switching method, the method comprising:
[0006] In the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time length according to the voice packet indicator of the RTP voice packet in at least one first unit time length;
[0007] Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0008] When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0009] In one of the embodiments, determining a first voice quality detection result of a user terminal according to the voice service quality corresponding to each first unit duration includes:
[0010] Determine a first number of first unit durations in which the voice service quality is higher than a first quality threshold in each first unit duration, and a second number of first unit durations in which the voice service quality is not higher than the first quality threshold in each first unit duration;
[0011] The difference between the first number and the second number is used as a first voice quality detection result of the user terminal.
[0012] In one of the embodiments, when the first voice quality detection result is lower than the first detection result threshold, switching the voice service of the user terminal from the VoWiFi voice service to the mobile network voice service includes:
[0013] When the first voice quality detection result is lower than the first detection result threshold and the network quality of the mobile network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0014] In one of the embodiments, when the first voice quality detection result is lower than the first detection result threshold, switching the voice service of the user terminal from the VoWiFi voice service to the mobile network voice service includes:
[0015] When the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold value, selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network;
[0016] Determine a second voice quality detection result of the user terminal;
[0017] When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0018] In one embodiment, selecting a target network from each mobile network according to a threshold value and network quality of each mobile network includes:
[0019] Determine the quality difference between the network quality of each mobile network and the threshold value;
[0020] The mobile network corresponding to the smallest quality difference is used as the target network.
[0021] In one embodiment, determining the quality difference between the network quality of each mobile network and a threshold value includes:
[0022] Obtaining the effective duration of the RTP inactivity timer of the user terminal; wherein the effective duration includes at least one first unit duration;
[0023] During the effective time, the network quality of each mobile network during the first unit time is obtained;
[0024] The quality difference between the network quality of each mobile network within a first unit time and a threshold value is determined.
[0025] In one of the embodiments, determining a second voice quality detection result of a user terminal includes:
[0026] Determining the voice service quality corresponding to each second unit time length according to the voice packet indicators of the RTP voice packets in the third number of second unit time lengths;
[0027] Determine a fourth number of second unit durations in which the voice service quality is higher than the second quality threshold in each second unit duration, and a fifth number of second unit durations in which the voice service quality is not higher than the second quality threshold in each second unit duration;
[0028] The difference between the fourth quantity and the fifth quantity is used as the second voice quality detection result of the user terminal.
[0029] In one of the embodiments, the quantity of at least one first unit duration is the basic data, and the method further comprises:
[0030] Determine the increase value based on the minimum quality difference;
[0031] The sum of the added value and the base quantity is taken as the third quantity.
[0032] In one embodiment, the method further comprises:
[0033] Determine the increase value based on the minimum quality difference;
[0034] The second unit duration is determined according to the increased value and the first unit duration.
[0035] In one embodiment, the method further comprises:
[0036] According to the increased value, a second quality threshold is determined.
[0037] In one of the embodiments, the voice packet indicator includes at least one of the voice packet size, the number of voice packets received, the average interval time of the voice packets, the content of the voice packet header and the voice packet timestamp.
[0038] In one embodiment, the mobile network is an LTE network or an NR network;
[0039] The mobile network voice service is a VoLTE voice service or a VoNR voice service.
[0040] In a second aspect, the present application provides a voice service switching device, the device comprising:
[0041] A first determination module is used to determine the voice service quality corresponding to each first unit time according to the voice packet index of the RTP voice packet in at least one first unit time during the process of the user terminal executing the VoWiFi voice service;
[0042] A second determination module is used to determine a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0043] The switching module is used to switch the voice service of the user terminal from the VoWiFi voice service to the mobile network voice service when the first voice quality detection result is lower than the first detection result threshold.
[0044] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0045] In the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time length according to the voice packet indicator of the RTP voice packet in at least one first unit time length;
[0046] Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0047] When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0048] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0049] In the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time length according to the voice packet indicator of the RTP voice packet in at least one first unit time length;
[0050] Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0051] When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0052] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0053] In the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time length according to the voice packet indicator of the RTP voice packet in at least one first unit time length;
[0054] Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0055] When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0056] The above-mentioned voice service switching method, device, computer equipment and storage medium, in the process of the user terminal executing the VoWiFi voice service, determines the voice service quality corresponding to each first unit time according to the voice packet index of the RTP voice packet in at least one first unit time. According to the voice service quality corresponding to each first unit time, determine the first voice quality detection result of the user terminal. When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service. In the process of the user terminal executing the VoWiFi voice service, the present application can determine the voice service quality corresponding to each first unit time, and then determine the first voice quality detection result. And when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, that is, in the present application, the first voice quality detection result corresponding to the VoWiFi voice service is used to determine whether to switch the voice service, so that the voice service switching is more reasonable, effectively improving the user's voice call experience, and solving the existing problem of relying only on signal strength as a switching decision, which is easy to cause "hanging" in the WiFi network. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 An application environment diagram of a voice service switching method provided in this embodiment;
[0058] Figure 2 A schematic diagram of a flow chart of a first voice service switching method provided in this embodiment;
[0059] Figure 3 A schematic diagram of a process for determining a first voice quality detection result provided in this embodiment;
[0060] Figure 4 A schematic diagram of a flow chart of a second voice service switching method provided in this embodiment;
[0061] Figure 5 A schematic diagram of a flow chart of a third voice service switching method provided in this embodiment;
[0062] Figure 6 A structural block diagram of a voice service switching device provided in this embodiment;
[0063] Figure 7 This is a diagram of the internal structure of the computer device provided in this embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] The voice service switching method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. In the process of the user terminal executing the VoWiFi voice service, the voice service quality corresponding to each first unit time is determined according to the voice packet index of the RTP voice packet in at least one first unit time. The user terminal determines the first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time; and when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0066] Among them, the user terminal refers to the terminal device that is currently executing the VoWiFi voice service, which can be a smart terminal such as a mobile phone or a computer, or a smart wearable device such as a smart watch or a smart bracelet.
[0067] In one embodiment, Figure 2 is a flow chart of a voice service switching method provided in accordance with an embodiment of the present application, wherein the method is applied to Figure 1 Taking the user terminal in as an example, the method includes the following steps:
[0068] S201, in the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time according to the voice packet index of the RTP voice packet in at least one first unit time.
[0069] Among them, the user terminal is currently a terminal device executing the VoWiFi voice service. VoWiFi voice service refers to a voice call service based on a WiFi network. The first unit duration refers to a pre-set unit time period. RTP voice packet refers to an RTP (Real-time Transport Protocol) voice packet transmitted during the VoWiFi voice service. Voice packet indicators refer to relevant indicators of RTP voice packets. In this application, the voice packet indicators include at least one of the voice packet size, the number of voice packets received, the average interval duration of the voice packet, the voice packet header content (i.e., the serial number contained in the 12 bytes of the header) and the voice packet timestamp. Voice service quality refers to the performance indicators of the VoWiFi voice service.
[0070] As an optional implementation of the embodiment of the present application, in the process of executing the VoWiFi voice service on the user terminal, the voice packet index of the RTP voice packet in each first unit time is input into a voice quality detection tool, and the voice quality detection tool determines the voice service quality corresponding to each first unit time. The voice quality detection tool includes but is not limited to a neural network model.
[0071] As another optional implementation of the embodiment of the present application, in the process of the user terminal executing the VoWiFi voice service, for each unit time, according to the voice packet index of the RTP voice packet in the first unit time, the index value of each voice index is determined, and the index value of each voice index is fused to obtain a comprehensive score, and the comprehensive score is used as the voice service quality corresponding to the first unit time. Among them, the voice index includes at least one of the voice packet size, the number of voice packets received, the average interval time of the voice packet, the content of the voice packet header (that is, the sequence number contained in the 12 bytes of the header) and the voice packet timestamp. The fusion processing method includes but is not limited to summation, weighted summation, etc.
[0072] As another optional implementation of the embodiment of the present application, in the process of executing the VoWiFi voice service on the user terminal, for each unit time, according to the voice packet index of the RTP voice packet in the first unit time, it is judged whether the RTP voice packet has problems such as incomplete reception, disorder, loss, etc. of poor WiFi network transmission quality, and based on the judgment result, the voice service quality corresponding to each first unit time is determined.
[0073] S202: Determine a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length.
[0074] The first voice quality detection result refers to a quality evaluation result of the VoWiFi voice service detected based on the voice service quality corresponding to each first unit time length.
[0075] As an optional implementation of the embodiment of the present application, according to the voice service quality corresponding to each first unit time length, each voice service quality is fused and the fusion result is used as the first voice quality detection result of the user terminal. The fusion processing method includes but is not limited to one of summing, weighted summing, and multiplying.
[0076] S203: When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0077] The mobile network voice service is a VoLTE (Voice over LTE) voice service or a VoNR (Voice over New Radio) voice service. The mobile network is an LTE (Long Term Evolution) network or an NR (New Radio) network.
[0078] As an optional implementation of the embodiment of the present application, when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0079] As another optional implementation of the embodiment of the present application, when the first voice quality detection result is lower than the first detection result threshold and the network quality of the mobile network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service. The network quality may be the signal strength of the reference signal of the mobile network or the signal receiving power of the reference signal.
[0080] Optionally, in this embodiment, when the first voice quality detection result is not lower than the first detection result threshold, the user terminal does not perform the switching operation of the VoWiFi voice service.
[0081] The above-mentioned voice service switching method, in the process of the user terminal executing the VoWiFi voice service, determines the voice service quality corresponding to each first unit time according to the voice packet index of the RTP voice packet in at least one first unit time. According to the voice service quality corresponding to each first unit time, determine the first voice quality detection result of the user terminal. When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service. In the process of the user terminal executing the VoWiFi voice service, the present application can determine the voice service quality corresponding to each first unit time, and then determine the first voice quality detection result. And when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, that is, in the present application, the first voice quality detection result corresponding to the VoWiFi voice service is used to determine whether to switch the voice service, so that the voice service switching is more reasonable, effectively improving the user's voice call experience, and solving the existing problem of relying only on signal strength as a switching decision, which is easy to cause "hanging" in the WiFi network.
[0082] In one embodiment, in order to more accurately determine the first voice quality detection result, such as Figure 3 As shown, an optional implementation of S202 includes:
[0083] S301, determining a first number of first unit durations in which voice service quality is higher than a first quality threshold in each first unit duration, and a second number of first unit durations in which voice service quality is not higher than the first quality threshold in each first unit duration.
[0084] The first quality threshold refers to a boundary condition used to characterize whether the voice service quality meets a certain quality requirement. The first quantity refers to the number of first unit durations of voice service quality that is higher than the first quality threshold. The second quantity refers to the number of first unit durations of voice service quality that is not higher than the first quality threshold.
[0085] Optionally, in this embodiment, a quality difference counter can be used to determine the first number of first unit time periods in which the voice service quality is higher than the first quality threshold in each first unit time period, and the second number of first unit time periods in which the voice service quality is not higher than the first quality threshold in each first unit time period.
[0086] S302: Use the difference between the first number and the second number as a first voice quality detection result of the user terminal.
[0087] As an optional implementation of the embodiment of the present application, the second number is subtracted from the first number, and the difference is used as the first voice quality detection result of the user terminal.
[0088] Another optional implementation of the embodiment of the present application is to control the quality difference counter. When it is detected that the voice service quality in the first unit time is higher than the first quality threshold, the quality difference counter is controlled to be incremented by one. When it is detected that the voice service quality in the first unit time is not higher than the first quality threshold, the quality difference counter is controlled to be decremented by one. The final value is used as the first voice quality detection result of the user terminal.
[0089] In this embodiment, by determining the first number of first unit time lengths in which the voice service quality is higher than the first quality threshold in each first unit time length, and the second number of first unit time lengths in which the voice service quality is not higher than the first quality threshold in each first unit time length, and then using the difference between the first number and the second number as the first voice quality detection result of the user terminal, the first voice quality detection result can be determined more accurately.
[0090] In one embodiment, if Figure 4 As shown, an optional implementation of S203 includes:
[0091] S401, when a first voice quality detection result is lower than a first detection result threshold and the network quality of each mobile network does not meet a threshold value, select a target network from each mobile network according to the threshold value and the network quality of each mobile network.
[0092] The threshold value refers to a threshold condition used to determine whether the network quality of the mobile network meets a certain quality requirement. The target network refers to a network with better network quality selected from various mobile networks. The mobile network is an LTE network or an NR network.
[0093] In this embodiment, an optional implementation of selecting a target network from various mobile networks according to the threshold value and the network quality of each mobile network is to select a mobile network whose network quality is closest to the threshold value as the target network.
[0094] In this embodiment, another optional implementation method of selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network is to determine the quality difference between the network quality of each mobile network and the threshold value. The mobile network corresponding to the smallest quality difference value is used as the target network. In this embodiment, an optional implementation method of determining the quality difference between the network quality of each mobile network and the threshold value is to obtain the effective duration of the RTP inactivity timer of the user terminal (i.e., the effective duration T of the RTP / RTCP Time-out). out); wherein the effective duration includes at least one first unit duration. Within the effective duration, the network quality of each mobile network within the first unit duration is obtained. The quality difference between the network quality of each mobile network within the first unit duration and the threshold value is determined.
[0095] It should be noted that when the present application detects that the network quality of each mobile network does not meet the threshold value, it obtains the effective duration of the RTP inactivity timer of the user terminal. The purpose is to complete the determination of the voice service switching result within the effective duration, for example, switching to the mobile network voice service or maintaining the VoWiFi voice service.
[0096] S402: Determine a second voice quality detection result of the user terminal.
[0097] The second voice quality detection result refers to another quality evaluation result of the VoWiFi voice service of the user terminal.
[0098] Optionally, in this embodiment, the voice service quality corresponding to each second unit time length is determined based on the voice packet index of the RTP voice packets in the third number of second unit time lengths. The fourth number of second unit time lengths in which the voice service quality is higher than the second quality threshold in each second unit time length, and the fifth number of second unit time lengths in which the voice service quality is not higher than the second quality threshold in each second unit time length are determined. The difference between the fourth number and the fifth number is used as the second voice quality detection result of the user terminal. Specifically, the quality difference counter is controlled to increase by one when it is detected that the voice service quality in the second unit time length is higher than the second quality threshold; when it is detected that the voice service quality in the second unit time length is not higher than the second quality threshold, the quality difference counter is controlled to decrease by one, and the final value obtained by the quality difference counter is used as the second voice quality detection result of the user terminal.
[0099] It should be noted that, when determining the first voice quality detection result, the number of the first unit durations required is a basic number, and on this basis, this embodiment also includes a method for determining a third number, which is as follows:
[0100] The added value is determined based on the minimum quality difference. The sum of the added value and the basic quantity is taken as the third quantity. Among them, the optional way to determine the added value based on the minimum quality difference is that each quality difference or difference range is corresponding to an added value, that is, a mapping relationship between each quality difference or difference range and the added value is stored, so the added value can be determined by the specific value of the minimum quality difference. Assuming that the basic quantity is M and the added value is n, the third quantity is M+n.
[0101] It should be noted that the second unit duration of this embodiment is also determined based on the first unit duration, as follows: Determine the increase value based on the minimum quality difference value. Determine the second unit duration based on the increase value and the first unit duration. Exemplarily, the sum of the increase value and the first unit duration can be used as the second unit duration. For example, if the first unit duration is T m , then the second unit duration is T m+n ; Wherein, n is the increase value. The method for determining the increase value according to the minimum mass difference in this embodiment is described in detail in the above embodiment and will not be repeated here.
[0102] Optionally, in this embodiment, the second quality threshold can be determined according to the added value. An optional implementation is to determine the second quality threshold according to the added value and the quality threshold list; wherein the quality threshold list records the mapping relationship between each added value and the corresponding quality threshold. Another optional implementation is to determine the target difference according to the added value. The fusion result of the target difference and the first quality threshold is used as the second quality threshold. The fusion method can be any one of difference calculation, summation, and weighted summation. An optional implementation method for determining the target difference according to the added value is to determine the target difference according to the added value by table lookup.
[0103] S403: When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0104] Optionally, in this embodiment, when the second voice quality detection result is lower than the second detection result threshold, the network quality of the target network is detected in real time, and the timing of triggering the switching is dynamically adjusted. When it is detected that the target network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0105] Optionally, in this embodiment, when the second voice quality detection result is not lower than the second detection result threshold, the user terminal does not perform the VoWiFi voice service switching operation and still stays in the VoWiFi voice service.
[0106] In this embodiment, when the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold value, the target network is selected from each mobile network according to the threshold value and the network quality of each mobile network. The second voice quality detection result of the user terminal is determined. When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service, which effectively ensures that the voice service can be maintained in a better network and effectively guarantees the user's voice call service experience.
[0107] In one embodiment, if Figure 5 As shown, another optional implementation of a voice service switching method includes:
[0108] S501, in the process of executing the VoWiFi voice service on the user terminal, according to the voice packet indicators of the RTP voice packets in the basic number of first unit time lengths, determine the voice service quality corresponding to each first unit time length. The voice packet indicators include the voice packet size, the number of voice packets received, the average interval time of the voice packets, the content of the voice packet header and the voice packet timestamp.
[0109] S502: Determine a first number of first unit durations in which voice service quality is higher than a first quality threshold, and a second number of first unit durations in which voice service quality is not higher than the first quality threshold.
[0110] S503: Use the difference between the first number and the second number as a first voice quality detection result of the user terminal.
[0111] S504: When the first voice quality detection result is lower than the first detection result threshold and the network quality of the mobile network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service. The mobile network is an LTE network or an NR network; and the mobile network voice service is a VoLTE voice service or a VoNR voice service.
[0112] S505: When the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold, obtain the effective duration of the RTP inactivity timer of the user terminal, wherein the effective duration includes at least one first unit duration.
[0113] S506: During the effective time period, obtain the network quality of each mobile network during the first unit time period.
[0114] S507: Determine the quality difference between the network quality of each mobile network within the first unit time and the threshold value.
[0115] S508: Use the mobile network corresponding to the smallest quality difference as the target network.
[0116] S509, determining an increase value according to the minimum quality difference.
[0117] S510, taking the sum of the added value and the basic quantity as the third quantity.
[0118] S511, determining an increase value according to the minimum quality difference.
[0119] S512: Determine a second unit duration according to the increased value and the first unit duration.
[0120] S513: Determine the voice service quality corresponding to each second unit time length according to the voice packet indicators of the RTP voice packets in the third number of second unit time lengths.
[0121] S514, determine a fourth number of second unit time periods in which the voice service quality is higher than the second quality threshold, and a fifth number of second unit time periods in which the voice service quality is not higher than the second quality threshold.
[0122] S515: Use the difference between the fourth number and the fifth number as a second voice quality detection result of the user terminal.
[0123] S516: When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0124] In this embodiment, in the process of the user terminal executing the VoWiFi voice service, the voice service quality corresponding to each first unit time length is determined according to the voice packet index of the RTP voice packet in at least one first unit time length. According to the voice service quality corresponding to each first unit time length, the first voice quality detection result of the user terminal is determined. When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service. In the process of the user terminal executing the VoWiFi voice service, the present application can determine the voice service quality corresponding to each first unit time length, and then determine the first voice quality detection result. And when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, that is, in the present application, the first voice quality detection result corresponding to the VoWiFi voice service is used to determine whether to switch the voice service, so that the voice service switching is more reasonable, effectively improving the user's voice call experience, and solving the existing problem of relying only on signal strength as a switching decision, which is easy to cause "hanging" in the WiFi network.
[0125] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0126] Based on the same inventive concept, the embodiment of the present application also provides a voice service switching device for implementing the voice service switching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more voice service switching device embodiments provided below can refer to the limitations on the voice service switching method above, and will not be repeated here.
[0127] In one embodiment, by Figure 6 FIG. 2 shows a structural block diagram of a voice service switching device in an embodiment. Figure 6 As shown, a voice service switching device 1 is provided, the device comprising: a first determination module 10, a second determination module 20 and a switching module 30, wherein:
[0128] The first determination module 10 is used to determine the voice service quality corresponding to each first unit time according to the voice packet index of the RTP voice packet in at least one first unit time during the user terminal executing the VoWiFi voice service;
[0129] A second determination module 20, configured to determine a first voice quality detection result of a user terminal according to the voice service quality corresponding to each first unit duration;
[0130] The switching module 30 is used to switch the voice service of the user terminal from the VoWiFi voice service to the mobile network voice service when the first voice quality detection result is lower than the first detection result threshold.
[0131] In one embodiment, the Figure 6 The second determining module 20 is further specifically used for:
[0132] Determine a first number of first unit durations in which the voice service quality is higher than a first quality threshold in each first unit duration, and a second number of first unit durations in which the voice service quality is not higher than the first quality threshold in each first unit duration;
[0133] The difference between the first number and the second number is used as a first voice quality detection result of the user terminal.
[0134] In one embodiment, the Figure 6 The switching module 30 is also specifically used for:
[0135] When the first voice quality detection result is lower than the first detection result threshold and the network quality of the mobile network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0136] In one embodiment, the Figure 6 The switching module 30 is also specifically used for:
[0137] When the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold value, selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network;
[0138] Determine a second voice quality detection result of the user terminal;
[0139] When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0140] In one embodiment, the Figure 6 The switching module 30 is also specifically used for:
[0141] Determine the quality difference between the network quality of each mobile network and the threshold value;
[0142] The mobile network corresponding to the smallest quality difference is used as the target network.
[0143] In one embodiment, the Figure 6 The switching module 30 is also specifically used for:
[0144] Obtaining the effective duration of the RTP inactivity timer of the user terminal; wherein the effective duration includes at least one first unit duration;
[0145] During the effective time, the network quality of each mobile network during the first unit time is obtained;
[0146] The quality difference between the network quality of each mobile network within a first unit time and a threshold value is determined.
[0147] In one embodiment, the Figure 6 The switching module 30 is also specifically used for:
[0148] Determining the voice service quality corresponding to each second unit time length according to the voice packet indicators of the RTP voice packets in the third number of second unit time lengths;
[0149] Determine a fourth number of second unit durations in which the voice service quality is higher than the second quality threshold in each second unit duration, and a fifth number of second unit durations in which the voice service quality is not higher than the second quality threshold in each second unit duration;
[0150] The difference between the fourth quantity and the fifth quantity is used as the second voice quality detection result of the user terminal.
[0151] In one embodiment, the Figure 6 The switching module 30 is also specifically used for:
[0152] Determine the increase value based on the minimum quality difference;
[0153] The sum of the added value and the base quantity is taken as the third quantity.
[0154] In one embodiment, the Figure 6 The switching module 30 is also specifically used for:
[0155] Determine the increase value based on the minimum quality difference;
[0156] The second unit duration is determined according to the increased value and the first unit duration.
[0157] In one of the embodiments, the voice packet indicator includes at least one of the voice packet size, the number of voice packets received, the average interval time of the voice packets, the content of the voice packet header and the voice packet timestamp.
[0158] In one embodiment, the mobile network is an LTE network or an NR network;
[0159] The mobile network voice service is a VoLTE voice service or a VoNR voice service.
[0160] Each module in the above-mentioned voice service switching device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0161] In one embodiment, a computer device is provided. The computer device may be a platform side, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store information related to voice switching services. The network interface of the computer device is used to communicate with an external user side through a network connection. When the computer program is executed by the processor, a voice service switching method is implemented.
[0162] Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0163] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0164] In the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time length according to the voice packet indicator of the RTP voice packet in at least one first unit time length;
[0165] Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0166] When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0167] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit duration, including:
[0168] Determine a first number of first unit durations in which the voice service quality is higher than a first quality threshold in each first unit duration, and a second number of first unit durations in which the voice service quality is not higher than the first quality threshold in each first unit duration;
[0169] The difference between the first number and the second number is used as a first voice quality detection result of the user terminal.
[0170] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, including:
[0171] When the first voice quality detection result is lower than the first detection result threshold and the network quality of the mobile network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0172] In one embodiment, when the processor executes the computer program, the following steps are further implemented: when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, including:
[0173] When the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold value, selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network;
[0174] Determine a second voice quality detection result of the user terminal;
[0175] When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0176] In one embodiment, when the processor executes the computer program, the following steps are further implemented: selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network, including:
[0177] Determine the quality difference between the network quality of each mobile network and the threshold value;
[0178] The mobile network corresponding to the smallest quality difference is used as the target network.
[0179] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining the quality difference between the network quality of each mobile network and the threshold value, including:
[0180] Obtaining the effective duration of the RTP inactivity timer of the user terminal; wherein the effective duration includes at least one first unit duration;
[0181] During the effective time, the network quality of each mobile network during the first unit time is obtained;
[0182] The quality difference between the network quality of each mobile network within a first unit time and a threshold value is determined.
[0183] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining a second voice quality detection result of the user terminal, including:
[0184] Determining the voice service quality corresponding to each second unit time length according to the voice packet indicators of the RTP voice packets in the third number of second unit time lengths;
[0185] Determine a fourth number of second unit durations in which the voice service quality is higher than the second quality threshold in each second unit duration, and a fifth number of second unit durations in which the voice service quality is not higher than the second quality threshold in each second unit duration;
[0186] The difference between the fourth quantity and the fifth quantity is used as the second voice quality detection result of the user terminal.
[0187] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the quantity of at least one first unit duration is used as basic data, and the method further includes:
[0188] Determine the increase value based on the minimum quality difference;
[0189] The sum of the added value and the base quantity is taken as the third quantity.
[0190] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0191] Determine the increase value based on the minimum quality difference;
[0192] The second unit duration is determined according to the increased value and the first unit duration.
[0193] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the voice packet indicator includes at least one of the voice packet size, the number of voice packets received, the average interval time of the voice packets, the voice packet header content and the voice packet timestamp.
[0194] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the mobile network is an LTE network or an NR network;
[0195] The mobile network voice service is a VoLTE voice service or a VoNR voice service.
[0196] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0197] In the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time length according to the voice packet indicator of the RTP voice packet in at least one first unit time length;
[0198] Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0199] When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0200] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit duration, including:
[0201] Determine a first number of first unit durations in which the voice service quality is higher than a first quality threshold in each first unit duration, and a second number of first unit durations in which the voice service quality is not higher than the first quality threshold in each first unit duration;
[0202] The difference between the first number and the second number is used as a first voice quality detection result of the user terminal.
[0203] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, including:
[0204] When the first voice quality detection result is lower than the first detection result threshold and the network quality of the mobile network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0205] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, including:
[0206] When the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold value, selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network;
[0207] Determine a second voice quality detection result of the user terminal;
[0208] When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0209] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network, including:
[0210] Determine the quality difference between the network quality of each mobile network and the threshold value;
[0211] The mobile network corresponding to the smallest quality difference is used as the target network.
[0212] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the quality difference between the network quality of each mobile network and the threshold value, including:
[0213] Obtaining the effective duration of the RTP inactivity timer of the user terminal; wherein the effective duration includes at least one first unit duration;
[0214] During the effective time, the network quality of each mobile network during the first unit time is obtained;
[0215] The quality difference between the network quality of each mobile network within a first unit time and a threshold value is determined.
[0216] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a second voice quality detection result of the user terminal, including:
[0217] Determining the voice service quality corresponding to each second unit time length according to the voice packet indicators of the RTP voice packets in the third number of second unit time lengths;
[0218] Determine a fourth number of second unit durations in which the voice service quality is higher than the second quality threshold in each second unit duration, and a fifth number of second unit durations in which the voice service quality is not higher than the second quality threshold in each second unit duration;
[0219] The difference between the fourth quantity and the fifth quantity is used as the second voice quality detection result of the user terminal.
[0220] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: the quantity of at least one first unit duration is used as basic data, and the method further includes:
[0221] Determine the increase value based on the minimum quality difference;
[0222] The sum of the added value and the base quantity is taken as the third quantity.
[0223] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0224] Determine the increase value based on the minimum quality difference;
[0225] The second unit duration is determined according to the increased value and the first unit duration.
[0226] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the voice packet indicator includes at least one of the voice packet size, the number of voice packets received, the average interval time of the voice packets, the voice packet header content and the voice packet timestamp.
[0227] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the mobile network is an LTE network or an NR network;
[0228] The mobile network voice service is a VoLTE voice service or a VoNR voice service.
[0229] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0230] In the process of executing the VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time length according to the voice packet indicator of the RTP voice packet in at least one first unit time length;
[0231] Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length;
[0232] When the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0233] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit duration, including:
[0234] Determine a first number of first unit durations in which the voice service quality is higher than a first quality threshold in each first unit duration, and a second number of first unit durations in which the voice service quality is not higher than the first quality threshold in each first unit duration;
[0235] The difference between the first number and the second number is used as a first voice quality detection result of the user terminal.
[0236] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, including:
[0237] When the first voice quality detection result is lower than the first detection result threshold and the network quality of the mobile network meets the threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
[0238] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the first voice quality detection result is lower than the first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service, including:
[0239] When the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold value, selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network;
[0240] Determine a second voice quality detection result of the user terminal;
[0241] When the second voice quality detection result is lower than the second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the target network voice service.
[0242] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network, including:
[0243] Determine the quality difference between the network quality of each mobile network and the threshold value;
[0244] The mobile network corresponding to the smallest quality difference is used as the target network.
[0245] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the quality difference between the network quality of each mobile network and the threshold value, including:
[0246] Obtaining the effective duration of the RTP inactivity timer of the user terminal; wherein the effective duration includes at least one first unit duration;
[0247] During the effective time, the network quality of each mobile network during the first unit time is obtained;
[0248] The quality difference between the network quality of each mobile network within a first unit time and a threshold value is determined.
[0249] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a second voice quality detection result of the user terminal, including:
[0250] Determining the voice service quality corresponding to each second unit time length according to the voice packet indicators of the RTP voice packets in the third number of second unit time lengths;
[0251] Determine a fourth number of second unit durations in which the voice service quality is higher than the second quality threshold in each second unit duration, and a fifth number of second unit durations in which the voice service quality is not higher than the second quality threshold in each second unit duration;
[0252] The difference between the fourth quantity and the fifth quantity is used as the second voice quality detection result of the user terminal.
[0253] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: the quantity of at least one first unit duration is used as basic data, and the method further includes:
[0254] Determine the increase value based on the minimum quality difference;
[0255] The sum of the added value and the base quantity is taken as the third quantity.
[0256] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0257] Determine the increase value based on the minimum quality difference;
[0258] The second unit duration is determined according to the increased value and the first unit duration.
[0259] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the voice packet indicator includes at least one of the voice packet size, the number of voice packets received, the average interval time of the voice packets, the voice packet header content and the voice packet timestamp.
[0260] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the mobile network is an LTE network or an NR network;
[0261] The mobile network voice service is a VoLTE voice service or a VoNR voice service.
[0262] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0263] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0264] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A voice service switching method, characterized in that: The method comprises: In the process of executing the WiFi call VoWiFi voice service on the user terminal, determining the voice service quality corresponding to each first unit time according to the voice packet indicator of the real-time transport protocol RTP voice packet in at least one first unit time; Determining a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length; When the first voice quality detection result is lower than a first detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
2. The method according to claim 1, characterized in that The determining, according to the voice service quality corresponding to each first unit duration, a first voice quality detection result of the user terminal includes: Determine a first number of first unit durations in which the voice service quality is higher than a first quality threshold in each first unit duration, and a second number of first unit durations in which the voice service quality is not higher than the first quality threshold in each first unit duration; The difference between the first number and the second number is used as a first voice quality detection result of the user terminal.
3. The method according to claim 1, characterized in that The step of switching the voice service of the user terminal from the VoWiFi voice service to the mobile network voice service when the first voice quality detection result is lower than the first detection result threshold comprises: When the first voice quality detection result is lower than a first detection result threshold and the network quality of the mobile network meets a threshold value, the voice service of the user terminal is switched from the VoWiFi voice service to the mobile network voice service.
4. The method according to claim 1, characterized in that: The step of switching the voice service of the user terminal from the VoWiFi voice service to the mobile network voice service when the first voice quality detection result is lower than the first detection result threshold comprises: When the first voice quality detection result is lower than the first detection result threshold and the network quality of each mobile network does not meet the threshold value, selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network; Determining a second voice quality detection result of the user terminal; When the second voice quality detection result is lower than a second detection result threshold, the voice service of the user terminal is switched from the VoWiFi voice service to a target network voice service.
5. The method according to claim 4, characterized in that The selecting a target network from each mobile network according to the threshold value and the network quality of each mobile network includes: Determine the quality difference between the network quality of each mobile network and the threshold value; The mobile network corresponding to the smallest quality difference is used as the target network.
6. The method according to claim 5, characterized in that The determining of the quality difference between the network quality of each mobile network and the threshold value includes: Obtaining the effective duration of the RTP inactivity timer of the user terminal; wherein the effective duration includes at least one of the first unit durations; During the validity period, obtaining the network quality of each mobile network during the first unit time period; Determine a quality difference between the network quality of each mobile network within the first unit time and the threshold value.
7. The method according to claim 5, characterized in that The determining a second voice quality detection result of the user terminal includes: Determining the voice service quality corresponding to each second unit time length according to the voice packet indicators of the RTP voice packets in the third number of second unit time lengths; Determine a fourth number of second unit durations in which the voice service quality is higher than the second quality threshold in each second unit duration, and a fifth number of second unit durations in which the voice service quality is not higher than the second quality threshold in each second unit duration; The difference between the fourth number and the fifth number is used as the second voice quality detection result of the user terminal.
8. The method according to claim 7, characterized in that The quantity of the at least one first unit duration is basic data, and the method further comprises: Determining an increase value according to the minimum quality difference; The sum of the added value and the basic quantity is taken as the third quantity.
9. The method according to claim 7, characterized in that: The method further comprises: Determining an increase value according to the minimum quality difference; The second unit duration is determined according to the increased value and the first unit duration.
10. The method according to claim 9, characterized in that The method further comprises: The second quality threshold is determined according to the increased value.
11. The method according to any one of claims 1 to 10, characterized in that The voice packet indicator includes at least one of the voice packet size, the number of voice packets received, the average interval time of the voice packets, the content of the voice packet header and the voice packet timestamp.
12. The method according to any one of claims 1 to 10, characterized in that The mobile network is a Long Term Evolution (LTE) network or a New Wireless (NR) network; The mobile network voice service is a Long Term Evolution Voice Bearer (VoLTE) voice service or a New Radio (VoNR) voice service.
13. A voice service switching device, characterized in that: The device comprises: A first determination module is used to determine the voice service quality corresponding to each first unit time according to a voice packet indicator of a real-time transport protocol RTP voice packet in at least one first unit time during the user terminal performing a WiFi call VoWiFi voice service; A second determination module is used to determine a first voice quality detection result of the user terminal according to the voice service quality corresponding to each first unit time length; The switching module is used to switch the voice service of the user terminal from the VoWiFi voice service to the mobile network voice service when the first voice quality detection result is lower than the first detection result threshold.
14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.