WO2018166087A1 - Terminal call method and terminal - Google Patents

Terminal call method and terminal Download PDF

Info

Publication number
WO2018166087A1
WO2018166087A1 PCT/CN2017/088995 CN2017088995W WO2018166087A1 WO 2018166087 A1 WO2018166087 A1 WO 2018166087A1 CN 2017088995 W CN2017088995 W CN 2017088995W WO 2018166087 A1 WO2018166087 A1 WO 2018166087A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
state
call
noise reduction
microphone
Prior art date
Application number
PCT/CN2017/088995
Other languages
French (fr)
Chinese (zh)
Inventor
张峰
高华江
王众
王晴
高伟
安翠珍
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780041503.5A priority Critical patent/CN109417581A/en
Publication of WO2018166087A1 publication Critical patent/WO2018166087A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M9/00Arrangements for interconnection not involving centralised switching
    • H04M9/08Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
    • 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

Definitions

  • the present application relates to the field of computer applications, and in particular, to a terminal calling method and a terminal.
  • the dual microphone noise reduction technology is generally used for noise reduction, that is, two microphones are set on the mobile phone, and one microphone is a microphone used by an ordinary user to collect voices, which is called a main microphone, and the other is A microphone placed at the top of the fuselage collects ambient noise and then emits a sound wave that is opposite to ambient noise, which cancels out the noise.
  • the dual-microphone noise reduction technology requires that the source is close to the main microphone and farther away from the sub-microphone, that is, the user needs to put the player to the ear to make a call, and when the user is far away from the mobile phone, the above conditions cannot be met.
  • the sub-microphone will also perform noise reduction processing on the user's voice as an ambient sound, that is, the normal sound is also suppressed, so that the other party can't hear the user's voice, or the sound heard is small, and the user experience is poor.
  • the embodiment of the present application provides a terminal call method and a terminal, which are used to improve call quality.
  • the first aspect of the embodiments of the present application provides a terminal call method, where the terminal includes a primary microphone and a secondary microphone, the primary microphone is used to collect a sound signal, and the secondary microphone is used to cancel an interference signal in the sound signal.
  • Methods include:
  • the terminal When the terminal is in a call state, the terminal acquires a screen state and/or a hands-free state. If the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state, the terminal turns off the noise reduction of the secondary microphone.
  • the screen state refers to the current state of the screen, and the current state of the hands-free function.
  • the terminal when the terminal processes the call state, the terminal may acquire the screen state and/or the hands-free state, and when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state, the terminal Turn off the noise reduction function of the sub microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
  • the terminal may specifically disable the noise reduction function of the secondary microphone by:
  • the terminal turns off the sub microphone.
  • the embodiment of the present application provides a specific manner for turning off the noise reduction function, and improves the achievability of the solution.
  • the terminal may specifically disable the noise reduction function of the secondary microphone by:
  • the terminal invalidates the noise reduction processing algorithm in the first audio path.
  • the first audio path refers to an audio path established in a process of establishing a call corresponding to a call state.
  • the embodiment of the present application provides another specific manner of turning off the noise reduction function, which improves the flexibility of the solution.
  • the terminal specifically can disable the noise reduction function of the secondary microphone by:
  • the terminal closes the first audio communication network, and establishes a second audio path according to the audio parameter that does not include the noise reduction processing algorithm, where the first audio path refers to an audio path established during the process of establishing a call corresponding to the call state, Two audio channels are used for the call.
  • the audio channel used by the original call is closed, and the original call is re-established according to the audio parameters that do not include the noise reduction processing algorithm.
  • the embodiment of the present application provides another specific manner of turning off the noise reduction function, which improves the flexibility of the solution.
  • a second aspect of the embodiment of the present application provides a terminal, where the terminal includes:
  • An obtaining module configured to acquire a screen state and/or a hands-free state when the terminal is in a call state
  • the module is turned off to turn off the noise reduction function of the sub-microphone when the screen state is the bright screen state and/or the hands-free state is the on state.
  • the closing module includes:
  • the first closing unit is configured to turn off the sub microphone.
  • the closing module includes:
  • the invalid module is configured to invalidate the noise reduction processing algorithm in the first audio path, and the first audio path is an audio path established in a process of establishing a call corresponding to the call state.
  • the closing module includes:
  • a second closing unit configured to close the first audio path, where the first audio path is an audio path established during a call that establishes a call state corresponding to the call state;
  • a establishing unit configured to establish a second audio path according to an audio parameter that does not include a noise reduction processing algorithm, where the second audio path is used for a call.
  • a third aspect of the embodiment of the present application provides a terminal, where the terminal includes: an input device, a memory, and a processor;
  • the input device comprises: a main microphone and a sub-microphone, the main microphone is used for collecting sound signals, and the sub-microphone is used for eliminating interference signals in the sound signal;
  • the memory is used to store the program
  • the processor is used to execute the program, and the steps include the following steps:
  • the noise reduction function of the sub-microphone is turned off.
  • the processor is specifically configured to perform the following steps:
  • the processor is specifically configured to perform the following steps:
  • the noise reduction processing algorithm in the first audio path is invalid, and the first audio path is an audio path established in the process of establishing a call corresponding to the call state.
  • the processor is specifically configured to perform the following steps:
  • the first audio path is an audio path established during a call that establishes a call state, and the second audio path is used for the call.
  • a fourth aspect of the present application provides a computer readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the methods described in the above aspects.
  • a fifth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
  • a sixth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
  • the embodiments of the present application have the following advantages:
  • the terminal when the terminal processes the call state, the terminal may acquire the screen state and/or the hands-free state, and when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state, the terminal Turn off the noise reduction function of the sub microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
  • FIG. 1 is a flowchart of an embodiment of a method for calling a terminal in an embodiment of the present application
  • FIG. 2 is a schematic diagram of an embodiment of a terminal in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
  • the embodiment of the present application provides a terminal call method and a terminal, which are used to improve call quality.
  • an embodiment of the method for calling a terminal in the embodiment of the present application includes:
  • the terminal acquires a screen state and/or a hands-free state.
  • the audio parameter corresponding to the call is generated, and the audio parameter includes a noise reduction processing algorithm, and then the terminal establishes a first audio path according to the audio parameter, that is, a call link corresponding to the call is established.
  • the terminal can enter the call state.
  • the terminal acquires the screen state and/or the hands-free state.
  • the terminal includes a primary microphone and a secondary microphone, wherein the primary microphone is used to collect the sound signal, and the secondary microphone has a noise reduction function.
  • the noise reduction processing algorithm is valid, the secondary microphone is processed according to the noise reduction.
  • the screen state refers to the on-off state of the screen
  • the hands-free state refers to the state of the terminal hands-free function
  • the terminal turns off the noise reduction function of the sub microphone.
  • the terminal determines that the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state, the terminal turns off the noise reduction function of the secondary microphone.
  • the terminal when the terminal processes the call state, the terminal may acquire the screen state and/or the hands-free state, and when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state, the terminal Turn off the noise reduction function of the sub microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
  • the terminal can turn off the noise reduction function of the sub-microphone in multiple ways. Several methods are introduced below:
  • the terminal when the terminal determines that the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state, the terminal turns off the secondary microphone. At this time, the main microphone of the terminal is turned on, the terminal collects the sound signal through the main microphone, and the sub-microphone is turned off, unable to collect any sound signal, and does not emit the opposite sound wave canceling noise, that is, the input signal is 0, thereby closing Its noise reduction function.
  • the terminal after the terminal turns off the sub-microphone, the screen state and/or the hands-free state of the terminal is continuously obtained, and when the screen state is obtained, the screen-off state is obtained and/or the obtained hands-free state is
  • the state is off, that is, the screen state of the terminal changes from the bright screen state to the blackout state and/or the terminal's hands-free function changes from the open state to the closed state
  • the terminal can turn on the secondary microphone again, that is, restore the noise reduction function of the secondary microphone.
  • the embodiment of the present application provides a method for turning off the noise reduction function, which improves the achievability of the solution.
  • the terminal when the terminal determines that the acquired screen state is a bright screen state and/or the obtained hands-free state is an open state, the terminal invalidates the noise reduction processing algorithm in the first audio path, that is, disables (disable) noise reduction processing algorithm. Specifically, the terminal may invalidate the noise reduction processing algorithm, and may also invalidate the noise reduction processing algorithm by using other methods, which is not limited herein.
  • the terminal when the terminal invalidates the noise reduction processing algorithm in the first audio path, the terminal continues to acquire the screen state and/or the hands-free state of the terminal, and when the screen state is obtained, the screen state is off. / or when the obtained hands-free status is off, that is, the screen state of the terminal changes from the bright screen state to the blackout state and/or the terminal's hands-free function changes from the open state to the closed state, the terminal can resume the noise reduction processing.
  • the use of the algorithm even if the noise reduction processing algorithm can be enabled, restores the noise reduction function of the secondary microphone.
  • the embodiment of the present application provides another way to turn off the noise reduction function, which improves the flexibility of the solution.
  • the terminal when the terminal determines that the acquired screen state is a bright screen state and/or the obtained hands-free state is an open state, the terminal turns off the audio path of the current call, that is, the first audio path, and does not include
  • the audio parameter of the noise reduction processing algorithm re-establishes the audio path, that is, the second audio path, and the second audio path is used for the terminal to make a call, that is, for maintaining the call state of the terminal.
  • the noise reduction processing algorithm fails and the noise reduction function of the secondary microphone also fails.
  • the second audio channel is established according to an audio parameter that does not include a noise reduction processing algorithm. When the terminal talks through the second audio channel, the secondary microphone does not enable the noise reduction function.
  • the terminal continues to acquire the screen state and/or the hands-free state of the terminal, and when the screen state is obtained, the screen state is the screen-off state and/or the obtained hands-free state.
  • the terminal can close the current audio channel, that is, the second audio channel.
  • the sub-microphone can interfere
  • the signal is denoised to enable noise reduction.
  • the embodiment of the present application provides another way to turn off the noise reduction function, which improves the flexibility of the solution.
  • an embodiment of the terminal in the embodiment of the present application includes:
  • the obtaining module 201 is configured to acquire a screen state and/or a hands-free state when the terminal is in a call state;
  • the closing module 202 is configured to turn off the noise reduction function of the sub-microphone when the screen state is the bright screen state and/or the hands-free state is the open state.
  • the terminal includes a primary microphone and a secondary microphone, wherein the primary microphone is used to collect the sound signal, and the secondary microphone has a noise reduction function.
  • the noise reduction processing algorithm is valid, the secondary microphone is processed according to the noise reduction.
  • each module in the terminal is similar to the process flow described in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
  • the obtaining module 201 may acquire the screen state and/or the hands-free
  • the shutdown module 202 can turn off the noise reduction function of the secondary microphone when the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state.
  • the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not
  • the noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
  • FIG. 3 another embodiment of the terminal in the embodiment of the present application includes:
  • the obtaining module 301 is configured to acquire a screen state and/or a hands-free state when the terminal is in a call state;
  • the module 302 is configured to turn off the noise reduction function of the sub-microphone when the screen state is a bright screen state and/or the hands-free state is an open state.
  • the shutdown module 302 can include:
  • a first closing unit 3021 configured to turn off the secondary microphone
  • the invalidation module 3022 is configured to invalidate the noise reduction processing algorithm in the first audio path, where the first audio path is an audio path established in a process of establishing a call corresponding to the call state;
  • a second closing unit 3023 configured to close the first audio path, where the first audio path is an audio path established in a process of establishing a call corresponding to the call state;
  • the establishing unit 3024 is configured to establish a second audio path according to an audio parameter that does not include a noise reduction processing algorithm, where the second audio path is used for a call.
  • the terminal includes a primary microphone and a secondary microphone, wherein the primary microphone is used to collect the sound signal, and the secondary microphone has a noise reduction function.
  • the noise reduction processing algorithm is valid, the secondary microphone is processed according to the noise reduction.
  • the acquiring module 301 may obtain the screen state and/or the hands-free state, when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state.
  • the shutdown module 302 can turn off the noise reduction function of the secondary microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state.
  • the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not
  • the noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
  • the embodiment of the present application provides a manner in which the shutdown module 302 turns off the noise reduction algorithm, which improves the flexibility of the solution.
  • the terminal in the embodiment of the present application is introduced from the perspective of the function module.
  • the terminal in the embodiment of the present application is introduced from the perspective of the physical hardware.
  • the terminal may include a mobile phone, a tablet computer, and a personal digital assistant ( English full name: Personal Digital Assistant, English abbreviation: PDA), sales terminal (English full name: Point of Sales, English abbreviation: POS), car computer and other terminal equipment, taking the terminal as a mobile phone as an example:
  • FIG. 4 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present application.
  • the mobile phone includes: radio frequency (English full name: Radio Frequency, English abbreviation: RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (English full name: wireless fidelity, English abbreviation: WiFi) module 470, processor 480, and power supply 490 and the like.
  • radio frequency English full name: Radio Frequency, English abbreviation: RF
  • memory 420 input unit 430
  • display unit 440 sensor 450
  • audio circuit 460 includes: wireless fidelity (English full name: wireless fidelity, English abbreviation: WiFi) module 470, processor 480, and power supply 490 and the like.
  • wireless fidelity English full name: wireless fidelity, English abbreviation: WiFi
  • the RF circuit 410 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 480 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • the RF circuit 410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English name: Low Noise Amplifier, LNA), a duplexer, and the like.
  • RF circuitry 410 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to the global mobile communication system (English full name: Global System of Mobile communication, English abbreviation: GSM), general packet radio service (English full name: General Packet Radio Service, GPRS) ), code division multiple access (English full name: Code Division Multiple Access, English abbreviation: CDMA), wideband code division multiple access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), long-term evolution (English full name: Long Term Evolution, English abbreviation: LTE), e-mail, short message service (English full name: Short Messaging Service, SMS).
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 420 can be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 420.
  • the memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 430 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 430 may include a touch panel 431 and other input devices 432.
  • the touch panel 431 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 431 or near the touch panel 431. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 431 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 480 is provided and can receive commands from the processor 480 and execute them.
  • the touch panel 431 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 430 may also include other input devices 432.
  • other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 440 can be used to display information input by the user or information provided to the user and various dishes of the mobile phone. single.
  • the display unit 440 can include a display panel 441, and optionally, a liquid crystal display (English name: Liquid Crystal Display, English abbreviation: LCD), an organic light emitting diode (English name: Organic Light-Emitting Diode, English abbreviation: OLED), etc.
  • the display panel 441 is configured in a form.
  • the touch panel 431 can cover the display panel 441. When the touch panel 431 detects a touch operation on or near the touch panel 431, it transmits to the processor 480 to determine the type of the touch event, and then the processor 480 according to the touch event.
  • the type provides a corresponding visual output on display panel 441.
  • the touch panel 431 and the display panel 441 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 4, in some embodiments, the touch panel 431 and the display panel 441 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 450, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • Audio circuit 460, speaker 461, and microphone 462 provide an audio interface between the user and the handset.
  • the audio circuit 460 can transmit the converted electrical data of the received audio data to the speaker 461 for conversion to the sound signal output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal by the audio circuit 460. After receiving, it is converted into audio data, and then processed by the audio data output processor 480, sent to the other mobile phone via the RF circuit 410, or outputted to the memory 420 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 470, which provides users with wireless broadband Internet access.
  • FIG. 4 shows the WiFi module 470, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 480 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 420, and invoking data stored in the memory 420, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 480.
  • the handset also includes a power source 490 (such as a battery) that supplies power to the various components.
  • a power source 490 such as a battery
  • the power source can be logically coupled to the processor 480 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the other input device 432 included in the terminal includes: a main microphone and a sub-microphone, wherein the main microphone is used to collect a sound signal, and the sub-microphone is used to eliminate an interference signal in the sound signal;
  • the processor 480 included in the terminal is configured to perform the following steps:
  • the noise reduction function of the sub-microphone is turned off.
  • the processor 480 is specifically configured to perform the following steps: turning off the secondary microphone.
  • the processor 480 is specifically configured to perform the following steps: the terminal invalidates the noise reduction processing algorithm in the first audio path, and the first audio path is in the process of establishing a call corresponding to the call state. Established audio path.
  • the processor 480 is specifically configured to perform the following steps: the terminal turns off the first audio path, and establishes a second audio path according to the audio parameter that does not include the noise reduction processing algorithm, where the first audio path is The audio path established during the call corresponding to the call state is established, and the second audio path is used for the call.
  • the embodiment of the present application further provides a computer storage medium for storing computer software instructions used by the terminal, which includes a program for executing a terminal.
  • the terminal may correspond to the terminal described in the respective embodiments as shown in FIG. 1.
  • the embodiment of the present application further provides a computer program product, which includes computer software instructions, which can be loaded by a processor to implement the terminal call method described in the foregoing embodiments corresponding to FIG.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • wire eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, displayed as a unit
  • the components may or may not be physical units, ie may be located in one place or may be distributed over multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic A variety of media that can store program code, such as a disc or a disc.

Abstract

Disclosed in embodiments of the present application is a terminal call method, for use in improving call quality. The method comprises: when being in a call state, the terminal obtains a screen state and/or handsfree state; if the screen state is a screen-on state and/or the handsfree state is an enabled state, the terminal disables the noise reduction function of a secondary microphone. Also disclosed in the embodiments of the present application is a terminal, for use in improving call quality.

Description

一种终端通话方法及终端Terminal call method and terminal
本申请要求于2017年03月14日提交中国专利局、申请号为201710149758.5、发明名称为“一种应用于双麦克风的处理语音的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on March 14, 2017, the Chinese Patent Office, Application No. 201710149758.5, entitled "A Method and Apparatus for Processing Voices Used in Dual Microphones", the entire contents of which are hereby incorporated by reference. The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及计算机应用领域,尤其涉及一种终端通话方法及终端。The present application relates to the field of computer applications, and in particular, to a terminal calling method and a terminal.
背景技术Background technique
传统的手机上只有一个麦克风,用户在使用手机进行通话时,会通过该麦克风来收集声音信号,但是当用户在环境较嘈杂的环境下,麦克风除了会收集到用户的声音,还会收集到环境噪音,使得对方常常听不清用户的声音,通话质量差。There is only one microphone on the traditional mobile phone. When the user uses the mobile phone to make a call, the user collects the sound signal through the microphone, but when the user is in a noisy environment, the microphone collects the user's voice and collects the environment. The noise makes the other party often unable to hear the user's voice, and the call quality is poor.
而现有技术会一般采用双麦克风降噪技术进行降噪,即在手机上设置两个麦克风,一个麦克风为普通的用户通话时使用的麦克风,用于收集人声,称为主麦克风,而另一个配置在机身顶端的麦克风,采集周围环境噪音,然后发出与环境噪音相反的声波,将该噪音抵消。In the prior art, the dual microphone noise reduction technology is generally used for noise reduction, that is, two microphones are set on the mobile phone, and one microphone is a microphone used by an ordinary user to collect voices, which is called a main microphone, and the other is A microphone placed at the top of the fuselage collects ambient noise and then emits a sound wave that is opposite to ambient noise, which cancels out the noise.
但是双麦克风降噪技术要求发生源离主麦克风很近,离副麦克风较远,即需要用户将播放器放到耳边进行通话,则当用户离手机较远时,并不能满足上述条件,这会使得副麦克风把用户声音也当作环境音进行降噪处理,即把正常声音也抑制了,从而导致对方听不到用户说话,或者听到的声音很小,用户体验较差。However, the dual-microphone noise reduction technology requires that the source is close to the main microphone and farther away from the sub-microphone, that is, the user needs to put the player to the ear to make a call, and when the user is far away from the mobile phone, the above conditions cannot be met. The sub-microphone will also perform noise reduction processing on the user's voice as an ambient sound, that is, the normal sound is also suppressed, so that the other party can't hear the user's voice, or the sound heard is small, and the user experience is poor.
发明内容Summary of the invention
本申请实施例提供了一种终端通话方法及终端,用于提升通话质量。The embodiment of the present application provides a terminal call method and a terminal, which are used to improve call quality.
有鉴于此,本申请实施例第一方面提供了一种终端通话方法,该终端包括主麦克风和副麦克风,主麦克风用于采集声音信号,副麦克风用于消除该声音信号中的干扰信号,该方法包括:In view of this, the first aspect of the embodiments of the present application provides a terminal call method, where the terminal includes a primary microphone and a secondary microphone, the primary microphone is used to collect a sound signal, and the secondary microphone is used to cancel an interference signal in the sound signal. Methods include:
当终端处于通话状态时,终端获取屏幕状态和/或免提状态,如果获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态,则该终端关闭副麦克风的降噪功能。When the terminal is in a call state, the terminal acquires a screen state and/or a hands-free state. If the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state, the terminal turns off the noise reduction of the secondary microphone. Features.
需要说明的是,本申请实施例中屏幕状态指的是屏幕当前的状态,免提功能当前的状态。It should be noted that, in the embodiment of the present application, the screen state refers to the current state of the screen, and the current state of the hands-free function.
本申请实施例中,当终端处理通话状态时,终端可以获取屏幕状态和/或免提状态,当获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,终端关闭副麦克风的降噪功能。即本申请实施例中通过屏幕状态和/或免提状态识别用户与手机的距离,当屏幕状态为亮屏状态或免提状态为开启状态,则认为用户与手机的距离较远,副麦克风不会启动降噪功能进行降噪处理,即不会将用户的声音进行抑制,提升了通话质量。In the embodiment of the present application, when the terminal processes the call state, the terminal may acquire the screen state and/or the hands-free state, and when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state, the terminal Turn off the noise reduction function of the sub microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
结合本申请实施例第一方面,在本申请实施例第一方面的第一种实现方式中,终端具体可以通过如下方式关闭副麦克风的降噪功能:With reference to the first aspect of the embodiment of the present application, in the first implementation manner of the first aspect of the embodiment of the present application, the terminal may specifically disable the noise reduction function of the secondary microphone by:
终端关闭副麦克风。 The terminal turns off the sub microphone.
本申请实施例提供了一种关闭降噪功能的具体方式,提高了方案的可实现性。The embodiment of the present application provides a specific manner for turning off the noise reduction function, and improves the achievability of the solution.
结合本申请实施例第一方面,在本申请实施例第一方面的第二种实现方式中,终端具体可以通过如下方式关闭副麦克风的降噪功能:With reference to the first aspect of the embodiment of the present application, in the second implementation manner of the first aspect of the embodiment of the present application, the terminal may specifically disable the noise reduction function of the secondary microphone by:
终端将第一音频通路中的降噪处理算法无效。The terminal invalidates the noise reduction processing algorithm in the first audio path.
需要说明的是,本申请实施例中第一音频通路指的是建立通话状态对应的通话的过程中所建立的音频通路。It should be noted that, in the embodiment of the present application, the first audio path refers to an audio path established in a process of establishing a call corresponding to a call state.
本申请实施例提供了另一种关闭降噪功的具体方式,提高了方案的灵活性。The embodiment of the present application provides another specific manner of turning off the noise reduction function, which improves the flexibility of the solution.
结合本申请实施例第一方面,在本申请实施例第一方面的第三种实现方式中,终端具体可以通过如下方式关闭副麦克风的降噪功能:With reference to the first aspect of the embodiment of the present application, in the third implementation manner of the first aspect of the embodiment of the present application, the terminal specifically can disable the noise reduction function of the secondary microphone by:
终端关闭第一音频通络,并根据不包含降噪处理算法的音频参数建立第二音频通路,其中,第一音频通路指的是建立通话状态对应的通话的过程中所建立的音频通路,第二音频通路用于该通话。The terminal closes the first audio communication network, and establishes a second audio path according to the audio parameter that does not include the noise reduction processing algorithm, where the first audio path refers to an audio path established during the process of establishing a call corresponding to the call state, Two audio channels are used for the call.
即关闭原有通话使用的音频通路,并根据不包含降噪处理算法的音频参数重新建立音频通路进行原有通话。That is, the audio channel used by the original call is closed, and the original call is re-established according to the audio parameters that do not include the noise reduction processing algorithm.
本申请实施例提供了另一种关闭降噪功的具体方式,提高了方案的灵活性。The embodiment of the present application provides another specific manner of turning off the noise reduction function, which improves the flexibility of the solution.
本申请实施例第二方面提供了一种终端,该终端包括:A second aspect of the embodiment of the present application provides a terminal, where the terminal includes:
获取模块,用于当终端处于通话状态时,获取屏幕状态和/或免提状态;An obtaining module, configured to acquire a screen state and/or a hands-free state when the terminal is in a call state;
关闭模块,用于当屏幕状态为亮屏状态和/或免提状态为开启状态时,关闭副麦克风的降噪功能。The module is turned off to turn off the noise reduction function of the sub-microphone when the screen state is the bright screen state and/or the hands-free state is the on state.
结合本申请实施例第二方面,在本申请实施例第二方面的第一种实现方式中,关闭模块包括:With reference to the second aspect of the embodiments of the present application, in a first implementation manner of the second aspect of the embodiments of the present application, the closing module includes:
第一关闭单元,用于关闭副麦克风。The first closing unit is configured to turn off the sub microphone.
结合本申请实施例第二方面,在本申请实施例第二方面的第二种实现方式中,关闭模块包括:With reference to the second aspect of the embodiments of the present application, in a second implementation manner of the second aspect of the embodiments of the present application, the closing module includes:
无效模块,用于将第一音频通路中的降噪处理算法无效,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路。The invalid module is configured to invalidate the noise reduction processing algorithm in the first audio path, and the first audio path is an audio path established in a process of establishing a call corresponding to the call state.
结合本申请实施例第二方面,在本申请实施例第二方面的第三种实现方式中,关闭模块包括:With reference to the second aspect of the embodiment of the present application, in a third implementation manner of the second aspect of the embodiment of the present application, the closing module includes:
第二关闭单元,用于关闭第一音频通路,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路;a second closing unit, configured to close the first audio path, where the first audio path is an audio path established during a call that establishes a call state corresponding to the call state;
建立单元,用于根据不包含降噪处理算法的音频参数建立第二音频通路,第二音频通路用于通话。And a establishing unit, configured to establish a second audio path according to an audio parameter that does not include a noise reduction processing algorithm, where the second audio path is used for a call.
本申请实施例第三方面提供了一种终端,该终端包括:输入设备,存储器及处理器;A third aspect of the embodiment of the present application provides a terminal, where the terminal includes: an input device, a memory, and a processor;
输入设备包括:主麦克风及副麦克风,主麦克风用于采集声音信号,副麦克风用于消除声音信号中的干扰信号;The input device comprises: a main microphone and a sub-microphone, the main microphone is used for collecting sound signals, and the sub-microphone is used for eliminating interference signals in the sound signal;
存储器用于存储程序;The memory is used to store the program;
处理器用于执行程序,具体包括如下步骤: The processor is used to execute the program, and the steps include the following steps:
当终端处于通话状态时,获取屏幕状态和/或免提状态;Obtaining a screen state and/or a hands-free state when the terminal is in a call state;
若屏幕状态为亮屏状态和/或免提状态为开启状态,则关闭副麦克风的降噪功能。If the screen status is on the bright screen status and/or the hands-free status is on, the noise reduction function of the sub-microphone is turned off.
结合本申请实施例第三方面,在本申请实施例第三方面的第一种实现方式中,该处理器具体用于执行如下步骤:With reference to the third aspect of the embodiment of the present application, in a first implementation manner of the third aspect of the embodiment of the present application, the processor is specifically configured to perform the following steps:
关闭副麦克风。Turn off the secondary microphone.
结合本申请实施例第三方面,在本申请实施例第三方面的第二种实现方式中,该处理器具体用于执行如下步骤:With reference to the third aspect of the embodiments of the present application, in a second implementation manner of the third aspect of the embodiments, the processor is specifically configured to perform the following steps:
将第一音频通路中的降噪处理算法无效,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路。The noise reduction processing algorithm in the first audio path is invalid, and the first audio path is an audio path established in the process of establishing a call corresponding to the call state.
结合本申请实施例第三方面,在本申请实施例第三方面的第三种实现方式中,该处理器具体用于执行如下步骤:With reference to the third aspect of the embodiment of the present application, in a third implementation manner of the third aspect of the embodiment of the present application, the processor is specifically configured to perform the following steps:
关闭第一音频通路,并根据不包含降噪处理算法的音频参数建立第二音频通路,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路,第二音频通路用于该通话。Turning off the first audio path, and establishing a second audio path according to an audio parameter that does not include a noise reduction processing algorithm, where the first audio path is an audio path established during a call that establishes a call state, and the second audio path is used for the call.
本申请的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。A fourth aspect of the present application provides a computer readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the methods described in the above aspects.
本申请的第五方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。A fifth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
本申请的第六提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。A sixth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
从以上技术方案可以看出,本申请实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:
本申请实施例中,当终端处理通话状态时,终端可以获取屏幕状态和/或免提状态,当获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,终端关闭副麦克风的降噪功能。即本申请实施例中通过屏幕状态和/或免提状态识别用户与手机的距离,当屏幕状态为亮屏状态或免提状态为开启状态,则认为用户与手机的距离较远,副麦克风不会启动降噪功能进行降噪处理,即不会将用户的声音进行抑制,提升了通话质量。In the embodiment of the present application, when the terminal processes the call state, the terminal may acquire the screen state and/or the hands-free state, and when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state, the terminal Turn off the noise reduction function of the sub microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application.
图1是本申请实施例中终端通话方法的一个实施例流程图;1 is a flowchart of an embodiment of a method for calling a terminal in an embodiment of the present application;
图2是本申请实施例中终端的一个实施例示意图;2 is a schematic diagram of an embodiment of a terminal in an embodiment of the present application;
图3是本申请实施例中终端的另一实施例示意图;3 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application;
图4是本申请实施例中终端的另一实施例示意图。FIG. 4 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四” 等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the specification and claims of the present application and the above figures Etc. (if present) is used to distinguish similar objects and is not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate, such that the embodiments of the present application described herein can be implemented, for example, in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
本申请实施例提供了一种终端通话方法及终端,用于提升通话质量。The embodiment of the present application provides a terminal call method and a terminal, which are used to improve call quality.
下面先对本申请实施例中的终端通话方法进行介绍,请参阅图1,本申请实施例中终端通话方法的一个实施例包括:The following describes the terminal call method in the embodiment of the present application. Referring to FIG. 1 , an embodiment of the method for calling a terminal in the embodiment of the present application includes:
101、终端获取屏幕状态和/或免提状态;101. The terminal acquires a screen state and/or a hands-free state.
终端需要进行通话时,会生成该通话对应的音频参数,该音频参数中包含有降噪处理算法,然后终端根据该音频参数建立第一音频通路,即建立了通话对应的通话链路,此时,终端即可进入通话状态。当终端处于通话状态时,终端会获取屏幕状态和/或免提状态。When the terminal needs to make a call, the audio parameter corresponding to the call is generated, and the audio parameter includes a noise reduction processing algorithm, and then the terminal establishes a first audio path according to the audio parameter, that is, a call link corresponding to the call is established. The terminal can enter the call state. When the terminal is in a call state, the terminal acquires the screen state and/or the hands-free state.
应理解,本申请实施例中,终端包括主麦克风及副麦克风,其中,主麦克风用于采集声音信号,副麦克风具有降噪功能,当降噪处理算法生效时,副麦克风会根据该降噪处理算法,消除该声音信号中的干扰信号。It should be understood that, in the embodiment of the present application, the terminal includes a primary microphone and a secondary microphone, wherein the primary microphone is used to collect the sound signal, and the secondary microphone has a noise reduction function. When the noise reduction processing algorithm is valid, the secondary microphone is processed according to the noise reduction. An algorithm that eliminates interfering signals in the sound signal.
还应理解,本申请实施例中,屏幕状态指的是屏幕的亮灭状态,免提状态指的终端免提功能的状态。It should also be understood that, in the embodiment of the present application, the screen state refers to the on-off state of the screen, and the hands-free state refers to the state of the terminal hands-free function.
102、终端关闭副麦克风的降噪功能。102. The terminal turns off the noise reduction function of the sub microphone.
当终端确定获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,终端关闭副麦克风的降噪功能。When the terminal determines that the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state, the terminal turns off the noise reduction function of the secondary microphone.
本申请实施例中,当终端处理通话状态时,终端可以获取屏幕状态和/或免提状态,当获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,终端关闭副麦克风的降噪功能。即本申请实施例中通过屏幕状态和/或免提状态识别用户与手机的距离,当屏幕状态为亮屏状态或免提状态为开启状态,则认为用户与手机的距离较远,副麦克风不会启动降噪功能进行降噪处理,即不会将用户的声音进行抑制,提升了通话质量。In the embodiment of the present application, when the terminal processes the call state, the terminal may acquire the screen state and/or the hands-free state, and when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state, the terminal Turn off the noise reduction function of the sub microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
基于上述图1对应的实施例可知,终端可以通过多种方式关闭副麦克风的降噪功能,下面对其中几种方式进行介绍:Based on the embodiment corresponding to FIG. 1 above, the terminal can turn off the noise reduction function of the sub-microphone in multiple ways. Several methods are introduced below:
一、关闭副麦克风。1. Turn off the secondary microphone.
本申请实施例中,当终端确定获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,终端关闭副麦克风。此时,终端的主麦克风是开启的,终端通过主麦克风收集声音信号,而副麦克风被关闭,无法收集到任何声音信号,也不会发出相反的声波抵消噪音,即输入信号为0,从而关闭其降噪功能。In the embodiment of the present application, when the terminal determines that the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state, the terminal turns off the secondary microphone. At this time, the main microphone of the terminal is turned on, the terminal collects the sound signal through the main microphone, and the sub-microphone is turned off, unable to collect any sound signal, and does not emit the opposite sound wave canceling noise, that is, the input signal is 0, thereby closing Its noise reduction function.
可选地,本申请实施例中,当终端关闭副麦克风后,会继续获取终端的屏幕状态和/或免提状态,当获取到屏幕状态为熄屏状态和/或获取到的免提状态为关闭状态时,即终端的屏幕状态从亮屏状态变为熄屏状态和/或终端的免提功能从开启状态变为关闭状态时,终端可以再次开启副麦克风,即恢复副麦克风的降噪功能。 Optionally, in the embodiment of the present application, after the terminal turns off the sub-microphone, the screen state and/or the hands-free state of the terminal is continuously obtained, and when the screen state is obtained, the screen-off state is obtained and/or the obtained hands-free state is When the state is off, that is, the screen state of the terminal changes from the bright screen state to the blackout state and/or the terminal's hands-free function changes from the open state to the closed state, the terminal can turn on the secondary microphone again, that is, restore the noise reduction function of the secondary microphone. .
本申请实施例提供了一种关闭降噪功能的方式,提高了方案的可实现性。The embodiment of the present application provides a method for turning off the noise reduction function, which improves the achievability of the solution.
二、使算法无效。Second, make the algorithm invalid.
本申请实施例中,当终端确定获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,终端将第一音频通路中的降噪处理算法无效,即去使能(disable)降噪处理算法。具体地,终端可以通过对降噪处理算法进行修改使其无效,也可以通过其他方式使降噪处理算法无效,具体此处不作限定。In the embodiment of the present application, when the terminal determines that the acquired screen state is a bright screen state and/or the obtained hands-free state is an open state, the terminal invalidates the noise reduction processing algorithm in the first audio path, that is, disables (disable) noise reduction processing algorithm. Specifically, the terminal may invalidate the noise reduction processing algorithm, and may also invalidate the noise reduction processing algorithm by using other methods, which is not limited herein.
可选地,本申请实施例中,当终端将第一音频通路中的降噪处理算法无效后,会继续获取终端的屏幕状态和/或免提状态,当获取到屏幕状态为熄屏状态和/或获取到的免提状态为关闭状态时,即终端的屏幕状态从亮屏状态变为熄屏状态和/或终端的免提功能从开启状态变为关闭状态时,终端可以恢复降噪处理算法的使用,即使能(enable)降噪处理算法,从而恢复副麦克风的降噪功能。Optionally, in the embodiment of the present application, when the terminal invalidates the noise reduction processing algorithm in the first audio path, the terminal continues to acquire the screen state and/or the hands-free state of the terminal, and when the screen state is obtained, the screen state is off. / or when the obtained hands-free status is off, that is, the screen state of the terminal changes from the bright screen state to the blackout state and/or the terminal's hands-free function changes from the open state to the closed state, the terminal can resume the noise reduction processing. The use of the algorithm, even if the noise reduction processing algorithm can be enabled, restores the noise reduction function of the secondary microphone.
本申请实施例提供了另一种关闭降噪功能的方式,提高了方案的灵活性。The embodiment of the present application provides another way to turn off the noise reduction function, which improves the flexibility of the solution.
三、重建音频通路。Third, rebuild the audio channel.
本申请实施例中,当终端确定获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,终端关闭当前通话的音频通路,即第一音频通路,并根据不包含降噪处理算法的音频参数重新建立音频通路,即第二音频通路,该第二音频通路用于该终端进行通话,即用于维持该终端的通话状态。应理解,本申请实施例中,第一音频通路被关闭,则此时降噪处理算法失效,副麦克风的降噪功能也失效。而第二音频通路是根据不包含降噪处理算法的音频参数建立的,则终端通过该第二音频通路通话时,副麦克风不会启用降噪功能。In the embodiment of the present application, when the terminal determines that the acquired screen state is a bright screen state and/or the obtained hands-free state is an open state, the terminal turns off the audio path of the current call, that is, the first audio path, and does not include The audio parameter of the noise reduction processing algorithm re-establishes the audio path, that is, the second audio path, and the second audio path is used for the terminal to make a call, that is, for maintaining the call state of the terminal. It should be understood that, in the embodiment of the present application, when the first audio path is turned off, the noise reduction processing algorithm fails and the noise reduction function of the secondary microphone also fails. The second audio channel is established according to an audio parameter that does not include a noise reduction processing algorithm. When the terminal talks through the second audio channel, the secondary microphone does not enable the noise reduction function.
可选地,本申请实施例中,当终端建立第二音频通路后,会继续获取终端的屏幕状态和/或免提状态,当获取到屏幕状态为熄屏状态和/或获取到的免提状态为关闭状态时,即终端的屏幕状态从亮屏状态变为熄屏状态和/或终端的免提功能从开启状态变为关闭状态时,终端可以关闭当前音频通路,即第二音频通路,并根据包含有效的降噪算法的音频参数重新建立音频通路,第三音频通路,由于第三音频通路中包含有效的降噪算法,则终端根据第三音频通路进行通话时,副麦克风可以对干扰信号进行降噪,即可以启用降噪功能。Optionally, in the embodiment of the present application, after the terminal establishes the second audio channel, the terminal continues to acquire the screen state and/or the hands-free state of the terminal, and when the screen state is obtained, the screen state is the screen-off state and/or the obtained hands-free state. When the state is off, that is, when the screen state of the terminal changes from the bright state to the blackout state and/or the hands-free function of the terminal changes from the on state to the off state, the terminal can close the current audio channel, that is, the second audio channel. And re-establishing the audio path according to the audio parameter including the effective noise reduction algorithm, and the third audio path, because the third audio path includes an effective noise reduction algorithm, when the terminal makes a call according to the third audio path, the sub-microphone can interfere The signal is denoised to enable noise reduction.
本申请实施例提供了另一种关闭降噪功能的方式,提高了方案的灵活性。The embodiment of the present application provides another way to turn off the noise reduction function, which improves the flexibility of the solution.
上面介绍了本申请实施例中的终端通话方法,下面对本申请实施例中的终端进行介绍,请参阅图2,本申请实施例中终端的一个实施例包括:The terminal call method in the embodiment of the present application is described above. The following describes the terminal in the embodiment of the present application. Referring to FIG. 2, an embodiment of the terminal in the embodiment of the present application includes:
获取模块201,用于当终端处于通话状态时,获取屏幕状态和/或免提状态;The obtaining module 201 is configured to acquire a screen state and/or a hands-free state when the terminal is in a call state;
关闭模块202,用于当屏幕状态为亮屏状态和/或免提状态为开启状态时,关闭副麦克风的降噪功能。The closing module 202 is configured to turn off the noise reduction function of the sub-microphone when the screen state is the bright screen state and/or the hands-free state is the open state.
应理解,本申请实施例中,终端包括主麦克风及副麦克风,其中,主麦克风用于采集声音信号,副麦克风具有降噪功能,当降噪处理算法生效时,副麦克风会根据该降噪处理算法,消除该声音信号中的干扰信号。It should be understood that, in the embodiment of the present application, the terminal includes a primary microphone and a secondary microphone, wherein the primary microphone is used to collect the sound signal, and the secondary microphone has a noise reduction function. When the noise reduction processing algorithm is valid, the secondary microphone is processed according to the noise reduction. An algorithm that eliminates interfering signals in the sound signal.
上述图2对应的实施例中,终端中各模块所执行的流程与前述图1所示的实施例中描述的方法流程类似,此处不再赘述。In the embodiment corresponding to FIG. 2, the process performed by each module in the terminal is similar to the process flow described in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
本申请实施例中,当终端处理通话状态时,获取模块201可以获取屏幕状态和/或免提 状态,当获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,关闭模块202可以关闭副麦克风的降噪功能。即本申请实施例中通过屏幕状态和/或免提状态识别用户与手机的距离,当屏幕状态为亮屏状态或免提状态为开启状态,则认为用户与手机的距离较远,副麦克风不会启动降噪功能进行降噪处理,即不会将用户的声音进行抑制,提升了通话质量。In the embodiment of the present application, when the terminal processes the call state, the obtaining module 201 may acquire the screen state and/or the hands-free The shutdown module 202 can turn off the noise reduction function of the secondary microphone when the acquired screen state is a bright screen state and/or the acquired hands-free state is an open state. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
为了便于理解,请参阅图3,本申请实施例中终端的另一实施例包括:For ease of understanding, referring to FIG. 3, another embodiment of the terminal in the embodiment of the present application includes:
获取模块301,用于当终端处于通话状态时,获取屏幕状态和/或免提状态;The obtaining module 301 is configured to acquire a screen state and/or a hands-free state when the terminal is in a call state;
关闭模块302,用于当屏幕状态为亮屏状态和/或免提状态为开启状态时,关闭副麦克风的降噪功能。The module 302 is configured to turn off the noise reduction function of the sub-microphone when the screen state is a bright screen state and/or the hands-free state is an open state.
其中,关闭模块302可以包括:The shutdown module 302 can include:
第一关闭单元3021,用于关闭副麦克风;a first closing unit 3021, configured to turn off the secondary microphone;
或,or,
无效模块3022,用于将第一音频通路中的降噪处理算法无效,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路;The invalidation module 3022 is configured to invalidate the noise reduction processing algorithm in the first audio path, where the first audio path is an audio path established in a process of establishing a call corresponding to the call state;
或,or,
第二关闭单元3023,用于关闭第一音频通路,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路;a second closing unit 3023, configured to close the first audio path, where the first audio path is an audio path established in a process of establishing a call corresponding to the call state;
建立单元3024,用于根据不包含降噪处理算法的音频参数建立第二音频通路,第二音频通路用于通话。The establishing unit 3024 is configured to establish a second audio path according to an audio parameter that does not include a noise reduction processing algorithm, where the second audio path is used for a call.
应理解,本申请实施例中,终端包括主麦克风及副麦克风,其中,主麦克风用于采集声音信号,副麦克风具有降噪功能,当降噪处理算法生效时,副麦克风会根据该降噪处理算法,消除该声音信号中的干扰信号。It should be understood that, in the embodiment of the present application, the terminal includes a primary microphone and a secondary microphone, wherein the primary microphone is used to collect the sound signal, and the secondary microphone has a noise reduction function. When the noise reduction processing algorithm is valid, the secondary microphone is processed according to the noise reduction. An algorithm that eliminates interfering signals in the sound signal.
还应理解,上述图3对应的实施例中,终端中各模块所执行的流程与前述图1所示的实施例中描述的方法流程类似,此处不再赘述。It should be understood that, in the embodiment corresponding to FIG. 3, the process performed by each module in the terminal is similar to the process flow described in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
本申请实施例中,当终端处理通话状态时,获取模块301可以获取屏幕状态和/或免提状态,当获取到的屏幕状态为亮屏状态和/或获取到的免提状态为开启状态时,关闭模块302可以关闭副麦克风的降噪功能。即本申请实施例中通过屏幕状态和/或免提状态识别用户与手机的距离,当屏幕状态为亮屏状态或免提状态为开启状态,则认为用户与手机的距离较远,副麦克风不会启动降噪功能进行降噪处理,即不会将用户的声音进行抑制,提升了通话质量。In the embodiment of the present application, when the terminal processes the call state, the acquiring module 301 may obtain the screen state and/or the hands-free state, when the acquired screen state is the bright screen state and/or the obtained hands-free state is the open state. The shutdown module 302 can turn off the noise reduction function of the secondary microphone. That is, in the embodiment of the present application, the distance between the user and the mobile phone is recognized by the screen state and/or the hands-free state. When the screen state is the bright screen state or the hands-free state is the open state, the user is considered to be far away from the mobile phone, and the secondary microphone is not The noise reduction function is activated to perform noise reduction processing, that is, the user's voice is not suppressed, and the call quality is improved.
其次,本申请实施例提供了多种关闭模块302关闭降噪算法的方式,提高了方案的灵活性。Secondly, the embodiment of the present application provides a manner in which the shutdown module 302 turns off the noise reduction algorithm, which improves the flexibility of the solution.
上面从功能模块的角度介绍了本申请实施例中的终端,下面从实体硬件的角度介绍本申请实施例中的终端,本申请实施例中,终端可以为包括手机、平板电脑、个人数字助理(英文全称:Personal Digital Assistant,英文缩写:PDA)、销售终端(英文全称:Point of Sales,英文缩写:POS)、车载电脑等任意终端设备,以终端为手机为例:The terminal in the embodiment of the present application is introduced from the perspective of the function module. The terminal in the embodiment of the present application is introduced from the perspective of the physical hardware. In the embodiment of the present application, the terminal may include a mobile phone, a tablet computer, and a personal digital assistant ( English full name: Personal Digital Assistant, English abbreviation: PDA), sales terminal (English full name: Point of Sales, English abbreviation: POS), car computer and other terminal equipment, taking the terminal as a mobile phone as an example:
图4示出的是与本申请实施例提供的终端相关的手机的部分结构的框图。参考图4, 手机包括:射频(英文全称:Radio Frequency,英文缩写:RF)电路410、存储器420、输入单元430、显示单元440、传感器450、音频电路460、无线保真(英文全称:wireless fidelity,英文缩写:WiFi)模块470、处理器480、以及电源490等部件。本领域技术人员可以理解,图4中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 4 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present application. Referring to Figure 4, The mobile phone includes: radio frequency (English full name: Radio Frequency, English abbreviation: RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (English full name: wireless fidelity, English abbreviation: WiFi) module 470, processor 480, and power supply 490 and the like. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 4 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图4对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 4:
RF电路410可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器480处理;另外,将设计上行的数据发送给基站。通常,RF电路410包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(英文全称:Low Noise Amplifier,英文缩写:LNA)、双工器等。此外,RF电路410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文全称:Global System of Mobile communication,英文缩写:GSM)、通用分组无线服务(英文全称:General Packet Radio Service,GPRS)、码分多址(英文全称:Code Division Multiple Access,英文缩写:CDMA)、宽带码分多址(英文全称:Wideband Code Division Multiple Access,英文缩写:WCDMA)、长期演进(英文全称:Long Term Evolution,英文缩写:LTE)、电子邮件、短消息服务(英文全称:Short Messaging Service,SMS)等。The RF circuit 410 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 480 processes the data. In addition, the uplink data is designed to be sent to the base station. Generally, the RF circuit 410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English name: Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 410 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to the global mobile communication system (English full name: Global System of Mobile communication, English abbreviation: GSM), general packet radio service (English full name: General Packet Radio Service, GPRS) ), code division multiple access (English full name: Code Division Multiple Access, English abbreviation: CDMA), wideband code division multiple access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), long-term evolution (English full name: Long Term Evolution, English abbreviation: LTE), e-mail, short message service (English full name: Short Messaging Service, SMS).
存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 420 can be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 420. The memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元430可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元430可包括触控面板431以及其他输入设备432。触控面板431,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板431上或在触控面板431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板431。除了触控面板431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 430 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 431 or near the touch panel 431. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 431 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 480 is provided and can receive commands from the processor 480 and execute them. In addition, the touch panel 431 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 431, the input unit 430 may also include other input devices 432. Specifically, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜 单。显示单元440可包括显示面板441,可选的,可以采用液晶显示器(英文全称:Liquid Crystal Display,英文缩写:LCD)、有机发光二极管(英文全称:Organic Light-Emitting Diode,英文缩写:OLED)等形式来配置显示面板441。进一步的,触控面板431可覆盖显示面板441,当触控面板431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触控面板431与显示面板441是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板431与显示面板441集成而实现手机的输入和输出功能。The display unit 440 can be used to display information input by the user or information provided to the user and various dishes of the mobile phone. single. The display unit 440 can include a display panel 441, and optionally, a liquid crystal display (English name: Liquid Crystal Display, English abbreviation: LCD), an organic light emitting diode (English name: Organic Light-Emitting Diode, English abbreviation: OLED), etc. The display panel 441 is configured in a form. Further, the touch panel 431 can cover the display panel 441. When the touch panel 431 detects a touch operation on or near the touch panel 431, it transmits to the processor 480 to determine the type of the touch event, and then the processor 480 according to the touch event. The type provides a corresponding visual output on display panel 441. Although the touch panel 431 and the display panel 441 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 4, in some embodiments, the touch panel 431 and the display panel 441 may be integrated. Realize the input and output functions of the phone.
手机还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在手机移动到耳边时,关闭显示面板441和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路460、扬声器461,传声器462可提供用户与手机之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经RF电路410以发送给比如另一手机,或者将音频数据输出至存储器420以便进一步处理。 Audio circuit 460, speaker 461, and microphone 462 provide an audio interface between the user and the handset. The audio circuit 460 can transmit the converted electrical data of the received audio data to the speaker 461 for conversion to the sound signal output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal by the audio circuit 460. After receiving, it is converted into audio data, and then processed by the audio data output processor 480, sent to the other mobile phone via the RF circuit 410, or outputted to the memory 420 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块470,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 470, which provides users with wireless broadband Internet access. Although FIG. 4 shows the WiFi module 470, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
处理器480是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器480可包括一个或多个处理单元;优选的,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。The processor 480 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 420, and invoking data stored in the memory 420, executing The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 480.
手机还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 490 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 480 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
在本申请实施例中,终端所包括的其他输入设备432包括:主麦克风及副麦克风,其中主麦克风用于采集声音信号,副麦克风用于消除声音信号中的干扰信号; In the embodiment of the present application, the other input device 432 included in the terminal includes: a main microphone and a sub-microphone, wherein the main microphone is used to collect a sound signal, and the sub-microphone is used to eliminate an interference signal in the sound signal;
终端所包括的处理器480用于执行如下步骤:The processor 480 included in the terminal is configured to perform the following steps:
当终端处于通话状态时,获取屏幕状态和/或免提状态;Obtaining a screen state and/or a hands-free state when the terminal is in a call state;
若屏幕状态为亮屏状态和/后免提状态为开启状态,则关闭副麦克风的降噪功能。If the screen status is bright and / after the hands-free status is on, the noise reduction function of the sub-microphone is turned off.
可选地,在本申请实施例中,处理器480具体用于执行如下步骤:关闭副麦克风。Optionally, in the embodiment of the present application, the processor 480 is specifically configured to perform the following steps: turning off the secondary microphone.
可选地,在本申请实施例中,处理器480具体用于执行如下步骤:终端将第一音频通路中的降噪处理算法无效,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路。Optionally, in the embodiment of the present application, the processor 480 is specifically configured to perform the following steps: the terminal invalidates the noise reduction processing algorithm in the first audio path, and the first audio path is in the process of establishing a call corresponding to the call state. Established audio path.
可选地,在本申请实施例中,处理器480具体用于执行如下步骤:终端关闭第一音频通路,并根据不包含降噪处理算法的音频参数建立第二音频通路,第一音频通路为建立通话状态对应的通话的过程中所建立的音频通路,第二音频通路用于该通话。Optionally, in the embodiment of the present application, the processor 480 is specifically configured to perform the following steps: the terminal turns off the first audio path, and establishes a second audio path according to the audio parameter that does not include the noise reduction processing algorithm, where the first audio path is The audio path established during the call corresponding to the call state is established, and the second audio path is used for the call.
本申请实施例还提供了一种计算机存储介质,该计算机存储介质用于储存为上述终端所用的计算机软件指令,其包括用于执行为终端所设计的程序。该终端可以如图1对应各个实施例中所描述的终端。The embodiment of the present application further provides a computer storage medium for storing computer software instructions used by the terminal, which includes a program for executing a terminal. The terminal may correspond to the terminal described in the respective embodiments as shown in FIG. 1.
本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机软件指令,该计算机软件指令可通过处理器进行加载来实现上述图1对应各个实施例中所描述的终端通话方法。The embodiment of the present application further provides a computer program product, which includes computer software instructions, which can be loaded by a processor to implement the terminal call method described in the foregoing embodiments corresponding to FIG.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的 部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, displayed as a unit The components may or may not be physical units, ie may be located in one place or may be distributed over multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文全称:Read-Only Memory,英文缩写:ROM)、随机存取存储器(英文全称:Random Access Memory,英文缩写:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic A variety of media that can store program code, such as a disc or a disc.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions of the embodiments do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

  1. 一种终端通话方法,所述终端包括主麦克风及副麦克风,所述主麦克风用于采集声音信号,所述副麦克风用于消除所述声音信号中的干扰信号,其特征在于,包括:A terminal call method, the terminal includes a main microphone and a sub-microphone, the main microphone is used to collect a sound signal, and the sub-microphone is used to cancel an interference signal in the sound signal, and the method includes:
    当所述终端处于通话状态时,所述终端获取屏幕状态和/或免提状态;When the terminal is in a call state, the terminal acquires a screen state and/or a hands-free state;
    若所述屏幕状态为亮屏状态和/或所述免提状态为开启状态,则所述终端关闭所述副麦克风的降噪功能。If the screen state is a bright screen state and/or the hands-free state is an open state, the terminal turns off the noise reduction function of the secondary microphone.
  2. 根据权利要求1所述的方法,其特征在于,所述终端所述终端关闭所述副麦克风的降噪功能包括:The method according to claim 1, wherein the terminal of the terminal to turn off the noise reduction function of the sub-microphone comprises:
    所述终端关闭所述副麦克风。The terminal turns off the secondary microphone.
  3. 根据权利要求1所述的方法,其特征在于,所述终端所述终端关闭所述副麦克风的降噪功能包括:The method according to claim 1, wherein the terminal of the terminal to turn off the noise reduction function of the sub-microphone comprises:
    所述终端将第一音频通路中的降噪处理算法无效,所述第一音频通路为建立所述通话状态对应的通话的过程中所建立的音频通路。The terminal invalidates the noise reduction processing algorithm in the first audio path, and the first audio path is an audio path established in the process of establishing a call corresponding to the call state.
  4. 根据权利要求1所述的方法,其特征在于,所述终端关闭所述副麦克风的降噪功能包括:The method according to claim 1, wherein the noise reduction function of the terminal to turn off the secondary microphone comprises:
    所述终端关闭第一音频通路,并根据不包含降噪处理算法的音频参数建立第二音频通路,所述第一音频通路为建立所述通话状态对应的通话的过程中所建立的音频通路,所述第二音频通路用于所述通话。The terminal closes the first audio path, and establishes a second audio path according to an audio parameter that does not include a noise reduction processing algorithm, where the first audio path is an audio path established during a process of establishing a call corresponding to the call state, The second audio path is for the call.
  5. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    获取模块,用于当所述终端处于通话状态时,获取屏幕状态和/或免提状态;An acquiring module, configured to acquire a screen state and/or a hands-free state when the terminal is in a call state;
    关闭模块,用于当所述屏幕状态为亮屏状态和/或所述免提状态为开启状态时,关闭副麦克风的降噪功能。And a shutdown module, configured to turn off the noise reduction function of the sub-microphone when the screen state is a bright screen state and/or the hands-free state is an open state.
  6. 根据权利要求5所述的终端,其特征在于,所述关闭模块包括:The terminal according to claim 5, wherein the shutdown module comprises:
    第一关闭单元,用于关闭所述副麦克风。a first closing unit for turning off the secondary microphone.
  7. 根据权利要求5所述的终端,其特征在于,所述关闭模块包括:The terminal according to claim 5, wherein the shutdown module comprises:
    无效模块,用于将第一音频通路中的降噪处理算法无效,所述第一音频通路为建立所述通话状态对应的通话的过程中所建立的音频通路。And an invalidation module, configured to invalidate a noise reduction processing algorithm in the first audio path, where the first audio path is an audio path established in a process of establishing a call corresponding to the call state.
  8. 根据权利要求5所述的终端,其特征在于,所述关闭模块包括:The terminal according to claim 5, wherein the shutdown module comprises:
    第二关闭单元,用于关闭第一音频通路,所述第一音频通路为建立所述通话状态对应的通话的过程中所建立的音频通路;a second closing unit, configured to close the first audio path, where the first audio path is an audio path established during a process of establishing a call corresponding to the call state;
    建立单元,用于根据不包含降噪处理算法的音频参数建立第二音频通路,所述第二音频通路用于所述通话。And a establishing unit configured to establish a second audio path according to an audio parameter that does not include a noise reduction processing algorithm, the second audio path being used for the call.
  9. 一种终端,其特征在于,所述终端包括:输入设备,存储器及处理器;A terminal, comprising: an input device, a memory, and a processor;
    所述输入设备包括:主麦克风及副麦克风,所述主麦克风用于采集声音信号,所述副麦克风用于消除所述声音信号中的干扰信号;The input device includes: a main microphone for collecting a sound signal, and a sub-microphone for canceling an interference signal in the sound signal;
    所述存储器用于存储程序;The memory is used to store a program;
    所述处理器用于执行所述程序,具体包括如下步骤: The processor is configured to execute the program, and specifically includes the following steps:
    当所述终端处于通话状态时,所述终端获取屏幕状态和/或免提状态;When the terminal is in a call state, the terminal acquires a screen state and/or a hands-free state;
    若所述屏幕状态为亮屏状态和/或所述免提状态为开启状态,则关闭所述副麦克风的降噪功能。If the screen state is a bright screen state and/or the hands-free state is an open state, the noise reduction function of the secondary microphone is turned off.
  10. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1至4任意一项所述的方法。A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 4.
  11. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1至4任意一项所述的方法。 A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 4.
PCT/CN2017/088995 2017-03-14 2017-06-19 Terminal call method and terminal WO2018166087A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780041503.5A CN109417581A (en) 2017-03-14 2017-06-19 A kind of terminal call method and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710149758.5 2017-03-14
CN201710149758 2017-03-14

Publications (1)

Publication Number Publication Date
WO2018166087A1 true WO2018166087A1 (en) 2018-09-20

Family

ID=63523733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088995 WO2018166087A1 (en) 2017-03-14 2017-06-19 Terminal call method and terminal

Country Status (2)

Country Link
CN (1) CN109417581A (en)
WO (1) WO2018166087A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225195A (en) * 2019-05-30 2019-09-10 维沃移动通信有限公司 A kind of audio communication method and terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824816A (en) * 2020-06-02 2021-12-21 Oppo广东移动通信有限公司 Voice communication method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050239516A1 (en) * 2004-04-27 2005-10-27 Clarity Technologies, Inc. Multi-microphone system for a handheld device
CN102624961A (en) * 2012-02-29 2012-08-01 华为终端有限公司 Method and terminal for preventing sound crosstalk between external loudspeaker and microphone
CN103716438A (en) * 2012-09-28 2014-04-09 联想移动通信科技有限公司 Noise reduction method, device and mobile terminal
CN104320527A (en) * 2014-09-29 2015-01-28 广东欧珀移动通信有限公司 Method and apparatus for improving mobile phone microphone effect

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340562B (en) * 2010-07-22 2014-10-01 杭州华三通信技术有限公司 Phone for realizing noise reduction of voice input signal of hand-free microphone and noise reduction method
CN102739867B (en) * 2012-06-19 2016-02-10 青岛海信移动通信技术股份有限公司 A kind of two MIC noise-reduction method and mobile terminal
CN104376848B (en) * 2013-08-12 2018-03-23 展讯通信(上海)有限公司 Audio signal processing method and device
CN104092801A (en) * 2014-05-22 2014-10-08 中兴通讯股份有限公司 Intelligent terminal call noise reduction method and intelligent terminal
CN106101351A (en) * 2016-07-26 2016-11-09 哈尔滨理工大学 A kind of many MIC noise-reduction method for mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050239516A1 (en) * 2004-04-27 2005-10-27 Clarity Technologies, Inc. Multi-microphone system for a handheld device
CN102624961A (en) * 2012-02-29 2012-08-01 华为终端有限公司 Method and terminal for preventing sound crosstalk between external loudspeaker and microphone
CN103716438A (en) * 2012-09-28 2014-04-09 联想移动通信科技有限公司 Noise reduction method, device and mobile terminal
CN104320527A (en) * 2014-09-29 2015-01-28 广东欧珀移动通信有限公司 Method and apparatus for improving mobile phone microphone effect

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225195A (en) * 2019-05-30 2019-09-10 维沃移动通信有限公司 A kind of audio communication method and terminal

Also Published As

Publication number Publication date
CN109417581A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
US9832582B2 (en) Sound effect control method and apparatus
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
WO2016119580A1 (en) Method, device and terminal for starting voice input function of terminal
CN106528545B (en) Voice information processing method and device
EP4109863A1 (en) Method and apparatus for masking sound, and terminal device
CN109831586A (en) A kind of user interface switching display methods, mobile terminal and storage medium
WO2018120905A1 (en) Message reminding method for terminal, and terminal
WO2017035771A1 (en) Voice path check method, device, and terminal
CN109639863B (en) Voice processing method and device
JP7271699B2 (en) Mobile terminal and voice output control method
CN108259659A (en) A kind of pick-up control method, flexible screen terminal and computer readable storage medium
CN107135308A (en) Multimedia file plays audio control method, mobile terminal and readable storage medium storing program for executing
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
WO2020024770A1 (en) Method for determining communication object, and mobile terminal
CN109788423B (en) Voice receiving method, device and computer readable storage medium
CN109842725A (en) A kind of method for controlling volume of mobile terminal, mobile terminal and storage medium
CN108521501A (en) Pronunciation inputting method and mobile terminal
WO2018120487A1 (en) Call mode switching method and terminal
CN105786439A (en) Method and device for controlling sound in terminal
WO2018166087A1 (en) Terminal call method and terminal
CN109460082A (en) Evade method, mobile terminal and the computer readable storage medium of external interference
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN109887448A (en) A kind of flexible screen display methods, mobile terminal and computer readable storage medium
CN109120796A (en) The called and storage device of mobile terminal and terminal
WO2015078349A1 (en) Microphone sound-reception status switching method and apparatus

Legal Events

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

Ref document number: 17900367

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17900367

Country of ref document: EP

Kind code of ref document: A1