[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2017113937A1 - Mobile terminal and noise reduction method - Google Patents

Mobile terminal and noise reduction method Download PDF

Info

Publication number
WO2017113937A1
WO2017113937A1 PCT/CN2016/102388 CN2016102388W WO2017113937A1 WO 2017113937 A1 WO2017113937 A1 WO 2017113937A1 CN 2016102388 W CN2016102388 W CN 2016102388W WO 2017113937 A1 WO2017113937 A1 WO 2017113937A1
Authority
WO
WIPO (PCT)
Prior art keywords
noise
signal
mobile terminal
noise reduction
user
Prior art date
Application number
PCT/CN2016/102388
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 努比亚技术有限公司
Publication of WO2017113937A1 publication Critical patent/WO2017113937A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1783Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase handling or detecting of non-standard events or conditions, e.g. changing operating modes under specific operating conditions
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1787General system configurations
    • G10K11/17873General system configurations using a reference signal without an error signal, e.g. pure feedforward
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1787General system configurations
    • G10K11/17885General system configurations additionally using a desired external signal, e.g. pass-through audio such as music or speech
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/18Methods or devices for transmitting, conducting or directing sound
    • G10K11/20Reflecting arrangements

Definitions

  • This application relates to, but is not limited to, the field of mobile terminal technology.
  • the related art uses the in-vehicle intelligent device and the microphone assembled by the vehicle body for data transmission, and uses the algorithm and computing resources on the in-vehicle intelligent device to perform calculation and reverse sound wave superimposition and playback, therefore, on the vehicle
  • the computing and computing power of the device is very high.
  • the computing resources include a central processing unit (CPU), a memory, and the like.
  • CPU central processing unit
  • memory and the like.
  • only some of the high-end models in the related art have the ability to reduce noise.
  • Most of the mid- and low-end vehicles are equipped with a vehicle that does not have a noise reduction algorithm and corresponding computing power, and cannot achieve active noise reduction in the vehicle.
  • This paper proposes a mobile terminal and noise reduction method to realize the method of active noise reduction through the mobile terminal.
  • a mobile terminal includes:
  • a first obtaining module configured to: obtain an audio signal, and identify a noise signal in the audio signal
  • a second obtaining module configured to: obtain a noise source location corresponding to the noise signal identified by the first obtaining module, and obtain a user location;
  • a determining module configured to: determine a noise reduction signal according to the noise signal identified by the first obtaining module, and a noise source position obtained by the second obtaining module and the user position;
  • the noise reduction module is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal.
  • the noise reduction signal determined by the determining module is played by the mobile terminal; the noise reduction module is further configured to: play the noise with the mobile terminal When the noise-reduced signal of the signal inversion arrives at the user, it is superimposed with the noise generated by the noise source reaching the user.
  • the second obtaining module is further configured to: obtain a noise source location corresponding to the noise signal identified by the first obtaining module, and obtain a location of the user location and an audio position;
  • the determining module is further configured to: determine, according to the noise signal identified by the first obtaining module, the location of the noise source, the location of the user, and the location of the sound obtained by the second obtaining module Noise reduction signal;
  • the noise reduction module is further configured to: send the noise reduction signal determined by the determining module to the audio playback to perform noise reduction on the audio signal.
  • the noise reduction module is further configured to: send the noise reduction signal to the audio play, and perform noise reduction on the audio play and the noise signal When the signal arrives at the user, it is superimposed with the noise emitted by the noise source reaching the user.
  • the first obtaining module identifies a plurality of noise signals
  • the determining module is further configured to: identify, according to the first obtaining module, the plurality of noise signals
  • the noise spectrum is classified to determine a noise reduction signal corresponding to each of the noise signals, and the noise reduction signal is a compensation sound wave that is inverted from the corresponding noise signal.
  • the second obtaining module includes:
  • An acquiring unit configured to: obtain a phase difference and a sound pressure difference of the waveform corresponding to the noise signal identified by the first obtaining module;
  • a calculating unit configured to: calculate a three-dimensional spatial position of the noise source corresponding to the noise signal according to the phase difference acquired by the acquiring unit and the sound pressure difference, and obtain a relative movement of the user The three-dimensional position of the terminal.
  • the determining module includes:
  • a determining unit configured to: calculate a delay corresponding to the noise signal according to the noise source calculated by the calculating unit and a three-dimensional spatial position of the user relative to the mobile terminal;
  • a generating unit configured to: generate a noise reduction signal that is inverted from the noise signal according to the delay calculated by the determining unit.
  • the delay is a delay that the noise corresponding to the noise signal reaches a distance of the user relative to the mobile terminal or the audio played the noise reduction signal reaches a distance of the user.
  • the first obtaining module identifies a plurality of noise signals
  • the determining unit calculates a delay corresponding to the noise signal, including:
  • the first obtaining module is further configured to: receive an audio signal sent by the car, and identify a noise signal in the audio signal.
  • a noise reduction method the method being applied to a mobile terminal, the method comprising:
  • the noise reduction signal is played by the mobile terminal; and the audio signal is adjusted according to the noise reduction signal to perform noise reduction on the audio signal, including :
  • the mobile terminal plays the noise reduction signal inverted from the noise signal to the user, it is superimposed with the noise generated by the noise source reaching the user.
  • the obtaining a noise source location corresponding to the noise signal, and obtaining a user location includes:
  • Determining the noise reduction signal according to the noise signal, the noise source location, and the user location including:
  • the noise source location Based on the noise signal, the noise source location, the user location, and the location of the sound Determining the noise reduction signal;
  • Adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal including:
  • the noise reduction signal is sent to the audio playback to denoise the audio signal.
  • the sending the noise reduction signal to the audio playback to perform noise reduction on the audio signal includes:
  • the determining the noise reduction signal according to the noise signal, the noise source location, and the user location includes:
  • the obtaining a noise source location corresponding to the noise signal, and obtaining a user location includes:
  • the determining the noise reduction signal according to the noise signal, the noise source location, and the user location includes:
  • a noise reduction signal inverted from the noise signal is generated according to the delay.
  • the delay is a delay when the noise corresponding to the noise signal reaches a distance of the user relative to the distance that the noise reduction signal reaches the user by the mobile terminal or the audio device.
  • the noise signal when the noise signal is multiple, the calculation is performed.
  • the delay corresponding to the noise signal includes:
  • the obtaining the audio signal and identifying the noise signal in the audio signal includes:
  • the mobile terminal includes: a first obtaining module, configured to: obtain an audio signal, and identify a noise signal in the audio signal; and the second obtaining module is configured to: obtain The first obtaining the noise source position corresponding to the noise signal identified by the module, and obtaining the user position; the determining module is configured to: the noise signal identified by the first obtaining module, and the noise source position and the user position obtained by the second obtaining module Determining the noise reduction signal; the noise reduction module is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal.
  • the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.
  • FIG. 1 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment of the present invention.
  • Figure 2 is a schematic view showing the electrical structure of the camera shown in Figure 1;
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a microphone array setting in a mobile terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an application scenario of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a second obtaining module in a mobile terminal according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a determining module in a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart diagram of a noise reduction method according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of obtaining a noise source location and a user location corresponding to a noise signal in a noise reduction method according to an embodiment of the present disclosure
  • FIG. 10 is a schematic flowchart of determining a noise reduction signal in a noise reduction method according to an embodiment of the present disclosure
  • FIG. 11 is a schematic flowchart diagram of another noise reduction method according to an embodiment of the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc.
  • Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • FIG. 1 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, an output unit 150, a memory 160, a controller 180, a power supply unit 190, and the like.
  • Figure 1 shows a mobile terminal with various components, but it should be understood that implementation is not required All the components shown. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication device or network.
  • the wireless communication unit can include at least one of the mobile communication module 112, the wireless internet module 113, and the short-range communication module 114.
  • the mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the wireless internet module 113 supports wireless internet access of the mobile terminal.
  • the module can be internally or externally coupled to the terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
  • the short range communication module 114 is a module for supporting short range communication.
  • Some examples of short-range communication technologies include BluetoothTM, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), ZigbeeTM, and the like.
  • the A/V input unit 120 is for receiving an audio or video signal.
  • the A/V input unit 120 may include a camera 121 and a microphone 122 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode.
  • the processed image frame can be displayed on the display module 151.
  • the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
  • the microphone 122 can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data.
  • the processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode.
  • the microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information and can Including a keyboard, a pot, a touchpad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel, a rocker, and the like.
  • a touch panel when the touch panel is superimposed on the display module 151 in the form of a layer, a touch screen can be formed.
  • the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal.
  • Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
  • Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
  • the output unit 150 may include a display module 151, an audio output module 152, and the like.
  • the display module 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display module 151 can display a user interface (UI) or graphical user interface (GUI) associated with a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capture mode, the display module 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display module 151 can function as an input device and an output device.
  • the display module 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) .
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like.
  • the audio signal is output as sound.
  • the audio output module 152 can provide audio related to a specific function performed by the mobile terminal 100. Output (for example, call signal reception sound, message reception sound, etc.).
  • the audio output module 152 can include a pickup, a buzzer, and the like.
  • the memory 160 may store a software program or the like for processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like is taken as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • FIG. 2 is a schematic diagram of the electrical structure of the camera shown in FIG. 1.
  • the photographic lens 1211 may include a plurality of optical lenses that form a subject image, and the optical lens may be a single focus lens or a zoom lens.
  • the photographic lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focus position of the photographic lens 1211 in accordance with a control signal from the lens driving control circuit 1222, and can also be controlled in the case of the zoom lens. Focus distance.
  • the lens drive control circuit 1222 drives and controls the lens driver 1221 in accordance with a control command from the microcomputer 1217.
  • An imaging element 1212 is disposed on the optical axis of the photographic lens 1211 near the position of the subject image formed by the photographic lens 1211.
  • the imaging element 1212 is provided to image the subject image and acquire captured image data.
  • Photodiodes constituting each pixel are arranged two-dimensionally and in a matrix on the imaging element 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, which is subjected to charge accumulation by a capacitor connected to each photodiode.
  • the front surface of each pixel is provided with a Bayer array of red, green, blue (abbreviation: RGB) color filters.
  • the imaging element 1212 is connected to an imaging circuit 1213 that performs charge accumulation control and image signal readout control in the imaging element 1212, and reduces the reset noise after the read image signal (for example, an analog image signal).
  • the shaping is performed, and the gain is increased to obtain an appropriate signal level.
  • the imaging circuit 1213 is connected to an analog-to-digital conversion (A/D) converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal to the bus 1227 (hereinafter referred to as It is image data).
  • A/D analog-to-digital conversion
  • the bus 1227 is provided to transmit a transmission path of various data read or generated inside the camera.
  • the A/D converter 1214 is connected to the bus 1227, and an image processor 1215, a JPEG processor 1216, a microcomputer 1217, and a Synchronous Dynamic Random Access Memory (SDRAM) 1218 are connected.
  • a memory interface hereinafter referred to as a memory I/F
  • an LCD liquid crystal display (LCD) driver 1220 an LCD liquid crystal display
  • the image processor 1215 performs output buffering (Output Buffer, abbreviated as: OB) subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, and the image data based on the output of the imaging element 1212.
  • OB output buffering
  • the JPEG processor 1216 compresses the image data read out from the SDRAM 1218 in accordance with the JPEG compression method when the image data is recorded on the recording medium 1225. Further, the JPEG processor 1216 performs decompression of JPEG image data for image reproduction display.
  • the file recorded on the recording medium 1225 is read, and after the compression processing is performed in the JPEG processor 1216, the decompressed image data is temporarily stored in the SDRAM 1218 and displayed on the LCD 1226.
  • the JPEG method is adopted as the image compression/decompression method.
  • the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
  • the microcomputer 1217 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera.
  • the microcomputer 1217 is connected to the operation unit 1223 and the flash memory 1224.
  • the operating unit 1223 includes, but is not limited to, a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button, a cross button, an OK button, a delete button, an enlarge button
  • the operation controls such as various input buttons and various input keys detect the operational state of these operation controls.
  • the detection result is output to the microcomputer 1217. Further, a touch panel is provided on the front surface of the LCD 1226 as a display, and the touch position of the user is detected, and the touch position is output to the microcomputer 1217.
  • the microcomputer 1217 executes various processing sequences corresponding to the user's operation in accordance with the detection result from the operation position of the operation unit 1223.
  • the flash memory 1224 stores programs for executing various processing sequences of the microcomputer 1217.
  • the microcomputer 1217 performs overall control of the camera in accordance with the program. Further, the flash memory 1224 stores various adjustment values of the camera, and the microcomputer 1217 reads out the adjustment value, and performs control of the camera in accordance with the adjustment value.
  • the SDRAM 1218 is provided as an electrically rewritable volatile memory that temporarily stores image data or the like.
  • the SDRAM 1218 temporarily stores image data output from the A/D converter 1214 and image data processed in the image processor 1215, the JPEG processor 1216, and the like.
  • the memory interface 1219 is connected to the recording medium 1225, and performs control for writing image data and a file header attached to the image data to the recording medium 1225 and reading out from the recording medium 1225.
  • the recording medium 1225 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body.
  • the recording medium 1225 is not limited thereto, and may be a hard disk or the like built in the camera body.
  • the LCD driver 1210 is connected to the LCD 1226, and stores image data processed by the image processor 1215 in the SDRAM 1218.
  • the image data stored in the SDRAM 1218 is read and displayed on the LCD 1226, or the image data stored in the JPEG processor 1216 is compressed.
  • the JPEG processor 1216 reads the compressed image data of the SDRAM 1218, decompresses it, and displays the decompressed image data through the LCD 1226.
  • the LCD 1226 is configured to display an image on the back of the camera body.
  • the LCD 1226 may be an LCD, but is not limited thereto, and the LCD 1226 may be implemented by other display panels such as organic electroluminescence (EL), but is not limited thereto.
  • EL organic electroluminescence
  • the following embodiments of the present invention provide a mobile terminal and a noise reduction method.
  • the embodiment of the invention provides a mobile terminal.
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal provided in this embodiment may include:
  • the first obtaining module 10 is configured to: obtain an audio signal, and identify a noise signal in the audio signal.
  • the embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad.
  • the mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario.
  • the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included.
  • the present invention is described by taking two application scenarios as an example:
  • the mobile terminal applied to the present scenario may include a CPU or a graphics processing unit (Graphics Processing Unit, GPU for short), that is, the controller 180 in FIG. 1, a camera 121, and a microphone 122.
  • the number of microphones in this scenario may be, for example, three separate
  • FIG. 4 it is a schematic diagram of a microphone array setting in the mobile terminal provided by the embodiment of the present invention. Since the detection accuracy of the sound pressure level in the related art can reach 0.1DBA, the detection accuracy of the phase difference can reach 0.1 degree, so when the position changes, the software has strong stability and does not need to change the corresponding technology.
  • the noise source of this scene can be the noise generated by the square dance, the noise emitted by the car horn, and the like.
  • FIG. 5 it is a schematic diagram of an application scenario of the mobile terminal provided by the embodiment of the present invention.
  • the user can perform the user input unit on the mobile terminal. Operation, start active noise reduction.
  • the external sound includes noise and effective sound
  • the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained.
  • a noise signal in an audio signal can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one.
  • the power of the frequency component of white noise is uniform throughout the audible range (0 to 20 kHz); the energy of the pink noise is continuously attenuated from the low frequency to the high frequency, and the curve is 1/f, usually 3 drops per 8 degrees. Decibel; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f ⁇ 2, and its waveform is very self-similar.
  • the automobile engine noise is the main noise source when the main vehicle is running.
  • the mobile terminal may also include at least one of a CPU or a GPU (ie, the controller 180 in FIG. 1) and the wireless communication unit 110 for calculation.
  • the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wireless fidelity (WIreless-FIdelity, hereinafter referred to as: wifi).
  • the car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three.
  • the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
  • the first obtaining module 10 may be further configured to: receive an audio signal sent by the car, And identifying the noise signal in the audio signal.
  • the audio signal After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and can also be sent to the mobile terminal through the communication carrier during implementation. Thereby the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
  • active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
  • the second obtaining module 20 is configured to: obtain the noise source position corresponding to the noise signal recognized by the first obtaining module 10, and obtain the user position.
  • the second obtaining module 20 may obtain the noise source position corresponding to the noise signal according to the noise signal.
  • FIG. 6 a schematic diagram of a structure of a second obtaining module in a mobile terminal according to an embodiment of the present invention, where the second obtaining module 20 in this embodiment may include:
  • the obtaining unit 21 is configured to acquire a phase difference and a sound pressure difference of the waveform corresponding to the noise signal recognized by the first obtaining module 10.
  • the calculating unit 22 is configured to calculate a three-dimensional spatial position of the noise source corresponding to the noise signal according to the phase difference and the sound pressure difference acquired by the acquiring unit 21, and obtain a three-dimensional spatial position of the user relative to the mobile terminal.
  • the phase difference and the sound pressure difference of the corresponding waveform of the noise signal are obtained according to the noise signal obtained by the microphone (Microphone, MIC for short), and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array to calculate the noise.
  • Each input waveform has a position difference with the sound source, and the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the reception delay.
  • the phase difference and the sound pressure difference are obtained.
  • the position distance of the sound source to each MIC can be calculated, and by drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
  • the calculation unit 22 can locate the position of the user in the above manner.
  • the voice detection algorithm Voice Activity Detection, VAD for short
  • VAD Voice Activity Detection
  • the positioning is performed by the dual camera in the mobile terminal or by the single camera on the mobile terminal and the infrared ranging unit, so that the positioning can be performed by using a dual camera or a single camera in the car or the room.
  • the infrared ranging unit performs positioning. In more implementations, sonar positioning is also possible.
  • the determining module 30 is configured to determine the noise reduction signal according to the noise signal recognized by the first obtaining module 10 and the noise source position and the user position obtained by the second obtaining module 20.
  • the determining module 30 determines the noise reduction signal according to the noise signal recognized by the first obtaining module 10 and the noise source position and the user position obtained by the second obtaining module 20. In a possible application scenario, if there are multiple noise signals, the determining module 30 classifies the noise spectra of the plurality of noise signals, extracts one by one, and respectively determines a noise reduction signal corresponding to each noise signal, and the noise reduction is performed. The signal compensates for the sound wave by inverting the corresponding noise signal.
  • FIG. 7 a schematic structural diagram of a determining module in a mobile terminal according to an embodiment of the present invention, where the determining module 30 in this embodiment may include:
  • the determining unit 31 is configured to: calculate a delay corresponding to the noise signal according to the noise source calculated by the calculating unit 22 and the three-dimensional spatial position of the user relative to the mobile terminal;
  • the generating unit 32 is configured to generate a noise reduction signal that is inverted from the noise signal according to the delay calculated by the determining unit 31.
  • the determining unit 31 is further configured to: calculate a noise corresponding to each of the plurality of the noise signals to reach a user distance relative to the mobile terminal The corresponding delay of playing multiple noise reduction signals to reach the user's distance.
  • a noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
  • the noise reduction module 40 is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module 30 to perform noise reduction on the audio signal.
  • the noise reduction signal determined by the determining module 30 is passed in this embodiment.
  • the mobile terminal plays, so that when the mobile terminal plays a noise reduction signal that is inverted with the noise signal and reaches the user, it can be superimposed with the noise generated by the noise source to reach the user, thereby canceling, achieving the purpose of noise reduction, and effectively avoiding noise. interference.
  • the mobile terminal includes: a first obtaining module, configured to: obtain an audio signal, and identify a noise signal in the audio signal; and the second obtaining module is configured to: obtain the noise recognized by the first obtaining module a noise source position corresponding to the signal, and obtaining a user position; the determining module is configured to: determine a noise reduction signal according to the noise signal identified by the first obtaining module, and the noise source position and the user position obtained by the second obtaining module; the noise reduction module And being set to: adjust an audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal.
  • the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.
  • the mobile terminal provided in this embodiment may include:
  • the first obtaining module 10 is configured to: obtain an audio signal, and identify a noise signal in the audio signal.
  • the embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad.
  • the mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario.
  • the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included.
  • the present invention is described by taking two application scenarios as an example:
  • the mobile terminal applied to the present scenario may include a CPU or GPU (ie, the controller 180 in FIG. 1) for calculation, a camera 121, and a microphone 122.
  • the number of microphones in the present scenario may be, for example, three suitable positions respectively set on the mobile terminal, such as respectively located at two ends of the mobile terminal, and also configured as a microphone array as shown in FIG. Since the detection accuracy of the sound pressure level in the related art can reach 0.1DBA, the detection accuracy of the phase difference can reach 0.1 degree, so when the position changes, the software has strong stability and does not need to change the corresponding technology.
  • the noise source can be noise generated by the square dance, noise emitted by the car horn, and the like. When the user is in the room, it is very susceptible to external noise harassment.
  • the application scenario shown in Figure 5 is as follows. At this time, the user can operate the user input unit on the mobile terminal to activate the active noise reduction function.
  • the external sound includes noise and effective sound
  • the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained.
  • a noise signal in an audio signal can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one.
  • the power of a frequency component such as white noise is uniform throughout the audible range (0 to 20 kHz); the energy of pink noise is continuously attenuated from low frequency to high frequency, and the curve is 1/f, usually every 8 degrees. 3 dB; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f ⁇ 2, and its waveform is very self-similar.
  • the automobile engine noise is the main noise source when the main vehicle is running.
  • the mobile terminal may also include at least one of a CPU or a GPU (ie, the controller 180 in FIG. 1) and the wireless communication unit 110 for calculation.
  • the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wifi.
  • the car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three. Since the sound is transmitted at a relatively fast speed, the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
  • the first obtaining module 10 may be further configured to: receive an audio signal transmitted by the car, and identify a noise signal in the audio signal.
  • the audio signal After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and can also be sent to the mobile terminal through the communication carrier during implementation. Thereby the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
  • active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
  • the second obtaining module 20 is further configured to: obtain the noise source position corresponding to the noise signal recognized by the first obtaining module 10, and obtain the position of the user position and the sound.
  • the second obtaining module 20 may obtain the noise source position corresponding to the noise signal according to the noise signal.
  • the phase difference and the sound pressure difference of the waveform corresponding to the noise signal are obtained according to the noise signal obtained by the microphone, and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array, and the three-dimensional spatial position of the noise source relative to the terminal is calculated.
  • Each input waveform has a position difference with the sound source, and the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the reception delay.
  • the phase difference and the sound pressure difference are obtained. According to the speed formula of the sound wave propagating in the air, the position distance of the sound source to each MIC can be calculated, and by drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
  • the second obtaining module 20 can locate the position of the user in the above manner.
  • the vocal detection algorithm VAD distinguishes the vocal, and then determines the position of the person according to the phase difference of the vocal waveform and the sound pressure difference.
  • the positioning may also be performed by other means, for example, by positioning the two cameras in the mobile terminal or by using a single camera on the mobile terminal to cooperate with the infrared ranging unit, thereby positioning, and of course, by setting in the car or the room.
  • sonar positioning is also possible.
  • the sound of the test position is played, and the position of the sound for playing the subsequent noise reduction signal is measured by the above method, and of course, the position of the sound can be preset in the application scene in the vehicle.
  • the user can also input the position of the sound through the input menu.
  • the determining module 30 is further configured to determine the noise reduction signal according to the noise signal identified by the first obtaining module 10 and the position of the noise source, the position of the user, and the position of the sound obtained by the second obtaining module 20.
  • the determining module 30 determines the noise reduction signal according to the noise signal recognized by the first obtaining module 10 and the position of the noise source, the position of the user, and the position of the sound obtained by the second obtaining module 20.
  • the determining module 30 determines that the noise reduction signal may be implemented by classifying the noise spectra of the plurality of noise signals, extracting one by one, and determining each noise separately. a noise reduction signal corresponding to the signal, and the noise reduction signal is corresponding to The noise signal is inverted to compensate for the sound wave.
  • the delay of the noise corresponding to the noise signal reaching the distance of the user relative to the distance at which the noise reduction signal reaches the user is obtained.
  • the sound plays the phase difference between the noise reduction signal and the noise signal.
  • the noise corresponding to each of the plurality of noise signals is calculated to reach the user's distance relative to the audio to play the plurality of noise reduction signals to reach the user. The corresponding delay.
  • a noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
  • the noise reduction module 40 is further configured to: send the noise reduction signal determined by the determination module 30 to the audio playback to perform noise reduction on the audio signal.
  • the noise reduction signal is sent to the audio playback according to the noise reduction signal determined by the determining module 30 to perform noise reduction on the audio signal.
  • the audio is played, so that when the noise reduction signal in which the audio playback and the noise signal are inverted reaches the user, it can be superimposed with the noise generated by the noise source to reach the user, thereby canceling, achieving the purpose of noise reduction, and effectively Avoid noise interference.
  • the above sound may be an internal sound of the car or a home audio in the room.
  • the active noise reduction in the vehicle is carried out by using the mobile terminal and the microphone assembled by the automobile, and the noise reduction algorithm and computing resources on the mobile terminal are used to collect the external environment sound in real time, and analyze and calculate. Identifying the noise from it and controlling the car to play the reverse noise reduction signal to weaken, so as to achieve the effect of active noise reduction, a mobile terminal can adapt to a variety of vehicle types, and there is no requirement for the computing resources of the vehicle equipment, and the user is increasingly growing. The comfortable driving experience requires more humanity.
  • Embodiments of the present invention also provide a noise reduction method.
  • FIG. 8 is a schematic flowchart diagram of a noise reduction method according to an embodiment of the present invention.
  • the noise reduction method provided in this embodiment may include the following steps, that is, S10 to S40:
  • the embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad.
  • the mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario.
  • the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included.
  • the present invention is described by taking two application scenarios as an example:
  • the mobile terminal applied to the present scenario may include a CPU or GPU (ie, the controller 180 in FIG. 1) for calculation, a camera 121, and a microphone 122.
  • the number of microphones in the present scenario may be, for example, three suitable positions respectively set on the mobile terminal, for example, respectively located at two ends of the mobile terminal, and may also be set with reference to the microphone array shown in FIG. 4. Since the detection accuracy of the sound pressure level in the related art can reach 0.1DBA, the detection accuracy of the phase difference can reach 0.1 degree, so when the position changes, the software has strong stability and does not need to change the corresponding technology.
  • the noise source of this scene can be the noise generated by the square dance, the noise emitted by the car horn, and the like. When the user is in the room, it is easy to be disturbed by external noise.
  • the application scenario shown in Figure 5 can also be referred to. At this time, the user can operate through the user input unit on the mobile terminal to activate the active noise reduction function.
  • the external sound includes noise and effective sound
  • the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained.
  • a noise signal in an audio signal can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one.
  • the power of the frequency component of white noise is uniform throughout the audible range (0 to 20 kHz); the energy of the pink noise is continuously attenuated from the low frequency to the high frequency, and the curve is 1/f, usually 3 drops per 8 degrees. Decibel; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f ⁇ 2, and its waveform is very self-similar.
  • the car engine noise is the main noise source when the main car is running.
  • the mobile terminal can also include a CPU or GPU for calculation (ie, the controller 180 in FIG. 1). And at least one of the wireless communication units 110.
  • the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wifi.
  • the car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three. Since the sound is transmitted at a relatively fast speed, the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
  • the implementation of S10 may be: receiving an audio signal sent by the car, and identifying a noise signal in the audio signal.
  • the audio signal After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and can also be sent to the mobile terminal through the communication carrier during implementation. Thereby the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
  • active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
  • S20 obtain a noise source location corresponding to the noise signal, and obtain a user location.
  • the noise source position corresponding to the noise signal can be obtained according to the noise signal.
  • FIG. 9 a schematic flowchart of obtaining a noise source location and a user location corresponding to a noise signal in the noise reduction method provided by the embodiment of the present invention, where the noise source location corresponding to the noise signal is obtained in this embodiment And obtaining the implementation manner of the user location, which may include the following steps, namely, S21 to S22:
  • the phase difference and the sound pressure difference of the waveform corresponding to the noise signal are obtained according to the noise signal obtained by the microphone, and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array, and the three-dimensional spatial position of the noise source relative to the terminal is calculated.
  • Each input waveform has a position difference due to the sound source Different, the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the receiving delay.
  • the position distance of the sound source to each MIC can be calculated. By drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
  • the position of the user can be located in the above manner.
  • the vocal detection algorithm VAD distinguishes the vocal, and then the position of the person is determined according to the phase difference of the vocal waveform and the sound pressure difference, and the implementation can also be performed.
  • the positioning can be performed, of course, by a dual camera set in the car or in the room. Or a single camera and an infrared ranging unit for positioning. In more implementations, sonar positioning is also possible.
  • the noise reduction signal is determined according to the noise signal, the noise source position, and the user position obtained in the above steps.
  • the implementation manner of S30 may be: classifying according to the noise spectrum of the multiple noise signals, extracting one by one, and respectively determining the noise reduction signals corresponding to each noise signal.
  • the noise reduction signal compensates the sound wave in inverse phase with the corresponding noise signal.
  • FIG. 10 a schematic flowchart of determining a noise reduction signal in a noise reduction method according to an embodiment of the present invention, where the noise reduction signal is determined according to a noise signal, a noise source location, and a user position in this embodiment.
  • the implementation manner may include the following steps, that is, S31 to S32:
  • the delay of the noise corresponding to the noise signal reaching the distance of the user relative to the distance at which the mobile terminal plays the noise reduction signal reaches the user is calculated.
  • the noise reduction signal is out of phase with the noise signal.
  • the implementation of S31 may be: calculating that the noise corresponding to each of the plurality of noise signals reaches the user's distance and is more than the mobile terminal. The noise reduction signal reaches the corresponding delay of the user's distance.
  • a noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
  • the mobile terminal performs playback, so that when the mobile terminal plays a noise reduction signal inverted from the noise signal and reaches the user, it may be sent out with the noise source.
  • the noise reduction method provided by the embodiment of the present invention obtains an audio signal and identifies a noise signal in the audio signal; obtains a noise source position corresponding to the noise signal, and obtains a user position; according to the noise signal, the noise source location, and the user Position determining the noise reduction signal; adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal.
  • the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.
  • FIG. 11 is a schematic flowchart diagram of another noise reduction method according to an embodiment of the present invention.
  • the noise reduction method provided in this embodiment may include the following steps, namely, S10, S50 to S70:
  • the embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad.
  • the mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario.
  • the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included.
  • the present invention is described by taking two application scenarios as an example:
  • the mobile terminal applied to the present scenario may include a CPU or GPU (ie, the controller 180 in FIG. 1) for calculation, a camera 121, and a microphone 122.
  • the number of microphones in the present scenario may be, for example, three suitable positions respectively set on the mobile terminal, such as respectively located at two ends of the mobile terminal, and also configured as a microphone array as shown in FIG. Due to the softness of the related art
  • the detection accuracy of the sound pressure level can reach 0.1DBA, and the detection accuracy of the phase difference can reach 0.1 degree. Therefore, when the position changes, the software has strong stability and does not need to change the corresponding technology.
  • the noise source of this scene can be the noise generated by the square dance, the noise emitted by the car horn, and the like. When the user is in the room, it is very susceptible to external noise harassment.
  • the application scenario shown in Figure 5 is as follows. At this time, the user can operate the user input unit on the mobile terminal to activate the active noise reduction function.
  • the external sound includes noise and effective sound
  • the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained.
  • a noise signal in an audio signal can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one.
  • the power of a frequency component such as white noise is uniform throughout the audible range (0 to 20 kHz); the energy of pink noise is continuously attenuated from low frequency to high frequency, and the curve is 1/f, usually every 8 degrees. 3 dB; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f ⁇ 2, and its waveform is very self-similar.
  • the automobile engine noise is the main noise source when the main vehicle is running.
  • the mobile terminal may also include at least one of a CPU or a GPU (ie, the controller 180 in FIG. 1) and the wireless communication unit 110 for calculation.
  • the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wifi.
  • the car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three. Since the sound is transmitted at a relatively fast speed, the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
  • the implementation of S10 may be: receiving an audio signal sent by the car, and identifying a noise signal in the audio signal.
  • the audio signal After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and the communication can also be performed in the implementation.
  • the operator sends it to the mobile terminal.
  • the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
  • active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
  • S50 obtain a noise source position corresponding to the noise signal, and obtain a position of the user and an acoustic position.
  • the noise source position corresponding to the noise signal can be obtained according to the noise signal.
  • the phase difference and the sound pressure difference of the waveform corresponding to the noise signal are obtained according to the noise signal obtained by the microphone, and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array, and the three-dimensional spatial position of the noise source relative to the terminal is calculated.
  • Each input waveform has a position difference with the sound source, and the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the reception delay.
  • the phase difference and the sound pressure difference are obtained. According to the speed formula of the sound wave propagating in the air, the position distance of the sound source to each MIC can be calculated, and by drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
  • the position of the user can be located in the above manner.
  • the human voice is determined by the voice detection algorithm VAD, and then the position of the person is determined according to the phase difference of the voice waveform and the sound pressure difference.
  • the positioning can also be performed by other means, for example, by positioning the two cameras in the mobile terminal or by using a single camera on the mobile terminal to cooperate with the infrared ranging unit, and of course, by setting the double in the car or the room. Camera, or single camera and infrared ranging unit for positioning. In more implementations, sonar positioning is also possible.
  • the sound of the test position is played, and the position of the sound for playing the subsequent noise reduction signal is measured by the above method, and of course, the position of the sound can be preset in the application scene in the vehicle.
  • the user can also input the position of the sound through the input menu.
  • the noise reduction signal, the noise source position, and the user position obtained according to the above steps are determined in S60.
  • the implementation manner of the S60 may be: classifying according to the noise spectrum of the plurality of noise signals, extracting one by one, respectively determining the noise reduction signal corresponding to each noise signal, and the noise reduction signal is inversely compensated with the corresponding noise signal. Sound waves.
  • the delay of the noise corresponding to the noise signal reaching the distance of the user relative to the distance at which the noise reduction signal reaches the user is obtained.
  • the sound plays the phase difference between the noise reduction signal and the noise signal.
  • the noise corresponding to each of the plurality of noise signals is calculated to reach the user's distance relative to the audio to play the plurality of noise reduction signals to reach the user. The corresponding delay.
  • a noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
  • S70 Send the noise reduction signal to the audio player to perform noise reduction on the audio signal.
  • the noise reduction signal is sent to the audio playback according to the noise reduction signal determined by S60 to perform noise reduction on the audio signal.
  • the audio is played, so that when the noise reduction signal in which the audio playback and the noise signal are inverted reaches the user, it can be superimposed with the noise generated by the noise source to reach the user, thereby canceling, achieving the purpose of noise reduction, and effectively Avoid noise interference.
  • the above sound may be an internal sound of the car or a home audio in the room.
  • the active noise reduction in the vehicle is carried out by using the mobile terminal and the microphone assembled by the automobile, and the noise reduction algorithm and computing resources on the mobile terminal are used to collect the external environment sound in real time, and analyze and calculate. Identifying the noise from it and controlling the car to play the reverse noise reduction signal to weaken, so as to achieve the effect of active noise reduction, a mobile terminal can adapt to a variety of vehicle types, and there is no requirement for the computing resources of the vehicle equipment, and the user is increasingly growing. The comfortable driving experience requires more humanity.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the mobile terminal includes: a first obtaining module, configured to: obtain an audio signal, and identify a noise signal in the audio signal; and the second obtaining module is configured to: obtain the first obtaining module Identifying a noise source corresponding to the noise source position, and obtaining a user position; the determining module is configured to: determine a noise reduction signal according to the noise signal identified by the first obtaining module, and the noise source position and the user position obtained by the second obtaining module
  • the noise reduction module is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal.
  • the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

A mobile terminal and a noise reduction method, the mobile terminal comprising: a first acquisition module (10), configured to acquire an audio signal and identify a noise signal from the audio signal (S10); a second acquisition module (20), configured to acquire a noise source position corresponding to the noise signal identified by the first acquisition module (10), and acquire a user position (S20); a determination module (30), configured to determine a noise reduction signal according to the noise signal identified by the first acquisition module (10), and the noise source position and user position acquired by the second acquisition module (20) (S30); a noise reduction module (40), configured to adjust the audio signal according to the noise reduction signal determined by the determination module (30) so as to perform noise reduction on the audio signal (S40).

Description

移动终端和降噪方法Mobile terminal and noise reduction method 技术领域Technical field
本申请涉及但不限于移动终端技术领域。This application relates to, but is not limited to, the field of mobile terminal technology.
背景技术Background technique
相关技术在车内主动降噪的方案上,都是利用车载智能设备和车身装配的麦克风进行数据传输,利用车载智能设备上的算法和运算资源进行计算和反向声波叠加播放,因此,对车载设备的算法和运算能力要求很高,上述运算资源例如包括中央处理器(Central Processing Unit,简称为:CPU)、内存等。另外,相关技术中只有部分高端车型上的车载具有降噪能力,大部分中低端汽车配备的车载不具有降噪算法以及相应的运算能力,无法实现车内主动降噪。In the scheme of active noise reduction in the vehicle, the related art uses the in-vehicle intelligent device and the microphone assembled by the vehicle body for data transmission, and uses the algorithm and computing resources on the in-vehicle intelligent device to perform calculation and reverse sound wave superimposition and playback, therefore, on the vehicle The computing and computing power of the device is very high. The computing resources include a central processing unit (CPU), a memory, and the like. In addition, only some of the high-end models in the related art have the ability to reduce noise. Most of the mid- and low-end vehicles are equipped with a vehicle that does not have a noise reduction algorithm and corresponding computing power, and cannot achieve active noise reduction in the vehicle.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提出一种移动终端和降噪方法,以实现通过移动终端进行主动降噪的方式。This paper proposes a mobile terminal and noise reduction method to realize the method of active noise reduction through the mobile terminal.
一种移动终端,包括:A mobile terminal includes:
第一获得模块,设置为:获得音频信号,并识别出所述音频信号中的噪声信号;a first obtaining module configured to: obtain an audio signal, and identify a noise signal in the audio signal;
第二获得模块,设置为:获得所述第一获得模块识别出的所述噪声信号对应的噪声源位置,并获得用户位置;a second obtaining module, configured to: obtain a noise source location corresponding to the noise signal identified by the first obtaining module, and obtain a user location;
确定模块,设置为:根据所述第一获得模块识别出的所述噪声信号,以及所述第二获得模块获得的噪声源位置和所述用户位置确定降噪信号;a determining module, configured to: determine a noise reduction signal according to the noise signal identified by the first obtaining module, and a noise source position obtained by the second obtaining module and the user position;
降噪模块,设置为:根据所述确定模块确定的所述降噪信号调整所述音频信号,以对所述音频信号进行降噪。 The noise reduction module is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal.
可选地,如上所述的移动终端中,通过所述移动终端播放所述确定模块确定的所述降噪信号;所述降噪模块,还设置为:在所述移动终端播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。Optionally, in the mobile terminal as described above, the noise reduction signal determined by the determining module is played by the mobile terminal; the noise reduction module is further configured to: play the noise with the mobile terminal When the noise-reduced signal of the signal inversion arrives at the user, it is superimposed with the noise generated by the noise source reaching the user.
可选地,如上所述的移动终端中,Optionally, in the mobile terminal as described above,
所述第二获得模块,还设置为:获得所述第一获得模块识别出的所述噪声信号对应的噪声源位置,并获得用户位置和音响的位置;The second obtaining module is further configured to: obtain a noise source location corresponding to the noise signal identified by the first obtaining module, and obtain a location of the user location and an audio position;
所述确定模块,还设置为:根据所述第一获得模块识别出的所述噪声信号,以及所述第二获得模块获得的所述噪声源位置、所述用户位置和所述音响的位置确定降噪信号;The determining module is further configured to: determine, according to the noise signal identified by the first obtaining module, the location of the noise source, the location of the user, and the location of the sound obtained by the second obtaining module Noise reduction signal;
所述降噪模块,还设置为:将所述确定模块确定的所述降噪信号发送至所述音响播放,以对所述音频信号进行降噪。The noise reduction module is further configured to: send the noise reduction signal determined by the determining module to the audio playback to perform noise reduction on the audio signal.
可选地,如上所述的移动终端中,所述降噪模块,还设置为:将所述降噪信号发送至所述音响播放,在所述音响播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。Optionally, in the mobile terminal as described above, the noise reduction module is further configured to: send the noise reduction signal to the audio play, and perform noise reduction on the audio play and the noise signal When the signal arrives at the user, it is superimposed with the noise emitted by the noise source reaching the user.
可选地,如上所述的移动终端中,所述第一获得模块识别出多个噪声信号,所述确定模块,还设置为:根据所述第一获得模块识别出所述多个噪声信号的噪声频谱进行归类,分别确定出每个所述噪声信号对应的降噪信号,所述降噪信号为与对应的噪声信号反相的补偿声波。Optionally, in the mobile terminal, the first obtaining module identifies a plurality of noise signals, and the determining module is further configured to: identify, according to the first obtaining module, the plurality of noise signals The noise spectrum is classified to determine a noise reduction signal corresponding to each of the noise signals, and the noise reduction signal is a compensation sound wave that is inverted from the corresponding noise signal.
可选地,如上所述的移动终端中,所述第二获得模块包括:Optionally, in the mobile terminal as described above, the second obtaining module includes:
获取单元,设置为:获取所述第一获得模块识别出的所述噪声信号对应波形的相位差及声压差;An acquiring unit, configured to: obtain a phase difference and a sound pressure difference of the waveform corresponding to the noise signal identified by the first obtaining module;
计算单元,设置为:根据所述获取单元获取的所述相位差及所述声压差计算所述噪声信号对应的噪声源相对于所述移动终端的三维空间位置,并获得用户相对所述移动终端的三维空间位置。a calculating unit, configured to: calculate a three-dimensional spatial position of the noise source corresponding to the noise signal according to the phase difference acquired by the acquiring unit and the sound pressure difference, and obtain a relative movement of the user The three-dimensional position of the terminal.
可选地,如上所述的移动终端中,所述确定模块包括:Optionally, in the mobile terminal as described above, the determining module includes:
确定单元,设置为:根据所述计算单元计算出的所述噪声源和所述用户相对所述移动终端的三维空间位置,计算出所述噪声信号对应的延时; a determining unit, configured to: calculate a delay corresponding to the noise signal according to the noise source calculated by the calculating unit and a three-dimensional spatial position of the user relative to the mobile terminal;
生成单元,设置为:根据所述确定单元计算出的所述延时生成与所述噪声信号反相的降噪信号。And a generating unit, configured to: generate a noise reduction signal that is inverted from the noise signal according to the delay calculated by the determining unit.
可选地,如上所述的移动终端中,所述延时为所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放所述降噪信号达到用户的距离的延时。Optionally, in the mobile terminal as described above, the delay is a delay that the noise corresponding to the noise signal reaches a distance of the user relative to the mobile terminal or the audio played the noise reduction signal reaches a distance of the user.
可选地,如上所述的移动终端中,所述第一获得模块识别出多个噪声信号,所述确定单元计算出所述噪声信号对应的延时,包括:Optionally, in the mobile terminal as described above, the first obtaining module identifies a plurality of noise signals, and the determining unit calculates a delay corresponding to the noise signal, including:
计算出所述多个噪声信号中每个所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放本降噪信号达到用户的距离的延时。Calculating a delay of the noise corresponding to each of the plurality of noise signals reaching the user's distance relative to the mobile terminal or the audio playbook noise reduction signal reaching the user.
可选地,如上所述的移动终端中,所述第一获得模块,还设置为:接收汽车发送的音频信号,并识别出所述音频信号中的噪声信号。Optionally, in the mobile terminal as described above, the first obtaining module is further configured to: receive an audio signal sent by the car, and identify a noise signal in the audio signal.
一种降噪方法,所述方法应用于移动终端,所述方法包括:A noise reduction method, the method being applied to a mobile terminal, the method comprising:
获得音频信号,并识别出所述音频信号中的噪声信号;Obtaining an audio signal and identifying a noise signal in the audio signal;
获得所述噪声信号对应的噪声源位置,并获得用户位置;Obtaining a noise source location corresponding to the noise signal, and obtaining a user location;
根据所述噪声信号、所述噪声源位置和所述用户位置确定降噪信号;Determining a noise reduction signal according to the noise signal, the noise source location, and the user location;
根据所述降噪信号调整所述音频信号,以对所述音频信号进行降噪。Adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal.
可选地,如上所述的降噪方法中,通过所述移动终端播放所述降噪信号;所述根据所述降噪信号调整所述音频信号,以对所述音频信号进行降噪,包括:Optionally, in the noise reduction method as described above, the noise reduction signal is played by the mobile terminal; and the audio signal is adjusted according to the noise reduction signal to perform noise reduction on the audio signal, including :
在所述移动终端播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。When the mobile terminal plays the noise reduction signal inverted from the noise signal to the user, it is superimposed with the noise generated by the noise source reaching the user.
可选地,如上所述的降噪方法中,所述获得所述噪声信号对应的噪声源位置,并获得用户位置,包括:Optionally, in the noise reduction method as described above, the obtaining a noise source location corresponding to the noise signal, and obtaining a user location, includes:
获得所述噪声信号对应的噪声源位置,并获得用户位置和音响的位置;Obtaining a noise source position corresponding to the noise signal, and obtaining a position of the user and an acoustic position;
所述根据所述噪声信号、所述噪声源位置和用户位置确定降噪信号,包括:Determining the noise reduction signal according to the noise signal, the noise source location, and the user location, including:
根据所述噪声信号、所述噪声源位置、所述用户位置和所述音响的位置 确定降噪信号;Based on the noise signal, the noise source location, the user location, and the location of the sound Determining the noise reduction signal;
所述根据所述降噪信号调整所述音频信号,以对所述音频信号进行降噪,包括:Adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal, including:
将所述降噪信号发送至所述音响播放,以对所述音频信号进行降噪。The noise reduction signal is sent to the audio playback to denoise the audio signal.
可选地,如上所述的降噪方法中,所述将所述降噪信号发送至所述音响播放,以对所述音频信号进行降噪,包括:Optionally, in the noise reduction method as described above, the sending the noise reduction signal to the audio playback to perform noise reduction on the audio signal includes:
将所述降噪信号发送至所述音响播放,在所述音响播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。Transmitting the noise reduction signal to the audio playback, and superimposing the noise that is generated by the noise source and reaching the user when the noise reduction signal that is opposite to the noise signal reaches the user.
可选地,如上所述的降噪方法中,所述噪声信号为多个时,所述根据所述噪声信号、所述噪声源位置和所述用户位置确定降噪信号,包括:Optionally, in the noise reduction method as described above, when the noise signal is multiple, the determining the noise reduction signal according to the noise signal, the noise source location, and the user location, includes:
根据所述多个噪声信号的噪声频谱进行归类,分别确定出每个所述噪声信号对应的降噪信号,所述降噪信号为与对应的噪声信号反相的补偿声波。And categorizing according to the noise spectrum of the plurality of noise signals, respectively determining a noise reduction signal corresponding to each of the noise signals, wherein the noise reduction signal is a compensation sound wave that is opposite to the corresponding noise signal.
可选地,如上所述的降噪方法中,所述获得所述噪声信号对应的噪声源位置,并获得用户位置,包括:Optionally, in the noise reduction method as described above, the obtaining a noise source location corresponding to the noise signal, and obtaining a user location, includes:
获取所述噪声信号对应波形的相位差及声压差;Obtaining a phase difference and a sound pressure difference of the waveform corresponding to the noise signal;
根据所述相位差及所述声压差计算所述噪声信号对应的噪声源相对于所述移动终端的三维空间位置,并获得用户相对所述移动终端的三维空间位置。And calculating, according to the phase difference and the sound pressure difference, a three-dimensional spatial position of the noise source corresponding to the noise signal with respect to the mobile terminal, and obtaining a three-dimensional spatial position of the user relative to the mobile terminal.
可选地,如上所述的降噪方法中,所述根据所述噪声信号、所述噪声源位置和用户位置确定降噪信号,包括:Optionally, in the noise reduction method as described above, the determining the noise reduction signal according to the noise signal, the noise source location, and the user location, includes:
根据所述噪声源和所述用户相对所述移动终端的三维空间位置,计算出所述噪声信号对应的延时;Calculating a delay corresponding to the noise signal according to the noise source and a three-dimensional spatial position of the user relative to the mobile terminal;
根据所述延时生成与所述噪声信号反相的降噪信号。A noise reduction signal inverted from the noise signal is generated according to the delay.
可选地,如上所述的降噪方法中,所述延时为所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放所述降噪信号达到用户的距离的延时。Optionally, in the noise reduction method as described above, the delay is a delay when the noise corresponding to the noise signal reaches a distance of the user relative to the distance that the noise reduction signal reaches the user by the mobile terminal or the audio device. .
可选地,如上所述的降噪方法中,所述噪声信号为多个时,所述计算出 所述噪声信号对应的延时,包括:Optionally, in the noise reduction method as described above, when the noise signal is multiple, the calculation is performed. The delay corresponding to the noise signal includes:
计算出所述多个噪声信号中每个所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放本降噪信号达到用户的距离的延时。Calculating a delay of the noise corresponding to each of the plurality of noise signals reaching the user's distance relative to the mobile terminal or the audio playbook noise reduction signal reaching the user.
可选地,如上所述的降噪方法中,所述获得音频信号,并识别出所述音频信号中的噪声信号,包括:Optionally, in the noise reduction method as described above, the obtaining the audio signal and identifying the noise signal in the audio signal includes:
接收汽车发送的音频信号,并识别出所述音频信号中的噪声信号。Receiving an audio signal transmitted by the car and identifying a noise signal in the audio signal.
本发明实施例提供的移动终端和降噪方法,该移动终端包括,第一获得模块,设置为:获得音频信号,并识别出该音频信号中的噪声信号;第二获得模块,设置为:获得第一获得模块识别出的噪声信号对应的噪声源位置,并获得用户位置;确定模块,设置为:根据第一获得模块识别出的噪声信号,以及第二获得模块获得的噪声源位置和用户位置确定降噪信号;降噪模块,设置为:根据确定模块确定的降噪信号调整音频信号,以对该音频信号进行降噪。通过上述方式,本发明实施例利用移动终端的资源,根据获得的音频信号、噪声源位置和用户位置确定降噪信号,实现对音频信号进行主动降噪,能够保证用户不受噪声的困扰,并且使用移动终端能够适用多种环境。The mobile terminal and the noise reduction method provided by the embodiment of the present invention, the mobile terminal includes: a first obtaining module, configured to: obtain an audio signal, and identify a noise signal in the audio signal; and the second obtaining module is configured to: obtain The first obtaining the noise source position corresponding to the noise signal identified by the module, and obtaining the user position; the determining module is configured to: the noise signal identified by the first obtaining module, and the noise source position and the user position obtained by the second obtaining module Determining the noise reduction signal; the noise reduction module is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal. In the above manner, the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为实现本发明实施例提供的移动终端的硬件结构示意图;1 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment of the present invention;
图2为图1所示相机的电气结构示意图;Figure 2 is a schematic view showing the electrical structure of the camera shown in Figure 1;
图3为本发明实施例提供的一种移动终端的结构示意图;FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图4为本发明实施例提供的移动终端中一种麦克风阵列设置的示意图;4 is a schematic diagram of a microphone array setting in a mobile terminal according to an embodiment of the present invention;
图5为本发明实施例提供的移动终端的一种应用场景的示意图;FIG. 5 is a schematic diagram of an application scenario of a mobile terminal according to an embodiment of the present disclosure;
图6为本发明实施例提供的移动终端中一种第二获得模块的结构示意图;FIG. 6 is a schematic structural diagram of a second obtaining module in a mobile terminal according to an embodiment of the present disclosure;
图7为本发明实施例提供的移动终端中一种确定模块的结构示意图;FIG. 7 is a schematic structural diagram of a determining module in a mobile terminal according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种降噪方法的流程示意图; FIG. 8 is a schematic flowchart diagram of a noise reduction method according to an embodiment of the present invention;
图9为本发明实施例提供的降噪方法中一种获得噪声信号对应的噪声源位置和用户位置的流程示意图;FIG. 9 is a schematic flowchart of obtaining a noise source location and a user location corresponding to a noise signal in a noise reduction method according to an embodiment of the present disclosure;
图10为本发明实施例提供的降噪方法中一种确定降噪信号的流程示意图;FIG. 10 is a schematic flowchart of determining a noise reduction signal in a noise reduction method according to an embodiment of the present disclosure;
图11为本发明实施例提供的另一种降噪方法的流程示意图。FIG. 11 is a schematic flowchart diagram of another noise reduction method according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
应当理解,以下所描述的实施例仅仅用以解释本发明,并不用于限定本发明。It is to be understood that the embodiments described below are merely illustrative of the invention and are not intended to limit the invention.
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments herein may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system in accordance with a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。A mobile terminal embodying various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal can be implemented in various forms. For example, the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc. Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
图1为实现本发明实施例提供的移动终端的硬件结构示意图。FIG. 1 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment of the present invention.
移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、输出单元150、存储器160、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施 所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。The mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, an output unit 150, a memory 160, a controller 180, a power supply unit 190, and the like. Figure 1 shows a mobile terminal with various components, but it should be understood that implementation is not required All the components shown. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信装置或网络之间的无线电通信。例如,无线通信单元可以包括移动通信模块112、无线互联网模块113和短程通信模块114中的至少一个。 Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication device or network. For example, the wireless communication unit can include at least one of the mobile communication module 112, the wireless internet module 113, and the short-range communication module 114.
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。The mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。The wireless internet module 113 supports wireless internet access of the mobile terminal. The module can be internally or externally coupled to the terminal. The wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
短程通信模块114是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。The short range communication module 114 is a module for supporting short range communication. Some examples of short-range communication technologies include BluetoothTM, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), ZigbeeTM, and the like.
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风122,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示模块151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 120 is for receiving an audio or video signal. The A/V input unit 120 may include a camera 121 and a microphone 122 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode. The processed image frame can be displayed on the display module 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal. The microphone 122 can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data. The processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode. The microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可 以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示模块151上时,可以形成触摸屏。The user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal. The user input unit 130 allows the user to input various types of information and can Including a keyboard, a pot, a touchpad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel, a rocker, and the like. In particular, when the touch panel is superimposed on the display module 151 in the form of a layer, a touch screen can be formed.
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示模块151、音频输出模块152等等。In addition, when the mobile terminal 100 is connected to the external base, the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal. Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base. Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display module 151, an audio output module 152, and the like.
显示模块151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示模块151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示模块151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。The display module 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display module 151 can display a user interface (UI) or graphical user interface (GUI) associated with a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capture mode, the display module 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
同时,当显示模块151和触摸板以层的形式彼此叠加以形成触摸屏时,显示模块151可以用作输入装置和输出装置。显示模块151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the display module 151 and the touch panel are superposed on each other in the form of layers to form a touch screen, the display module 151 can function as an input device and an output device. The display module 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like. According to a particular desired embodiment, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) . The touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频 输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括拾音器、蜂鸣器等等。The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like. The audio signal is output as sound. Moreover, the audio output module 152 can provide audio related to a specific function performed by the mobile terminal 100. Output (for example, call signal reception sound, message reception sound, etc.). The audio output module 152 can include a pickup, a buzzer, and the like.
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store a software program or the like for processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. Moreover, the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。The controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by controller 180.
至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述 诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its function. Below, for the sake of brevity, will be described A slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like is taken as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
参照图2,图2为图1所示相机的电气结构示意图。2, FIG. 2 is a schematic diagram of the electrical structure of the camera shown in FIG. 1.
摄影镜头1211中可以包括形成被摄体像的多个光学镜头,该光学镜头可以为单焦点镜头或变焦镜头。摄影镜头1211在镜头驱动器1221的控制下能够在光轴方向上移动,镜头驱动器1221根据来自镜头驱动控制电路1222的控制信号,控制摄影镜头1211的焦点位置,在变焦镜头的情况下,也可控制焦点距离。镜头驱动控制电路1222按照来自微型计算机1217的控制命令对镜头驱动器1221进行驱动控制。The photographic lens 1211 may include a plurality of optical lenses that form a subject image, and the optical lens may be a single focus lens or a zoom lens. The photographic lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focus position of the photographic lens 1211 in accordance with a control signal from the lens driving control circuit 1222, and can also be controlled in the case of the zoom lens. Focus distance. The lens drive control circuit 1222 drives and controls the lens driver 1221 in accordance with a control command from the microcomputer 1217.
在摄影镜头1211的光轴上、由摄影镜头1211形成的被摄体像的位置附近配置有摄像元件1212。摄像元件1212,设置为:对被摄体像摄像并取得摄像图像数据。在摄像元件1212上二维且呈矩阵状配置有构成每个像素的光电二极管。每个光电二极管产生与受光量对应的光电转换电流,该光电转换电流由与每个光电二极管连接的电容器进行电荷蓄积。每个像素的前表面配置有拜耳排列的红、绿、蓝(Red、Green、Blue,简称为:RGB)滤色器。An imaging element 1212 is disposed on the optical axis of the photographic lens 1211 near the position of the subject image formed by the photographic lens 1211. The imaging element 1212 is provided to image the subject image and acquire captured image data. Photodiodes constituting each pixel are arranged two-dimensionally and in a matrix on the imaging element 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, which is subjected to charge accumulation by a capacitor connected to each photodiode. The front surface of each pixel is provided with a Bayer array of red, green, blue (abbreviation: RGB) color filters.
摄像元件1212与摄像电路1213连接,该摄像电路1213在摄像元件1212中进行电荷蓄积控制和图像信号读出控制,对该读出的图像信号(例如为模拟图像信号)降低重置噪声后进行波形整形,进而进行增益提高等以成为适当的信号电平。The imaging element 1212 is connected to an imaging circuit 1213 that performs charge accumulation control and image signal readout control in the imaging element 1212, and reduces the reset noise after the read image signal (for example, an analog image signal). The shaping is performed, and the gain is increased to obtain an appropriate signal level.
摄像电路1213与模数转换(Analog Digital Converter,简称为:A/D)转换器1214连接,该A/D转换器1214对模拟图像信号进行模数转换,向总线1227输出数字图像信号(以下称之为图像数据)。The imaging circuit 1213 is connected to an analog-to-digital conversion (A/D) converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal to the bus 1227 (hereinafter referred to as It is image data).
总线1227,设置为:传送在相机的内部读出或生成的各种数据的传送路径。在总线1227连接着上述A/D转换器1214,此外还连接着图像处理器1215、JPEG处理器1216、微型计算机1217、同步动态随机存取内存(Synchronous Dynamic random access memory,简称为:SDRAM)1218、存储器接口(以下称之为存储器I/F)1219、LCD液晶显示器(Liquid Crystal Display,简称为:LCD)驱动器1220。 The bus 1227 is provided to transmit a transmission path of various data read or generated inside the camera. The A/D converter 1214 is connected to the bus 1227, and an image processor 1215, a JPEG processor 1216, a microcomputer 1217, and a Synchronous Dynamic Random Access Memory (SDRAM) 1218 are connected. A memory interface (hereinafter referred to as a memory I/F) 1219 and an LCD liquid crystal display (LCD) driver 1220.
图像处理器1215对基于摄像元件1212的输出的图像数据进行输出缓冲(Output Buffer,简称为:OB)相减处理、白平衡调整、颜色矩阵运算、伽马转换、色差信号处理、噪声去除处理、同时化处理、边缘处理等各种图像处理。JPEG处理器1216在将图像数据记录于记录介质1225时,按照JPEG压缩方式压缩从SDRAM1218读出的图像数据。此外,JPEG处理器1216为了进行图像再现显示而进行JPEG图像数据的解压缩。进行解压缩时,读出记录在记录介质1225中的文件,在JPEG处理器1216中实施了解压缩处理后,将解压缩的图像数据暂时存储于SDRAM1218中并在LCD1226上进行显示。另外,在本实施方式中,作为图像压缩解压缩方式采用的是JPEG方式,然而压缩解压缩方式不限于此,当然可以采用MPEG、TIFF、H.264等其他的压缩解压缩方式。The image processor 1215 performs output buffering (Output Buffer, abbreviated as: OB) subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, and the image data based on the output of the imaging element 1212. Various image processing such as simultaneous processing and edge processing. The JPEG processor 1216 compresses the image data read out from the SDRAM 1218 in accordance with the JPEG compression method when the image data is recorded on the recording medium 1225. Further, the JPEG processor 1216 performs decompression of JPEG image data for image reproduction display. At the time of decompression, the file recorded on the recording medium 1225 is read, and after the compression processing is performed in the JPEG processor 1216, the decompressed image data is temporarily stored in the SDRAM 1218 and displayed on the LCD 1226. Further, in the present embodiment, the JPEG method is adopted as the image compression/decompression method. However, the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
微型计算机1217发挥作为该相机整体的控制部的功能,统一控制相机的各种处理序列。微型计算机1217连接着操作单元1223和闪存1224。The microcomputer 1217 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera. The microcomputer 1217 is connected to the operation unit 1223 and the flash memory 1224.
操作单元1223包括但不限于实体按键或者虚拟按键,该实体或虚拟按键可以为电源按钮、拍照键、编辑按键、动态图像按钮、再现按钮、菜单按钮、十字键、OK按钮、删除按钮、放大按钮等各种输入按钮和各种输入键等操作控件,检测这些操作控件的操作状态。The operating unit 1223 includes, but is not limited to, a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button, a cross button, an OK button, a delete button, an enlarge button The operation controls such as various input buttons and various input keys detect the operational state of these operation controls.
将检测结果向微型计算机1217输出。此外,在作为显示器的LCD1226的前表面设有触摸面板,检测用户的触摸位置,将该触摸位置向微型计算机1217输出。微型计算机1217根据来自操作单元1223的操作位置的检测结果,执行与用户的操作对应的各种处理序列。The detection result is output to the microcomputer 1217. Further, a touch panel is provided on the front surface of the LCD 1226 as a display, and the touch position of the user is detected, and the touch position is output to the microcomputer 1217. The microcomputer 1217 executes various processing sequences corresponding to the user's operation in accordance with the detection result from the operation position of the operation unit 1223.
闪存1224存储用于执行微型计算机1217的各种处理序列的程序。微型计算机1217根据该程序进行相机整体的控制。此外,闪存1224存储相机的各种调整值,微型计算机1217读出调整值,按照该调整值进行相机的控制。The flash memory 1224 stores programs for executing various processing sequences of the microcomputer 1217. The microcomputer 1217 performs overall control of the camera in accordance with the program. Further, the flash memory 1224 stores various adjustment values of the camera, and the microcomputer 1217 reads out the adjustment value, and performs control of the camera in accordance with the adjustment value.
SDRAM1218,设置为:对图像数据等进行暂时存储的可电改写的易失性存储器。该SDRAM1218暂时存储从A/D转换器1214输出的图像数据和在图像处理器1215、JPEG处理器1216等中进行了处理后的图像数据。The SDRAM 1218 is provided as an electrically rewritable volatile memory that temporarily stores image data or the like. The SDRAM 1218 temporarily stores image data output from the A/D converter 1214 and image data processed in the image processor 1215, the JPEG processor 1216, and the like.
存储器接口1219与记录介质1225连接,进行将图像数据和附加在图像数据中的文件头等数据写入记录介质1225和从记录介质1225中读出的控制。记 录介质1225例如为能够在相机主体上自由拆装的存储器卡等记录介质,然而不限于此,也可以是内置在相机主体中的硬盘等。The memory interface 1219 is connected to the recording medium 1225, and performs control for writing image data and a file header attached to the image data to the recording medium 1225 and reading out from the recording medium 1225. Remember The recording medium 1225 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body. However, the recording medium 1225 is not limited thereto, and may be a hard disk or the like built in the camera body.
LCD驱动器1210与LCD1226连接,将由图像处理器1215处理后的图像数据存储于SDRAM1218,需要显示时,读取SDRAM1218存储的图像数据并在LCD1226上显示,或者,JPEG处理器1216压缩过的图像数据存储于SDRAM1218,在需要显示时,JPEG处理器1216读取SDRAM1218的压缩过的图像数据,再进行解压缩,将解压缩后的图像数据通过LCD1226进行显示。The LCD driver 1210 is connected to the LCD 1226, and stores image data processed by the image processor 1215 in the SDRAM 1218. When display is required, the image data stored in the SDRAM 1218 is read and displayed on the LCD 1226, or the image data stored in the JPEG processor 1216 is compressed. In the SDRAM 1218, when display is required, the JPEG processor 1216 reads the compressed image data of the SDRAM 1218, decompresses it, and displays the decompressed image data through the LCD 1226.
LCD1226配置在相机主体的背面进行图像显示。该LCD1226可以为LCD,然而不限于此,也可以采用有机电致发光(electroluminescent,简称为:EL)等其它显示面板实现LCD1226,然而不限于此。The LCD 1226 is configured to display an image on the back of the camera body. The LCD 1226 may be an LCD, but is not limited thereto, and the LCD 1226 may be implemented by other display panels such as organic electroluminescence (EL), but is not limited thereto.
基于上述移动终端硬件结构以及相机的电气结构示意图,本发明实施例提供移动终端和降噪方法的以下实施例。Based on the hardware structure of the mobile terminal and the electrical structure of the camera, the following embodiments of the present invention provide a mobile terminal and a noise reduction method.
本发明实施例提供一种移动终端。The embodiment of the invention provides a mobile terminal.
如图3所示,为本发明实施例提供的一种移动终端的结构示意图。本实施例提供的移动终端可以包括:FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal provided in this embodiment may include:
第一获得模块10,设置为:获得音频信号,并识别出音频信号中的噪声信号。The first obtaining module 10 is configured to: obtain an audio signal, and identify a noise signal in the audio signal.
本发明实施例主要应用于移动终端,该移动终端包括智能手机、pad等能进行计算的电子设备,该移动设备可以装配如下器件:如图1所示的控制器180,当然在实际应用场景中还可以包括无线通信单元110、A/V输入单元120、用户输入单元130、输出单元150等中的一种或者几种组合。以两种应用场景为例对本发明进行说明:The embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad. The mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario. One or a combination of the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included. The present invention is described by taking two application scenarios as an example:
场景一、对房间内进行主动降噪:Scene 1: Active noise reduction in the room:
应用于本场景的移动终端可以包括:用于计算的CPU或者图形处理器(Graphics Processing Unit,简称为:GPU)、即图1中的控制器180,相机121和麦克风122。在实际应用中,本场景中的麦克风的数量例如可以为3个分别 设置在移动终端上的适当位置,比如分别位于移动终端的两端,如图4所示,为本发明实施例提供的移动终端中一种麦克风阵列设置的示意图。由于相关技术中的软件对于声压级的检测精度可以达到0.1DBA,相位差的检测精度可达0.1度,所以位置变动时,软件具有较强的稳定性,不需要变动相应的技术。本场景的噪声源可以为广场舞所产生噪声、汽车喇叭发出的噪声等。用户在房间内时,很容易受到外界的噪声骚扰,如图5所示,为本发明实施例提供的移动终端的一种应用场景的示意图,此时用户可以通过移动终端上的用户输入单元进行操作,启动主动降噪功能。The mobile terminal applied to the present scenario may include a CPU or a graphics processing unit (Graphics Processing Unit, GPU for short), that is, the controller 180 in FIG. 1, a camera 121, and a microphone 122. In practical applications, the number of microphones in this scenario may be, for example, three separate As shown in FIG. 4, it is a schematic diagram of a microphone array setting in the mobile terminal provided by the embodiment of the present invention. Since the detection accuracy of the sound pressure level in the related art can reach 0.1DBA, the detection accuracy of the phase difference can reach 0.1 degree, so when the position changes, the software has strong stability and does not need to change the corresponding technology. The noise source of this scene can be the noise generated by the square dance, the noise emitted by the car horn, and the like. When the user is in the room, the user is vulnerable to external noise. As shown in FIG. 5, it is a schematic diagram of an application scenario of the mobile terminal provided by the embodiment of the present invention. In this case, the user can perform the user input unit on the mobile terminal. Operation, start active noise reduction.
本场景中通过开启移动终端上麦克风,接收外界的声音,获得音频信号,外界的声音包括噪声和有效的声音,移动终端在获得该音频信号时,对该音频信号中的信号进行分类识别出该音频信号中的噪声信号。在实际应用中,可以根据通用的噪声侦测算法区别出外界的噪声,比如广场舞所产生的噪声等,当然还可以识别出该音频信号中的有效声音,比如人声等,如果外界的噪声有多个,则可以根据噪声频谱序列进行归类,逐一提取。例如,白噪声的频率分量的功率在整个可听范围(0~20KHZ)内都是均匀的;粉红噪音的能量从低频向高频不断衰减,曲线为1/f,通常为每8度下降3分贝;褐色噪音的频率分量功率主要集中在低频段,其能量下降曲线为1/f^2,其波形是非常自相似的。In this scenario, by turning on the microphone on the mobile terminal, receiving the external sound, and obtaining an audio signal, the external sound includes noise and effective sound, and the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained. A noise signal in an audio signal. In practical applications, the external noise can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one. For example, the power of the frequency component of white noise is uniform throughout the audible range (0 to 20 kHz); the energy of the pink noise is continuously attenuated from the low frequency to the high frequency, and the curve is 1/f, usually 3 drops per 8 degrees. Decibel; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f^2, and its waveform is very self-similar.
场景二、对车内进行主动降噪:Scene 2: Active noise reduction in the car:
在车内,汽车发动机噪声为主要汽车行驶时的主要噪声源,本场景中移动终端例如同样可以包括用于计算的CPU或者GPU(即图1中的控制器180)和无线通信单元110中至少一种。举例来说,本实施例中的移动终端包括短程通信模块114,比如蓝牙或者无线保真(WIreless-FIdelity,简称为:wifi)。本场景中汽车例如可以包括设置在汽车中的麦克风阵列,该麦克风的数量例如可以为3个。由于声音的传播速度比较快,在汽车中设置的多个麦克风相隔的位置可以比较远,远大于在移动终端上设置的麦克风阵列,在汽车上设置麦克风阵列测得的数据进行计算得到的结果会比通过移动终端上麦克风获得的数据进行计算获得的结果误差会小。In the vehicle, the automobile engine noise is the main noise source when the main vehicle is running. In this scenario, the mobile terminal may also include at least one of a CPU or a GPU (ie, the controller 180 in FIG. 1) and the wireless communication unit 110 for calculation. Kind. For example, the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wireless fidelity (WIreless-FIdelity, hereinafter referred to as: wifi). The car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three. Since the sound is transmitted at a relatively fast speed, the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
在该场景中,第一获得模块10还可以设置为:接收汽车发送的音频信号, 并识别出该音频信号中的噪声信号。In this scenario, the first obtaining module 10 may be further configured to: receive an audio signal sent by the car, And identifying the noise signal in the audio signal.
通过设置汽车中的麦克风接收到音频信号后,将该音频信号发送给移动终端,例如可以通过蓝牙或者wifi发送给移动终端,实施中还可以通过通信运营商发送给移动终端。从而移动终端接收汽车发送的音频信号,并识别出该音频信号中的噪声信号。After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and can also be sent to the mobile terminal through the communication carrier during implementation. Thereby the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
可选地,在车内进行主动降噪也可以通过移动终端上的麦克风阵列获得音频信号。Alternatively, active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
第二获得模块20,设置为:获得第一获得模块10识别出噪声信号对应的噪声源位置,并获得用户位置。The second obtaining module 20 is configured to: obtain the noise source position corresponding to the noise signal recognized by the first obtaining module 10, and obtain the user position.
在第一获得模块10识别出音频信号中噪声信号后,第二获得模块20可以根据该噪声信号获得噪声信号对应的噪声源位置。After the first obtaining module 10 recognizes the noise signal in the audio signal, the second obtaining module 20 may obtain the noise source position corresponding to the noise signal according to the noise signal.
可选地,如图6所示,为本发明实施例提供的移动终端中一种第二获得模块的结构示意图,本实施例中的第二获得模块20可以包括:Optionally, as shown in FIG. 6 , a schematic diagram of a structure of a second obtaining module in a mobile terminal according to an embodiment of the present invention, where the second obtaining module 20 in this embodiment may include:
获取单元21,设置为:获取第一获得模块10识别出的噪声信号对应波形的相位差及声压差。The obtaining unit 21 is configured to acquire a phase difference and a sound pressure difference of the waveform corresponding to the noise signal recognized by the first obtaining module 10.
计算单元22,设置为:根据获取单元21获取的相位差及声压差计算噪声信号对应的噪声源相对于移动终端的三维空间位置,并获得用户相对该移动终端的三维空间位置。The calculating unit 22 is configured to calculate a three-dimensional spatial position of the noise source corresponding to the noise signal according to the phase difference and the sound pressure difference acquired by the acquiring unit 21, and obtain a three-dimensional spatial position of the user relative to the mobile terminal.
在本发明实施例中,根据麦克风(Microphone,简称为:MIC)获得的噪声信号获得该噪声信号对应波形的相位差和声压差,通过麦克风阵列录入波形的相位差及声压差,计算噪声音源相对于终端的三维空间位置。每个录入波形由于和声源存在位置差异,声压级强度和距离的平方成反比,而相位差则是和接收延时有关,通过每个录入波形相减,得到相位差和声压差,根据声波在空气中传播的速度公式,可算出声源对每个MIC的位置距离,通过画圆寻找交点,可判断当前声源相对于终端位于空间中的实际位置。In the embodiment of the present invention, the phase difference and the sound pressure difference of the corresponding waveform of the noise signal are obtained according to the noise signal obtained by the microphone (Microphone, MIC for short), and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array to calculate the noise. The position of the sound source relative to the three-dimensional space of the terminal. Each input waveform has a position difference with the sound source, and the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the reception delay. By subtracting each input waveform, the phase difference and the sound pressure difference are obtained. According to the speed formula of the sound wave propagating in the air, the position distance of the sound source to each MIC can be calculated, and by drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
计算单元22可以通过上述方式定位用户的位置,在实际应用中,通过人声侦测算法(Voice Activity Detection,简称为:VAD)区分出人声,然后根据人声波形的相位差及声压差,确定人的位置,实施中还可以通过其他方式, 比如通过移动终端中双摄像头定位测距或者通过移动终端上单摄像头与红外测距单元配合进行测距,从而进行定位,当然还可以通过设置在汽车或者房间内中的双摄像头,或者单摄像头与红外测距单元进行定位。在更多的实施中还可以通过声呐定位。The calculation unit 22 can locate the position of the user in the above manner. In the actual application, the voice detection algorithm (Voice Activity Detection, VAD for short) distinguishes the human voice, and then according to the phase difference and the sound pressure difference of the human voice waveform. To determine the location of the person, in other ways, For example, the positioning is performed by the dual camera in the mobile terminal or by the single camera on the mobile terminal and the infrared ranging unit, so that the positioning can be performed by using a dual camera or a single camera in the car or the room. The infrared ranging unit performs positioning. In more implementations, sonar positioning is also possible.
确定模块30,设置为:根据第一获得模块10识别出的噪声信号,以及第二获得模块20获得的噪声源位置和用户位置确定降噪信号。The determining module 30 is configured to determine the noise reduction signal according to the noise signal recognized by the first obtaining module 10 and the noise source position and the user position obtained by the second obtaining module 20.
在本发明实施例中,确定模块30根据第一获得模块10识别出的噪声信号,以及第二获得模块20获得的噪声源位置和用户位置确定降噪信号。在一种可能的应用场景中,如果存在多个噪声信号,则确定模块30根据多个噪声信号的噪声频谱进行归类,逐一提取,分别确定每个噪声信号对应的降噪信号,该降噪信号为与对应的噪声信号反相补偿声波。In the embodiment of the present invention, the determining module 30 determines the noise reduction signal according to the noise signal recognized by the first obtaining module 10 and the noise source position and the user position obtained by the second obtaining module 20. In a possible application scenario, if there are multiple noise signals, the determining module 30 classifies the noise spectra of the plurality of noise signals, extracts one by one, and respectively determines a noise reduction signal corresponding to each noise signal, and the noise reduction is performed. The signal compensates for the sound wave by inverting the corresponding noise signal.
可选地,如图7所示,为本发明实施例提供的移动终端中一种确定模块的结构示意图,本实施例中的确定模块30可以包括:Optionally, as shown in FIG. 7, a schematic structural diagram of a determining module in a mobile terminal according to an embodiment of the present invention, where the determining module 30 in this embodiment may include:
确定单元31,设置为:根据计算单元22计算出的噪声源和用户相对移动终端的三维空间位置计算出噪声信号对应的延时;The determining unit 31 is configured to: calculate a delay corresponding to the noise signal according to the noise source calculated by the calculating unit 22 and the three-dimensional spatial position of the user relative to the mobile terminal;
生成单元32,设置为:根据确定单元31计算出的延时生成与该噪声信号反相的降噪信号。The generating unit 32 is configured to generate a noise reduction signal that is inverted from the noise signal according to the delay calculated by the determining unit 31.
本实施例中在确定噪声源和用户相对于移动终端的三维空间位置后,计算得到该噪声信号对应的噪声达到用户的距离相对于移动终端播放降噪信号达到用户的距离的延时,即得到该降噪信号与噪声信号的相位差。在一种可能的应用场景中,如果在存在多个噪音声源时,确定单元31还设置为:计算得到多个所述噪声信号中每个噪声信号对应的噪声达到用户的距离相对于移动终端播放多个降噪信号达到用户的距离的对应的延时。In the embodiment, after determining the three-dimensional spatial position of the noise source and the user relative to the mobile terminal, the delay of the noise corresponding to the noise signal reaching the distance of the user relative to the distance at which the mobile terminal plays the noise reduction signal reaches the user is calculated. The noise reduction signal is out of phase with the noise signal. In a possible application scenario, if there are multiple noise sources, the determining unit 31 is further configured to: calculate a noise corresponding to each of the plurality of the noise signals to reach a user distance relative to the mobile terminal The corresponding delay of playing multiple noise reduction signals to reach the user's distance.
根据计算得到的延时生成与该噪声信号反相的降噪信号,以使得该降噪信号到达用户时可以抵消噪声源发出的噪声。A noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
降噪模块40,设置为:根据确定模块30确定的降噪信号调整音频信号,以对该音频信号进行降噪。The noise reduction module 40 is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module 30 to perform noise reduction on the audio signal.
在本发明实施例中,根据确定模块30确定的降噪信号,本实施例中通过 移动终端进行播放,从而在该移动终端播放与噪声信号反相的降噪信号到达用户时,可以与噪声源所发出的到达用户的噪声叠加,从而抵消,达到降噪的目的,有效避免噪音的干扰。In the embodiment of the present invention, the noise reduction signal determined by the determining module 30 is passed in this embodiment. The mobile terminal plays, so that when the mobile terminal plays a noise reduction signal that is inverted with the noise signal and reaches the user, it can be superimposed with the noise generated by the noise source to reach the user, thereby canceling, achieving the purpose of noise reduction, and effectively avoiding noise. interference.
本发明实施例提供的移动终端包括,第一获得模块,设置为:获得音频信号,并识别出该音频信号中的噪声信号;第二获得模块,设置为:获得第一获得模块识别出的噪声信号对应的噪声源位置,并获得用户位置;确定模块,设置为:根据第一获得模块识别出的噪声信号,以及第二获得模块获得的噪声源位置和用户位置确定降噪信号;降噪模块,设置为:根据确定模块确定的降噪信号调整音频信号,以对该音频信号进行降噪。通过上述方式,本发明实施例利用移动终端的资源,根据获得的音频信号、噪声源位置和用户位置确定降噪信号,实现对音频信号进行主动降噪,能够保证用户不受噪声的困扰,并且使用移动终端能够适用多种环境。The mobile terminal provided by the embodiment of the present invention includes: a first obtaining module, configured to: obtain an audio signal, and identify a noise signal in the audio signal; and the second obtaining module is configured to: obtain the noise recognized by the first obtaining module a noise source position corresponding to the signal, and obtaining a user position; the determining module is configured to: determine a noise reduction signal according to the noise signal identified by the first obtaining module, and the noise source position and the user position obtained by the second obtaining module; the noise reduction module And being set to: adjust an audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal. In the above manner, the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.
继续参阅图3,在本发明实施例提供的另一种移动终端的结构示意图。本实施例提供的移动终端可以包括:With continued reference to FIG. 3, a schematic structural diagram of another mobile terminal according to an embodiment of the present invention is provided. The mobile terminal provided in this embodiment may include:
第一获得模块10,设置为:获得音频信号,并识别出音频信号中的噪声信号。The first obtaining module 10 is configured to: obtain an audio signal, and identify a noise signal in the audio signal.
本发明实施例主要应用于移动终端,该移动终端包括智能手机、pad等能进行计算的电子设备,该移动设备可以装配如下器件:如图1所示的控制器180,当然在实际应用场景中还可以包括无线通信单元110、A/V输入单元120、用户输入单元130、输出单元150等中的一种或者几种组合。以两种应用场景为例对本发明进行说明:The embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad. The mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario. One or a combination of the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included. The present invention is described by taking two application scenarios as an example:
场景一、对房间内进行主动降噪:Scene 1: Active noise reduction in the room:
应用于本场景的移动终端可以包括:用于计算的CPU或者GPU(即图1中的控制器180)、相机121和麦克风122。在实际应用中,本场景中的麦克风的数量例如可以为3个分别设置在移动终端上的适当位置,比如分别位于移动终端的两端,同样如图4所示的麦克风阵列设置。由于相关技术中的软件对于声压级的检测精度可以达到0.1DBA,相位差的检测精度可达0.1度,所以位置变动时,软件具有较强的稳定性,不需要变动相应的技术。本场景 的噪声源可以为广场舞所产生噪声、汽车喇叭发出的噪声等。用户在房间内时,很容易受到外界的噪声骚扰,同样如图5所示的应用场景,此时用户可以通过移动终端上的用户输入单元进行操作,启动主动降噪功能。The mobile terminal applied to the present scenario may include a CPU or GPU (ie, the controller 180 in FIG. 1) for calculation, a camera 121, and a microphone 122. In practical applications, the number of microphones in the present scenario may be, for example, three suitable positions respectively set on the mobile terminal, such as respectively located at two ends of the mobile terminal, and also configured as a microphone array as shown in FIG. Since the detection accuracy of the sound pressure level in the related art can reach 0.1DBA, the detection accuracy of the phase difference can reach 0.1 degree, so when the position changes, the software has strong stability and does not need to change the corresponding technology. This scene The noise source can be noise generated by the square dance, noise emitted by the car horn, and the like. When the user is in the room, it is very susceptible to external noise harassment. The application scenario shown in Figure 5 is as follows. At this time, the user can operate the user input unit on the mobile terminal to activate the active noise reduction function.
本场景中通过开启移动终端上麦克风,接收外界的声音,获得音频信号,外界的声音包括噪声和有效的声音,移动终端在获得该音频信号时,对该音频信号中的信号进行分类识别出该音频信号中的噪声信号。在实际应用中,可以根据通用的噪声侦测算法区别出外界的噪声,比如广场舞所产生的噪声等,当然还可以识别出该音频信号中的有效声音,比如人声等,如果外界的噪声有多个,则可以根据噪声频谱序列进行归类,逐一提取。例如,如白噪声的频率分量的功率在整个可听范围(0~20KHZ)内都是均匀的;粉红噪音的能量从低频向高频不断衰减,曲线为1/f,通常为每8度下降3分贝;褐色噪音的频率分量功率主要集中在低频段,其能量下降曲线为1/f^2,其波形是非常自相似的。In this scenario, by turning on the microphone on the mobile terminal, receiving the external sound, and obtaining an audio signal, the external sound includes noise and effective sound, and the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained. A noise signal in an audio signal. In practical applications, the external noise can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one. For example, the power of a frequency component such as white noise is uniform throughout the audible range (0 to 20 kHz); the energy of pink noise is continuously attenuated from low frequency to high frequency, and the curve is 1/f, usually every 8 degrees. 3 dB; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f^2, and its waveform is very self-similar.
场景二、对车内进行主动降噪:Scene 2: Active noise reduction in the car:
在车内,汽车发动机噪声为主要汽车行驶时的主要噪声源,本场景中移动终端例如同样可以包括用于计算的CPU或者GPU(即图1中的控制器180)和无线通信单元110中至少一种。举例来说,本实施例中的移动终端包括短程通信模块114,比如蓝牙或者wifi。本场景中汽车例如可以包括设置在汽车中的麦克风阵列,该麦克风的数量例如可以为3个。由于声音的传播速度比较快,在汽车中设置的多个麦克风相隔的位置可以比较远,远大于在移动终端上设置的麦克风阵列,在汽车上设置麦克风阵列测得的数据进行计算得到的结果会比通过移动终端上麦克风获得的数据进行计算获得的结果误差会小。In the vehicle, the automobile engine noise is the main noise source when the main vehicle is running. In this scenario, the mobile terminal may also include at least one of a CPU or a GPU (ie, the controller 180 in FIG. 1) and the wireless communication unit 110 for calculation. Kind. For example, the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wifi. The car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three. Since the sound is transmitted at a relatively fast speed, the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
在该场景中,第一获得模块10还可以设置为:接收汽车发送的音频信号,并识别出该音频信号中的噪声信号。In this scenario, the first obtaining module 10 may be further configured to: receive an audio signal transmitted by the car, and identify a noise signal in the audio signal.
通过设置汽车中的麦克风接收到音频信号后,将该音频信号发送给移动终端,例如可以通过蓝牙或者wifi发送给移动终端,实施中还可以通过通信运营商发送给移动终端。从而移动终端接收汽车发送的音频信号,并识别出该音频信号中的噪声信号。 After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and can also be sent to the mobile terminal through the communication carrier during implementation. Thereby the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
可选地,在车内进行主动降噪也可以通过移动终端上的麦克风阵列获得音频信号。Alternatively, active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
第二获得模块20,还设置为:获得第一获得模块10识别出噪声信号对应的噪声源位置,并获得用户位置和音响的位置。The second obtaining module 20 is further configured to: obtain the noise source position corresponding to the noise signal recognized by the first obtaining module 10, and obtain the position of the user position and the sound.
在第一获得模块10识别出音频信号中的噪声信号后,第二获得模块20可以根据该噪声信号获得噪声信号对应的噪声源位置。After the first obtaining module 10 recognizes the noise signal in the audio signal, the second obtaining module 20 may obtain the noise source position corresponding to the noise signal according to the noise signal.
在本发明实施例中,根据麦克风获得的噪声信号获得该噪声信号对应波形的相位差和声压差,通过麦克风阵列录入波形的相位差及声压差,计算噪声音源相对于终端的三维空间位置。每个录入波形由于和声源存在位置差异,声压级强度和距离的平方成反比,而相位差则是和接收延时有关,通过每个录入波形相减,得到相位差和声压差,根据声波在空气中传播的速度公式,可算出声源对每个MIC的位置距离,通过画圆寻找交点,可判断当前声源相对于终端位于空间中的实际位置。In the embodiment of the present invention, the phase difference and the sound pressure difference of the waveform corresponding to the noise signal are obtained according to the noise signal obtained by the microphone, and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array, and the three-dimensional spatial position of the noise source relative to the terminal is calculated. . Each input waveform has a position difference with the sound source, and the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the reception delay. By subtracting each input waveform, the phase difference and the sound pressure difference are obtained. According to the speed formula of the sound wave propagating in the air, the position distance of the sound source to each MIC can be calculated, and by drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
另外,第二获得模块20可以通过上述方式定位用户的位置,在实际应用中,通过人声侦测算法VAD区分出人声,然后根据人声波形的相位差及声压差,确定人的位置,实施中还可以通过其他方式,比如通过移动终端中双摄像头定位测距或者通过移动终端上单摄像头与红外测距单元配合进行测距,从而进行定位,当然还可以通过设置在汽车或者房间内中的双摄像头,或者单摄像头与红外测距单元进行定位。在更多的实施中还可以通过声呐定位。In addition, the second obtaining module 20 can locate the position of the user in the above manner. In the actual application, the vocal detection algorithm VAD distinguishes the vocal, and then determines the position of the person according to the phase difference of the vocal waveform and the sound pressure difference. In the implementation, the positioning may also be performed by other means, for example, by positioning the two cameras in the mobile terminal or by using a single camera on the mobile terminal to cooperate with the infrared ranging unit, thereby positioning, and of course, by setting in the car or the room. The dual camera in the middle, or a single camera and infrared ranging unit for positioning. In more implementations, sonar positioning is also possible.
同理,播放测试位置的声音,通过上述方式测得用于播放后续降噪信号的音响的位置,当然也可以在车内的应用场景中预设播放音响的位置。实施中用户也可以通过输入菜单输入音响的位置。Similarly, the sound of the test position is played, and the position of the sound for playing the subsequent noise reduction signal is measured by the above method, and of course, the position of the sound can be preset in the application scene in the vehicle. In the implementation, the user can also input the position of the sound through the input menu.
确定模块30,还设置为:根据第一获得模块10识别出的噪声信号,以及第二获得模块20获得的噪声源位置、用户位置和音响的位置确定降噪信号。The determining module 30 is further configured to determine the noise reduction signal according to the noise signal identified by the first obtaining module 10 and the position of the noise source, the position of the user, and the position of the sound obtained by the second obtaining module 20.
在本发明实施例中,确定模块30根据第一获得模块10识别出的噪声信号,以及第二获得模块20获得的噪声源位置、用户位置和音响的位置确定降噪信号。在一种可能的应用场景中,如果存在多个噪声信号,则确定模块30确定降噪信号的实现方式可以为:根据多个噪声信号的噪声频谱进行归类,逐一提取,分别确定每个噪声信号对应的降噪信号,该降噪信号为与对应的 噪声信号反相补偿声波。In the embodiment of the present invention, the determining module 30 determines the noise reduction signal according to the noise signal recognized by the first obtaining module 10 and the position of the noise source, the position of the user, and the position of the sound obtained by the second obtaining module 20. In a possible application scenario, if there are multiple noise signals, the determining module 30 determines that the noise reduction signal may be implemented by classifying the noise spectra of the plurality of noise signals, extracting one by one, and determining each noise separately. a noise reduction signal corresponding to the signal, and the noise reduction signal is corresponding to The noise signal is inverted to compensate for the sound wave.
本实施例中在确定噪声源和用户相对于移动终端的三维空间位置后,计算得到该噪声信号对应的噪声达到用户的距离相对于音响播放该降噪信号达到用户的距离的延时,即得到音响播放该降噪信号与噪声信号的相位差。在一种可能的应用场景中,如果在存在多个噪音声源时,计算得到多个噪声信号中每个噪声信号对应的噪声达到用户的距离相对于音响播放多个降噪信号达到用户的距离的对应的延时。In the embodiment, after determining the three-dimensional spatial position of the noise source and the user relative to the mobile terminal, the delay of the noise corresponding to the noise signal reaching the distance of the user relative to the distance at which the noise reduction signal reaches the user is obtained. The sound plays the phase difference between the noise reduction signal and the noise signal. In a possible application scenario, if there are multiple noise sources, the noise corresponding to each of the plurality of noise signals is calculated to reach the user's distance relative to the audio to play the plurality of noise reduction signals to reach the user. The corresponding delay.
根据计算得到的延时生成与该噪声信号反相的降噪信号,以使得该降噪信号到达用户时可以抵消噪声源发出的噪声。A noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
降噪模块40,还设置为:将确定模块30确定的降噪信号发送至音响播放,以对该音频信号进行降噪。The noise reduction module 40 is further configured to: send the noise reduction signal determined by the determination module 30 to the audio playback to perform noise reduction on the audio signal.
在本发明实施例中,根据确定模块30确定的降噪信号,将该降噪信号发送至音响播放,以对该音频信号进行降噪。In the embodiment of the present invention, the noise reduction signal is sent to the audio playback according to the noise reduction signal determined by the determining module 30 to perform noise reduction on the audio signal.
本实施例中通过音响进行播放,从而在该音响播放与噪声信号反相的降噪信号到达用户时,可以与噪声源所发出的到达用户的噪声叠加,从而抵消,达到降噪的目的,有效避免噪音的干扰。In this embodiment, the audio is played, so that when the noise reduction signal in which the audio playback and the noise signal are inverted reaches the user, it can be superimposed with the noise generated by the noise source to reach the user, thereby canceling, achieving the purpose of noise reduction, and effectively Avoid noise interference.
在实际应用中,考虑到移动终端的电量与音量大小可能不能满足需求,上述音响可以是汽车内部的音响或者房间中家用音响。在车内进行降噪的场景中,使用移动终端和汽车装配的麦克风配合进行的车内主动降噪,利用移动终端上的降噪算法和运算资源,实时对车外环境音进行采集,分析计算,从中识别出噪声,并控制汽车播放反向降噪信号进行削弱,从而达到主动降噪的效果,一台移动终端可以适配多种车型,对车载设备的运算资源无要求,满足用户日益增长的舒适驾驶体验要求,更加人性化。In practical applications, considering that the power and volume of the mobile terminal may not meet the demand, the above sound may be an internal sound of the car or a home audio in the room. In the scene of noise reduction in the car, the active noise reduction in the vehicle is carried out by using the mobile terminal and the microphone assembled by the automobile, and the noise reduction algorithm and computing resources on the mobile terminal are used to collect the external environment sound in real time, and analyze and calculate. Identifying the noise from it and controlling the car to play the reverse noise reduction signal to weaken, so as to achieve the effect of active noise reduction, a mobile terminal can adapt to a variety of vehicle types, and there is no requirement for the computing resources of the vehicle equipment, and the user is increasingly growing. The comfortable driving experience requires more humanity.
本发明实施例还提供一种降噪方法。Embodiments of the present invention also provide a noise reduction method.
如图8所示,为本发明实施例提供的一种降噪方法的流程示意图。本实施例提供的降噪方法包括可以包括如下步骤,即S10~S40:FIG. 8 is a schematic flowchart diagram of a noise reduction method according to an embodiment of the present invention. The noise reduction method provided in this embodiment may include the following steps, that is, S10 to S40:
S10,获得音频信号,并识别出该音频信号中的噪声信号。 S10, obtaining an audio signal and identifying a noise signal in the audio signal.
本发明实施例主要应用于移动终端,该移动终端包括智能手机、pad等能进行计算的电子设备,该移动设备可以装配如下器件:如图1所示的控制器180,当然在实际应用场景中还可以包括无线通信单元110、A/V输入单元120、用户输入单元130、输出单元150等中的一种或者几种组合。以两种应用场景为例对本发明进行说明:The embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad. The mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario. One or a combination of the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included. The present invention is described by taking two application scenarios as an example:
场景一、对房间内进行主动降噪:Scene 1: Active noise reduction in the room:
应用于本场景的移动终端可以包括:用于计算的CPU或者GPU(即图1中的控制器180)、相机121和麦克风122。在实际应用中,本场景中的麦克风的数量例如可以为3个分别设置在移动终端上的适当位置,比如分别位于移动终端的两端,同样可以参照图4所示的麦克风阵列设置。由于相关技术中的软件对于声压级的检测精度可以达到0.1DBA,相位差的检测精度可达0.1度,所以位置变动时,软件具有较强的稳定性,不需要变动相应的技术。本场景的噪声源可以为广场舞所产生噪声、汽车喇叭发出的噪声等。用户在房间内时,很容易受到外界的噪声骚扰,同样可以参照图5所示的应用场景,此时用户可以通过移动终端上的用户输入单元进行操作,启动主动降噪功能。The mobile terminal applied to the present scenario may include a CPU or GPU (ie, the controller 180 in FIG. 1) for calculation, a camera 121, and a microphone 122. In practical applications, the number of microphones in the present scenario may be, for example, three suitable positions respectively set on the mobile terminal, for example, respectively located at two ends of the mobile terminal, and may also be set with reference to the microphone array shown in FIG. 4. Since the detection accuracy of the sound pressure level in the related art can reach 0.1DBA, the detection accuracy of the phase difference can reach 0.1 degree, so when the position changes, the software has strong stability and does not need to change the corresponding technology. The noise source of this scene can be the noise generated by the square dance, the noise emitted by the car horn, and the like. When the user is in the room, it is easy to be disturbed by external noise. The application scenario shown in Figure 5 can also be referred to. At this time, the user can operate through the user input unit on the mobile terminal to activate the active noise reduction function.
本场景中通过开启移动终端上麦克风,接收外界的声音,获得音频信号,外界的声音包括噪声和有效的声音,移动终端在获得该音频信号时,对该音频信号中的信号进行分类识别出该音频信号中的噪声信号。在实际应用中,可以根据通用的噪声侦测算法区别出外界的噪声,比如广场舞所产生的噪声等,当然还可以识别出该音频信号中的有效声音,比如人声等,如果外界的噪声有多个,则可以根据噪声频谱序列进行归类,逐一提取。例如,白噪声的频率分量的功率在整个可听范围(0~20KHZ)内都是均匀的;粉红噪音的能量从低频向高频不断衰减,曲线为1/f,通常为每8度下降3分贝;褐色噪音的频率分量功率主要集中在低频段,其能量下降曲线为1/f^2,其波形是非常自相似的。In this scenario, by turning on the microphone on the mobile terminal, receiving the external sound, and obtaining an audio signal, the external sound includes noise and effective sound, and the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained. A noise signal in an audio signal. In practical applications, the external noise can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one. For example, the power of the frequency component of white noise is uniform throughout the audible range (0 to 20 kHz); the energy of the pink noise is continuously attenuated from the low frequency to the high frequency, and the curve is 1/f, usually 3 drops per 8 degrees. Decibel; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f^2, and its waveform is very self-similar.
场景二、对车内进行主动降噪:Scene 2: Active noise reduction in the car:
在车内,汽车发动机噪声为主要汽车行驶时的主要噪声源,本场景中移动终端例如同样可以包括用于计算的CPU或者GPU(即图1中的控制器180) 和无线通信单元110中至少一种。举例来说,本实施例中的移动终端包括短程通信模块114,比如蓝牙或者wifi。本场景中汽车例如可以包括设置在汽车中的麦克风阵列,该麦克风的数量例如可以为3个。由于声音的传播速度比较快,在汽车中设置的多个麦克风相隔的位置可以比较远,远大于在移动终端上设置的麦克风阵列,在汽车上设置麦克风阵列测得的数据进行计算得到的结果会比通过移动终端上麦克风获得的数据进行计算获得的结果误差会小。In the vehicle, the car engine noise is the main noise source when the main car is running. In this scenario, the mobile terminal can also include a CPU or GPU for calculation (ie, the controller 180 in FIG. 1). And at least one of the wireless communication units 110. For example, the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wifi. The car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three. Since the sound is transmitted at a relatively fast speed, the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
在该场景中,S10的实现方式可以为:接收汽车发送的音频信号,并识别出该音频信号中的噪声信号。In this scenario, the implementation of S10 may be: receiving an audio signal sent by the car, and identifying a noise signal in the audio signal.
通过设置汽车中的麦克风接收到音频信号后,将该音频信号发送给移动终端,例如可以通过蓝牙或者wifi发送给移动终端,实施中还可以通过通信运营商发送给移动终端。从而移动终端接收汽车发送的音频信号,并识别出该音频信号中的噪声信号。After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and can also be sent to the mobile terminal through the communication carrier during implementation. Thereby the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
可选地,在车内进行主动降噪也可以通过移动终端上的麦克风阵列获得音频信号。Alternatively, active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
S20,获得该噪声信号对应的噪声源位置,并获得用户位置。S20: obtain a noise source location corresponding to the noise signal, and obtain a user location.
在S10中识别出音频信号中噪声信号后,可以根据该噪声信号获得该噪声信号对应的噪声源位置。After the noise signal in the audio signal is identified in S10, the noise source position corresponding to the noise signal can be obtained according to the noise signal.
可选地,如图9所示,为本发明实施例提供的降噪方法中一种获得噪声信号对应的噪声源位置和用户位置的流程示意图,本实施例中获得噪声信号对应的噪声源位置,并获得用户位置的实现方式,可以包括如下步骤,即S21~S22:Optionally, as shown in FIG. 9 , a schematic flowchart of obtaining a noise source location and a user location corresponding to a noise signal in the noise reduction method provided by the embodiment of the present invention, where the noise source location corresponding to the noise signal is obtained in this embodiment And obtaining the implementation manner of the user location, which may include the following steps, namely, S21 to S22:
S21,获取噪声信号对应波形的相位差及声压差;S21: Obtain a phase difference and a sound pressure difference of the waveform corresponding to the noise signal;
S22,根据相位差及声压差计算该噪声信号对应的噪声源相对于移动终端的三维空间位置,并获得用户相对所述移动终端的三维空间位置。S22. Calculate a three-dimensional spatial position of the noise source corresponding to the noise signal relative to the mobile terminal according to the phase difference and the sound pressure difference, and obtain a three-dimensional spatial position of the user relative to the mobile terminal.
在本发明实施例中,根据麦克风获得的噪声信号获得该噪声信号对应波形的相位差和声压差,通过麦克风阵列录入波形的相位差及声压差,计算噪声音源相对于终端的三维空间位置。每个录入波形由于和声源存在位置差 异,声压级强度和距离的平方成反比,而相位差则是和接收延时有关,通过每个录入波形相减,得到相位差和声压差,根据声波在空气中传播的速度公式,可算出声源对每个MIC的位置距离,通过画圆寻找交点,可判断当前声源相对于终端位于空间中的实际位置。In the embodiment of the present invention, the phase difference and the sound pressure difference of the waveform corresponding to the noise signal are obtained according to the noise signal obtained by the microphone, and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array, and the three-dimensional spatial position of the noise source relative to the terminal is calculated. . Each input waveform has a position difference due to the sound source Different, the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the receiving delay. By subtracting each input waveform, the phase difference and the sound pressure difference are obtained, according to the velocity formula of the sound wave propagating in the air. The position distance of the sound source to each MIC can be calculated. By drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
另外,可以通过上述方式定位用户的位置,在实际应用中,通过人声侦测算法VAD区分出人声,然后根据人声波形的相位差及声压差,确定人的位置,实施中还可以通过其他方式,比如通过移动终端中双摄像头定位测距或者通过移动终端上单摄像头与红外测距单元配合进行测距,从而进行定位,当然还可以通过设置在汽车或者房间内中的双摄像头,或者单摄像头与红外测距单元进行定位。在更多的实施中还可以通过声呐定位。In addition, the position of the user can be located in the above manner. In the actual application, the vocal detection algorithm VAD distinguishes the vocal, and then the position of the person is determined according to the phase difference of the vocal waveform and the sound pressure difference, and the implementation can also be performed. By other means, for example, by using a dual camera in the mobile terminal to locate the distance or by using a single camera on the mobile terminal to perform ranging with the infrared ranging unit, the positioning can be performed, of course, by a dual camera set in the car or in the room. Or a single camera and an infrared ranging unit for positioning. In more implementations, sonar positioning is also possible.
S30,根据该噪声信号、噪声源位置和用户位置确定降噪信号。S30. Determine a noise reduction signal according to the noise signal, the noise source location, and the user location.
本发明实施例的S30中,根据上述步骤获得的噪声信号、噪声源位置和用户位置确定降噪信号。在一种可能的应用场景中,如果存在多个噪声信号,则S30的实现方式可以为:根据多个噪声信号的噪声频谱进行归类,逐一提取,分别确定每个噪声信号对应的降噪信号,该降噪信号为与对应的噪声信号反相补偿声波。In S30 of the embodiment of the present invention, the noise reduction signal is determined according to the noise signal, the noise source position, and the user position obtained in the above steps. In a possible application scenario, if there are multiple noise signals, the implementation manner of S30 may be: classifying according to the noise spectrum of the multiple noise signals, extracting one by one, and respectively determining the noise reduction signals corresponding to each noise signal. The noise reduction signal compensates the sound wave in inverse phase with the corresponding noise signal.
可选地,如图10所示,为本发明实施例提供的降噪方法中一种确定降噪信号的流程示意图,本实施例中根据噪声信号、噪声源位置和用户位置确定降噪信号的实现方式,可以包括如下步骤,即S31~S32:Optionally, as shown in FIG. 10, a schematic flowchart of determining a noise reduction signal in a noise reduction method according to an embodiment of the present invention, where the noise reduction signal is determined according to a noise signal, a noise source location, and a user position in this embodiment. The implementation manner may include the following steps, that is, S31 to S32:
S31,根据噪声源和用户相对移动终端的三维空间位置,计算出噪声信号对应的延时;S31. Calculate a delay corresponding to the noise signal according to the noise source and the three-dimensional spatial position of the user relative to the mobile terminal;
S32,根据延时生成与该噪声信号反相的降噪信号。S32. Generate a noise reduction signal that is inverted from the noise signal according to the delay.
本实施例中在确定噪声源和用户相对于移动终端的三维空间位置后,计算得到该噪声信号对应的噪声达到用户的距离相对于移动终端播放降噪信号达到用户的距离的延时,即得到该降噪信号与噪声信号的相位差。在一种可能的应用场景中,如果在存在多个噪音声源时,S31的实现方式可以为:计算得到多个噪声信号中每个噪声信号对应的噪声达到用户的距离相对于移动终端播放多个降噪信号达到用户的距离的对应的延时。 In the embodiment, after determining the three-dimensional spatial position of the noise source and the user relative to the mobile terminal, the delay of the noise corresponding to the noise signal reaching the distance of the user relative to the distance at which the mobile terminal plays the noise reduction signal reaches the user is calculated. The noise reduction signal is out of phase with the noise signal. In a possible application scenario, if there are multiple noise sources, the implementation of S31 may be: calculating that the noise corresponding to each of the plurality of noise signals reaches the user's distance and is more than the mobile terminal. The noise reduction signal reaches the corresponding delay of the user's distance.
根据计算得到的延时生成与该噪声信号反相的降噪信号,以使得该降噪信号到达用户时可以抵消噪声源发出的噪声。A noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
S40,根据该降噪信号调整音频信号,以对该音频信号进行降噪。S40. Adjust an audio signal according to the noise reduction signal to perform noise reduction on the audio signal.
在本发明实施例中,根据S30确定的降噪信号,本实施例中通过移动终端进行播放,从而在该移动终端播放与噪声信号反相的降噪信号到达用户时,可以与噪声源所发出的到达用户的噪声叠加,从而抵消,达到降噪的目的,有效避免噪音的干扰。In the embodiment of the present invention, according to the noise reduction signal determined by S30, in the embodiment, the mobile terminal performs playback, so that when the mobile terminal plays a noise reduction signal inverted from the noise signal and reaches the user, it may be sent out with the noise source. The arrival of the user's noise superimposed, thereby canceling, to achieve the purpose of noise reduction, effectively avoiding noise interference.
本发明实施例提供的降噪方法,通过获得音频信号,并识别出该音频信号中的噪声信号;获得该噪声信号对应的噪声源位置,并获得用户位置;根据噪声信号、噪声源位置和用户位置确定降噪信号;根据该降噪信号调整音频信号,以对该音频信号进行降噪。通过上述方式,本发明实施例利用移动终端的资源,根据获得的音频信号、噪声源位置和用户位置确定降噪信号,实现对音频信号进行主动降噪,能够保证用户不受噪声的困扰,并且使用移动终端能够适用多种环境。The noise reduction method provided by the embodiment of the present invention obtains an audio signal and identifies a noise signal in the audio signal; obtains a noise source position corresponding to the noise signal, and obtains a user position; according to the noise signal, the noise source location, and the user Position determining the noise reduction signal; adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal. In the above manner, the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.
如图11所示,为本发明实施例提供的另一种降噪方法的流程示意图。本实施例提供的降噪方法可以包括如下步骤,即S10、S50~S70:FIG. 11 is a schematic flowchart diagram of another noise reduction method according to an embodiment of the present invention. The noise reduction method provided in this embodiment may include the following steps, namely, S10, S50 to S70:
S10,获得音频信号,并识别出该音频信号中的噪声信号。S10, obtaining an audio signal and identifying a noise signal in the audio signal.
本发明实施例主要应用于移动终端,该移动终端包括智能手机、pad等能进行计算的电子设备,该移动设备可以装配如下器件:如图1所示的控制器180,当然在实际应用场景中还可以包括无线通信单元110、A/V输入单元120、用户输入单元130、输出单元150等中的一种或者几种组合。以两种应用场景为例对本发明进行说明:The embodiment of the present invention is mainly applied to a mobile terminal, and the mobile terminal includes an electronic device capable of performing calculation, such as a smart phone or a pad. The mobile device can be equipped with the following device: the controller 180 shown in FIG. 1 , of course, in an actual application scenario. One or a combination of the wireless communication unit 110, the A/V input unit 120, the user input unit 130, the output unit 150, and the like may also be included. The present invention is described by taking two application scenarios as an example:
场景一、对房间内进行主动降噪:Scene 1: Active noise reduction in the room:
应用于本场景的移动终端可以包括:用于计算的CPU或者GPU(即图1中的控制器180)、相机121和麦克风122。在实际应用中,本场景中的麦克风的数量例如可以为3个分别设置在移动终端上的适当位置,比如分别位于移动终端的两端,同样如图4所示的麦克风阵列设置。由于相关技术中的软 件对于声压级的检测精度可以达到0.1DBA,相位差的检测精度可达0.1度,所以位置变动时,软件具有较强的稳定性,不需要变动相应的技术。本场景的噪声源可以为广场舞所产生噪声、汽车喇叭发出的噪声等。用户在房间内时,很容易受到外界的噪声骚扰,同样如图5所示的应用场景,此时用户可以通过移动终端上的用户输入单元进行操作,启动主动降噪功能。The mobile terminal applied to the present scenario may include a CPU or GPU (ie, the controller 180 in FIG. 1) for calculation, a camera 121, and a microphone 122. In practical applications, the number of microphones in the present scenario may be, for example, three suitable positions respectively set on the mobile terminal, such as respectively located at two ends of the mobile terminal, and also configured as a microphone array as shown in FIG. Due to the softness of the related art The detection accuracy of the sound pressure level can reach 0.1DBA, and the detection accuracy of the phase difference can reach 0.1 degree. Therefore, when the position changes, the software has strong stability and does not need to change the corresponding technology. The noise source of this scene can be the noise generated by the square dance, the noise emitted by the car horn, and the like. When the user is in the room, it is very susceptible to external noise harassment. The application scenario shown in Figure 5 is as follows. At this time, the user can operate the user input unit on the mobile terminal to activate the active noise reduction function.
本场景中通过开启移动终端上麦克风,接收外界的声音,获得音频信号,外界的声音包括噪声和有效的声音,移动终端在获得该音频信号时,对该音频信号中的信号进行分类识别出该音频信号中的噪声信号。在实际应用中,可以根据通用的噪声侦测算法区别出外界的噪声,比如广场舞所产生的噪声等,当然还可以识别出该音频信号中的有效声音,比如人声等,如果外界的噪声有多个,则可以根据噪声频谱序列进行归类,逐一提取。例如,如白噪声的频率分量的功率在整个可听范围(0~20KHZ)内都是均匀的;粉红噪音的能量从低频向高频不断衰减,曲线为1/f,通常为每8度下降3分贝;褐色噪音的频率分量功率主要集中在低频段,其能量下降曲线为1/f^2,其波形是非常自相似的。In this scenario, by turning on the microphone on the mobile terminal, receiving the external sound, and obtaining an audio signal, the external sound includes noise and effective sound, and the mobile terminal classifies and recognizes the signal in the audio signal when the audio signal is obtained. A noise signal in an audio signal. In practical applications, the external noise can be distinguished according to the general noise detection algorithm, such as the noise generated by the square dance, and of course, the effective sound in the audio signal, such as human voice, can be recognized, if the external noise If there are multiple, they can be classified according to the noise spectrum sequence and extracted one by one. For example, the power of a frequency component such as white noise is uniform throughout the audible range (0 to 20 kHz); the energy of pink noise is continuously attenuated from low frequency to high frequency, and the curve is 1/f, usually every 8 degrees. 3 dB; the frequency component power of brown noise is mainly concentrated in the low frequency band, and its energy drop curve is 1/f^2, and its waveform is very self-similar.
场景二、对车内进行主动降噪:Scene 2: Active noise reduction in the car:
在车内,汽车发动机噪声为主要汽车行驶时的主要噪声源,本场景中移动终端例如同样可以包括用于计算的CPU或者GPU(即图1中的控制器180)和无线通信单元110中至少一种。举例来说,本实施例中的移动终端包括短程通信模块114,比如蓝牙或者wifi。本场景中汽车例如可以包括设置在汽车中的麦克风阵列,该麦克风的数量例如可以为3个。由于声音的传播速度比较快,在汽车中设置的多个麦克风相隔的位置可以比较远,远大于在移动终端上设置的麦克风阵列,在汽车上设置麦克风阵列测得的数据进行计算得到的结果会比通过移动终端上麦克风获得的数据进行计算获得的结果误差会小。In the vehicle, the automobile engine noise is the main noise source when the main vehicle is running. In this scenario, the mobile terminal may also include at least one of a CPU or a GPU (ie, the controller 180 in FIG. 1) and the wireless communication unit 110 for calculation. Kind. For example, the mobile terminal in this embodiment includes a short-range communication module 114, such as Bluetooth or wifi. The car in this scenario may, for example, comprise an array of microphones arranged in a car, the number of which may be, for example, three. Since the sound is transmitted at a relatively fast speed, the positions of the plurality of microphones disposed in the car can be relatively far apart, which is much larger than the microphone array set on the mobile terminal, and the data obtained by setting the microphone array on the car is calculated. The result of the calculation is smaller than the data obtained by the microphone on the mobile terminal.
在该场景中,S10的实现方式可以为:接收汽车发送的音频信号,并识别出该音频信号中的噪声信号。In this scenario, the implementation of S10 may be: receiving an audio signal sent by the car, and identifying a noise signal in the audio signal.
通过设置汽车中的麦克风接收到音频信号后,将该音频信号发送给移动终端,例如可以通过蓝牙或者wifi发送给移动终端,实施中还可以通过通信 运营商发送给移动终端。从而移动终端接收汽车发送的音频信号,并识别出该音频信号中的噪声信号。After receiving the audio signal by setting the microphone in the car, the audio signal is sent to the mobile terminal, for example, can be sent to the mobile terminal through Bluetooth or wifi, and the communication can also be performed in the implementation. The operator sends it to the mobile terminal. Thereby the mobile terminal receives the audio signal transmitted by the car and recognizes the noise signal in the audio signal.
可选地,在车内进行主动降噪也可以通过移动终端上的麦克风阵列获得音频信号。Alternatively, active noise reduction in the vehicle can also obtain an audio signal through a microphone array on the mobile terminal.
S50,获得该噪声信号对应的噪声源位置,并获得用户位置和音响的位置。S50: obtain a noise source position corresponding to the noise signal, and obtain a position of the user and an acoustic position.
在S10识别出音频信号中的噪声信号后,可以根据该噪声信号获得噪声信号对应的噪声源位置。After the noise signal in the audio signal is recognized by S10, the noise source position corresponding to the noise signal can be obtained according to the noise signal.
在本发明实施例中,根据麦克风获得的噪声信号获得该噪声信号对应波形的相位差和声压差,通过麦克风阵列录入波形的相位差及声压差,计算噪声音源相对于终端的三维空间位置。每个录入波形由于和声源存在位置差异,声压级强度和距离的平方成反比,而相位差则是和接收延时有关,通过每个录入波形相减,得到相位差和声压差,根据声波在空气中传播的速度公式,可算出声源对每个MIC的位置距离,通过画圆寻找交点,可判断当前声源相对于终端位于空间中的实际位置。In the embodiment of the present invention, the phase difference and the sound pressure difference of the waveform corresponding to the noise signal are obtained according to the noise signal obtained by the microphone, and the phase difference and the sound pressure difference of the waveform are recorded through the microphone array, and the three-dimensional spatial position of the noise source relative to the terminal is calculated. . Each input waveform has a position difference with the sound source, and the sound pressure level intensity is inversely proportional to the square of the distance, and the phase difference is related to the reception delay. By subtracting each input waveform, the phase difference and the sound pressure difference are obtained. According to the speed formula of the sound wave propagating in the air, the position distance of the sound source to each MIC can be calculated, and by drawing a circle to find the intersection point, the actual position of the current sound source relative to the terminal in the space can be judged.
另外,S50中可以通过上述方式定位用户的位置,在实际应用中,通过人声侦测算法VAD区分出人声,然后根据人声波形的相位差及声压差,确定人的位置,实施中还可以通过其他方式,比如通过移动终端中双摄像头定位测距或者通过移动终端上单摄像头与红外测距单元配合进行测距,从而进行定位,当然还可以通过设置在汽车或者房间内中的双摄像头,或者单摄像头与红外测距单元进行定位。在更多的实施中还可以通过声呐定位。In addition, in the S50, the position of the user can be located in the above manner. In the actual application, the human voice is determined by the voice detection algorithm VAD, and then the position of the person is determined according to the phase difference of the voice waveform and the sound pressure difference. The positioning can also be performed by other means, for example, by positioning the two cameras in the mobile terminal or by using a single camera on the mobile terminal to cooperate with the infrared ranging unit, and of course, by setting the double in the car or the room. Camera, or single camera and infrared ranging unit for positioning. In more implementations, sonar positioning is also possible.
同理,播放测试位置的声音,通过上述方式测得用于播放后续降噪信号的音响的位置,当然也可以在车内的应用场景中预设播放音响的位置。实施中用户也可以通过输入菜单输入音响的位置。Similarly, the sound of the test position is played, and the position of the sound for playing the subsequent noise reduction signal is measured by the above method, and of course, the position of the sound can be preset in the application scene in the vehicle. In the implementation, the user can also input the position of the sound through the input menu.
S60,根据噪声信号、噪声源位置、用户位置和音响的位置确定降噪信号。S60, determining a noise reduction signal according to the noise signal, the location of the noise source, the position of the user, and the position of the sound.
在本发明实施例中,S60中根据上述步骤获得的噪声信号、噪声源位置和用户位置确定降噪信号。在一种可能的应用场景中,如果存在多个噪声信 号,则S60的实现方式可以为:根据多个噪声信号的噪声频谱进行归类,逐一提取,分别确定每个噪声信号对应的降噪信号,该降噪信号为与对应的噪声信号反相补偿声波。In the embodiment of the present invention, the noise reduction signal, the noise source position, and the user position obtained according to the above steps are determined in S60. In a possible application scenario, if there are multiple noise signals No., the implementation manner of the S60 may be: classifying according to the noise spectrum of the plurality of noise signals, extracting one by one, respectively determining the noise reduction signal corresponding to each noise signal, and the noise reduction signal is inversely compensated with the corresponding noise signal. Sound waves.
本实施例中在确定噪声源和用户相对于移动终端的三维空间位置后,计算得到该噪声信号对应的噪声达到用户的距离相对于音响播放该降噪信号达到用户的距离的延时,即得到音响播放该降噪信号与噪声信号的相位差。在一种可能的应用场景中,如果在存在多个噪音声源时,计算得到多个噪声信号中每个噪声信号对应的噪声达到用户的距离相对于音响播放多个降噪信号达到用户的距离的对应的延时。In the embodiment, after determining the three-dimensional spatial position of the noise source and the user relative to the mobile terminal, the delay of the noise corresponding to the noise signal reaching the distance of the user relative to the distance at which the noise reduction signal reaches the user is obtained. The sound plays the phase difference between the noise reduction signal and the noise signal. In a possible application scenario, if there are multiple noise sources, the noise corresponding to each of the plurality of noise signals is calculated to reach the user's distance relative to the audio to play the plurality of noise reduction signals to reach the user. The corresponding delay.
根据计算得到的延时生成与该噪声信号反相的降噪信号,以使得该降噪信号到达用户时可以抵消噪声源发出的噪声。A noise reduction signal that is inverted from the noise signal is generated according to the calculated delay, so that the noise emitted by the noise source can be cancelled when the noise reduction signal reaches the user.
S70,将该降噪信号发送至音响播放,以对该音频信号进行降噪。S70: Send the noise reduction signal to the audio player to perform noise reduction on the audio signal.
在本发明实施例中,根据S60确定的降噪信号,将该降噪信号发送至音响播放,以对该音频信号进行降噪。In the embodiment of the present invention, the noise reduction signal is sent to the audio playback according to the noise reduction signal determined by S60 to perform noise reduction on the audio signal.
本实施例中通过音响进行播放,从而在该音响播放与噪声信号反相的降噪信号到达用户时,可以与噪声源所发出的到达用户的噪声叠加,从而抵消,达到降噪的目的,有效避免噪音的干扰。In this embodiment, the audio is played, so that when the noise reduction signal in which the audio playback and the noise signal are inverted reaches the user, it can be superimposed with the noise generated by the noise source to reach the user, thereby canceling, achieving the purpose of noise reduction, and effectively Avoid noise interference.
在实际应用中,考虑到移动终端的电量与音量大小可能不能满足需求,上述音响可以是汽车内部的音响或者房间中家用音响。在车内进行降噪的场景中,使用移动终端和汽车装配的麦克风配合进行的车内主动降噪,利用移动终端上的降噪算法和运算资源,实时对车外环境音进行采集,分析计算,从中识别出噪声,并控制汽车播放反向降噪信号进行削弱,从而达到主动降噪的效果,一台移动终端可以适配多种车型,对车载设备的运算资源无要求,满足用户日益增长的舒适驾驶体验要求,更加人性化。In practical applications, considering that the power and volume of the mobile terminal may not meet the demand, the above sound may be an internal sound of the car or a home audio in the room. In the scene of noise reduction in the car, the active noise reduction in the vehicle is carried out by using the mobile terminal and the microphone assembled by the automobile, and the noise reduction algorithm and computing resources on the mobile terminal are used to collect the external environment sound in real time, and analyze and calculate. Identifying the noise from it and controlling the car to play the reverse noise reduction signal to weaken, so as to achieve the effect of active noise reduction, a mobile terminal can adapt to a variety of vehicle types, and there is no requirement for the computing resources of the vehicle equipment, and the user is increasingly growing. The comfortable driving experience requires more humanity.
以上仅为本发明的实施例和可选实施例方式,并非因此限制本发明实施例的保护范围,凡是利用本文说明书及说明书附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发 明的专利保护范围内。The above are only the embodiments and the alternative embodiments of the present invention, and are not intended to limit the scope of the embodiments of the present invention, and the equivalent structure or equivalent process transformations made by the contents of the specification and the drawings herein, or directly or indirectly Used in other related technical fields, all of which are included in this issue. Within the scope of patent protection.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium on a corresponding hardware platform (according to The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例提供的技术方案中,移动终端包括,第一获得模块,设置为:获得音频信号,并识别出该音频信号中的噪声信号;第二获得模块,设置为:获得第一获得模块识别出的噪声信号对应的噪声源位置,并获得用户位置;确定模块,设置为:根据第一获得模块识别出的噪声信号,以及第二获得模块获得的噪声源位置和用户位置确定降噪信号;降噪模块,设置为:根据确定模块确定的降噪信号调整音频信号,以对该音频信号进行降噪。通过上述方式,本发明实施例利用移动终端的资源,根据获得的音频信号、噪声源位置和用户位置确定降噪信号,实现对音频信号进行主动降噪,能够保证用户不受噪声的困扰,并且使用移动终端能够适用多种环境。 In the technical solution provided by the embodiment of the present invention, the mobile terminal includes: a first obtaining module, configured to: obtain an audio signal, and identify a noise signal in the audio signal; and the second obtaining module is configured to: obtain the first obtaining module Identifying a noise source corresponding to the noise source position, and obtaining a user position; the determining module is configured to: determine a noise reduction signal according to the noise signal identified by the first obtaining module, and the noise source position and the user position obtained by the second obtaining module The noise reduction module is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal. In the above manner, the embodiment of the present invention uses the resources of the mobile terminal to determine the noise reduction signal according to the obtained audio signal, the location of the noise source, and the position of the user, thereby implementing active noise reduction on the audio signal, thereby ensuring that the user is free from noise, and A variety of environments can be applied using a mobile terminal.

Claims (20)

  1. 一种移动终端,包括:A mobile terminal includes:
    第一获得模块,设置为:获得音频信号,并识别出所述音频信号中的噪声信号;a first obtaining module configured to: obtain an audio signal, and identify a noise signal in the audio signal;
    第二获得模块,设置为:获得所述第一获得模块识别出的所述噪声信号对应的噪声源位置,并获得用户位置;a second obtaining module, configured to: obtain a noise source location corresponding to the noise signal identified by the first obtaining module, and obtain a user location;
    确定模块,设置为:根据所述第一获得模块识别出的所述噪声信号,以及所述第二获得模块获得的所述噪声源位置和所述用户位置确定降噪信号;a determining module, configured to: determine a noise reduction signal according to the noise signal identified by the first obtaining module, and the noise source position and the user position obtained by the second obtaining module;
    降噪模块,设置为:根据所述确定模块确定的所述降噪信号调整所述音频信号,以对所述音频信号进行降噪。The noise reduction module is configured to: adjust the audio signal according to the noise reduction signal determined by the determining module to perform noise reduction on the audio signal.
  2. 根据权利要求1所述的移动终端,其中,通过所述移动终端播放所述确定模块确定的所述降噪信号;所述降噪模块,还设置为:在所述移动终端播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。The mobile terminal according to claim 1, wherein the noise reduction signal determined by the determining module is played by the mobile terminal; the noise reduction module is further configured to: play the noise with the mobile terminal When the noise-reduced signal of the signal inversion arrives at the user, it is superimposed with the noise generated by the noise source reaching the user.
  3. 根据权利要求1所述的移动终端,其中,The mobile terminal of claim 1, wherein
    所述第二获得模块,还设置为:获得所述第一获得模块识别出的所述噪声信号对应的噪声源位置,并获得用户位置和音响的位置;The second obtaining module is further configured to: obtain a noise source location corresponding to the noise signal identified by the first obtaining module, and obtain a location of the user location and an audio position;
    所述确定模块,还设置为:根据所述第一获得模块识别出的所述噪声信号,以及所述第二获得模块获得的所述噪声源位置、所述用户位置和所述音响的位置确定降噪信号;The determining module is further configured to: determine, according to the noise signal identified by the first obtaining module, the location of the noise source, the location of the user, and the location of the sound obtained by the second obtaining module Noise reduction signal;
    所述降噪模块,还设置为:将所述确定模块确定的所述降噪信号发送至所述音响播放,以对所述音频信号进行降噪。The noise reduction module is further configured to: send the noise reduction signal determined by the determining module to the audio playback to perform noise reduction on the audio signal.
  4. 根据权利要求3所述的移动终端,其中,所述降噪模块,还设置为:将所述降噪信号发送至所述音响播放,在所述音响播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。The mobile terminal according to claim 3, wherein the noise reduction module is further configured to: send the noise reduction signal to the audio playback, and reduce noise in the audio playback and the noise signal inversion When the signal arrives at the user, it is superimposed with the noise emitted by the noise source reaching the user.
  5. 根据权利要求1~4中任一项所述的移动终端,其中,所述第一获得模块识别出多个噪声信号,所述确定模块,还设置为:根据所述第一获得模块 识别出所述多个噪声信号的噪声频谱进行归类,分别确定出每个所述噪声信号对应的降噪信号,所述降噪信号为与对应的噪声信号反相的补偿声波。The mobile terminal according to any one of claims 1 to 4, wherein the first obtaining module identifies a plurality of noise signals, and the determining module is further configured to: according to the first obtaining module And identifying a noise spectrum of the plurality of noise signals to determine a noise reduction signal corresponding to each of the noise signals, wherein the noise reduction signal is a compensation sound wave that is opposite to the corresponding noise signal.
  6. 根据权利要求1所述的移动终端,其中,所述第二获得模块包括:The mobile terminal of claim 1, wherein the second obtaining module comprises:
    获取单元,设置为:获取所述第一获得模块识别出的所述噪声信号对应波形的相位差及声压差;An acquiring unit, configured to: obtain a phase difference and a sound pressure difference of the waveform corresponding to the noise signal identified by the first obtaining module;
    计算单元,设置为:根据所述获取单元获取的所述相位差及所述声压差计算所述噪声信号对应的噪声源相对于所述移动终端的三维空间位置,并获得用户相对所述移动终端的三维空间位置。a calculating unit, configured to: calculate a three-dimensional spatial position of the noise source corresponding to the noise signal according to the phase difference acquired by the acquiring unit and the sound pressure difference, and obtain a relative movement of the user The three-dimensional position of the terminal.
  7. 根据权利要求6所述的移动终端,其中,所述确定模块包括:The mobile terminal of claim 6, wherein the determining module comprises:
    确定单元,设置为:根据所述计算单元计算出的所述噪声源和所述用户相对所述移动终端的三维空间位置,计算出所述噪声信号对应的延时;a determining unit, configured to: calculate a delay corresponding to the noise signal according to the noise source calculated by the calculating unit and a three-dimensional spatial position of the user relative to the mobile terminal;
    生成单元,设置为:根据所述确定单元计算出的所述延时生成与所述噪声信号反相的降噪信号。And a generating unit, configured to: generate a noise reduction signal that is inverted from the noise signal according to the delay calculated by the determining unit.
  8. 根据权利要求7所述的移动终端,其中,所述延时为所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放所述降噪信号达到用户的距离的延时。The mobile terminal according to claim 7, wherein the delay is a delay of the noise corresponding to the noise signal reaching a distance of the user relative to the mobile terminal or the audio playing the noise reduction signal reaching the user.
  9. 根据权利要求7所述的移动终端,其中,所述第一获得模块识别出多个噪声信号,所述确定单元计算出所述噪声信号对应的延时,包括:The mobile terminal of claim 7, wherein the first obtaining module identifies a plurality of noise signals, and the determining unit calculates a delay corresponding to the noise signal, comprising:
    计算出所述多个噪声信号中每个所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放本降噪信号达到用户的距离的延时。Calculating a delay of the noise corresponding to each of the plurality of noise signals reaching the user's distance relative to the mobile terminal or the audio playbook noise reduction signal reaching the user.
  10. 根据权利要求1所述的移动终端,其中,所述第一获得模块,还设置为:接收汽车发送的音频信号,并识别出所述音频信号中的噪声信号。The mobile terminal of claim 1, wherein the first obtaining module is further configured to: receive an audio signal transmitted by the car, and identify a noise signal in the audio signal.
  11. 一种降噪方法,所述方法应用于移动终端,所述方法包括:A noise reduction method, the method being applied to a mobile terminal, the method comprising:
    获得音频信号,并识别出所述音频信号中的噪声信号;Obtaining an audio signal and identifying a noise signal in the audio signal;
    获得所述噪声信号对应的噪声源位置,并获得用户位置;Obtaining a noise source location corresponding to the noise signal, and obtaining a user location;
    根据所述噪声信号、所述噪声源位置和所述用户位置确定降噪信号;Determining a noise reduction signal according to the noise signal, the noise source location, and the user location;
    根据所述降噪信号调整所述音频信号,以对所述音频信号进行降噪。 Adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal.
  12. 根据权利要求11所述的方法,其中,通过所述移动终端播放所述降噪信号;所述根据所述降噪信号调整所述音频信号,以对所述音频信号进行降噪,包括:The method of claim 11, wherein the noise reduction signal is played by the mobile terminal; the adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal comprises:
    在所述移动终端播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。When the mobile terminal plays the noise reduction signal inverted from the noise signal to the user, it is superimposed with the noise generated by the noise source reaching the user.
  13. 根据权利要求11所述的方法,其中,所述获得所述噪声信号对应的噪声源位置,并获得用户位置,包括:The method of claim 11, wherein the obtaining a noise source location corresponding to the noise signal and obtaining a user location comprises:
    获得所述噪声信号对应的噪声源位置,并获得用户位置和音响的位置;Obtaining a noise source position corresponding to the noise signal, and obtaining a position of the user and an acoustic position;
    所述根据所述噪声信号、所述噪声源位置和用户位置确定降噪信号,包括:Determining the noise reduction signal according to the noise signal, the noise source location, and the user location, including:
    根据所述噪声信号、所述噪声源位置、所述用户位置和所述音响的位置确定降噪信号;Determining a noise reduction signal according to the noise signal, the noise source position, the user position, and the position of the sound;
    所述根据所述降噪信号调整所述音频信号,以对所述音频信号进行降噪,包括:Adjusting the audio signal according to the noise reduction signal to perform noise reduction on the audio signal, including:
    将所述降噪信号发送至所述音响播放,以对所述音频信号进行降噪。The noise reduction signal is sent to the audio playback to denoise the audio signal.
  14. 根据权利要求13所述的方法,其中,所述将所述降噪信号发送至所述音响播放,以对所述音频信号进行降噪,包括:The method of claim 13 wherein said transmitting said noise reduction signal to said audio playback to noise reduce said audio signal comprises:
    将所述降噪信号发送至所述音响播放,在所述音响播放与所述噪声信号反相的降噪信号到达用户时,与噪声源所发出的到达所述用户的噪声叠加。Transmitting the noise reduction signal to the audio playback, and superimposing the noise that is generated by the noise source and reaching the user when the noise reduction signal that is opposite to the noise signal reaches the user.
  15. 根据权利要求11~14中任一项所述的方法,其中,所述噪声信号为多个时,所述根据所述噪声信号、所述噪声源位置和所述用户位置确定降噪信号,包括:The method according to any one of claims 11 to 14, wherein when the noise signal is plural, the determining a noise reduction signal according to the noise signal, the noise source position, and the user position includes :
    根据所述多个噪声信号的噪声频谱进行归类,分别确定出每个所述噪声信号对应的降噪信号,所述降噪信号为与对应的噪声信号反相的补偿声波。And categorizing according to the noise spectrum of the plurality of noise signals, respectively determining a noise reduction signal corresponding to each of the noise signals, wherein the noise reduction signal is a compensation sound wave that is opposite to the corresponding noise signal.
  16. 根据权利要求11所述的方法,其中,所述获得所述噪声信号对应的噪声源位置,并获得用户位置,包括:The method of claim 11, wherein the obtaining a noise source location corresponding to the noise signal and obtaining a user location comprises:
    获取所述噪声信号对应波形的相位差及声压差; Obtaining a phase difference and a sound pressure difference of the waveform corresponding to the noise signal;
    根据所述相位差及所述声压差计算所述噪声信号对应的噪声源相对于所述移动终端的三维空间位置,并获得用户相对所述移动终端的三维空间位置。And calculating, according to the phase difference and the sound pressure difference, a three-dimensional spatial position of the noise source corresponding to the noise signal with respect to the mobile terminal, and obtaining a three-dimensional spatial position of the user relative to the mobile terminal.
  17. 根据权利要求16所述的方法,其中,所述根据所述噪声信号、所述噪声源位置和用户位置确定降噪信号,包括:The method of claim 16 wherein said determining a noise reduction signal based on said noise signal, said noise source location, and a user location comprises:
    根据所述噪声源和所述用户相对所述移动终端的三维空间位置,计算出所述噪声信号对应的延时;Calculating a delay corresponding to the noise signal according to the noise source and a three-dimensional spatial position of the user relative to the mobile terminal;
    根据所述延时生成与所述噪声信号反相的降噪信号。A noise reduction signal inverted from the noise signal is generated according to the delay.
  18. 根据权利要求17所述的方法,其中,所述延时为所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放所述降噪信号达到用户的距离的延时。The method according to claim 17, wherein the delay is a delay in which the noise corresponding to the noise signal reaches a distance of the user relative to the distance at which the mobile terminal or the audio signal is played by the noise reduction signal reaches the user.
  19. 根据权利要求17所述的方法,其中,所述噪声信号为多个时,所述计算出所述噪声信号对应的延时,包括:The method according to claim 17, wherein when the noise signal is plural, the calculating a delay corresponding to the noise signal comprises:
    计算出所述多个噪声信号中每个所述噪声信号对应的噪声达到用户的距离相对于所述移动终端或音响播放本降噪信号达到用户的距离的延时。Calculating a delay of the noise corresponding to each of the plurality of noise signals reaching the user's distance relative to the mobile terminal or the audio playbook noise reduction signal reaching the user.
  20. 根据权利要求11所述的方法,其中,所述获得音频信号,并识别出所述音频信号中的噪声信号,包括:The method of claim 11 wherein said obtaining an audio signal and identifying a noise signal in said audio signal comprises:
    接收汽车发送的音频信号,并识别出所述音频信号中的噪声信号。 Receiving an audio signal transmitted by the car and identifying a noise signal in the audio signal.
PCT/CN2016/102388 2015-12-29 2016-10-18 Mobile terminal and noise reduction method WO2017113937A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511017236.7A CN105679300A (en) 2015-12-29 2015-12-29 Mobile terminal and noise reduction method
CN201511017236.7 2015-12-29

Publications (1)

Publication Number Publication Date
WO2017113937A1 true WO2017113937A1 (en) 2017-07-06

Family

ID=56297937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102388 WO2017113937A1 (en) 2015-12-29 2016-10-18 Mobile terminal and noise reduction method

Country Status (2)

Country Link
CN (1) CN105679300A (en)
WO (1) WO2017113937A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112885323A (en) * 2021-02-22 2021-06-01 联想(北京)有限公司 Audio information processing method and device and electronic equipment
CN114464203A (en) * 2022-01-18 2022-05-10 小米汽车科技有限公司 Noise filtering method, device, system, vehicle and storage medium
WO2023093412A1 (en) * 2021-11-23 2023-06-01 华为技术有限公司 Active noise cancellation method and electronic device

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105679300A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Mobile terminal and noise reduction method
CN106205592B (en) * 2016-06-24 2020-07-28 努比亚技术有限公司 Noise reduction device and method
CN106251856B (en) * 2016-07-26 2021-03-09 Tcl通讯科技(成都)有限公司 Environmental noise elimination system and method based on mobile terminal
CN106205585B (en) * 2016-07-28 2020-06-02 海信集团有限公司 Noise elimination method and device
CN108806659A (en) * 2017-04-27 2018-11-13 北京小米移动软件有限公司 Noise-reduction method and device, the electronic equipment of air purifier
CN109637517B (en) * 2017-10-06 2023-05-26 松下电器(美国)知识产权公司 Control device, control system, and control method
CN110033754A (en) * 2018-01-11 2019-07-19 深圳市诚壹科技有限公司 A kind of noise-reduction method, device, terminal device and computer readable storage medium
CN109451165A (en) * 2018-11-26 2019-03-08 努比亚技术有限公司 Mobile terminal noise processing method, device, mobile terminal and storage medium
US11817114B2 (en) * 2019-12-09 2023-11-14 Dolby Laboratories Licensing Corporation Content and environmentally aware environmental noise compensation
CN111696513A (en) * 2020-05-19 2020-09-22 Oppo广东移动通信有限公司 Audio signal processing method and device, electronic equipment and storage medium
CN113450755A (en) * 2021-04-30 2021-09-28 青岛海尔科技有限公司 Method, device, storage medium and electronic device for reducing noise

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050254664A1 (en) * 2004-05-13 2005-11-17 Kwong Wah Y Noise cancellation methodology for electronic devices
US20110274283A1 (en) * 2009-07-22 2011-11-10 Lewis Athanas Open Air Noise Cancellation
US20120237049A1 (en) * 2011-03-18 2012-09-20 Brown Christopher A Wide area noise cancellation system and method
CN104318919A (en) * 2014-10-22 2015-01-28 上海斐讯数据通信技术有限公司 Environment noise elimination method and system and mobile terminal
CN104508738A (en) * 2012-07-24 2015-04-08 皇家飞利浦有限公司 Directional sound masking
CN105103219A (en) * 2013-11-11 2015-11-25 赵春宁 Noise reduction method
CN105679300A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Mobile terminal and noise reduction method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050254664A1 (en) * 2004-05-13 2005-11-17 Kwong Wah Y Noise cancellation methodology for electronic devices
US20110274283A1 (en) * 2009-07-22 2011-11-10 Lewis Athanas Open Air Noise Cancellation
US20120237049A1 (en) * 2011-03-18 2012-09-20 Brown Christopher A Wide area noise cancellation system and method
CN104508738A (en) * 2012-07-24 2015-04-08 皇家飞利浦有限公司 Directional sound masking
CN105103219A (en) * 2013-11-11 2015-11-25 赵春宁 Noise reduction method
CN104318919A (en) * 2014-10-22 2015-01-28 上海斐讯数据通信技术有限公司 Environment noise elimination method and system and mobile terminal
CN105679300A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Mobile terminal and noise reduction method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112885323A (en) * 2021-02-22 2021-06-01 联想(北京)有限公司 Audio information processing method and device and electronic equipment
WO2023093412A1 (en) * 2021-11-23 2023-06-01 华为技术有限公司 Active noise cancellation method and electronic device
CN114464203A (en) * 2022-01-18 2022-05-10 小米汽车科技有限公司 Noise filtering method, device, system, vehicle and storage medium

Also Published As

Publication number Publication date
CN105679300A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2017113937A1 (en) Mobile terminal and noise reduction method
TWI696146B (en) Method and apparatus of image processing, computer reading storage medium and mobile terminal
US9516241B2 (en) Beamforming method and apparatus for sound signal
CN113192527B (en) Method, apparatus, electronic device and storage medium for canceling echo
CN109756671B (en) Electronic device for recording images using multiple cameras and method of operating the same
CN114846816B (en) Stereo pickup method, stereo pickup device, terminal device and computer-readable storage medium
WO2017088564A1 (en) Image processing method, device, terminal, and storage medium
CN108038825B (en) Image processing method and mobile terminal
WO2016176951A1 (en) Method and device for optimizing sound signal
US9723421B2 (en) Electronic device and method for controlling video function and call function therefor
CN110933334B (en) Video noise reduction method, device, terminal and storage medium
CN108156378B (en) Photographing method, mobile terminal and computer-readable storage medium
WO2017114048A1 (en) Mobile terminal and method for identifying contact
CN105704369A (en) Information-processing method and device, and electronic device
CN107730460B (en) Image processing method and mobile terminal
WO2017088609A1 (en) Image denoising apparatus and method
WO2017054677A1 (en) Mobile terminal photographing system and mobile terminal photographing method
KR20160127606A (en) Mobile terminal and the control method thereof
WO2019076373A1 (en) Photographing method, mobile terminal and computer-readable storage medium
CN108282617A (en) Mobile terminal image pickup method, mobile terminal and computer readable storage medium
CN108307105B (en) Shooting method, terminal and computer readable storage medium
CN114333831A (en) Signal processing method and electronic equipment
KR20190037844A (en) Mobile terminal
CN114666433A (en) Howling processing method and device in terminal equipment and terminal
US20230162718A1 (en) Echo filtering method, electronic device, and computer-readable storage medium

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: 16880729

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: 16880729

Country of ref document: EP

Kind code of ref document: A1