[go: up one dir, main page]

CN106899908B - Apparatus for processing audio, method and system - Google Patents

Apparatus for processing audio, method and system Download PDF

Info

Publication number
CN106899908B
CN106899908B CN201710111706.9A CN201710111706A CN106899908B CN 106899908 B CN106899908 B CN 106899908B CN 201710111706 A CN201710111706 A CN 201710111706A CN 106899908 B CN106899908 B CN 106899908B
Authority
CN
China
Prior art keywords
earphone
type
mobile terminal
audio
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710111706.9A
Other languages
Chinese (zh)
Other versions
CN106899908A (en
Inventor
谭超文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710111706.9A priority Critical patent/CN106899908B/en
Publication of CN106899908A publication Critical patent/CN106899908A/en
Application granted granted Critical
Publication of CN106899908B publication Critical patent/CN106899908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Acoustics & Sound (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of apparatus for processing audio, are applied to mobile terminal, comprising: identification module, for when detecting that earphone is connect with mobile terminal, based on the type respond module in earphone, the response message of the type respond module feedback is received, to identify the headset type of the earphone;First processing module for obtaining the chip type of each audio processing chip in mobile terminal, and enables chip type and the matched audio processing chip of the headset type in mobile terminal.The invention also discloses a kind of audio-frequency processing method, system, a kind of earphones.Through the invention, after earphone is inserted into terminal, terminal detects earphone, distinguishes headset type, enables corresponding audio processing chip, while pursuing high-quality sound quality, the considerations of having both to terminal electricity consumption is saved.

Description

Apparatus for processing audio, method and system
Technical field
The present invention relates to audio data process field more particularly to earphone, apparatus for processing audio, method and system.
Background technique
With the universal and application of intelligent terminal in people's lives, more and more function are provided on various intelligent terminals Energy.Playing music by earphone is one of critical function of terminal and most-often used one of the function of user.With intelligent end The development at end and the raising of audio processing chip processing capacity, requirement of the user to sound quality are also higher and higher.But processing capacity Higher audio processing chip, power consumption are often also higher.And in the prior art, when user is listened to music by earphone, not The high audio processing chip of processing capacity can be decided whether to enable according to the type (quality height) of earphone.
Summary of the invention
It, will not be according to earphone when user is listened to music by earphone it is a primary object of the present invention to solve in the prior art Type (quality height) the technical issues of deciding whether to enable processing capacity high audio processing chip.
To achieve the above object, the present invention provides a kind of earphone, including type respond module, when headset detection connects to earphone When entering to audio-frequence player device, response message of the type respond module to the audio-frequence player device output identification headset type.
Optionally, the earphone includes at least following one kind:
A, the type respond module includes concatenated analog switch on the broadcasting channel circuit with the earphone, Yi Jiyu The response resistance for playing channel circuit parallel connection, when headset detection to earphone is linked into audio-frequence player device, analog switch by Before disconnection switchs to closure, response message relevant to the response resistance is fed back to the audio-frequence player device, wherein responding The resistance value of resistance is related to the headset type of the earphone;
B, the type respond module includes the MIC circuit being set in the earphone circuit, and with the MIC circuit The radio-frequency generator of connection, when headset detection to earphone is linked into audio-frequence player device, radio-frequency generator output and the earphone Headset type respective frequencies high-frequency signal to the audio-frequence player device.
To achieve the above object, the present invention also provides a kind of apparatus for processing audio, are applied to mobile terminal, comprising:
Identification module, for based on the type respond module in earphone, connecing when detecting that earphone is connect with mobile terminal The response message for receiving the type respond module feedback, to identify the headset type of the earphone;
First processing module for obtaining the chip type of each audio processing chip in mobile terminal, and enables mobile whole Chip type and the matched audio processing chip of the headset type in end.
Optionally, the identification module includes:
First detection unit, for when detecting that earphone is connect with mobile terminal, receiving and analyzing the broadcasting channel The response message relevant to the response resistance that the earphone of analog switch parallel connection response resistance of connecting on circuit is fed back, it obtains To the resistance in parallel with earphone broadcasting channel;
First recognition unit, for when the resistance is in the first preset resistive value section, determining that earphone is first Type earphone;When the resistance is in the second preset resistive value section, determine that earphone is Second Type earphone.
Optionally, the identification module further include:
Second detection unit, for when detecting that earphone is connect with mobile terminal, receiving and analyzing and the earphone The electric signal with the headset type respective frequencies of the earphone of the radio-frequency generator feedback of MIC circuit connection, obtains the electricity The frequency of signal;
Second recognition unit determines that earphone is for when the signal frequency be in the first predeterminated frequency section One type earphone;When the signal frequency is in the second predeterminated frequency section, determine that earphone is Second Type earphone.
Optionally, the apparatus for processing audio further include:
Judgment module, for judging whether the remaining capacity of mobile terminal is less than or equal to preset threshold;
Second processing module enables mobile whole if the remaining capacity for mobile terminal is less than or equal to preset threshold Chip type audio processing chip corresponding with current residual electricity in end, for handling audio data.
To achieve the above object, the present invention also provides a kind of audio-frequency processing method, comprising:
When detecting that earphone is connect with mobile terminal, based on the type respond module in earphone, receives the type and ring The response message for answering module feedback, to identify the headset type of the earphone;
Obtain the chip type of each audio processing chip in mobile terminal, and enable in mobile terminal chip type with it is described The matched audio processing chip of headset type.
Optionally, described when detecting that earphone is connect with mobile terminal, based on the type respond module in earphone, receive The response message of type respond module feedback, to identify that the headset type of the earphone includes:
When detecting that earphone is connect with mobile terminal, receives and analyze analog switch of connecting on the broadcasting channel circuit The response message relevant to the response resistance of the earphone feedback of parallel connection response resistance, it obtains playing with the earphone logical The resistance of road parallel connection;
When the resistance is in the first preset resistive value section, determine that earphone is first kind earphone;When the electricity When resistance resistance value is in the second preset resistive value section, determine that earphone is Second Type earphone.
Optionally, described when detecting that earphone is connect with mobile terminal, based on the type respond module in earphone, receive The response message of the type respond module feedback, to identify the headset type of the earphone further include:
When detecting that earphone is connect with mobile terminal, receives and analyze the high frequency with the MIC circuit connection of the earphone The electric signal with the headset type respective frequencies of the earphone of generator feedback, obtains the frequency of the electric signal;
When the signal frequency is in the first predeterminated frequency section, determine that earphone is first kind earphone;When described When signal frequency is in the second predeterminated frequency section, determine that earphone is Second Type earphone.
Optionally, the chip type for obtaining each audio processing chip in mobile terminal, and enable mobile terminal core Include: after sheet type and the matched audio processing chip of the headset type
Judge whether the remaining capacity of mobile terminal is less than or equal to preset threshold;
If the remaining capacity of mobile terminal is less than or equal to preset threshold, chip type and current is enabled in mobile terminal The corresponding audio processing chip of remaining capacity, for handling audio data
To achieve the above object, the present invention also provides a kind of audio processing systems, comprising: above-mentioned earphone and any of the above-described Apparatus for processing audio described in, the apparatus for processing audio are built in mobile terminal.
The earphone and mobile terminal are attached by wired connection mode, when mobile terminal detects that earphone accesses When, based on the type respond module in earphone, receive and analyze the sound of the mark headset type of the type respond module output Information is answered, headset type is obtained, and enable audio processing chip corresponding with the headset type, for carrying out to audio data Processing.
In the present invention, when earphone is connect with mobile terminal, by detecting to headset type, corresponding audio is determined Data processing method enables audio processing chip corresponding with headset type that is, according to headset type, is pursuing the same of sound quality When, the considerations of having both to mobile phone electricity is saved.
Detailed description of the invention
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication device schematic diagram of mobile terminal in Fig. 1;
Fig. 3 is the circuit diagram that 3 segmentations or 4 segmentation earphones play one embodiment of channel parallel resistance;
Fig. 4 is the functional block diagram of apparatus for processing audio first embodiment of the present invention;
Fig. 5 is the refinement the functional block diagram of 10 first embodiment of identification module in Fig. 4;
Fig. 6 is the refinement the functional block diagram of 10 second embodiment of identification module in Fig. 4;
Fig. 7 is the functional block diagram of apparatus for processing audio second embodiment of the present invention;
Fig. 8 is the flow diagram of audio-frequency processing method first embodiment of the present invention;
Fig. 9 is the refinement flow diagram of step S10 first embodiment in Fig. 8;
Figure 10 is the refinement flow diagram of step S10 second embodiment in Fig. 8;
Figure 11 is the flow diagram of audio-frequency processing method second embodiment of the present invention;
Figure 12 is the schematic diagram of a scenario of one embodiment of audio processing system of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180, power supply unit 190, Detection module 10, first processing module 20 etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that It is not required for implementing all components shown.More or fewer components can alternatively be implemented.Shifting will be discussed in more detail below The element of dynamic terminal.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication device Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Extensively Signal broadcast can be received by using various types of broadcasters by broadcasting receiving module 111.Particularly, broadcasting reception module 111 can be regarded by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), number Frequency Broadcasting-Handheld (DVB-H), forward link media (MediaFLO@) data broadcasting device, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digital broadcast apparatus receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcasters and above-mentioned digital broadcast apparatus of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global pick device).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include microphone 122, Microphone 122 can receive in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone Sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can be with It is defeated that the format that can be sent to mobile communication base station via mobile communication module 112 is converted in the case where telephone calling model Out.Microphone 122 can be implemented various types of noises elimination (or inhibition) algorithms and sended and received with eliminating (or inhibition) The noise generated during audio signal or interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure value, capacitor etc. caused by being contacted), idler wheel, rocking bar Etc..Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration of mobile terminal 100 or by fast movement and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.In addition, sensing unit 140 is able to detect whether power supply unit 190 provides electric power or interface unit Whether 170 couple with external device (ED).Sensing unit 140, which may include proximity sensor 141, to be come pair in conjunction with touch screen below This is described.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in When telephone calling model, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia are literary Part downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mould When formula or image capture mode, display unit 151 can show captured image and/or received image, video is shown or Image and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure value and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include sound pick-up, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access are deposited Reservoir (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication device and satellite-based communication device operate.
Referring now to Fig. 2 description communication device that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication device.For example, used by communication device Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications dress Set (UMTS) (particularly, long term evolution (LTE)), global mobile communication device (GSM) etc..As non-limiting example, under The description in face is related to cdma communication device, but such introduction is equally applicable to other types of device.
With reference to Fig. 2, cdma wireless communication device may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device may include multiple BSC275 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver Device (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in the device by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global pick device (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, but it is understood that, it can use any number of satellite and obtain Useful location information.As a typical operation of wireless communication device, BS270 is received from various mobile terminals 100 Reverse link signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 receives Each reverse link signal handled in specific BS270.The data of acquisition are forwarded to relevant BSC275.BSC The mobile management function of call resource allocation and the coordination including the soft switching process between BS270 is provided.BSC275 will also connect The data received are routed to MSC280, provide the additional route service for forming interface with PSTN290.Similarly, PSTN290 and MSC280 form interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with will just Mobile terminal 100 is sent to link signal.
Based on above-mentioned mobile terminal hardware configuration, communication apparatus structure, each embodiment of apparatus for processing audio of the present invention is proposed, Apparatus for processing audio is a part of mobile terminal.
Optionally, in an embodiment of the present invention, earphone includes: type respond module, when headset detection to earphone accesses When to audio-frequence player device, response message of the type respond module to the audio-frequence player device output identification headset type.
With no restriction to type respond module, which can be to audio-frequence player device feedback indicator headset type by the present invention Information is selected with specific reference to actual needs.
Optionally, in an embodiment of the present invention, type respond module includes:
A, the type respond module includes concatenated analog switch on the broadcasting channel circuit with the earphone, Yi Jiyu The response resistance for playing channel circuit parallel connection, when headset detection to earphone is linked into audio-frequence player device, analog switch by Before disconnection switchs to closure, response message relevant to the response resistance is fed back to the audio-frequence player device, wherein responding The resistance value of resistance is related to the headset type of the earphone;
It is the circuit diagram that 3 segmentations or 4 segmentation earphones play one embodiment of channel parallel resistance referring to Fig. 3, Fig. 3.
In the present embodiment, pass through analog switch of connecting on the broadcasting channel (left and right acoustic channels) of earphone, parallel resistance, the electricity It is corresponding with headset type to hinder resistance value, for example, being arranged in the terminal in advance, if earphone plays electricity in parallel on channel circuit It hinders resistance value and is higher than 50 ohm or more, be then determined as high quality earphone, conversely, being determined as low quality earphone.We can be in matter The resistance that high A earphone plays one high value of parallel connection on the circuit in channel, such as 50 ohm or more of resistance are measured, as the A When earphone is inserted into mobile terminal, if detecting, the high resistance measurement value is 50 ohm or more, and mobile terminal determines A earphone For high quality earphone.It is corresponding, the resistance lower than 50 ohm in parallel on the circuit that low-quality B earphone plays channel, When B earphone is inserted into mobile terminal, detect that the B earphone plays on channel resistance in parallel less than 50, then mobile terminal B earphone is determined as low quality earphone.It is, of course, also possible to be preset in terminal, if in parallel on earphone broadcasting channel circuit Resistance is lower than 30 ohm, then is determined as high quality earphone, conversely, being determined as low quality earphone.It is broadcast in the earphone of high quality Channel is put to the resistance of a upper low resistance in parallel, such as 30 ohm below, corresponding to play channel in low-quality earphone The resistance of a upper high value in parallel, 30 ohm or more.At this point, after earphone is inserted into mobile terminal, if detecting earphone It plays resistance in parallel on channel and is lower than 30 ohm, be then determined as high quality earphone, conversely, being determined as low quality earphone. It is selected with specific reference to actual needs, this is not restricted.In the present embodiment, to high quality earphone and low quality earphone Depending on classification according to the actual situation, with no restriction to classification standard.
In an alternate embodiment of the present invention, when earphone is inserted into audio-frequence player device (such as computer, mobile phone, plate), Analog switch is in an off state, then the electric signal on parallel resistance route is exported mobile phone, mobile phone receives the electric signal, right Electric signal is analyzed, and the resistance value of the parallel resistance is obtained, and according to the relationship of pre-set resistance value and type of cell phone, is obtained in one's hands Machine type.
B, the type respond module includes the MIC circuit being set in the earphone circuit, and with the MIC circuit The radio-frequency generator of connection, when headset detection to earphone is linked into audio-frequence player device, radio-frequency generator output and the earphone Headset type respective frequencies high-frequency signal to the audio-frequence player device.
In the present embodiment, for 4 segmentation earphones, in the radio-frequency generator that its MIC circuit in parallel human ear can not be heard, ear After the machine transplanting of rice enters mobile phone, radio-frequency generator is started to work, and mobile phone can receive the high frequency electrical signal of radio-frequency generator sending at this time, is connect It is analyzed after receipts, headset type is determined with this.Due to this high frequency electrical signal, mobile terminal can be identified, but due to Outside the human ear range of audibility, so will not have an impact to sound quality.For example, being arranged on mobile phone in advance, if receiving radio-frequency generator The high frequency electrical signal of sending is 30KHz, then is determined as high quality earphone, if receiving the high frequency electrical signal of radio-frequency generator sending For 50KHz, then it is judged as low quality earphone.Fixed frequency, which can be issued, at MIC circuit in parallel one of the C earphone of high quality is The radio-frequency generator of 30KHz, after C earphone is inserted into mobile phone, mobile phone receives the high frequency electrical signal, and the high-frequency electrical is obtained after analysis The frequency of signal is 30KHz, then is determined as high quality earphone;It can be issued in the MIC circuit in parallel one of low-quality D earphone solid Determine the radio-frequency generator that frequency is 50KHz, after D earphone is inserted into mobile phone, mobile phone receives the high frequency electrical signal, obtains after analysis The frequency of the high frequency electrical signal is 50KHz, then is determined as low quality earphone.It is of course also possible to be arranged on mobile phone in advance, if connecing The high frequency electrical signal for receiving radio-frequency generator sending is 50KHz, then is determined as high quality earphone, if receiving radio-frequency generator hair High frequency electrical signal out is 30KHz, then is judged as low quality earphone.It is corresponding, it only need to be in the MIC circuit in parallel of high quality earphone One can issue the radio-frequency generator that fixed frequency is 50KHz, can issue in the MIC circuit in parallel one of low quality earphone solid Determine the radio-frequency generator that frequency is 30KHz.High frequency of high quality earphone and low quality earphone MIC circuit in parallel is occurred at this The selection of device with no restriction, radio-frequency generator issue high frequency electrical signal do not influence record sound quality, to high quality earphone with And the definition of low quality earphone is also with no restriction, depending on actual needs.
In the present embodiment, it can be and play the circuit of channel (left or right sound channel) in 3 segmentation earphones or 4 segmentation earphones On, a resistance in parallel, the resistance value of the resistance is selected according to the actual situation, and mobile terminal is after earphone insertion, by right The detection of the resistance determines headset type.It can also be MIC circuit in parallel radio-frequency generator (the capable of emitting people in earphone High frequency electrical signal outside the audible frequency domain of ear, mobile terminal can recognize the high frequency electrical signal).Such as the MIC circuit in 4 segmentation earphones Radio-frequency generator in parallel, after earphone insertion, the high frequency electrical signal issued to radio-frequency generator detects mobile terminal, according to The frequency of high frequency electrical signal determines headset type.
It is small to the change of existing Headphone structure in the present embodiment, there is practicability.
It is the functional block diagram of apparatus for processing audio first embodiment of the present invention referring to Fig. 4, Fig. 4.
In the present embodiment, apparatus for processing audio includes:
Identification module 10, for when detecting that earphone is connect with mobile terminal, based on the type respond module in earphone, The response message for receiving the type respond module feedback, to identify the headset type of the earphone;
In the present embodiment, the mode that earphone is connect with mobile terminal is wired connection.For example, mobile terminal provides earphone Jack, in earphone insertion, mobile terminal just detects earphone.The method whether test earphone is inserted into is not limited herein System, for example, there is a contact inside earphone jack, when earphone is inserted into, contact is shorted, so that mobile terminal detects that earphone is inserted Enter.In another example being mentioned between audio jack, baseband processor and microphone preamplifier by audio jack detection switch For an interface, when earphone is inserted into audio jack, mobile terminal just can detect earphone.Depending on actual needs, This is not restricted.
In the present embodiment, earphone can be 3 segmentation earphones or 4 segmentation earphones, be distinguished as 4 segmentation earphones compared to 3 Segmentation earphone has the hardware and function of MIC typing.In the selection of earphone, with no restriction, depending on actual needs.
In the present embodiment, method headset type detected with no restriction, such as to 3 segmentation earphones or 4 segmentations The resistance value in the broadcasting channel of earphone is detected, according to the type of the size discrimination earphone of resistance value.In another example in 4 segmentations One radio-frequency generator of MIC circuit in parallel of earphone, the high frequency electrical signal (people that the capable of emitting human ear of the radio-frequency generator can not be heard The audible frequency domain of ear is in 20Hz~20KHz).After earphone is inserted into mobile terminal, radio-frequency generator is started to work, and is moved at this time Terminal is analyzed the high frequency electrical signal, the type of earphone is judged with this by receiving high frequency electrical signal.To headset type The method detected is decided according to the actual requirements.
As shown in figure 3, Fig. 3 is the circuit diagram that 3 segmentations or 4 segmentation earphones play one embodiment of channel parallel resistance.
In an alternate embodiment of the present invention, the electricity of channel (left or right sound channel) is played in 3 segmentations or 4 segmentation earphones On the road, a resistance in parallel, while analog switch being added on the main circuit.In the state that earphone does not power on, which is disconnected It opens, is closed after powering on.When earphone is inserted into mobile terminal, most starts to disconnect due to switch, then resistance is detected, at this time according to resistance Size the type of earphone is distinguished.It after powering on, closes the switch, then resistance returns normal circuit resistance value, carries out at this time just Often play.In the present embodiment, it is arranged in the terminal in advance, if earphone plays resistance height in parallel on channel circuit In 50 ohm or more, then it is determined as high quality earphone, conversely, being determined as low quality earphone.We can be high in quality A ear The resistance of one high value of parallel connection on the circuit in channel, such as 50 ohm or more of resistance are put in machine sowing, when the A earphone is inserted into When mobile terminal, if detecting, the high resistance measurement value is 50 ohm or more, and A earphone is determined as high quality by mobile terminal Earphone.Corresponding, the resistance lower than 50 ohm in parallel on the circuit that low-quality B earphone plays channel is inserted in B earphone When entering mobile terminal, detect that the B earphone plays resistance in parallel on channel less than 50, then B earphone is determined as by terminal Low quality earphone.It is, of course, also possible to be preset in mobile terminal, if resistance in parallel on earphone broadcasting channel circuit is low In 30 ohm, then it is determined as high quality earphone, conversely, being determined as low quality earphone.Channel is played to upper in the earphone of high quality The resistance of a low resistance in parallel, such as 30 ohm of below, corresponding parallel connections one on low-quality earphone broadcasting channel The resistance of high value, 30 ohm or more.At this point, if detecting, earphone is played on channel after earphone is inserted into mobile terminal Resistance in parallel is lower than 30 ohm, then is determined as high quality earphone, conversely, being determined as low quality earphone.With specific reference to reality Border is selected, and this is not restricted.
In another alternative embodiment of the present invention, for 4 segmentation earphones, it can not be heard in its MIC circuit in parallel human ear Radio-frequency generator, after earphone is inserted into mobile terminal, radio-frequency generator is started to work, and mobile terminal can receive high frequency at this time The high frequency electrical signal that device issues, is analyzed after reception, determines type of cell phone with this.It is mobile due to this high frequency electrical signal Terminal can identify, but due to outside the human ear range of audibility, so will not have an impact to sound quality.For example, in advance in mobile terminal Upper setting is determined as high quality earphone, if receiving if the high frequency electrical signal for receiving radio-frequency generator sending is 30KHz The high frequency electrical signal that radio-frequency generator issues is 50KHz, then is judged as low quality earphone.In the MIC electricity of the C earphone of high quality One in parallel of road can issue the radio-frequency generator that fixed frequency is 30KHz, and after C earphone is inserted into mobile terminal, terminal is received The high frequency electrical signal, the frequency that the high frequency electrical signal is obtained after analysis is 30KHz, then is determined as high quality earphone;In low quality MIC circuit in parallel one of D earphone can issue the radio-frequency generator that fixed frequency is 50KHz, when D earphone is inserted into mobile terminal Afterwards, mobile terminal receives the high frequency electrical signal, and the frequency that the high frequency electrical signal is obtained after analysis is 50KHz, then is determined as low Quality earphone.It is of course also possible to be arranged on mobile terminals in advance, if the high frequency electrical signal for receiving radio-frequency generator sending is 50KHz is then determined as high quality earphone, if the high frequency electrical signal for receiving radio-frequency generator sending is 30KHz, is judged as low Quality earphone.It is corresponding, only the high frequency that fixed frequency is 50KHz need to can be issued in MIC circuit in parallel one of high quality earphone Generator, MIC circuit in parallel one in low quality earphone can issue the radio-frequency generator that fixed frequency is 30KHz.It is right at this The selection of the radio-frequency generator of high quality earphone and low quality earphone MIC circuit in parallel with no restriction, radio-frequency generator issue High frequency electrical signal does not influence sound quality of recording, also with no restriction to the definition of high quality earphone and low quality earphone, specifically It is decided according to the actual requirements.
First processing module 20 for obtaining the chip type of each audio processing chip in mobile terminal, and enables movement Chip type and the matched audio processing chip of the headset type in terminal.
In the present embodiment, if testing result determines that the earphone of insertion is high quality earphone, mould is played by high-precision Block plays after handling audio file, if testing result determines that the earphone of insertion is low quality earphone, passes through low precision Playing module plays after handling audio file.The high-precision module is i.e. to the superior sound of the process performance of audio data Card, low precision module are to not superior enough the sound card of the process performance of audio data, here, with no restriction, with specific reference to reality It is selected.
In an alternate embodiment of the present invention, terminal has the function of HIFI, if enabling, passes through the superior sound of process performance Card handles audio data, if not enabling, is handled by the general sound card of process performance audio data.Work as end End detects that high quality earphone is inserted into, then enables HiFi function, if detecting, low quality earphone is inserted into, and does not enable HiFi function Energy.
In the present embodiment, after earphone is inserted into mobile terminal, terminal to earphone carry out detection and according to preset rule really Determining earphone is high quality earphone or low quality earphone, selects corresponding audio data processing mode, a side according to the type of earphone Face meets pursuit of the user to sound quality, on the other hand considers and saves mobile terminal electricity.
It is the refinement the functional block diagram of 10 first embodiment of identification module in Fig. 4 referring to Fig. 5, Fig. 5.
In the present embodiment, detection module 10 includes:
First detection unit 101 is led to for when detecting that earphone is connect with mobile terminal, receiving and analyzing described play The response message relevant to the response resistance that the earphone of analog switch parallel connection response resistance of connecting on road circuit is fed back, obtains To the resistance in parallel with earphone broadcasting channel;
First recognition unit 102 determines that earphone is for when the resistance be in the first preset resistive value section One type earphone;When the resistance is in the second preset resistive value section, determine that earphone is Second Type earphone.
In the present embodiment, the corresponding earphone jack of earphone insertion terminal is connected by way of wired connection with terminal It connects, earphone can be 3 segmentation earphones and be also possible to 4 segmentation earphones, depending on actual needs.
In the present embodiment, on the circuit of the broadcasting channel of earphone (left or right sound channel), a resistance in parallel.Such as Shown in Fig. 3, Fig. 3 is the circuit diagram that 3 segmentations or 4 segmentation earphones play one embodiment of channel parallel resistance.It can be in height On the circuit in the broadcasting channel of quality earphone, one 50 ohm or more of resistance in parallel, in the broadcasting channel of low quality earphone Circuit on, 50 ohm or less resistance in parallel.It is corresponding, it is arranged at the terminal, if detecting, earphone plays channel circuit On, the resistance value of parallel resistance is then judged as high quality earphone at 50 ohm or more, and 50 ohm or less are then determined as low quality ear Machine.It can also be on the circuit in the broadcasting channel of high quality earphone, 50 ohm of resistance below in parallel, in low quality ear On the circuit in the broadcasting channel of machine, 50 ohm or more resistance in parallel.It is corresponding, it is arranged at the terminal, if detecting ear Machine sowing is put on channel circuit, and the resistance value of parallel resistance is then judged as high quality earphone at 50 ohm or less, and 50 ohm or more then It is determined as low quality earphone.In the present embodiment, to the definition of high quality earphone and low quality earphone according to the actual situation and It is fixed, the selection of parallel resistance is selected according to actual needs, this is not restricted.
In the present embodiment, by the broadcasting channel circuit in earphone, a resistance in parallel, when earphone is inserted into terminal, eventually End detects that the resistance value of the resistance distinguishes the type of earphone, make according to the size of resistance value according to preset classification policy Earphone is obtained after being inserted into terminal, terminal can distinguish the quality height of earphone.
It is the refinement the functional block diagram of 10 second embodiment of identification module in Fig. 4 referring to Fig. 6, Fig. 6.
In the present embodiment, detection module 10 further include:
Second detection unit 103, for when detecting that earphone is connect with mobile terminal, receiving and analyzing and the earphone MIC circuit connection radio-frequency generator feedback the electric signal with the headset type respective frequencies of the earphone, obtain described The frequency of electric signal;
Second recognition unit 104 is used for when the signal frequency is in the first predeterminated frequency section, determines that earphone is First kind earphone;When the signal frequency is in the second predeterminated frequency section, determine that earphone is Second Type earphone.
In the present embodiment, earphone have the function of the hardware of MIC typing and, such as 4 segmentation earphones.In the MIC electricity of earphone Road parallel connection radio-frequency generator (high frequency electrical signal that capable of emitting human ear can not be heard, terminal can identify the high frequency electrical signal).For example, The high frequency electrical signal for being 30KHz in the capable of emitting frequency of one radio-frequency generator of MIC circuit in parallel of high quality earphone, in low quality ear The capable of emitting frequency of one radio-frequency generator of MIC circuit in parallel of machine is the high frequency electrical signal of 50KHz.It presets at the terminal, if The high frequency electrical signal of 30KHz is received, then determines earphone for high quality earphone, if receiving the high frequency electrical signal of 50KHz, Determine that earphone is low quality earphone.It is, of course, also possible to be high quality earphone one radio-frequency generator of MIC circuit in parallel it is capable of emitting Frequency is the high frequency electrical signal of 50KHz, is in the capable of emitting frequency of one radio-frequency generator of MIC circuit in parallel of low quality earphone The high frequency electrical signal of 30KHz.It is corresponding, it presets at the terminal, if receiving the high frequency electrical signal of 50KHz, determines ear Machine determines earphone for low quality earphone for high quality earphone if receiving the high frequency electrical signal of 30KHz.Here, to high frequency The selection of generator with no restriction, is defined high quality earphone and low-quality earphone according to the actual situation.Earphone exists After being inserted into terminal, radio-frequency generator work, the high frequency electrical signal that terminal receives radio-frequency generator sending is obtained according to analysis To the frequency of the high frequency electrical signal, headset type is determined by frequency.
In the present embodiment, the radio-frequency generator in parallel on the MIC circuit of earphone, and different frequency is set in terminal in advance The corresponding headset type of electric signal issues terminal by receiving radio-frequency generator in parallel on earphone MIC circuit Electric signal distinguishes headset type.
It is the functional block diagram of apparatus for processing audio second embodiment of the present invention referring to Fig. 7, Fig. 7.
In the present embodiment, apparatus for processing audio further include:
Judgment module 30, for judging whether the remaining capacity of mobile terminal is less than or equal to preset threshold;
In the present embodiment, which can be arranged automatically by user's self-setting or by system, such as be set as 20%, this is not restricted.
Second processing module 40 enables movement if the remaining capacity for mobile terminal is less than or equal to preset threshold Chip type audio processing chip corresponding with current residual electricity in terminal, for handling audio data.
In the present embodiment, which refers to through the small sound card device of power consumption to audio data It is handled, depending on the selection according to the actual situation of the sound card device.
In the present embodiment, when the remaining capacity of terminal is less than or equal to preset threshold, pass through the small sound card of power consumption Processing unit handles audio data, can save terminal electricity consumption.
The present invention provides a kind of audio-frequency processing method.
It is the flow diagram of audio-frequency processing method first embodiment of the present invention referring to Fig. 8, Fig. 8.
In the present embodiment, audio-frequency processing method includes:
Step S10, based on the type respond module in earphone, receives institute when detecting that earphone is connect with mobile terminal The response message for stating type respond module feedback, to identify the headset type of the earphone;
In the present embodiment, the mode that earphone is connect with terminal is wired connection.For example, terminal provides earphone jack, When earphone is inserted into, terminal just detects earphone.The method whether being inserted into for test earphone herein with no restriction, for example, earphone There is a contact inside jack, when earphone is inserted into, contact is shorted, so that terminal detects that earphone is inserted into.In another example passing through sound Frequency jack detection switch provides an interface between audio jack, baseband processor and microphone preamplifier, works as earphone When being inserted into audio jack, terminal just can detect earphone.Depending on actual needs, this is not restricted.
In the present embodiment, earphone can be 3 segmentation earphones or 4 segmentation earphones, be distinguished as 4 segmentation earphones compared to 3 Segmentation earphone has the hardware and function of MIC typing.In the selection of earphone, with no restriction, depending on actual needs.
In the present embodiment, method headset type detected with no restriction, such as to 3 segmentation earphones or 4 segmentations The resistance value in the broadcasting channel of earphone is detected, according to the type of the size discrimination earphone of resistance value.In another example in 4 segmentations One radio-frequency generator of MIC circuit in parallel of earphone, the high frequency electrical signal (people that the capable of emitting human ear of the radio-frequency generator can not be heard The audible frequency domain of ear is in 20Hz~20KHz).After earphone is inserted into terminal, radio-frequency generator is started to work, and terminal passes through at this time High frequency electrical signal is received, which is analyzed, the type of earphone is judged with this.Headset type is detected Method be decided according to the actual requirements.
As shown in figure 3, Fig. 3 is the circuit diagram that 3 segmentations or 4 segmentation earphones play one embodiment of channel parallel resistance.
In an alternate embodiment of the present invention, the electricity of channel (left or right sound channel) is played in 3 segmentations or 4 segmentation earphones On the road, a resistance in parallel, while analog switch being added on the main circuit.In the state that earphone does not power on, which is disconnected It opens, is closed after powering on.When earphone is inserted into terminal, most starts to disconnect due to switch, then resistance is detected, at this time according to the big of resistance The small type to earphone distinguishes.It after powering on, closes the switch, then resistance returns normal circuit resistance value, is normally broadcast at this time It puts.In the present embodiment, it is arranged in the terminal in advance, if earphone plays resistance in parallel on channel circuit and is higher than 50 Europe Nurse or more is then determined as high quality earphone, conversely, being determined as low quality earphone.We can play in the high A earphone of quality The resistance of one high value of parallel connection on the circuit in channel, such as 50 ohm or more of resistance, when the A earphone is inserted into terminal, If detecting, the high resistance measurement value is 50 ohm or more, and A earphone is determined as high quality earphone by terminal.It is corresponding, Low-quality B earphone plays the resistance lower than 50 ohm in parallel on the circuit in channel, when B earphone is inserted into terminal, detection Resistance in parallel on channel is played less than 50 to the B earphone, then B earphone is determined as low quality earphone by terminal.Certainly, It can also be preset in terminal, if earphone plays resistance in parallel on channel circuit and is lower than 30 ohm, be determined as height Quality earphone, conversely, being determined as low quality earphone.Electricity in the earphone broadcasting channel of high quality to a upper low resistance in parallel Resistance, such as 30 ohm of below, corresponding resistance that one high value of parallel connection on channel is played in low-quality earphone, 30 ohm Or above.At this point, if detecting, earphone plays resistance in parallel on channel lower than 30 Europe after earphone is inserted into terminal Nurse is then determined as high quality earphone, conversely, being determined as low quality earphone.It is selected with specific reference to actual needs, is not made herein Limitation.
In another alternative embodiment of the present invention, for 4 segmentation earphones, it can not be heard in its MIC circuit in parallel human ear Radio-frequency generator, after earphone is inserted into terminal, radio-frequency generator is started to work, and terminal can receive radio-frequency generator sending at this time High frequency electrical signal analyzed after reception, determines type of cell phone with this.Due to this high frequency electrical signal, terminal can be identified, but It is due to outside the human ear range of audibility, so will not have an impact to sound quality.For example, being arranged at the terminal in advance, if receiving height The high frequency electrical signal that frequency generator issues is 30KHz, then is determined as high quality earphone, if receiving the height of radio-frequency generator sending Frequency electric signal is 50KHz, then is judged as low quality earphone.Fixation can be issued in the MIC circuit in parallel one of the C earphone of high quality Frequency is the radio-frequency generator of 30KHz, and after C earphone is inserted into terminal, terminal receives the high frequency electrical signal, is somebody's turn to do after analysis The frequency of high frequency electrical signal is 30KHz, then is determined as high quality earphone;In one energy of MIC circuit in parallel of low-quality D earphone The radio-frequency generator that fixed frequency is 50KHz is issued, after D earphone is inserted into terminal, terminal receives the high frequency electrical signal, point The frequency that the high frequency electrical signal is obtained after analysis is 50KHz, then is determined as low quality earphone.It is of course also possible in advance at the terminal Setting is determined as high quality earphone, if receiving height if the high frequency electrical signal for receiving radio-frequency generator sending is 50KHz The high frequency electrical signal that frequency generator issues is 30KHz, then is judged as low quality earphone.It is corresponding, it only need to be in high quality earphone MIC circuit in parallel one can issue the radio-frequency generator that fixed frequency is 50KHz, in the MIC circuit in parallel one of low quality earphone It is a to issue the radio-frequency generator that fixed frequency is 30KHz.At this to high quality earphone and low quality earphone MIC circuit in parallel With no restriction, the high frequency electrical signal that radio-frequency generator issues does not influence sound quality of recording, to high-quality for the selection of radio-frequency generator The definition of earphone and low quality earphone is measured also with no restriction, depending on actual needs.
Step S20, obtains the chip type of each audio processing chip in mobile terminal, and enables chip class in mobile terminal Type and the matched audio processing chip of the headset type.
In the present embodiment, if testing result determines that the earphone of insertion is high quality earphone, mould is played by high-precision Block plays after handling audio file, if testing result determines that the earphone of insertion is low quality earphone, passes through low precision Playing module plays after handling audio file.The high-precision module is i.e. to the superior sound of the process performance of audio data Card, low precision module are to not superior enough the sound card of the process performance of audio data, here, with no restriction, with specific reference to reality It is selected.
In an alternate embodiment of the present invention, terminal has the function of HIFI, if enabling, passes through the superior sound of process performance Card handles audio data, if not enabling, is handled by the general sound card of process performance audio data.Work as end End detects that high quality earphone is inserted into, then enables HiFi function, if detecting, low quality earphone is inserted into, and does not enable HiFi function Energy.
In the present embodiment, after earphone is inserted into terminal, terminal carries out detection to earphone and determines ear according to preset rule Machine is high quality earphone or low quality earphone, selects corresponding audio data processing mode according to the type of earphone, on the one hand full Foot pursuit of the user to sound quality, on the other hand considers saving terminal power.
It is the refinement flow diagram of step S10 first embodiment in Fig. 8 referring to Fig. 9, Fig. 9.
In the present embodiment, step S10 includes:
Step S101 is received and is analyzed and go here and there on the broadcasting channel circuit when detecting that earphone is connect with mobile terminal Gang mould intends the response message relevant to the response resistance of the earphone feedback of switch in parallel response resistance, obtains and the ear The resistance of channel parallel connection is put in machine sowing;
Step S102 determines that earphone is first kind earphone when the resistance is in the first preset resistive value section; When the resistance is in the second preset resistive value section, determine that earphone is Second Type earphone.
In the present embodiment, the corresponding earphone jack of earphone insertion terminal is connected by way of wired connection with terminal It connects, earphone can be 3 segmentation earphones and be also possible to 4 segmentation earphones, depending on actual needs.
In the present embodiment, on the circuit of the broadcasting channel of earphone (left or right sound channel), a resistance in parallel.Such as Shown in Fig. 4, Fig. 4 is the circuit diagram that 3 segmentations or 4 segmentation earphones play one embodiment of channel parallel resistance.It can be in height On the circuit in the broadcasting channel of quality earphone, one 50 ohm or more of resistance in parallel, in the broadcasting channel of low quality earphone Circuit on, 50 ohm or less resistance in parallel.It is corresponding, it is arranged at the terminal, if detecting, earphone plays channel circuit On, the resistance value of parallel resistance is then judged as high quality earphone at 50 ohm or more, and 50 ohm or less are then determined as low quality ear Machine.It can also be on the circuit in the broadcasting channel of high quality earphone, 50 ohm of resistance below in parallel, in low quality ear On the circuit in the broadcasting channel of machine, 50 ohm or more resistance in parallel.It is corresponding, it is arranged at the terminal, if detecting ear Machine sowing is put on channel circuit, and the resistance value of parallel resistance is then judged as high quality earphone at 50 ohm or less, and 50 ohm or more then It is determined as low quality earphone.In the present embodiment, to the definition of high quality earphone and low quality earphone according to the actual situation and It is fixed, the selection of parallel resistance is selected according to actual needs, this is not restricted.
In the present embodiment, by the broadcasting channel circuit in earphone, a resistance in parallel, when earphone is inserted into terminal, eventually End detects that the resistance value of the resistance distinguishes the type of earphone, make according to the size of resistance value according to preset classification policy Earphone is obtained after being inserted into terminal, terminal can distinguish the quality height of earphone.
0, Figure 10 is the refinement flow diagram of step S10 second embodiment in Fig. 8 referring to Fig.1.
In the present embodiment, step S10 further include:
Step S103, for when detecting that earphone is connect with mobile terminal, receiving and analyzing and the MIC of earphone electricity The electric signal with the headset type respective frequencies of the earphone of the radio-frequency generator feedback of road connection, obtains the electric signal Frequency;
Step S 104, for when the signal frequency is in the first predeterminated frequency section, determining that earphone is the first kind Type earphone;When the signal frequency is in the second predeterminated frequency section, determine that earphone is Second Type earphone.
In the present embodiment, earphone have the function of the hardware of MIC typing and, such as 4 segmentation earphones.In the MIC electricity of earphone Road parallel connection radio-frequency generator (high frequency electrical signal that capable of emitting human ear can not be heard, terminal can identify the high frequency electrical signal).For example, The high frequency electrical signal for being 30KHz in the capable of emitting frequency of one radio-frequency generator of MIC circuit in parallel of high quality earphone, in low quality ear The capable of emitting frequency of one radio-frequency generator of MIC circuit in parallel of machine is the high frequency electrical signal of 50KHz.It presets at the terminal, if The high frequency electrical signal of 30KHz is received, then determines earphone for high quality earphone, if receiving the high frequency electrical signal of 50KHz, Determine that earphone is low quality earphone.It is, of course, also possible to be high quality earphone one radio-frequency generator of MIC circuit in parallel it is capable of emitting Frequency is the high frequency electrical signal of 50KHz, is in the capable of emitting frequency of one radio-frequency generator of MIC circuit in parallel of low quality earphone The high frequency electrical signal of 30KHz.It is corresponding, it presets at the terminal, if receiving the high frequency electrical signal of 50KHz, determines ear Machine determines earphone for low quality earphone for high quality earphone if receiving the high frequency electrical signal of 30KHz.Here, to high frequency The selection of generator with no restriction, is defined high quality earphone and low-quality earphone according to the actual situation.Earphone exists After being inserted into terminal, radio-frequency generator work, the high frequency electrical signal that terminal receives radio-frequency generator sending is obtained according to analysis To the frequency of the high frequency electrical signal, headset type is determined by frequency.
In the present embodiment, the radio-frequency generator in parallel on the MIC circuit of earphone, and different frequency is set in terminal in advance The corresponding headset type of electric signal issues terminal by receiving radio-frequency generator in parallel on earphone MIC circuit Electric signal distinguishes headset type.
1, Figure 11 is the flow diagram of audio-frequency processing method second embodiment of the present invention referring to Fig.1.
In the present embodiment, after step S20 further include:
Step S30, judges whether the remaining capacity of mobile terminal is less than or equal to preset threshold;
In the present embodiment, which can be arranged automatically by user's self-setting or by system, such as be set as 20%, this is not restricted.
Step S40 enables chip class in mobile terminal if the remaining capacity of mobile terminal is less than or equal to preset threshold Type audio processing chip corresponding with current residual electricity, for handling audio data.
In the present embodiment, which refers to through the small sound card device of power consumption to audio data It is handled, depending on the selection according to the actual situation of the sound card device.
In the present embodiment, when the remaining capacity of terminal is less than or equal to preset threshold, pass through the small sound card of power consumption Processing unit handles audio data, can save terminal electricity consumption.
2, Figure 12 is the schematic diagram of a scenario of one embodiment of audio processing system of the present invention referring to Fig.1.
In the present embodiment, audio processing system includes earphone and apparatus for processing audio, and apparatus for processing audio is applied to Mobile terminal.
In the present embodiment, headset type is unlimited, such as 3 segmentation earphones, 4 segmentation earphones, and mobile terminal style is unlimited, can To carry out wired connection, and terminal, such as mobile phone, computer etc. with sound card device with earphone, this is not restricted.? After earphone is inserted into terminal, apparatus for processing audio distinguishes headset type, and according to headset type, determines corresponding acoustic processing side Formula.
In the present embodiment, according to headset type (headphone quality height), determine corresponding sound processing mode (using high Performance sound card or low performance sound card) audio data is handled, while pursuing sound quality, has both and save terminal electricity consumption Consider.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (7)

1. a kind of apparatus for processing audio, it is applied to mobile terminal, which is characterized in that the apparatus for processing audio includes:
Identification module, for based on the type respond module in earphone, receiving institute when detecting that earphone is connect with mobile terminal The response message for stating type respond module feedback, to identify the headset type of the earphone;
First processing module for obtaining the chip type of each audio processing chip in mobile terminal, and enables in mobile terminal Chip type and the matched audio processing chip of the headset type, wherein the identification module further include:
Second detection unit, for when detecting that earphone is connect with mobile terminal, receiving and analyzing and the MIC of earphone electricity The electric signal with the headset type respective frequencies of the earphone of the radio-frequency generator feedback of road connection, obtains the electric signal Frequency;
Second recognition unit, for when the signal frequency is in the first predeterminated frequency section, determining that earphone is the first kind Type earphone;When the signal frequency is in the second predeterminated frequency section, determine that earphone is Second Type earphone.
2. apparatus for processing audio as described in claim 1, which is characterized in that the identification module includes:
First detection unit is gone here and there on channel circuit for when detecting that earphone is connect with mobile terminal, receiving and analyzing to play Gang mould intends the response message relevant to the response resistance of the earphone feedback of switch in parallel response resistance, obtains and the ear The resistance of channel parallel connection is put in machine sowing;
First recognition unit, for when the resistance is in the first preset resistive value section, determining that earphone is the first kind Earphone;When the resistance is in the second preset resistive value section, determine that earphone is Second Type earphone.
3. apparatus for processing audio as described in claim 1, which is characterized in that the apparatus for processing audio further include:
Judgment module, for judging whether the remaining capacity of mobile terminal is less than or equal to preset threshold;
Second processing module enables in mobile terminal if the remaining capacity for mobile terminal is less than or equal to preset threshold Chip type audio processing chip corresponding with current residual electricity, for handling audio data.
4. a kind of audio-frequency processing method, which is characterized in that the audio-frequency processing method includes:
When detecting that earphone is connect with mobile terminal, based on the type respond module in earphone, the type response mould is received The response message of block feedback, to identify the headset type of the earphone;
The chip type of each audio processing chip in mobile terminal is obtained, and enables chip type and the earphone in mobile terminal The audio processing chip of type matching, wherein it is described when detecting that earphone is connect with mobile terminal, based on the type in earphone Respond module receives the response message of the type respond module feedback, to identify the headset type of the earphone further include:
When detecting that earphone is connect with mobile terminal, receives and analyze and the generation of the high frequency of the MIC circuit connection of the earphone The electric signal with the headset type respective frequencies of the earphone of device feedback, obtains the frequency of the electric signal;
When the signal frequency is in the first predeterminated frequency section, determine that earphone is first kind earphone;When the telecommunications When number frequency is in the second predeterminated frequency section, determine that earphone is Second Type earphone.
5. audio-frequency processing method as claimed in claim 4, which is characterized in that described to detect that earphone is connect with mobile terminal When, based on the type respond module in earphone, the response message of the type respond module feedback is received, to identify the ear The headset type of machine includes:
When detecting that earphone is connect with mobile terminal, receives and analyze series connection analog switch parallel connection response on broadcasting channel circuit The response message relevant to the response resistance of the earphone feedback of resistance, obtains the electricity in parallel with earphone broadcasting channel Hinder resistance value;
When the resistance is in the first preset resistive value section, determine that earphone is first kind earphone;When the resistance hinders When value is in the second preset resistive value section, determine that earphone is Second Type earphone.
6. audio-frequency processing method as claimed in claim 4, which is characterized in that each audio processing core in the acquisition mobile terminal The chip type of piece, and enable in mobile terminal and wrapped after chip type and the matched audio processing chip of the headset type It includes:
Judge whether the remaining capacity of mobile terminal is less than or equal to preset threshold;
If the remaining capacity of mobile terminal is less than or equal to preset threshold, chip type and current residual in mobile terminal are enabled The corresponding audio processing chip of electricity, for handling audio data.
7. a kind of audio processing system, including apparatus for processing audio described in any one of claims 1 to 3, at the audio Reason device is built in mobile terminal;
The earphone and mobile terminal are attached by wired connection mode, when mobile terminal detects earphone access, sound Frequency processing device receives and analyzes the mark earphone class of the type respond module output based on the type respond module in earphone The response message of type show that headset type, apparatus for processing audio simultaneously enable audio processing chip corresponding with the headset type, For handling audio data.
CN201710111706.9A 2017-02-27 2017-02-27 Apparatus for processing audio, method and system Active CN106899908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710111706.9A CN106899908B (en) 2017-02-27 2017-02-27 Apparatus for processing audio, method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710111706.9A CN106899908B (en) 2017-02-27 2017-02-27 Apparatus for processing audio, method and system

Publications (2)

Publication Number Publication Date
CN106899908A CN106899908A (en) 2017-06-27
CN106899908B true CN106899908B (en) 2019-06-25

Family

ID=59185758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710111706.9A Active CN106899908B (en) 2017-02-27 2017-02-27 Apparatus for processing audio, method and system

Country Status (1)

Country Link
CN (1) CN106899908B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3706685A4 (en) * 2017-11-07 2021-08-11 3M Innovative Properties Company REPLACEABLE SOUND ATTENUATION DEVICE DETECTION
CN109495834B (en) * 2019-01-07 2024-07-30 歌尔科技有限公司 Earphone testing method and system, earphone and storage medium
CN111736794A (en) * 2019-03-22 2020-10-02 北京骑胜科技有限公司 Method, vehicle and computer readable medium for playing sound
CN117597902A (en) * 2022-06-16 2024-02-23 北京小米移动软件有限公司 Audio processing systems, methods, electronic devices and storage media
CN117640599A (en) * 2022-08-19 2024-03-01 华为云计算技术有限公司 Audio data processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179871A (en) * 2006-11-10 2008-05-14 鸿富锦精密工业(深圳)有限公司 Headphones and audio playback devices
CN103581802A (en) * 2013-11-15 2014-02-12 惠州Tcl移动通信有限公司 Earphone power self-adaption circuit and mobile terminal
CN104602154A (en) * 2015-01-07 2015-05-06 深圳市中兴移动通信有限公司 Full impedance headset output method, device and terminal
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
CN104954949A (en) * 2015-06-18 2015-09-30 张尚国 Smart headphones capable of automatically adjusting output signal according to acquired signal and control method
CN205155629U (en) * 2015-11-23 2016-04-13 安徽恒利机电科技有限公司 Novel explosion -proof LED mine lamp head
CN105807911A (en) * 2014-12-30 2016-07-27 环达电脑(上海)有限公司 Automatic earphone recognition device and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9668076B2 (en) * 2011-06-21 2017-05-30 Apple Inc. Microphone headset failure detecting and reporting

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179871A (en) * 2006-11-10 2008-05-14 鸿富锦精密工业(深圳)有限公司 Headphones and audio playback devices
CN103581802A (en) * 2013-11-15 2014-02-12 惠州Tcl移动通信有限公司 Earphone power self-adaption circuit and mobile terminal
CN105807911A (en) * 2014-12-30 2016-07-27 环达电脑(上海)有限公司 Automatic earphone recognition device and method
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
CN104602154A (en) * 2015-01-07 2015-05-06 深圳市中兴移动通信有限公司 Full impedance headset output method, device and terminal
CN104954949A (en) * 2015-06-18 2015-09-30 张尚国 Smart headphones capable of automatically adjusting output signal according to acquired signal and control method
CN205155629U (en) * 2015-11-23 2016-04-13 安徽恒利机电科技有限公司 Novel explosion -proof LED mine lamp head

Also Published As

Publication number Publication date
CN106899908A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
CN104967744B (en) Adjust the method and device of terminal parameter
CN105611631B (en) Mobile phone radio frequency resource allocation methods and device
CN105357367B (en) Recognition by pressing keys device and method based on pressure sensor
CN106899908B (en) Apparatus for processing audio, method and system
CN104850799B (en) The method and mobile terminal of a kind of data in hiding mobile terminal
CN107071760A (en) Data service automatic switching method and mobile terminal
CN104915111B (en) terminal operation control method and device
CN104850343B (en) Start the method and apparatus of one-hand operating format
CN104883430A (en) Mobile terminal, processing method of unread superscripts of mobile terminal, and processing device of unread superscripts of mobile terminal
CN106488376A (en) The method and apparatus that a kind of audio components to mobile terminal carry out fault diagnosis
CN105306631B (en) A kind of antenna and mobile terminal
CN104866136B (en) A kind of method and device of determining terminal operating mode
CN104796956A (en) Mobile terminal network switching method and mobile terminal
CN104898975B (en) Method for controlling mobile terminal and mobile terminal
CN105262883A (en) Mobile terminal and volume adjusting method thereof
CN105100477B (en) Terminal notifying device and method
CN104636043A (en) Virtual key display method and virtual key display device
CN107295140A (en) A kind of detection method of earphone, device and terminal
CN104968027A (en) Wi-Fi control method and apparatus
CN105100421A (en) Call control method and call control device
CN106101455A (en) Page jump management method, device and terminal
CN104810033B (en) Audio frequency playing method and device
CN107241497A (en) Mobile terminal and loudness output adjusting method
CN105100408B (en) A kind of method and apparatus controlling mobile terminal
CN105049610B (en) A kind of input method and terminal

Legal Events

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