CN107277667A - The audio frequency signal output and terminal of a kind of terminal - Google Patents

The audio frequency signal output and terminal of a kind of terminal Download PDF

Info

Publication number
CN107277667A
CN107277667A CN201710623035.4A CN201710623035A CN107277667A CN 107277667 A CN107277667 A CN 107277667A CN 201710623035 A CN201710623035 A CN 201710623035A CN 107277667 A CN107277667 A CN 107277667A
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.)
Granted
Application number
CN201710623035.4A
Other languages
Chinese (zh)
Other versions
CN107277667B (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 invention provides a kind of audio frequency signal output of terminal and terminal, terminal at least includes two earphone interfaces or is connected with least two earphone interfaces, by detecting the earphone quantity being connected with earphone interface, when earphone quantity is more than a pair, the impedance value of each set of headphones can be obtained respectively, when the impedance value for judging earphone is different, monophonic audio signal is exported to every set of headphones, so that being inserted for many set of headphones in terminal, when impedance value between earphone is different, monophonic audio signal can be exported to each set of headphones, when being exported using monophonic audio signal, the audio signal exported per set of headphones, for a user, volume can be adjusted to identical, user can also voluntarily adjust simultaneously, meet individual demand of the user to volume.

Description

The audio frequency signal output and terminal of a kind of terminal
Technical field
The present invention relates to Audiotechnica field, the audio frequency signal output and terminal of more particularly to a kind of terminal.
Background technology
With the fast development of the terminal industry such as mobile phone, requirement more and more higher of the user to terminals such as mobile phones, wherein, play The video/audio functions such as music, video are the critical functions of terminal, in some cases, it is desirable to which terminal can support that multiple earphones are same simultaneously When exports audio signal.
In the prior art, the terminal of multiple earphones is supported, for the audio signal of multiple earphone inputs of insertion, simply letter Single being carried 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 Consumer's Experience.
The content 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 The problem of volume is different the earphone of different impedances in the presence of signal process is used simultaneously when.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of audio frequency signal output of terminal, institute Stating terminal includes at least two earphone interfaces, or is connected with least two earphone interfaces;Methods described includes:
Detect the earphone quantity being connected with least two earphone interface;
When the earphone quantity is more than a pair, the impedance value of each set of headphones is obtained respectively;
When the impedance value is different, monophonic audio signal is exported to each set of headphones.
In order to solve the above problems, the invention also discloses a kind of terminal, the terminal includes at least two earphone interfaces, Or be connected with least two earphone interfaces;The terminal also includes:
Detection module, for detecting the earphone quantity being connected with least two earphone interface;
Impedance acquisition module, for when the earphone quantity is more than a pair, the impedance value of each set of headphones to be obtained respectively;
First audio signal output module, for when the impedance value is different, monophonic sound to be exported to each set of headphones Frequency signal.
In order to solve the above problems, the invention also discloses a kind of terminal, including processor, memory and it is stored in described On memory and the computer program that can run on the processor, the computer program is by real during the computing device The step of existing above-mentioned audio frequency signal output.
Compared with prior art, the present invention includes advantages below:
In embodiments of the present invention, terminal at least includes two earphone interfaces or is connected with least two earphone interfaces, By detecting the earphone quantity being connected with earphone interface, when earphone quantity is more than a pair, each set of headphones can be obtained respectively Impedance value, when the impedance value for judging earphone is different, monophonic audio signal is exported to every set of headphones, so that for many In set of headphones insertion terminal, when the impedance value between earphone is different, monophonic audio signal can be exported to each set of headphones, adopted When being exported with monophonic audio signal, the audio signal exported per set of headphones, for a user, volume can be adjusted to It is identical, while user can also voluntarily adjust, meet individual demand of the user to volume.
Brief description of the drawings
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 form schematic diagram of register value;
Fig. 4 is the audio signal input and output terminal connection 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 annexation schematic diagram of audio signal input and output terminal;
Fig. 6 is a kind of one of terminal audio frequency output circuit annexation schematic 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 annexation schematic diagram of audio signal input and output terminal;
Fig. 8 is the two of a kind of terminal audio frequency output circuit annexation schematic diagram of the embodiment of the present invention two;
The audio signal input that Fig. 9 is a kind of audio input interface A ' and the first earphone interface of the embodiment of the present invention two is defeated Go out the annexation schematic diagram of terminal;
Figure 10 is a kind of structured flowchart 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 representation of mobile terminal of Figure 12 embodiment of the present invention six.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
Embodiment one
Reference picture 1, shows a kind of step flow chart of the audio frequency signal output of terminal of the embodiment of the present invention one, The terminal includes at least two earphone interfaces, or is connected with least two earphone interfaces, and the method for the embodiment of the present invention can be with Comprise the following steps:
Step 101:Detect the earphone quantity being connected with least two earphone interface;
Step 102:When the earphone quantity is more than a pair, the impedance value of each set of headphones is obtained respectively;
Step 103:When the impedance value is different, monophonic audio signal is exported to each set of headphones.
In embodiments of the present invention, terminal at least includes two earphone interfaces or is connected with least two earphone interfaces, By detecting the earphone quantity being connected with earphone interface, when earphone quantity is more than a pair, each set of headphones can be obtained respectively Impedance value, when the impedance value for judging earphone is different, monophonic audio signal is exported to every set of headphones, so that for many In set of headphones insertion terminal, when the impedance value between earphone is different, monophonic audio signal can be exported to each set of headphones, adopted When being exported with monophonic audio signal, the audio signal exported per set of headphones, for a user, volume can be adjusted to It is identical, while user can also voluntarily adjust, meet individual demand of the user to volume.
Embodiment two
A kind of step flow chart of the audio frequency signal output of terminal of the embodiment of the present invention two shown in reference picture 2, The terminal includes at least two earphone interfaces, or is connected with least two earphone interfaces, and the method for the embodiment of the present invention can be with Comprise the following steps:
Step 201:Detect the earphone quantity being connected with least two earphone interface;
Specifically, terminal can include mobile phone, MP3, MP4, MP5, flat board, 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 can include at least two earphone interfaces, although or itself without at least two earphone interfaces, the terminal can To be connected with least two earphone interfaces so that the terminal may be inserted into an at least set of headphones, earphone interface can be existing The earphone special interface of the standard earphone such as 3.5mm, 2.5mm interface or manufacturer terminal designed, designed.
In embodiments of the present invention, when terminal detects earphone insertion, it can detect and be connect with least two earphone The earphone quantity of mouth connection.
In the specific implementation, when earphone is inserted, what earphone was inserted is the earphone socket of terminal or is connected with terminal Earphone socket, when earphone is inserted, the head in earphone terminal is in contact conducting with the detection terminal inside earphone socket first, Now terminal is detectable earphone insertion, after earphone completes to insert, terminal can detect now with least two ear The earphone quantity of machine interface connection.
As a kind of example, when a set of headphones is inserted, after earphone insertion, terminal detects what is be connected with earphone interface Earphone quantity is 1, after certain interval of time, has set of headphones insertion again, now terminal can be detected and is connected with earphone interface Earphone quantity be 2, it is, of course, also possible to two set of headphones are simultaneously when inserting, 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 more than a pair, the impedance value of each set of headphones is obtained respectively;
In embodiments of the present invention, when the earphone quantity that terminal detects insertion be more than one it is secondary when, that is, insert two it is secondary or Two secondary earphones above, the impedance value of each set of headphones of insertion can be now obtained respectively, wherein, the impedance value Z of earphone is For the resistance R for the coil for characterizing earphone, the electric capacity C of inductance L and presence is to the inhibition size of audio signal, generally Z=R+i (ω L-1/ ω C), wherein ω are 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 generally be chosen at the impedance value under a certain fixed frequency as the rated impedance value of earphone, example As 1000Hz audio signal under impedance as the rated impedance value of earphone, the impedance value of earphone that the present invention is obtained can be The rated impedance value of earphone.
In a preferred embodiment of the present invention, step 202 can include following sub-step:
Sub-step S11, respectively to the earphone input current signal;
In embodiments of the present invention, can be to many set of headphones difference input current letter when terminal is inserted with many set of headphones Number I.
Sub-step S12, detects the voltage signal at the earphone two ends respectively;
In embodiments of the present invention, after input current signal I, the voltage signal U at test earphone two ends can be distinguished.
Sub-step S13, calculates the voltage signal and the ratio of current signal per set of headphones, 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 is different, monophonic audio signal is exported to each set of headphones.
In embodiments of the present invention, after the impedance value of each set of headphones is obtained, it can be determined that the impedance value per set of headphones It is whether identical, when impedance value is different, monophonic audio signal can be exported to each set of headphones, in order to defeated to every set of headphones The audio signal gone out is adjusted.
In one preferred embodiment of the invention, step 203 can 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 impedance value between every set of headphones can be calculated.
For example, conventional 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, 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, judge 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 judged according to the preset range Whether the impedance value per set of headphones is identical.
Continue sub-step S21 example, for deviation, preset range can be 5 ohm, because deviation between the two is 16 ohm, then judge 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%, because both relative deviations are 100%, then judge that the first set of headphones is different with the impedance value of the second set of headphones.
And for example, it is assumed that the impedance value that the earphone of the first secondary insertion is obtained is 16 ohm, the earphone of the second secondary insertion is 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 Value is identical, and the purpose of so setting preset range is to fully take into account:Actually get impedance value for 15 ohm the Two set of headphones, the rated impedance value of its mark on product may exactly 16 ohm, so can cause result of determination more Meet the actual conditions of earphone, improve judge insertion earphone impedance value whether identical accuracy.
Correspondingly, if the deviation or relative deviation within a preset range, judge that the impedance value is identical.
In one preferred embodiment of the invention, sub-step S22 can include following sub-step:
Sub-step S221, obtains the corresponding yield value of impedance value of each set of headphones in default database, its In, the database includes the incidence relation of a variety of impedance values and corresponding yield value;
In embodiments of the present invention, database can be pre-set, 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 cause, when being exported to same audio signal, when the earphone using different impedance values, to every auricular appendage Machine, selection carries out gain control with the yield value that the earphone impedance value matches so that the earphone of different impedances is exporting same It can ensure that volume is consistent during audio signal.
As a kind of example, the size of the yield value of power amplifier can be by the register value in register come body Existing, the register value is a string of binary digits, such as 01110111, the binary digit string represents the gain uniquely determined Value, the incidence relation form schematic diagram of earphone impedance value and register value shown in reference picture 3, each impedance value to should have with Its corresponding register value, namely each impedance value is to that should have its corresponding yield value.
It should be noted that the corresponding relation of the impedance value and register value in Fig. 3 is one-to-one relation, the present invention Embodiment is not limited to this, for impedance value, and an identical deposit can be corresponded to simultaneously by belonging to the impedance value of a certain scope Device value, such as impedance value scope are 15-17 ohm of impedance value, and its corresponding register value can be 01110111.
Sub-step S222, according to the yield value, the monophonic audio after gain process is exported to each set of headphones Signal.
In embodiments of the present invention, get after the corresponding yield value of impedance value of each set of headphones, to each set of headphones Export the monophonic audio signal after yield value corresponding with earphone impedance value processing.
As a kind of example, connected with terminal with two earphone interfaces (first earphone interface B, the second earphone interface C), the One earphone interface is inserted with the first set of headphones, and the second earphone interface is exported to the list of the first set of headphones inserted with the second set of headphones Channel audio signal is left channel audio signal, and it is right channel audio signal to export to the monophonic audio signal of the second set of headphones Exemplified by, it is how to export the monophonic audio signal and terminal after gain process and ear to each set of headphones to terminal The annexation of machine interface is illustrated:
Terminal has four signal output parts that there is audio signal to export by an audio output interface A, output interface A Son:Microphone lead-out terminal MIC, ground signalling lead-out terminal GND, L channel lead-out terminal L, R channel lead-out terminal R, two Earphone interface has common audio input interface A ', corresponding four letters inputted with audio signal of audio input interface A ' Number input terminal:Microphone input terminal MIC, ground signalling input terminal GND, L channel input terminal L, R channel input Sub- R, the audio signal input and output terminal connection diagram shown in reference picture 4, audio output interface A and audio input interface A ' Audio signal input/output terminals connect one to one.
Meanwhile, the first earphone interface B and the second earphone interface C also there is microphone lead-out terminal MIC, ground signalling to export Terminal GND, L channel lead-out terminal L, R channel lead-out terminal R, when exporting monophonic audio signal to each earphone, reference A kind of audio input interface A ' and the first earphone interface and the audio signal input and output terminal of the second earphone interface shown in Fig. 5 One of annexation schematic diagram, audio input interface A ' microphone input terminal MIC and the first earphone interface B and the second ear Machine interface C microphone lead-out terminal MIC is connected, and ground signalling input terminal GND connects with the first earphone interface B and the second earphone Mouth C ground signalling lead-out terminal GND is connected, the L channel output ends of L channel input terminal L respectively with the first earphone interface B Sub- L is connected with R channel lead-out terminal R, the L channel lead-out terminal L of R channel input terminal R respectively with the second earphone interface C It is connected with R channel lead-out 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 annexation schematic diagram of the embodiment of the present invention two shown in reference picture 6, Now because the audio signal of the first set of headphones derives from the left channel audio signal of the L channel L output channels of terminal, second The audio signal of width earphone is from the right channel audio signal of the R channel R output channels of terminal, then power amplifier 1 can be with 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, obtained through increasing Benefit reason after first object audio signal, then by the first object audio signal export to the L channel of the first set of headphones with And R 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 Export to the L channel and R 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 is obtained The different impedance values of earphone are taken to carry out adjust automatically, its purpose adjusted is so that the earphone of different impedances can 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, and this adjustment process can be individually to multiple earphones equivalent to user Volume is adjusted respectively, when being exported hence for multiple earpiece audios, meets the individual demand of user.
As a kind of example, the Gain tuning control of power amplifier 1 and power amplifier 2 can distinguish peripheral hardware in terminal Adjust button 1 and adjustment button 2, the increasing that user can be by operation adjustment button 1 or adjustment button 2 individually to power amplifier Beneficial value is adjusted.
Step 204:When the earphone quantity is that a secondary or described impedance value is identical, 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, impedance identical method is judged referring to sub-step S22, and the embodiment of the present invention is not made herein Repeat.
As a kind of example, connected with terminal with two earphone interfaces (first earphone interface B, the second earphone interface C), the One earphone interface is inserted with the first set of headphones, exemplified by the second earphone interface is inserted with the second set of headphones, how is to every to terminal One set of headphones output stereo audio signal and terminal and the annexation of earphone interface illustrate:
Terminal has four signal output parts that there is audio signal to export by an audio output interface A, output interface A Son:Microphone lead-out terminal MIC, ground signalling lead-out terminal GND, L channel lead-out terminal L, R channel lead-out terminal R, two Earphone interface has common audio input interface A ', corresponding four letters inputted with audio signal of audio input interface A ' Number input terminal:Microphone input terminal MIC, ground signalling input terminal GND, L channel input terminal L, R channel input Sub- R, the audio signal input and output terminal connection diagram shown in reference picture 4, audio output interface A and audio input interface A ' Audio signal input/output terminals connect one to one.
Meanwhile, the first earphone interface B and the second earphone interface C also there is microphone lead-out terminal MIC, ground signalling to export Terminal GND, L channel lead-out terminal L, R channel lead-out terminal R, when using stereo mode exports audio signal, reference picture A kind of audio input interface A ' and the audio signal input and output terminal of the first earphone interface and the second earphone interface shown in 7 The two of annexation schematic diagram, audio input interface A ' microphone input terminal MIC and the first earphone interface B and the second earphone Interface C microphone lead-out terminal MIC is connected, ground signalling input terminal GND and the first earphone interface B and the second earphone interface C ground signalling lead-out terminal GND is connected, L channel input terminal L and the first earphone interface B and the second earphone interface C a left side Sound channel lead-out terminal L is connected, R channel input terminal R and the first earphone interface B and the second earphone interface C R channel output end 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 annexation schematic diagram shown in reference picture 8, now due to the first auricular appendage The audio signal of machine and the second set of headphones respectively derives from left channel audio signal and the right side of the L channel L output channels of terminal The right channel audio signal of sound channel R output channels, 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 to 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, obtained through gain The second target audio signal after processing, then exports second target audio signal to the first set of headphones and the second width earphone R 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 a kind of example, a kind of audio input interface A ' and the first ear of the embodiment of the present invention two shown in reference picture 9 The annexation schematic diagram of the audio signal input and output terminal of machine interface, audio input interface A ' microphone input terminal MIC is connected with the first earphone interface B microphone lead-out terminal MIC, ground signalling input terminal GND and the first earphone interface B Ground signalling lead-out terminal GND be connected, L channel input terminal L and the first earphone interface B L channel lead-out terminal L phases Even, R channel input terminal R is connected with the first earphone interface B R channel lead-out terminal R, the second earphone interface C output end It is sub then be not 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 at least includes two earphone interfaces or is connected with least two earphone interfaces, By detecting the earphone quantity being connected with earphone interface, when earphone quantity is more than a pair, each set of headphones can be obtained respectively Impedance value, when the impedance value for judging earphone is different, monophonic audio signal is exported to every set of headphones, when earphone quantity is one When the impedance value of secondary or earphone is identical, then terminal exports stereo audio signal to earphone, so that for many set of headphones When inserting in terminal, no matter whether impedance value between earphone is identical, can adjust the amplitude size of audio signal so that every The audio signal of set of headphones output, for a user, volume can be with identical, while user can also voluntarily adjust power The yield value of amplifier, meets individual demand of the user to volume.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but It is that those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain A little steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, be retouched in specification The embodiment stated belongs to preferred embodiment, and involved action and the module not necessarily present invention are necessary.
Embodiment three
A kind of structured flowchart of terminal shown in reference picture 10, the terminal includes at least two earphone interfaces, Huo Zheyu At least two earphone interfaces are connected;The terminal also includes:
Detection module 301, for working as the earphone quantity that detection is connected with least two earphone interface;
Impedance acquisition module 302, for when the earphone quantity is more than a pair, the impedance of each set of headphones to be obtained respectively Value;
First audio signal output module 303, for when the impedance value is different, monophonic to be exported to each set of headphones Audio signal.
In one preferred embodiment of the invention, the equipment also includes:
Second audio signal output module, it is for when the earphone quantity is that a secondary or described impedance value is identical, then defeated Go out stereo audio signal to the earphone.
In one preferred embodiment of the invention, first audio signal output module includes:
Impedance value calculating sub module, deviation or relative deviation for calculating the impedance value;
First audio signal output sub-module, if, judging for the deviation or relative deviation not within a preset range The impedance value is different, and monophonic audio signal is exported 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 default database is corresponding Yield value, wherein, the database includes the incidence relation of a variety of impedance values and corresponding yield value;
Second audio signal output sub-module, for according to the yield value, to the output of each set of headphones by gain 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 by the computing device With described in embodiment two the step of audio frequency signal output.
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 404th, other users interface 403.Each component in mobile terminal 400 is coupled by bus system 405.It is understood that Bus system 405 is used to realize the connection communication between these components.Bus system 405 is also wrapped in addition to including data/address bus Include power bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, in fig. 12 all mark various buses For bus system 405.
Wherein, user interface 403 can 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, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as outside slow at a high speed Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (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 not limited In these memories with any other suitable type.
In some embodiments, memory 402 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 4021 and application program 4022.
Wherein, operating system 4021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.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 calling program or the instruction of the storage of memory 402, specifically, can be application The program stored in program 4022 or instruction, processor 401 are used to detect the earphone being connected with least two earphone interface Quantity;When the earphone quantity is more than a pair, the impedance value of each set of headphones is obtained respectively;When the impedance value is different, Monophonic audio signal is exported to each set of headphones.
The method that the embodiments of the present invention are disclosed can apply in processor 401, or be realized by processor 401. Processor 401 is probably a kind of IC chip, the disposal ability with signal.In implementation process, 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), application specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) or other PLDs, discrete gate or transistor logic Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion, or use decoding processor In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only storage can In the ripe storage medium in this area such as program read-only memory or electrically erasable programmable memory, register.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 with reference to its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application 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 performing herein described function In member or its combination.
For software realize, can by perform the module (such as process, function) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can To realize within a processor or outside processor.
Alternatively, processor 401 is additionally operable to:When the earphone quantity is that a secondary or described impedance value is identical, then export Stereo audio signal is to the earphone.
Alternatively, processor 401 is additionally operable to:Calculate the deviation or relative deviation of the impedance value;If the deviation or phase Do not judge that deviation the impedance value is different within a preset range, then, monophonic audio signal is exported to each set of headphones.
Alternatively, processor 401 is additionally operable to:The impedance value correspondence of each set of headphones is obtained in default database Yield value, wherein, the database includes the incidence relation of a variety of impedance values and corresponding yield value;According to the gain Value, the monophonic audio signal after gain process is exported to each set of headphones.
Mobile terminal can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here not Repeat again.
Embodiment six
A kind of structural representation of mobile terminal of Figure 12 embodiment of the present invention six.Specifically, the mobile terminal in Figure 12 Can be mobile phone, tablet personal computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Figure 12 mobile terminal includes radio frequency (RadioFrequency, RF) circuit 510, memory 520, input block 530th, display unit 540, processor 560, voicefrequency circuit 570, WiFi (WirelessFidelity) module 580 and power supply 590.
Wherein, input block 530 can be used for the numeral or character information for receiving user's input, and produce and mobile terminal User set and function control it is relevant signal input.Specifically, in the embodiment of the present invention, the input block 530 can be with Including contact panel 531.Contact panel 531, also referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user uses the operation of finger, any suitable object of stylus or annex on contact panel 531), and according to setting in advance Fixed formula drives corresponding attachment means.Optionally, contact panel 531 may include touch detecting apparatus and touch controller two Individual part.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, and signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then Give the processor 560, and the order sent of reception processing device 560 and can be performed.Furthermore, it is possible to using resistance-type, electricity The polytypes such as appearance formula, infrared ray and surface acoustic wave realize contact panel 531.Except contact panel 531, input block 530 Other input equipments 532 can also be included, 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, the one or more in action bars etc..
Wherein, display unit 540 can be used for information and the movement for showing the information inputted by user or being supplied to 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 contact panel 531 can cover display panel 541, touch display screen is formed, when touch display screen inspection Measure after the touch operation on or near it, processor 560 is sent to determine the type of touch event, with preprocessor 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 conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show 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 element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 560 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone Individual part, by operation or performs and is stored in software program and/or module in first memory 521, and calls and be stored in Data in second memory 522, perform the various functions and processing data of mobile terminal, so as to be carried out to mobile terminal overall 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 being connected with least two earphone interface Amount;When the earphone quantity is more than a pair, the impedance value of each set of headphones is obtained respectively;When the impedance value is different, to Each set of headphones exports monophonic audio signal.
Processor 560 is additionally operable to:When the earphone quantity is that a secondary or described impedance value is identical, then stereo sound is exported Frequency signal is to the earphone.
Processor 560 is additionally operable to:Calculate the deviation or relative deviation of the impedance value;If the deviation or relative deviation are not Within a preset range, then judge that the impedance value is different, monophonic audio signal is exported to each set of headphones.
Processor 560 is additionally operable to:The corresponding gain of impedance value of each set of headphones is obtained in default database Value, wherein, the database includes the incidence relation of a variety of impedance values and 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, because it is substantially similar to embodiment of the method, so description is fairly simple, The relevent part can refer to the partial explaination of embodiments of method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not 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, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (11)

1. a kind of audio frequency signal output of terminal, it is characterised in that the terminal includes at least two earphone interfaces, or It is connected with least two earphone interfaces;Methods described includes:
Detect the earphone quantity being connected with least two earphone interface;
When the earphone quantity is more than a pair, the impedance value of each set of headphones is obtained respectively;
When the impedance value is different, monophonic audio signal is exported to each set of headphones.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
When the earphone quantity is that a secondary or described impedance value is identical, then stereo audio signal is exported to the earphone.
3. method according to claim 1 or 2, it is characterised in that described when the impedance value is different, to each auricular appendage The step of machine exports monophonic audio signal includes:
Calculate the deviation or relative deviation of the impedance value;
If the deviation or relative deviation within a preset range, do not judge that the impedance value is different, exported to each set of headphones Monophonic audio signal.
4. method according to claim 3, it is characterised 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.
5. method according to claim 3, it is characterised in that described to 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 default database, wherein, the database bag Include the incidence relation of a variety of impedance values and corresponding yield value;
According to the yield value, the monophonic audio signal after gain process is exported to each set of headphones.
6. a kind of terminal, it is characterised in that the terminal includes at least two earphone interfaces, or with least two earphone interfaces Connection;The terminal also includes:
Detection module, for detecting the earphone quantity being connected with least two earphone interface;
Impedance acquisition module, for when the earphone quantity is more than a pair, the impedance value of each set of headphones to be obtained respectively;
First audio signal output module, for when the impedance value is different, to each set of headphones output monophonic audio letter Number.
7. terminal according to claim 6, it is characterised in that the terminal also includes:
Second audio signal output module, for when the earphone quantity is that a secondary or described impedance value is identical, then exporting vertical Body sound audio signals are to the earphone.
8. the terminal according to claim 6 or 7, it is characterised in that first audio signal output module includes:
Impedance value calculating sub module, deviation or relative deviation for calculating the impedance value;
First audio signal output sub-module, if, judging described for the deviation or relative deviation not within a preset range Impedance value is different, and monophonic audio signal is exported to each set of headphones.
9. terminal according to claim 8, it is characterised 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.
10. terminal according to claim 8, it is characterised in that the first audio signal output sub-module includes:
Yield value acquisition submodule, the corresponding gain of impedance value for obtaining each set of headphones in default database Value, wherein, the database includes the incidence relation of a variety of impedance values and corresponding yield value;
Second audio signal output sub-module, for according to the yield value, to the output of each set of headphones after gain process Monophonic audio signal.
11. a kind of terminal, it is characterised in that including processor, memory and be stored on the memory and can be at the place The computer program run on reason device, the computer program is realized during the computing device as appointed in claim 1 to 5 The step of one 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 true CN107277667A (en) 2017-10-20
CN107277667B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109874097A (en) * 2017-12-05 2019-06-11 炬芯(珠海)科技有限公司 Active noise reduction earphone and its test macro

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

Cited By (2)

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

Also Published As

Publication number Publication date
CN107277667B (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN106817656B (en) A kind of outer method and mobile terminal for putting sound system audio calibration
CN106205580B (en) A kind of audio data processing method and terminal
CN106060719A (en) Terminal audio output control method and terminal
CN107071174B (en) A kind of method of speech processing and mobile terminal
CN106060710B (en) A kind of audio-frequency inputting method and electronic equipment
CN106791109A (en) A kind of sound prompting method and mobile terminal
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN106714038B (en) A kind of control method and mobile terminal of sound intensity
CN107391078A (en) A kind of sound adjusting method and mobile terminal
CN107357484A (en) One kind prompting mark adding method, terminal and computer-readable recording medium
CN106068009A (en) Method and the electronic installation of calibration is put outside speaker
CN106375576A (en) Audio access control method and mobile terminal
CN107819931A (en) A kind of audio frequency playing method and mobile terminal based on wireless headset
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
CN107124656A (en) The player method and mobile terminal of a kind of multimedia file
CN107277667B (en) A kind of audio frequency signal output and terminal of terminal
CN106230069A (en) A kind of charging method and terminal
CN106790768A (en) A kind of dns server method to set up and mobile terminal
CN107257406A (en) A kind of charging and the method and terminal of voice data processing
CN108268397A (en) The processing method and mobile terminal of a kind of access device
CN106990935B (en) A kind of audio frequency playing method and mobile terminal
CN107493558B (en) A kind of voice signal control method and mobile terminal
CN107682902A (en) The control method and electronic equipment of a kind of electronic equipment
CN108268399A (en) A kind of method and mobile terminal of data communication

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