CN107277667B - A kind of audio frequency signal output and terminal of terminal - Google Patents

A kind of audio frequency signal output and terminal of terminal Download PDF

Info

Publication number
CN107277667B
CN107277667B CN201710623035.4A CN201710623035A CN107277667B CN 107277667 B CN107277667 B CN 107277667B CN 201710623035 A CN201710623035 A CN 201710623035A CN 107277667 B CN107277667 B CN 107277667B
Authority
CN
China
Prior art keywords
earphone
audio signal
headphones
terminal
impedance value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710623035.4A
Other languages
Chinese (zh)
Other versions
CN107277667A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710623035.4A priority Critical patent/CN107277667B/en
Publication of CN107277667A publication Critical patent/CN107277667A/en
Application granted granted Critical
Publication of CN107277667B publication Critical patent/CN107277667B/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
    • 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
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The present invention provides a kind of audio frequency signal output of terminal and terminals, terminal includes at least two earphone interfaces or connect at least two earphone interfaces, by detecting the earphone quantity connecting with earphone interface, when earphone quantity is greater than a pair, the impedance value of each set of headphones can be obtained respectively, when determining the impedance value difference of earphone, monophonic audio signal is exported to every set of headphones, so that in more set of headphones insertion terminal, when impedance value difference between earphone, monophonic audio signal can be exported to each set of headphones, when being exported using monophonic audio signal, the audio signal of every set of headphones output, for a user, adjustable volume is identical, user can also voluntarily adjust simultaneously, meet user to the individual demand of volume.

Description

A kind of audio frequency signal output and terminal of terminal
Technical field
The present invention relates to Audiotechnica fields, more particularly to the audio frequency signal output and terminal of a kind of terminal.
Background technique
With the fast development of the terminals industry such as mobile phone, requirement of the user to terminals such as mobile phones is higher and higher, wherein plays The video/audio functions such as music, video are the critical functions of terminal, in some cases, it is desirable that terminal can support simultaneously multiple earphones same When output audio signal.
In the prior art, the terminal for supporting multiple earphones, it is only simple for the audio signal of multiple earphone inputs of insertion Single carrying out to earphone is in parallel, and the earphone of different impedances is simultaneously in use, the volume difference played back, is unfavorable for improving User experience.
Summary of the invention
The present invention provides the audio frequency signal output and terminal of a kind of terminal, to solve existing terminal output audio Volume different problems when the earphone of different impedances in the presence of signal process uses simultaneously.
In order to solve the above-mentioned technical problem, the invention is realized in this way:A kind of audio frequency signal output of terminal, institute Stating terminal includes at least two earphone interfaces, or is connect at least two earphone interfaces;The method includes:
Detect the earphone quantity connecting at least two earphone interface;
When the earphone quantity is greater than a pair, the impedance value of each set of headphones is obtained respectively;
When the impedance value difference, monophonic audio signal is exported to each set of headphones.
To solve the above-mentioned problems, the invention also discloses a kind of terminal, the terminal includes at least two earphone interfaces, Or it is connect at least two earphone interfaces;The terminal further includes:
Detection module, for detecting the earphone quantity connecting at least two earphone interface;
Impedance obtains module, for obtaining the impedance value of each set of headphones respectively when the earphone quantity is greater than a pair;
First audio signal output module, for exporting monophonic sound to each set of headphones when the impedance value difference Frequency signal.
To solve the above-mentioned problems, it the invention also discloses a kind of terminal, including processor, memory and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor The step of existing above-mentioned audio frequency signal output.
Compared with prior art, the present invention includes the following advantages:
In embodiments of the present invention, terminal includes at least two earphone interfaces or connect at least two earphone interfaces, By detecting the earphone quantity connecting with earphone interface, when earphone quantity is greater than a pair, each set of headphones can be obtained respectively Impedance value, when determine earphone impedance value difference when, to every set of headphones export monophonic audio signal so that for more Set of headphones is inserted into terminal, when impedance value difference between earphone, can be exported monophonic audio signal to each set of headphones, be adopted When being exported with monophonic audio signal, the audio signal of every set of headphones output, for a user, volume is adjustable to be It is identical, while user can also voluntarily adjust, and meet user to the individual demand of volume.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the audio frequency signal output of terminal of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of the audio frequency signal output of terminal of the embodiment of the present invention two;
Fig. 3 is the earphone impedance value of the embodiment of the present invention two and the incidence relation table schematic diagram of register value;
Fig. 4 is the audio signal input and output terminal connection schematic diagram of the embodiment of the present invention two;
Fig. 5 is a kind of audio input interface A ' and the first earphone interface and the second earphone interface of the embodiment of the present invention two One of the connection relationship diagram of audio signal input and output terminal;
Fig. 6 is a kind of one of terminal audio frequency output circuit connection relationship diagram of the embodiment of the present invention two;
Fig. 7 is a kind of audio input interface A ' and the first earphone interface and the second earphone interface of the embodiment of the present invention two The two of the connection relationship diagram of audio signal input and output terminal;
Fig. 8 is the two of a kind of terminal audio frequency output circuit connection relationship diagram of the embodiment of the present invention two;
Fig. 9 is that the audio signal input of a kind of audio input interface A ' and the first earphone interface of the embodiment of the present invention two are defeated The connection relationship diagram of terminal out;
Figure 10 is a kind of structural block diagram of terminal of the embodiment of the present invention three;
Figure 11 is a kind of block diagram of mobile terminal of the embodiment of the present invention five;
A kind of structural schematic diagram of mobile terminal of Figure 12 embodiment of the present invention six.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the audio frequency signal output of terminal of the embodiment of the present invention one is shown, The terminal includes at least two earphone interfaces, or is connect at least two earphone interfaces, and the method for the embodiment of the present invention can be with Include the following steps:
Step 101:Detect the earphone quantity connecting at least two earphone interface;
Step 102:When the earphone quantity is greater than a pair, the impedance value of each set of headphones is obtained respectively;
Step 103:When the impedance value difference, monophonic audio signal is exported to each set of headphones.
In embodiments of the present invention, terminal includes at least two earphone interfaces or connect at least two earphone interfaces, By detecting the earphone quantity connecting with earphone interface, when earphone quantity is greater than a pair, each set of headphones can be obtained respectively Impedance value, when determine earphone impedance value difference when, to every set of headphones export monophonic audio signal so that for more Set of headphones is inserted into terminal, when impedance value difference between earphone, can be exported monophonic audio signal to each set of headphones, be adopted When being exported with monophonic audio signal, the audio signal of every set of headphones output, for a user, volume is adjustable to be It is identical, while user can also voluntarily adjust, and meet user to the individual demand of volume.
Embodiment two
Referring to Fig. 2 shows the embodiment of the present invention two a kind of terminal audio frequency signal output step flow chart, The terminal includes at least two earphone interfaces, or is connect at least two earphone interfaces, and the method for the embodiment of the present invention can be with Include the following steps:
Step 201:Detect the earphone quantity connecting at least two earphone interface;
Specifically, terminal may include mobile phone, MP3, MP4, MP5, plate, navigator, AR (Augmented Reality, Augmented reality)/VR (Virtual Reality, virtual reality) etc. has the electronic product for playing the video/audio functions such as music, video Equipment, the terminal may include at least two earphone interfaces, although in itself without at least two earphone interfaces, which can To be connect at least two earphone interfaces, so that the terminal can be inserted at least a set of headphones, earphone interface and can be existing The standard earphones interface such as 3.5mm, 2.5mm is also possible to the earphone special interface of manufacturer terminal designed, designed.
In embodiments of the present invention, when terminal detects earphone insertion, it can detecte and connect at least two earphone The earphone quantity of mouth connection.
In the concrete realization, when earphone is inserted into, what earphone was inserted into is the earphone socket of terminal or connect with terminal Earphone socket, when earphone insertion, the head in earphone terminal is in contact with the detection terminal inside earphone socket conducting first, At this time terminal can be detected earphone insertion, when earphone complete be inserted into after, terminal can detecte at this time at least two ear The earphone quantity of machine interface connection.
As an example, when a set of headphones is inserted into, after earphone insertion, terminal, which is detected, to be connect with earphone interface Earphone quantity is 1, after certain interval of time, and has set of headphones insertion, terminal can detecte at this time connect with earphone interface Earphone quantity be 2, it is, of course, also possible to two set of headphones are simultaneously when being inserted into, after the insertion of two set of headphones, terminal may also detect that with The earphone quantity of earphone interface connection is 2.
Step 202:When the earphone quantity is greater than a pair, the impedance value of each set of headphones is obtained respectively;
In embodiments of the present invention, when terminal detect insertion earphone quantity be greater than one it is secondary when, that is, insert two it is secondary or Earphones more than two pairs can obtain the impedance value of each set of headphones of insertion respectively at this time, wherein the impedance value Z of earphone is For characterize earphone coil resistance R, inductance L and existing capacitor C to the inhibition size of audio signal, usually Z=R+i (ω L-1/ ω C), wherein ω is the frequency of audio signal, and i is imaginary part, it is seen then that for the audio signal of different frequency, Impedance value Z's is of different sizes, can usually be chosen at rated impedance value of the impedance value under a certain fixed frequency as earphone, example As 1000Hz audio signal under rated impedance value of the impedance as earphone, the impedance value for the earphone that the present invention obtains can be The rated impedance value of earphone.
In a preferred embodiment of the present invention, step 202 may include following sub-step:
Sub-step S11, respectively to the earphone input current signal;
In embodiments of the present invention, when terminal is inserted with more set of headphones, input current letter can be distinguished to more set of headphones Number I.
Sub-step S12 detects the voltage signal at the earphone both ends respectively;
In embodiments of the present invention, after input current signal I, the voltage signal U at test earphone both ends can be distinguished.
Sub-step S13 calculates the voltage signal of every set of headphones and the ratio of current signal, obtains the impedance of the earphone Value.
In embodiments of the present invention, the voltage signal of every set of headphones and the ratio of current signal, i.e. Z=U/ can be calculated I obtains the impedance value of the earphone.
Step 203:When the impedance value difference, monophonic audio signal is exported to each set of headphones.
In embodiments of the present invention, after obtaining the impedance value of each set of headphones, it can be determined that the impedance value of every set of headphones It is whether identical, when impedance value difference, monophonic audio signal can be exported to each set of headphones, in order to defeated to every set of headphones Audio signal out is adjusted.
In one preferred embodiment of the invention, step 203 may include following sub-step:
Sub-step S21 calculates the deviation or relative deviation of the impedance value;
In embodiments of the present invention, the deviation or relative deviation of the impedance value between every set of headphones can be calculated.
For example, common earphone impedance value has 16 ohm, 27 ohm, 32 ohm, 48 ohm, 64 ohm, it is assumed that insertion The impedance value Z1 of first set of headphones is 16 ohm, and the impedance value Z2 of the second set of headphones of insertion is 32 ohm, then between the two Z2-Z1=16 ohm of deviation, relative deviation (Z2-Z1)/Z1=100%.
Sub-step S22, if the deviation or relative deviation not within a preset range, determine that the impedance value is different, to Each set of headphones exports monophonic audio signal.
In embodiments of the present invention, a preset range can be preset, insertion is determined according to the preset range Whether the impedance value of every set of headphones is identical.
The example for continuing sub-step S21, for deviation, preset range can be 5 ohm, since deviation between the two is 16 ohm, then determine that the first set of headphones is different with the impedance value of the second set of headphones;For relative deviation, preset range can be 10%, since the relative deviation of the two is 100%, then determine that the first set of headphones is different with the impedance value of the second set of headphones.
For another example, it is assumed that the impedance value that the earphone of the first secondary insertion obtains is 16 ohm, what the earphone of the second secondary insertion obtained Impedance value is 15 ohm, according to the preset range of above-mentioned example, then can be determined that the impedance of the first set of headphones and the second set of headphones Be worth it is identical, in this way setting preset range purpose be to fully take into account:Actually get that impedance value is 15 ohm Two set of headphones, the rated impedance value of the mark on product may be exactly 16 ohm, can make to determine result more in this way Meet the actual conditions of earphone, improves the whether identical accuracy of earphone impedance value for determining insertion.
Correspondingly, if the deviation or relative deviation within a preset range, determine that the impedance value is identical.
In one preferred embodiment of the invention, sub-step S22 may include following sub-step:
Sub-step S221 obtains the corresponding yield value of impedance value of each set of headphones in preset database, In, the database includes the incidence relation of a variety of impedance values with corresponding yield value;
In embodiments of the present invention, database can be preset, in the database include a variety of different impedance values with The incidence relation of corresponding yield value, i.e., different impedance values can correspond to corresponding yield value in incidence relation, this Incidence relation can make, when exporting to the same audio signal, when using the earphone of different impedance values, to every auricular appendage Machine, selection carry out gain control with the yield value that the earphone impedance value matches, so that the earphone of different impedances is same in output It can guarantee that volume is consistent when audio signal.
As an example, the size of the yield value of power amplifier can be by the register value in register come body Existing, which is a string of binary digits, such as 01110111, which represents the gain uniquely determined Value, the incidence relation table schematic diagram of earphone impedance value and register value referring to Fig. 3 shown in, each impedance value be corresponding with and Its corresponding register value namely each impedance value are corresponding with its corresponding yield value.
It should be noted that the corresponding relationship of impedance value and register value in Fig. 3 is one-to-one relationship, the present invention Embodiment is not limited to this, and for impedance value, the impedance value for belonging to a certain range can correspond to an identical deposit simultaneously Device value, such as the impedance value that impedance value range is 15-17 ohm, corresponding register value can be 01110111.
Sub-step S222 exports the monophonic audio after gain process to each set of headphones according to the yield value Signal.
In embodiments of the present invention, after getting the corresponding yield value of impedance value of each set of headphones, to each set of headphones Output is by yield value corresponding with the earphone impedance value treated monophonic audio signal.
As an example, it is connected with terminal and two earphone interfaces (first earphone interface B, the second earphone interface C), the Inserted with the first set of headphones, the second earphone interface is exported inserted with the second set of headphones to the list of the first set of headphones one earphone interface Channel audio signal is left channel audio signal, and exporting to the monophonic audio signal of the second set of headphones is right channel audio signal For, to terminal be how to monophonic audio signal of each set of headphones output after gain process and terminal and ear The connection relationship of machine interface is illustrated:
There is terminal an audio output interface A, output interface A to have four signal output ends of audio signal output Son:Microphone output terminal MIC, ground signalling output terminal GND, L channel output terminal L, right channel output terminal R, two Earphone interface has common audio input interface A ', corresponding four letters with audio signal input of audio input interface A ' Number input terminal:Microphone input terminal MIC, ground signalling input terminal GND, L channel input terminal L, right channel input terminal Sub- R, the audio signal input and output terminal connection schematic diagram referring to shown in Fig. 4, audio output interface A and audio input interface A ' Audio signal input/output terminals connect one to one.
Meanwhile first earphone interface B and the second earphone interface C also have microphone output terminal MIC, ground signalling output Terminal GND, L channel output terminal L, right channel output terminal R, when exporting monophonic audio signal to each earphone, reference The audio signal input and output terminal of a kind of audio input interface A ' and the first earphone interface and the second earphone interface shown in Fig. 5 One of connection relationship diagram, the microphone input terminal MIC of audio input interface A ' and the first earphone interface B and the second ear The microphone output terminal MIC of machine interface C is connected, and ground signalling input terminal GND connects with the first earphone interface B and the second earphone The ground signalling output terminal GND of mouthful C is connected, the L channel input terminal L L channel output end with the first earphone interface B respectively Sub- L is connected with right channel output terminal R, right channel input terminal R respectively with the L channel output terminal L of the second earphone interface C It is connected with right channel output terminal R, so that terminal can export monophonic audio signal to every set of headphones.
A kind of one of terminal audio frequency output circuit connection relationship diagram of the embodiment of the present invention two referring to shown in Fig. 6, At this time due to the audio signal of the first set of headphones from terminal L channel L output channel left channel audio signal, second The audio signal of width earphone can be with from the right channel audio signal of the right channel R output channel of terminal, then power amplifier 1 Gain control is carried out to left channel audio signal using the first yield value corresponding with the impedance value of the first set of headphones, is obtained through increasing Benefit treated first object audio signal, then by the first object audio signal export to the L channel of the first set of headphones with And right channel;Power amplifier 2 can be using the second yield value corresponding with the impedance value of the second width earphone to right audio channel Signal carries out gain control, the second target audio signal after gain process is obtained, then by second target audio signal It exports to the L channel and right channel of the second width earphone.
It should be noted that the process of the above-mentioned yield value adjustment to power amplifier 1 and power amplifier 2 is that basis obtains The different impedance values of earphone are taken to carry out adjust automatically, the purpose of adjustment is that the earphone of different impedances is allowed to obtain phase unisonance The audio signal output of size is measured, certainly, if user is dissatisfied to the result of adjust automatically, power can also be put manually The yield value of big device 1 and power amplifier 2 is adjusted, this adjustment process is equivalent to user can be individually to multiple earphones Volume is adjusted separately, and when exporting hence for multiple earpiece audios, meets the individual demand of user.
As an example, the control of the gain adjustment of power amplifier 1 and power amplifier 2 can distinguish peripheral hardware in terminal Button 1 and adjustment button 2 are adjusted, user can be by operation adjustment button 1 or adjustment button 2 individually to the increasing of power amplifier Beneficial value is adjusted.
Step 204:When the earphone quantity is a pair or the identical impedance value, then stereo audio signal is exported extremely The earphone.
In embodiments of the present invention, when the earphone impedance value of insertion is identical, then terminal exports stereo audio signal extremely Each set of headphones.
In embodiments of the present invention, the identical method of impedance is judged referring to sub-step S22, and the embodiment of the present invention is not made herein It repeats.
As an example, it is connected with terminal and two earphone interfaces (first earphone interface B, the second earphone interface C), the One earphone interface is inserted with the first set of headphones, how is to every to terminal for the second earphone interface is inserted with the second set of headphones One set of headphones output stereo audio signal and terminal and the connection relationship of earphone interface be illustrated:
There is terminal an audio output interface A, output interface A to have four signal output ends of audio signal output Son:Microphone output terminal MIC, ground signalling output terminal GND, L channel output terminal L, right channel output terminal R, two Earphone interface has common audio input interface A ', corresponding four letters with audio signal input of audio input interface A ' Number input terminal:Microphone input terminal MIC, ground signalling input terminal GND, L channel input terminal L, right channel input terminal Sub- R, the audio signal input and output terminal connection schematic diagram referring to shown in Fig. 4, audio output interface A and audio input interface A ' Audio signal input/output terminals connect one to one.
Meanwhile first earphone interface B and the second earphone interface C also have microphone output terminal MIC, ground signalling output Terminal GND, L channel output terminal L, right channel output terminal R, when using stereo mode output audio signal, referring to figure The audio signal input and output terminal of a kind of audio input interface A ' and the first earphone interface and the second earphone interface shown in 7 The two of connection relationship diagram, the microphone input terminal MIC of audio input interface A ' and the first earphone interface B and the second earphone The microphone output terminal MIC of interface C is connected, ground signalling input terminal GND and the first earphone interface B and the second earphone interface The ground signalling output terminal GND of C is connected, a left side of L channel input terminal L and the first earphone interface B and the second earphone interface C Sound channel output terminal L is connected, the right channel output end of right channel input terminal R and the first earphone interface B and the second earphone interface C Sub- R is connected, so that terminal can export stereo audio signal to each earphone.
Two of a kind of terminal audio frequency output circuit connection relationship diagram referring to shown in Fig. 8, at this time due to the first auricular appendage The audio signal of machine and the second set of headphones is respectively derived from left channel audio signal and the right side of the L channel L output channel of terminal The right channel audio signal of sound channel R output channel, then power amplifier 1 can use corresponding with the impedance value of the first set of headphones First yield value carries out gain control to left channel audio signal, obtains the first object audio signal after gain process, so The first object audio signal is exported to the L channel of the first set of headphones and the second set of headphones afterwards;Power amplifier 2 can be adopted Gain control is carried out to right channel audio signal with the second yield value corresponding with the impedance value of the second width earphone, is obtained through gain Then the second target audio signal that treated exports second target audio signal to the first set of headphones and the second width earphone Right channel.
In embodiments of the present invention, when earphone quantity is one secondary, then terminal still exports stereo audio signal to institute State earphone.
As an example, a kind of audio input interface A ' Yu the first ear of the embodiment of the present invention two referring to shown in Fig. 9 The connection relationship diagram of the audio signal input and output terminal of machine interface, the microphone input terminal of audio input interface A ' MIC is connected with the microphone output terminal MIC of the first earphone interface B, ground signalling input terminal GND and the first earphone interface B Ground signalling output terminal GND be connected, the L channel output terminal L phase of L channel input terminal L and the first earphone interface B Even, right channel input terminal R is connected with the right channel output terminal R of the first earphone interface B, the output end of the second earphone interface C It is sub then no connected, so that terminal can export stereo audio signal to the earphone for being inserted in the first earphone interface B.
The specific process for how exporting stereo audio signal is referred to description process above, and the embodiment of the present invention exists This is not repeated.
In embodiments of the present invention, terminal includes at least two earphone interfaces or connect at least two earphone interfaces, By detecting the earphone quantity connecting with earphone interface, when earphone quantity is greater than a pair, each set of headphones can be obtained respectively Impedance value, when determine earphone impedance value difference when, to every set of headphones export monophonic audio signal, when earphone quantity be one When the impedance value of pair or earphone is identical, then terminal exports stereo audio signal to earphone, so that for more set of headphones When being inserted into terminal, no matter whether impedance value between earphone is identical, the amplitude size of audio signal can be adjusted, so that often The audio signal of set of headphones output, for a user, volume can be identical, while user can also voluntarily adjust power The yield value of amplifier meets user to the individual demand of volume.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
Embodiment three
The structural block diagram of a kind of terminal shown in 0 referring to Fig.1, the terminal include at least two earphone interfaces, Huo Zheyu The connection of at least two earphone interfaces;The terminal further includes:
Detection module 301, the earphone quantity for being connect when detection at least two earphone interface;
Impedance obtains module 302, for obtaining the impedance of each set of headphones respectively when the earphone quantity is greater than a pair Value;
First audio signal output module 303, for exporting monophonic to each set of headphones when the impedance value difference Audio signal.
In one preferred embodiment of the invention, the equipment further includes:
Second audio signal output module is used for when the earphone quantity is a pair or the identical impedance value, then defeated Stereo audio signal is to the earphone out.
In one preferred embodiment of the invention, first audio signal output module includes:
Impedance value computational submodule, for calculating the deviation or relative deviation of the impedance value;
First audio signal output sub-module, if not within a preset range for the deviation or relative deviation, determining The impedance value is different, exports monophonic audio signal to each set of headphones.
In one preferred embodiment of the invention, when the earphone quantity is two secondary, wherein the monophonic of a set of headphones Audio signal is left channel audio signal, and the monophonic audio signal of another set of headphones is right channel audio signal.
In one preferred embodiment of the invention, the first audio signal output sub-module includes:
Yield value acquisition submodule, the impedance value for obtaining each set of headphones in preset database are corresponding Yield value, wherein the database includes the incidence relation of a variety of impedance values with corresponding yield value;
Second audio signal output sub-module, for passing through at gain to the output of each set of headphones according to the yield value Monophonic audio signal after reason.
Example IV
The embodiment of the invention also discloses a kind of terminal, including processor, memory and it is stored on the memory simultaneously The computer program that can be run on the processor realizes embodiment one when the computer program is executed by the processor The step of with audio frequency signal output described in embodiment two.
Embodiment five
Figure 11 is a kind of block diagram of mobile terminal of the embodiment of the present invention five.
Mobile terminal shown in Figure 11 includes:At least one processor 401, memory 402, at least one network interface 404, other users interface 403.Various components in mobile terminal 400 are coupled by bus system 405.It is understood that Bus system 405 is for realizing the connection communication between these components.Bus system 405 is also wrapped in addition to including data/address bus Include power bus, control bus and status signal bus in addition.But for the sake of clear explanation, various buses are all marked in Figure 12 For bus system 405.
Wherein, user interface 403 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 402 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 402 of the system and method for description of the embodiment of the present invention is intended to include but unlimited In the memory of these and any other suitable type.
In some embodiments, memory 402 stores following element, executable modules or data structures, or Their subset of person or their superset:Operating system 4021 and application program 4022.
Wherein, operating system 4021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 4022 includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 4022.
In embodiments of the present invention, by the program or instruction of calling memory 402 to store, specifically, can be application The program or instruction stored in program 4022, processor 401 is for detecting the earphone connecting at least two earphone interface Quantity;When the earphone quantity is greater than a pair, the impedance value of each set of headphones is obtained respectively;When the impedance value difference, Monophonic audio signal is exported to each set of headphones.
The method that the embodiments of the present invention disclose can be applied in processor 401, or be realized by processor 401. Processor 401 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing Device 401 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 402, and processor 401 reads the information in memory 402, and the step of the above method is completed in conjunction with its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for executing herein described function In member or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, processor 401 is also used to:When the earphone quantity is a pair or the identical impedance value, then export Stereo audio signal is to the earphone.
Optionally, processor 401 is also used to:Calculate the deviation or relative deviation of the impedance value;If the deviation or phase Not within a preset range to deviation, then determine that the impedance value is different, export monophonic audio signal to each set of headphones.
Optionally, processor 401 is also used to:The impedance value that each set of headphones is obtained in preset database is corresponding Yield value, wherein the database includes the incidence relation of a variety of impedance values with corresponding yield value;According to the gain Value exports the monophonic audio signal after gain process to each set of headphones.
Mobile terminal can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here not It repeats again.
Embodiment six
A kind of structural schematic diagram of mobile terminal of Figure 12 embodiment of the present invention six.Specifically, the mobile terminal in Figure 12 It can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
The mobile terminal of Figure 12 includes radio frequency (RadioFrequency, RF) circuit 510, memory 520, input unit 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (WirelessFidelity) module 580 and power supply 590.
Wherein, input unit 530 can be used for receiving the number or character information of user's input, and generation and mobile terminal User setting and function control related signal input.Specifically, in the embodiment of the present invention, which can be with Including touch panel 531.Touch panel 531, also referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user uses the operation of finger, stylus any suitable object or attachment on touch panel 531), and according to setting in advance Fixed formula drives corresponding attachment device.Optionally, touch panel 531 may include touch detecting apparatus and touch controller two A part.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then The processor 560 is given, and order that processor 560 is sent can be received and executed.Furthermore, it is possible to using resistance-type, electricity The multiple types such as appearance formula, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input unit 530 Can also include other input equipments 532, other input equipments 532 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 540 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal.Display unit 540 may include display panel 541, optionally, can use LCD or organic light emission The forms such as diode (OrganicLight-EmittingDiode, OLED) configure display panel 541.
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 560 is sent to determine the type of touch event, is followed by subsequent processing device 560 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 560 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone A part by running or execute the software program and/or module that are stored in first memory 521, and is called and is stored in Data in second memory 522 execute the various functions and processing data of mobile terminal, to carry out to mobile terminal whole Monitoring.Optionally, processor 560 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 521 in software program and/or module and/ Or the data in the second memory 522, processor 560 is for detecting the earphone number connecting at least two earphone interface Amount;When the earphone quantity is greater than a pair, the impedance value of each set of headphones is obtained respectively;When the impedance value difference, to Each set of headphones exports monophonic audio signal.
Processor 560 is also used to:When the earphone quantity is a pair or the identical impedance value, then stereo sound is exported Frequency signal is to the earphone.
Processor 560 is also used to:Calculate the deviation or relative deviation of the impedance value;If the deviation or relative deviation are not Within a preset range, then determine that the impedance value is different, export monophonic audio signal to each set of headphones.
Processor 560 is also used to:The corresponding gain of impedance value of each set of headphones is obtained in preset database Value, wherein the database includes the incidence relation of a variety of impedance values with corresponding yield value;According to the yield value, to every One set of headphones exports the monophonic audio signal after gain process.
For mobile terminal embodiment, since it is basically similar to the method embodiment, so be described relatively simple, The relevent part can refer to the partial explaination of embodiments of method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various to can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (9)

1. a kind of audio frequency signal output of terminal, which is characterized in that the terminal includes at least two earphone interfaces, or It is connect at least two earphone interfaces;The method includes:
Detect the earphone quantity connecting at least two earphone interface;
When the earphone quantity is greater than a pair, the impedance value of each set of headphones is obtained respectively;
When the impedance value difference, monophonic audio signal is exported to each set of headphones;
Wherein, described when the impedance value difference, include to the step of each set of headphones output monophonic audio signal:
Calculate the deviation or relative deviation of the impedance value;
If the deviation or relative deviation within a preset range, do not determine that the impedance value is different, export to each set of headphones Monophonic audio signal.
2. the method according to claim 1, wherein the method also includes:
When the earphone quantity is a pair or the identical impedance value, then stereo audio signal is exported to the earphone.
3. the method according to claim 1, wherein when the earphone quantity is two secondary, wherein a set of headphones Monophonic audio signal is left channel audio signal, and the monophonic audio signal of another set of headphones is right channel audio signal.
4. the method according to claim 1, wherein described export monophonic audio signal to each set of headphones Step includes:
The corresponding yield value of impedance value of each set of headphones is obtained in preset database, wherein the database packet Include the incidence relation of a variety of impedance values with corresponding yield value;
According to the yield value, the monophonic audio signal after gain process is exported to each set of headphones.
5. a kind of terminal, which is characterized in that the terminal include at least two earphone interfaces, or at least two earphone interfaces Connection;The terminal further includes:
Detection module, for detecting the earphone quantity connecting at least two earphone interface;
Impedance obtains module, for obtaining the impedance value of each set of headphones respectively when the earphone quantity is greater than a pair;
First audio signal output module, for being believed to each set of headphones output monophonic audio when the impedance value difference Number;
Wherein, first audio signal output module includes:
Impedance value computational submodule, for calculating the deviation or relative deviation of the impedance value;
First audio signal output sub-module, if not within a preset range for the deviation or relative deviation, determine described in Impedance value is different, exports monophonic audio signal to each set of headphones.
6. terminal according to claim 5, which is characterized in that the terminal further includes:
Second audio signal output module, for when the earphone quantity is a pair or the identical impedance value, then output to be vertical Body sound audio signals are to the earphone.
7. terminal according to claim 5, which is characterized in that when the earphone quantity is two secondary, wherein a set of headphones Monophonic audio signal is left channel audio signal, and the monophonic audio signal of another set of headphones is right channel audio signal.
8. terminal according to claim 5, which is characterized in that the first audio signal output sub-module includes:
Yield value acquisition submodule, for obtaining the corresponding gain of impedance value of each set of headphones in preset database Value, wherein the database includes the incidence relation of a variety of impedance values with corresponding yield value;
Second audio signal output sub-module, for being exported after gain process to each set of headphones according to the yield value Monophonic audio signal.
9. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory and can be in the processing The computer program run on device is realized when the computer program is executed by the processor as any in Claims 1-4 The step of item audio frequency signal output.
CN201710623035.4A 2017-07-27 2017-07-27 A kind of audio frequency signal output and terminal of terminal Active CN107277667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710623035.4A CN107277667B (en) 2017-07-27 2017-07-27 A kind of audio frequency signal output and terminal of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710623035.4A CN107277667B (en) 2017-07-27 2017-07-27 A kind of audio frequency signal output and terminal of terminal

Publications (2)

Publication Number Publication Date
CN107277667A CN107277667A (en) 2017-10-20
CN107277667B true CN107277667B (en) 2018-11-30

Family

ID=60078787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710623035.4A Active CN107277667B (en) 2017-07-27 2017-07-27 A kind of audio frequency signal output and terminal of terminal

Country Status (1)

Country Link
CN (1) CN107277667B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109874097B (en) * 2017-12-05 2020-10-30 炬芯科技股份有限公司 Active noise reduction earphone and test system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2056300U (en) * 1989-10-23 1990-04-18 许春刚 Earphone socket connector for telecommunication shunt circuit
EP1715718A2 (en) * 2005-04-19 2006-10-25 Samsung Electronics Co., Ltd. Wireless stereo headset
CN206251317U (en) * 2016-12-26 2017-06-13 周述瑶 Audio sharing means and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2056300U (en) * 1989-10-23 1990-04-18 许春刚 Earphone socket connector for telecommunication shunt circuit
EP1715718A2 (en) * 2005-04-19 2006-10-25 Samsung Electronics Co., Ltd. Wireless stereo headset
CN206251317U (en) * 2016-12-26 2017-06-13 周述瑶 Audio sharing means and mobile terminal

Also Published As

Publication number Publication date
CN107277667A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN105827853B (en) A kind of output control method and mobile terminal of the outer playback amount of terminal
CN106060719A (en) Terminal audio output control method and terminal
CN106205580B (en) A kind of audio data processing method and terminal
CN106020612B (en) A kind of data display method and mobile terminal
CN106060710B (en) A kind of audio-frequency inputting method and electronic equipment
CN106714038B (en) A kind of control method and mobile terminal of sound intensity
CN106817656A (en) A kind of outer method and mobile terminal for putting sound system audio calibration
CN109639367A (en) The method of adjustment and Related product of electromagnetic interference
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN106375576B (en) A kind of voice-frequency channel control method and mobile terminal
CN106412671B (en) A kind of video broadcasting method and mobile terminal
CN106068009A (en) Method and the electronic installation of calibration is put outside speaker
CN107357484A (en) One kind prompting mark adding method, terminal and computer-readable recording medium
CN106921904A (en) The sound quality adjusting method and terminal of a kind of earphone
CN107277667B (en) A kind of audio frequency signal output and terminal of terminal
CN104301824B (en) Line traffic control equipment, controller, method and device
CN108271093A (en) The processing method and mobile terminal of a kind of access device
CN108268395A (en) A kind of method and mobile terminal of data communication
CN106160760B (en) A kind of harmonic suppressing method and mobile terminal of cyclical signal
CN107547987B (en) A kind of effect adjusting method and mobile terminal
CN107257406B (en) A kind of method and terminal to charge and audio data is handled
CN106992759B (en) A kind of adjustment method and mobile terminal of power amplifier
CN108268397A (en) The processing method and mobile terminal of a kind of access device
CN106790768A (en) A kind of dns server method to set up and mobile terminal
CN107493558B (en) A kind of voice signal control method and mobile 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