Disclosure of Invention
The embodiment of the invention provides a voice call method and a terminal, aiming at solving the problem that a voice call mode in the prior art needs to be always closer to a communication terminal, so that inconvenience is brought to voice call of a user.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect, a voice call method is provided, which is applied to a terminal and includes:
acquiring a voice signal acquired by at least one first device within a preset range, wherein the voice signal is a sound signal emitted by a target user;
determining a first device corresponding to the voice signal with the highest signal quality as a first target device according to the signal quality of the voice signal;
and sending the voice signal acquired by the first target equipment to a second terminal.
Optionally, before the step of acquiring the voice signal acquired by the at least one first device within the preset range, the method further includes:
respectively acquiring a first audio signal acquired by each first device;
matching the voiceprint of the first audio signal with a preset voiceprint;
and if the voiceprint of the first audio signal is matched with the preset voiceprint, determining that the first audio signal is the voice signal.
Optionally, the first audio signal comprises at least one audio signal;
the step of determining that the first audio signal is the speech signal if the voiceprint of the first audio signal matches the preset voiceprint comprises:
and determining the audio signal matched with the preset voiceprint in the first audio signal as the voice signal acquired by the first equipment.
Optionally, before the step of sending the voice signal collected by the first target device to the second terminal, the method further includes:
detecting the state of the first terminal;
when the first terminal is in a call state, determining second target equipment in at least one second equipment within the preset range; the second device is a device with a voice playing function.
Optionally, after determining the second target device, the method further includes:
and sending the received call voice of the user of the second terminal to the second target device, and playing the call voice of the user of the second terminal through the second target device.
Optionally, the step of determining a second target device in the at least one second device within the preset range includes:
determining whether the first target device has a voice playing function;
when the first target device has a voice playing function, determining the first target device as the second target device;
when the first target equipment does not have the voice playing function, determining second equipment closest to the first target equipment as the second target equipment according to the pre-stored distance between the equipment; and the pre-stored distance between the devices is the pre-stored distance between the first device and the second device.
Optionally, before the step of acquiring the voice signal acquired by at least one first device within the preset range, the method further includes:
searching for a first device and a second device within the preset range;
and establishing a device list according to the search result.
Optionally, the step of determining, according to the signal quality of the voice signal, the first device corresponding to the voice signal with the highest signal quality as the first target device includes:
and acquiring the signal quality of the voice signal according to the voice signal of the first device in the device list, and determining the first device corresponding to the voice signal with the highest signal quality as the first target device.
Optionally, after determining, according to the signal quality of the voice signal, that the first device corresponding to the voice signal with the highest signal quality is the first target device, the method further includes:
detecting the signal quality of the voice signal acquired by the first target equipment in real time or in a timing manner;
and when the signal quality of the acquired voice signal is lower than the preset signal quality, determining the device with the highest signal quality of the acquired voice signal as the first target device in the first devices except the first target device.
In a second aspect, a terminal is provided, including:
the first acquisition module is used for acquiring a voice signal acquired by at least one first device within a preset range, wherein the voice signal is a sound signal sent by a target user;
a first selection module, configured to determine, according to the signal quality of the voice signal obtained by the first obtaining module, a first device corresponding to the voice signal with the highest signal quality as a first target device;
and the first sending module is used for sending the voice signal collected by the first target equipment selected by the first selecting module to a second terminal.
Optionally, the terminal further includes:
the second acquisition module is used for respectively acquiring the first audio signal acquired by each first device;
the matching module is used for matching the voiceprint of the first audio signal acquired by the second acquisition module with a preset voiceprint;
and the determining module is used for determining that the first audio signal is the voice signal when the matching module determines that the voiceprint of the first audio signal is matched with the preset voiceprint.
Optionally, the first audio signal comprises at least one audio signal;
the determining module comprises:
the first determining unit is configured to determine an audio signal matched with the preset voiceprint in the first audio signal as the voice signal acquired by the first device.
Optionally, the terminal further includes:
the first detection module is used for detecting the state of the first terminal;
the second selection module is used for determining a second target device in at least one second device within the preset range when the first detection module detects that the first terminal is in a call state; the second device is a device with a voice playing function.
Optionally, the terminal further includes:
and the second sending module is used for sending the received call voice of the user of the second terminal to the second target device and playing the call voice of the user of the second terminal through the second target device.
Optionally, the second selecting module includes:
a second determination unit configured to determine whether the first target device has a voice play function;
a first selection unit configured to determine the first target device as the second target device when the second determination unit determines that the first target device has a voice play function;
a second selecting unit, configured to determine, when the second determining unit determines that the first target device does not have a voice playing function, a second device closest to the first target device as the second target device according to a pre-stored distance between devices; and the pre-stored distance between the devices is the pre-stored distance between the first device and the second device.
Optionally, the terminal further includes:
the device searching module is used for searching the first device and the second device in the preset range;
and the list establishing module is used for establishing an equipment list according to the search result of the equipment searching module.
Optionally, the first selection module includes:
a third selecting unit, configured to obtain, according to the voice signal of the first device in the device list, signal quality of the voice signal, and determine, as the first target device, the first device corresponding to the voice signal with the highest signal quality.
Optionally, the terminal further includes:
the second detection module is used for detecting the signal quality of the voice signal acquired by the first target equipment in real time or at regular time;
and the third selection module is used for determining the device with the highest signal quality of the acquired voice signals as the first target device in the first devices except the first target device when the signal quality of the acquired voice signals is lower than the preset signal quality.
In a third aspect, a terminal is provided, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the voice call method as described above.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the voice call method as described above.
In the embodiment of the invention, when a user is in voice communication, some electronic equipment with a voice acquisition function around can participate in the voice communication. The electronic equipment with good quality of collected voice signals is used as a microphone in the voice call process of the home terminal so as to collect the voice signals of the home terminal user. Therefore, the voice signal of the local terminal user can be collected without being limited by the first terminal while the call quality is ensured, more freedom of selection is provided for the voice call of the user, and the voice call of the user is facilitated.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
According to an aspect of the embodiments of the present invention, a voice call method is provided, which is applied to a first terminal, where the first terminal is a communication terminal, including but not limited to a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, and the like. Voice calls described herein include, but are not limited to: a voice call performed through a voice call service in third-party application software, or a voice call performed through a voice call service provided by an operator, and the like.
As shown in fig. 1, the voice call method includes:
step 101: the method comprises the steps of obtaining a voice signal collected by at least one first device within a preset range.
The first device described herein is a device having a speech acquisition function, such as a device provided with microphone hardware. The first device may be a non-communication electronic device such as a home appliance.
The preset range described herein refers to a range of a certain place, such as a home range of a user. The first terminal can enumerate first equipment with a voice acquisition function in a preset range by means of an enumeration interface (named as IotAPI.
The voice signal is a voice signal sent by a target user, and the target user is a home terminal user in a voice call.
The state of voice call described herein may be a handsfree call state or the like.
In the embodiment of the invention, when the first terminal detects that the first terminal is in a voice call state, the first terminal acquires the voice signal of the target user, which is acquired by at least one first device within a preset range, so that in the subsequent steps, one device is determined in the first device according to the signal quality of the voice signal and is used as a microphone for acquiring the voice signal of the target user in the voice call.
Step 102: and determining the first equipment corresponding to the voice signal with the highest signal quality as first target equipment according to the signal quality of the voice signal acquired by the first equipment.
In this step, according to the signal quality of the voice signal acquired by each first device obtained instep 101, the voice signal with the highest signal quality is determined, and the first device corresponding to the voice signal with the highest signal quality (i.e., the first device acquiring the voice signal with the highest signal quality) is determined as the first target device, so as to be used in the voice call to acquire the voice signal of the target user.
Optionally, in this step, when analyzing the quality of the speech signal, parameters such as amplitude, frequency response, distortion degree, and signal-to-noise ratio of the speech signal may be weighted and calculated, so as to determine the signal quality of each speech signal.
Optionally, after the first target device is determined, other devices in the first device except the first target device may be controlled to stop acquiring the audio signal, so as to reduce power consumption of the device.
Step 103: and sending the voice signal collected by the first target device to the second terminal.
The second terminal is an opposite terminal of the voice call.
In the embodiment of the present invention, after the first target device is determined instep 102, the voice signal of the target user collected by the first target device is sent to the first terminal, and the voice signal of the target user collected by the first target device is sent to the opposite end of the voice call by the first terminal, so that the voice signal of the target user is sent in the voice call process.
In the embodiment of the invention, when a user is in voice communication, some electronic equipment with a voice acquisition function around can participate in the voice communication. The electronic equipment with good quality of collected voice signals is used as a microphone in the voice call process of the home terminal so as to collect the voice signals of the home terminal user. Therefore, the voice signal of the local terminal user can be collected without being limited by the first terminal while the call quality is ensured, more freedom of selection is provided for the voice call of the user, and the voice call of the user is facilitated. In addition, the surrounding non-communication electronic equipment can be fully utilized, and the utilization rate of the non-communication electronic equipment is improved.
Optionally, before acquiring the voice signal collected by at least one first device within the preset range instep 101, the method further includes: respectively acquiring a first audio signal acquired by each first device; matching the voiceprint of the first audio signal with a preset voiceprint; and if the voiceprint of the first audio signal is matched with the preset voiceprint, determining the first audio signal as the voice signal.
The preset voiceprint described herein is generated based on a pre-recorded voice signal of the target user.
Optionally, the first audio signal comprises at least one audio signal. The determining that the first audio signal is the speech signal if the voiceprint of the first audio signal matches the preset voiceprint includes: and determining the audio signal matched with the preset voiceprint in the first audio signal as the voice signal collected by the first equipment.
In the embodiment of the invention, when the first device acquires the voice signal of the target user, the first device may also acquire the sound generated by other sound sources such as other people and objects, so as to avoid the influence of the sound generated by other sound sources on the signal quality judgment of the voice signal; then, matching the voiceprint of each first audio signal with a preset voiceprint respectively; and finally, determining the audio signal matched with the preset voiceprint in the first audio signal as the voice signal acquired by the first equipment.
In the embodiment of the present invention, the principle of obtaining the voice signal of the target user acquired by the first device through the voiceprint is as follows:
since the vocal organs used by a person during speaking are very different from person to person in terms of size and shape, the vocal print maps of any two persons are different, and are mainly reflected in the following aspects:
a. the resonance mode is characterized in that: pharyngeal resonance, nasal resonance and oral resonance.
b. Voice purity characteristics: the different people's voices are generally of different purities, roughly classified into three grades of high purity (bright), low purity (dull) and medium purity.
c. Average pitch characteristics: the average sound level is said to be high or low voice.
d. The range characteristic: the level of the sound field is known as whether the sound is full or flat.
The distribution conditions of formants of different people's voices in a voiceprint spectrogram are different, and the voiceprint recognition is to judge whether the two voices are the same person or not by comparing the vocalization of the two voices on the same phoneme, so that the function of people's voice recognition is realized.
Optionally, when determining the first device corresponding to the voice signal with the highest signal quality, the signal quality of each voice signal may be compared with a preset signal quality, the voice signals with the signal quality greater than the preset signal quality are screened out, and then the first device corresponding to the voice signal with the highest signal quality is determined as the first target device from the screened out voice signals.
When the signal quality of all the voice signals is less than or equal to the preset signal quality, the voice signal with the highest signal quality can be screened out, and the voice signal is optimized in a mode of increasing the gain of the audio signal. The audio signal Gain can convert the received analog signal into a digital signal through an Automatic Gain Control (AGC) algorithm, and then the digital signal is converted into an analog signal through an amplification module.
The preset signal quality may be determined according to an experience threshold of a user, or may be a parameter value for ensuring the basic communication quality under big data.
Optionally, in the embodiment of the present invention, in addition to determining the first target device serving as the microphone in the home terminal voice call, a second target device serving as the speaker in the home terminal voice call may also be determined within a preset range, so that the target user can listen to the call voice of the peer user. The specific implementation mode can be as follows: detecting the state of the first terminal; and when the first terminal is detected to be in a call state, determining second target equipment in at least one second equipment within a preset range.
After the second target device is determined, the first terminal may send the received call voice of the user of the second terminal (i.e., the peer user) to the second target device, and play the call voice of the user of the second terminal through the second target device.
The second device described herein is a device having a voice playback function, such as a device provided with speaker hardware. The second device may be a non-communication electronic device such as a home appliance. The second target device is the same device or a different device than the first target device. When the second target device and the first target device are the same device, the device is indicated to have the voice acquisition function and the voice playing function.
In the embodiment of the invention, some surrounding electronic equipment with a voice acquisition function can participate in the voice call, and some surrounding electronic equipment with a voice playing function can also participate in the voice call, so that the playing of the call voice of the opposite-end user is not limited to the playing through the first terminal, more freedom of selection is provided for the voice call of the user, and the voice call of the user is facilitated. In addition, the surrounding non-communication electronic equipment can be fully utilized, and the utilization rate of the non-communication electronic equipment is improved.
Optionally, determining a second target device in at least one second device within the preset range includes: determining whether the first target device has a voice playing function; when the first target equipment has a voice playing function, determining the first target equipment as second target equipment; and when the first target equipment does not have the voice playing function, determining second equipment closest to the first target equipment as second target equipment according to the pre-stored distance between the equipment.
The pre-stored distance between the devices is a pre-stored distance between each first device and each second device.
The first target device is a device which collects the voice signal quality of the target user to the best, and shows that the first target device is closer to the target user, and the device closer to the target user should be selected for the convenience of listening to the call voice of the opposite-end user by the target user. When the first target device does not have the voice playing function, the second device closest to the first target device may be determined as the second target device according to the pre-stored distance between the devices.
Optionally, before thestep 101 acquires the voice signal acquired by at least one first device within the preset range, the method further includes: and searching the first equipment and the second equipment within a preset range, and establishing an equipment list according to a search result.
In the embodiment of the present invention, device lists may also be respectively established in advance for a first device and a second device within a preset range. When the device list is established, it may be determined whether a current location of the first terminal is a preset location (e.g., home). When the current location of the first terminal is a preset location, searching for a first device and a second device within a preset range, and respectively adding the searched names of the first device and the second device to corresponding device lists, for example, adding the name of the first device to the first device list, and adding the name of the second device to the second device list, so as to record the first device and the second device, so that the first device and the second device can be quickly determined through the device list during voice communication.
The first terminal can enumerate devices with a voice acquisition function and devices with a voice playing function in a preset range by means of an enumeration interface (named as IotAPI. It will be appreciated that the device list for the first device and the device list for the second device may also be established manually by the user.
Further, under the condition that the device list is established, when it is detected that the first terminal is in the voice call state, the signal quality of the voice signal can be obtained according to the voice signal acquired by the first device in the device list, and the first device corresponding to the voice signal with the highest signal quality is determined as the first target device.
Optionally, in the embodiment of the present invention, a switch may be set for the voice call method. When the switch is in an on state, when the current location of the first terminal is detected to be a preset location, the first device and the second device within a preset range are automatically searched. And the steps in the voice call method provided by the embodiment of the invention are executed when the switch is in the on state.
Optionally, after determining, according to the signal quality of the voice signal, the first device corresponding to the voice signal with the highest signal quality as the first target device, the signal quality of the voice signal acquired by the first target device may also be detected in real time or at regular time, and when the signal quality of the voice signal acquired by the first target device is lower than the preset signal quality, the device with the highest signal quality of the acquired voice signal is determined as the first target device in the first devices other than the current first target device.
In the embodiment of the invention, in order to ensure the voice call quality of the user, the signal quality of the voice signal acquired by the first target device can be detected in real time or at regular time. When the signal quality of the voice signal acquired by the first target equipment is lower than the preset signal quality, the other first equipment can be controlled to acquire the voice signal of the target user, and one equipment with the highest signal quality of the acquired voice signal is reselected as the first target equipment.
Further, according to the above-mentioned method for determining a second target device, a second target device may be re-determined for the user to use according to the re-determined first target device.
Optionally, before acquiring the voice signal collected by at least one first device within the preset range instep 101, the method further includes: receiving a call request; and when the call request is not answered within the preset time, sending a call prompt tone to a preset third target device, and playing the call prompt tone through the third target device.
The third target device is a device having a voice playing function, and the third target device may be a device preset by a user, and the third target device is generally in a state of playing sound for a long time and having a large volume.
In the embodiment of the invention, in order to remind the user of the incoming call, the incoming call prompt tone can be sent to the preset third target device when the call request lasts for the preset time and is not answered, and the incoming call prompt tone is played through the third target device, so that the problem that the user cannot find the incoming call in time and misses the incoming call due to the fact that the incoming call prompt tone of the first terminal is too small is solved.
Optionally, the first device and the second device in the embodiment of the present invention may be internet of things devices, and information interaction may be performed between the first device and the first terminal through an internet of things technology. If the internet of things equipment decodes the collected voice signals, digital signals are generated and sent to the first terminal through the internet of things technology, or the internet of things equipment receives the digital signals and converts the digital signals into analog voice signals which can be understood by human ears through a digital-to-analog conversion chip and then the analog voice signals are played.
The internet of things technology can be wireless communication technology such as bluetooth, WiFi or cellular mobile communication network (such as 2G, 3G, 4G, 5G, etc.).
In order to better understand the voice call method provided by the embodiment of the present invention, the following example is further explained.
Step 201: when the first terminal is located at a preset place (such as a home), detecting the Internet of things equipment with the microphone and/or the loudspeaker function within the range of the preset place, and respectively establishing an equipment list aiming at the Internet of things equipment with the microphone function and the Internet of things equipment with the loudspeaker function.
As shown in fig. 3, a dotted rectangle represents a preset location range. The method comprises the steps that the mobile phone obtains Internet of things equipment with a microphone and/or loudspeaker function within a preset place range, and an equipment list is respectively established. When one piece of internet of things equipment has the microphone function and the loudspeaker function, the name of the piece of internet of things equipment is added to the two equipment lists respectively.
Step 202: when the mobile phone is in a voice call state, whether the mobile phone is in a hands-free call state is detected.
When the mobile phone is in the hands-free call state, it indicates that the user may not be convenient to hold the mobile phone for calling. When the mobile phone is in the receiver mode, the user can conveniently hold the mobile phone to receive the call.
Step 203: when the mobile phone is in a hands-free call state, the mobile phone matches the sound signals collected by each Internet of things device with a microphone function with the preset voiceprint respectively according to a pre-established device list, and selects the sound signals matched with the preset voiceprint from the sound signals.
Step 204: and comparing the signal quality of the screened voice signals with preset signal quality, and screening out the Internet of things equipment with the best signal quality and with the microphone function.
Step 205: the internet of things equipment with the microphone function and the best signal quality is controlled to be in a working state, voice signals of a target user are continuously collected, and other internet of things equipment with the microphone function is controlled to sleep.
Step 206: when a user moves within a preset place range, if the signal quality of a voice signal acquired by the Internet of things equipment with the microphone function in the working state is lower than the preset signal quality, other Internet of things equipment with the microphone function is awakened, the acquired voice signal quality of the Internet of things equipment with the microphone function is enabled to be optimal, the Internet of things equipment with the microphone function is in the working state, and the voice signal of a target user is acquired, so that the conversation quality of the user is guaranteed.
In summary, in the embodiments of the present invention, when a user performs a voice call, some peripheral electronic devices having a voice acquisition function may participate in the voice call. The electronic equipment with good quality of collected voice signals is used as a microphone in the voice call process of the home terminal so as to collect the voice signals of the home terminal user. Therefore, the voice signal of the local terminal user can be collected without being limited by the first terminal while the call quality is ensured, more freedom of selection is provided for the voice call of the user, and the voice call of the user is facilitated.
According to another aspect of the embodiments of the present invention, a terminal is provided, where the terminal is a first terminal, and details of the voice call method can be implemented, and the same effect can be achieved.
As shown in fig. 4, the terminal includes:
the first obtainingmodule 401 is configured to obtain a voice signal collected by at least one first device within a preset range.
The voice signal described herein is a sound signal emitted by a target user.
A first selectingmodule 402, configured to determine, according to the signal quality of the voice signal obtained by the first obtainingmodule 401, a first device corresponding to the voice signal with the highest signal quality as a first target device.
Afirst sending module 403, configured to send the voice signal collected by the first target device selected by the first selectingmodule 402 to a second terminal.
Optionally, the terminal further includes:
and the second acquisition module is used for respectively acquiring the first audio signal acquired by each first device.
And the matching module is used for matching the voiceprint of the first audio signal acquired by the second acquisition module with a preset voiceprint.
And the determining module is used for determining that the first audio signal is the voice signal when the matching module determines that the voiceprint of the first audio signal is matched with the preset voiceprint.
Optionally, the first audio signal comprises at least one audio signal.
The determining module comprises:
the first determining unit is configured to determine an audio signal matched with the preset voiceprint in the first audio signal as the voice signal acquired by the first device.
Optionally, the terminal further includes:
and the first detection module is used for detecting the state of the first terminal.
And the second selection module is used for determining a second target device in at least one second device within the preset range when the first detection module detects that the first terminal is in a call state.
The second device is a device with a voice playing function.
Optionally, the terminal further includes:
and the second sending module is used for sending the received call voice of the user of the second terminal to the second target device and playing the call voice of the user of the second terminal through the second target device.
Optionally, the second selecting module includes:
a second determining unit, configured to determine whether the first target device has a voice playing function.
A first selecting unit, configured to determine the first target device as the second target device when the second determining unit determines that the first target device has a voice playing function.
And a second selecting unit, configured to determine, when the second determining unit determines that the first target device does not have a voice playing function, a second device closest to the first target device as the second target device according to a pre-stored distance between devices.
And the pre-stored distance between the devices is the pre-stored distance between the first device and the second device.
Optionally, the terminal further includes:
and the equipment searching module is used for searching the first equipment and the second equipment in the preset range.
And the list establishing module is used for establishing an equipment list according to the search result of the equipment searching module.
Optionally, the first selectingmodule 402 includes:
a third selecting unit, configured to obtain, according to the voice signal of the first device in the device list, signal quality of the voice signal, and determine, as the first target device, the first device corresponding to the voice signal with the highest signal quality.
Optionally, the terminal further includes:
and the second detection module is used for detecting the signal quality of the voice signal acquired by the first target equipment in real time or at regular time.
And the third selection module is used for determining the device with the highest signal quality of the acquired voice signals as the first target device in the first devices except the first target device when the signal quality of the acquired voice signals is lower than the preset signal quality.
In the embodiment of the invention, when a user is in voice communication, some electronic equipment with a voice acquisition function around can participate in the voice communication. The electronic equipment with good quality of collected voice signals is used as a microphone in the voice call process of the home terminal so as to collect the voice signals of the home terminal user. Therefore, the voice signal of the local terminal user can be collected without being limited by the first terminal while the call quality is ensured, more freedom of selection is provided for the voice call of the user, and the voice call of the user is facilitated.
Fig. 5 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention.
The terminal 500 includes but is not limited to: aradio frequency unit 501, anetwork module 502, anaudio output unit 503, aninput unit 504, asensor 505, adisplay unit 506, auser input unit 507, aninterface unit 508, amemory 509, aprocessor 510, and apower supply 511. Those skilled in the art will appreciate that the terminal configuration shown in fig. 5 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Aprocessor 510, configured to obtain a voice signal acquired by at least one first device within a preset range; determining a first device corresponding to the voice signal with the highest signal quality as a first target device according to the signal quality of the voice signal; and sending the voice signal acquired by the first target equipment to a second terminal.
Wherein, the voice signal is a sound signal sent by a target user.
In the embodiment of the invention, when a user is in voice communication, some electronic equipment with a voice acquisition function around can participate in the voice communication. The electronic equipment with good quality of collected voice signals is used as a microphone in the voice call process of the home terminal so as to collect the voice signals of the home terminal user. Therefore, the voice signal of the local terminal user can be collected without being limited by the first terminal while the call quality is ensured, more freedom of selection is provided for the voice call of the user, and the voice call of the user is facilitated.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 510; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through thenetwork module 502, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
Theaudio output unit 503 may convert audio data received by theradio frequency unit 501 or thenetwork module 502 or stored in thememory 509 into an audio signal and output as sound. Also, theaudio output unit 503 may also provide audio output related to a specific function performed by the terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 504 is used to receive an audio or video signal. Theinput Unit 504 may include a Graphics Processing Unit (GPU) 5041 and amicrophone 5042, and theGraphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 506. The image frames processed by thegraphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via theradio frequency unit 501 or thenetwork module 502. Themicrophone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 501 in case of the phone call mode.
The terminal 500 also includes at least onesensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of thedisplay panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off thedisplay panel 5061 and/or a backlight when the terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; thesensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 506 is used to display information input by the user or information provided to the user. TheDisplay unit 506 may include aDisplay panel 5061, and theDisplay panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, theuser input unit 507 includes atouch panel 5071 andother input devices 5072.Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or neartouch panel 5071 using a finger, stylus, or any suitable object or attachment). Thetouch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 510, and receives and executes commands sent by theprocessor 510. In addition, thetouch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 5071, theuser input unit 507 may includeother input devices 5072. In particular,other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, thetouch panel 5071 may be overlaid on thedisplay panel 5061, and when thetouch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to theprocessor 510 to determine the type of the touch event, and then theprocessor 510 provides a corresponding visual output on thedisplay panel 5061 according to the type of the touch event. Although in fig. 5, thetouch panel 5071 and thedisplay panel 5061 are two independent components to implement the input and output functions of the terminal, in some embodiments, thetouch panel 5071 and thedisplay panel 5061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
Theinterface unit 508 is an interface for connecting an external device to the terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the terminal 500 or may be used to transmit data between the terminal 500 and external devices.
Thememory 509 may be used to store software programs as well as various data. Thememory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Theprocessor 510 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in thememory 509 and calling data stored in thememory 509, thereby performing overall monitoring of the terminal.Processor 510 may include one or more processing units; preferably, theprocessor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated intoprocessor 510.
The terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, thepower supply 511 may be logically connected to theprocessor 510 through a power management system, so that functions of managing charging, discharging, and power consumption are performed through the power management system.
In addition, the terminal 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, including aprocessor 510, amemory 509, and a computer program stored in thememory 509 and capable of running on theprocessor 510, where the computer program, when executed by theprocessor 510, implements each process of the voice call method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the voice call method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 apparatus 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 apparatus. 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 apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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 (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as 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.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.