CN106961509B - Call parameter processing method and device and electronic equipment - Google Patents

Call parameter processing method and device and electronic equipment Download PDF

Info

Publication number
CN106961509B
CN106961509B CN201710279451.7A CN201710279451A CN106961509B CN 106961509 B CN106961509 B CN 106961509B CN 201710279451 A CN201710279451 A CN 201710279451A CN 106961509 B CN106961509 B CN 106961509B
Authority
CN
China
Prior art keywords
signal
noise ratio
call
hands
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710279451.7A
Other languages
Chinese (zh)
Other versions
CN106961509A (en
Inventor
李应伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710279451.7A priority Critical patent/CN106961509B/en
Publication of CN106961509A publication Critical patent/CN106961509A/en
Application granted granted Critical
Publication of CN106961509B publication Critical patent/CN106961509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/605Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method and a device for processing call parameters and electronic equipment. The call parameter processing method comprises the following steps: acquiring a sound signal when carrying out the hands-free call; calculating a signal-to-noise ratio of the sound signal; acquiring a hand-free call processing parameter corresponding to the signal-to-noise ratio; and setting the terminal according to the hands-free call processing parameter so as to enable the user to carry out hands-free call. The embodiment of the invention can improve the flexibility of the terminal in hands-free communication.

Description

Call parameter processing method and device and electronic equipment
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method and a device for processing call parameters and electronic equipment.
Background
The hands-free call is a basic function of the terminal, which enables a user to realize a voice call without moving the terminal close to the ear. However, in the related art, when the terminal performs a hands-free call, the operation mode of the uplink sound pickup is fixed, that is, the sound pickup distance of the terminal is fixed. This results in poor flexibility, because the operation mode of the terminal during hands-free communication cannot adapt to changes in the surrounding environment.
Disclosure of Invention
The embodiment of the invention provides a call parameter processing method, a call parameter processing device and electronic equipment, which can improve the flexibility of a terminal in hands-free call.
The embodiment of the invention provides a call parameter processing method, which comprises the following steps:
acquiring a sound signal when carrying out the hands-free call;
calculating a signal-to-noise ratio of the sound signal;
acquiring a hand-free call processing parameter corresponding to the signal-to-noise ratio;
and setting the terminal according to the hands-free call processing parameters so as to enable the user to carry out hands-free call.
An embodiment of the present invention provides a call parameter processing apparatus, including:
the first acquisition module is used for acquiring a voice signal when the hands-free call is carried out;
the calculating module is used for calculating the signal-to-noise ratio of the sound signal;
the second acquisition module is used for acquiring the hand-free call processing parameter corresponding to the signal-to-noise ratio;
and the setting module is used for setting the terminal according to the hands-free call processing parameters so as to enable a user to carry out hands-free call.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run in the processor, and when the processor executes the computer program, the steps in the call parameter processing method provided in the embodiment of the present invention are implemented.
According to the method, the device and the electronic equipment for processing the call parameters, provided by the embodiment of the invention, when the hands-free call is carried out, the terminal can firstly acquire the sound signal of the external environment and calculate the signal-to-noise ratio of the sound signal. Then, the terminal can obtain the hand-free call processing parameter corresponding to the signal-to-noise ratio, and set the terminal according to the corresponding hand-free call processing parameter to complete the hand-free call service. Therefore, the embodiment of the invention can correspondingly set the terminal with different hands-free call processing parameters according to different signal-to-noise ratios of the external environment sound signals to complete the hands-free call service, thereby improving the flexibility of the terminal in hands-free call.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a call parameter processing method according to an embodiment of the present invention.
Fig. 2 is another flow chart illustrating a call parameter processing method according to an embodiment of the present invention.
Fig. 3A to fig. 3B are schematic scene diagrams of a call parameter processing method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a call parameter processing apparatus according to an embodiment of the present invention.
Fig. 5 is another schematic structural diagram of a call parameter processing apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
As will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a call parameter processing method according to an embodiment of the present invention, where the flow may include:
in step S101, when the handsfree phone call is performed, a sound signal is acquired.
It can be understood that the execution subject of the embodiment of the present invention may be a terminal device of a smart phone or a tablet computer.
For example, when the terminal performs a hands-free call service, the operating mode of the sound pickup device is fixed, that is, the sound pickup distance of the terminal is fixed. However, the terminal may be in a noisy environment or a quiet environment when performing the hands-free call. If the sound pickup distance of the terminal is large, when the terminal performs hands-free call in a noisy outdoor environment, noise in the surrounding environment is picked up by a microphone of the terminal, which causes the voice signal transmitted to the other party to be noisy. If the sound pickup distance of the terminal is small, when a telephone conference is carried out by using hands-free conversation in a quiet conference room, sound signals at a longer distance are difficult to be picked up by a microphone, so that the opposite party cannot hear voice signals clearly. That is, the fixed pickup distance results in that the terminal cannot adapt to the change of the environment when carrying out the hands-free call, and the flexibility is poor.
In step S101 of the embodiment of the present invention, for example, when performing a hands-free call, the terminal may first obtain a sound signal of an external environment through the microphone.
In step S102, a signal-to-noise ratio of the sound signal is calculated.
For example, after acquiring a sound Signal of the external environment, the terminal may calculate a Signal-to-Noise Ratio (SNR) of the sound Signal.
It will be appreciated that a larger signal-to-noise ratio value indicates a cleaner sound signal. Therefore, after acquiring the sound signal of the external environment, if the signal-to-noise ratio of the sound signal calculated by the terminal is large, the surrounding environment where the terminal is located at the time can be considered to be quiet. If the signal-to-noise ratio of the sound signal calculated by the terminal is small, the surrounding environment where the terminal is located can be considered to be noisy.
In one embodiment, the terminal may calculate the signal-to-noise ratio of the sound signal by:
for example, a mobile terminal generally has two microphones, which can pick up sound signals (analog signals) of the external environment, and then the terminal can transmit the two analog signals to corresponding analog-to-digital converters to convert the two analog signals into corresponding digital signals, that is, the terminal can obtain two digital signals, such as digital signal a and digital signal B.
Then, the terminal may transmit the two paths of Digital signals to a Digital Signal Processor (DSP) for Fast Fourier Transform (FFT) based processing, that is, converting the Digital signals from time domain signals to frequency domain signals for analysis. Then, the terminal can respectively calculate the amplitude values of all frequency point signals in the 200 Hz-4 KHz bandwidth in the frequency domain signals corresponding to the two paths of digital signals, subtract the amplitude values of the corresponding frequency points in the two paths of digital signals to obtain the amplitude difference values of all frequency points of the two paths of digital signals, and calculate the absolute values of the amplitude difference values.
For example, the frequency point signals of the digital signal a and the digital signal B in the bandwidth of 200Hz to 4KHz include six frequency point signals of h, i, j, k, l, and m. The terminal may first calculate to obtain the amplitudes of the digital signal a and the digital signal B at the h, i, j, k, l, and m frequency point signals, and then subtract the amplitudes of the two paths of digital signals at the corresponding frequency points, for example, subtract the amplitude of the h frequency point signal in the digital signal a from the amplitude of the h frequency point signal in the digital signal B to obtain the amplitude difference at the h frequency point signal, and take the absolute value of the amplitude difference. And calculating the absolute value of the amplitude difference at the other frequency point signals by analogy, thereby obtaining the absolute value of the amplitude difference of the two paths of digital signals at each frequency point signal.
Then, the terminal may select the frequency point signal whose absolute value reaches the predetermined absolute value threshold according to the absolute value of the amplitude difference at each frequency point signal, for example, the absolute value of the amplitude difference at the frequency point h, i, j, k reaches the predetermined absolute value threshold. Then, the terminal selects one of the two digital signals, for example, digital signal a. Then, the terminal calculates the average value of the amplitudes at the frequency points h, i, j, k in the digital signal a, for example, X. This mean value X can characterize the useful signal. Then, the terminal selects out the frequency point signals whose absolute value of the amplitude difference value does not reach the predetermined absolute value threshold, for example, the absolute values of the amplitude difference values at the frequency points l and m do not reach the predetermined absolute value threshold. Then, the terminal calculates the average value of the amplitudes at the frequency points l and m in the selected digital signal a, for example, N. The average value N may characterize the noise signal.
Then, the terminal may calculate the signal-to-noise ratio of the current sound signal according to the formula SNR ═ 20lg (X/N).
In step S103, a handsfree call processing parameter corresponding to the signal-to-noise ratio value is acquired.
In step S104, the terminal is set according to the handsfree call processing parameter so that the user performs a handsfree call.
For example, steps S103 and S104 may include:
after the signal-to-noise ratio of the voice signal is obtained, the terminal may obtain a hands-free call processing parameter corresponding to the signal-to-noise ratio, and set a hands-free call service of the terminal according to the hands-free call processing parameter, so as to perform a hands-free call.
For example, the terminal may set a plurality of signal-to-noise values and a handsfree call processing parameter corresponding to each signal-to-noise value in advance. For example, the hands-free call processing parameter corresponding to the signal-to-noise ratio a is a, the hands-free call processing parameter corresponding to the signal-to-noise ratio B is B, and so on. Then, when the signal-to-noise ratio of the external environment sound signal calculated by the terminal is a, the terminal may set the handsfree call service according to the handsfree call processing parameter a. When the signal-to-noise ratio of the external environment sound signal calculated by the terminal is B, the terminal can set the hands-free call service according to the hands-free call processing parameter B, and the like.
In one embodiment, the noise reduction strength of the hands-free call processing parameter may be different for different signal-to-noise ratios. For example, the larger the signal-to-noise ratio value, the smaller the noise reduction strength of the corresponding hands-free call processing parameter.
It should be noted that the greater the noise reduction intensity of the handsfree call processing parameter, the smaller the corresponding sound pickup distance. For example, the signal-to-noise ratio value a is greater than the signal-to-noise ratio value B, the noise reduction strength of the handsfree call processing parameter a may be smaller than the handsfree call processing parameter B. The pickup distance of the handsfree call processing parameter a is larger than the pickup distance of the handsfree call processing parameter b. That is, when the hands-free call is performed in a quieter environment, the noise reduction strength of the terminal may be set to be smaller, so that the sound pickup distance of the terminal is longer. And when carrying out hands-free conversation under comparatively noisy environment, can be with the great that the intensity of making an uproar of terminal set up to make the pick-up distance of terminal less.
In one embodiment, the step of acquiring the hands-free call processing parameter corresponding to the signal-to-noise ratio in S103 may be as follows:
acquiring a plurality of signal-to-noise ratio value intervals and call parameters corresponding to the signal-to-noise ratio value intervals, wherein the larger the value of the signal-to-noise ratio value interval is, the smaller the noise reduction intensity of the corresponding call parameter is;
determining a target signal-to-noise ratio value interval to which the signal-to-noise ratio value of the sound signal belongs;
and determining the call parameters corresponding to the target signal-to-noise ratio value interval as the hands-free call processing parameters corresponding to the signal-to-noise ratio value.
For example, the terminal may set four signal-to-noise ratio value intervals in advance: (0dB,10 dB), (10dB,20 dB), (20dB,30 dB) and more than 30dB, each SNR interval has a corresponding set of speech parameters, for example, the call parameter corresponding to the (0dB,10 dB) interval is c, the call parameter corresponding to the (10dB,20 dB) interval is d, the call parameter corresponding to the (20dB,30 dB) interval is e, the call parameter corresponding to the (0dB,10 dB) interval is f, where, c. the noise reduction level of the call parameter c may be 15dB, the noise reduction level of the call parameter d may be 10dB, the noise reduction level of the call parameter e may be 5dB, the noise reduction level of the call parameter f may be 0dB, corresponding to the sound pickup distance, when the terminal carries out the hands-free call by the call parameters c, d, e and f respectively, the sound pickup distance of the terminal is sequentially increased.
Then, after the terminal calculates the signal-to-noise ratio of the current sound signal, the terminal may obtain a preset signal-to-noise ratio interval and corresponding call parameters. Then, the terminal may determine a target signal-to-noise ratio value interval to which the signal-to-noise ratio value belongs, and determine a call parameter corresponding to the target signal-to-noise ratio value interval as a hands-free call processing parameter corresponding to the signal-to-noise ratio value of the current voice signal. For example, if the terminal determines that the signal-to-noise ratio of the current sound signal belongs to the (20dB,30 dB) interval, the terminal may determine the call parameter e as the corresponding handsfree call processing parameter, and set the handsfree call service according to the call parameter e to perform the handsfree call.
Therefore, the embodiment of the invention can correspondingly set the terminal with different hands-free call processing parameters according to different signal-to-noise ratios of the external environment sound signals so as to carry out hands-free call service, thereby improving the flexibility of the terminal when carrying out hands-free call.
As can be seen from the above, in the call parameter processing method provided in this embodiment, when performing the hands-free call, the terminal may first obtain the sound signal of the external environment, and calculate the signal-to-noise ratio of the sound signal. Then, the terminal can obtain the hand-free call processing parameter corresponding to the signal-to-noise ratio, and set the terminal according to the corresponding hand-free call processing parameter to complete the hand-free call service. Therefore, the embodiment of the invention can correspondingly set the terminal with different hands-free call processing parameters according to different signal-to-noise ratios of the external environment sound signals to complete the hands-free call service, thereby improving the flexibility of the terminal in hands-free call.
Referring to fig. 2, fig. 2 is another schematic flow chart of a call parameter processing method according to an embodiment of the present invention, where the flow chart may include:
in step S201, when the handsfree phone call is performed, the terminal acquires a sound signal.
In step S202, the terminal calculates a signal-to-noise ratio value of the sound signal.
For example, steps S201 and S202 may include:
when the hands-free call is carried out, the terminal can pick up sound signals of the external environment through the microphone. The terminal may then calculate the signal-to-noise ratio of the sound signal picked up by the microphone.
In one embodiment, the terminal may calculate the signal-to-noise ratio of the external environment sound signal at preset time intervals. For example, the terminal may calculate the signal-to-noise ratio of the external environment sound signal picked up by the microphone every 5 seconds or 6 seconds.
In step S203, the terminal obtains a preset first parameter and a preset second parameter, where the noise reduction strength of the preset first parameter is smaller than the preset second parameter.
For example, after the signal-to-noise ratio of the external environment sound signal is obtained through calculation, the terminal may obtain a preset first parameter and a preset second parameter, where the noise reduction strength of the preset first parameter is smaller than the preset second parameter. It should be noted that the larger the noise reduction intensity is, the smaller the corresponding sound pickup distance is. Therefore, compared with the preset second parameter, when the terminal carries out the hands-free call according to the preset first parameter, the microphone of the terminal can pick up the external environment sound signal at a longer distance.
In step S204, when it is detected that the signal-to-noise ratio is greater than or equal to a preset threshold, the terminal determines the preset first parameter as a corresponding handsfree call processing parameter; and when the signal-to-noise ratio is smaller than the preset threshold value, the terminal determines the preset second parameter as a corresponding hands-free call processing parameter.
In step S205, the terminal sets the handsfree call service according to the determined handsfree call processing parameter to perform the handsfree call.
For example, steps S204 and S205 may include:
after acquiring the preset first parameter and the preset second parameter, the terminal may detect whether the signal-to-noise ratio of the external environment sound signal calculated in step S202 is greater than or equal to a preset threshold or smaller than the preset threshold.
When the terminal detects that the signal-to-noise ratio is greater than or equal to the preset threshold, the environment in which the terminal is currently located can be considered as a relatively quiet environment. In this case, the terminal may determine the preset first parameter as the handsfree call processing parameter corresponding to the signal-to-noise ratio value, and set the handsfree call service of the terminal according to the handsfree call processing parameter (i.e., the preset first parameter) so as to enable the user to perform the handsfree call.
When the terminal detects that the signal-to-noise ratio is smaller than the preset threshold, the current environment where the terminal is located can be considered as a relatively noisy environment. In this case, the terminal may determine the preset second parameter as the handsfree call processing parameter corresponding to the signal-to-noise ratio value, and set the handsfree call service of the terminal according to the handsfree call processing parameter (i.e., the preset second parameter) so as to enable the user to perform the handsfree call.
That is to say, the terminal may preset two sets of parameters, which are a preset first parameter and a preset second parameter, respectively, where the pickup distance of the preset first parameter is greater than the preset second parameter. When the terminal is judged to be in a relatively quiet environment, the terminal can set the hands-free call service according to the preset first parameter so as to carry out hands-free call. When the terminal is judged to be in a noisy environment, the terminal can set the hands-free call service according to the preset second parameter so as to carry out hands-free call.
In step S206, the terminal obtains the calculated plurality of signal-to-noise values, and sequentially calculates the difference between every two signal-to-noise values adjacent to each other in the calculation order according to the calculation time sequence, so as to obtain a plurality of differences.
In step S207, the terminal counts the number of differences whose value reaches a preset difference threshold among the plurality of differences.
In step S208, when it is detected that the number of the difference reaches the preset number, the terminal sets the handsfree call service according to the preset second parameter, and keeps the terminal performing the handsfree call according to the preset second parameter within the preset duration.
For example, steps S206, S207, and S208 may include:
for example, the terminal calculates a signal-to-noise ratio value of a sound signal picked up by a microphone every 5 seconds. In this case, the terminal may acquire a plurality of calculated signal-to-noise values. For example, the terminal may obtain a plurality of signal-to-noise ratios calculated within a preset time range. For example, the terminal may obtain all the signal-to-noise values calculated in the last 3 minutes, i.e., a total of 36 signal-to-noise values.
Then, the terminal may sequentially calculate the difference between every two signal-to-noise ratios that are adjacent in order according to the calculation time sequence, so as to obtain a plurality of differences. For example, the terminal may calculate a total of 35 differences with respect to the signal-to-noise ratio value.
Then, the terminal may count the number of differences, of the 35 differences, whose value reaches a preset difference threshold.
When detecting that the number of the difference values reaches the preset number, the terminal can be triggered to set the hands-free call service according to the preset second parameter. For example, the preset number is 30. Then, when the value of not less than 30 differences among the 35 differences reaches the preset difference threshold, the terminal may be triggered to set the handsfree call service according to the preset second parameter.
It should be noted that, according to the calculation time sequence, the difference between every two adjacent signal-to-noise values can be regarded as the fluctuation amplitude of the two signal-to-noise values. If the difference value reaches a preset difference value threshold value in the value, the fluctuation range between two adjacent signal-to-noise values can be considered to be large.
The 35 differences calculated above can be regarded as the continuous fluctuation range of the signal-to-noise ratio value of the sound signal within 3 minutes. If the number of differences whose value reaches the preset difference threshold value among the 35 differences reaches the preset number, it is considered that the signal-to-noise ratio value of the sound signal continuously fluctuates greatly within the 3 minutes.
For example, when a user walks outdoors, the ambient environment changes greatly, and sometimes is quiet, and sometimes is noisy, so that the signal-to-noise ratio of the sound signal picked up by the microphone fluctuates continuously and greatly. In this case, the terminal may set the handsfree call service according to the preset second parameter, that is, according to the parameter with the smaller sound pickup distance.
Meanwhile, the terminal can also keep the terminal performing the hands-free call service according to the preset second parameter within a preset time (for example, 5 minutes). That is, during the preset time period (e.g. 5 minutes), the terminal performs the handsfree call service according to the preset second parameter, but does not perform the setup of the handsfree call service according to the preset first parameter.
It can be understood that, in the case that the signal-to-noise ratio of the voice signal has a large continuous fluctuation range, the hands-free call service is set according to the preset second parameter, and the terminal is kept in the mode of carrying out the hands-free call according to the preset second parameter within the preset time, so that the terminal can be prevented from being switched between the preset first parameter and the preset second parameter too frequently, and the burden of the terminal in switching the call parameters can be reduced.
Referring to fig. 3A and 3B, fig. 3A and 3B are schematic views of a processing method of call parameters according to an embodiment of the present invention.
For example, at time T1, after the user has made a call, he or she clicks the handsfree talk button on the terminal screen to make a handsfree talk, as shown in fig. 3A.
At this time, the terminal may pick up a sound signal of the external environment through two microphones M1 and M2 provided at the top and bottom ends of the terminal, and calculate a first signal-to-noise ratio value of the sound signal, as shown in fig. 3B.
After the signal-to-noise ratio of the audio signal is obtained through calculation, the terminal can obtain a plurality of preset signal-to-noise ratio intervals and call parameters corresponding to the signal-to-noise ratio intervals. For example, the terminal acquires four signal-to-noise ratio value intervals: (0dB,10 dB), (10dB,20 dB), (20dB,30 dB) and more than 30dB, each SNR interval has a corresponding set of speech parameters, for example, the call parameter corresponding to the (0dB,10 dB) interval is c, the call parameter corresponding to the (10dB,20 dB) interval is d, the call parameter corresponding to the (20dB,30 dB) interval is e, the call parameter corresponding to the (0dB,10 dB) interval is f, where, c. for example, the noise reduction level of the call parameter c may be 15dB, the noise reduction level of the call parameter d may be 10dB, the noise reduction level of the call parameter e may be 5dB, the noise reduction level of the call parameter f may be 0dB, corresponding to the sound pickup distance, when the terminal carries out the hands-free call by the call parameters c, d, e and f respectively, the sound pickup distance of the terminal is sequentially increased.
The terminal may then determine a target signal-to-noise value interval to which the first signal-to-noise value belongs. For example, if the terminal determines that the first signal-to-noise ratio value belongs to the (20dB,30 dB) interval, the terminal may determine the call parameter e as the corresponding handsfree call processing parameter, and set the handsfree call service according to the call parameter e to perform the handsfree call.
In the process of carrying out the hands-free call, the terminal can calculate the signal-to-noise ratio of the sound signal every 5 seconds and detect whether the signal-to-noise ratio interval to which the sound signal belongs changes.
For example, at a time T2 five minutes after the time T1, the terminal calculates a second signal-to-noise ratio value corresponding to the time T2, and detects that the second signal-to-noise ratio value belongs to the (10dB,20 dB) interval, then the terminal may determine the parameter d as a corresponding parameter for hands-free call processing, and set the hands-free call service according to the call parameter d to perform hands-free call.
When the terminal performs the handsfree call according to the call parameters corresponding to the intervals (0dB,10 dB), (10dB,20 dB) and (20dB,30 dB), the terminal may be considered to be in a relatively noisy environment, and at this time, the terminal may also turn on the noise reduction functions of the two microphones, and when the signal-to-noise ratio of the sound signal picked up by the terminal reaches more than 30dB, the terminal may perform the handsfree call according to the call parameter f, and may also raise the Automatic Gain Control (AGC) by 10dB without using the noise reduction functions of the two microphones, that is, when the terminal performs the handsfree call in a relatively quiet environment, the microphone may pick up the sound signal at a longer distance by raising the Automatic Gain Control Gain by 10 dB.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a call parameter processing apparatus according to an embodiment of the present invention. The call parameter processing apparatus 300 may include: a first obtaining module 301, a calculating module 302, a second obtaining module 303, and a setting module 304.
The first acquiring module 301 is configured to acquire a sound signal when performing a hands-free call.
A calculating module 302, configured to calculate a signal-to-noise ratio of the sound signal.
For example, when performing a hands-free call, the first obtaining module 301 of the terminal may first obtain a sound signal of an external environment through a microphone. After the first obtaining module 301 obtains the sound signal of the external environment, the calculating module 302 may calculate a signal-to-noise ratio of the sound signal.
It will be appreciated that a larger signal-to-noise ratio value indicates a cleaner sound signal. Therefore, after acquiring the sound signal of the external environment, if the signal-to-noise ratio of the sound signal calculated by the calculating module 302 is large, the surrounding environment where the terminal is located at the time may be considered to be quiet. If the signal-to-noise ratio of the sound signal calculated by the calculating module 302 is small, the surrounding environment where the terminal is located at the moment can be considered to be noisy.
In one embodiment, the calculating module 302 may calculate the signal-to-noise ratio of the sound signal by:
for example, a mobile terminal generally has two microphones, which can pick up sound signals (analog signals) of the external environment, and then the computing module 302 can transmit the two analog signals to corresponding analog-to-digital converters to convert the two analog signals into corresponding digital signals, that is, the computing module 302 can obtain two digital signals, such as digital signal a and digital signal B.
Then, the computation module 302 may transmit the two paths of Digital signals to a Digital Signal Processor (DSP) for Fast Fourier Transform (FFT) based processing, that is, converting the Digital signals from time domain signals to frequency domain signals for analysis. Then, the calculating module 302 may calculate the amplitudes of all frequency point signals within a bandwidth of 200Hz to 4KHz in the frequency domain signals corresponding to the two paths of digital signals, subtract the amplitudes of the corresponding frequency points in the two paths of digital signals to obtain the amplitude difference values of all frequency points of the two paths of digital signals, and calculate the absolute values of the amplitude difference values.
For example, the frequency point signals of the digital signal a and the digital signal B in the bandwidth of 200Hz to 4KHz include six frequency point signals of h, i, j, k, l, and m. The terminal may first calculate to obtain the amplitudes of the digital signal a and the digital signal B at the h, i, j, k, l, and m frequency point signals, and then subtract the amplitudes of the two paths of digital signals at the corresponding frequency points, for example, subtract the amplitude of the h frequency point signal in the digital signal a from the amplitude of the h frequency point signal in the digital signal B to obtain the amplitude difference at the h frequency point signal, and take the absolute value of the amplitude difference. And calculating the absolute value of the amplitude difference at the other frequency point signals by analogy, thereby obtaining the absolute value of the amplitude difference of the two paths of digital signals at each frequency point signal.
Then, the terminal may select the frequency point signal whose absolute value reaches the predetermined absolute value threshold according to the absolute value of the amplitude difference at each frequency point signal, for example, the absolute value of the amplitude difference at the frequency point h, i, j, k reaches the predetermined absolute value threshold. Then, the terminal selects one of the two digital signals, for example, digital signal a. Then, the terminal calculates the average value of the amplitudes at the frequency points h, i, j, k in the digital signal a, for example, X. This mean value X can characterize the useful signal. Then, the terminal selects out the frequency point signals whose absolute value of the amplitude difference value does not reach the predetermined absolute value threshold, for example, the absolute values of the amplitude difference values at the frequency points l and m do not reach the predetermined absolute value threshold. Then, the terminal calculates the average value of the amplitudes at the frequency points l and m in the selected digital signal a, for example, N. The average value N may characterize the noise signal.
Next, the calculating module 302 may calculate the signal-to-noise ratio of the current sound signal according to the formula SNR ═ 20lg (X/N).
A second obtaining module 303, configured to obtain a handsfree call processing parameter corresponding to the signal-to-noise ratio.
And the setting module 304 is configured to set the terminal according to the handsfree call processing parameter, so that the user performs a handsfree call.
For example, after the signal-to-noise ratio of the audio signal is calculated by the calculating module 302, the second obtaining module 303 may obtain a handsfree call processing parameter corresponding to the signal-to-noise ratio, and the setting module 304 sets the handsfree call service of the terminal according to the handsfree call processing parameter, so as to perform handsfree call.
For example, the terminal may set a plurality of signal-to-noise values and a handsfree call processing parameter corresponding to each signal-to-noise value in advance. For example, the hands-free call processing parameter corresponding to the signal-to-noise ratio a is a, the hands-free call processing parameter corresponding to the signal-to-noise ratio B is B, and so on. Then, when the signal-to-noise ratio of the external environment sound signal calculated by the calculating module 302 is a, the setting module 304 may set the handsfree call service according to the handsfree call processing parameter a. When the signal-to-noise ratio of the external environment sound signal calculated by the calculating module 302 is B, the setting module 304 may set the handsfree call service according to the handsfree call processing parameter B, and so on.
It can be understood that, according to different signal-to-noise ratios of external environment sound signals, the embodiment of the present invention may correspondingly set the terminal with different hands-free call processing parameters to perform the hands-free call service, so as to improve the flexibility of the terminal when performing the hands-free call.
In one embodiment, the noise reduction strength of the hands-free call processing parameter may be different for different signal-to-noise ratios. For example, the larger the signal-to-noise ratio value, the smaller the noise reduction strength of the corresponding hands-free call processing parameter.
It should be noted that the greater the noise reduction intensity of the handsfree call processing parameter, the smaller the corresponding sound pickup distance. For example, the signal-to-noise ratio value a is greater than the signal-to-noise ratio value B, the noise reduction strength of the handsfree call processing parameter a may be smaller than the handsfree call processing parameter B. The pickup distance of the handsfree call processing parameter a is larger than the pickup distance of the handsfree call processing parameter b. That is, when the hands-free call is performed in a quieter environment, the noise reduction strength of the terminal may be set to be smaller, so that the sound pickup distance of the terminal is longer. And when carrying out hands-free conversation under comparatively noisy environment, can be with the great that the intensity of making an uproar of terminal set up to make the pick-up distance of terminal less.
In one embodiment, the second obtaining module 303 may be configured to:
acquiring a preset first parameter and a preset second parameter, wherein the noise reduction intensity of the preset first parameter is smaller than that of the preset second parameter;
when the signal-to-noise ratio is detected to be larger than or equal to a preset threshold value, determining the preset first parameter as a corresponding hands-free call processing parameter;
and when the signal-to-noise ratio is detected to be smaller than a preset threshold value, determining the preset second parameter as a corresponding hands-free call processing parameter.
For example, after the calculating module 302 calculates the signal-to-noise ratio of the external environment sound signal, the second obtaining module 303 may obtain a preset first parameter and a preset second parameter, where the noise reduction strength of the preset first parameter is smaller than the preset second parameter. It should be noted that the larger the noise reduction intensity is, the smaller the corresponding sound pickup distance is. Therefore, compared with the preset second parameter, when the terminal carries out the hands-free call according to the preset first parameter, the microphone of the terminal can pick up the external environment sound signal at a longer distance.
After acquiring the preset first parameter and the preset second parameter, the second acquiring module 303 may detect whether the signal-to-noise ratio of the external environment sound signal calculated by the calculating module 302 is greater than or equal to a preset threshold or smaller than the preset threshold.
When the signal-to-noise ratio is detected to be greater than or equal to the preset threshold, the environment in which the terminal is currently located can be considered to be a relatively quiet environment. In this case, the second obtaining module 303 may determine the preset first parameter as the hands-free call processing parameter corresponding to the signal-to-noise ratio, and the setting module 304 sets the hands-free call service of the terminal according to the hands-free call processing parameter (i.e., the preset first parameter), so as to enable the user to perform hands-free call.
When the terminal detects that the signal-to-noise ratio is smaller than the preset threshold, the current environment where the terminal is located can be considered as a relatively noisy environment. In this case, the second obtaining module 303 may determine the preset second parameter as the hands-free call processing parameter corresponding to the signal-to-noise ratio, and the setting module 304 sets the hands-free call service of the terminal according to the hands-free call processing parameter (i.e., the preset second parameter), so as to enable the user to perform hands-free call.
That is to say, the terminal may preset two sets of parameters, which are a preset first parameter and a preset second parameter, respectively, where the pickup distance of the preset first parameter is greater than the preset second parameter. When the terminal is judged to be in a relatively quiet environment, the terminal can set the hands-free call service according to the preset first parameter so as to carry out hands-free call. When the terminal is judged to be in a noisy environment, the terminal can set the hands-free call service according to the preset second parameter so as to carry out hands-free call.
In another embodiment, the second obtaining module 303 may be configured to:
acquiring a plurality of signal-to-noise ratio value intervals and call parameters corresponding to the signal-to-noise ratio value intervals, wherein the larger the numerical value of the signal-to-noise ratio value interval is, the smaller the noise reduction intensity of the corresponding call parameter is;
determining a target signal-to-noise ratio value interval to which the signal-to-noise ratio value of the sound signal belongs;
and determining the call parameters corresponding to the target signal-to-noise ratio value interval as hands-free call processing parameters corresponding to the signal-to-noise ratio value.
For example, the terminal may set four signal-to-noise ratio intervals in advance: (0dB,10 dB), (10dB,20 dB), (20dB,30 dB) and more than 30dB, each SNR interval has a corresponding set of speech parameters, for example, the call parameter corresponding to the (0dB,10 dB) interval is c, the call parameter corresponding to the (10dB,20 dB) interval is d, the call parameter corresponding to the (20dB,30 dB) interval is e, the call parameter corresponding to the (0dB,10 dB) interval is f, where, c. the noise reduction level of the call parameter c may be 15dB, the noise reduction level of the call parameter d may be 10dB, the noise reduction level of the call parameter e may be 5dB, the noise reduction level of the call parameter f may be 0dB, corresponding to the sound pickup distance, when the terminal carries out the hands-free call by the call parameters c, d, e and f respectively, the sound pickup distance of the terminal is sequentially increased.
Then, after the calculating module 302 calculates the signal-to-noise ratio of the current audio signal, the second obtaining module 303 may obtain a preset signal-to-noise ratio interval and a corresponding call parameter. Then, the second obtaining module 303 may determine a target signal-to-noise ratio value interval to which the signal-to-noise ratio value belongs, and determine a call parameter corresponding to the target signal-to-noise ratio value interval as a hands-free call processing parameter corresponding to the signal-to-noise ratio value of the current voice signal. For example, if the second obtaining module 303 determines that the signal-to-noise ratio of the current sound signal belongs to the (20dB,30 dB) interval, the second obtaining module 303 may determine the call parameter e as the corresponding handsfree call processing parameter.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a call parameter processing apparatus according to an embodiment of the present invention. In an embodiment, the call parameter processing apparatus 300 may further include: a detection module 305 and a holding module 306.
A detecting module 305, configured to obtain multiple signal-to-noise ratios calculated by the terminal, and sequentially calculate, according to a calculation time sequence, a difference between every two signal-to-noise ratios that are adjacent in the sequence, so as to obtain multiple differences; counting the number of difference values of which the numerical values reach a preset difference value threshold value in the plurality of difference values; and when the number of the difference values reaches the preset number, setting the hands-free call of the terminal according to the preset second parameter.
For example, the calculating module 302 calculates the signal-to-noise ratio of the sound signal picked up by the microphone every 5 seconds. In this case, the detection module 305 may obtain a plurality of calculated signal-to-noise values. For example, the detection module 305 may obtain a plurality of signal-to-noise ratios calculated within a preset time range. For example, the detection module 305 may obtain all the signal-to-noise values calculated in the last 3 minutes, i.e., 36 signal-to-noise values in total.
Then, the detecting module 305 may sequentially calculate the difference between every two signal-to-noise ratios adjacent to each other in the calculation time sequence, so as to obtain a plurality of differences. For example, the detection module 305 may calculate a total of 35 differences with respect to the signal-to-noise ratio value.
Then, the detecting module 305 may count the number of differences with a value reaching a preset difference threshold value among the 35 differences.
When detecting that the number of the difference values reaches the preset number, the detecting module 305 may trigger the terminal to set the hands-free call service according to a preset second parameter. For example, the preset number is 30. Then, when the value of not less than 30 differences among the 35 differences reaches the preset difference threshold, the terminal may be triggered to set the handsfree call service according to the preset second parameter.
It should be noted that, according to the calculation time sequence, the difference between every two adjacent signal-to-noise values can be regarded as the fluctuation amplitude of the two signal-to-noise values. If the difference value reaches a preset difference value threshold value in the value, the fluctuation range between two adjacent signal-to-noise values can be considered to be large.
The 35 differences calculated above can be regarded as the continuous fluctuation range of the signal-to-noise ratio value of the sound signal within 3 minutes. If the number of differences whose value reaches the preset difference threshold value among the 35 differences reaches the preset number, it is considered that the signal-to-noise ratio value of the sound signal continuously fluctuates greatly within the 3 minutes.
For example, when a user walks outdoors, the ambient environment changes greatly, and sometimes is quiet, and sometimes is noisy, so that the signal-to-noise ratio of the sound signal picked up by the microphone fluctuates continuously and greatly. In this case, the terminal may set the handsfree call service according to the preset second parameter, that is, according to the parameter with the smaller sound pickup distance.
And a holding module 306, configured to hold the terminal to perform the hands-free call according to the preset second parameter within a preset time.
For example, after the detection module 305 sets the handsfree call service of the terminal according to the preset second parameter, the holding module 306 may further hold the terminal for the handsfree call service according to the preset second parameter for a preset time (e.g., 5 minutes). That is, during the preset time period (e.g. 5 minutes), the terminal performs the handsfree call service according to the preset second parameter, but does not perform the setup of the handsfree call service according to the preset first parameter.
It can be understood that, in the case that the signal-to-noise ratio of the voice signal has a large continuous fluctuation range, the hands-free call service is set according to the preset second parameter, and the terminal is kept in the mode of carrying out the hands-free call according to the preset second parameter within the preset time, so that the terminal can be prevented from being switched between the preset first parameter and the preset second parameter too frequently, and the burden of the terminal in switching the call parameters can be reduced.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run in the processor, and when the processor executes the computer program, the steps in the call parameter processing method provided in the embodiment of the present invention can be implemented.
For example, the electronic device provided by the embodiment of the invention can be a mobile terminal such as a tablet computer and a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal 500 may include Radio Frequency (RF) circuitry 501, memory 502 including one or more computer-readable storage media, input unit 503, display unit 504, audio circuitry 505, processor 506 including one or more processing cores, and so forth. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The rf circuit 501 may be used for receiving and transmitting information, or receiving and transmitting signals during a call, and in particular, receives downlink information of a base station and then sends the received downlink information to one or more processors 508 for processing; in addition, data relating to uplink is transmitted to the base station.
The memory 502 may be used to store applications and data. Memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 506 executes various functional applications and data processing by running the application programs stored in the memory 502.
The input unit 503 may be used to receive input numbers, character information, or user characteristic information (such as a fingerprint), and generate a keyboard, mouse, joystick, optical, or trackball signal input related to user setting and function control.
The display unit 504 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 504 may include a display panel.
The audio circuitry 505 may provide an audio interface between a user and the mobile terminal through a speaker, a microphone, etc. The audio circuit 506 can convert the received audio data into an electrical signal, transmit the electrical signal to a speaker, and convert the electrical signal into a sound signal to output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 506 and converted into audio data, and the audio data is output to the processor 506 and then transmitted to another mobile terminal through the rf circuit 501.
The processor 506 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing an application program stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile terminal.
Although not shown in fig. 6, the mobile terminal may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
Specifically, in this embodiment, the processor 506 in the mobile terminal loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 506 runs the application programs stored in the memory 502, thereby implementing various functions:
acquiring a sound signal when carrying out the hands-free call; calculating a signal-to-noise ratio of the sound signal; acquiring a hand-free call processing parameter corresponding to the signal-to-noise ratio; and setting the terminal according to the hands-free call processing parameters so as to enable the user to carry out hands-free call.
The processor 506, when performing the obtaining of the handsfree call processing parameter corresponding to the signal-to-noise ratio value, may include: acquiring a preset first parameter and a preset second parameter, wherein the noise reduction intensity of the preset first parameter is smaller than that of the preset second parameter; when the signal-to-noise ratio is detected to be larger than or equal to a preset threshold value, determining the preset first parameter as a corresponding hands-free call processing parameter; and when the signal-to-noise ratio is detected to be smaller than a preset threshold value, determining the preset second parameter as a corresponding hands-free call processing parameter.
Processor 506 may also perform the following steps: acquiring a plurality of signal-to-noise values calculated by the terminal, and calculating the difference value of every two signal-to-noise values adjacent in sequence according to the sequence of calculation time to obtain a plurality of difference values; counting the number of difference values of which the numerical values reach a preset difference value threshold value in the plurality of difference values; and when detecting that the number of the difference values reaches a preset number, setting the hands-free call service of the terminal according to the preset second parameter.
Processor 506 may also perform the following steps: and keeping the terminal to carry out the hands-free call according to the preset second parameter within a preset time length.
In another embodiment, the processor 506, when executing the obtaining of the handsfree call processing parameter corresponding to the signal-to-noise ratio value, may include: acquiring a plurality of signal-to-noise ratio value intervals and call parameters corresponding to the signal-to-noise ratio value intervals, wherein the larger the numerical value of the signal-to-noise ratio value interval is, the smaller the noise reduction intensity of the corresponding call parameter is; determining a target signal-to-noise ratio value interval to which the signal-to-noise ratio value of the sound signal belongs; and determining the call parameters corresponding to the target signal-to-noise ratio value interval as hands-free call processing parameters corresponding to the signal-to-noise ratio value.
In the foregoing embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the call parameter processing method, and are not described herein again.
The call parameter processing apparatus provided in the embodiment of the present invention and the call parameter processing method in the above embodiments belong to the same concept, and any one of the methods provided in the embodiments of the call parameter processing method may be run on the call parameter processing apparatus, and a specific implementation process thereof is described in detail in the embodiment of the call parameter processing method, and is not described herein again.
It should be noted that, for the call parameter processing method according to the embodiment of the present invention, it can be understood by a person skilled in the art that all or part of the process of implementing the call parameter processing method according to the embodiment of the present invention can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the call parameter processing method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the call parameter processing apparatus in the embodiment of the present invention, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The method, the device and the electronic device for processing call parameters provided by the embodiment of the present invention are described in detail above, a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (4)

1. A call parameter processing method is characterized by comprising the following steps:
when the hands-free call is carried out, sound signals are obtained through the two microphones;
converting the sound signals acquired by the two microphones from a time domain to a frequency domain, and calculating to obtain corresponding signal-to-noise ratio values according to the amplitude values of the sound signals acquired by the two microphones at each frequency point;
acquiring a plurality of signal-to-noise ratio value intervals and call parameters corresponding to the signal-to-noise ratio value intervals, wherein the larger the numerical value of the signal-to-noise ratio value interval is, the quieter the current environment is indicated, the larger the sound pickup distance of the corresponding call parameter is, so as to pick up remote sounds, the smaller the numerical value of the signal-to-noise ratio value interval is, so as to indicate that the current environment is in a noisy environment, and the smaller the sound pickup distance of the corresponding call parameter is, so as to pick up close sounds;
determining a target signal-to-noise ratio value interval to which the signal-to-noise ratio value belongs;
determining the call parameters corresponding to the target signal-to-noise ratio interval as hands-free call processing parameters corresponding to the signal-to-noise ratio;
setting the terminal according to the hands-free call processing parameters so that a user can carry out hands-free call based on the pickup distance corresponding to the hands-free call processing parameters;
when the terminal carries out hands-free call according to call parameters corresponding to a first signal-to-noise ratio value interval, a second signal-to-noise ratio value interval and a third signal-to-noise ratio value interval, the noise reduction functions of the two microphones are turned on, or when the hands-free call is carried out according to call parameters corresponding to a fourth signal-to-noise ratio value interval, the noise reduction functions of the two microphones are turned off, wherein the minimum signal-to-noise ratio value in the second signal-to-noise ratio value interval is larger than the maximum signal-to-noise ratio value in the first signal-to-noise ratio value interval, the minimum signal-to-noise ratio value in the third signal-to-noise ratio value interval is larger than the maximum signal-to-noise ratio value in the second signal-to-noise ratio value interval, and the minimum signal-to-noise ratio value in the fourth signal-to-noise.
2. A call parameter processing apparatus, comprising:
the first acquisition module is used for acquiring sound signals through two microphones when the hands-free call is carried out;
the calculation module is used for converting the sound signals acquired by the two microphones from a time domain to a frequency domain and calculating to obtain corresponding signal-to-noise ratios according to the amplitude values of the sound signals acquired by the two microphones at each frequency point;
the second acquisition module is used for acquiring a plurality of signal-to-noise ratio value intervals and call parameters corresponding to the signal-to-noise ratio value intervals, wherein the larger the numerical value of the signal-to-noise ratio value interval is, the quieter the current environment is, the larger the pickup distance of the corresponding call parameter is, so as to pick up remote sounds, the smaller the numerical value of the signal-to-noise ratio value interval is, so as to indicate that the current environment is in a noisy environment, and the smaller the pickup distance of the corresponding call parameter is, so as to pick up close-range sounds; determining a target signal-to-noise ratio value interval to which the signal-to-noise ratio value belongs; determining the call parameters corresponding to the target signal-to-noise ratio interval as hands-free call processing parameters corresponding to the signal-to-noise ratio;
the setting module is used for setting the terminal according to the hands-free call processing parameters so that a user can carry out hands-free call based on the pickup distance corresponding to the hands-free call processing parameters;
the noise reduction module is configured to, when the terminal performs a hands-free call according to call parameters corresponding to a first signal-to-noise ratio interval, a second signal-to-noise ratio interval, and a third signal-to-noise ratio interval, turn on noise reduction functions of the two microphones, or turn off noise reduction functions of the two microphones when performing a hands-free call according to call parameters corresponding to a fourth signal-to-noise ratio interval, where a minimum signal-to-noise ratio in the second signal-to-noise ratio interval is greater than a maximum signal-to-noise ratio in the first signal-to-noise ratio interval, a minimum signal-to-noise ratio in the third signal-to-noise ratio interval is greater than a maximum signal-to-noise ratio in the second signal-to-noise ratio interval, and a minimum signal-to-noise ratio in the fourth signal-to-noise ratio interval is greater than a maximum signal-to-noise ratio in the.
3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable in the processor, wherein the processor implements the steps of the call parameter processing method of claim 1 when executing the computer program.
4. A storage medium storing a computer program, the computer program causing a computer to perform the method of claim 1.
CN201710279451.7A 2017-04-25 2017-04-25 Call parameter processing method and device and electronic equipment Active CN106961509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710279451.7A CN106961509B (en) 2017-04-25 2017-04-25 Call parameter processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710279451.7A CN106961509B (en) 2017-04-25 2017-04-25 Call parameter processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106961509A CN106961509A (en) 2017-07-18
CN106961509B true CN106961509B (en) 2019-12-31

Family

ID=59483956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710279451.7A Active CN106961509B (en) 2017-04-25 2017-04-25 Call parameter processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106961509B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110788866B (en) * 2018-08-02 2021-04-16 深圳市优必选科技有限公司 Robot awakening method and device and terminal equipment
CN110970051A (en) * 2019-12-06 2020-04-07 广州国音智能科技有限公司 Voice data acquisition method, terminal and readable storage medium
CN111294447A (en) * 2020-02-17 2020-06-16 Oppo广东移动通信有限公司 Noise reduction method and device, electronic equipment and storage medium
CN112911053B (en) * 2021-01-19 2022-09-13 武汉凡鱼科技有限公司 Automatic voice call switching method, device, equipment and storage medium
CN116941185A (en) * 2021-07-09 2023-10-24 Oppo广东移动通信有限公司 Noise reduction method based on transfer learning, terminal equipment, network equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102186002A (en) * 2011-03-10 2011-09-14 深圳创维-Rgb电子有限公司 Method and system for television noise reduction and television
CN102543097A (en) * 2012-01-16 2012-07-04 华为终端有限公司 Denoising method and equipment
CN103581447A (en) * 2012-08-02 2014-02-12 中兴通讯股份有限公司 Method and device for signal processing and electronic equipment
CN104092801A (en) * 2014-05-22 2014-10-08 中兴通讯股份有限公司 Intelligent terminal call noise reduction method and intelligent terminal
CN104780259A (en) * 2014-01-14 2015-07-15 深圳富泰宏精密工业有限公司 Automatic adjustment system and method for call voice quality
CN106534532A (en) * 2016-11-08 2017-03-22 深圳众思科技有限公司 Call quality improving method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5862349B2 (en) * 2012-02-16 2016-02-16 株式会社Jvcケンウッド Noise reduction device, voice input device, wireless communication device, and noise reduction method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102186002A (en) * 2011-03-10 2011-09-14 深圳创维-Rgb电子有限公司 Method and system for television noise reduction and television
CN102543097A (en) * 2012-01-16 2012-07-04 华为终端有限公司 Denoising method and equipment
CN103581447A (en) * 2012-08-02 2014-02-12 中兴通讯股份有限公司 Method and device for signal processing and electronic equipment
CN104780259A (en) * 2014-01-14 2015-07-15 深圳富泰宏精密工业有限公司 Automatic adjustment system and method for call voice quality
CN104092801A (en) * 2014-05-22 2014-10-08 中兴通讯股份有限公司 Intelligent terminal call noise reduction method and intelligent terminal
CN106534532A (en) * 2016-11-08 2017-03-22 深圳众思科技有限公司 Call quality improving method and terminal

Also Published As

Publication number Publication date
CN106961509A (en) 2017-07-18

Similar Documents

Publication Publication Date Title
CN106961509B (en) Call parameter processing method and device and electronic equipment
US9666180B2 (en) Synthesized audio message over communication links
CN103501375B (en) Method and device for controlling sound effect
WO2018059030A1 (en) Volume adjustment method and terminal
US20170126192A1 (en) Method, device, and computer-readable medium for adjusting volume
US20160205263A1 (en) Echo Cancellation Method and Apparatus
CN111179957B (en) Voice call processing method and related device
CN106384597B (en) Audio data processing method and device
US8687796B2 (en) Method and electronic device for improving communication quality based on ambient noise sensing
US20090323973A1 (en) Selecting an audio device for use
US9601128B2 (en) Communication apparatus and voice processing method therefor
CN108449503B (en) Voice call data processing method and device, storage medium and mobile terminal
EP3038255B1 (en) An intelligent volume control interface
CN111477243B (en) Audio signal processing method and electronic equipment
EP4064574A1 (en) Gear shifting apparatus and method of low noise amplifier, terminal, and network element device
CN111405114A (en) Method and device for automatically adjusting volume, storage medium and terminal
CN108449497B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449499B (en) Voice call data processing method and device, storage medium and mobile terminal
CN113963716A (en) Volume balancing method, device and equipment for talking doorbell and readable storage medium
CN106791245B (en) Method and device for determining filter coefficients
CN107343095B (en) Call volume control method and device, storage medium and terminal
CN105244037B (en) Audio signal processing method and device
CN112911056B (en) Audio recording calibration method, device and computer readable storage medium
CN112333534B (en) Noise elimination method and device, intelligent television system and readable storage medium
CN107566951B (en) Audio signal processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant