CN112911053B - Automatic voice call switching method, device, equipment and storage medium - Google Patents

Automatic voice call switching method, device, equipment and storage medium Download PDF

Info

Publication number
CN112911053B
CN112911053B CN202110072092.4A CN202110072092A CN112911053B CN 112911053 B CN112911053 B CN 112911053B CN 202110072092 A CN202110072092 A CN 202110072092A CN 112911053 B CN112911053 B CN 112911053B
Authority
CN
China
Prior art keywords
voice call
output mode
voice
sound source
sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110072092.4A
Other languages
Chinese (zh)
Other versions
CN112911053A (en
Inventor
李波
李述良
张少奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Fanyu Technology Co ltd
Original Assignee
Wuhan Fanyu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Fanyu Technology Co ltd filed Critical Wuhan Fanyu Technology Co ltd
Priority to CN202110072092.4A priority Critical patent/CN112911053B/en
Publication of CN112911053A publication Critical patent/CN112911053A/en
Application granted granted Critical
Publication of CN112911053B publication Critical patent/CN112911053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of communication, and discloses a method, a device, equipment and a storage medium for automatically switching voice calls, wherein the method comprises the following steps: when a voice call is started, acquiring a user voice signal in the surrounding environment; determining the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm; the target output mode of the voice call is determined according to the sound energy, and the current output mode of the voice call is switched to the target output mode.

Description

Automatic voice call switching method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for automatically switching a voice call.
Background
At present, intelligent terminal devices (such as mobile phones, tablets and the like) are widely used, the number of use scenes is very large, voice calls become indispensable functions of the devices, and when the devices are used for voice calls in daily life, the output mode of audio is generally required to be switched according to specific use scenes, for example, in a noisy environment such as a market and a station, a user can not hear a call clearly when listening simply, and the user needs to cut the call into a loudspeaker; if the user is listening to the call while something else is being done, then if the user is listening to the call with one hand and needs to switch to speaker output. The operation is very inconvenient; at present, many vehicle-mounted devices do not support the connection of a mobile phone to make or answer a call, the handheld mobile phone device is not allowed to make or answer a call in a rule, at the moment, if the mobile phone needs to make or answer a call, the mobile phone needs to be switched into loudspeaker output, if a distance sensor of the mobile phone is shielded or breaks down in the actual use process, the screen can be turned off at the moment of call connection, at the moment, if the mobile phone needs to be switched into the loudspeaker output, the mobile phone cannot be directly switched, and the operation can be carried out only after the screen is turned on by pressing a power key firstly.
Most of the schemes adopted for switching the audio output mode of the voice call in the use scenes are manual switching, so that the operation is complex, and the manual switching scheme used in a specific scene has potential safety hazards, so that how to improve the convenience and the safety of the audio output switching mode of the voice call becomes a hot point which is concerned by people.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for automatically switching voice calls, and aims to solve the technical problem that in the prior art, intelligent terminal equipment is complicated in switching voice call audio output modes.
In order to achieve the above object, the present invention provides an automatic voice call switching method, which comprises the following steps:
when a voice call is started, acquiring a user voice signal in the surrounding environment;
determining the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm;
and determining a target output mode of the voice call according to the sound energy, and switching the current output mode of the voice call to the target output mode.
Optionally, the acquiring the user voice signal in the surrounding environment when the voice call is started includes:
when a voice call is started, acquiring voice signals in the surrounding environment;
and acquiring a sound source distance corresponding to the voice signal, and selecting a user voice signal from the voice signal according to the sound source distance.
Optionally, the determining, by a preset sound energy calculation algorithm, the sound energy corresponding to the user speech signal includes:
acquiring a target sound source distance, a sound source point amplitude and white noise corresponding to the user voice signal;
and determining the sound energy corresponding to the user voice signal according to the target sound source distance, the sound source point amplitude and the white noise through a preset sound energy calculation algorithm.
Optionally, the determining, by a preset sound energy calculation algorithm, the sound energy corresponding to the user voice signal according to the target sound source distance, the sound source point amplitude, and the white noise includes:
calculating the amplitude of the acquisition point by a first preset formula according to the target sound source distance, the sound source point amplitude and the white noise;
determining and determining the sound energy corresponding to the user voice signal according to the amplitude of the acquisition point;
wherein the first preset formula is as follows:
Figure BDA0002905867870000021
wherein N (t) is white noise, t is a time parameter, L is a target sound source distance, F 1 (t) amplitude of sound source point, F 2 (t) is the acquisition point amplitude.
Optionally, the determining, according to the amplitude of the acquisition point, the sound energy corresponding to the user voice signal includes:
calculating the sound energy corresponding to the user voice signal through a second preset formula according to the amplitude of the acquisition point;
wherein the second preset formula is as follows:
Figure BDA0002905867870000022
in the formula, T is unit time, and T is a time parameter.
Optionally, the determining a target output mode of the voice call according to the sound energy, and switching the current output mode of the voice call to the target output mode includes:
judging whether the sound energy is larger than a preset energy threshold value or not;
when the sound energy is larger than a preset energy threshold value, judging that a target output mode of the voice call is a first output mode;
and if the current output mode of the voice call is the second output mode, switching the current output mode of the voice call to the first output mode.
Optionally, after the step of determining whether the sound energy is greater than a preset energy threshold, the method further includes:
when the sound energy is smaller than a preset energy threshold value, judging that the target output mode of the voice call is a second output mode;
and if the current output mode of the voice call is the first output mode, switching the current output mode of the voice call to the second output mode.
In addition, in order to achieve the above object, the present invention further provides an automatic voice call switching apparatus, including:
an acquisition module: the voice communication system is used for acquiring user voice signals in the surrounding environment when the voice communication is started;
a determination module: the voice energy calculation method comprises the steps of determining voice energy corresponding to a user voice signal through a preset voice energy calculation algorithm;
a switching module: and the voice call processing module is used for determining a target output mode of the voice call according to the sound energy and switching the current output mode of the voice call to the target output mode.
In addition, in order to achieve the above object, the present invention further provides an automatic voice call switching apparatus, including: the automatic voice call switching system comprises a memory, a processor and an automatic voice call switching program which is stored on the memory and can run on the processor, wherein the automatic voice call switching program is configured to realize the steps of the automatic voice call switching method.
In addition, in order to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a voice call automatic switching program, and the voice call automatic switching program implements the steps of the voice call automatic switching method as described above when being executed by a processor.
When the voice call is started, the voice call processing method collects the voice signals of the user in the surrounding environment; determining the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm; the target output mode of the voice call is determined according to the sound energy, the current output mode of the voice call is switched to the target output mode, and the convenience and the safety of switching the audio output mode in the voice call process are improved because the voice call method selects the user voice signal from the voice signals by collecting the voice signals in the surrounding environment, converts the user voice signal into the sound energy according to the preset sound energy calculation algorithm, determines the target output mode of the voice call according to the sound energy and automatically switches the output mode of the voice call to the target output mode.
Drawings
Fig. 1 is a schematic structural diagram of an automatic voice call switching device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for automatically switching voice calls according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of an automatic voice call handover method according to the present invention;
fig. 4 is a block diagram of the automatic voice call switching apparatus according to the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an automatic voice call switching device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the automatic voice call switching apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the automatic voice call switching apparatus and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a voice call automatic switchover program.
In the automatic voice call switching apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the automatic voice call switching device according to the present invention may be provided in the automatic voice call switching device, which calls the automatic voice call switching program stored in the memory 1005 through the processor 1001 and executes the automatic voice call switching method according to the embodiment of the present invention.
An embodiment of the present invention provides an automatic voice call switching method, and referring to fig. 2, fig. 2 is a flowchart of a first embodiment of the automatic voice call switching method according to the present invention.
In this embodiment, the method for automatically switching voice calls includes the following steps:
step S10: when a voice call is started, acquiring a user voice signal in the surrounding environment;
it should be noted that the execution subject of this embodiment is an intelligent terminal device, such as a mobile phone or a tablet, and may also be other devices having the same or similar functions.
It can be understood that the terminal intelligent device is generally provided with a microphone, and when the voice call function of the intelligent terminal is started, the microphone can collect a user voice signal.
In specific implementation, taking a mobile phone as an example, two microphones are respectively arranged at the bottom and the top of the mobile phone, the microphone at the bottom is a main microphone and is mainly used for collecting sound signals, and the microphone at the top is an auxiliary microphone and is mainly used for noise reduction and noise elimination.
Further, in order to accurately collect the user voice signal in the surrounding environment, the step S10 includes: when a voice call is started, acquiring voice signals in the surrounding environment; and acquiring a sound source distance corresponding to the voice signal, and selecting a user voice signal from the voice signal according to the sound source distance.
It can be understood that the environment of the user during the voice call is complex and various, and it is possible that in a shopping mall, a station or other noisy environment, the microphone collected voice signal not only includes the user voice signal, but also has an interference signal in the environment.
It should be understood that terminal intelligent equipment is generally provided with a distance sensor, can perceive the distance between other objects and the equipment, combines the sound signal collected by a microphone, can obtain the sound source distance corresponding to the sound signal, and selects the sound source closest to the equipment in each sound source distance as the user voice signal.
Step S20: determining the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm;
it can be understood that the preset sound energy calculation algorithm is an algorithm for converting the user voice signal collected by the microphone into corresponding sound energy.
Step S30: and determining a target output mode of the voice call according to the sound energy, and switching the current output mode of the voice call to the target output mode.
It should be understood that the sound energy may reflect the intensity of the sound, and the determination of how the voice call outputs the audio ensures the current call quality is based on the sound energy.
Further, in order to improve the safety and convenience of switching the audio output mode during the voice call, the step S30 includes: judging whether the sound energy is larger than a preset energy threshold value or not; when the sound energy is larger than a preset energy threshold value, judging that a target output mode of the voice call is a first output mode; and if the current output mode of the voice call is the second output mode, switching the current output mode of the voice call to the first output mode.
It can be understood that the preset energy threshold is the sound energy when the user normally uses the receiver to perform voice call, and can be calculated by a laboratory to obtain the sound energy which is pre-stored in a local storage, so that the use habit of the user can be counted in the subsequent use, and the preset energy threshold is automatically updated.
It should be understood that the sound energy is greater than the preset energy threshold, so that it can be determined that the loudness of the sound output by the intelligent terminal device is not strong enough to ensure the call quality.
In a specific implementation, taking a mobile phone as an example, the first output mode may be a receiver output, the second output mode may be a speaker output, when the sound energy is greater than a preset energy threshold, the target output mode is the receiver output, and if the audio output mode of the current mobile phone voice call is the speaker output, the target output mode is automatically switched to the receiver output.
Further, in order to improve the safety and convenience of switching the audio output mode in the voice call process, after the step of determining whether the sound energy is greater than the preset energy threshold, the method further includes: when the sound energy is smaller than a preset energy threshold value, judging that the target output mode of the voice call is a second output mode; and if the current output mode of the voice call is the first output mode, switching the current output mode of the voice call to the second output mode.
It can be understood that, if a mobile phone is taken as an example, the first output mode may be a receiver output, the second output mode may be a speaker output, when the sound energy is smaller than the preset energy threshold, it indicates that the distance of sound source amplitude propagation is greatly attenuated, and the target output mode is the speaker output, but in the actual use process, there is a case that the current output mode of the voice call is already the speaker output, and at this time, the current output mode is kept unchanged, and when the current output mode of the voice call is the receiver output, the current output mode is automatically switched to the speaker output.
In a specific implementation, taking a mobile phone as an example, a main microphone of the mobile phone collects sound signals in a surrounding environment, a distance sensor of the mobile phone is combined, a user speech signal is selected from the collected sound signals, sound energy corresponding to the user speech signal is determined through a preset sound energy calculation algorithm, the sound energy is compared with a preset energy threshold, when the sound energy is greater than the preset energy threshold, if an output mode of a current speech call audio is a speaker output, the current speech call audio is automatically switched to a receiver output, and when the sound energy is less than the preset energy threshold, if the output mode of the current speech call audio is a receiver output, the current speech call audio is automatically switched to a speaker output.
In the embodiment, when the voice call is started, the voice signals of the user in the surrounding environment are collected; determining the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm; the target output mode of the voice call is determined according to the sound energy, the current output mode of the voice call is switched to the target output mode, and the target output mode of the voice call can be determined and automatically switched according to the sound energy in the voice call process because the embodiment collects the voice signals in the surrounding environment, selects the user voice signals from the voice signals, converts the collected user voice signals into the sound energy according to the preset sound energy calculation algorithm, and determines the output mode of the voice call according to the sound energy.
Referring to fig. 3, fig. 3 is a flowchart illustrating an automatic voice call handover method according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S20 includes:
step S201: acquiring a target sound source distance, a sound source point amplitude and white noise corresponding to the user voice signal;
it can be understood that the target sound source distance is the distance between the position of the sound source sent by the user and the intelligent terminal device, and the intelligent terminal device is generally provided with a sensor, so that the target sound source distance can be obtained through the sensor.
It should be understood that the sound source point amplitude can be acquired by a microphone set by the intelligent terminal device, and white noise is a constant and can be set in advance and stored in the memory.
Step S202: and determining the sound energy corresponding to the user voice signal according to the target sound source distance, the sound source point amplitude and the white noise by a preset sound energy calculation algorithm.
It can be understood that after the target sound source distance, the sound source point amplitude and the white noise are obtained, the sound energy corresponding to the user voice signal can be obtained according to the obtained data information and a preset sound energy calculation algorithm.
Further, in order to improve the safety and convenience of switching the audio output mode during the voice call, the step S202 includes:
calculating the amplitude of the acquisition point by a first preset formula according to the target sound source distance, the sound source point amplitude and the white noise;
it can be understood that the amplitude of the sound source point is transmitted to the device through attenuation, and the amplitude of the acquisition point, that is, the amplitude of the sound when the amplitude of the sound source point is transmitted to the device, can be obtained through a first preset formula according to the distance of the target sound source, the amplitude of the sound source point and the white noise.
Determining and determining the sound energy corresponding to the user voice signal according to the amplitude of the acquisition point;
understandably, the amplitude of the collected point of the sound in unit time is obtained, the square of the amplitude of the collected point of the sound in unit time is calculated, then the sum is carried out to obtain the sound energy, and the sound energy can be updated in real time in the voice call process.
Wherein the first preset formula is as follows:
Figure BDA0002905867870000081
wherein N (t) is white noise, t is a time parameter, L is a target sound source distance, F 1 (t) amplitude of sound source point, F 2 (t) is the acquisition point amplitude.
Further, in order to improve convenience and safety of switching an audio output mode during a voice call, the determining, according to the sound amplitude per unit time, the sound energy corresponding to the user voice signal includes:
calculating the sound energy corresponding to the user voice signal through a second preset formula according to the amplitude of the acquisition point;
it can be understood that after the amplitude of the acquisition point is obtained, the square of the sound amplitude in the unit time T can be taken, and then the sound amplitude and the square are summed to obtain the sound energy corresponding to the voice call signal.
Wherein the second predetermined formula is:
Figure BDA0002905867870000082
in the formula, T is unit time, and T is a time parameter.
In the embodiment, a target sound source distance, a sound source point amplitude and white noise corresponding to the user voice signal are obtained; and determining the sound energy corresponding to the user voice signal according to the target sound source distance, the sound source point amplitude and the white noise by a preset sound energy calculation algorithm.
In addition, an embodiment of the present invention further provides a storage medium, where a voice call automatic switching program is stored on the storage medium, and the voice call automatic switching program, when executed by a processor, implements the steps of the voice call automatic switching method described above.
Referring to fig. 4, fig. 4 is a block diagram illustrating a first embodiment of an automatic voice call switching apparatus according to the present invention.
As shown in fig. 4, the automatic voice call switching apparatus according to the embodiment of the present invention includes: the device comprises an acquisition module 10, a determination module 20 and a switching module 30.
The acquisition module 10: the voice call processing device is used for acquiring a user voice signal in the surrounding environment when a voice call is started;
the determination module 20: the voice energy calculation method comprises the steps of determining voice energy corresponding to a user voice signal through a preset voice energy calculation algorithm;
the switching module 30: and the voice call processing module is used for determining a target output mode of the voice call according to the sound energy and switching the current output mode of the voice call to the target output mode.
In the embodiment, when the voice call is started, the acquisition module 10 acquires the user voice signal in the surrounding environment; the determining module 20 determines the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm; the switching module 30 determines a target output mode of the voice call according to the sound energy, and switches a current output mode of the voice call to the target output mode.
Further, in order to further accurately acquire the voice signal in the surrounding environment, the acquisition module 10 is further configured to acquire the voice signal in the surrounding environment when the voice call is started; and acquiring a sound source distance corresponding to the voice signal, and selecting a user voice signal from the voice signal according to the sound source distance.
Further, in order to improve the safety and convenience of switching the audio output mode in the voice call process, the switching module 30 is further configured to determine whether the sound energy is greater than a preset energy threshold; when the sound energy is larger than a preset energy threshold value, judging that a target output mode of the voice call is a first output mode; and if the current output mode of the voice call is the second output mode, switching the current output mode of the voice call to the first output mode.
Further, in order to improve the safety and convenience of switching the audio output mode during the voice call, the switching module 30 is further configured to: when the sound energy is smaller than a preset energy threshold value, judging that the target output mode of the voice call is a second output mode; and if the current output mode of the voice call is the first output mode, switching the current output mode of the voice call to the second output mode.
Further, in order to improve the safety and convenience of switching the audio output mode in the voice call process, the determining module 20 is further configured to calculate the amplitude of the acquisition point according to the target sound source distance, the amplitude of the sound source point, and the white noise by using a first preset formula; determining the sound amplitude of the user voice signal in unit time according to the amplitude of the acquisition point; determining the sound energy corresponding to the user voice signal according to the unit time sound amplitude; wherein the first preset formula is as follows:
Figure BDA0002905867870000101
wherein N (t) is white noise, t is a time parameter, L is a target sound source distance, F 1 (t) amplitude of sound source point, F 2 (t) is the acquisition point amplitude.
Further, in order to improve the safety and convenience of switching the audio output mode in the voice call process, the determining module 20 is further configured to calculate, according to the sound amplitude in unit time, the sound energy corresponding to the user voice signal by using a second preset formula;
Figure BDA0002905867870000102
in the formula, T is unit time, and T is a time parameter.
Other embodiments or specific implementation manners of the automatic voice call switching device of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for automatically switching voice calls is characterized by comprising the following steps:
when a voice call is started, acquiring a user voice signal in the surrounding environment;
determining the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm;
determining a target output mode of the voice call according to the sound energy, and switching the current output mode of the voice call into the target output mode;
the determining the sound energy corresponding to the user voice signal through a preset sound energy calculation algorithm includes:
acquiring a target sound source distance, a sound source point amplitude and white noise corresponding to the user voice signal;
determining the sound energy corresponding to the user voice signal according to the target sound source distance, the sound source point amplitude and the white noise through a preset sound energy calculation algorithm;
the determining the sound energy corresponding to the user voice signal according to the target sound source distance, the sound source point amplitude and the white noise through a preset sound energy calculation algorithm comprises the following steps:
calculating the amplitude of the acquisition point by a first preset formula according to the target sound source distance, the sound source point amplitude and the white noise;
determining and determining the sound energy corresponding to the user voice signal according to the amplitude of the acquisition point;
wherein the first preset formula is as follows:
Figure FDA0003744722420000011
wherein N (t) is white noise, t is a time parameter, L is a target sound source distance, F 1 (t) amplitude of sound source point, F 2 (t) is the acquisition point amplitude.
2. The method of claim 1, wherein collecting user voice signals in an ambient environment at the time of voice call initiation comprises:
when a voice call is started, acquiring voice signals in the surrounding environment;
and acquiring a sound source distance corresponding to the voice signal, and selecting a user voice signal from the voice signal according to the sound source distance.
3. The method of claim 1, wherein said determining the acoustic energy corresponding to the user speech signal from the acquisition point amplitude determination comprises:
calculating the sound energy corresponding to the user voice signal through a second preset formula according to the amplitude of the acquisition point;
wherein the second preset formula is as follows:
Figure FDA0003744722420000021
in the formula, T is unit time, and T is a time parameter.
4. The method of claim 1, wherein the determining a target output mode for a voice call based on the voice energy, and switching a current output mode for the voice call to the target output mode comprises:
judging whether the sound energy is larger than a preset energy threshold value or not;
when the sound energy is larger than a preset energy threshold value, judging that a target output mode of the voice call is a first output mode;
and if the current output mode of the voice call is the second output mode, switching the current output mode of the voice call to the first output mode.
5. The method of claim 4, wherein after the step of determining whether the sound energy is greater than a preset energy threshold, the method further comprises:
when the sound energy is smaller than a preset energy threshold value, judging that the target output mode of the voice call is a second output mode;
and if the current output mode of the voice call is the first output mode, switching the current output mode of the voice call to the second output mode.
6. An automatic switching device for voice call, the device comprising:
an acquisition module: the voice communication system is used for acquiring user voice signals in the surrounding environment when the voice communication is started;
a determination module: the voice energy calculation method comprises the steps of determining voice energy corresponding to a user voice signal through a preset voice energy calculation algorithm;
a switching module: the voice call processing device is used for determining a target output mode of a voice call according to the sound energy and switching the current output mode of the voice call to the target output mode;
the determining module is further configured to obtain a target sound source distance, a sound source point amplitude and white noise corresponding to the user voice signal; determining the sound energy corresponding to the user voice signal according to the target sound source distance, the sound source point amplitude and the white noise through a preset sound energy calculation algorithm;
the determining module is further used for calculating the amplitude of the acquisition point through a first preset formula according to the target sound source distance, the sound source point amplitude and the white noise; determining and determining the sound energy corresponding to the user voice signal according to the amplitude of the acquisition point; wherein the first preset formula is as follows:
Figure FDA0003744722420000031
wherein N (t) is white noise, t is a time parameter, L is a target sound source distance, F 1 (t) amplitude of sound source point, F 2 (t) is the acquisition point amplitude.
7. An automatic switching apparatus for voice call, comprising: a memory, a processor and a voice call automatic switching program stored on the memory and executable on the processor, the voice call automatic switching program being configured to implement the steps of the voice call automatic switching method according to any one of claims 1 to 5.
8. A storage medium having a voice call automatic switching program stored thereon, wherein the voice call automatic switching program, when executed by a processor, implements the steps of the voice call automatic switching method according to any one of claims 1 to 5.
CN202110072092.4A 2021-01-19 2021-01-19 Automatic voice call switching method, device, equipment and storage medium Active CN112911053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110072092.4A CN112911053B (en) 2021-01-19 2021-01-19 Automatic voice call switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110072092.4A CN112911053B (en) 2021-01-19 2021-01-19 Automatic voice call switching method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112911053A CN112911053A (en) 2021-06-04
CN112911053B true CN112911053B (en) 2022-09-13

Family

ID=76116211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110072092.4A Active CN112911053B (en) 2021-01-19 2021-01-19 Automatic voice call switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112911053B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079420A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5224151A (en) * 1992-04-01 1993-06-29 At&T Bell Laboratories Automatic handset-speakephone switching arrangement for portable communication device
CN1893471A (en) * 2005-07-08 2007-01-10 英华达(上海)电子有限公司 Method for automatically regulating earphone volume of hand-set
US8908877B2 (en) * 2010-12-03 2014-12-09 Cirrus Logic, Inc. Ear-coupling detection and adjustment of adaptive response in noise-canceling in personal audio devices
CN102982823B (en) * 2012-11-26 2015-12-23 中兴通讯股份有限公司 A kind of method and apparatus of automatic regulating volume
CN105635489A (en) * 2016-03-23 2016-06-01 北京小米移动软件有限公司 Call communication mode processing method and device
CN106961509B (en) * 2017-04-25 2019-12-31 Oppo广东移动通信有限公司 Call parameter processing method and device and electronic equipment
CN107332998A (en) * 2017-07-05 2017-11-07 深圳天珑无线科技有限公司 Call mode switching method, mobile terminal and readable storage medium storing program for executing
CN107613431A (en) * 2017-08-23 2018-01-19 广东思派康电子科技有限公司 The broadcaster of computer-readable recording medium, self-adjusting output volume
CN107659328B (en) * 2017-09-27 2019-06-25 Oppo广东移动通信有限公司 Call control method, device, terminal, phone system and readable storage medium storing program for executing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079420A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
CN112911053A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
EP3163748B1 (en) Method, device and terminal for adjusting volume
US9641145B2 (en) Apparatus and method for outputting audio according to audio tables
EP1555796A1 (en) On-vehicle handsfree system
JP2007520943A (en) Extended use of phones in noisy environments
EP3125512A1 (en) Silent ring indication while listening music over a headset
CN107785027B (en) Audio processing method and electronic equipment
CN107277209B (en) Call adjustment method and mobile terminal
CN106888327B (en) Voice playing method and device
CN110602696A (en) Conversation privacy protection method and electronic equipment
CN109743618B (en) Music playing method, terminal and computer readable storage medium
JP2011227199A (en) Noise suppression device, noise suppression method and program
CN112185388B (en) Speech recognition method, device, equipment and computer readable storage medium
CN111459447B (en) Volume adjustment display method and electronic equipment
CN108432220B (en) Method and terminal for switching call mode
CN109873894B (en) Volume adjusting method and mobile terminal
US20240147128A1 (en) Mode control method, device for bluetooth headset, and computer readable storage medium
CN112291672B (en) Speaker control method, control device and electronic equipment
CN112911053B (en) Automatic voice call switching method, device, equipment and storage medium
CN109889665B (en) Volume adjusting method, mobile terminal and storage medium
CN112019948B (en) Intercommunication method for intercom equipment, intercom equipment and storage medium
CN104980583A (en) Event reminding method and terminal
JP5707871B2 (en) Voice communication device and mobile phone
CN110754097B (en) Call control method, device, terminal equipment and storage medium
CN113766385B (en) Earphone noise reduction method and device
CN111756893A (en) Audio output method, electronic device, and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant