CN112261201B - Call method, device, mobile terminal and storage medium - Google Patents

Call method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN112261201B
CN112261201B CN202011126311.4A CN202011126311A CN112261201B CN 112261201 B CN112261201 B CN 112261201B CN 202011126311 A CN202011126311 A CN 202011126311A CN 112261201 B CN112261201 B CN 112261201B
Authority
CN
China
Prior art keywords
microphone
parameter
screen
folding
mobile terminal
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
CN202011126311.4A
Other languages
Chinese (zh)
Other versions
CN112261201A (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 CN202011126311.4A priority Critical patent/CN112261201B/en
Publication of CN112261201A publication Critical patent/CN112261201A/en
Application granted granted Critical
Publication of CN112261201B publication Critical patent/CN112261201B/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/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/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel

Landscapes

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

Abstract

The application discloses a communication method, a communication device, a mobile terminal and a storage medium. The method comprises the following steps: determining a folding angle and a first parameter of a folding screen; the first parameters comprise a distance parameter and a phase parameter; the distance parameter characterizes a distance between two microphones; the phase parameters represent the phases of the voice signals respectively entering the two microphones; calling a calibration coefficient corresponding to the folding angle of the folding screen to calibrate the first parameter, and generating a second parameter; inputting the second parameter into a noise reduction algorithm to generate a target voice signal; the target voice signal is a voice signal for transmitting to a communication opposite terminal.

Description

Call method, device, mobile terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a call method, an apparatus, a mobile terminal, and a storage medium.
Background
In the related art, when a call is made on a folding mobile phone, the input state of an audio signal changes, so that the noise reduction effect of the audio signal is not obvious, and the call effect is reduced.
Disclosure of Invention
In view of this, embodiments of the present application provide a call method, a call device, a mobile terminal, and a storage medium, so as to at least solve the problem that the noise reduction effect of an audio signal is not obvious and the call effect is reduced in the related art.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the invention provides a conversation method, which is applied to a mobile terminal, wherein the mobile terminal comprises a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen and a second microphone arranged on a second frame of the second screen, and the first microphone is used for acquiring voice signals; the second microphone is used for carrying out noise reduction processing on the voice signal; when the mobile terminal hands-free calls, the method comprises the following steps:
determining a folding angle and a first parameter of a folding screen; the first parameters comprise a distance parameter and a phase parameter; the distance parameter characterizes a distance between two microphones; the phase parameters represent the phases of the voice signals respectively entering the two microphones;
calling a calibration coefficient corresponding to the folding angle of the folding screen to calibrate the first parameter, and generating a second parameter;
inputting the second parameter into a noise reduction algorithm to generate a target voice signal; the target voice signal is a voice signal for transmitting to a communication opposite terminal.
In the foregoing solution, the invoking a calibration coefficient corresponding to the folding angle of the folding screen to calibrate the first parameter and generate a second parameter includes:
determining a first angle range in which the folding angle of the folding screen is located;
and calling the calibration coefficient corresponding to the first angle range to process the first parameter, and generating the second parameter.
In the above scheme, the determining the folding angle and the first parameter of the folding screen includes:
and determining a first parameter based on the first microphone and the second microphone under the condition that the folding angle of the folding screen is larger than a first set value.
In the foregoing solution, the mobile terminal further includes a third microphone disposed at the back of the foldable screen, and the determining the folding angle and the first parameter of the foldable screen includes:
and determining a first parameter based on the second microphone and the third microphone under the condition that the folding angle of the folding screen is smaller than or equal to a first set value.
In the foregoing solution, when the folding angle of the folding screen is less than or equal to a first set value, the first parameter is determined based on the second microphone and the third microphone, and the method further includes:
sending a first control instruction to the first microphone, and sending a second control instruction to the third microphone; the first control instruction is used for turning off the pickup function of the microphone; and the second control instruction is used for starting the sound pickup function of the microphone.
In the above scheme, the method further comprises:
under the condition that the folding screen is transversely placed, detecting whether the first microphone and the second microphone meet a first set condition; the first set condition represents that a pickup hole corresponding to the microphone is covered;
when the first microphone meets the first set condition, sending a third control instruction to the first microphone, and sending a fourth control instruction to the second microphone; the third control instruction is used for switching the working mode of the microphone from the sound pickup mode to the noise reduction mode; and the fourth control instruction is used for switching the working mode of the microphone from the noise reduction mode to the sound pickup mode.
In the above scheme, the determining the folding angle and the first parameter of the folding screen includes:
when a loudspeaker of the mobile terminal is in a first working mode, acquiring a folding angle and a first parameter of a folding screen; the first mode of operation characterizes an output of an audio signal through the speaker.
The embodiment of the invention also provides a communication device, which is applied to the hands-free communication of the mobile terminal; the mobile terminal comprises a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen and a second microphone arranged on a second frame of the second screen, and the first microphone is used for acquiring voice signals; the second microphone is used for carrying out noise reduction processing on the voice signal; the communication device includes:
the determining unit is used for determining the folding angle and the first parameter of the folding screen; the first parameters comprise a distance parameter and a phase parameter; the distance parameter characterizes a distance between two microphones; the phase parameters represent the phases of the voice signals respectively entering the two microphones;
the first generating unit is used for calling a calibration coefficient to calibrate the first parameter according to the folding angle of the folding screen to generate a second parameter;
the second generating unit is used for inputting the second parameter into a noise reduction algorithm to generate a target voice signal; the target voice signal is a voice signal transmitted to a communication opposite terminal.
The embodiment of the application also provides a mobile terminal, which comprises a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen and a second microphone arranged on a second frame of the second screen, and the first microphone is used for acquiring voice signals; the second microphone is used for carrying out noise reduction processing on the voice signal; the mobile terminal includes: a processor and a memory for storing a computer program capable of running on the processor,
the processor is configured to execute the steps of any one of the methods when the computer program is run during the hands-free call of the mobile terminal.
Embodiments of the present application further provide a storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of any one of the above methods.
In the embodiment of the application, the mobile terminal comprises a folding screen, the folding screen can be folded into a first screen and a second screen, the mobile terminal further comprises a first microphone arranged on a first frame of the first screen, and a second microphone arranged on a second frame of the second screen, the first microphone is used for acquiring a voice signal, the second microphone is used for noise reduction processing of the voice signal, when the mobile terminal is in a call, a folding angle and a first parameter of the folding screen are determined, the first parameter comprises a distance parameter and a phase parameter, the distance parameter represents a distance between the two microphones, the phase parameter represents phases of the voice signals respectively entering the two microphones, a calibration coefficient corresponding to the folding angle of the folding screen is called to calibrate the first parameter, a second parameter is generated, the second parameter is input into a noise reduction algorithm to generate a target voice signal, the target voice signal is a voice signal which is used for being transmitted to the opposite communication terminal, and the parameters of the voice signal are dynamically adjusted through the folding form of the mobile terminal, so that the noise reduction effect of the voice signal can be improved, and the communication quality is improved.
Drawings
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating an implementation flow of a call method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a distance between two microphones according to an embodiment of the present disclosure;
FIG. 4 is a schematic view of a folding angle of a folding screen according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating an implementation flow of a call method according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a call method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware component structure of a mobile terminal according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and specific embodiments.
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, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
Before describing the technical solution of the embodiment of the present application in detail, first, a hardware composition of the mobile terminal of the present application is briefly described.
Fig. 1 is a schematic structural diagram of a mobile terminal provided in the present application. As shown in fig. 1, the mobile terminal includes a folding screen 101, the folding screen 101 can be folded into a first screen 1011 and a second screen 1012, during the folding of the folding screen 101, the angle size of the included angle formed between the first screen 1011 and the second screen 1012 changes with the folding process, and for example, after the folding screen 101 is folded, the included angle formed between the first screen 1011 and the second screen 1012 may be 30 °. The mobile terminal further comprises a first microphone 102 disposed on a first border of the first screen 1011, and a second microphone 103 disposed on a second border of the second screen 1012, in practical applications, the first microphone 102 is located on the top of the foldable screen 101, the second microphone 103 is located on the bottom of the foldable screen, and the first microphone 102 and the second microphone 103 can be placed diagonally. The first microphone 102 is used for acquiring a voice signal, and the second microphone 103 is used for performing noise reduction processing on the voice signal.
The present application will be described in further detail with reference to the following drawings and specific embodiments.
An embodiment of the present application provides a call method applied to the mobile terminal in fig. 1, and fig. 2 is a flowchart illustrating the call method in the embodiment of the present application. As shown in fig. 2, when the mobile terminal hands-free calls, the method includes:
s201: determining a folding angle and a first parameter of a folding screen; the first parameters comprise a distance parameter and a phase parameter; the distance parameter characterizes a distance between two microphones; the phase parameters characterize the phase of the speech signals entering the two microphones, respectively.
Here, the folding angle of the folding screen and a first parameter are determined, wherein the first parameter includes a distance parameter and a phase parameter, the distance parameter is a distance between two microphones, as shown in fig. 3, fig. 3 shows a schematic diagram of the distance between two microphones, and the phase parameter is a phase of a voice signal respectively entering the two microphones. As shown in fig. 4, fig. 4 is a schematic diagram illustrating a folding angle of a folding screen, and in a folding process of the folding screen, the folding angle of the folding screen may change, so that the folding screen presents different forms, and a microphone of a mobile terminal is located on a frame of the folding screen, so that a relative position between the two microphones changes all the time, and thus the folding angle and a first parameter of the folding screen need to be determined, and a folding form of the current folding screen can be determined through the folding angle of the folding screen. In practical applications, the two microphones in the first parameter refer to a microphone for acquiring a voice signal and a microphone for performing noise reduction processing on the voice signal. In practical application, the folding angle of the folding screen can be obtained through the feedback of the gyroscope.
In an embodiment, the determining the folding angle and the first parameter of the folding screen includes:
when a loudspeaker of the mobile terminal is in a first working mode, acquiring a folding angle and a first parameter of a folding screen; the first mode of operation characterizes an output of an audio signal through the speaker.
Here, when the speaker of the mobile terminal is in the first operating mode, the speaker of the mobile terminal is capable of outputting a voice signal to indicate that the mobile terminal is performing a hands-free call, where the voice signal output by the speaker is a voice signal of an opposite communication terminal, and the mobile terminal is capable of outputting the voice signal of the opposite communication terminal through a handset during a communication process, in this case, the voice signal of the opposite communication terminal has a small influence on the voice signal acquired by the microphone, and it is not necessary to perform noise reduction processing on the voice signal acquired by the microphone, and when the mobile terminal is opened to perform a call in the hands-free mode, the mobile terminal outputs the voice signal of the opposite communication terminal through the speaker, and when the speaker of the mobile terminal outputs an audio signal, the voice signal output by the speaker affects the voice signal acquired by the microphone, so that the acquired voice signal contains an environmental sound, The noise such as the speech signal of communication opposite end, consequently need acquire the folding angle and the first parameter of folding screen to fall the noise to the speech signal that the microphone acquireed according to the folding angle and the first parameter of folding screen.
In the embodiment, when the speaker of the mobile terminal is in the first working mode, the folding angle and the first parameter of the folding screen are acquired, and the first working mode represents that the audio signal is output through the speaker, so that the noise reduction effect of the voice signal is improved when the mobile terminal is in the hands-free mode for communication, and the communication quality is improved.
In an embodiment, the determining the folding angle and the first parameter of the folding screen includes:
and determining a first parameter based on the first microphone and the second microphone under the condition that the folding angle of the folding screen is larger than a first set value.
Here, when the folding angle of the folding screen is greater than the first set value, the current communication path of the mobile terminal is that the first microphone is used for acquiring a voice signal, the second microphone is used for performing noise reduction processing on the acquired voice signal, and the first parameter is determined based on the positions of the first microphone and the second microphone and the phase of the voice signal entering the microphone. In practical applications, when the folding angle of the folding screen is greater than the first setting value, it indicates that the two microphones of the mobile terminal are at a longer distance or a medium distance, and the first setting value may be set to 45 ° as an example.
In the above embodiment, when the folding angle of the folding screen is greater than the first set value, the first parameter is determined based on the first microphone and the second microphone, and the first parameter is determined through different folding angles, so that the accuracy of the first parameter is improved, and the noise reduction effect of the voice signal can be improved.
In an embodiment, the determining the folding angle and the first parameter of the folding screen further includes:
and determining a first parameter based on the second microphone and the third microphone under the condition that the folding angle of the folding screen is smaller than or equal to a first set value.
Here, as shown in fig. 5, fig. 5 shows a schematic structural diagram of the mobile terminal, in fig. 5, the mobile terminal further includes a third microphone disposed at the back of the foldable screen, the third microphone is configured to acquire a voice signal, when a folding angle of the foldable screen is less than or equal to a first set value, the first screen and the second screen of the foldable screen are close to or in a folded state, and a first parameter is determined based on the second microphone and the third microphone, so that a distance parameter of the first parameter is a distance between the second microphone and the third microphone, and a phase parameter of the first parameter is phases of voice signals respectively entering the second microphone and the third microphone. In practical applications, the first set value may be set to 45 °.
In the above embodiment, the mobile terminal further includes a third microphone disposed at the back of the foldable screen, and when the folding angle of the foldable screen is smaller than or equal to the first set value, the first parameter is determined based on the second microphone and the third microphone, and the input parameter of the noise reduction algorithm can be determined according to different microphones at different folding angles, so that the accuracy of the first parameter can be improved, and the noise reduction effect of the voice signal can be improved.
In an embodiment, in the case that the folding angle of the folding screen is less than or equal to a first set value, the first parameter is determined based on the second microphone and the third microphone, and the method further includes:
sending a first control instruction to the first microphone, and sending a second control instruction to the third microphone; the first control instruction is used for turning off the pickup function of the microphone; and the second control instruction is used for starting the pickup function of the microphone.
Here, in a case where the folding angle of the folding screen is less than or equal to a first setting value, the mobile terminal issues a first control instruction to the first microphone, the first control instruction being used to turn off a sound pickup function of the microphone so that the sound pickup function of the first microphone can be turned off by the first control instruction, and issues a second control instruction to the third microphone, the second control instruction being used to turn on the sound pickup function of the microphone so that the sound pickup function of the third microphone can be turned on by the second control instruction. In practical application, when the folding angle of the folding screen is less than or equal to the first set value, the folding screen is in a completely folded state, if the first microphone is still used to acquire a voice signal, and the second microphone performs noise reduction processing on the voice signal, an echo problem will be caused, especially when the mobile terminal is in a hands-free state during a call, the distance between the first microphone and a speaker of the mobile terminal is too close, the voice signal acquired by the first microphone not only contains the voice signal of the user of the mobile terminal during the call, but also contains the voice signal of the user of the opposite communication terminal played through the speaker, in this case, the voice signal sent to the opposite communication terminal also contains the voice signal of the user of the opposite communication terminal, which causes the call quality to be degraded, and therefore, the third microphone arranged at the back of the folding screen is used for picking up sound, therefore, the acquisition of the voice signal of the user at the opposite communication terminal can be reduced, the quality of the acquired voice signal is improved, the working state of the second microphone is not changed, and the noise reduction processing is still performed on the voice signal through the second microphone.
In the above embodiment, when the folding angle of the folding screen is less than or equal to the first set value, the first control instruction is sent to the first microphone, and the second control instruction is sent to the third microphone, where the first control instruction is used to turn off the sound pickup function of the microphone, and the second control instruction is used to turn on the sound pickup function of the microphone, so that the working state of the microphone can be controlled according to the folding angle of the folding screen, and the quality of the picked-up voice signal is improved, thereby being beneficial to improving the noise reduction effect of the voice signal and improving the communication quality.
S202: and calling a calibration coefficient corresponding to the folding angle of the folding screen to calibrate the first parameter, and generating a second parameter.
And calling a calibration coefficient corresponding to the folding angle of the folding screen to calibrate the first parameter according to the folding angle of the folding screen, and generating a second parameter, wherein the second parameter is the parameter after calibration processing. In practical application, the folding screen can be in different folding states, and the same set of calibration parameters is used for calibrating the first parameters in different folding states, so that the noise reduction effect of the voice signals can be reduced. In practical application, the calibration parameters can perform corresponding phase compensation and gain setting on the first parameters, so that more accurate initial parameters can be obtained, and the noise reduction effect on the voice signals is improved. In practical applications, when the folding angle changes, the distance parameter and the phase parameter in the first parameter also change, so that the required calibration coefficients also differ. In practical applications, due to the limitation of robustness of the algorithm, when the distance between the two microphones gradually approaches, the noise reduction effect will be deteriorated, and therefore, different calibration coefficients need to be called to ensure the noise reduction effect of the voice signal.
In an embodiment, as shown in fig. 5, the invoking a calibration coefficient corresponding to a folding angle of the folding screen to calibrate the first parameter and generate a second parameter includes:
s501: and determining a first angle range in which the folding angle of the folding screen is located.
Here, a first angle range in which the folding angle of the folding screen is located is determined according to the folding angle of the folding screen. The calibration coefficient is related to the folding angle of the folding screen, so that the folding angle of the folding screen can be divided into different value ranges, and the corresponding calibration coefficient is determined according to the folding angle of the folding screen. In practical application, the folding angle of the folding screen falls within a range of 0 to 180 degrees, when the folding angle of the folding screen is 0 degrees, the first screen and the second screen are in a folding state, when the folding angle of the folding screen is 180 degrees, the first screen and the second screen are in an unfolding state, the folding angle of the folding screen can be divided into different value ranges, exemplarily, the folding angle of the folding screen can be divided into 3 different value ranges, the first value range is 0 to 45 degrees, the second value range is 45 to 135 degrees, and the third value range is 135 to 180 degrees. After the foldable angle of the foldable screen is divided into different ranges, a first angle range is determined according to the foldable angle of the foldable screen, for example, when the foldable angle of the foldable screen is 30 °, the first angle range in which the foldable angle of the foldable screen falls is 0 ° to 45 °.
S502: and calling the calibration coefficient corresponding to the first angle range to process the first parameter, and generating the second parameter.
Here, the calibration coefficient corresponding to the first angle range is called to process the first parameter, and a second parameter is generated. In practical application, calibration coefficients corresponding to different folding angles are different, after the folding angle of the folding screen is divided into different value ranges, each value range corresponds to one calibration coefficient, illustratively, a first value range of 0-45 ° corresponds to a first calibration coefficient, a second value range of 45-135 ° corresponds to a second calibration coefficient, and a third value range of 135-180 ° corresponds to a third calibration coefficient, so that the corresponding calibration coefficient can be called according to the first angle range, illustratively, when the first angle range corresponding to the folding angle of the folding screen is 0-45 °, the first calibration coefficient is called to calibrate the first parameter, and the second parameter is generated. In practical application, the more the value ranges divided by the foldable angles are, the calibration coefficients corresponding to different angles can be accurately obtained, and the noise reduction effect of the voice signal can be improved.
In the above embodiment, the first angle range where the folding angle of the folding screen is located is determined, the calibration coefficient corresponding to the first angle range is called to process the first parameter, the second parameter is generated, and the parameter can be accurately calibrated according to the folding angle of the folding screen, so that the noise reduction effect of the voice signal is favorably improved, and the uplink call quality is improved.
S203: inputting the second parameter into a noise reduction algorithm to generate a target voice signal; the target voice signal is a voice signal for transmitting to a communication opposite terminal.
Here, the second parameter is input to the noise reduction algorithm, and after the processing by the noise reduction algorithm, a target voice signal is generated, where the target voice signal is a voice signal for transmission to the opposite communication terminal, so that the opposite communication terminal can acquire a clear voice signal. In practical application, the second parameter is used as input data of a noise reduction algorithm, after the second parameter is input into the noise reduction algorithm, the noise reduction algorithm can acquire a distance parameter and a phase parameter between two microphones, the noise reduction algorithm carries out modeling noise reduction on the two microphones with the current distance parameter and the current phase parameter, and noise reduction processing is carried out on a voice signal acquired by the first microphone through the noise reduction algorithm, so that the noise reduction algorithm is more accurate, noise reduction can be carried out on the acquired voice signal, and a target voice signal with a better noise reduction effect is obtained. In practical application, the obtained target voice signal is a voice signal transmitted to the opposite communication terminal by the mobile terminal, so that the opposite communication terminal can receive the target voice signal with better noise reduction effect, and the uplink call quality is improved.
In the above embodiment, the mobile terminal includes a foldable screen, the foldable screen is foldable into a first screen and a second screen, the mobile terminal further includes a first microphone disposed on a first frame of the first screen, and a second microphone disposed on a second frame of the second screen, the first microphone is configured to acquire a voice signal, the second microphone is configured to perform noise reduction processing on the voice signal, when the mobile terminal is in a call, a folding angle and a first parameter of the foldable screen are determined, the first parameter includes a distance parameter and a phase parameter, the distance parameter represents a distance between the two microphones, the phase parameter represents phases of the voice signals respectively entering the two microphones, a calibration coefficient corresponding to the folding angle of the foldable screen is called to perform calibration processing on the first parameter, a second parameter is generated, the second parameter is input into the noise reduction algorithm, a target voice signal is generated, the target voice signal is a voice signal for transmission to a communication peer, through the folding form of the mobile terminal, the parameters of the voice signals are dynamically adjusted, so that the noise reduction processing effect of the voice signals can be improved, and the uplink call quality is improved.
In an embodiment, as shown in fig. 6, the method further comprises:
s601: under the condition that the folding screen is transversely placed, detecting whether the first microphone and the second microphone meet a first set condition; the first set condition represents that the sound pickup hole corresponding to the microphone is covered.
Here, the folding screen can transversely place also can place in the vertical direction, when the handheld mobile terminal of user, and when the folding screen transversely placed, because first microphone sets up in the top of folding screen, the second microphone sets up in the bottom of folding screen, there is the condition that the user covered the pickup hole of microphone through the hand, when the pickup hole of microphone was covered, it is unclear to lead to the speech signal that the microphone acquireed, consequently need detect whether first microphone accords with first settlement condition with the second microphone, and the pickup hole that first settlement condition sign microphone corresponds is covered. In practical application, whether the folding screen is transversely placed or not can be detected through a gravity sensing device of the mobile terminal.
S602: when the first microphone meets the first set condition, sending a third control instruction to the first microphone, and sending a fourth control instruction to the second microphone; the third control instruction is used for switching the working mode of the microphone from the sound pickup mode to the noise reduction mode; and the fourth control instruction is used for switching the working mode of the microphone from the noise reduction mode to the sound pickup mode.
Here, the first microphone is used for acquiring a voice signal, when the first microphone meets a first set condition, it indicates that a sound pickup hole corresponding to the first microphone is covered, and at this time, the voice signal acquired by the first microphone is unclear, so that it is necessary to use another microphone instead of the first microphone to acquire the voice signal, and a third control command is issued to the first microphone, the third control command is used for switching the working mode of the microphone from the sound pickup mode to the noise reduction mode, and the first microphone can stop the acquisition of the voice signal through the third control command, and is responsible for performing noise reduction processing on the voice signal, and simultaneously, a fourth control command is issued to the second microphone, the fourth control command is used for switching the working mode of the microphone from the noise reduction mode to the sound pickup mode, and is responsible for the acquisition of the voice signal through the fourth control command, and stopping carrying out noise reduction processing on the voice signals, so that the voice signals can be acquired through the second microphone when the pickup hole corresponding to the first microphone is covered, and clear voice signals can be acquired.
In the above embodiment, in the case that the foldable screen is placed horizontally, it is detected whether the first microphone and the second microphone meet a first setting condition, where the first setting condition represents that the pickup hole corresponding to the microphone is covered, and when the first microphone meets the first setting condition, a third control instruction is issued to the first microphone, and a fourth control instruction is issued to the second microphone, where the third control instruction is used to switch the working mode of the microphone from the pickup mode to the noise reduction mode, and the fourth control instruction is used to switch the working mode of the microphone from the noise reduction mode to the pickup mode, so that a clear voice signal can be obtained by other microphones when the pickup hole corresponding to the microphone for pickup is blocked, which is beneficial to improving the noise reduction effect of the voice signal, and thus improves the communication quality.
The application also provides an application embodiment, as shown in fig. 7, fig. 7 shows a flow diagram of a call method.
S701: determining a folding angle and a first parameter of the folding screen, wherein the folding angle of the folding screen is obtained through a gyroscope, the first parameter comprises a distance parameter and a phase parameter, the distance parameter represents a distance between two microphones, and the phase parameter represents phases of voice signals respectively entering the two microphones.
S702: and judging the angle range of the folding angle.
S703: and when the folding angle falls into a first angle range, calling a first calibration parameter to calibrate the first parameter to obtain a second parameter, wherein the first angle range is 135-180 degrees.
S704: and when the folding angle falls into a second angle range, calling a second calibration parameter to calibrate the first parameter to obtain a second parameter, wherein the second angle range is 45-135 degrees.
S705: and when the folding angle falls into a third angle range, calling a third calibration parameter to calibrate the first parameter to obtain a second parameter, wherein the third angle range is 0-45 degrees.
S706: and inputting the second parameter into a noise reduction algorithm to obtain a target voice signal.
In order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a communication device, as shown in fig. 8, when the communication device is applied to a hands-free call of a mobile terminal, the mobile terminal includes a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen and a second microphone arranged on a second frame of the second screen, and the first microphone is used for acquiring voice signals; the second microphone is used for carrying out noise reduction processing on the voice signal; the communication device includes:
a determining unit 801, configured to determine a folding angle and a first parameter of a folding screen; the first parameters comprise a distance parameter and a phase parameter; the distance parameter characterizes a distance between two microphones; the phase parameters represent the phases of the voice signals respectively entering the two microphones;
a first generating unit 802, configured to invoke a calibration coefficient to perform calibration processing on the first parameter according to the folding angle of the folding screen, and generate a second parameter;
a second generating unit 803, configured to input the second parameter into a noise reduction algorithm, and generate a target speech signal; the target voice signal is a voice signal transmitted to a communication opposite terminal.
In an embodiment, the first generating unit 802 invokes a calibration coefficient corresponding to the folding angle of the folding screen to perform calibration processing on the first parameter, and generate a second parameter, including:
determining a first angle range in which the folding angle of the folding screen is located;
and calling the calibration coefficient corresponding to the first angle range to process the first parameter, and generating the second parameter.
In an embodiment, the determining unit 801 determines the folding angle and the first parameter of the folding screen, including:
and determining a first parameter based on the first microphone and the second microphone under the condition that the folding angle of the folding screen is larger than a first set value.
In an embodiment, the mobile terminal further includes a third microphone disposed at the back of the foldable screen, and the determining unit 801 determines the folding angle and the first parameter of the foldable screen, including:
and under the condition that the folding angle of the folding screen is smaller than or equal to a first set value, determining a first parameter based on the second microphone and the third microphone.
In an embodiment, the determining unit 801 further includes:
sending a first control instruction to the first microphone, and sending a second control instruction to the third microphone; the first control instruction is used for turning off the pickup function of the microphone; and the second control instruction is used for starting the pickup function of the microphone.
In one embodiment, the apparatus further comprises:
the detection unit is used for detecting whether the first microphone and the second microphone accord with a first set condition or not under the condition that the folding screen is transversely arranged; the first set condition represents that a pickup hole corresponding to the microphone is covered;
the control unit is used for sending a third control instruction to the first microphone and sending a fourth control instruction to the second microphone under the condition that the first microphone meets the first set condition; the third control instruction is used for switching the working mode of the microphone from the sound pickup mode to the noise reduction mode; and the fourth control instruction is used for switching the working mode of the microphone from the noise reduction mode to the sound pickup mode.
In an embodiment, the determining unit 801 determines the folding angle and the first parameter of the folding screen, including:
when a loudspeaker of the mobile terminal is in a first working mode, acquiring a folding angle and a first parameter of a folding screen; the first mode of operation characterizes an output of an audio signal through the speaker.
In actual applications, the determining unit 801, the first generating unit 802, and the third generating unit 803 may be implemented by a processor in the communication device. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
It should be noted that, when the communication device provided in the embodiment of fig. 8 performs communication, the division of each program module is merely exemplified, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the processing described above. In addition, the communication device and the communication method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Based on the hardware implementation of the program module, in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen and a second microphone arranged on a second frame of the second screen, and the first microphone is used for acquiring voice signals; the second microphone is configured to perform noise reduction processing on the voice signal, fig. 9 is a schematic diagram of a hardware composition structure of the mobile terminal according to the embodiment of the present application, and as shown in fig. 9, the mobile terminal includes:
a communication interface 1 capable of performing information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and when the mobile terminal is in a hands-free call and is used for running a computer program, the call method provided by one or more technical schemes is executed. And the computer program is stored on the memory 3.
Of course, in practice, the various components in the mobile terminal are coupled together by a bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For the sake of clarity, however, the various buses are labeled as bus system 4 in fig. 9.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the mobile terminal. Examples of such data include: any computer program for operating on a mobile terminal.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 3 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present application may be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The above-described device embodiments are only illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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, that is, 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, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media capable of storing program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a mobile terminal (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. The conversation method is characterized by being applied to a mobile terminal, wherein the mobile terminal comprises a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen, a second microphone arranged on a second frame of the second screen, and a third microphone arranged on the back of the folding screen; the first microphone is used for acquiring a voice signal; the second microphone is used for carrying out noise reduction processing on the voice signal; when the mobile terminal hands-free calls, the method comprises the following steps:
determining a folding angle and a first parameter of a folding screen; the first parameters comprise a distance parameter and a phase parameter; the distance parameter characterizes a distance between two microphones; the phase parameters represent the phases of the voice signals respectively entering the two microphones; determining a first parameter based on the first microphone and the second microphone under the condition that the folding angle of the folding screen is larger than a first set value; determining a first parameter based on the second microphone and the third microphone under the condition that the folding angle of the folding screen is smaller than or equal to a first set value;
calling a calibration coefficient corresponding to the folding angle of the folding screen to calibrate the first parameter, and generating a second parameter;
inputting the second parameter into a noise reduction algorithm to generate a target voice signal; the target voice signal is a voice signal for transmitting to a communication opposite terminal.
2. The communication method according to claim 1, wherein the invoking of the calibration coefficient corresponding to the folding angle of the folding screen to calibrate the first parameter and generate the second parameter comprises:
determining a first angle range in which the folding angle of the folding screen is located;
and calling the calibration coefficient corresponding to the first angle range to process the first parameter, and generating the second parameter.
3. A method for a call according to claim 1, wherein in the case that the folding angle of the folding screen is less than or equal to a first set value, a first parameter is determined based on the second microphone and the third microphone, and the method further comprises:
sending a first control instruction to the first microphone, and sending a second control instruction to the third microphone; the first control instruction is used for turning off the pickup function of the microphone; and the second control instruction is used for starting the pickup function of the microphone.
4. A method for a call as claimed in claim 1, wherein the method further comprises:
under the condition that the folding screen is transversely placed, detecting whether the first microphone and the second microphone meet a first set condition; the first set condition represents that a pickup hole corresponding to the microphone is covered;
when the first microphone meets the first set condition, sending a third control instruction to the first microphone, and sending a fourth control instruction to the second microphone; the third control instruction is used for switching the working mode of the microphone from the sound pickup mode to the noise reduction mode; and the fourth control instruction is used for switching the working mode of the microphone from the noise reduction mode to the sound pickup mode.
5. The method for calling according to claim 1, wherein the determining the folding angle and the first parameter of the folding screen comprises:
when a loudspeaker of the mobile terminal is in a first working mode, acquiring a folding angle and a first parameter of a folding screen; the first mode of operation characterizes an output of an audio signal through the speaker.
6. A conversation device is characterized in that when the conversation device is applied to hands-free conversation of a mobile terminal; the mobile terminal comprises a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen, a second microphone arranged on a second frame of the second screen, and a third microphone arranged on the back of the folding screen; the first microphone is used for acquiring a voice signal; the second microphone is used for carrying out noise reduction processing on the voice signal; the communication device includes:
the determining unit is used for determining the folding angle and the first parameter of the folding screen; the first parameters comprise a distance parameter and a phase parameter; the distance parameter characterizes a distance between two microphones; the phase parameters represent the phases of the voice signals respectively entering the two microphones; determining a first parameter based on the first microphone and the second microphone under the condition that the folding angle of the folding screen is larger than a first set value; determining a first parameter based on the second microphone and the third microphone under the condition that the folding angle of the folding screen is smaller than or equal to a first set value;
the first generating unit is used for calling a calibration coefficient to calibrate the first parameter according to the folding angle of the folding screen to generate a second parameter;
the second generating unit is used for inputting the second parameter into a noise reduction algorithm to generate a target voice signal; the target voice signal is a voice signal transmitted to a communication opposite terminal.
7. A mobile terminal, characterized in that the mobile terminal comprises a folding screen; the folding screen can be folded into a first screen and a second screen; the mobile terminal further comprises a first microphone arranged on a first frame of the first screen, a second microphone arranged on a second frame of the second screen, and a third microphone arranged on the back of the folding screen; the first microphone is used for acquiring a voice signal; the second microphone is used for carrying out noise reduction processing on the voice signal; the mobile terminal includes: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the method according to any one of claims 1 to 5 when the computer program is run by the mobile terminal during hands-free conversation.
8. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, implementing the steps of the method of any one of claims 1 to 5.
CN202011126311.4A 2020-10-20 2020-10-20 Call method, device, mobile terminal and storage medium Active CN112261201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011126311.4A CN112261201B (en) 2020-10-20 2020-10-20 Call method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011126311.4A CN112261201B (en) 2020-10-20 2020-10-20 Call method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112261201A CN112261201A (en) 2021-01-22
CN112261201B true CN112261201B (en) 2022-08-05

Family

ID=74243951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011126311.4A Active CN112261201B (en) 2020-10-20 2020-10-20 Call method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112261201B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923294B (en) * 2021-10-11 2023-04-07 惠州Tcl移动通信有限公司 Audio zooming method and device, folding screen equipment and storage medium
CN115065748A (en) * 2022-06-08 2022-09-16 西安维沃软件技术有限公司 Recording method and device and foldable terminal

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611014A (en) * 2014-11-21 2016-05-25 中兴通讯股份有限公司 Method and device for mobile terminal call voice noise reduction
CN109413253A (en) * 2017-08-17 2019-03-01 西安中兴新软件有限责任公司 A kind of noise-eliminating method and device for realizing mobile terminal
CN107566660B (en) * 2017-10-24 2020-06-09 Oppo广东移动通信有限公司 Call noise reduction method and device and terminal
CN108259659A (en) * 2017-12-21 2018-07-06 努比亚技术有限公司 A kind of pick-up control method, flexible screen terminal and computer readable storage medium
CN109443261B (en) * 2018-10-12 2020-09-15 维沃移动通信有限公司 Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN110083270A (en) * 2019-04-30 2019-08-02 歌尔股份有限公司 A kind of electronic equipment and its control method
CN110297537B (en) * 2019-06-06 2021-11-02 维沃移动通信有限公司 Multimedia file generation method and mobile terminal
CN113791701A (en) * 2019-07-18 2021-12-14 华为技术有限公司 Control method of electronic equipment with folding screen and electronic equipment
CN110730260B (en) * 2019-09-30 2020-11-06 维沃移动通信有限公司 Control method of electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN112261201A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN112261201B (en) Call method, device, mobile terminal and storage medium
CN108076226B (en) Method for adjusting call quality, mobile terminal and storage medium
KR20190026234A (en) Method and apparatus for removimg an echo signal
US20070172083A1 (en) Method and apparatus for controlling a gain of a voice signal
US9344050B2 (en) Dynamic speaker management with echo cancellation
JP2004226656A (en) Device and method for speaker distance detection using microphone array and speech input/output device using the same
CN110809214B (en) Audio playing method, audio playing device and terminal equipment
WO2011079720A1 (en) Wired earphone compatible method and device
CN110673751A (en) System and method for equalizing audio for playback on an electronic device
CN110784804B (en) Wireless earphone noise reduction calibration method and device, earphone box and storage medium
KR102447381B1 (en) Method for providing intelligent agent service while calling and electronic device thereof
CN113132850B (en) Speaker parameter configuration method and related device
WO2021008458A1 (en) Method for voice recognition via earphone and earphone
CN104780311A (en) Terminal control method
US20170026752A1 (en) Method and electronic device for controlling output depending on type of external output device
CN104780312A (en) Terminal
CN104113816A (en) Electronic device and earphone detection method
US20230014836A1 (en) Method for chorus mixing, apparatus, electronic device and storage medium
TWI522904B (en) Electronic device and headset for calibrating electronic device
US10388301B2 (en) Method for processing audio signal and electronic device for supporting the same
US9438194B2 (en) Apparatus and method for dynamically adapting a user volume input range on an electronic device
JP5970125B2 (en) Control device, control method and program
CN104754099A (en) Conversation volume adjusting method
WO2023202527A1 (en) Method and apparatus for controlling power supply circuit, and electronic device and readable storage medium
WO2019061292A1 (en) Noise reduction method for terminal and terminal

Legal Events

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