CN108076226B - Method for adjusting call quality, mobile terminal and storage medium - Google Patents

Method for adjusting call quality, mobile terminal and storage medium Download PDF

Info

Publication number
CN108076226B
CN108076226B CN201711403364.4A CN201711403364A CN108076226B CN 108076226 B CN108076226 B CN 108076226B CN 201711403364 A CN201711403364 A CN 201711403364A CN 108076226 B CN108076226 B CN 108076226B
Authority
CN
China
Prior art keywords
microphone
sound information
mobile terminal
amplitude value
threshold value
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
CN201711403364.4A
Other languages
Chinese (zh)
Other versions
CN108076226A (en
Inventor
杨宗业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711403364.4A priority Critical patent/CN108076226B/en
Publication of CN108076226A publication Critical patent/CN108076226A/en
Application granted granted Critical
Publication of CN108076226B publication Critical patent/CN108076226B/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/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/19Arrangements of transmitters, receivers, or complete sets to prevent eavesdropping, to attenuate local noise or to prevent undesired transmission; Mouthpieces or receivers specially adapted therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of voice communication, and provides a method for adjusting communication quality, a mobile terminal and a storage medium, wherein the method comprises the following steps: when the mobile terminal is detected to be in a horizontal screen state, acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at preset time intervals; if the first sound information or the second sound information contains voice information, judging whether the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value; if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, the first microphone and the second microphone which are started at present are switched to be a third microphone, and the first microphone and the second microphone are respectively positioned on the left side and the right side of the screen when the mobile terminal is in a horizontal screen state.

Description

Method for adjusting call quality, mobile terminal and storage medium
Technical Field
The present application belongs to the field of voice call technologies, and in particular, to a method for adjusting call quality, a mobile terminal, and a storage medium.
Background
With the development of information technology, the application of mobile terminals is more and more extensive. A user may play a game, watch a video, etc. through the mobile terminal, and when the user watches the video or plays the game, the mobile terminal is usually placed in a landscape mode in order to obtain a better watching effect.
However, some mobile terminals have microphones near the top and bottom of the mobile terminal, and if the mobile terminal is in the landscape mode, the user may hold the two sides of the mobile terminal and block the microphones, which results in poor sound reception effect of the microphones, and poor communication quality may occur when a call is made through the mobile terminal.
Disclosure of Invention
In view of this, embodiments of the present application provide a method for adjusting call quality, a mobile terminal and a storage medium, so as to solve the problem that the current call quality of the mobile terminal is poor.
A first aspect of an embodiment of the present application provides a method for adjusting call quality, including:
when the mobile terminal is detected to be in a horizontal screen state, acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at a preset time interval, wherein the first microphone and the second microphone are respectively positioned on the left side of a screen of the mobile terminal and the right side of the screen of the mobile terminal when the mobile terminal is in the horizontal screen state;
if the first sound information or the second sound information contains voice information, judging whether the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value;
and if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, switching the currently-started first microphone and second microphone into a third microphone, wherein the third microphone comprises a microphone positioned on the upper side of the screen of the mobile terminal or the lower side of the screen of the mobile terminal in the horizontal screen state of the mobile terminal.
A second aspect of an embodiment of the present application provides a mobile terminal, including:
the mobile terminal comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at a preset time interval when the mobile terminal is detected to be in a horizontal screen state, and the first microphone and the second microphone are respectively positioned on the left side of a screen of the mobile terminal and the right side of the screen of the mobile terminal when the mobile terminal is in the horizontal screen state;
the judging module is used for judging whether the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value if the first sound information or the second sound information contains voice information;
and the first switching module is used for switching the currently-started first microphone and the currently-started second microphone into a third microphone if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, wherein the third microphone comprises a microphone positioned on the upper side of the screen of the mobile terminal or the lower side of the screen of the mobile terminal in the landscape state of the mobile terminal.
A third aspect of an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method provided in the first aspect of the embodiment of the present application when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product comprising a computer program that, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
When the mobile terminal is detected to be in the horizontal screen state, before the amplitude values of the sound information of the two microphones are compared with the first threshold value, whether the first sound information or the second sound information contains the voice information is judged, and under the condition that the voice information is contained, the user speaks currently, and the microphone switching operation can be carried out; if the voice information is not contained, the user may not be currently talking and may not perform the switching operation. And the condition for switching the microphones is that the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, that is, the current collected sound information of the first microphone and the second microphone may cause the opposite party to be unable to hear clearly, the first and second microphones that are currently turned on are switched to a third microphone, which includes a microphone located at an upper side of the screen of the mobile terminal or a lower side of the screen of the mobile terminal in the landscape state of the mobile terminal, when mobile terminal was located the horizontal screen state promptly, the third microphone can not be blockked up in user's operation, through third microphone collection sound information, has avoided being located respectively under the first microphone and the second microphone on the left side of mobile terminal screen and the right side of mobile terminal screen were sheltered from or are blockked up when mobile terminal was horizontal screen state, the problem that speech quality is not good.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is an application scenario of a method for adjusting call quality according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a method for adjusting call quality according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a method for adjusting call quality according to another embodiment of the present application;
fig. 4 is a schematic block diagram of a mobile terminal provided in an embodiment of the present application;
fig. 5 is a schematic block diagram of a mobile terminal according to another embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Before describing a specific embodiment, an application scenario of the embodiment of the present application is first introduced in fig. 1, where a mobile phone may be in a landscape state when a user of the mobile phone plays a game through the mobile phone. The horizontal screen state is: the transverse width of the mobile phone is longer than the longitudinal width of the mobile phone at the angle of a user; correspondingly, the vertical screen state is as follows: at the user's angle, the vertical width of the phone is longer than the horizontal width of the phone. The embodiment shown in fig. 1 shows that the mobile terminal is currently in the landscape screen state, the first microphone of the mobile phone is located on the left side of the screen in the landscape screen state of the mobile phone (near the top in the portrait screen state), and the second microphone of the mobile phone is located on the right side of the screen in the landscape screen state of the mobile phone (near the bottom in the portrait screen state). The left and right determinations are the orientations expressed by the angle of the user in the landscape screen state of the mobile terminal, and of course, other types of corresponding relationships are possible as long as the first microphone and the second microphone are respectively located on the left side of the screen and the right side of the screen in the landscape screen state of the mobile terminal, the third microphone may be a microphone located on the upper side or the lower side of the screen in the landscape screen state of the mobile terminal, and the third microphone is located on the upper side in the landscape screen state of the mobile terminal in the drawing. When the mobile phone is in a landscape state, the left hand and the right hand of the user respectively hold the left side and the right side of the mobile phone, and the situation that the first microphone and/or the second microphone are blocked and blocked may occur, for example, a part of the first microphone is blocked by the left hand in fig. 1, and the second microphone is blocked by the right hand in fig. 1, the problem that the communication quality with a team friend or the other party is poor when the user plays a game occurs, at this time, the third microphone can be switched to, the probability that the third microphone is blocked in the application scene is small, and the communication quality between the user and the other party can be ensured. Of course, in practical applications, the third microphone may also be a bone conduction microphone, and if the third microphone is a bone conduction microphone, the position of the third microphone is not limited.
Fig. 2 is a schematic flow chart of an implementation of a method for adjusting call quality according to an embodiment of the present application, where as shown in the figure, the method may include the following steps:
step S201, when the mobile terminal is detected to be in the horizontal screen state, acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at preset time intervals, wherein the first microphone and the second microphone are respectively positioned on the left side of a screen of the mobile terminal and the right side of the screen of the mobile terminal when the mobile terminal is in the horizontal screen state.
In the embodiment of the application, the mobile terminal may be a device capable of performing a call, such as a mobile phone of a user, a tablet computer, and the like. During the time that the microphone of the mobile terminal is turned on, the microphone of the mobile terminal collects sound information. Currently, many mobile terminals are equipped with two microphones: the first microphone and the second microphone can realize the noise reduction function through the double microphones, so that the opposite side can obtain clear voice information of a mobile terminal user. Typically, the first microphone and the second microphone will be disposed near the top and bottom of the mobile terminal, respectively. In practical application, the method can also be applied to mobile terminals with microphones arranged at other positions.
The first microphone and the second microphone collect sound information in real time, and the calculated amount is large when the sound information collected in real time is processed in real time; at the same time, the result of the determination may be inaccurate. According to the embodiment of the application, the first sound information collected by the first microphone and the second sound information collected by the second microphone of the mobile terminal can be obtained at a preset time interval. For example, every 5 minutes, sound information collected by the first microphone and the second microphone respectively between the 5 minutes of the interval is acquired. For convenience of description, the sound information collected by the first microphone may be defined as first sound information, and the sound information collected by the second microphone may be defined as second sound information. Of course, in practice, other definitions or nomenclature may be used.
Step S202, if the first sound information or the second sound information includes the voice information, determining whether both the amplitude value of the first sound information and the amplitude value of the second sound information are smaller than a first threshold.
In the embodiment of the present application, it may be determined whether the first sound information or the second sound information includes voice information to determine whether the user is performing a voice call. When a user carries out voice communication, in order to enable the opposite side to receive clear voice information of the mobile terminal user, the shielded or blocked microphone is switched to the unshielded or blocked microphone. If the user does not make a voice call, even if one or both of the microphones are blocked or plugged, the operation of switching the microphones may not be performed.
Whether the first sound information or the second sound information contains the voice information can be judged by the following method:
the method comprises the steps of storing the characteristic information of the voice information in the mobile terminal in advance, extracting the characteristic information from the first voice information, matching the characteristic information with the pre-stored characteristic information, if the matching is successful, indicating that the first voice information contains the voice information, and judging whether the second voice information contains the voice information. If the matching fails, it is indicated that the first sound information does not contain the voice information, and it is necessary to continuously determine whether the second sound information contains the voice information. Therefore, as long as any one microphone collects voice information, the user can be judged to be in voice communication.
Of course, in practical applications, it may also be determined whether the second voice information includes the voice information first, if the second voice information includes the voice information, it is not necessary to determine whether the first voice information includes the voice information, and if the second voice information does not include the voice information, it may be determined whether the first voice information includes the voice information continuously. The first sound information and the second sound information may be determined at the same time.
In this embodiment of the application, when it is determined that the user is conducting a voice call, it may be continuously determined whether both the amplitude value of the first sound information and the amplitude value of the second sound information are smaller than a first threshold. In practical applications, the volume level, the loudness value, and the like of the first sound information and the second sound information may also be used as reference factors compared with the first threshold value to determine whether the first microphone and the second microphone are occluded.
Step S203, if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold, switching the currently-turned-on first microphone and second microphone to a third microphone, where the third microphone includes a microphone located on the upper side of the screen of the mobile terminal or the lower side of the screen of the mobile terminal when the mobile terminal is in the landscape state.
In this embodiment, the first threshold may be a preset empirical value, and when the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than the first threshold, it indicates that the first microphone and the second microphone are simultaneously blocked or plugged. In this case, the third microphone may be switched to, for example, a bone conduction microphone, or a microphone that is disposed at a position where the bone conduction microphone is not easily blocked or blocked, for example, a microphone that is disposed at a top middle position or a bottom middle position of the mobile terminal in a landscape state.
Before comparing the amplitude values of the sound information of the two microphones with a first threshold value, the embodiment of the application judges whether the first sound information or the second sound information contains the sound information, and under the condition that the sound information is contained, the user speaks at present and can perform the operation of switching the microphones; if the voice information is not contained, the user may not be currently talking and may not perform the switching operation. And the condition for switching the microphones is that the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, that is, the current collected sound information of the first microphone and the second microphone may cause the opposite party to be unable to hear clearly, the first and second microphones that are currently turned on are switched to a third microphone, which includes a microphone located at an upper side of the screen of the mobile terminal or a lower side of the screen of the mobile terminal in the landscape state of the mobile terminal, when mobile terminal was located the horizontal screen state promptly, the third microphone can not be blockked up in user's operation, through third microphone collection sound information, has avoided being located respectively under the first microphone and the second microphone on the left side of mobile terminal screen and the right side of mobile terminal screen were sheltered from or are blockked up when mobile terminal was horizontal screen state, the problem that speech quality is not good.
Fig. 3 is a flowchart illustrating a method for adjusting call quality according to another embodiment of the present application, where the method includes the following steps:
step S301, when the mobile terminal is detected to be in a horizontal screen state, acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at a preset time interval.
The content of this step is the same as that of step S201, and the description of step S201 may be specifically referred to, which is not repeated herein.
Step S302, if the first sound information or the second sound information includes sound information, determining whether both the amplitude value of the first sound information and the amplitude value of the second sound information are smaller than a first threshold.
The content of this step is the same as that of step S202, and the description of step S202 may be specifically referred to, which is not repeated herein.
Step S303, if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, and the sound information includes a preset keyword, switching the currently turned on first microphone and second microphone to a third microphone.
In this embodiment, if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than the first threshold, it indicates that the first microphone and the second microphone are simultaneously blocked or blocked. The embodiment of the application also sets a condition as follows: the voice information contains predetermined keywords.
The preset keywords may be: inaudible, loud and the like indicate that the opposite party cannot clearly hear the words of the voice information sent by the mobile terminal user. The voice information sent by the opposite party can be played through the loudspeaker of the mobile phone, and after the loudspeaker of the mobile phone is played, the first voice information and the second voice information collected by the first microphone and the second microphone can also collect the voice information sent by the opposite party. Whether the first microphone and the second microphone are blocked or blocked can be determined by judging whether the voice information contained in the first microphone and the second microphone contains preset keywords.
Certainly, in practical applications, the sound information of the other party received by the mobile terminal may also be acquired, and whether the preset keyword is included in the sound information of the other party is determined, for example, an electric signal converted from vibration information of a speaker or an earphone of the mobile terminal is acquired, and the electric signal is converted into third sound information. The voice information of the opposite party can be transmitted to the mobile terminal in the form of a data packet, a loudspeaker or an earphone of the mobile terminal converts the data packet processed by the mobile terminal into vibration, a vibration device in the loudspeaker or the earphone generates the vibration to enable the loudspeaker or the earphone to emit the voice information of the opposite party, and meanwhile, the loudspeaker or the earphone can also generate the vibration generated by the vibration device, i.e. the vibration information is converted into an electric signal, the mobile terminal converts the converted electric signal into sound information again, the voice information is the voice information of the opposite party, which is defined as the third voice information, through which it can be identified whether the opposite party utters the preset keyword, that is, the mobile terminal may regenerate an electric signal from the vibration information converted from the voice of the counterpart by the microphone or the earphone, and judging whether the voice information of the opposite side converted by the electric signal contains preset keywords or not according to the voice information of the opposite side converted by the electric signal. Of course, in practical applications, the input electrical signal of the speaker or the earphone, that is, the driving signal of the speaker and the earphone generating vibration, may also be directly obtained, and the input electrical signal of the speaker or the earphone is converted into the third sound information.
In step S304, if the amplitude value of the first sound information is greater than or equal to the first threshold value, and the amplitude value of the second sound information is smaller than the first threshold value, the first microphone is used as a master microphone to collect sound information, and the second microphone is used as a slave microphone to collect sound information.
In step S305, if the amplitude value of the first sound information is smaller than the first threshold value and the amplitude value of the second sound information is greater than or equal to the first threshold value, the second microphone is used as a master microphone to collect sound information, and the first microphone is used as a slave microphone to collect sound information.
In the embodiment of the present application, determining the relationship between the amplitude value of the first sound information and the amplitude value of the second sound information and the first threshold may generate the following results:
a: the amplitude degree of the first sound information is smaller than a first threshold value, and the amplitude value of the second sound information is smaller than the first threshold value;
b: the amplitude degree of the first sound information is smaller than a first threshold value, and the amplitude value of the second sound information is larger than or equal to a second threshold value;
c: the amplitude degree of the first sound information is greater than or equal to a first threshold value, and the amplitude value of the second sound information is smaller than the first threshold value;
d: the amplitude degree of the first sound information is greater than or equal to a first threshold value, and the amplitude degree of the second sound information is greater than or equal to the first threshold value.
And A, result: the first microphone and the second microphone are blocked or blocked and switched into a third microphone;
b, result: the first microphone is blocked or blocked, the second microphone is used as a main microphone, and the first microphone is used as a slave microphone;
c, result: the second microphone is blocked, the first microphone is used as a main microphone, and the second microphone is used as a slave microphone;
d, result: the first microphone and the second microphone are not blocked, and the switching operation is not performed.
Step S303 is an example of an A result, step S304 is an example of a C result, and step S305 is an example of a B result.
One of the first microphone and the second microphone is used as a main microphone and the other one is used as a slave microphone, so that the effect of reducing noise to improve the call quality can be realized. However, when the amplitude values of the first sound information and the second sound information are one larger than the first threshold and one smaller than the first threshold, the amplitude values of the sound information may actually be different from each other, and even if the switching operation is performed, a good effect may not be obtained.
By way of example, when the first threshold is 10, the amplitude value of the first sound information is 9, and the amplitude value of the second sound information is 11, even if the master-slave relationship between the first microphone and the second microphone is adjusted, the improvement of the call quality is not obvious, so the embodiment of the present application further sets the relationship between the difference value between the amplitude value of the first sound information and the amplitude value of the second sound information and the second threshold.
As another embodiment of the present application, if the amplitude value of the first sound information is greater than or equal to the first threshold, the amplitude value of the second sound information is smaller than the first threshold, and the difference between the amplitude value of the first sound information and the amplitude value of the second sound information is greater than a second threshold, the first microphone is used as a master microphone to collect sound information, and the second microphone is used as a slave microphone to collect sound information;
and if the amplitude value of the first sound information is smaller than the first threshold value, the amplitude value of the second sound information is larger than or equal to the first threshold value, and the difference value between the amplitude value of the first sound information and the amplitude value of the second sound information is larger than a second threshold value, the second microphone is used as a main microphone to collect sound information, and the first microphone is used as a slave microphone to collect sound information.
According to the method and the device, the master-slave relation between the first microphone and the second microphone is switched when the difference value between the amplitude value of the first sound information and the amplitude value of the second sound information is larger than the second threshold value, and therefore invalid switching is avoided.
According to the embodiment of the application, the relation between the amplitude value of the first sound information and the amplitude value of the second sound information and the first threshold value is divided into four cases, and the four cases are described respectively, so that the method and the device can adapt to switching under various conditions, and the quality of conversation can be improved.
As another embodiment of the present application, it may be further configured that the first sound information and the second sound information collected by the first microphone and the first microphone are both smaller than a third threshold, the third threshold is smaller than the first threshold, the third threshold is close to 0, and the voice information of the opposite party includes a preset keyword, in which case, it indicates that the first microphone and the second microphone are completely blocked, and the first microphone and the second microphone may be switched to the third microphone.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 4 is a schematic block diagram of a mobile terminal according to an embodiment of the present application, and only a portion related to the embodiment of the present application is shown for convenience of description.
The mobile terminal 4 may be a software unit, a hardware unit, or a combination of software and hardware unit built in the existing mobile terminal such as a mobile phone and a notebook, may be integrated into the existing mobile terminal such as a mobile phone and a notebook as an independent pendant, and may exist as an independent mobile terminal.
The mobile terminal 4 includes:
an obtaining module 41, configured to obtain, at a predetermined time interval, first sound information collected by a first microphone and second sound information collected by a second microphone of a mobile terminal when it is detected that the mobile terminal is in a landscape state, where the first microphone and the second microphone are located on a left side of a screen of the mobile terminal and a right side of the screen of the mobile terminal respectively when the mobile terminal is in the landscape state;
a determining module 42, configured to determine whether the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold if the first sound information or the second sound information includes sound information;
and a first switching module 43, configured to switch the currently turned on first microphone and second microphone to a third microphone if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold, where the third microphone includes a microphone located on the upper side of the mobile terminal screen or the lower side of the mobile terminal screen when the mobile terminal is in the landscape state.
Optionally, the terminal device 4 further includes:
and a conversion module 46, configured to obtain an electrical signal converted from the vibration information of the speaker or the earphone of the mobile terminal, and convert the electrical signal into third sound information.
Optionally, the first switching module 43 is further configured to:
if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, and the voice information or the third sound information contains a preset keyword, switching the currently-turned-on first microphone and second microphone to a third microphone, wherein the third microphone further comprises: bone conduction microphone.
Optionally, the mobile terminal 4 further includes:
a second switching module 44, configured to, if the amplitude value of the first sound information is greater than or equal to the first threshold value, and the amplitude value of the second sound information is smaller than the first threshold value, use the first microphone as a master microphone to collect sound information, and use the second microphone as a slave microphone to collect sound information;
and a third switching module 45, configured to, if the amplitude value of the first sound information is smaller than the first threshold value, and the amplitude value of the second sound information is greater than or equal to the first threshold value, use the second microphone as a master microphone to collect sound information, and use the first microphone as a slave microphone to collect sound information.
Optionally, the second switching module 44 is further configured to: if the amplitude value of the first sound information is larger than or equal to the first threshold value, the amplitude value of the second sound information is smaller than the first threshold value, and the difference value between the amplitude value of the first sound information and the amplitude value of the second sound information is larger than a second threshold value, the first microphone is used as a main microphone to collect sound information, and the second microphone is used as a slave microphone to collect sound information;
the third switching module 45 is further configured to, if the amplitude value of the first sound information is smaller than the first threshold, the amplitude value of the second sound information is greater than or equal to the first threshold, and a difference between the amplitude value of the first sound information and the amplitude value of the second sound information is greater than a second threshold, collect sound information using the second microphone as a master microphone, and collect sound information using the first microphone as a slave microphone.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functional allocation may be performed by different functional units and modules as needed, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 5 is a schematic block diagram of a mobile terminal according to another embodiment of the present application. As shown in fig. 5, the mobile terminal 5 of this embodiment includes: one or more processors 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processors 50. The processor 50 executes the computer program 52 to implement the steps in the above-mentioned method embodiments for adjusting call quality, such as steps S201 to S203 shown in fig. 2. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the above-described mobile terminal embodiments, such as the functions of the modules 41 to 43 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the mobile terminal 5. For example, the computer program 52 may be divided into an acquisition module, a determination module, and a first switching module.
The acquisition module is used for acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at a preset time interval when the mobile terminal is detected to be in a horizontal screen state, wherein the first microphone and the second microphone are respectively positioned on the left side of a screen of the mobile terminal and the right side of the screen of the mobile terminal when the mobile terminal is in the horizontal screen state;
the determining module is configured to determine whether the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value if the first sound information or the second sound information includes sound information;
the first switching module is configured to switch the currently-turned-on first microphone and second microphone to a third microphone if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold, where the third microphone includes a microphone located on an upper side of a screen of the mobile terminal or on a lower side of the screen of the mobile terminal when the mobile terminal is in a landscape state.
Other modules or units can refer to the description of the embodiment shown in fig. 4, and are not described again here.
The mobile terminal includes, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is only one example of a mobile terminal 5 and is not intended to limit the mobile terminal 5 and may include more or fewer components than illustrated, or some components may be combined, or different components, for example, the mobile terminal may also include a microphone, a bone conduction microphone, a speaker, an input device, an output device, a network access device, a bus, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the mobile terminal 5, such as a hard disk or a memory of the mobile terminal 5. The memory 51 may also be an external storage device of the mobile terminal 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the mobile terminal 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the mobile terminal 5. The memory 51 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 51 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed mobile terminal and method may be implemented in other ways. For example, the above-described embodiments of the mobile terminal are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for adjusting call quality, comprising:
when the mobile terminal is detected to be in a horizontal screen state, acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at a preset time interval, wherein the first microphone and the second microphone are respectively positioned on the left side of a screen of the mobile terminal and the right side of the screen of the mobile terminal when the mobile terminal is in the horizontal screen state;
if the first sound information or the second sound information contains voice information, judging whether the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value;
if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value, and a third sound information contains a preset keyword, switching the currently-started first microphone and second microphone into a third microphone, wherein the third microphone comprises a microphone positioned on the upper side of a screen of the mobile terminal or the lower side of the screen of the mobile terminal when the mobile terminal is in a horizontal screen state;
the third sound information is the sound information of the other party received by the mobile terminal;
the preset keywords are words which indicate that the opposite party cannot clearly hear the voice information sent by the mobile terminal user.
2. The method of call quality adjustment according to claim 1, further comprising:
and acquiring an electric signal converted from the vibration information of a loudspeaker or an earphone of the mobile terminal, and converting the electric signal into third sound information.
3. The method of call quality adjustment according to claim 2, wherein the third microphone further comprises: bone conduction microphone.
4. A method of call quality adjustment according to any of claims 1 to 3, the method further comprising:
if the amplitude value of the first sound information is larger than or equal to the first threshold value, and the amplitude value of the second sound information is smaller than the first threshold value, taking the first microphone as a main microphone to collect sound information, and taking the second microphone as a slave microphone to collect sound information;
and if the amplitude value of the first sound information is smaller than the first threshold value and the amplitude value of the second sound information is larger than or equal to the first threshold value, taking the second microphone as a main microphone to collect sound information, and taking the first microphone as a slave microphone to collect sound information.
5. The method according to claim 4, wherein if the amplitude value of the first sound information is greater than or equal to the first threshold value and the amplitude value of the second sound information is less than the first threshold value, the first microphone is used as a master microphone to collect sound information, and the second microphone is used as a slave microphone to collect sound information; if the amplitude value of the first sound information is smaller than the first threshold value and the amplitude value of the second sound information is larger than or equal to the first threshold value, the second microphone is used as a main microphone to collect sound information, and the first microphone used as a slave microphone to collect sound information comprises:
if the amplitude value of the first sound information is larger than or equal to the first threshold value, the amplitude value of the second sound information is smaller than the first threshold value, and the difference value between the amplitude value of the first sound information and the amplitude value of the second sound information is larger than a second threshold value, the first microphone is used as a main microphone to collect sound information, and the second microphone is used as a slave microphone to collect sound information;
and if the amplitude value of the first sound information is smaller than the first threshold value, the amplitude value of the second sound information is larger than or equal to the first threshold value, and the difference value between the amplitude value of the first sound information and the amplitude value of the second sound information is larger than a second threshold value, the second microphone is used as a main microphone to collect sound information, and the first microphone is used as a slave microphone to collect sound information.
6. A mobile terminal, comprising:
the mobile terminal comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring first sound information acquired by a first microphone and second sound information acquired by a second microphone of the mobile terminal at a preset time interval when the mobile terminal is detected to be in a horizontal screen state, and the first microphone and the second microphone are respectively positioned on the left side of a screen of the mobile terminal and the right side of the screen of the mobile terminal when the mobile terminal is in the horizontal screen state;
the judging module is used for judging whether the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value if the first sound information or the second sound information contains voice information;
the first switching module is configured to switch a currently-turned-on first microphone and a currently-turned-on second microphone to a third microphone if the amplitude value of the first sound information and the amplitude value of the second sound information are both smaller than a first threshold value and the third sound information includes a preset keyword, where the third microphone includes a microphone located on the upper side of the screen of the mobile terminal or on the lower side of the screen of the mobile terminal in the landscape state of the mobile terminal;
the third sound information is the sound information of the other party received by the mobile terminal;
the preset keywords are words which indicate that the opposite party cannot clearly hear the voice information sent by the mobile terminal user.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
and the conversion module is used for acquiring an electric signal converted from the vibration information of the loudspeaker or the earphone of the mobile terminal and converting the electric signal into third sound information.
8. The mobile terminal of claim 7, wherein the third microphone comprises: bone conduction microphone.
9. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by one or more processors, implements the steps of the method according to any one of claims 1 to 5.
CN201711403364.4A 2017-12-22 2017-12-22 Method for adjusting call quality, mobile terminal and storage medium Active CN108076226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711403364.4A CN108076226B (en) 2017-12-22 2017-12-22 Method for adjusting call quality, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711403364.4A CN108076226B (en) 2017-12-22 2017-12-22 Method for adjusting call quality, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108076226A CN108076226A (en) 2018-05-25
CN108076226B true CN108076226B (en) 2020-08-21

Family

ID=62155415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711403364.4A Active CN108076226B (en) 2017-12-22 2017-12-22 Method for adjusting call quality, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108076226B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089191B (en) * 2018-07-24 2021-11-02 Oppo(重庆)智能科技有限公司 Plugging hole treatment method and related product
CN108924331A (en) * 2018-07-24 2018-11-30 Oppo(重庆)智能科技有限公司 Voice pick-up method and Related product
CN109151177A (en) * 2018-07-24 2019-01-04 Oppo(重庆)智能科技有限公司 Microphone blocks based reminding method and relevant apparatus
CN112333608B (en) * 2018-07-26 2022-03-22 Oppo广东移动通信有限公司 Voice data processing method and related product
CN109121060B (en) * 2018-07-26 2020-12-01 Oppo广东移动通信有限公司 Microphone hole blockage detection method and related product
CN110609589A (en) * 2019-08-30 2019-12-24 Oppo广东移动通信有限公司 Electronic device and control method thereof
CN110602327B (en) 2019-09-24 2021-06-25 腾讯科技(深圳)有限公司 Voice call method and device, electronic equipment and computer readable storage medium
CN112788891B (en) * 2020-12-30 2022-07-15 维沃移动通信有限公司 Electronic device
CN112860065A (en) * 2021-02-05 2021-05-28 Oppo广东移动通信有限公司 Sound pickup control method, sound pickup control device, storage medium, and electronic apparatus
CN114979359B (en) * 2021-02-20 2024-05-03 深圳市万普拉斯科技有限公司 Microphone switching method, mobile terminal and storage medium
CN115208976B (en) * 2021-04-13 2024-10-18 深圳市万普拉斯科技有限公司 Processing method and device for call channel switching, call equipment and storage medium
CN113286244B (en) * 2021-05-12 2022-08-26 展讯通信(上海)有限公司 Microphone anomaly detection method and device
CN113746976B (en) * 2021-07-23 2023-03-28 荣耀终端有限公司 Audio module detection method, electronic device and computer storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106255000A (en) * 2016-07-29 2016-12-21 维沃移动通信有限公司 A kind of audio signal sample method and mobile terminal
CN106303804A (en) * 2016-07-28 2017-01-04 维沃移动通信有限公司 The control method of a kind of mike and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3110116B1 (en) * 2014-04-04 2019-09-25 Huawei Device Co., Ltd. Method for automatically adjusting volume, volume adjustment apparatus and electronic device
CN105162950B (en) * 2015-07-08 2020-09-25 Tcl移动通信科技(宁波)有限公司 Mobile terminal and method for switching microphones in call

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303804A (en) * 2016-07-28 2017-01-04 维沃移动通信有限公司 The control method of a kind of mike and mobile terminal
CN106255000A (en) * 2016-07-29 2016-12-21 维沃移动通信有限公司 A kind of audio signal sample method and mobile terminal

Also Published As

Publication number Publication date
CN108076226A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN108076226B (en) Method for adjusting call quality, mobile terminal and storage medium
CN109151211B (en) Voice processing method and device and electronic equipment
CN110809214B (en) Audio playing method, audio playing device and terminal equipment
CN110265056B (en) Sound source control method, loudspeaker device and apparatus
CN109493883B (en) Intelligent device and audio time delay calculation method and device of intelligent device
CN113421578B (en) Audio processing method, device, electronic equipment and storage medium
CN108922558B (en) Voice processing method, voice processing device and mobile terminal
CN105827793B (en) A kind of speech-oriented output method and mobile terminal
US20190221226A1 (en) Electronic apparatus and echo cancellation method applied to electronic apparatus
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN112289336A (en) Audio signal processing method and device
CN113347307B (en) Method for suppressing leakage, related device and computer readable storage medium
CN113517000A (en) Echo cancellation test method, terminal and storage device
CN108605067B (en) Method for playing audio and mobile terminal
CN112243182B (en) Pickup circuit, method and device
CN112312258A (en) Intelligent earphone with hearing protection and hearing compensation
CN109240642B (en) Volume adjusting method and device of terminal equipment and terminal equipment
CN112133319A (en) Audio generation method, device, equipment and storage medium
CN113766385B (en) Earphone noise reduction method and device
CN107957899B (en) Screen recording method and device, computer readable storage medium and mobile terminal
CN103986818B (en) A kind of information processing method and electronic equipment
EP4280211A1 (en) Sound signal processing method and electronic device
CN109274826B (en) Voice playing mode switching method and device, terminal and computer readable storage medium
CN111556406B (en) Audio processing method, audio processing device and earphone
CN107819964B (en) Method, device, terminal and computer readable storage medium for improving call quality

Legal Events

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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant