Voice call processing method, mobile terminal and storage medium
By detecting the noise decibel value in the voice call mode of the mobile terminal and switching the handset, selecting the handset with low noise interference for calls, the problem of noise interference in voice calls is solved and the call quality is improved.
Patent Information
- Application Number
- CN202311324455.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-22
AI Technical Summary
Existing mobile terminals are prone to noise interference during voice calls, resulting in a decline in call quality and making it difficult for users to clearly hear the other party's voice.
By detecting the noise decibel value during a voice call, if it is less than the preset threshold, switch to the handset switching mode, selecting the handset with lower noise interference from at least two handsets for voice call based on the current temperature and noise decibel value of the audio amplifier.
It effectively reduces noise interference to voice calls, significantly improves the quality of voice calls, and allows users to hear the other party's voice more clearly.
Smart Images

Figure CN119865544A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a voice call processing method, a mobile terminal and a storage medium. Background Art
[0002] With the development of society, the advancement of science and technology, and the continuous improvement of living standards, people have higher and higher requirements for the quality of voice calls on mobile terminals. At present, sometimes there is a harsh noise in the receiver, which has exceeded the maximum volume of the receiver. Even if the volume is adjusted, you cannot hear the other party speaking. This not only affects the quality of the voice call, but sometimes also causes users to miss some important information, which is a bad user experience. Summary of the invention
[0003] The embodiments of the present invention provide a voice call processing method, a mobile terminal and a storage medium, aiming to reduce the interference of noise on the voice call and improve the quality of the voice call.
[0004] In a first aspect, an embodiment of the present invention provides a voice call processing method, which is applied to a mobile terminal, wherein the mobile terminal includes an audio amplifier and at least two handsets, and the method includes:
[0005] Obtaining the first noise decibel value of the voice call;
[0006] When the first noise decibel value is less than a preset first noise decibel threshold, configuring the mobile terminal to a handset switching mode;
[0007] In the earpiece switching mode, a corresponding earpiece is selected from at least two earpieces as a target earpiece for the voice call according to the current temperature of the audio amplifier and the first noise decibel value.
[0008] In a second aspect, an embodiment of the present invention further provides a mobile terminal, comprising at least two handsets, a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between at least two handsets, the processor and the memory, wherein when the computer program is executed by the processor, the voice call processing method as described in the first aspect is realized.
[0009] In a third aspect, an embodiment of the present invention further provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the voice call processing method as described in the first aspect.
[0010] An embodiment of the present invention provides a voice call processing method, a mobile terminal and a storage medium. The embodiment of the present invention configures the mobile terminal to a handset switching mode when the noise decibel value of the voice call is less than the noise decibel threshold, that is, the noise decibel value of the voice call is small. In this way, in the handset switching mode, a handset with lower noise interference can be selected from at least two handsets according to the current temperature and noise decibel value of the audio amplifier, and a voice call is made through the handset with lower noise interference. In this way, the interference of noise to the voice call can be reduced, and the quality of the voice call is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0012] Figure 1 It is a flow chart of a voice call processing method provided by an embodiment of the present invention;
[0013] Figure 2 is a schematic diagram of a layout of a handset included in a mobile terminal in an embodiment of the present invention;
[0014] Figure 3 is another schematic diagram of the layout of the handset included in the mobile terminal in an embodiment of the present invention;
[0015] Figure 4 is a schematic diagram of a layout of an earpiece, a temperature detection circuit and an audio amplifier in an embodiment of the present invention;
[0016] Figure 5 yes Figure 1 A schematic diagram of the sub-step flow chart of the voice call processing method in FIG.
[0017] Figure 6 is a schematic diagram of the layout of the earpiece and the audio amplifier in an embodiment of the present invention;
[0018] Figure 7 yes Figure 1 A flowchart of another sub-step of the voice call processing method in FIG.
[0019] Figure 8 is another schematic diagram of the layout of the earpiece and the audio amplifier in an embodiment of the present invention;
[0020] Fig. 9 It is a flowchart of another voice call processing method provided by an embodiment of the present invention;
[0021] Fig.10It is a schematic block diagram of the structure of a mobile terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0024] It should be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0025] With the development of society, the advancement of science and technology, and the continuous improvement of living standards, people have higher and higher requirements for the quality of voice calls on mobile terminals. At present, sometimes there is a harsh noise in the receiver, which has exceeded the maximum volume of the receiver. Even if the volume is adjusted, you cannot hear the other party speaking. This not only affects the quality of the voice call, but sometimes also causes users to miss some important information, which is a bad user experience.
[0026] To solve the above problems, an embodiment of the present invention provides a voice call processing method, device, mobile terminal and storage medium. The method configures the mobile terminal to a handset switching mode when the noise decibel value of the voice call is less than the noise decibel threshold, that is, the noise decibel value of the voice call is small. In the handset switching mode, a handset with lower noise interference can be selected from at least two handsets according to the current temperature and noise decibel value of the audio amplifier, and a voice call is made through the handset with lower noise interference, which can reduce the interference of noise on the voice call and greatly improve the quality of the voice call.
[0027] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0028] See also Figure 1 , Figure 1It is a flowchart of a voice call processing method provided by an embodiment of the present invention.
[0029] like Figure 1 As shown, the voice call processing method may include steps S101 to S103.
[0030] Step S101: Obtain a first noise decibel value of a voice call.
[0031] In this embodiment, the voice call may include any one of a telephone voice call, an Internet voice call, and an Internet video call. Among them, the telephone voice call refers to a voice call based on a telephone number, the Internet voice call refers to a voice call based on a wireless network, and the Internet video call refers to a video call based on a wireless network. The noise decibel value of the voice call may be the noise decibel value of the audio signal in the voice call, or the noise decibel value of the voice signal in the voice call, which is not specifically limited in the embodiment of the present invention.
[0032] In some embodiments, the mobile terminal may include an audio amplifier and at least two earpieces. The position and number of each earpiece in the mobile terminal may be set based on actual conditions, and the embodiments of the present invention do not specifically limit this. Figure 2 As shown, the mobile terminal 100 includes a first receiver 101 located at the top of the mobile terminal 100 and a second receiver 102 located at the bottom of the mobile terminal 100, and both the first receiver 101 and the second receiver 102 are perforated receivers. Figure 3 As shown, the mobile terminal 100 includes a first earpiece 101 located at the top of the mobile terminal 100, a second earpiece 102 located at the bottom of the mobile terminal 100, and a third earpiece 103 located on the left side of the mobile terminal 100, and the third earpiece 103 is an under-screen earpiece. The under-screen earpiece can be a screen sounder.
[0033] In some embodiments, obtaining the first noise decibel value of the voice call may include: obtaining the first noise decibel value of the voice call in real time when the voice call is established. In this embodiment, by obtaining the noise decibel value of the audio signal in the voice call in real time when the voice call is established, the mobile terminal can subsequently select the earpiece with the lowest noise interference to output the audio signal in the voice call according to the noise decibel value and the relative distance between each earpiece of the mobile terminal and the audio amplifier, thereby ensuring the call quality when the voice call is established.
[0034] In some embodiments, obtaining a first noise decibel value for a voice call may include: obtaining a first noise decibel value for the voice call at a preset interval during the voice call. The preset interval may be set based on actual conditions, and the embodiment of the present invention does not specifically limit this. For example, the preset interval is 3 minutes. In this embodiment, by periodically obtaining the noise decibel value of the voice call during the voice call, the mobile terminal can periodically select the earpiece with the lowest noise interference to conduct the voice call based on the noise decibel value and the relative distance between each earpiece of the mobile terminal and the audio amplifier, thereby ensuring the call quality during the entire voice call.
[0035] Step S102: When the first noise decibel value is less than a preset first noise decibel threshold, the mobile terminal is configured to be in a handset switching mode.
[0036] In this embodiment, the preset first noise decibel threshold can be set based on actual conditions, and the embodiment of the present invention does not specifically limit this. The mobile terminal can include a handset switching mode or a noise filter switching mode. In the handset switching mode, the mobile terminal can reduce the interference of noise on the voice call by switching the handset for the voice call, and in the noise filter switching mode, the mobile terminal can perform noise filtering on the audio signal in the voice call by switching the noise filter to reduce the interference of noise on the voice call.
[0037] Step S103: In the handset switching mode, a corresponding handset is selected from at least two handsets as a target handset for the voice call according to the current temperature of the audio amplifier and the first noise decibel value.
[0038] In this embodiment, the current temperature of the audio amplifier can be acquired by a temperature sensor, which can be a thermistor. In other embodiments, the temperature of the mobile terminal can also be acquired by any suitable method, which is not specifically limited in this embodiment of the present invention. Figure 4 As shown, the mobile terminal 100 also includes a temperature detection circuit 105, which is connected to the audio amplifier 104 and is used to collect the temperature of the audio amplifier 104, and the relative distance between the first earpiece 101 and the audio amplifier 104 is smaller than the relative distance between the second earpiece 102 and the audio amplifier 104.
[0039] It can be understood that the higher the temperature of the audio amplifier, the higher the noise it introduces, and the temperature around the earpiece will also cause the earpiece to generate noise interference. The higher the temperature around the earpiece, the higher the noise interference generated by the earpiece, and the lower the temperature around the earpiece, the lower the noise interference generated by the earpiece. Therefore, this embodiment can adaptively select a earpiece with lower noise interference for voice calls through the temperature of the audio amplifier and the noise decibel value, which can effectively reduce noise and improve the quality of voice calls.
[0040] In some embodiments, in the handset switching mode, a corresponding handset may be selected from at least two handsets as the target handset for the voice call based on the current temperature of the remaining components in the mobile terminal and the first noise decibel value. For example, in the handset switching mode, a corresponding handset may be selected from at least two handsets as the target handset for the voice call based on the current temperature of each handset in the mobile terminal and the first noise decibel value. For example, when the first noise decibel value is less than or equal to a preset second noise decibel threshold, any handset among the at least two handsets whose current temperature is less than the first temperature threshold is selected as the target handset for the voice call. Figure 2 As shown, the mobile terminal 100 includes a first earpiece 101 and a second earpiece 102. When the first noise decibel value is less than or equal to a preset second noise decibel threshold, if the temperature of the first earpiece 101 is lower than the temperature of the second earpiece 102, the first earpiece 101 can be selected for voice calls. During the voice call, due to the increase in the temperature of the first earpiece 101, the temperature of the first earpiece 101 will be higher than the temperature of the second earpiece 102. At this time, the earpiece for the voice call can be switched from the first earpiece 101 to the second earpiece 102.
[0041] For example, in the handset switching mode, a corresponding handset can be selected from at least two handsets as the target handset for the voice call according to the current temperature of the processor in the mobile terminal and the first noise decibel value. For example, when the first noise decibel value is less than or equal to the preset second noise decibel threshold, if the current temperature is less than or equal to the first temperature threshold, the handset closer to the processor is selected from at least two handsets as the target handset for the voice call, and if the current temperature is greater than the first temperature threshold and less than or equal to the second temperature threshold, the handset farther from the processor is selected from at least two handsets as the target handset for the voice call.
[0042] In some embodiments, Figure 5 As shown, step S103 includes sub-steps S1031 to S1033.
[0043] Sub-step S1031 : comparing the first noise decibel value with a preset second noise decibel threshold.
[0044] In this embodiment, the second noise decibel threshold is smaller than the first noise decibel threshold, and the first noise decibel threshold and the second noise decibel threshold can be set based on actual conditions, which is not specifically limited in this embodiment of the present invention.
[0045] Sub-step S1032: When the first noise decibel value is less than or equal to a preset second noise decibel threshold, select a corresponding earpiece from at least two earpieces as a target earpiece for the voice call according to the current temperature.
[0046] In this embodiment, when the first noise decibel value is less than or equal to the preset second noise decibel threshold, it can be determined that the noise interference of the voice call is small, and the higher the temperature of the audio amplifier, the higher the noise it introduces, and the temperature around the earpiece will also cause the earpiece to generate noise interference. The higher the temperature around the earpiece, the higher the noise interference generated by the earpiece, and the lower the temperature around the earpiece, the lower the noise interference generated by the earpiece. Therefore, this embodiment can effectively reduce noise and improve the quality of voice calls by adaptively selecting an earpiece with lower noise interference as the target earpiece for the voice call when the noise interference of the voice call is small according to the current temperature of the audio amplifier.
[0047] In some embodiments, according to the current temperature, selecting a corresponding earpiece from at least two earpieces as the target earpiece for the voice call may include: comparing the current temperature of the audio amplifier with a preset first temperature threshold; when the current temperature is less than or equal to the preset first temperature threshold, selecting an earpiece closer to the audio amplifier from at least two earpieces as the target earpiece for the voice call. Since the noise interference is low, the working power of the audio amplifier is small, the heat generation is small, that is, the temperature of the audio amplifier is low, therefore, in this embodiment, when the noise decibel value is small and the temperature of the audio amplifier is low, the earpiece closer to the audio amplifier is selected as the target earpiece for the voice call, which can reduce the transmission path of the audio signal in the voice call, reduce the path loss of the audio signal, and improve the quality of the voice call while ensuring low noise interference.
[0048] In some embodiments, when the current temperature of the audio amplifier is greater than a first temperature threshold and less than or equal to a preset second temperature threshold, a handset farther from the audio amplifier is selected from at least two handsets as a target handset for the voice call. The first temperature threshold is less than the second temperature threshold. Since the higher the temperature around the handset, the higher the noise interference generated by the handset, and the lower the temperature around the handset, the lower the noise interference generated by the handset, when the temperature of the audio amplifier is high, the handset farther from the audio amplifier is selected as the target handset for the voice call, which can reduce the noise interference generated by the handset, so as to improve the playback effect of the handset, thereby improving the quality of the voice call.
[0049] In some embodiments, when the current temperature is less than or equal to a preset first temperature threshold, selecting a receiver closer to the audio amplifier from at least two receivers as the target receiver for a voice call may include: when the current temperature is less than or equal to the preset first temperature threshold, selecting the receiver closest to the audio amplifier from at least two receivers as the target receiver for the voice call. When the current temperature is greater than the first temperature threshold and less than or equal to a preset second temperature threshold, selecting a receiver farther from the audio amplifier from at least two receivers as the target receiver for a voice call may include: when the current temperature is greater than the first temperature threshold and less than or equal to the preset second temperature threshold, selecting the receiver farthest from the audio amplifier from at least two receivers as the target receiver for the voice call.
[0050] For example, as Figure 4 shown, the relative distance between the first receiver 101 and the audio amplifier 104 is less than the relative distance between the second receiver 102 and the audio amplifier 104. Let the current temperature of the audio amplifier 104 be T, the first temperature threshold be T1, and the second temperature threshold be T2. Then, when 0 < T ≤ T1, the first receiver 101 closest to the audio amplifier 104 is selected for the voice call, that is, the audio signal in the voice call is output), and when T1 < T ≤ T2, the second receiver 102 farthest from the audio amplifier 104 is selected for the voice call, that is, the audio signal in the voice call is output.
[0051] For example, as Figure 6 shown, the relative distance between the first receiver 101 and the audio amplifier 104 is less than the relative distance between the third receiver 103 and the audio amplifier 104. Let the current temperature of the audio amplifier 104 be T, the first temperature threshold be T1, and the second temperature threshold be T2. Then, when 0 < T ≤ T1, the first receiver 101 closest to the audio amplifier 104 is selected for the voice call, that is, the audio signal in the voice call is output, and when T1 < T ≤ T2, the third receiver 103 farthest from the audio amplifier 104 is selected for the voice call, that is, the audio signal in the voice call is output.
[0052] In some embodiments, after step S103, it further includes: obtaining a target volume level matching the first noise decibel value; adjusting the output power of the audio amplifier according to the target volume level, processing the audio signal in the voice call through the audio amplifier after power adjustment, and controlling the processed audio signal to be output through the target receiver. In this embodiment, the output power of the audio amplifier is adaptively adjusted by the volume level matching the noise decibel value of the audio signal, so that the volume of the audio signal output by the receiver is accurate enough, enabling the user to clearly hear the call voice and improving the quality of the voice call.
[0053] In some embodiments, obtaining a target volume level that matches the first noise decibel value may include: determining a preset noise decibel value range in which the first noise decibel value is located; querying a preset first volume mapping relationship table to obtain a volume level corresponding to the preset noise decibel value range in which the first noise decibel value is located, and determining the volume level obtained by the query as the target volume level that matches the first noise decibel value. The first volume mapping relationship table is used to describe the mapping relationship between the noise decibel value range and the volume level, and the mapping relationship between the noise decibel value range and the volume level can be set based on actual conditions, which is not specifically limited in the embodiments of the present invention.
[0054] In some embodiments, according to the target volume level, adjusting the output power of the audio amplifier may include: querying a power mapping relationship table to obtain the output power corresponding to the target volume level, and determining the output power corresponding to the target volume level as the target output power; adjusting the output power of the audio amplifier to the target output power. The power mapping relationship table is used to describe the mapping relationship between the volume level and the output power of the audio amplifier, and the mapping relationship between the volume level and the output power of the audio amplifier can be set based on actual conditions, and the embodiments of the present invention do not specifically limit this. It can be understood that the higher the output power of the audio amplifier, the higher the volume of the audio signal processed by the audio amplifier, and the lower the output power of the audio amplifier, the lower the volume of the audio signal processed by the audio amplifier.
[0055] In some embodiments, after step S103, the method further includes: obtaining a target volume level that matches the first noise decibel value and the current temperature of the audio amplifier; adjusting the output power of the audio amplifier according to the target volume level, processing the audio signal through the audio amplifier after power adjustment, and controlling the processed audio signal to be output through the target earpiece. In this embodiment, the output power of the audio amplifier is adaptively adjusted according to the volume level that matches the noise decibel value of the audio signal and the temperature of the audio amplifier, so that the volume of the audio signal output by the earpiece can be sufficiently accurate and the temperature of the audio amplifier can be prevented from being too high.
[0056] In some embodiments, obtaining a target volume level that matches the first noise decibel value and the current temperature may include: determining a preset noise decibel value range in which the first noise decibel value is located, and determining a preset temperature range in which the current temperature is located; according to the preset noise decibel value range in which the first noise decibel value is located and the preset temperature range in which the current temperature is located, querying a preset second volume mapping relationship table to obtain a volume level corresponding to the preset noise decibel value range and the preset temperature range, and determining the queried volume level as a target volume level that matches the first noise decibel value and the current temperature. The second volume mapping relationship table is used to describe the mapping relationship between the noise decibel value range, the temperature range and the volume level, and the mapping relationship between the noise decibel value range, the temperature range and the volume level can be set based on actual conditions, and the embodiments of the present invention do not specifically limit this.
[0057] In some embodiments, obtaining a target volume level that matches a first noise decibel value and a current temperature may include: determining a preset noise decibel value range in which the first noise decibel value is located; querying a preset first volume mapping relationship table to obtain a first volume level corresponding to the preset noise decibel value range in which the first noise decibel value is located; determining a preset temperature range in which the current temperature is located, and querying a preset third volume mapping relationship table to obtain a second volume level corresponding to the preset temperature range in which the current temperature is located, the third volume mapping relationship table being used to describe a mapping relationship between a temperature range and a volume level; when the first volume level is higher than the second volume level, determining the second volume level as the target volume level, and when the first volume level is lower than the second volume level, determining the first volume level as the target volume level.
[0058] In some embodiments, Figure 7 As shown, step S103 may further include sub-step S1033.
[0059] Sub-step S1033: When the first noise decibel value is greater than the second noise decibel threshold and less than the first noise decibel threshold, select the under-screen earpiece from at least two earpieces as the target earpiece for the voice call.
[0060] In this embodiment, the first noise decibel threshold is greater than the second noise decibel threshold, and the first noise decibel threshold and the second noise decibel threshold can be set based on actual conditions, and the embodiment of the present invention does not specifically limit this. The under-screen earpiece of the mobile terminal is used to drive the screen middle frame of the mobile terminal to vibrate and then generate sound, and has the characteristic of more prominent human voice frequency band, which allows people to hear more clearly. Therefore, in this embodiment, when the noise decibel value of the voice call is large, the under-screen earpiece of the mobile terminal is used as the target earpiece for the voice call to highlight the human voice frequency band in the audio signal in the voice call, thereby relatively weakening the noise, so that the user can hear the human voice more clearly, thereby improving the user experience.
[0061] For example, as Figure 8 shown, the mobile terminal 100 may include a first earpiece 101 located at the top of the mobile terminal 100, a second earpiece 102 located at the bottom of the mobile terminal 100, a third earpiece 103 located on the left side of the mobile terminal 100, and an audio amplifier 104. The first earpiece 101 and the second earpiece 102 are open earpieces, and the third earpiece 103 is an under-screen earpiece. Let the first noise decibel value be N1, the first noise decibel threshold be A1, the second noise decibel threshold be A2, the current temperature of the audio amplifier 104 be T, the first temperature threshold be T1, and the second temperature threshold be T2. Therefore, when N1 < A1 and 0 < T ≤ T1, the first earpiece 101 closest to the audio amplifier 104 is selected for a voice call, that is, the audio signal in the voice call is output. When N1 < A1 and T1 < T ≤ T2, the second earpiece 102 farthest from the audio amplifier 104 is selected for a voice call, that is, the audio signal in the voice call is output. And when A2 < N1 ≤ A1, the third earpiece 103 is selected for a voice call, that is, the audio signal in the voice call is output.
[0062] In some embodiments, as Fig. 9 shown, after step S101, it further includes:
[0063] Step S104, when the first noise decibel value is greater than or equal to the first noise decibel threshold, configure the mobile terminal to the noise filtering switching mode.
[0064] In this embodiment, after configuring the mobile terminal to the noise filtering switching mode, the mobile terminal can perform noise filtering on the audio signal in the voice call by switching the noise filter to reduce the interference of noise on the audio signal in the voice call.
[0065] Step S105, in the noise filtering switching mode, obtain the audio signal in the voice call, and select a preset noise filter that matches the audio signal from multiple preset noise filters.
[0066] In this embodiment, the preset noise filter can be set based on the actual situation, and the embodiments of the present invention do not make specific limitations in this regard. For example, the preset noise filter may include any one of a low-pass filter, a high-pass filter, a Wiener filter, a Kalman filter, and a wavelet filter.
[0067] Step S106, according to the preset noise filter that matches the audio signal, perform noise filtering processing on the audio signal to obtain a target audio signal, and select any earpiece from at least two earpieces to output the target audio signal.
[0068] This embodiment uses a preset noise filter that matches the audio signal to perform noise filtering on the audio signal when the noise decibel value of the audio signal is greater than the first noise decibel threshold, and outputs the audio signal after noise filtering through any earpiece, thereby reducing noise interference in the audio signal, allowing the user to hear the voice clearly, and improving the quality of the voice call.
[0069] In some embodiments, performing noise filtering on an audio signal according to a preset noise filter that matches the audio signal to obtain a target audio signal may include: determining frequency information and amplitude information of a noise signal in the audio signal; obtaining a preset noise filter that matches the frequency information and amplitude information of the noise signal; performing noise filtering on the audio signal according to the obtained preset noise filter to obtain the target audio signal. The preset noise filter that matches the audio signal may be one or more. The preset noise filter may include any one of a low-pass filter, a high-pass filter, a Wiener filter, a Kalman filter, and a wavelet filter.
[0070] For example, Figure 8 As shown, when the voice call is established, the noise decibel value of the voice call is less than the first noise decibel threshold, and the current temperature of the audio amplifier 104 is less than the first temperature threshold, then the first earpiece 101 closest to the audio amplifier 104 is selected to conduct the voice call, that is, to output the audio signal in the voice call, and then during the voice call, if it is detected that the noise decibel value of the audio signal is less than the first noise decibel threshold, and the current temperature of the audio amplifier 104 is greater than the first temperature threshold, and less than or equal to the second temperature threshold, the earpiece currently conducting the voice call is switched from the first earpiece 101 closest to the audio amplifier 104 to the second earpiece 102 farthest from the audio amplifier 104. Subsequently, if it is detected that the noise decibel value of the voice call is greater than the second noise decibel threshold, and less than or equal to the first noise decibel threshold, the earpiece currently conducting the voice call is switched from the second earpiece 102 to the third earpiece 103. If it is subsequently detected that the noise decibel value of the voice call is greater than or equal to the first noise decibel threshold, the audio signal in the voice call can be noise filtered, and the third earpiece 103 can continue to output the audio signal after noise filtering, or the first earpiece 101 or the second earpiece 102 can also output the audio signal after noise filtering.
[0071] In some embodiments, selecting any earpiece from at least two earpieces to output the target audio signal may include: obtaining a second noise decibel value of the target audio signal and the current temperature of the audio amplifier; and selecting a corresponding earpiece from at least two earpieces to output the target audio signal based on the second noise decibel value and the current temperature of the audio amplifier. This embodiment adaptively selects an earpiece with lower noise interference to output the processed audio signal based on the noise decibel value of the processed audio signal and the current temperature of the audio amplifier after performing noise filtering on the audio signal, thereby further reducing the interference of noise on the audio signal and improving the quality of voice calls.
[0072] In some embodiments, according to the second noise decibel value and the current temperature of the audio amplifier, selecting the corresponding earpiece from at least two earpieces to output the target audio signal may include: when the second noise decibel value is less than the first noise decibel threshold, and the current temperature of the audio amplifier is less than or equal to the first temperature threshold, selecting the earpiece closest to the audio amplifier from at least two earpieces to output the target audio signal. Alternatively, when the second noise decibel value is less than the first noise decibel threshold, and the current temperature of the audio amplifier is greater than the first temperature threshold, and less than or equal to the second temperature threshold, selecting the earpiece farthest from the audio amplifier from at least two earpieces to output the target audio signal. Alternatively, when the second noise decibel value is greater than the second noise decibel threshold and less than or equal to the first noise decibel threshold, selecting the under-screen earpiece from at least two earpieces to output the target audio signal.
[0073] See also Fig.10 , Fig.10 It is a schematic block diagram of the structure of a mobile terminal provided by an embodiment of the present invention.
[0074] like Fig.10 As shown, the mobile terminal 100 includes a processor 110, a memory 120 and at least two earpieces 130, and the processor 110, the memory 120 and the at least two earpieces 130 are connected via a bus 140, such as an I2C (Inter-integrated Circuit) bus.
[0075] Specifically, the processor 110 is used to provide computing and control capabilities to support the operation of the entire mobile terminal. The processor 110 may be a central processing unit (CPU), and the processor 110 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0076] Specifically, the memory 120 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0077] In some embodiments, the at least two earpieces 130 include at least one hole-punch earpiece and at least one under-screen earpiece, at least one hole-punch earpiece is located at the bottom or top of the mobile terminal, and at least one under-screen earpiece is located in the middle frame of the screen of the mobile terminal.
[0078] Those skilled in the art will understand that Fig.10 The structure shown in the figure is merely a block diagram of a partial structure related to the embodiment of the present invention, and does not constitute a limitation on the mobile terminal to which the embodiment of the present invention is applied. The specific mobile terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0079] The processor 110 is used to run the computer program stored in the memory 120, and implement any one of the voice call processing methods provided by the embodiments of the present invention when executing the computer program.
[0080] In one embodiment, the processor 110 is used to run a computer program stored in the memory, and implement the following steps when executing the computer program:
[0081] Obtain the first noise decibel value of the voice call;
[0082] When the first noise decibel value is less than a preset first noise decibel threshold, configuring the mobile terminal to a handset switching mode;
[0083] In the earpiece switching mode, a corresponding earpiece is selected from at least two earpieces as a target earpiece for the voice call according to the current temperature of the audio amplifier and the first noise decibel value.
[0084] In one embodiment, when the processor 110 selects a corresponding earpiece from at least two earpieces as a target earpiece for the voice call according to the current temperature of the audio amplifier and the first noise decibel value, it is configured to implement:
[0085] Comparing the first noise decibel value with a preset second noise decibel threshold, the second noise decibel threshold being less than the first noise decibel threshold;
[0086] When the first noise decibel value is less than or equal to a preset second noise decibel threshold, a corresponding earpiece is selected from at least two earpieces as a target earpiece for the voice call according to the current temperature.
[0087] In one embodiment, when the processor 110 selects a corresponding earpiece from at least two earpieces as a target earpiece for the voice call according to the current temperature, the processor 110 is configured to implement:
[0088] Comparing the current temperature of the audio amplifier with a preset first temperature threshold;
[0089] When the current temperature is less than or equal to a preset first temperature threshold, selecting an earpiece closer to the audio amplifier from the at least two earpieces as a target earpiece for the voice call;
[0090] When the current temperature is greater than the first temperature threshold and less than or equal to a preset second temperature threshold, a handset that is farther from the audio amplifier is selected from the at least two handsets as a target handset for the voice call.
[0091] In one embodiment, after comparing the first noise decibel value with a preset second noise decibel threshold, the processor 110 is further configured to implement:
[0092] When the first noise decibel value is greater than the second noise decibel threshold and less than or equal to the first noise decibel threshold, the under-screen earpiece is selected from at least two of the earpieces as the target earpiece for the voice call.
[0093] In one embodiment, after obtaining the first noise decibel value of the voice call, the processor 110 is further configured to implement:
[0094] When the first noise decibel value is greater than or equal to the first noise decibel threshold, configuring the mobile terminal to a noise filtering switching mode;
[0095] In the noise filter switching mode, an audio signal in the voice call is acquired, and a preset noise filter matching the audio signal is selected from a plurality of preset noise filters;
[0096] The audio signal is subjected to noise filtering processing according to a preset noise filter matched with the audio signal to obtain a target audio signal, and any one of the at least two earpieces is selected to output the target audio signal.
[0097] In one embodiment, when the processor 110 selects any one of the at least two earpieces to output the target audio signal, it is configured to implement:
[0098] Acquire a second noise decibel value of the target audio signal and a current temperature of the audio amplifier;
[0099] A corresponding earpiece is selected from at least two earpieces to output the target audio signal according to the second noise decibel value and the current temperature of the audio amplifier.
[0100] In one embodiment, after implementing, according to the current temperature of the audio amplifier and the first noise decibel value, selecting a corresponding earpiece from at least two earpieces as a target earpiece for the voice call, the processor 110 is further configured to implement:
[0101] Acquire a target volume level that matches the first noise decibel value, or acquire a target volume level that matches the first noise decibel value and the current temperature;
[0102] According to the target volume level, the output power of the audio amplifier is adjusted, the audio signal in the voice call is processed by the audio amplifier after the power adjustment, and the processed audio signal is controlled to be output through the target earpiece.
[0103] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the mobile terminal described above can refer to the corresponding process in the aforementioned voice call processing method embodiment, and will not be repeated here.
[0104] An embodiment of the present invention further provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any voice call processing method provided in the description of the embodiment of the present invention.
[0105] The storage medium may be an internal storage unit of the mobile terminal described in the foregoing embodiments, such as a hard disk or memory of the mobile terminal. The storage medium may also be an external storage device of the mobile terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the mobile terminal.
[0106] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0107] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0108] The serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for processing a voice call, characterized in that: Applied to a mobile terminal, the mobile terminal includes an audio amplifier and at least two earpieces, the method includes: Obtain the first noise decibel value of the voice call; When the first noise decibel value is less than a preset first noise decibel threshold, configuring the mobile terminal to a handset switching mode; In the earpiece switching mode, a corresponding earpiece is selected from at least two earpieces as a target earpiece for the voice call according to the current temperature of the audio amplifier and the first noise decibel value.
2. The voice call processing method according to claim 1, characterized in that: The selecting a corresponding earpiece from at least two earpieces as a target earpiece for the voice call according to the current temperature of the audio amplifier and the first noise decibel value includes: Comparing the first noise decibel value with a preset second noise decibel threshold, the second noise decibel threshold being less than the first noise decibel threshold; When the first noise decibel value is less than or equal to a preset second noise decibel threshold, a corresponding earpiece is selected from at least two earpieces as a target earpiece for the voice call according to the current temperature.
3. The voice call processing method according to claim 2, characterized in that: The selecting, according to the current temperature, a corresponding earpiece from at least two of the earpieces as a target earpiece for the voice call includes: Comparing the current temperature of the audio amplifier with a preset first temperature threshold; When the current temperature is less than or equal to a preset first temperature threshold, selecting an earpiece closer to the audio amplifier from the at least two earpieces as a target earpiece for the voice call; When the current temperature is greater than the first temperature threshold and less than or equal to a preset second temperature threshold, a handset that is farther from the audio amplifier is selected from the at least two handsets as a target handset for the voice call.
4. The voice call processing method according to claim 2, characterized in that: After comparing the first noise decibel value with a preset second noise decibel threshold, the method further includes: When the first noise decibel value is greater than the second noise decibel threshold and less than or equal to the first noise decibel threshold, the under-screen earpiece is selected from at least two of the earpieces as the target earpiece for the voice call.
5. The voice call processing method according to any one of claims 1 to 4, characterized in that: After obtaining the first noise decibel value of the voice call, the method further includes: When the first noise decibel value is greater than or equal to the first noise decibel threshold, configuring the mobile terminal to a noise filtering switching mode; In the noise filter switching mode, an audio signal in the voice call is acquired, and a preset noise filter matching the audio signal is selected from a plurality of preset noise filters; The audio signal is subjected to noise filtering processing according to a preset noise filter matched with the audio signal to obtain a target audio signal, and any one of the at least two earpieces is selected to output the target audio signal.
6. The method for processing a voice call according to claim 5, characterized in that: The selecting any one of the at least two earpieces to output the target audio signal comprises: Acquire a second noise decibel value of the target audio signal and a current temperature of the audio amplifier; A corresponding earpiece is selected from at least two earpieces to output the target audio signal according to the second noise decibel value and the current temperature of the audio amplifier.
7. The method for processing a voice call according to any one of claims 1 to 4, characterized in that: After selecting a corresponding earpiece from at least two earpieces as a target earpiece for the voice call according to the current temperature of the audio amplifier and the first noise decibel value, the method further includes: Acquire a target volume level that matches the first noise decibel value, or acquire a target volume level that matches the first noise decibel value and the current temperature; According to the target volume level, the output power of the audio amplifier is adjusted, the audio signal in the voice call is processed by the audio amplifier after the power adjustment, and the processed audio signal is controlled to be output through the target earpiece.
8. A mobile terminal, characterized in that: The mobile terminal includes at least two handsets, a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between at least two handsets, the processor and the memory, wherein when the computer program is executed by the processor, the voice call processing method as described in any one of claims 1 to 7 is implemented.
9. The mobile terminal according to claim 8, characterized in that: The at least two earpieces include at least one hole earpiece and at least one under-screen earpiece, the at least one hole earpiece is located at the bottom or top of the mobile terminal, and the at least one under-screen earpiece is located in the middle frame of the screen of the mobile terminal.
10. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the voice call processing method according to any one of claims 1 to 7.