WO2022199354A1 - Call volume adjustment method and apparatus, and terminal and storage medium - Google Patents

Call volume adjustment method and apparatus, and terminal and storage medium Download PDF

Info

Publication number
WO2022199354A1
WO2022199354A1 PCT/CN2022/079191 CN2022079191W WO2022199354A1 WO 2022199354 A1 WO2022199354 A1 WO 2022199354A1 CN 2022079191 W CN2022079191 W CN 2022079191W WO 2022199354 A1 WO2022199354 A1 WO 2022199354A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio signal
signal
volume adjustment
signal amplitude
call
Prior art date
Application number
PCT/CN2022/079191
Other languages
French (fr)
Chinese (zh)
Inventor
谢名杰
Original Assignee
深圳市锐尔觅移动通信有限公司
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 深圳市锐尔觅移动通信有限公司 filed Critical 深圳市锐尔觅移动通信有限公司
Publication of WO2022199354A1 publication Critical patent/WO2022199354A1/en

Links

Images

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

Definitions

  • the embodiments of the present application relate to the technical field of voice calls, and in particular, to a method, device, terminal, and storage medium for adjusting the volume of a call.
  • voice calling is widely used in daily use.
  • Embodiments of the present application provide a method, device, terminal, and storage medium for adjusting a call volume.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for adjusting a call volume, the method comprising:
  • the second audio signal includes an audio signal of a reflected sound
  • the reflected sound is formed after the sound emitted by the earpiece is reflected at the target human body, and the target human body is the earpiece towards the human body within range
  • the volume-adjusted first audio signal is output to the earpiece.
  • an embodiment of the present application provides a device for adjusting a call volume, the device comprising:
  • a signal output module configured to output a first audio signal to an earpiece during a call, where the earpiece is used to make a sound based on the first audio signal
  • the first signal acquisition module is used to acquire the second audio signal collected by the first microphone, the second audio signal includes the audio signal of the reflected sound, and the reflected sound is the sound emitted by the earpiece after being reflected at the target human body Formed, the target human body is the human body within the scope of the earpiece;
  • a volume adjustment module configured to determine a call volume adjustment mode based on the first audio signal and the second audio signal, and perform volume adjustment on the first audio signal
  • the signal output module is further configured to output the volume-adjusted first audio signal to the earpiece.
  • an embodiment of the present application provides a terminal, the terminal includes a processor, a memory, an earpiece, and at least one microphone, the memory stores at least one instruction, and the at least one instruction is loaded by the processor And execute the method for adjusting the call volume according to the above aspects.
  • an embodiment of the present application provides a computer-readable storage medium, where at least one piece of program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the above aspects how to adjust the call volume.
  • an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the method for adjusting the call volume provided by the above aspects.
  • FIG. 1 is a schematic diagram of an acoustic acquisition solution provided by an exemplary embodiment of the present application
  • FIG. 2 is a schematic implementation diagram of a process of receiving reflected sound with a first microphone according to an exemplary embodiment of the present application
  • Fig. 3 is the schematic diagram of the angle formed between the terminal and the human body under different terminal holding postures
  • FIG. 4 shows a flowchart of a method for adjusting a call volume provided by an exemplary embodiment of the present application
  • FIG. 5 is a schematic diagram of the implementation of a call volume adjustment process shown in an exemplary embodiment of the present application.
  • FIG. 6 shows a flowchart of a method for adjusting a call volume provided by an exemplary embodiment of the present application
  • Fig. 7 is the experimental data comparison diagram of the simulation experiment
  • FIG. 8 shows a flowchart of a method for adjusting a call volume provided by another exemplary embodiment of the present application.
  • FIG. 9 is a schematic diagram of the implementation of a call volume adjustment process shown in another exemplary embodiment of the present application.
  • Fig. 10 is the experimental data comparison diagram of the simulation experiment
  • FIG. 11 shows a structural block diagram of an apparatus for adjusting a call volume provided by an embodiment of the present application
  • FIG. 12 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • Handset The speaker used to play the peer's voice during a voice call with the handheld terminal.
  • the earpiece is set at the top of the terminal (on the screen side). When the user holds the terminal to make a call, the earpiece should be close to the human ear to achieve a good listening effect.
  • Microphone A component used for sound collection.
  • a terminal is provided with multiple microphones, and different microphones implement different functions during a call.
  • the microphone set at the bottom of the terminal is used to collect the user's voice during the call
  • the microphone set at the top of the terminal is used to collect the ambient sound, so as to realize the noise reduction function by using the ambient sound.
  • Frequency band a division of the frequency range
  • the frequency band in the embodiment of the present application is obtained by dividing the frequency range of the sound that can be heard by the human ear.
  • a signal in the frequency range of 200Hz to 5000Hz can be divided into three frequency bands, namely 200 to 500Hz, 500 to 2000Hz, and 2000 to 5000Hz.
  • the embodiments of the present application do not limit the specific division manner of frequency bands.
  • the terminal after the terminal emits sound through the earpiece, it can adjust the volume of the audio signal input to the earpiece adaptively based on the reflected sound formed by the sound of the earpiece reflected at the human body (human ear), so as to increase the volume of the audio signal input to the earpiece.
  • the listening effect of the human ear under different holding postures of the terminal (the distance between the earpiece and the human ear is different).
  • the embodiment of the present application provides an acoustic collection solution.
  • a microphone is provided on one side of the earpiece.
  • the terminal collects the reflected sound through the microphone, and then determines the volume adjustment method based on the original sound emitted by the earpiece and the reflected sound.
  • the front cover 101 of the terminal 100 is provided with a first opening 1011
  • the PCB 102 inside the terminal 100 is provided with a first microphone 103
  • the first microphone 103 is covered with a sealant sleeve 104, and the opening of the sealant sleeve 104 is close to the first opening 1011, so that the first microphone 103 can receive the incoming sound through the first opening 1011 and isolate other The sound source channel interferes with the reception of the first microphone 103 .
  • the terminal 100 is also provided with an earpiece 108.
  • the earpiece 108 emits a sound
  • the sound is transmitted through the first opening 1011, and is reflected at the human body 200, and the reflected sound formed after the reflection passes through the first hole 1011.
  • An opening 1011 is received by the first microphone 103 .
  • the terminal emits sound through the earpiece and receives the reflected sound through the first microphone. Based on the time difference, the propagation speed of the sound, and the reflection angle during reflection, the distance between the earpiece and the human ear can be determined.
  • the calculation formula of the distance is as follows :
  • S is the distance between the earpiece and the human ear
  • ⁇ T is the time difference
  • V is the speed of sound propagation
  • is the reflection angle
  • the angle formed between the terminal 100 and the human body 200 is different, so the reflection angles of the sound when reflected on the human body are different, and the different reflection angles will affect the The distance the sound travels (the distance from the earpiece to the human body, and then reflected back to the microphone by the human body).
  • the terminal can determine the distance between the earpiece and the human body based on the magnitude of the reflected sound received by the first microphone, and then determine the distance between the earpiece and the human body.
  • the volume of the sound from the earpiece is adjusted to improve the listening effect during the call.
  • the noise-cancelling microphone arranged on the top of the terminal is used to receive the reflected sound, so that there is no need to additionally set the first microphone and reduce the The manufacturing cost of the terminal is not limited in this embodiment.
  • the second microphone 105 is further provided on the PCB 102, the second opening 1061 is provided on the back cover 106 of the terminal 100, the second microphone 105 is covered with a sealant cover 107, and The opening of the sealing rubber sleeve 107 is close to the second opening 1061 , so that the second microphone 105 can receive the incoming sound through the second opening 1061 and isolate the reception interference of the second microphone 105 by other sound source channels.
  • the second microphone 105 collects the ambient sound passing through the second opening 1061 , so that the terminal can adjust the volume of the sound emitted by the earpiece 108 based on the ambient sound to adapt to different call environments.
  • each embodiment of the present application is described by taking the method for adjusting the call volume applied to the terminal shown in FIG. 1 or FIG. 2 as an example, but this does not constitute a limitation.
  • FIG. 4 shows a flowchart of a method for adjusting a call volume provided by an exemplary embodiment of the present application. This embodiment is described by taking the method for the terminal shown in FIG. 1 as an example, and the method includes:
  • Step 401 during the call, output a first audio signal to the earpiece, and the earpiece is used to make a sound based on the first audio signal.
  • the terminal outputs the first audio signal to the earpiece through a digital signal processor (Digital Signal Processor, DSP) or an application processor (Application Processor, AP) (other chips with audio processing capability),
  • DSP Digital Signal Processor
  • AP Application Processor
  • the first audio signal is converted from an electrical signal into an acoustic signal by the earpiece, so as to produce sound.
  • the processor and the earpiece are connected through a necessary audio circuit, which is not limited in this embodiment.
  • Step 402 Acquire a second audio signal collected by the first microphone.
  • the second audio signal includes an audio signal of a reflected sound.
  • the reflected sound is formed by the sound emitted by the earpiece reflected at the target human body, and the target human body is a human body within the range of the earpiece facing. .
  • the call volume is adaptively adjusted based on the distance between the earpiece and the human ear.
  • the second audio signal containing the reflected sound is collected by the first microphone.
  • the reflected sound is the sound formed by the sound emitted by the earpiece reflected at the target human body, that is, the sound emitted by the earpiece is within the direction of the earpiece. After being reflected at the human body, it is collected by the first microphone.
  • the earpiece facing range is a fan-shaped range directly in front of the earpiece, and the fan-shaped range may be a 10° fan-shaped range, a 30° fan-shaped range, or a 90° fan-shaped range, which is not limited in this embodiment of the present application.
  • the target body is a human ear or a human face close to the human ear.
  • the terminal receives the second audio signal collected by the first microphone through the DSP or the AP, where the second audio signal is obtained by performing analog-to-digital conversion on the microphone signal by an audio circuit.
  • Step 403 Determine a call volume adjustment mode based on the first audio signal and the second audio signal, and adjust the volume of the first audio signal.
  • the distance between the earpiece and the human ear is different, the sound received by the human ear is different (mainly manifested as different volume of the sound), and the reflected sound collected by the first microphone is also different. different.
  • the farther the distance between the earpiece and the human ear the lower the volume of the sound received by the human ear, and the lower the volume of the reflected sound collected by the first microphone.
  • the terminal can measure the distance between the earpiece and the human ear based on the first audio signal and the second audio signal, so as to determine the call volume adjustment method of the first audio signal.
  • the terminal adjusts the first audio signal to increase the volume of the sound emitted by the earpiece; when the distance between the earpiece and the human ear is relatively short, the terminal adjusts the first audio signal to reduce the volume of the sound emitted by the earpiece the volume of the sound.
  • the specific manner of the first audio signal will be described in detail in the following embodiments.
  • the DSP or AP of the terminal determines a call volume adjustment mode based on the first audio signal and the second audio signal, and adjusts the volume of the first audio signal.
  • Step 404 Output the volume-adjusted first audio signal to the earpiece.
  • the terminal outputs the volume-adjusted first audio signal to the earpiece through the DSP or AP, so that the earpiece emits sound based on the adjusted first audio signal, so as to realize the adaptive adjustment of the call volume at the human ear .
  • the adaptive adjustment of the call volume is as follows: when the distance between the earpiece and the human ear is relatively far, after the terminal adaptively adjusts the call volume, the volume of the sound received by the human ear increases; when the distance between the earpiece and the human ear is short, the terminal After adaptively adjusting the call volume, the volume of the sound received by the human ear is reduced.
  • the earpiece 52 emits sound based on the first audio signal
  • the first microphone 53 collects the reflected sound, and outputs the second audio signal to the chip 51 .
  • 51 adjusts the first audio signal based on the second audio signal to form a complete adjustment feedback chain.
  • the terminal can perform the above steps cyclically, so as to monitor the change of the sound at the human ear (changed due to the change of the terminal's holding state) in real time, and make adaptive adjustment based on the change of the sound to ensure that the user can hold different holding postures. Good call quality can be obtained when holding the terminal to make a call.
  • the terminal obtains the second audio signal collected by the first microphone, and based on the first audio signal and the second audio signal
  • the signal adjusts the volume of the first audio signal, which can realize adaptive adjustment of the call volume for different terminal holding postures, and helps to improve the accuracy of the call volume adjustment, thereby improving the voice call quality in different terminal holding postures.
  • the above-mentioned method for adjusting the volume of a call is applicable to a hand-held call scenario, that is, a scenario in which the user places the handset of the terminal close to the human ear to make a call. Therefore, in a possible implementation manner, before adjusting the volume, the terminal first determines In the current call mode, and when the current call mode is a hand-held call, the receiver and the first microphone are turned on, so that the call volume can be adaptively adjusted subsequently.
  • the current call mode is a headset call (which can be determined by detecting whether an external headset is connected) or an external call (which can be determined by detecting whether the external playback function is enabled)
  • the earpiece and the first microphone are not turned on.
  • determining a call volume adjustment method based on the first audio signal and the second audio signal, and performing volume adjustment on the first audio signal including:
  • determining a call volume adjustment method based on the first signal amplitude and the second signal amplitude includes:
  • the first call volume adjustment coefficient is determined based on the amplitude ratio, and the first call volume adjustment coefficient is negatively correlated with the amplitude ratio;
  • Adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method including:
  • the first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
  • acquiring the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal includes:
  • Adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient includes:
  • the first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
  • determining a call volume adjustment method based on the first signal amplitude and the second signal amplitude includes:
  • Adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method including:
  • the first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
  • determining the human ear listening signal amplitude includes:
  • Determine the first call volume adjustment coefficient based on the amplitude of the human ear listening signal including:
  • Adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient includes:
  • the first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
  • the method further includes:
  • the third audio signal is an audio signal of ambient sound
  • a call volume adjustment mode is determined based on the first audio signal, the second audio signal and the third audio signal, and the volume of the first audio signal is adjusted.
  • determining a call volume adjustment method based on the first audio signal, the second audio signal, and the third audio signal, and performing volume adjustment on the first audio signal including:
  • determining a call volume adjustment method based on the first signal amplitude, the second signal amplitude, and the third signal amplitude including:
  • the second call volume adjustment coefficient is determined based on the third signal amplitude value, and the second call volume adjustment coefficient is positively correlated with the third signal amplitude value;
  • Adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method including:
  • the first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient.
  • acquiring the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal includes:
  • Adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient and the second call volume adjustment coefficient includes:
  • the first signal amplitude of the first audio signal in the frequency band is adjusted.
  • the terminal can indirectly measure the distance between the earpiece and the human ear according to the change of the signal amplitude between the first audio signal and the second audio signal. Exemplary embodiments are used for description below.
  • FIG. 6 shows a flow chart of a method for adjusting a call volume provided by another exemplary embodiment of the present application.
  • the method is used for the terminal shown in FIG. 1 as an example for description.
  • the method includes: :
  • Step 601 during the call, output a first audio signal to the earpiece, and the earpiece is used to make a sound based on the first audio signal.
  • Step 602 Acquire a second audio signal collected by the first microphone, the second audio signal includes an audio signal of reflected sound, the reflected sound is formed by the sound emitted by the earpiece reflected at the target human body, and the target human body is the human body within the range of the earpiece facing. .
  • steps 601 to 602 For the implementation of steps 601 to 602, reference may be made to steps 401 to 402, and details are not described herein again in this embodiment.
  • Step 603 Obtain the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal.
  • the terminal obtains the signal amplitudes of the first audio signal and the second audio signal respectively, so as to indirectly determine the distance between the earpiece and the human ear based on changes in the signal amplitudes.
  • the terminal can obtain the signal amplitude of the adopted point at several sampling points by means of signal sampling, and determine the average value of the signal amplitude of the several sampling points as the signal amplitude of the audio signal. This embodiment limits the specific manner of determining the signal amplitude.
  • Step 604 Determine a call volume adjustment mode based on the first signal amplitude and the second signal amplitude.
  • the terminal can determine the propagation distance of the sound emitted by the earpiece based on the amplitude changes of the first signal amplitude and the second signal amplitude, and then determine the call volume adjustment method.
  • this step may include the following sub-steps:
  • the terminal determines the sound attenuation degree by calculating the amplitude ratio between the second signal amplitude and the first signal amplitude, wherein the amplitude ratio and the attenuation degree are negatively correlated.
  • developers use artificial heads and terminals in advance to simulate call scenarios under different "earpiece-ear distances", so as to obtain the corresponding signals of the first audio signal and the second audio signal at different distances magnitude.
  • the developers use different degrees of call volume adjustment methods to adjust the volume of the first audio signal, and use the microphone set at the artificial head to collect sound, so as to obtain different call volume adjustments at the human ear.
  • the signal amplitude of the audio signal is used to determine the optimal call volume adjustment method at the current distance (in this adjustment method, the signal amplitude of the audio signal at the human ear meets the call requirements), and then the optimal call volume adjustment under different amplitude ratios is obtained. Way.
  • different levels of call volume adjustment methods correspond to different first call volume adjustment coefficients, and the first call volume adjustment coefficient is used to indicate a scaling factor of the signal amplitude.
  • the terminal scales the signal amplitude of the first audio signal based on the first call volume adjustment coefficient, where the first call volume adjustment coefficient is a positive number.
  • a corresponding relationship between the amplitude ratio and the first call volume adjustment coefficient is set in the terminal, and after determining the amplitude ratio of the first audio signal and the second audio signal, the terminal determines the amplitude ratio from the Find the corresponding first call volume adjustment coefficient in the corresponding relationship.
  • the terminal determines that the first call volume adjustment coefficient is 1.24.
  • the terminal may also set a functional relationship between the amplitude ratio and the first call volume adjustment coefficient (obtained by fitting the amplitude ratio measured in the development process and the optimal call volume adjustment coefficient) , so that the amplitude ratio is substituted into the functional relationship to calculate the first call volume adjustment coefficient.
  • the distance between the terminal receiver and the human ear is in a specific distance range, and correspondingly, the amplitude ratio of the audio signal is in a specific ratio range (such as 0.3 to 0.9 in Table 1); while in the abnormal terminal In the holding posture, the distance between the terminal earpiece and the human ear is too far, resulting in a very small amplitude ratio of the audio signal. If you just adjust the first audio signal while holding the terminal in an abnormal posture, the volume of the sound from the earpiece may be too loud, making the content of the call easy to be heard by others, and even causing the earpiece to break.
  • the terminal when determining the first call volume adjustment coefficient based on the amplitude ratio, if the amplitude ratio is less than the ratio threshold (for example, 0.3), the terminal determines that it is currently in an abnormal terminal holding posture, so as to provide a text prompt after a preset method (such as vibration). ) to prompt, so that the user can adjust the holding posture of the terminal and bring the receiver close to the human ear.
  • the ratio threshold for example, 0.3
  • Step 605 Adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
  • the terminal adjusts the first signal amplitude of the first audio signal based on the determined first call volume adjustment coefficient, thereby adjusting the volume of the sound at the human ear.
  • the terminal reduces the first signal amplitude of the first audio signal, thereby reducing the volume of the sound at the human ear, so as to prevent the call volume from being too large;
  • the terminal increases the first signal amplitude of the first audio signal, thereby increasing the volume of the sound at the human ear and preventing the volume of the call from being too low.
  • the terminal may adjust the signal gain of the first audio signal based on the first call volume adjustment coefficient, so as to realize the adjustment of the signal amplitude of the first audio signal.
  • the audio signal within the listening range of the human ear is pre-divided into several frequency bands, and when the first audio signal and the second audio signal are acquired When the signal amplitude is 1, the terminal obtains the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal in the same frequency band, so as to determine the amplitude of the first audio signal and the second audio signal in different frequency bands ratio, and then based on the first call volume adjustment coefficient corresponding to different frequency bands (developers need to test each frequency band in advance).
  • the terminal adjusts the first signal amplitude of the first audio signal in each frequency band based on the first call volume adjustment coefficient corresponding to each frequency band, and finally performs the adjustment on the adjusted audio signal in each frequency band. Fusion to obtain the first audio signal after the call volume is adjusted.
  • the process of adjusting the call volume of the first audio signal can be expressed as:
  • O is the adjusted first audio signal
  • I fi is the original first audio signal of the ith frequency band
  • a i is the first call volume adjustment coefficient corresponding to the ith frequency band
  • n is the number of frequency bands.
  • Step 606 Output the volume-adjusted first audio signal to the earpiece.
  • step 404 For the implementation of this step, reference may be made to step 404, and details are not described herein again in this embodiment.
  • the terminal based on the characteristic that the change degree of the signal amplitude is related to the sound propagation distance, obtains the respective signal amplitudes of the original audio signal (the first audio signal) and the reflected audio signal (the second audio signal), so as to obtain the signal amplitude based on the The amplitude ratio of the signal amplitude dynamically determines the call volume adjustment coefficient, and then adjusts the signal amplitude of the original audio signal based on the call volume adjustment coefficient to ensure that the human ear can achieve a good listening effect under different "earpiece-ear" distances. Improve call quality.
  • the terminal determines the first call volume adjustment coefficient corresponding to each frequency band, so as to perform targeted call volume adjustment on the audio signals of each frequency band based on the first call volume adjustment coefficient, and further Improves the listening quality of sounds in each frequency band during a call.
  • the terminal may, based on the first signal amplitude and the second signal amplitude, monitor the human ear listening signal amplitude to the human ear. Prediction is performed so as to adaptively adjust the first audio signal output to the earpiece based on the amplitude of the human ear listening signal.
  • the process may include the following steps:
  • developers use artificial heads and terminals in advance to simulate call scenarios under different "earpiece-ear distances", so as to obtain the corresponding signals of the first audio signal and the second audio signal at different distances amplitude, and use the microphone set at the artificial head human ear to collect sound to obtain the human ear listening signal amplitude at the human ear, and then determine the functional relationship between the first signal amplitude, the second signal amplitude and the human ear listening signal amplitude .
  • the terminal predicts the amplitude of the human ear listening signal based on the amplitude of the first signal, the amplitude of the second signal, and the above-mentioned functional relationship.
  • the terminal determines, based on the first signal amplitude value of 100 and the second signal amplitude value of 50, that the human ear listening signal amplitude at the human ear is 80.
  • the terminal determines the first call volume adjustment coefficient based on the amplitude ratio between the human ear listening signal amplitude and the standard listening signal amplitude, where if the amplitude ratio is less than 1.
  • the determined first call volume adjustment coefficient is greater than 1, and the terminal needs to reduce the signal amplitude of the first audio signal based on the first call volume adjustment coefficient, so as to reduce the human ear listening signal amplitude and avoid the volume of the sound at the human ear.
  • the terminal needs to increase the signal amplitude of the first audio signal based on the first call volume adjustment coefficient, so as to increase the human ear listening signal amplitude , so that the volume of the sound at the human ear is not too low.
  • different users correspond to different standard listening signal amplitudes.
  • the developer uses different call volume adjustment parameters to adjust the volume of the first audio signal, and collects the human ear listening signal amplitude at the human ear, so as to determine the effect of different call volume adjustment parameters on the human ear.
  • the degree of influence of the amplitude of the ear listening signal (the functional relationship can be obtained by fitting).
  • the subsequent terminal dynamically determines the first call volume adjustment coefficient based on the degree of influence of the call volume adjustment parameter on the amplitude of the signal heard by the human ear.
  • the listening range of the human ear is The audio signal is pre-divided into several frequency bands.
  • the terminal acquires the first signal amplitude of the first audio signal and the first signal amplitude of the second audio signal in the same frequency band.
  • the terminal adjusts the first signal amplitude of the first audio signal in each frequency band based on the first call volume adjustment coefficient corresponding to each frequency band, and finally performs the adjustment on the adjusted audio signal in each frequency band. Fusion to obtain the first audio signal after the call volume is adjusted.
  • the artificial head is used to respectively monitor the listening situation at the human ear under the standard terminal holding posture, and the non-standard terminal holding posture (compared to the standard terminal holding posture) There is an angular deviation of 5°) the listening situation at the human ear when the solution provided by the embodiment of the present application is not adopted, and the listening situation at the human ear when the solution provided by the embodiment of the present application is adopted under the non-standard terminal holding posture.
  • the test results are shown in Figure 7. It can be seen from FIG.
  • the receiving gain at the human ear is increased by about 3.5db, and the listening quality is significantly improved.
  • the terminal performs feedback adjustment based on the reflected sound received by the first microphone.
  • the call environment in which it is located will also affect the call quality. Therefore, in order to further improve the call quality, as shown in Figures 1 and 2, the terminal also needs to acquire the ambient sound collected by the second microphone 105 during the call, so as to perform feedback adjustment based on the reflected sound and the ambient sound.
  • Illustrative embodiments are used for description below.
  • FIG. 8 shows a flow chart of a method for adjusting a call volume provided by another exemplary embodiment of the present application.
  • the method is used for the terminal shown in FIG. 1 as an example for description.
  • the method includes: :
  • Step 801 during the call, output a first audio signal to the earpiece, and the earpiece is used to make a sound based on the first audio signal.
  • Step 802 Acquire a second audio signal collected by the first microphone.
  • the second audio signal includes an audio signal of a reflected sound.
  • the reflected sound is formed by the sound emitted by the earpiece being reflected at the target human body, and the target human body is a human body within the range of the earpiece. .
  • steps 801 to 802 For the implementation of the foregoing steps 801 to 802, reference may be made to steps 401 to 402, and details are not described herein again in this embodiment.
  • Step 803 Obtain a third audio signal collected by the second microphone, where the third audio signal is an audio signal of ambient sound.
  • the terminal collects the ambient sound through the second microphone, so as to determine the intensity of the ambient noise in the current environment based on the audio signal of the ambient sound.
  • Step 804 Determine a call volume adjustment mode based on the first audio signal, the second audio signal, and the third audio signal, and adjust the volume of the first audio signal.
  • the terminal On the basis of adjusting the call volume based on the first audio signal and the second audio signal to adapt to the "earpiece-ear distance", in this embodiment, the terminal also adjusts the call volume based on the third audio signal to adapt to the The ambient noise of the current call environment.
  • this step may include the following sub-steps.
  • the terminal obtains the respective signal amplitudes corresponding to the first audio signal, the second audio signal, and the third audio signal.
  • the signal amplitude For the specific acquisition method of the signal amplitude, reference may be made to the foregoing embodiment, which will not be repeated in this embodiment.
  • the adjustment of the call volume includes two parts: 1. Volume adjustment based on the distance between the earpiece and the human ear; 2. Volume adjustment based on ambient sound.
  • the terminal When performing volume adjustment based on the distance between the earpiece and the human ear, the terminal determines a first call volume adjustment coefficient based on the first signal amplitude and the second signal amplitude, and uses the first call volume adjustment coefficient as a basis for subsequent volume adjustment.
  • a first call volume adjustment coefficient based on the first signal amplitude and the second signal amplitude
  • the terminal determines a second call volume adjustment coefficient based on the third signal amplitude value, and uses the second call volume adjustment coefficient as a basis for subsequent volume adjustment.
  • the second call volume adjustment coefficient is a positive number, and the second call volume adjustment coefficient has a positive correlation with the third signal amplitude, that is, the higher the volume of the ambient sound (that is, the larger the third signal amplitude), the higher the second call volume.
  • developers use artificial heads and terminals in advance to simulate call scenarios in different environments (playing ambient sounds with different signal amplitudes), and use different call volume adjustment coefficients to adjust the volume of the first audio signal. adjust.
  • the call volume adjustment coefficient used when the signal amplitude difference of the audio signal is greater than the amplitude difference value is determined as the optimal call volume adjustment coefficient).
  • the functional relationship between the third signal amplitude and the second call volume adjustment coefficient is determined.
  • the terminal determines that the second call volume adjustment coefficient is 0.1, that is, the current first signal amplitude needs to be increased by 10%.
  • the terminal adjusts the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient and the second call volume adjustment coefficient.
  • the earpiece 92 emits sound based on the first audio signal
  • the first microphone 93 collects the reflected sound, and outputs the second audio signal to the chip 91
  • the second microphone 94 collects ambient sound
  • the refrigerator chip 91 outputs a third audio signal.
  • the chip 91 determines the first call volume adjustment coefficient 95 based on the first audio signal and the second audio signal, and determines the second call volume adjustment coefficient 96 based on the third audio signal, so as to use both to adjust the signal amplitude of the first audio signal. value, and output the adjusted first audio signal to form a complete adjustment feedback chain.
  • the audio signal within the listening range of the human ear is pre-divided into several frequency bands. and the signal amplitude of the third audio signal, the terminal obtains the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal in the same frequency band, thereby Determine the first call volume adjustment coefficient and the second call volume adjustment coefficient corresponding to the same frequency band.
  • the terminal adjusts the first signal amplitude of the first audio signal in each frequency band based on the first call volume adjustment coefficient corresponding to each frequency band and the second call volume adjustment system, and finally adjusts the first signal amplitude of each frequency band.
  • the down-adjusted audio signals are fused to obtain a first audio signal whose call volume is adjusted.
  • the process of adjusting the call volume of the first audio signal can be expressed as:
  • is the adjusted first audio signal
  • I fi is the original first audio signal of the ith frequency band
  • a i is the first call volume adjustment coefficient corresponding to the ith frequency band
  • b i is the second corresponding to the ith frequency band
  • Call volume adjustment factor is the number of frequency bands.
  • Step 805 Output the volume-adjusted first audio signal to the earpiece.
  • step 404 For the implementation of this step, reference may be made to step 404, and details are not described herein again in this embodiment.
  • an artificial head was used to measure the listening conditions of the human ear when the solutions provided by the embodiments of the present application were not used in a noisy environment, and the listening conditions of the human ears when the solutions provided by the embodiments of the present application were not used in a noisy environment.
  • the listening condition at the human ear is tested, and the obtained test result is shown in FIG. 10 . It can be seen from FIG.
  • the receiving gain at the human ear is improved in a noisy environment, especially in the high frequency band (the high frequency band is increased by 6db), and the listening quality in the noisy environment is improved. significantly improved.
  • FIG. 11 shows a structural block diagram of an apparatus for adjusting the volume of a call provided by an embodiment of the present application.
  • the apparatus may include:
  • a signal output module 1101 configured to output a first audio signal to an earpiece during a call, where the earpiece is used to make a sound based on the first audio signal;
  • the first signal acquisition module 1102 is configured to acquire a second audio signal collected by the first microphone, where the second audio signal includes an audio signal of a reflected sound, and the reflected sound is the sound emitted by the earpiece reflected at the target human body After forming, the target human body is the human body within the range of the earpiece;
  • a volume adjustment module 1103, configured to determine a call volume adjustment mode based on the first audio signal and the second audio signal, and perform volume adjustment on the first audio signal;
  • the signal output module 1101 is further configured to output the volume-adjusted first audio signal to the earpiece.
  • the volume adjustment module 1103 includes:
  • an amplitude acquisition unit configured to acquire a first signal amplitude of the first audio signal and a second signal amplitude of the second audio signal
  • an adjustment mode determination unit configured to determine the call volume adjustment mode based on the first signal amplitude value and the second signal amplitude value
  • An adjustment unit configured to adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
  • the adjustment mode determination unit is used for:
  • a first call volume adjustment coefficient is determined based on the amplitude ratio, and the first call volume adjustment coefficient is negatively correlated with the amplitude ratio;
  • the first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
  • the amplitude acquisition unit is also used to:
  • the adjustment unit is also used for:
  • the first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
  • the adjustment mode determining unit is also used for:
  • Adjustment unit also used for:
  • the first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
  • the adjustment mode determining unit is also used for:
  • Adjustment unit also used for:
  • the first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
  • the device further includes:
  • the second signal acquisition module is used to acquire the third audio signal collected by the second microphone, and the third audio signal is the audio signal of ambient sound;
  • the volume adjustment module 1103 is used for:
  • the call volume adjustment mode is determined based on the first audio signal, the second audio signal and the third audio signal, and the volume of the first audio signal is adjusted.
  • the volume adjustment module 1103 includes:
  • an amplitude acquisition unit configured to acquire a first signal amplitude of the first audio signal, a second signal amplitude of the second audio signal, and a third signal amplitude of the third audio signal;
  • an adjustment mode determination unit configured to determine the call volume adjustment mode based on the first signal amplitude value, the second signal amplitude value and the third signal amplitude value
  • An adjustment unit configured to adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
  • the adjustment mode determination unit is used for:
  • a second call volume adjustment coefficient is determined based on the third signal amplitude value, and the second call volume adjustment coefficient is positively correlated with the third signal amplitude value;
  • the adjustment unit is used for:
  • the first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient.
  • the amplitude acquisition unit is also used to:
  • the adjustment unit is also used for:
  • the first signal amplitude of the first audio signal in the frequency band is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient corresponding to the same frequency band.
  • the device further includes:
  • a call mode determination module configured to determine a current call mode, where the call mode includes at least one of a hand-held call, a headset call, and an external call;
  • a turning-on module configured to turn on the earpiece and the first microphone in response to the current call mode being a hand-held call.
  • the terminal obtains the second audio signal collected by the first microphone, and based on the first audio signal and the second audio signal
  • the signal adjusts the volume of the first audio signal, which can realize adaptive adjustment of the call volume for different terminal holding postures, and helps to improve the accuracy of the call volume adjustment, thereby improving the voice call quality in different terminal holding postures.
  • FIG. 12 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • the terminal 1200 may be an electronic device with a call function, such as a smart phone.
  • the terminal 1200 in this application may include one or more of the following components: a processor 1210 , a memory 1220 , an earpiece 1230 and at least one microphone 1240 .
  • Processor 1210 may include one or more processing cores.
  • the processor 1210 uses various interfaces and lines to connect various parts of the entire terminal 1200, and executes the terminal by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1220, and calling the data stored in the memory 1220. 1200's various functions and processing data.
  • the processor 1210 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1210 may integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), and a modem, etc.
  • a central processing unit Central Processing Unit, CPU
  • a graphics processor Graphics Processing Unit, GPU
  • a neural network processor Neural-network Processing Unit, NPU
  • modem etc.
  • the CPU mainly handles the operating system, user interface and applications
  • the GPU is used to render and draw the content that needs to be displayed on the touch screen
  • the NPU is used to implement artificial intelligence (AI) functions
  • the modem is used to process Wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1210, but is implemented by a single chip.
  • the memory 1220 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM).
  • the memory 1220 includes a non-transitory computer-readable storage medium.
  • Memory 1220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like for implementing the following method embodiments; the storage data area may store data (such as audio data, phone book) and the like created according to the use of the terminal 1200 .
  • the earpiece 1230 is a speaker used to play the voice of the peer end during a call. Usually, the earpiece 1230 is set on the top of the front panel of the terminal 1200.
  • the microphone 1240 is a component for collecting sound. In this embodiment of the present application, the microphone 1240 includes a first microphone disposed adjacent to the earpiece 1230, and is used to collect the reflected sound formed by the reflection of the human body during the call; the microphone 1240 may also include The second microphone is used to collect ambient sound during a call.
  • the earpiece 1230 and the microphone 1240 are connected to the processor 1210 through an audio circuit, the microphone 1240 passes the audio signal to the processor 1210 for processing through the audio circuit, and the earpiece 1230 receives the audio signal output by the processor 1210 through the audio circuit, thereby Make a sound.
  • the structure of the terminal 1200 shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or less components than those shown in the drawings, or combine some components , or a different component arrangement.
  • the terminal 1200 also includes components such as a display screen, a sensor, and a power supply, which are not described herein again.
  • Embodiments of the present application further provide a computer-readable storage medium, where at least one piece of program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the volume control of the call volume described in the various embodiments above. adjustment method.
  • a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
  • the processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the method for adjusting the call volume provided in various optional implementation manners of the foregoing aspects.
  • references herein to "a plurality” means two or more.
  • "And/or" which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • the character "/" generally indicates that the associated objects are an "or” relationship.
  • the numbering of the steps described in this document only exemplarily shows a possible execution sequence between the steps. In some other embodiments, the above steps may also be executed in different order, such as two different numbers. The steps are performed at the same time, or two steps with different numbers are performed in a reverse order to that shown in the figure, which is not limited in this embodiment of the present application.

Landscapes

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

Abstract

A call volume adjustment method and apparatus, and a terminal and a storage medium, which belong to the technical field of voice calls. The method comprises: during a call, outputting a first audio signal to a receiver, wherein the receiver is used for producing a sound on the basis of the first audio signal (401); acquiring a second audio signal collected by a first microphone, wherein the second audio signal comprises an audio signal of a reflected sound that is formed after the sound produced by the receiver is reflected by a target human body, the target human body being a human body within the orientation range of the receiver (402); on the basis of the first audio signal and the second audio signal, determining a call volume adjustment mode, and performing volume adjustment on the first audio signal (403); and outputting, to the receiver, the first audio signal that has been subjected to the volume adjustment (404). By using the solution provided in the embodiments of the present application, the quality of a voice call can be improved.

Description

通话音量的调节方法、装置、终端及存储介质Method, device, terminal and storage medium for adjusting call volume
本申请要求于2021年03月24日提交的申请号为202110315862.3、发明名称为“通话音量的调节方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202110315862.3 filed on March 24, 2021 and entitled "Method, Device, Terminal and Storage Medium for Adjusting the Volume of a Call", the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请实施例涉及语音通话技术领域,特别涉及一种通话音量的调节方法、装置、终端及存储介质。The embodiments of the present application relate to the technical field of voice calls, and in particular, to a method, device, terminal, and storage medium for adjusting the volume of a call.
背景技术Background technique
语音通话作为终端中最基础的功能之一,在日常使用过程中被广泛应用。As one of the most basic functions in a terminal, voice calling is widely used in daily use.
相关技术中,用户使用终端进行语音通话时,可以根据自身需求,通过点击音量按键来调节通话音量,从而达到满意的通话效果。In the related art, when a user uses a terminal to make a voice call, he can adjust the call volume by clicking the volume button according to his own needs, so as to achieve a satisfactory call effect.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种通话音量的调节方法、装置、终端及存储介质。所述技术方案如下:Embodiments of the present application provide a method, device, terminal, and storage medium for adjusting a call volume. The technical solution is as follows:
一方面,本申请实施例提供了一种通话音量的调节方法,所述方法包括:On the one hand, an embodiment of the present application provides a method for adjusting a call volume, the method comprising:
通话过程中,向听筒输出第一音频信号,所述听筒用于基于所述第一音频信号进行发声;During the call, output a first audio signal to the earpiece, where the earpiece is used to make a sound based on the first audio signal;
获取第一麦克风采集到的第二音频信号,所述第二音频信号包括反射声音的音频信号,所述反射声音是所述听筒发出的声音在目标人体处反射后形成,所述目标人体是听筒朝向范围内的人体;Acquire a second audio signal collected by the first microphone, where the second audio signal includes an audio signal of a reflected sound, and the reflected sound is formed after the sound emitted by the earpiece is reflected at the target human body, and the target human body is the earpiece towards the human body within range;
基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对所述第一音频信号进行音量调节;Determine a call volume adjustment mode based on the first audio signal and the second audio signal, and perform volume adjustment on the first audio signal;
向所述听筒输出音量调节后的所述第一音频信号。The volume-adjusted first audio signal is output to the earpiece.
另一方面,本申请实施例提供了一种通话音量的调节装置,所述装置包括:On the other hand, an embodiment of the present application provides a device for adjusting a call volume, the device comprising:
信号输出模块,用于在通话过程中,向听筒输出第一音频信号,所述听筒用于基于所述第一音频信号进行发声;a signal output module, configured to output a first audio signal to an earpiece during a call, where the earpiece is used to make a sound based on the first audio signal;
第一信号获取模块,用于获取第一麦克风采集到的第二音频信号,所述第二音频信号包括反射声音的音频信号,所述反射声音是所述听筒发出的声音在目标人体处反射后形成,所述目标人体是听筒朝向范围内的人体;The first signal acquisition module is used to acquire the second audio signal collected by the first microphone, the second audio signal includes the audio signal of the reflected sound, and the reflected sound is the sound emitted by the earpiece after being reflected at the target human body Formed, the target human body is the human body within the scope of the earpiece;
音量调节模块,用于基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对所述第一音频信号进行音量调节;a volume adjustment module, configured to determine a call volume adjustment mode based on the first audio signal and the second audio signal, and perform volume adjustment on the first audio signal;
所述信号输出模块,还用于向所述听筒输出音量调节后的所述第一音频信号。The signal output module is further configured to output the volume-adjusted first audio signal to the earpiece.
另一方面,本申请实施例提供了一种终端,所述终端包括处理器、存储器、听筒和至少一个麦克风,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上述方面所述的通话音量的调节方法。On the other hand, an embodiment of the present application provides a terminal, the terminal includes a processor, a memory, an earpiece, and at least one microphone, the memory stores at least one instruction, and the at least one instruction is loaded by the processor And execute the method for adjusting the call volume according to the above aspects.
另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上述方面所述的通话音量的调节方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, where at least one piece of program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the above aspects how to adjust the call volume.
另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面提供的通话音量的调节方法。On the other hand, an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the method for adjusting the call volume provided by the above aspects.
附图说明Description of drawings
图1是本申请一个示例性实施例提供的声学采集方案的示意图;FIG. 1 is a schematic diagram of an acoustic acquisition solution provided by an exemplary embodiment of the present application;
图2是本申请一个示例性实施例提供的第一麦克风接收反射声音过程的实施示意图;FIG. 2 is a schematic implementation diagram of a process of receiving reflected sound with a first microphone according to an exemplary embodiment of the present application;
图3是不同终端握持姿态下终端与人体之间所成夹角的示意图;Fig. 3 is the schematic diagram of the angle formed between the terminal and the human body under different terminal holding postures;
图4示出了本申请一个示例性实施例提供的通话音量的调节方法的流程图;FIG. 4 shows a flowchart of a method for adjusting a call volume provided by an exemplary embodiment of the present application;
图5是本申请一个示例性实施例示出的通话音量调节过程的实施示意图;5 is a schematic diagram of the implementation of a call volume adjustment process shown in an exemplary embodiment of the present application;
图6示出了本申请一个示例性实施例提供的通话音量的调节方法的流程图;FIG. 6 shows a flowchart of a method for adjusting a call volume provided by an exemplary embodiment of the present application;
图7是模拟仿真实验的实验数据对比图;Fig. 7 is the experimental data comparison diagram of the simulation experiment;
图8示出了本申请另一个示例性实施例提供的通话音量的调节方法的流程图;FIG. 8 shows a flowchart of a method for adjusting a call volume provided by another exemplary embodiment of the present application;
图9是本申请另一个示例性实施例示出的通话音量调节过程的实施示意图;9 is a schematic diagram of the implementation of a call volume adjustment process shown in another exemplary embodiment of the present application;
图10是模拟仿真实验的实验数据对比图;Fig. 10 is the experimental data comparison diagram of the simulation experiment;
图11示出了本申请一个实施例提供的通话音量的调节装置的结构框图;11 shows a structural block diagram of an apparatus for adjusting a call volume provided by an embodiment of the present application;
图12示出了本申请一个示例性实施例提供的终端的结构方框图。FIG. 12 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
为了方便理解,下面首先对本申请实施例中涉及的名词进行说明。For the convenience of understanding, the terms involved in the embodiments of the present application are first described below.
听筒:手持终端进行语音通话过程中,用于播放对端声音的扬声器。通常情况下,听筒设置在终端顶部(屏幕一侧),用户手持终端进行通话时,即将听筒靠近人耳,以达到良好的收听效果Handset: The speaker used to play the peer's voice during a voice call with the handheld terminal. Usually, the earpiece is set at the top of the terminal (on the screen side). When the user holds the terminal to make a call, the earpiece should be close to the human ear to achieve a good listening effect.
麦克风:用于进行声音采集的组件。通常情况下,终端中设置有多个麦克风,且不同麦克风在通话过程中实现不同功能。比如,终端底部设置的麦克风用于在通话过程中采集用户声音,而设置在终端顶部的麦克风则用于采集环境声,从而利用环境声实现降噪功能。Microphone: A component used for sound collection. Usually, a terminal is provided with multiple microphones, and different microphones implement different functions during a call. For example, the microphone set at the bottom of the terminal is used to collect the user's voice during the call, and the microphone set at the top of the terminal is used to collect the ambient sound, so as to realize the noise reduction function by using the ambient sound.
频段:一种对频率范围的划分,本申请实施例中的频段是对人耳所能收听声音的频率范围进行划分得到。比如,可以将200Hz至5000Hz这一频率范围内的信号划分为三个频段,分别为200至500Hz,500至2000Hz,以及2000至5000Hz。本申请实施例并不对频段的具体划分方式进行限定。Frequency band: a division of the frequency range, the frequency band in the embodiment of the present application is obtained by dividing the frequency range of the sound that can be heard by the human ear. For example, a signal in the frequency range of 200Hz to 5000Hz can be divided into three frequency bands, namely 200 to 500Hz, 500 to 2000Hz, and 2000 to 5000Hz. The embodiments of the present application do not limit the specific division manner of frequency bands.
本申请实施例提供的通话音量的调节方法中,终端通过听筒发声后,能够基于听筒声音在人体(人耳)处反射形成的反射声音,对输入听筒的音频信号进行自适应音量调节,以提高不同终端握持姿态下(听筒与人耳之间的距离存在差异)人耳的收听效果。In the method for adjusting the call volume provided by the embodiment of the present application, after the terminal emits sound through the earpiece, it can adjust the volume of the audio signal input to the earpiece adaptively based on the reflected sound formed by the sound of the earpiece reflected at the human body (human ear), so as to increase the volume of the audio signal input to the earpiece. The listening effect of the human ear under different holding postures of the terminal (the distance between the earpiece and the human ear is different).
为了提高反射声音的采集质量,本申请实施例提供了一种声学采集方案。在该方案中,听筒一侧设置有麦克风,通话过程中,终端即通过该麦克风采集反射声音,进而基于听筒发出的原始声音以及该反射声音确定音量调节方式。In order to improve the collection quality of reflected sound, the embodiment of the present application provides an acoustic collection solution. In this solution, a microphone is provided on one side of the earpiece. During a call, the terminal collects the reflected sound through the microphone, and then determines the volume adjustment method based on the original sound emitted by the earpiece and the reflected sound.
在一种可能的设计中,如图1所示,终端100的前盖板101上设置有第一开孔1011,且终端100内部的PCB102上设置有第一麦克风103。其中,第一麦克风103的外部套有密封胶套104,且密封胶套104的开口紧贴第一开孔1011,使第一麦克风103接收通过第一开孔1011传入的声音,并隔绝其他音源通道对第一麦克风103的接收干扰。In a possible design, as shown in FIG. 1 , the front cover 101 of the terminal 100 is provided with a first opening 1011 , and the PCB 102 inside the terminal 100 is provided with a first microphone 103 . The first microphone 103 is covered with a sealant sleeve 104, and the opening of the sealant sleeve 104 is close to the first opening 1011, so that the first microphone 103 can receive the incoming sound through the first opening 1011 and isolate other The sound source channel interferes with the reception of the first microphone 103 .
如图2所示,终端100内部还设置有听筒108,通话过程中,听筒108发声后,声音通过第一开孔1011传出,并在人体200处发生反射,反射后形成的反射声音通过第一开孔1011被第一麦克风103接收。As shown in FIG. 2, the terminal 100 is also provided with an earpiece 108. During the call, after the earpiece 108 emits a sound, the sound is transmitted through the first opening 1011, and is reflected at the human body 200, and the reflected sound formed after the reflection passes through the first hole 1011. An opening 1011 is received by the first microphone 103 .
终端通过听筒发声至通过第一麦克风接收反射声音之间存在一定的时间差,基于该时间差、声音的传播速度以及反射时的反射角,可以确定听筒与人耳之间距离,该距离的计算公式如下:There is a certain time difference between the terminal emits sound through the earpiece and receives the reflected sound through the first microphone. Based on the time difference, the propagation speed of the sound, and the reflection angle during reflection, the distance between the earpiece and the human ear can be determined. The calculation formula of the distance is as follows :
Figure PCTCN2022079191-appb-000001
Figure PCTCN2022079191-appb-000001
其中,S为听筒与人耳之间的距离,ΔT为时间差,V为声音的传播速度,δ为反射角。Among them, S is the distance between the earpiece and the human ear, ΔT is the time difference, V is the speed of sound propagation, and δ is the reflection angle.
如图3所示,由于不同用户手持终端100进行通话的习惯不同,即终端100与人体200之间形成夹角不同,因此声音在人体处反射时的反射角不同,而反射角不同将会影响声音的传播距离(由听筒至人体,再由人体反射回麦克风的距离)。As shown in FIG. 3 , due to the different habits of different users holding the terminal 100 to make calls, that is, the angle formed between the terminal 100 and the human body 200 is different, so the reflection angles of the sound when reflected on the human body are different, and the different reflection angles will affect the The distance the sound travels (the distance from the earpiece to the human body, and then reflected back to the microphone by the human body).
并且,由于声音在传播过程中会产生衰弱,而衰弱的程度与声音的传播距离相关,因此终端可以基于第一麦克风接收到的反射声音的大小,确定出听筒与人体之间的距离,进而对听筒发出的声音进行音量调节,以此提高通话过程中的收听效果。In addition, since the sound will be weakened during the propagation process, and the degree of the weakening is related to the propagation distance of the sound, the terminal can determine the distance between the earpiece and the human body based on the magnitude of the reflected sound received by the first microphone, and then determine the distance between the earpiece and the human body. The volume of the sound from the earpiece is adjusted to improve the listening effect during the call.
当然,在其他可能的设计中,还可以将与听筒设置位置相近的其他麦克风复用为第一麦克风,比如利用设置在终端顶部的降噪麦克风接收反射声音,从而无需额外设置第一麦克风,降低终端的制造成本,本实施例对此不作限定。Of course, in other possible designs, other microphones located close to the earpiece can also be multiplexed as the first microphone. For example, the noise-cancelling microphone arranged on the top of the terminal is used to receive the reflected sound, so that there is no need to additionally set the first microphone and reduce the The manufacturing cost of the terminal is not limited in this embodiment.
此外,在另一种可能的设计中,PCB102上还设置第二麦克风105,且终端100的背盖106上设置有第二开孔1061,第二麦克风105的外部套有密封胶套107,且密封胶套107的开口紧贴第二开孔1061,使第二麦克风105接收通过第二开孔1061传入的声音,并隔绝其他音源通道对第二麦克风105的接收干扰。In addition, in another possible design, the second microphone 105 is further provided on the PCB 102, the second opening 1061 is provided on the back cover 106 of the terminal 100, the second microphone 105 is covered with a sealant cover 107, and The opening of the sealing rubber sleeve 107 is close to the second opening 1061 , so that the second microphone 105 can receive the incoming sound through the second opening 1061 and isolate the reception interference of the second microphone 105 by other sound source channels.
如图2所示,通话过程中,第二麦克风105采集通过第二开孔1061的环境声,以便终端基于环境声对听筒108发出的声音进行音量调节,以此适应不同的通话环境。As shown in FIG. 2 , during the call, the second microphone 105 collects the ambient sound passing through the second opening 1061 , so that the terminal can adjust the volume of the sound emitted by the earpiece 108 based on the ambient sound to adapt to different call environments.
为了方便表述,本申请各个实施例均以通话音量的调节方法用于图1或图2所示的终端为例进行说明,但并不对此构成限定。For the convenience of description, each embodiment of the present application is described by taking the method for adjusting the call volume applied to the terminal shown in FIG. 1 or FIG. 2 as an example, but this does not constitute a limitation.
请参考图4,其示出了本申请一个示例性实施例提供的通话音量的调节方法的流程图,本实施例以该方法用于图1所示的终端为例进行说明,该方法包括:Please refer to FIG. 4 , which shows a flowchart of a method for adjusting a call volume provided by an exemplary embodiment of the present application. This embodiment is described by taking the method for the terminal shown in FIG. 1 as an example, and the method includes:
步骤401,通话过程中,向听筒输出第一音频信号,听筒用于基于第一音频信号进行发声。 Step 401 , during the call, output a first audio signal to the earpiece, and the earpiece is used to make a sound based on the first audio signal.
在一种可能的实施方式中,终端通过数字信号处理器(Digital Signal Processor,DSP)或者应用处理器(Application Processor,AP)(会其他具有音频处理能力的芯片)向听筒输出第一音频信号,由听筒将第一音频信号由电信号转化为声信号,从而进行发声。当然,处理器与听筒之间通过必要的音频电路相连,本实施例对此并不进行限定。In a possible implementation manner, the terminal outputs the first audio signal to the earpiece through a digital signal processor (Digital Signal Processor, DSP) or an application processor (Application Processor, AP) (other chips with audio processing capability), The first audio signal is converted from an electrical signal into an acoustic signal by the earpiece, so as to produce sound. Of course, the processor and the earpiece are connected through a necessary audio circuit, which is not limited in this embodiment.
步骤402,获取第一麦克风采集到的第二音频信号,第二音频信号包括反射声音的音频信号,反射声音是听筒发出的声音在目标人体处反射后形成,目标人体是听筒朝向范围内的人体。Step 402: Acquire a second audio signal collected by the first microphone. The second audio signal includes an audio signal of a reflected sound. The reflected sound is formed by the sound emitted by the earpiece reflected at the target human body, and the target human body is a human body within the range of the earpiece facing. .
由于不同握持状态下,听筒与人耳之间的距离不同,而该距离将会对人耳收听造成影响,因此基于听筒与人耳之间的距离自适应调整通话音量,本实施例中,终端通过听筒发声的同时,通过第一麦克风采集包含反射声音的第二音频信号,该反射声音即听筒发出的声音在目标人体处反射所形成的声音,即听筒发出的声音在听筒朝向范围内的人体处反射后被第一麦克风采集到。Since the distance between the earpiece and the human ear is different in different holding states, and this distance will affect the listening of the human ear, the call volume is adaptively adjusted based on the distance between the earpiece and the human ear. In this embodiment, While the terminal emits sound through the earpiece, the second audio signal containing the reflected sound is collected by the first microphone. The reflected sound is the sound formed by the sound emitted by the earpiece reflected at the target human body, that is, the sound emitted by the earpiece is within the direction of the earpiece. After being reflected at the human body, it is collected by the first microphone.
可选的,该听筒朝向范围是听筒正前方的扇形范围,该扇形范围可以为10°扇形范围、30°扇形范围或90°扇形范围,本申请实施例对此不作限定。通常情况下,该目标人体为人耳或靠近人耳的人脸。Optionally, the earpiece facing range is a fan-shaped range directly in front of the earpiece, and the fan-shaped range may be a 10° fan-shaped range, a 30° fan-shaped range, or a 90° fan-shaped range, which is not limited in this embodiment of the present application. Usually, the target body is a human ear or a human face close to the human ear.
在一种可能的实施方式中,终端通过DSP或AP接收第一麦克风采集到的第二音频信号,其中,该第二音频信号由音频电路对麦克风信号进行模数转换得到。In a possible implementation manner, the terminal receives the second audio signal collected by the first microphone through the DSP or the AP, where the second audio signal is obtained by performing analog-to-digital conversion on the microphone signal by an audio circuit.
步骤403,基于第一音频信号和第二音频信号确定通话音量调节方式,并对第一音频信号进行音量调节。Step 403: Determine a call volume adjustment mode based on the first audio signal and the second audio signal, and adjust the volume of the first audio signal.
向听筒输出相同音频信号的情况下,若听筒与人耳之间的距离不同,人耳处所接收到的声音不同(主要表现为声音的音量不同),且通过第一麦克风采集到的反射声音也不同。通常情况下,听筒与人耳之间的距离越远,人耳处所接收到声音的音量越低,第一麦克风采集到 的反射声音的音量也越低。In the case of outputting the same audio signal to the earpiece, if the distance between the earpiece and the human ear is different, the sound received by the human ear is different (mainly manifested as different volume of the sound), and the reflected sound collected by the first microphone is also different. different. Generally, the farther the distance between the earpiece and the human ear, the lower the volume of the sound received by the human ear, and the lower the volume of the reflected sound collected by the first microphone.
因此基于上述特性,终端可以基于第一音频信号和第二音频信号,衡量听筒与人耳之间的距离,从而确定第一音频信号的通话音量调节方式。Therefore, based on the above characteristics, the terminal can measure the distance between the earpiece and the human ear based on the first audio signal and the second audio signal, so as to determine the call volume adjustment method of the first audio signal.
在听筒与人耳之间距离较远时,终端通过调节第一音频信号以提高听筒发出声音的音量;在听筒与人耳之间距离较近时,终端通过调节第一音频信号以降低听筒发出声音的音量。关于第一音频信号的具体方式,下述实施例将进行详述。When the distance between the earpiece and the human ear is relatively far, the terminal adjusts the first audio signal to increase the volume of the sound emitted by the earpiece; when the distance between the earpiece and the human ear is relatively short, the terminal adjusts the first audio signal to reduce the volume of the sound emitted by the earpiece the volume of the sound. The specific manner of the first audio signal will be described in detail in the following embodiments.
在一种可能的实施方式中,终端的DSP或AP基于第一音频信号和第二音频信号确定通话音量调节方式,并对第一音频信号进行音量调节。In a possible implementation manner, the DSP or AP of the terminal determines a call volume adjustment mode based on the first audio signal and the second audio signal, and adjusts the volume of the first audio signal.
步骤404,向听筒输出音量调节后的第一音频信号。Step 404: Output the volume-adjusted first audio signal to the earpiece.
在一种可能的实施方式中,终端通过DSP或AP向听筒输出音量调节后的第一音频信号,使听筒基于调节后的第一音频信号进行发声,实现对人耳处通话音量的自适应调节。其中,通话音量的自适应调节表现为:当听筒与人耳距离较远时,终端自适应调节通话音量后,人耳处接收到声音的音量提高,当听筒与人耳距离较近时,终端自适应调节通话音量后,人耳处接收到声音的音量降低。In a possible implementation manner, the terminal outputs the volume-adjusted first audio signal to the earpiece through the DSP or AP, so that the earpiece emits sound based on the adjusted first audio signal, so as to realize the adaptive adjustment of the call volume at the human ear . Among them, the adaptive adjustment of the call volume is as follows: when the distance between the earpiece and the human ear is relatively far, after the terminal adaptively adjusts the call volume, the volume of the sound received by the human ear increases; when the distance between the earpiece and the human ear is short, the terminal After adaptively adjusting the call volume, the volume of the sound received by the human ear is reduced.
如图5所示,芯片51向听筒52输出第一音频信号后,听筒52基于第一音频信号进行发声,第一麦克风53对反射声音进行采集,并向芯片51输出第二音频信号,由芯片51基于第二音频信号对第一音频信号进行调节,形成一条完整的调节反馈链。As shown in FIG. 5 , after the chip 51 outputs the first audio signal to the earpiece 52 , the earpiece 52 emits sound based on the first audio signal, the first microphone 53 collects the reflected sound, and outputs the second audio signal to the chip 51 . 51 adjusts the first audio signal based on the second audio signal to form a complete adjustment feedback chain.
通话过程中,终端通过循环执行上述步骤,能够实时监测人耳处的收音变化情况(因终端握持状态发生变化而变化),并基于收音变化情况进行自适应调节,保证用户以不同握持姿态握持终端进行通话时均能够获得良好的通话质量。During the call, the terminal can perform the above steps cyclically, so as to monitor the change of the sound at the human ear (changed due to the change of the terminal's holding state) in real time, and make adaptive adjustment based on the change of the sound to ensure that the user can hold different holding postures. Good call quality can be obtained when holding the terminal to make a call.
综上所述,本实施例中,通话过程中,听筒基于输入的第一音频信号发声后,声音在人体处反射后形成反射声音并被第一麦克风采集,由于不同终端握持姿势下听筒与人体之间的距离不同,而听筒与人体之间的距离会对反射声音的强弱造成影响,因此终端通过获取第一麦克风采集到的第二音频信号,并基于第一音频信号和第二音频信号对第一音频信号进行音量调节,能够针对不同终端握持姿势的实现通话音量自适应调节,且有助于提高通话音量调节的准确性,进而提高不同终端握持姿势下的语音通话质量。To sum up, in this embodiment, during a call, after the earpiece emits sound based on the input first audio signal, the sound is reflected at the human body to form a reflected sound and collected by the first microphone. The distance between the human body is different, and the distance between the earpiece and the human body will affect the strength of the reflected sound, so the terminal obtains the second audio signal collected by the first microphone, and based on the first audio signal and the second audio signal The signal adjusts the volume of the first audio signal, which can realize adaptive adjustment of the call volume for different terminal holding postures, and helps to improve the accuracy of the call volume adjustment, thereby improving the voice call quality in different terminal holding postures.
需要说明的是,上述通话音量的调节方法,适用于手持通话场景,即用户将终端听筒靠近人耳进行通话的场景,因此在一种可能的实施方式中,在进行音量调节前,终端首先确定当前通话方式,并在当前通话方式为手持通话时,开启听筒和第一麦克风,以便后续进行通话音量的自适应调节。在当前通话方式为耳机通话(可以通过检测是否外接耳机来确定)或外放通话(可以通过检测是否开启外放功能来确定)时,则不开启听筒和第一麦克风。It should be noted that the above-mentioned method for adjusting the volume of a call is applicable to a hand-held call scenario, that is, a scenario in which the user places the handset of the terminal close to the human ear to make a call. Therefore, in a possible implementation manner, before adjusting the volume, the terminal first determines In the current call mode, and when the current call mode is a hand-held call, the receiver and the first microphone are turned on, so that the call volume can be adaptively adjusted subsequently. When the current call mode is a headset call (which can be determined by detecting whether an external headset is connected) or an external call (which can be determined by detecting whether the external playback function is enabled), the earpiece and the first microphone are not turned on.
在一种可能的实施方式中,基于第一音频信号和第二音频信号确定通话音量调节方式,并对第一音频信号进行音量调节,包括:In a possible implementation manner, determining a call volume adjustment method based on the first audio signal and the second audio signal, and performing volume adjustment on the first audio signal, including:
获取第一音频信号的第一信号幅值以及第二音频信号的第二信号幅值;obtaining the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal;
基于第一信号幅值和第二信号幅值确定通话音量调节方式;determining a call volume adjustment mode based on the first signal amplitude and the second signal amplitude;
基于通话音量调节方式调节第一音频信号的第一信号幅值。Adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
在一种可能的实施方式中,基于第一信号幅值和第二信号幅值确定通话音量调节方式,包括:In a possible implementation manner, determining a call volume adjustment method based on the first signal amplitude and the second signal amplitude includes:
确定第二信号幅值与第一信号幅值的幅值比值;determining the amplitude ratio of the second signal amplitude to the first signal amplitude;
基于幅值比值确定第一通话音量调节系数,第一通话音量调节系数与幅值比值呈负相关关系;The first call volume adjustment coefficient is determined based on the amplitude ratio, and the first call volume adjustment coefficient is negatively correlated with the amplitude ratio;
基于通话音量调节方式调节第一音频信号的第一信号幅值,包括:Adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method, including:
基于第一通话音量调节系数调节第一音频信号的第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
在一种可能的实施方式中,获取第一音频信号的第一信号幅值以及第二音频信号的第二信号幅值,包括:In a possible implementation manner, acquiring the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal includes:
获取同一频段下第一音频信号的第一信号幅值以及第二音频信号的第二信号幅值;obtaining the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal in the same frequency band;
基于第一通话音量调节系数调节第一音频信号的第一信号幅值,包括:Adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient includes:
基于各个频段对应的第一通话音量调节系数,调节各个频段下第一音频信号的第一信号幅值。The first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
在一种可能的实施方式中,基于第一信号幅值和第二信号幅值确定通话音量调节方式,包括:In a possible implementation manner, determining a call volume adjustment method based on the first signal amplitude and the second signal amplitude includes:
基于第一信号幅值和第二信号幅值,确定人耳收听信号幅值;determining the human ear listening signal amplitude based on the first signal amplitude and the second signal amplitude;
基于人耳收听信号幅值,确定第一通话音量调节系数,第一通话音量调节系数与人耳收听信号幅值呈负相关关系;Determine the first call volume adjustment coefficient based on the amplitude of the human ear listening signal, and the first call volume adjustment coefficient has a negative correlation with the human ear listening signal amplitude;
基于通话音量调节方式调节第一音频信号的第一信号幅值,包括:Adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method, including:
基于第一通话音量调节系数调节第一音频信号的第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
在一种可能的实施方式中,基于第一信号幅值和第二信号幅值,确定人耳收听信号幅值,包括:In a possible implementation manner, based on the first signal amplitude and the second signal amplitude, determining the human ear listening signal amplitude includes:
基于各个频段下的第一信号幅值和第二信号幅值,确定各个频段下的人耳收听信号幅值;Based on the first signal amplitude and the second signal amplitude in each frequency band, determine the human ear listening signal amplitude in each frequency band;
基于人耳收听信号幅值,确定第一通话音量调节系数,包括:Determine the first call volume adjustment coefficient based on the amplitude of the human ear listening signal, including:
基于各个频段下的人耳收听信号幅值,确定各个频段对应的第一通话音量调节系数;Determine the first call volume adjustment coefficient corresponding to each frequency band based on the human ear listening signal amplitude in each frequency band;
基于第一通话音量调节系数调节第一音频信号的第一信号幅值,包括:Adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient includes:
基于各个频段对应的第一通话音量调节系数,调节各个频段下第一音频信号的第一信号幅值。The first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
在一种可能的实施方式中,该方法还包括:In a possible implementation, the method further includes:
获取第二麦克风采集到的第三音频信号,第三音频信号为环境声的音频信号;acquiring a third audio signal collected by the second microphone, where the third audio signal is an audio signal of ambient sound;
基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对第一音频信号进行音量调节,包括:Determine the call volume adjustment method based on the first audio signal and the second audio signal, and adjust the volume of the first audio signal, including:
基于第一音频信号、第二音频信号以及第三音频信号确定通话音量调节方式,并对第一音频信号进行音量调节。A call volume adjustment mode is determined based on the first audio signal, the second audio signal and the third audio signal, and the volume of the first audio signal is adjusted.
在一种可能的实施方式中,基于第一音频信号、第二音频信号以及第三音频信号确定通话音量调节方式,并对第一音频信号进行音量调节,包括:In a possible implementation manner, determining a call volume adjustment method based on the first audio signal, the second audio signal, and the third audio signal, and performing volume adjustment on the first audio signal, including:
获取第一音频信号的第一信号幅值、第二音频信号的第二信号幅值以及第三音频信号的第三信号幅值;acquiring the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal;
基于第一信号幅值、第二信号幅值以及第三信号幅值确定通话音量调节方式;determining a call volume adjustment mode based on the first signal amplitude, the second signal amplitude and the third signal amplitude;
基于通话音量调节方式调节第一音频信号的第一信号幅值。Adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
在一种可能的实施方式中,基于第一信号幅值、第二信号幅值以及第三信号幅值确定通话音量调节方式,包括:In a possible implementation manner, determining a call volume adjustment method based on the first signal amplitude, the second signal amplitude, and the third signal amplitude, including:
基于第一信号幅值和第二信号幅值确定第一通话音量调节系数;determining a first call volume adjustment coefficient based on the first signal amplitude and the second signal amplitude;
基于第三信号幅值确定第二通话音量调节系数,第二通话音量调节系数与第三信号幅值呈正相关关系;The second call volume adjustment coefficient is determined based on the third signal amplitude value, and the second call volume adjustment coefficient is positively correlated with the third signal amplitude value;
基于通话音量调节方式调节第一音频信号的第一信号幅值,包括:Adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method, including:
基于第一通话音量调节系数和第二通话音量调节系数调节第一音频信号的第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient.
在一种可能的实施方式中,获取第一音频信号的第一信号幅值、第二音频信号的第二信号幅值以及第三音频信号的第三信号幅值,包括:In a possible implementation manner, acquiring the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal includes:
获取同一频段下第一音频信号的第一信号幅值、第二音频信号的第二信号幅值以及第三音频信号的第三信号幅值;acquiring the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal and the third signal amplitude of the third audio signal in the same frequency band;
基于第一通话音量调节系数和第二通话音量调节系数调节第一音频信号的第一信号幅值,包括:Adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient and the second call volume adjustment coefficient includes:
基于同一频段对应的第一通话音量调节系数和第二通话音量调节系数,调节频段下第一 音频信号的第一信号幅值。Based on the first call volume adjustment coefficient and the second call volume adjustment coefficient corresponding to the same frequency band, the first signal amplitude of the first audio signal in the frequency band is adjusted.
声音传播过程中,音量(或称为响度)会发生衰减,表现为接收到的音频信号相较于原始音频信号的信号幅值降低,且传播距离越远,信号幅值的降低程度越大。因此终端可以根据第一音频信号和第二音频信号之间信号幅值的变化情况,间接衡量听筒与人耳之间的距离。下面采用示例性的实施例进行说明。In the process of sound propagation, the volume (or loudness) will be attenuated, which means that the signal amplitude of the received audio signal is lower than that of the original audio signal, and the longer the propagation distance, the greater the reduction of the signal amplitude. Therefore, the terminal can indirectly measure the distance between the earpiece and the human ear according to the change of the signal amplitude between the first audio signal and the second audio signal. Exemplary embodiments are used for description below.
请参考图6,其示出了本申请另一个示例性实施例提供的通话音量的调节方法的流程图,本实施例以该方法用于图1所示的终端为例进行说明,该方法包括:Please refer to FIG. 6 , which shows a flow chart of a method for adjusting a call volume provided by another exemplary embodiment of the present application. In this embodiment, the method is used for the terminal shown in FIG. 1 as an example for description. The method includes: :
步骤601,通话过程中,向听筒输出第一音频信号,听筒用于基于第一音频信号进行发声。 Step 601 , during the call, output a first audio signal to the earpiece, and the earpiece is used to make a sound based on the first audio signal.
步骤602,获取第一麦克风采集到的第二音频信号,第二音频信号包括反射声音的音频信号,反射声音是听筒发出的声音在目标人体处反射后形成,目标人体是听筒朝向范围内的人体。Step 602: Acquire a second audio signal collected by the first microphone, the second audio signal includes an audio signal of reflected sound, the reflected sound is formed by the sound emitted by the earpiece reflected at the target human body, and the target human body is the human body within the range of the earpiece facing. .
步骤601至602的实施方式可以参考步骤401至402,本实施例在此不再赘述。For the implementation of steps 601 to 602, reference may be made to steps 401 to 402, and details are not described herein again in this embodiment.
步骤603,获取第一音频信号的第一信号幅值以及第二音频信号的第二信号幅值。Step 603: Obtain the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal.
本申请实施例中,终端分别获取第一音频信号和第二音频信号的信号幅值,以便后续基于信号幅值的变化情况,间接确定听筒与人耳之间的距离。其中,终端可以通过信号采样的方式,获取若干个采样点处的采用点信号幅值,并若干个采样点信号幅值的平均值确定为音频信号的信号幅值。本实施例对确定信号幅值的具体方式进行限定。In this embodiment of the present application, the terminal obtains the signal amplitudes of the first audio signal and the second audio signal respectively, so as to indirectly determine the distance between the earpiece and the human ear based on changes in the signal amplitudes. Wherein, the terminal can obtain the signal amplitude of the adopted point at several sampling points by means of signal sampling, and determine the average value of the signal amplitude of the several sampling points as the signal amplitude of the audio signal. This embodiment limits the specific manner of determining the signal amplitude.
步骤604,基于第一信号幅值和第二信号幅值确定通话音量调节方式。Step 604: Determine a call volume adjustment mode based on the first signal amplitude and the second signal amplitude.
通常情况下,声音的传播距离越近,原始音频信号与接收音频信号的信号幅值越接近,声音衰减程度越轻;反之,声音的传播距离越远,原始音频信号与接收音频信号的信号幅值相差越大,声音衰减程度越重。因此本实施例中,终端可以基于第一信号幅值和第二信号幅值的幅值变化情况,确定听筒发出声音的传播距离,进而确定通话音量调节方式。Normally, the closer the sound propagation distance is, the closer the signal amplitude of the original audio signal and the received audio signal is, and the lower the sound attenuation is; on the contrary, the farther the sound propagation distance is, the signal amplitude of the original audio signal and the received audio signal is smaller. The greater the difference in value, the more severe the sound attenuation. Therefore, in this embodiment, the terminal can determine the propagation distance of the sound emitted by the earpiece based on the amplitude changes of the first signal amplitude and the second signal amplitude, and then determine the call volume adjustment method.
在一种可能的实施方式中,本步骤可以包括如下子步骤:In a possible implementation, this step may include the following sub-steps:
一、确定第二信号幅值与第一信号幅值的幅值比值。1. Determine the amplitude ratio of the second signal amplitude to the first signal amplitude.
本实施例中,终端通过计算第二信号幅值与第一信号幅值之间的幅值比值,确定声音的衰减程度,其中,幅值比值与衰减程度呈负相关关系。In this embodiment, the terminal determines the sound attenuation degree by calculating the amplitude ratio between the second signal amplitude and the first signal amplitude, wherein the amplitude ratio and the attenuation degree are negatively correlated.
在一个示意性的例子中,当第一信号幅值为100,第二信号幅值为50时,终端确定幅值比值为50/100=0.5。In an illustrative example, when the amplitude of the first signal is 100 and the amplitude of the second signal is 50, the terminal determines that the amplitude ratio is 50/100=0.5.
二、基于幅值比值确定第一通话音量调节系数,第一通话音量调节系数与幅值比值呈负相关关系。2. Determine the first call volume adjustment coefficient based on the amplitude ratio, and the first call volume adjustment coefficient has a negative correlation with the amplitude ratio.
在一种可能的实施方式中,开发人员预先利用人工头和终端,模拟不同“听筒-人耳距离”下的通话场景,从而得到不同距离下第一音频信号与第二音频信号各自对应的信号幅度。In a possible implementation, developers use artificial heads and terminals in advance to simulate call scenarios under different "earpiece-ear distances", so as to obtain the corresponding signals of the first audio signal and the second audio signal at different distances magnitude.
进一步的,针对同一距离,开发人员采用不同程度的通话音量调节方式,对第一音频信号进行音量调节,并利用人工头人耳处设置的麦克风进行声音采集,得到不同通话音量调节下人耳处音频信号的信号幅度,从而确定当前距离下的最优通话音量调节方式(该调节方式下,人耳处音频信号的信号幅度符合通话需求),进而得到不同幅值比值下的最优通话音量调节方式。Further, for the same distance, the developers use different degrees of call volume adjustment methods to adjust the volume of the first audio signal, and use the microphone set at the artificial head to collect sound, so as to obtain different call volume adjustments at the human ear. The signal amplitude of the audio signal is used to determine the optimal call volume adjustment method at the current distance (in this adjustment method, the signal amplitude of the audio signal at the human ear meets the call requirements), and then the optimal call volume adjustment under different amplitude ratios is obtained. Way.
可选的,不同程度的通话音量调节方式对应不同的第一通话音量调节系数,该第一通话音量调节系数用于指示信号幅值的缩放系数。相应的,终端基于第一通话音量调节系数对第一音频信号的信号幅值进行缩放,该第一通话音量调节系数为正数。Optionally, different levels of call volume adjustment methods correspond to different first call volume adjustment coefficients, and the first call volume adjustment coefficient is used to indicate a scaling factor of the signal amplitude. Correspondingly, the terminal scales the signal amplitude of the first audio signal based on the first call volume adjustment coefficient, where the first call volume adjustment coefficient is a positive number.
在一些实施例中,终端中设置有幅值比值与第一通话音量调节系数之间的对应关系,确定出第一音频信号和第二音频信号的幅度比值后,终端即根据幅度比值,从该对应关系中查找对应的第一通话音量调节系数。In some embodiments, a corresponding relationship between the amplitude ratio and the first call volume adjustment coefficient is set in the terminal, and after determining the amplitude ratio of the first audio signal and the second audio signal, the terminal determines the amplitude ratio from the Find the corresponding first call volume adjustment coefficient in the corresponding relationship.
在一个示意性的例子中,幅值比值与第一通话音量调节系数之间的对应关系如表一所示。In an illustrative example, the corresponding relationship between the amplitude ratio and the first call volume adjustment coefficient is shown in Table 1.
表一Table I
Figure PCTCN2022079191-appb-000002
Figure PCTCN2022079191-appb-000002
结合表一所示的数据,当第一音频信号和第二音频信号的幅值比值为0.5时,终端确定第一通话音量调节系数为1.24。In combination with the data shown in Table 1, when the amplitude ratio of the first audio signal and the second audio signal is 0.5, the terminal determines that the first call volume adjustment coefficient is 1.24.
在其他一些实施例中,终端中还可以设置幅值比值与第一通话音量调节系数之间的函数关系式(根据开发过程中测量得到的幅值比值以及最优通话音量调节系数拟合得到),从而将幅值比值代入函数关系式计算到第一通话音量调节系数。In some other embodiments, the terminal may also set a functional relationship between the amplitude ratio and the first call volume adjustment coefficient (obtained by fitting the amplitude ratio measured in the development process and the optimal call volume adjustment coefficient) , so that the amplitude ratio is substituted into the functional relationship to calculate the first call volume adjustment coefficient.
正常终端握持姿态下,终端听筒与人耳之间的距离处于特定距离范围,对应的,音频信号的幅值比值位于特定的比值区间(比如表一中0.3至0.9);而在非正常终端握持姿态下,终端听筒与人耳之间的距离过远,导致音频信号的幅值比值极小。若在非正常终端握持姿态下一味调节第一音频信号,可能会造成听筒发出声音的音量过大,导致通话内容容易被他人听到,甚至造成听筒破音,因此在一种可能的实施方式中,基于幅值比值确定第一通话音量调节系数时,若幅值比值小于比值阈值(比如0.3),终端确定当前处于非正常终端握持姿态,从而通过预设方式(比如震动后进行文字提示)进行提示,以便用户调整终端握持姿态,将听筒靠近人耳。Under the normal terminal holding posture, the distance between the terminal receiver and the human ear is in a specific distance range, and correspondingly, the amplitude ratio of the audio signal is in a specific ratio range (such as 0.3 to 0.9 in Table 1); while in the abnormal terminal In the holding posture, the distance between the terminal earpiece and the human ear is too far, resulting in a very small amplitude ratio of the audio signal. If you just adjust the first audio signal while holding the terminal in an abnormal posture, the volume of the sound from the earpiece may be too loud, making the content of the call easy to be heard by others, and even causing the earpiece to break. Therefore, in a possible implementation manner , when determining the first call volume adjustment coefficient based on the amplitude ratio, if the amplitude ratio is less than the ratio threshold (for example, 0.3), the terminal determines that it is currently in an abnormal terminal holding posture, so as to provide a text prompt after a preset method (such as vibration). ) to prompt, so that the user can adjust the holding posture of the terminal and bring the receiver close to the human ear.
步骤605,基于通话音量调节方式调节第一音频信号的第一信号幅值。Step 605: Adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
在一种可能的实施方式中,终端基于确定出的第一通话音量调节系数调节第一音频信号的第一信号幅值,从而调节人耳处声音的音量。其中,当第一通话音量调节系数小于1时,终端降低第一音频信号的第一信号幅值,以此降低人耳处声音的音量,避免通话音量过大;当第一通话音量调节系数大于1时,终端提高第一音频信号的第一信号幅值,以此提高人耳处声音的音量,避免通话音量过小。In a possible implementation manner, the terminal adjusts the first signal amplitude of the first audio signal based on the determined first call volume adjustment coefficient, thereby adjusting the volume of the sound at the human ear. Wherein, when the first call volume adjustment coefficient is less than 1, the terminal reduces the first signal amplitude of the first audio signal, thereby reducing the volume of the sound at the human ear, so as to prevent the call volume from being too large; when the first call volume adjustment coefficient is greater than When the value is 1, the terminal increases the first signal amplitude of the first audio signal, thereby increasing the volume of the sound at the human ear and preventing the volume of the call from being too low.
可选的,终端可以基于第一通话音量调节系数调整第一音频信号的信号增益,从而实现对第一音频信号的信号幅值调节。Optionally, the terminal may adjust the signal gain of the first audio signal based on the first call volume adjustment coefficient, so as to realize the adjustment of the signal amplitude of the first audio signal.
需要说明的是,由于不同频率的音频信号在传播过程中的衰减速率不同,若对各个频段的音频信号均进行统一调节,无法在各个频段内均达到良好的收听质量。因此为了进一步提高通话过程中各个频段内声音的收听质量,在一种可能的实施方式中,人耳收听范围内的音频信号被预先划分为若干频段,在获取第一音频信号以及第二音频信号的信号幅值时,终端获取同一频段下第一音频信号的第一信号幅值以及第二音频信号的第二信号幅值,从而确定不同频段下第一音频信号和第二音频信号的幅值比值,进而基于不同频段对应的第一通话音量调节系数(开发人员需要预先针对各个频段进行测试)。It should be noted that since audio signals of different frequencies have different attenuation rates during the propagation process, if the audio signals of each frequency band are adjusted uniformly, good listening quality cannot be achieved in each frequency band. Therefore, in order to further improve the listening quality of the sound in each frequency band during the call, in a possible implementation, the audio signal within the listening range of the human ear is pre-divided into several frequency bands, and when the first audio signal and the second audio signal are acquired When the signal amplitude is 1, the terminal obtains the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal in the same frequency band, so as to determine the amplitude of the first audio signal and the second audio signal in different frequency bands ratio, and then based on the first call volume adjustment coefficient corresponding to different frequency bands (developers need to test each frequency band in advance).
相应的,调节第一音频信号过程中,终端基于各个频段对应的第一通话音量调节系数,调节各个频段下第一音频信号的第一信号幅值,最终对各个频段下调节后的音频信号进行融合,得到通话音量调节后的第一音频信号。Correspondingly, in the process of adjusting the first audio signal, the terminal adjusts the first signal amplitude of the first audio signal in each frequency band based on the first call volume adjustment coefficient corresponding to each frequency band, and finally performs the adjustment on the adjusted audio signal in each frequency band. Fusion to obtain the first audio signal after the call volume is adjusted.
其中,第一音频信号的通话音量调节过程可以表示为:The process of adjusting the call volume of the first audio signal can be expressed as:
Figure PCTCN2022079191-appb-000003
Figure PCTCN2022079191-appb-000003
其中,Ο为调节后的第一音频信号,I fi为第i频段的原始第一音频信号,a i为第i频段对应的第一通话音量调节系数,n为频段数量。 Wherein, O is the adjusted first audio signal, I fi is the original first audio signal of the ith frequency band, a i is the first call volume adjustment coefficient corresponding to the ith frequency band, and n is the number of frequency bands.
步骤606,向听筒输出音量调节后的第一音频信号。Step 606: Output the volume-adjusted first audio signal to the earpiece.
本步骤的实施方式可以参考步骤404,本实施例在此不再赘述。For the implementation of this step, reference may be made to step 404, and details are not described herein again in this embodiment.
本实施例中,基于信号幅值变化程度与声音传播距离相关这一特性,终端通过获取原始音频信号(第一音频信号)以及反射音频信号(第二音频信号)各自的信号幅值,从而基于信号幅值的幅值比值,动态确定通话音量调节系数,进而基于通话音量调节系数调节原始音 频信号的信号幅值,保证不同“听筒-人耳”距离下人耳均能够达到良好的收听效果,提高通话质量。In this embodiment, based on the characteristic that the change degree of the signal amplitude is related to the sound propagation distance, the terminal obtains the respective signal amplitudes of the original audio signal (the first audio signal) and the reflected audio signal (the second audio signal), so as to obtain the signal amplitude based on the The amplitude ratio of the signal amplitude dynamically determines the call volume adjustment coefficient, and then adjusts the signal amplitude of the original audio signal based on the call volume adjustment coefficient to ensure that the human ear can achieve a good listening effect under different "earpiece-ear" distances. Improve call quality.
此外,本实施例中,针对不同频段的音频信号,终端确定各个频段对应的第一通话音量调节系数,从而基于第一通话音量调节系数对各个频段的音频信号进行针对性的通话音量调节,进一步提高通话过程中各个频段内声音的收听质量。In addition, in this embodiment, for audio signals of different frequency bands, the terminal determines the first call volume adjustment coefficient corresponding to each frequency band, so as to perform targeted call volume adjustment on the audio signals of each frequency band based on the first call volume adjustment coefficient, and further Improves the listening quality of sounds in each frequency band during a call.
除了基于音频信号的幅值比值进行通话音量调节外,在另一种可能的实施方式中,终端可以基于第一信号幅值和第二信号幅值,对人耳处的人耳收听信号幅值进行预测,从而基于人耳收听信号幅值自适应调节向听筒输出的第一音频信号。可选的,该过程可以包括如下步骤:In addition to adjusting the call volume based on the amplitude ratio of the audio signal, in another possible implementation manner, the terminal may, based on the first signal amplitude and the second signal amplitude, monitor the human ear listening signal amplitude to the human ear. Prediction is performed so as to adaptively adjust the first audio signal output to the earpiece based on the amplitude of the human ear listening signal. Optionally, the process may include the following steps:
一、基于第一信号幅值和第二信号幅值,确定人耳收听信号幅值。1. Determine the amplitude of the human ear listening signal based on the first signal amplitude and the second signal amplitude.
在一种可能的实施方式中,开发人员预先利用人工头和终端,模拟不同“听筒-人耳距离”下的通话场景,从而得到不同距离下第一音频信号与第二音频信号各自对应的信号幅度,并利用人工头人耳处设置的麦克风进行声音采集,得到人耳处的人耳收听信号幅值,进而确定第一信号幅度、第二信号幅度以及人耳收听信号幅度之间的函数关系。In a possible implementation, developers use artificial heads and terminals in advance to simulate call scenarios under different "earpiece-ear distances", so as to obtain the corresponding signals of the first audio signal and the second audio signal at different distances amplitude, and use the microphone set at the artificial head human ear to collect sound to obtain the human ear listening signal amplitude at the human ear, and then determine the functional relationship between the first signal amplitude, the second signal amplitude and the human ear listening signal amplitude .
可选的,通话过程中,终端基于第一信号幅值、第二信号幅值以及上述函数关系,预测人耳收听信号幅值。Optionally, during the call, the terminal predicts the amplitude of the human ear listening signal based on the amplitude of the first signal, the amplitude of the second signal, and the above-mentioned functional relationship.
在一个示意性的例子中,终端基于第一信号幅值100,第二信号幅值50,确定人耳处的人耳收听信号幅值为80。In an illustrative example, the terminal determines, based on the first signal amplitude value of 100 and the second signal amplitude value of 50, that the human ear listening signal amplitude at the human ear is 80.
二、基于人耳收听信号幅值,确定第一通话音量调节系数,第一通话音量调节系数与人耳收听信号幅值呈负相关关系。2. Determine the first call volume adjustment coefficient based on the amplitude of the human ear listening signal, and the first call volume adjustment coefficient has a negative correlation with the human ear listening signal amplitude.
可选的,确定出人耳收听信号幅值后,终端基于人耳收听信号幅值与标准收听信号幅值之间的幅值比值,确定第一通话音量调节系数,其中,若幅值比值小于1,确定出的第一通话音量调节系数大于1,终端需要基于第一通话音量调节系数降低第一音频信号的信号幅值,以此降低人耳收听信号幅值,避免人耳处声音的音量过高;若幅值比值大于1,确定出的第一通话音量调节系数小于1,终端需要基于第一通话音量调节系数提高第一音频信号的信号幅值,以此提高人耳收听信号幅值,避免人耳处声音的音量过低。Optionally, after determining the amplitude of the human ear listening signal, the terminal determines the first call volume adjustment coefficient based on the amplitude ratio between the human ear listening signal amplitude and the standard listening signal amplitude, where if the amplitude ratio is less than 1. The determined first call volume adjustment coefficient is greater than 1, and the terminal needs to reduce the signal amplitude of the first audio signal based on the first call volume adjustment coefficient, so as to reduce the human ear listening signal amplitude and avoid the volume of the sound at the human ear. Too high; if the amplitude ratio is greater than 1, the determined first call volume adjustment coefficient is less than 1, and the terminal needs to increase the signal amplitude of the first audio signal based on the first call volume adjustment coefficient, so as to increase the human ear listening signal amplitude , so that the volume of the sound at the human ear is not too low.
可选的,不同用户对应不同的标准收听信号幅值。Optionally, different users correspond to different standard listening signal amplitudes.
在一种可能的实施方式中,开发人员采用不同的通话音量调节参数,对第一音频信号进行音量调节,并收集人耳处的人耳收听信号幅值,从而确定不同通话音量调节参数对人耳收听信号幅值的影响程度(可以通过拟合得到函数关系)。后续终端即基于通话音量调节参数对人耳收听信号幅值的影响程度,动态确定第一通话音量调节系数。In a possible implementation, the developer uses different call volume adjustment parameters to adjust the volume of the first audio signal, and collects the human ear listening signal amplitude at the human ear, so as to determine the effect of different call volume adjustment parameters on the human ear. The degree of influence of the amplitude of the ear listening signal (the functional relationship can be obtained by fitting). The subsequent terminal dynamically determines the first call volume adjustment coefficient based on the degree of influence of the call volume adjustment parameter on the amplitude of the signal heard by the human ear.
与上述实施例类似的,由于不同频率的音频信号在传播过程中的衰减速率不同,因此为了进一步提高通话过程中各个频段内声音的收听质量,在一种可能的实施方式中,人耳收听范围内的音频信号被预先划分为若干频段,在获取第一音频信号以及第二音频信号的信号幅值时,终端获取同一频段下第一音频信号的第一信号幅值以及第二音频信号的第二信号幅值,从而基于各个频段下的第一信号幅值和第二信号幅值,确定各个频段下的人耳收听信号幅值,进而基于各个频段下的人耳收听信号幅值,确定各个频段对应的第一通话音量调节系数。Similar to the above embodiment, since audio signals of different frequencies have different attenuation rates during the propagation process, in order to further improve the listening quality of the sound in each frequency band during the call, in a possible implementation, the listening range of the human ear is The audio signal is pre-divided into several frequency bands. When acquiring the signal amplitudes of the first audio signal and the second audio signal, the terminal acquires the first signal amplitude of the first audio signal and the first signal amplitude of the second audio signal in the same frequency band. Two signal amplitudes, so that based on the first signal amplitude and the second signal amplitude in each frequency band, the human ear listening signal amplitude in each frequency band is determined, and then based on the human ear listening signal amplitude in each frequency band, each frequency is determined. The first call volume adjustment coefficient corresponding to the frequency band.
相应的,调节第一音频信号过程中,终端基于各个频段对应的第一通话音量调节系数,调节各个频段下第一音频信号的第一信号幅值,最终对各个频段下调节后的音频信号进行融合,得到通话音量调节后的第一音频信号。Correspondingly, in the process of adjusting the first audio signal, the terminal adjusts the first signal amplitude of the first audio signal in each frequency band based on the first call volume adjustment coefficient corresponding to each frequency band, and finally performs the adjustment on the adjusted audio signal in each frequency band. Fusion to obtain the first audio signal after the call volume is adjusted.
为了验证本申请实施例提供方案在提高通话质量方面的效果,利用人工头分别对标准终端握持姿态下人耳处的收听情况,非标准终端握持姿态下(相较于标准终端握持姿态存在5°的角度偏差)未采用本申请实施例提供方案时人耳处的收听情况,以及非标准终端握持姿态下采用本申请实施例提供方案时人耳处的收听情况进行测试,得到的测试结果如图7所示。从图7可以看出,应用本申请实施例提供的方案后,即便在非标准终端握持姿态下,仍旧能 够达到与非标准终端握持姿态下相近的通话质量,且相较于未应用本申请实施例提供的方案,人耳处的接收增益提高了3.5db左右,收听质量得到了显著提高。In order to verify the effect of the solutions provided by the embodiments of the present application in improving the call quality, the artificial head is used to respectively monitor the listening situation at the human ear under the standard terminal holding posture, and the non-standard terminal holding posture (compared to the standard terminal holding posture) There is an angular deviation of 5°) the listening situation at the human ear when the solution provided by the embodiment of the present application is not adopted, and the listening situation at the human ear when the solution provided by the embodiment of the present application is adopted under the non-standard terminal holding posture. The test results are shown in Figure 7. It can be seen from FIG. 7 that after applying the solution provided by the embodiment of the present application, even in the non-standard terminal holding posture, the call quality similar to that in the non-standard terminal holding posture can still be achieved, and compared with the non-standard terminal holding posture In the solution provided by the application embodiment, the receiving gain at the human ear is increased by about 3.5db, and the listening quality is significantly improved.
上述各个实施例中,终端以第一麦克风接收到的反射声音作为依据进行反馈调节。在实际应用过程中发现,除终端握持姿态外,所处的通话环境也会对通话质量造成影响。因此为了进一步提高通话质量,如图1和2所示,终端在通话过程中,还需要获取第二麦克风105采集到的环境音,从而以反射声音和环境音为依据进行反馈调节。下面采用示意性的实施例进行说明。In the foregoing embodiments, the terminal performs feedback adjustment based on the reflected sound received by the first microphone. In the actual application process, it is found that in addition to the holding posture of the terminal, the call environment in which it is located will also affect the call quality. Therefore, in order to further improve the call quality, as shown in Figures 1 and 2, the terminal also needs to acquire the ambient sound collected by the second microphone 105 during the call, so as to perform feedback adjustment based on the reflected sound and the ambient sound. Illustrative embodiments are used for description below.
请参考图8,其示出了本申请另一个示例性实施例提供的通话音量的调节方法的流程图,本实施例以该方法用于图1所示的终端为例进行说明,该方法包括:Please refer to FIG. 8 , which shows a flow chart of a method for adjusting a call volume provided by another exemplary embodiment of the present application. In this embodiment, the method is used for the terminal shown in FIG. 1 as an example for description. The method includes: :
步骤801,通话过程中,向听筒输出第一音频信号,听筒用于基于第一音频信号进行发声。 Step 801 , during the call, output a first audio signal to the earpiece, and the earpiece is used to make a sound based on the first audio signal.
步骤802,获取第一麦克风采集到的第二音频信号,第二音频信号包括反射声音的音频信号,反射声音是听筒发出的声音在目标人体处反射后形成,目标人体是听筒朝向范围内的人体。Step 802: Acquire a second audio signal collected by the first microphone. The second audio signal includes an audio signal of a reflected sound. The reflected sound is formed by the sound emitted by the earpiece being reflected at the target human body, and the target human body is a human body within the range of the earpiece. .
上述步骤801至802的实施方式可以参考步骤401至402,本实施例在此不再赘述。For the implementation of the foregoing steps 801 to 802, reference may be made to steps 401 to 402, and details are not described herein again in this embodiment.
步骤803,获取第二麦克风采集到的第三音频信号,第三音频信号为环境声的音频信号。Step 803: Obtain a third audio signal collected by the second microphone, where the third audio signal is an audio signal of ambient sound.
本实施例中,终端通过第二麦克风采集环境声,从而基于环境声的音频信号确定当前所处环境的环境噪声强弱。In this embodiment, the terminal collects the ambient sound through the second microphone, so as to determine the intensity of the ambient noise in the current environment based on the audio signal of the ambient sound.
步骤804,基于第一音频信号、第二音频信号以及第三音频信号确定通话音量调节方式,并对第一音频信号进行音量调节。Step 804: Determine a call volume adjustment mode based on the first audio signal, the second audio signal, and the third audio signal, and adjust the volume of the first audio signal.
在基于第一音频信号和第二音频信号进行通话音量调节,以自适应“听筒-人耳距离”的基础上,本实施例中,终端还基于第三音频信号进行通话音量调节,以自适应当前通话环境的环境噪声。在一种可能的实施方式中,本步骤可以包括如下子步骤。On the basis of adjusting the call volume based on the first audio signal and the second audio signal to adapt to the "earpiece-ear distance", in this embodiment, the terminal also adjusts the call volume based on the third audio signal to adapt to the The ambient noise of the current call environment. In a possible implementation manner, this step may include the following sub-steps.
一、获取第一音频信号的第一信号幅值、第二音频信号的第二信号幅值以及第三音频信号的第三信号幅值。1. Obtain the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal.
与上述实施例类似的,终端分别获取第一音频信号、第二音频信号以及第三音频信号各自对应的信号幅值。其中,信号幅值的具体获取方式可以参考上述实施例,本实施例在此不再赘述。Similar to the above-mentioned embodiment, the terminal obtains the respective signal amplitudes corresponding to the first audio signal, the second audio signal, and the third audio signal. For the specific acquisition method of the signal amplitude, reference may be made to the foregoing embodiment, which will not be repeated in this embodiment.
二、基于第一信号幅值、第二信号幅值以及第三信号幅值确定通话音量调节方式。2. Determine the call volume adjustment mode based on the first signal amplitude, the second signal amplitude and the third signal amplitude.
本实施例中,对通话音量的调节包括分为两部分:1、基于听筒与人耳之间的距离进行音量调节;2、基于环境声进行音量调节。In this embodiment, the adjustment of the call volume includes two parts: 1. Volume adjustment based on the distance between the earpiece and the human ear; 2. Volume adjustment based on ambient sound.
基于听筒与人耳之间的距离进行音量调节时,终端基于第一信号幅值和第二信号幅值确定第一通话音量调节系数,将该第一通话音量调节系数作为后续音量调节的依据。其中,确定第一通话音量调节系数的过程可以参考上述实施例,本实施例在此不再赘述。When performing volume adjustment based on the distance between the earpiece and the human ear, the terminal determines a first call volume adjustment coefficient based on the first signal amplitude and the second signal amplitude, and uses the first call volume adjustment coefficient as a basis for subsequent volume adjustment. Wherein, for the process of determining the first call volume adjustment coefficient, reference may be made to the foregoing embodiment, and details are not described herein again in this embodiment.
基于环境声进行音量调节时,终端基于第三信号幅值确定第二通话音量调节系数,将该第二通话音量调节系数作为后续音量调节的依据。其中,第二通话音量调节系数为正数,且第二通话音量调节系数与第三信号幅值呈正相关关系,即环境声的音量越高(即第三信号幅值越大),第二通话音量调节系数越大,相应的,后续基于第二通话音量调节系数调节音量调节时的调节幅度越大。When performing volume adjustment based on the ambient sound, the terminal determines a second call volume adjustment coefficient based on the third signal amplitude value, and uses the second call volume adjustment coefficient as a basis for subsequent volume adjustment. The second call volume adjustment coefficient is a positive number, and the second call volume adjustment coefficient has a positive correlation with the third signal amplitude, that is, the higher the volume of the ambient sound (that is, the larger the third signal amplitude), the higher the second call volume. The larger the volume adjustment coefficient is, the larger the adjustment range is when the volume adjustment is subsequently adjusted based on the second call volume adjustment coefficient.
在一种可能的实施方式中,开发人员预先利用人工头和终端,模拟不同环境(播放不同信号幅度的环境声)下的通话场景,并采用不同的通话音量调节系数对第一音频信号进行音量调节。利用人工头人耳处设置的麦克风进行声音采集,并通过对人耳处采集到的声音进行分析,确定出不同环境下的最优通话音量调节系数(比如将人耳处通话声音与环境声对应音频信号的信号幅度差大于幅度差值时采用的通话音量调节系数确定为最优通话音量调节系数)。进一步的,通过对环境声的信号幅度与最优通话音量调节系数进行拟合,确定出第三信 号幅值与第二通话音量调节系数之间的函数关系。In a possible implementation, developers use artificial heads and terminals in advance to simulate call scenarios in different environments (playing ambient sounds with different signal amplitudes), and use different call volume adjustment coefficients to adjust the volume of the first audio signal. adjust. Use the microphone set at the artificial head and the human ear to collect sound, and analyze the sound collected at the human ear to determine the optimal call volume adjustment coefficient in different environments (for example, the call sound at the human ear corresponds to the ambient sound) The call volume adjustment coefficient used when the signal amplitude difference of the audio signal is greater than the amplitude difference value is determined as the optimal call volume adjustment coefficient). Further, by fitting the signal amplitude of the ambient sound and the optimal call volume adjustment coefficient, the functional relationship between the third signal amplitude and the second call volume adjustment coefficient is determined.
在一个示意性的例子中,第三信号幅度与第二通话音量调节系数之间的对应关系如表二所示。In an illustrative example, the corresponding relationship between the third signal amplitude and the second call volume adjustment coefficient is shown in Table 2.
表二Table II
Figure PCTCN2022079191-appb-000004
Figure PCTCN2022079191-appb-000004
比如,当接收到的第三音频信号的第三信号幅度为30时,终端确定第二通话音量调节系数为0.1,即需要在当前第一信号幅度的基础上提升10%。For example, when the third signal amplitude of the received third audio signal is 30, the terminal determines that the second call volume adjustment coefficient is 0.1, that is, the current first signal amplitude needs to be increased by 10%.
三、基于通话音量调节方式调节第一音频信号的第一信号幅值。3. Adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
在一种可能的实施方式中,终端基于第一通话音量调节系数和第二通话音量调节系数调节第一音频信号的第一信号幅值。In a possible implementation manner, the terminal adjusts the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient and the second call volume adjustment coefficient.
如图9所示,芯片91向听筒92输出第一音频信号后,听筒92基于第一音频信号进行发声,第一麦克风93对反射声音进行采集,并向芯片91输出第二音频信号;与此同时,第二麦克风94对环境声进行采集,冰箱芯片91输出第三音频信号。芯片91基于第一音频信号和第二音频信号,确定出第一通话音量调节系数95,基于第三音频信号确定出第二通话音量调节系数96,从而利用两者调节第一音频信号的信号幅值,并输出调节后的第一音频信号,形成一条完整的调节反馈链。As shown in FIG. 9 , after the chip 91 outputs the first audio signal to the earpiece 92, the earpiece 92 emits sound based on the first audio signal, the first microphone 93 collects the reflected sound, and outputs the second audio signal to the chip 91; At the same time, the second microphone 94 collects ambient sound, and the refrigerator chip 91 outputs a third audio signal. The chip 91 determines the first call volume adjustment coefficient 95 based on the first audio signal and the second audio signal, and determines the second call volume adjustment coefficient 96 based on the third audio signal, so as to use both to adjust the signal amplitude of the first audio signal. value, and output the adjusted first audio signal to form a complete adjustment feedback chain.
需要说明的是,由于不同频率的音频信号在传播过程中的衰减速率不同,若对各个频段的音频信号均进行统一调节,无法在各个频段内均达到良好的收听质量。因此为了进一步提高通话过程中各个频段内声音的收听质量,在一种可能的实施方式中,人耳收听范围内的音频信号被预先划分为若干频段,在获取第一音频信号、第二音频信号以及第三音频信号的信号幅值时,终端获取同一频段下第一音频信号的第一信号幅值、第二音频信号的第二信号幅值以及第三音频信号的第三信号幅值,从而确定同一频段对应的第一通话音量调节系数和第二通话音量调节系数。It should be noted that since audio signals of different frequencies have different attenuation rates during the propagation process, if the audio signals of each frequency band are adjusted uniformly, good listening quality cannot be achieved in each frequency band. Therefore, in order to further improve the listening quality of the sound in each frequency band during the call, in a possible implementation, the audio signal within the listening range of the human ear is pre-divided into several frequency bands. and the signal amplitude of the third audio signal, the terminal obtains the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal in the same frequency band, thereby Determine the first call volume adjustment coefficient and the second call volume adjustment coefficient corresponding to the same frequency band.
进一步的,调节第一音频信号过程中,终端基于各个频段对应的第一通话音量调节系数和第二通话音量调节系统,调节各个频段下第一音频信号的第一信号幅值,最终对各个频段下调节后的音频信号进行融合,得到通话音量调节后的第一音频信号。Further, in the process of adjusting the first audio signal, the terminal adjusts the first signal amplitude of the first audio signal in each frequency band based on the first call volume adjustment coefficient corresponding to each frequency band and the second call volume adjustment system, and finally adjusts the first signal amplitude of each frequency band. The down-adjusted audio signals are fused to obtain a first audio signal whose call volume is adjusted.
其中,第一音频信号的通话音量调节过程可以表示为:The process of adjusting the call volume of the first audio signal can be expressed as:
Figure PCTCN2022079191-appb-000005
Figure PCTCN2022079191-appb-000005
其中,Ο为调节后的第一音频信号,I fi为第i频段的原始第一音频信号,a i为第i频段对应的第一通话音量调节系数,b i为第i频段对应的第二通话音量调节系数,n为频段数量。 Wherein, Ο is the adjusted first audio signal, I fi is the original first audio signal of the ith frequency band, a i is the first call volume adjustment coefficient corresponding to the ith frequency band, b i is the second corresponding to the ith frequency band Call volume adjustment factor, n is the number of frequency bands.
步骤805,向听筒输出音量调节后的第一音频信号。Step 805: Output the volume-adjusted first audio signal to the earpiece.
本步骤的实施方式可以参考步骤404,本实施例在此不再赘述。For the implementation of this step, reference may be made to step 404, and details are not described herein again in this embodiment.
本实施例中,在基于“听筒-人耳”距离进行通话音量调节的基础上,基于第二麦克风采集到的环境声执行进一步通话音量调节,有助于提高嘈杂环境下的通话质量,并能够避免安静环境下因听筒音量过大对他人造成影响。In this embodiment, on the basis of adjusting the call volume based on the “earpiece-ear” distance, further adjusting the call volume based on the ambient sound collected by the second microphone is helpful to improve the call quality in a noisy environment, and can Avoid disturbing others due to the loud earphone volume in a quiet environment.
为了进一步验证本申请实施例提供方案在嘈杂环境下提高通话质量方面的效果,利用人工头分别对噪声环境下未采用本申请实施例提供方案时人耳处的收听情况,以及噪声环境下采用本申请实施例提供方案时人耳处的收听情况进行测试,得到的测试结果如图10所示。从图10可以看出,应用本申请实施例提供的方案后,噪声环境下人耳处的接收增益得到提高,且在高频段尤为明显(高频段提高了6db),嘈杂环境下的收听质量得到了显著提高。In order to further verify the effect of the solutions provided by the embodiments of the present application in improving call quality in a noisy environment, an artificial head was used to measure the listening conditions of the human ear when the solutions provided by the embodiments of the present application were not used in a noisy environment, and the listening conditions of the human ears when the solutions provided by the embodiments of the present application were not used in a noisy environment. When the solution provided by the application example is tested, the listening condition at the human ear is tested, and the obtained test result is shown in FIG. 10 . It can be seen from FIG. 10 that after applying the solution provided by the embodiments of the present application, the receiving gain at the human ear is improved in a noisy environment, especially in the high frequency band (the high frequency band is increased by 6db), and the listening quality in the noisy environment is improved. significantly improved.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中 未披露的细节,请参照本申请方法实施例。The following are apparatus embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图11,其示出了本申请一个实施例提供的通话音量的调节装置的结构框图。如图11所示,该装置可以包括:Please refer to FIG. 11 , which shows a structural block diagram of an apparatus for adjusting the volume of a call provided by an embodiment of the present application. As shown in Figure 11, the apparatus may include:
信号输出模块1101,用于在通话过程中,向听筒输出第一音频信号,所述听筒用于基于所述第一音频信号进行发声;a signal output module 1101, configured to output a first audio signal to an earpiece during a call, where the earpiece is used to make a sound based on the first audio signal;
第一信号获取模块1102,用于获取第一麦克风采集到的第二音频信号,所述第二音频信号包括反射声音的音频信号,所述反射声音是所述听筒发出的声音在目标人体处反射后形成,所述目标人体是听筒朝向范围内的人体;The first signal acquisition module 1102 is configured to acquire a second audio signal collected by the first microphone, where the second audio signal includes an audio signal of a reflected sound, and the reflected sound is the sound emitted by the earpiece reflected at the target human body After forming, the target human body is the human body within the range of the earpiece;
音量调节模块1103,用于基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对所述第一音频信号进行音量调节;A volume adjustment module 1103, configured to determine a call volume adjustment mode based on the first audio signal and the second audio signal, and perform volume adjustment on the first audio signal;
所述信号输出模块1101,还用于向所述听筒输出音量调节后的所述第一音频信号。The signal output module 1101 is further configured to output the volume-adjusted first audio signal to the earpiece.
可选的,音量调节模块1103,包括:Optionally, the volume adjustment module 1103 includes:
幅值获取单元,用于获取所述第一音频信号的第一信号幅值以及所述第二音频信号的第二信号幅值;an amplitude acquisition unit, configured to acquire a first signal amplitude of the first audio signal and a second signal amplitude of the second audio signal;
调节方式确定单元,用于基于所述第一信号幅值和所述第二信号幅值确定所述通话音量调节方式;an adjustment mode determination unit, configured to determine the call volume adjustment mode based on the first signal amplitude value and the second signal amplitude value;
调节单元,用于基于所述通话音量调节方式调节所述第一音频信号的所述第一信号幅值。An adjustment unit, configured to adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
可选的,调节方式确定单元,用于:Optionally, the adjustment mode determination unit is used for:
确定所述第二信号幅值与所述第一信号幅值的幅值比值;determining an amplitude ratio of the second signal amplitude to the first signal amplitude;
基于所述幅值比值确定第一通话音量调节系数,所述第一通话音量调节系数与所述幅值比值呈负相关关系;A first call volume adjustment coefficient is determined based on the amplitude ratio, and the first call volume adjustment coefficient is negatively correlated with the amplitude ratio;
调节单元,用于:Adjustment unit for:
基于所述第一通话音量调节系数调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
可选的,幅值获取单元,还用于:Optionally, the amplitude acquisition unit is also used to:
获取同一频段下所述第一音频信号的所述第一信号幅值以及所述第二音频信号的所述第二信号幅值;acquiring the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal in the same frequency band;
所述调节单元,还用于:The adjustment unit is also used for:
基于各个频段对应的所述第一通话音量调节系数,调节各个频段下所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
可选的,调节方式确定单元,还用于:Optionally, the adjustment mode determining unit is also used for:
基于所述第一信号幅值和所述第二信号幅值,确定人耳收听信号幅值;determining a human ear listening signal amplitude based on the first signal amplitude and the second signal amplitude;
基于所述人耳收听信号幅值,确定第一通话音量调节系数,所述第一通话音量调节系数与所述人耳收听信号幅值呈负相关关系;determining a first call volume adjustment coefficient based on the human ear listening signal amplitude, and the first call volume adjustment coefficient is in a negative correlation with the human ear listening signal amplitude;
调节单元,还用于:Adjustment unit, also used for:
基于所述第一通话音量调节系数调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
可选的,调节方式确定单元,还用于:Optionally, the adjustment mode determining unit is also used for:
基于各个频段下的所述第一信号幅值和所述第二信号幅值,确定各个频段下的所述人耳收听信号幅值;determining the human ear listening signal amplitude in each frequency band based on the first signal amplitude and the second signal amplitude in each frequency band;
基于各个频段下的所述人耳收听信号幅值,确定各个频段对应的所述第一通话音量调节系数;determining the first call volume adjustment coefficient corresponding to each frequency band based on the human ear listening signal amplitude in each frequency band;
调节单元,还用于:Adjustment unit, also used for:
基于各个频段对应的所述第一通话音量调节系数,调节各个频段下所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
可选的,所述装置,还包括:Optionally, the device further includes:
第二信号获取模块,用于获取第二麦克风采集到的第三音频信号,所述第三音频信号为 环境声的音频信号;The second signal acquisition module is used to acquire the third audio signal collected by the second microphone, and the third audio signal is the audio signal of ambient sound;
所述音量调节模块1103,用于:The volume adjustment module 1103 is used for:
基于所述第一音频信号、所述第二音频信号以及所述第三音频信号确定所述通话音量调节方式,并对所述第一音频信号进行音量调节。The call volume adjustment mode is determined based on the first audio signal, the second audio signal and the third audio signal, and the volume of the first audio signal is adjusted.
可选的,音量调节模块1103,包括:Optionally, the volume adjustment module 1103 includes:
幅值获取单元,用于获取所述第一音频信号的第一信号幅值、所述第二音频信号的第二信号幅值以及所述第三音频信号的第三信号幅值;an amplitude acquisition unit, configured to acquire a first signal amplitude of the first audio signal, a second signal amplitude of the second audio signal, and a third signal amplitude of the third audio signal;
调节方式确定单元,用于基于所述第一信号幅值、所述第二信号幅值以及所述第三信号幅值确定所述通话音量调节方式;an adjustment mode determination unit, configured to determine the call volume adjustment mode based on the first signal amplitude value, the second signal amplitude value and the third signal amplitude value;
调节单元,用于基于所述通话音量调节方式调节所述第一音频信号的所述第一信号幅值。An adjustment unit, configured to adjust the first signal amplitude of the first audio signal based on the call volume adjustment method.
可选的,调节方式确定单元,用于:Optionally, the adjustment mode determination unit is used for:
基于所述第一信号幅值和所述第二信号幅值确定第一通话音量调节系数;determining a first call volume adjustment coefficient based on the first signal amplitude and the second signal amplitude;
基于所述第三信号幅值确定第二通话音量调节系数,所述第二通话音量调节系数与所述第三信号幅值呈正相关关系;A second call volume adjustment coefficient is determined based on the third signal amplitude value, and the second call volume adjustment coefficient is positively correlated with the third signal amplitude value;
所述调节单元,用于:The adjustment unit is used for:
基于所述第一通话音量调节系数和所述第二通话音量调节系数调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient.
可选的,幅值获取单元,还用于:Optionally, the amplitude acquisition unit is also used to:
获取同一频段下所述第一音频信号的所述第一信号幅值、所述第二音频信号的所述第二信号幅值以及所述第三音频信号的所述第三信号幅值;acquiring the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal in the same frequency band;
所述调节单元,还用于:The adjustment unit is also used for:
基于同一频段对应的第一通话音量调节系数和所述第二通话音量调节系数,调节所述频段下所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal in the frequency band is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient corresponding to the same frequency band.
可选的,所述装置还包括:Optionally, the device further includes:
通话方式确定模块,用于确定当前通话方式,所述通话方式包括手持通话、耳机通话以及外放通话中的至少一种;a call mode determination module, configured to determine a current call mode, where the call mode includes at least one of a hand-held call, a headset call, and an external call;
开启模块,用于响应于所述当前通话方式为手持通话,开启所述听筒和所述第一麦克风。A turning-on module, configured to turn on the earpiece and the first microphone in response to the current call mode being a hand-held call.
综上所述,本实施例中,通话过程中,听筒基于输入的第一音频信号发声后,声音在人体处反射后形成反射声音并被第一麦克风采集,由于不同终端握持姿势下听筒与人体之间的距离不同,而听筒与人体之间的距离会对反射声音的强弱造成影响,因此终端通过获取第一麦克风采集到的第二音频信号,并基于第一音频信号和第二音频信号对第一音频信号进行音量调节,能够针对不同终端握持姿势的实现通话音量自适应调节,且有助于提高通话音量调节的准确性,进而提高不同终端握持姿势下的语音通话质量。To sum up, in this embodiment, during a call, after the earpiece emits sound based on the input first audio signal, the sound is reflected at the human body to form a reflected sound and collected by the first microphone. The distance between the human body is different, and the distance between the earpiece and the human body will affect the strength of the reflected sound, so the terminal obtains the second audio signal collected by the first microphone, and based on the first audio signal and the second audio signal The signal adjusts the volume of the first audio signal, which can realize adaptive adjustment of the call volume for different terminal holding postures, and helps to improve the accuracy of the call volume adjustment, thereby improving the voice call quality in different terminal holding postures.
需要说明的是:上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
请参考图12,其示出了本申请一个示例性实施例提供的终端的结构方框图。该终端1200可以是具有通话功能的电子设备,比如智能手机。本申请中的终端1200可以包括一个或多个如下部件:处理器1210、存储器1220、听筒1230和至少一个麦克风1240。Please refer to FIG. 12, which shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application. The terminal 1200 may be an electronic device with a call function, such as a smart phone. The terminal 1200 in this application may include one or more of the following components: a processor 1210 , a memory 1220 , an earpiece 1230 and at least one microphone 1240 .
处理器1210可以包括一个或者多个处理核心。处理器1210利用各种接口和线路连接整个终端1200内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用存储在存储器1220内的数据,执行终端1200的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门 阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1210可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块芯片进行实现。 Processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and lines to connect various parts of the entire terminal 1200, and executes the terminal by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1220, and calling the data stored in the memory 1220. 1200's various functions and processing data. Optionally, the processor 1210 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). A hardware form is implemented. The processor 1210 may integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), and a modem, etc. The combination. Among them, the CPU mainly handles the operating system, user interface and applications; the GPU is used to render and draw the content that needs to be displayed on the touch screen; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process Wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1210, but is implemented by a single chip.
存储器1220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1220包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据终端1200的使用所创建的数据(比如音频数据、电话本)等。The memory 1220 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM). Optionally, the memory 1220 includes a non-transitory computer-readable storage medium. Memory 1220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 1220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like for implementing the following method embodiments; the storage data area may store data (such as audio data, phone book) and the like created according to the use of the terminal 1200 .
听筒1230是通话过程中用于播放对端声音的扬声器,通常情况下,听筒1230设置在终端1200前面板顶部。麦克风1240是用于采集声音的组件,本申请实施例中,麦克风1240包括与听筒1230相邻设置的第一麦克风,用于在通话过程中采集人体处反射形成的反射声音;麦克风1240还可以包括第二麦克风,第二麦克风用于在通话过程中采集环境声。The earpiece 1230 is a speaker used to play the voice of the peer end during a call. Usually, the earpiece 1230 is set on the top of the front panel of the terminal 1200. The microphone 1240 is a component for collecting sound. In this embodiment of the present application, the microphone 1240 includes a first microphone disposed adjacent to the earpiece 1230, and is used to collect the reflected sound formed by the reflection of the human body during the call; the microphone 1240 may also include The second microphone is used to collect ambient sound during a call.
可选的,听筒1230和麦克风1240通过音频电路与处理器1210相连,麦克风1240通过音频电路将音频信号交由处理器1210进行处理,听筒1230则通过音频电路接收处理器1210输出的音频信号,从而进行发声。Optionally, the earpiece 1230 and the microphone 1240 are connected to the processor 1210 through an audio circuit, the microphone 1240 passes the audio signal to the processor 1210 for processing through the audio circuit, and the earpiece 1230 receives the audio signal output by the processor 1210 through the audio circuit, thereby Make a sound.
除此之外,本领域技术人员可以理解,上述附图所示出的终端1200的结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端1200中还包括显示屏、传感器、电源等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal 1200 shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or less components than those shown in the drawings, or combine some components , or a different component arrangement. For example, the terminal 1200 also includes components such as a display screen, a sensor, and a power supply, which are not described herein again.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上各个实施例所述的通话音量的调节方法。Embodiments of the present application further provide a computer-readable storage medium, where at least one piece of program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the volume control of the call volume described in the various embodiments above. adjustment method.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面的各种可选实现方式中提供的通话音量的调节方法。According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the method for adjusting the call volume provided in various optional implementation manners of the foregoing aspects.
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。It should be understood that references herein to "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. In addition, the numbering of the steps described in this document only exemplarily shows a possible execution sequence between the steps. In some other embodiments, the above steps may also be executed in different order, such as two different numbers. The steps are performed at the same time, or two steps with different numbers are performed in a reverse order to that shown in the figure, which is not limited in this embodiment of the present application.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (15)

  1. 一种通话音量的调节方法,所述方法包括:A method for adjusting a call volume, the method comprising:
    通话过程中,向听筒输出第一音频信号,所述听筒用于基于所述第一音频信号进行发声;During the call, output a first audio signal to the earpiece, where the earpiece is used to make a sound based on the first audio signal;
    获取第一麦克风采集到的第二音频信号,所述第二音频信号包括反射声音的音频信号,所述反射声音是所述听筒发出的声音在目标人体处反射后形成,所述目标人体是听筒朝向范围内的人体;Acquire a second audio signal collected by the first microphone, where the second audio signal includes an audio signal of a reflected sound, and the reflected sound is formed after the sound emitted by the earpiece is reflected at the target human body, and the target human body is the earpiece towards the human body within range;
    基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对所述第一音频信号进行音量调节;Determine a call volume adjustment mode based on the first audio signal and the second audio signal, and perform volume adjustment on the first audio signal;
    向所述听筒输出音量调节后的所述第一音频信号。The volume-adjusted first audio signal is output to the earpiece.
  2. 根据权利要求1所述的方法,其中,所述基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对所述第一音频信号进行音量调节,包括:The method according to claim 1, wherein the determining a call volume adjustment mode based on the first audio signal and the second audio signal, and performing volume adjustment on the first audio signal, comprises:
    获取所述第一音频信号的第一信号幅值以及所述第二音频信号的第二信号幅值;acquiring a first signal amplitude of the first audio signal and a second signal amplitude of the second audio signal;
    基于所述第一信号幅值和所述第二信号幅值确定所述通话音量调节方式;determining the call volume adjustment mode based on the first signal amplitude and the second signal amplitude;
    基于所述通话音量调节方式调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the call volume adjustment method.
  3. 根据权利要求2所述的方法,其中,所述基于所述第一信号幅值和所述第二信号幅值确定所述通话音量调节方式,包括:The method according to claim 2, wherein the determining the call volume adjustment mode based on the first signal amplitude and the second signal amplitude comprises:
    确定所述第二信号幅值与所述第一信号幅值的幅值比值;determining an amplitude ratio of the second signal amplitude to the first signal amplitude;
    基于所述幅值比值确定第一通话音量调节系数,所述第一通话音量调节系数与所述幅值比值呈负相关关系;A first call volume adjustment coefficient is determined based on the amplitude ratio, and the first call volume adjustment coefficient is negatively correlated with the amplitude ratio;
    所述基于所述通话音量调节方式调节所述第一音频信号的所述第一信号幅值,包括:The adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method includes:
    基于所述第一通话音量调节系数调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
  4. 根据权利要求3所述的方法,其中,所述获取所述第一音频信号的第一信号幅值以及所述第二音频信号的第二信号幅值,包括:The method according to claim 3, wherein the acquiring the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal comprises:
    获取同一频段下所述第一音频信号的所述第一信号幅值以及所述第二音频信号的所述第二信号幅值;acquiring the first signal amplitude of the first audio signal and the second signal amplitude of the second audio signal in the same frequency band;
    所述基于所述第一通话音量调节系数调节所述第一音频信号的所述第一信号幅值,包括:The adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient includes:
    基于各个频段对应的所述第一通话音量调节系数,调节各个频段下所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
  5. 根据权利要求2所述的方法,其中,所述基于所述第一信号幅值和所述第二信号幅值确定所述通话音量调节方式,包括:The method according to claim 2, wherein the determining the call volume adjustment mode based on the first signal amplitude and the second signal amplitude comprises:
    基于所述第一信号幅值和所述第二信号幅值,确定人耳收听信号幅值;determining a human ear listening signal amplitude based on the first signal amplitude and the second signal amplitude;
    基于所述人耳收听信号幅值,确定第一通话音量调节系数,所述第一通话音量调节系数与所述人耳收听信号幅值呈负相关关系;determining a first call volume adjustment coefficient based on the human ear listening signal amplitude, and the first call volume adjustment coefficient is in a negative correlation with the human ear listening signal amplitude;
    所述基于所述通话音量调节方式调节所述第一音频信号的所述第一信号幅值,包括:The adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method includes:
    基于所述第一通话音量调节系数调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient.
  6. 根据权利要求5所述的方法,其中,所述基于所述第一信号幅值和所述第二信号幅值,确定人耳收听信号幅值,包括:The method according to claim 5, wherein the determining a human ear listening signal amplitude based on the first signal amplitude and the second signal amplitude comprises:
    基于各个频段下的所述第一信号幅值和所述第二信号幅值,确定各个频段下的所述人耳收听信号幅值;determining the human ear listening signal amplitude in each frequency band based on the first signal amplitude and the second signal amplitude in each frequency band;
    所述基于所述人耳收听信号幅值,确定第一通话音量调节系数,包括:The determining the first call volume adjustment coefficient based on the amplitude of the human ear listening signal includes:
    基于各个频段下的所述人耳收听信号幅值,确定各个频段对应的所述第一通话音量调节系数;determining the first call volume adjustment coefficient corresponding to each frequency band based on the human ear listening signal amplitude in each frequency band;
    所述基于所述第一通话音量调节系数调节所述第一音频信号的所述第一信号幅值,包括:The adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient includes:
    基于各个频段对应的所述第一通话音量调节系数,调节各个频段下所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal in each frequency band is adjusted based on the first call volume adjustment coefficient corresponding to each frequency band.
  7. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    获取第二麦克风采集到的第三音频信号,所述第三音频信号为环境声的音频信号;acquiring a third audio signal collected by the second microphone, where the third audio signal is an audio signal of ambient sound;
    所述基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对所述第一音频信号进行音量调节,包括:The determining a call volume adjustment mode based on the first audio signal and the second audio signal, and performing volume adjustment on the first audio signal, includes:
    基于所述第一音频信号、所述第二音频信号以及所述第三音频信号确定所述通话音量调节方式,并对所述第一音频信号进行音量调节。The call volume adjustment mode is determined based on the first audio signal, the second audio signal and the third audio signal, and the volume of the first audio signal is adjusted.
  8. 根据权利要求7所述的方法,其中,所述基于所述第一音频信号、所述第二音频信号以及所述第三音频信号确定所述通话音量调节方式,并对所述第一音频信号进行音量调节,包括:The method according to claim 7, wherein the call volume adjustment mode is determined based on the first audio signal, the second audio signal and the third audio signal, and the first audio signal is Make volume adjustments, including:
    获取所述第一音频信号的第一信号幅值、所述第二音频信号的第二信号幅值以及所述第三音频信号的第三信号幅值;acquiring a first signal amplitude of the first audio signal, a second signal amplitude of the second audio signal, and a third signal amplitude of the third audio signal;
    基于所述第一信号幅值、所述第二信号幅值以及所述第三信号幅值确定所述通话音量调节方式;determining the call volume adjustment mode based on the first signal amplitude, the second signal amplitude and the third signal amplitude;
    基于所述通话音量调节方式调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the call volume adjustment method.
  9. 根据权利要求8所述的方法,其中,所述基于所述第一信号幅值、所述第二信号幅值以及所述第三信号幅值确定所述通话音量调节方式,包括:The method according to claim 8, wherein the determining the call volume adjustment mode based on the first signal amplitude, the second signal amplitude and the third signal amplitude comprises:
    基于所述第一信号幅值和所述第二信号幅值确定第一通话音量调节系数;determining a first call volume adjustment coefficient based on the first signal amplitude and the second signal amplitude;
    基于所述第三信号幅值确定第二通话音量调节系数,所述第二通话音量调节系数与所述第三信号幅值呈正相关关系;A second call volume adjustment coefficient is determined based on the third signal amplitude value, and the second call volume adjustment coefficient is positively correlated with the third signal amplitude value;
    所述基于所述通话音量调节方式调节所述第一音频信号的所述第一信号幅值,包括:The adjusting the first signal amplitude of the first audio signal based on the call volume adjustment method includes:
    基于所述第一通话音量调节系数和所述第二通话音量调节系数调节所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient.
  10. 根据权利要求9所述的方法,其中,所述获取所述第一音频信号的第一信号幅值、所述第二音频信号的第二信号幅值以及所述第三音频信号的第三信号幅值,包括:9. The method of claim 9, wherein the obtaining a first signal amplitude of the first audio signal, a second signal amplitude of the second audio signal, and a third signal of the third audio signal Amplitude, including:
    获取同一频段下所述第一音频信号的所述第一信号幅值、所述第二音频信号的所述第二信号幅值以及所述第三音频信号的所述第三信号幅值;acquiring the first signal amplitude of the first audio signal, the second signal amplitude of the second audio signal, and the third signal amplitude of the third audio signal in the same frequency band;
    所述基于所述第一通话音量调节系数和所述第二通话音量调节系数调节所述第一音频信号的所述第一信号幅值,包括:The adjusting the first signal amplitude of the first audio signal based on the first call volume adjustment coefficient and the second call volume adjustment coefficient includes:
    基于同一频段对应的第一通话音量调节系数和所述第二通话音量调节系数,调节所述频段下所述第一音频信号的所述第一信号幅值。The first signal amplitude of the first audio signal in the frequency band is adjusted based on the first call volume adjustment coefficient and the second call volume adjustment coefficient corresponding to the same frequency band.
  11. 根据权利要求1至10任一所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 10, wherein the method further comprises:
    确定当前通话方式,所述通话方式包括手持通话、耳机通话以及外放通话中的至少一种;determining a current call mode, the call mode includes at least one of a hand-held call, a headset call, and an external call;
    响应于所述当前通话方式为手持通话,开启所述听筒和所述第一麦克风。In response to the current call mode being a hand-held call, the earpiece and the first microphone are turned on.
  12. 一种通话音量的调节装置,所述装置包括:A device for adjusting the volume of a call, the device comprising:
    信号输出模块,用于在通话过程中,向听筒输出第一音频信号,所述听筒用于基于所述第一音频信号进行发声;a signal output module, configured to output a first audio signal to an earpiece during a call, where the earpiece is used to make a sound based on the first audio signal;
    第一信号获取模块,用于获取第一麦克风采集到的第二音频信号,所述第二音频信号包括反射声音的音频信号,所述反射声音是所述听筒发出的声音在目标人体处反射后形成,所述目标人体是听筒朝向范围内的人体;The first signal acquisition module is used to acquire the second audio signal collected by the first microphone, the second audio signal includes the audio signal of the reflected sound, and the reflected sound is the sound emitted by the earpiece after being reflected at the target human body Formed, the target human body is the human body within the scope of the earpiece;
    音量调节模块,用于基于所述第一音频信号和第二音频信号确定通话音量调节方式,并对所述第一音频信号进行音量调节;a volume adjustment module, configured to determine a call volume adjustment mode based on the first audio signal and the second audio signal, and perform volume adjustment on the first audio signal;
    所述信号输出模块,还用于向所述听筒输出音量调节后的所述第一音频信号。The signal output module is further configured to output the volume-adjusted first audio signal to the earpiece.
  13. 一种终端,所述终端包括处理器、存储器、听筒和至少一个麦克风,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如权利要求1至11任一所述的通话音量的调节方法。A terminal, the terminal includes a processor, a memory, an earpiece and at least one microphone, the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement claims 1 to 11 Any of the described methods for adjusting the volume of a call.
  14. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由有处理器加载并执行以实现如权利要求1至11任一所述的通话音量的调节方法。A computer-readable storage medium, which stores at least one piece of program code, the program code is loaded and executed by a processor to realize the call volume according to any one of claims 1 to 11. adjustment method.
  15. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,以实现权利要求1至11任一所述的通话音量的调节方法。A computer program product comprising computer instructions stored in a computer-readable storage medium; a processor of a computer device reading the computer instructions from the computer-readable storage medium, the The processor executes the computer instructions to implement the method for adjusting the call volume according to any one of claims 1 to 11.
PCT/CN2022/079191 2021-03-24 2022-03-04 Call volume adjustment method and apparatus, and terminal and storage medium WO2022199354A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110315862.3 2021-03-24
CN202110315862.3A CN113067944B (en) 2021-03-24 2021-03-24 Call volume adjusting method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2022199354A1 true WO2022199354A1 (en) 2022-09-29

Family

ID=76561973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079191 WO2022199354A1 (en) 2021-03-24 2022-03-04 Call volume adjustment method and apparatus, and terminal and storage medium

Country Status (2)

Country Link
CN (1) CN113067944B (en)
WO (1) WO2022199354A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067944B (en) * 2021-03-24 2023-05-02 深圳市锐尔觅移动通信有限公司 Call volume adjusting method, device, terminal and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060147063A1 (en) * 2004-12-22 2006-07-06 Broadcom Corporation Echo cancellation in telephones with multiple microphones
CN104754080A (en) * 2013-12-30 2015-07-01 深圳富泰宏精密工业有限公司 Portable electronic device
CN105530391A (en) * 2015-12-07 2016-04-27 惠州Tcl移动通信有限公司 Method and system for perfecting hands-free call echo of mobile terminal
CN106210236A (en) * 2016-06-29 2016-12-07 联想(北京)有限公司 A kind of call control method and electronic equipment
CN108462784A (en) * 2017-02-22 2018-08-28 北京小米移动软件有限公司 In Call method of adjustment and device
CN111182118A (en) * 2020-01-03 2020-05-19 维沃移动通信有限公司 Volume adjusting method and electronic equipment
CN111314560A (en) * 2020-03-17 2020-06-19 青岛海信移动通信技术股份有限公司 Method for adjusting sound loudness and communication terminal
CN113067944A (en) * 2021-03-24 2021-07-02 深圳市锐尔觅移动通信有限公司 Method and device for adjusting call volume, terminal and storage medium
CN113890936A (en) * 2021-11-09 2022-01-04 Oppo广东移动通信有限公司 Volume adjustment method, device and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101740036B (en) * 2009-12-14 2012-07-04 华为终端有限公司 Method and device for automatically adjusting call volume
JP5834948B2 (en) * 2012-01-24 2015-12-24 富士通株式会社 Reverberation suppression apparatus, reverberation suppression method, and computer program for reverberation suppression
DE102013005049A1 (en) * 2013-03-22 2014-09-25 Unify Gmbh & Co. Kg Method and apparatus for controlling voice communication and use thereof
CN104935749A (en) * 2015-06-23 2015-09-23 惠州Tcl移动通信有限公司 Mobile terminal and method for turning off screen during calling through microphone
CN105118524B (en) * 2015-09-18 2017-10-17 广东欧珀移动通信有限公司 A kind of audio frequency playing method and device
CN106817653B (en) * 2017-02-17 2020-01-14 Oppo广东移动通信有限公司 Audio setting method and device
CN107395883A (en) * 2017-07-17 2017-11-24 广东欧珀移动通信有限公司 Voice signal adjusting method, communication terminal and computer-readable recording medium
EP3664291A4 (en) * 2017-08-18 2020-08-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Audio signal adjustment method and device, storage medium, and terminal
CN110161508A (en) * 2019-06-03 2019-08-23 Oppo广东移动通信有限公司 Distance measuring method, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060147063A1 (en) * 2004-12-22 2006-07-06 Broadcom Corporation Echo cancellation in telephones with multiple microphones
CN104754080A (en) * 2013-12-30 2015-07-01 深圳富泰宏精密工业有限公司 Portable electronic device
CN105530391A (en) * 2015-12-07 2016-04-27 惠州Tcl移动通信有限公司 Method and system for perfecting hands-free call echo of mobile terminal
CN106210236A (en) * 2016-06-29 2016-12-07 联想(北京)有限公司 A kind of call control method and electronic equipment
CN108462784A (en) * 2017-02-22 2018-08-28 北京小米移动软件有限公司 In Call method of adjustment and device
CN111182118A (en) * 2020-01-03 2020-05-19 维沃移动通信有限公司 Volume adjusting method and electronic equipment
CN111314560A (en) * 2020-03-17 2020-06-19 青岛海信移动通信技术股份有限公司 Method for adjusting sound loudness and communication terminal
CN113067944A (en) * 2021-03-24 2021-07-02 深圳市锐尔觅移动通信有限公司 Method and device for adjusting call volume, terminal and storage medium
CN113890936A (en) * 2021-11-09 2022-01-04 Oppo广东移动通信有限公司 Volume adjustment method, device and storage medium

Also Published As

Publication number Publication date
CN113067944B (en) 2023-05-02
CN113067944A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
US11294619B2 (en) Earphone software and hardware
KR102512311B1 (en) Earbud speech estimation
CN110785808B (en) Audio device with wake-up word detection
CN105280195B (en) The processing method and processing device of voice signal
US9779716B2 (en) Occlusion reduction and active noise reduction based on seal quality
WO2020057419A1 (en) Audio control method and device, and terminal
US9450555B2 (en) Gain control for an audio signal
US20140341386A1 (en) Noise reduction
US20150110298A1 (en) Sensor
CN113949956B (en) Noise reduction processing method and device, electronic equipment, earphone and storage medium
WO2015184828A1 (en) Terminal having plurality of mics, mic setting method therefor and sound quality enhancement method
WO2022199354A1 (en) Call volume adjustment method and apparatus, and terminal and storage medium
TW202021378A (en) Controlling headset method and headset
WO2017067126A1 (en) Method and apparatus for controlling sound collection range of multi-microphone de-noising of terminal
CN114333886A (en) Audio processing method and device, electronic equipment and storage medium
CN113963716A (en) Volume balancing method, device and equipment for talking doorbell and readable storage medium
CN113949955A (en) Noise reduction processing method and device, electronic equipment, earphone and storage medium
US20200015010A1 (en) Sound pickup device and sound pickup method
CN112969115B (en) Tone quality optimization method of wireless earphone and related equipment
WO2023284406A1 (en) Call method and electronic device
WO2023197474A1 (en) Method for determining parameter corresponding to earphone mode, and earphone, terminal and system
CN208015947U (en) Earphone
WO2023093113A1 (en) Mode switching method and apparatus, and audio playing device and computer-readable medium
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium
US20230421974A1 (en) Systems and methods for own voice detection in a hearing system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22774016

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.01.2024)