CN104484150A - Audio play method, audio play device and terminal - Google Patents

Audio play method, audio play device and terminal Download PDF

Info

Publication number
CN104484150A
CN104484150A CN201410841413.2A CN201410841413A CN104484150A CN 104484150 A CN104484150 A CN 104484150A CN 201410841413 A CN201410841413 A CN 201410841413A CN 104484150 A CN104484150 A CN 104484150A
Authority
CN
China
Prior art keywords
earphone
channel
sound channel
current value
range
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
CN201410841413.2A
Other languages
Chinese (zh)
Other versions
CN104484150B (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201410841413.2A priority Critical patent/CN104484150B/en
Publication of CN104484150A publication Critical patent/CN104484150A/en
Application granted granted Critical
Publication of CN104484150B publication Critical patent/CN104484150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an audio play method, an audio play device and a terminal, which relates to the technical field of the application of an electronic device, and aims at solving the problems in the prior art that when an earphone is plugged into the terminal the realization way of the audio play is single and the audio output requirement in different application scenes cannot be met. The method is applied to the terminal. The method comprises the steps: acquiring a drive current value of each sound channel of the earphone when the connection between the terminal and the earphone is detected; comparing the drive current value of each sound channel with a corresponding preset current threshold value set to obtain a comparison result corresponding to each sound channel, wherein each sound channel corresponds to one preset current threshold value set; acquiring an earphone wearing result according to the comparison result corresponding to each sound channel; and selecting an audio output way corresponding to the earphone wearing result to output an audio signal. The audio play method and the audio play device are applied to the audio play process of the electronic device.

Description

Method, device and a kind of terminal that a kind of audio frequency is play
Technical field
The present invention relates to electronic apparatus application technical field, particularly relate to method, device and a kind of terminal that a kind of audio frequency is play.
Background technology
At present, the terminals such as such as mobile phone generally all possess the function that audio frequency is play, and people can carry out by terminal activities such as listening to the music; Under some application scenarios, as in more noisy environment time, people generally also can by earphone and terminal with the use of to realize better auditory effect.
When detecting that earphone inserts, existing terminal generally can pass through earphone output audio content.As passed through in terminal plays music process, when detecting that earphone inserts, terminal can play music by earphone; Carrying out in voice communication course, when detecting that earphone inserts, terminal generally exports voice content by earphone.
But, in the use procedure of earphone, there will be earphone and insert terminal, but the situation of user's not wear headphones.In such cases, terminal still by earphone output audio content, can cause the waste of electricity; In addition, when there being incoming call, if the incoming call play mode of terminal is play incoming telephone signal by means of only earphone, then user may miss some incoming call.To sum up, when terminal plugged earphone, the implementation fixed single that audio frequency of the prior art is play, the audio frequency that cannot meet different application scene exports demand.
Summary of the invention
A kind of method that the embodiment of the present invention provides audio frequency to play, device and a kind of terminal, with solve exist in prior art when terminal plugged earphone, the implementation comparatively fixed single that audio frequency of the prior art is play, the audio frequency that cannot meet different application scene exports the problem of demand.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The method that audio frequency is play, described method is applied to terminal, and described method comprises:
If detect that described terminal is connected with earphone, then obtain the driving current value of each sound channel of described earphone, described driving current value is after described terminal is connected with described earphone, the current value that described each sound channel obtains;
The described driving current value of each sound channel is compared with corresponding predetermined current threshold set, obtains the comparative result corresponding with each sound channel, the corresponding predetermined current threshold set of each described sound channel;
According to the comparative result corresponding with each sound channel, obtain earphone and wear result;
Choose the audio frequency way of output wearing result corresponding with described earphone and export described sound signal.
The device that audio frequency is play, described application of installation is in terminal, and described device comprises:
Whether detecting unit, be connected with earphone for detecting described terminal;
Acquiring unit, for when described detecting unit detects that described terminal is connected with described earphone, obtain the driving current value of each sound channel of described earphone, described driving current value is after described terminal is connected with described earphone, the current value that described each sound channel obtains;
Comparing unit, the described driving current value for each sound channel obtained by described acquiring unit compares with corresponding predetermined current threshold set, obtains the comparative result corresponding with each sound channel, the corresponding predetermined current threshold set of each described sound channel;
Processing unit, for the comparative result corresponding with each sound channel obtained according to described comparing unit, obtains earphone and wears result;
Output unit, the audio frequency way of output wearing result corresponding for the earphone chosen with described processing unit obtains exports described sound signal.
A kind of terminal, described terminal comprises earphone intelligent power output amplification unit, described earphone intelligent power output amplification unit comprises L channel power amplifier, R channel power amplifier, power supply, controller, described earphone intelligent power output amplification unit also comprises L channel current sensor and R channel current sensor, described L channel current sensor is all connected with described controller with described R channel current sensor, wherein:
Described L channel current sensor, for when described terminal is connected with earphone, obtain the driving current value of the L channel of described earphone, described driving current value is after described power supply drives described L channel by described L channel power amplifier, the current value that described L channel obtains;
Described R channel current sensor, for when described terminal is connected with earphone, obtain the driving current value of described earphone R channel, described driving current value is after described power supply drives described R channel by described R channel power amplifier, the current value that described R channel obtains;
Described controller, for receiving the driving current value of described L channel that described L channel current sensor obtains, and with the L channel predetermined current threshold set of pre-stored compare obtain described L channel wear result;
Receive the driving current value of described R channel that described R channel current sensor obtains, and with the R channel predetermined current threshold set of pre-stored compare obtain described R channel wear result.
Method, device and a kind of terminal that a kind of audio frequency that the embodiment of the present invention provides is play, when detecting that terminal is connected with earphone, obtain the driving current value of each sound channel of earphone; Again the driving current value of each sound channel is compared with corresponding predetermined current threshold set, obtain the comparative result corresponding with each sound channel, and obtain earphone further and wear result; And then choose and wear audio frequency way of output output audio signal corresponding to result with earphone, with in prior art when terminal plugged earphone, the implementation fixed single that its audio frequency is play is compared, the present invention wears result by obtaining earphone according to the driving current value of each sound channel, wear result according to earphone again and choose the corresponding audio frequency way of output, can realize selecting different way of output output audio signals according to the wear condition of earphone, the audio frequency that thus can meet different application scene exports demand.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of the method that Fig. 1 plays for a kind of audio frequency that the embodiment of the present invention provides;
The process flow diagram of the method that Fig. 2 plays for the another kind of audio frequency that the embodiment of the present invention provides;
The process flow diagram of the method that Fig. 3 plays for another audio frequency that the embodiment of the present invention provides;
The process flow diagram of the method that Fig. 4 plays for another audio frequency that the embodiment of the present invention provides;
The process flow diagram of the method for determination first range of current that Fig. 5 provides for the embodiment of the present invention and the second range of current;
The structural representation of the device that Fig. 6 plays for a kind of audio frequency that the embodiment of the present invention provides;
The structural representation of a kind of terminal that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the present embodiment, be clearly and completely described the technical scheme in the present embodiment, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to solve exist in prior art when terminal plugged earphone, the implementation that its audio frequency is play is single, and the audio frequency that cannot meet different application scene exports the problem of demand, the invention provides a kind of method that audio frequency being applied to terminal is play.
Wherein, this terminal can be the electronic equipment that can carry out audio frequency broadcasting arbitrarily and possess receiver J-Horner on hardware, and thus this terminal both can be the handheld terminal such as mobile phone, panel computer PAD, MP3; Also can be the fixed terminals such as PC.
As shown in Figure 1, the method comprises:
S101: if detect that described terminal is connected with earphone, then obtain the driving current value of each sound channel of described earphone, described driving current value is after described terminal is connected with described earphone, the current value that described each sound channel obtains.
Wherein, in the present embodiment, the earphone of indication is mainly insert earphone, both can be three-section earphone, also can be four-section type headset, both can be the earphone of band microphone function, also can for only possessing the earphone etc. of acoustic function.In the present embodiment, the terminal of indication is connected with earphone and refers to that earphone inserts terminal device by the receiver J-Horner on terminal device, and can realize the function of earphone or be referred to as earphone and insert and put in place.
Whether in the implementation procedure of this step, first needing to detect has earphone to insert terminal.At present, there is the technical scheme whether multiple Test earphone inserts terminal, have a contact inside the earphone jack as terminals such as mobile phones, when earphone inserts, this contact by short circuit, and then can detect that earphone inserts.Whether this detection has earphone to insert the implementation procedure of terminal can with reference to prior art.
If detect that earphone is inserted into terminal device, then the earphone power amplifier unit of terminal device can be respectively each sound channel (general earphone comprises L channel and R channel) power supply of earphone to drive earphone.Inventor finds under study for action, and user wears certain sound channel and do not wear compared with this sound channel, when wearing, this sound channel air pressure is larger, and earphone power amplifier unit exports same voltage drive signals, and the vibration amplitude of this sound channel is less, the resistance of this sound channel is less, and thus the drive current of this sound channel is larger.Based on this principle, in this step, need the driving current value of each sound channel obtaining earphone in real time or at regular intervals, to judge whether user wears certain sound channel according to this driving current value.
It should be noted that, in the present embodiment, the sound channel of indication and the receiver of earphone are one-to-one relationship, and also namely general earphone comprises two receivers, and wherein, L channel is to there being L channel receiver, and R channel is to there being R channel receiver.
S102: the described driving current value of each sound channel is compared with corresponding predetermined current threshold set, obtains the comparative result corresponding with each sound channel, the corresponding predetermined current threshold set of each described sound channel.
In the present embodiment, this predetermined current threshold set can have multiple implementation, as follows respectively:
This predetermined current threshold set for only to comprise a predetermined current threshold, then, when the driving current value of certain sound channel obtained is greater than this predetermined current threshold, can show that user wears this sound channel; When the driving current value of certain sound channel obtained is less than this predetermined current threshold, show that user does not wear this sound channel.
This predetermined current threshold set can also be comprise one for representing that user does not wear certain sound channel time all electric currents may the range of current of values, then when the driving current value of certain sound channel obtained is positioned at this range of current, show that user does not wear this sound channel, otherwise show that user wears this sound channel; In like manner, this predetermined current threshold set can also be comprise one for representing that user wears certain sound channel time all electric currents may the range of current of values, then when the driving current value of certain sound channel obtained is positioned at this range of current, show that user wears this sound channel, otherwise show that user does not wear this sound channel.
This predetermined current threshold set can also be comprise two different range of current, one of them range of current is that all electric currents of user when wearing this sound channel may the range of current that formed of values, and another range of current is that all electric currents of user when not wearing this sound channel may the range of current that formed of values; Then by judging the range of current at the driving current value place of certain sound channel obtained, obtaining user and whether wearing this sound channel.
The predetermined current threshold that the different sound channels of earphone are corresponding may identical also possibility difference.
On the basis of driving current value obtaining each sound channel, this step is that the process compared, what obtain each sound channel wears result by predetermined current threshold set corresponding with this sound channel for the driving current value of each sound channel obtained.
S103: according to the comparative result corresponding with each sound channel, obtains earphone and wears result.
This step is that on the basis of the comparative result corresponding with each sound channel obtained at S102, the comprehensively wear condition of each sound channel, what obtain earphone further wears result.
General earphone comprises L channel and R channel, then the possibility of result worn by the earphone obtained by this step is following four kinds of situations: only wear L channel, only wear R channel, left and right acoustic channels is all worn, left and right acoustic channels all do not wear (non-wear headphones).
S104: choose the audio frequency way of output wearing result corresponding with described earphone and export described sound signal.
Although insert earphone, the result of wearing of earphone has multiple possibility.Thus, the output of this step sound intermediate frequency signal wears the different and difference to some extent of result because of earphone.
When user only wears L channel, then by means of only L channel output audio signal; When user only wears R channel, then by means of only R channel output audio signal; When user has not only worn L channel but also has worn R channel, then can normal output audio signal; When user did not both wear L channel, when not wearing again R channel (non-wear headphones), stop output or the output audio signal by other means of sound signal, as exported by receiver or loudspeaker.
The method that a kind of audio frequency that the embodiment of the present invention provides is play, when detecting that terminal is connected with earphone, obtains the driving current value of each sound channel of earphone; Again the driving current value of each sound channel is compared with corresponding predetermined current threshold set, obtain the comparative result corresponding with each sound channel, and obtain earphone further and wear result; And then choose and wear audio frequency way of output output audio signal corresponding to result with earphone, with in prior art when terminal plugged earphone, the implementation fixed single that its audio frequency is play is compared, the present invention wears result by obtaining earphone according to the driving current value of each sound channel, wear result according to earphone again and choose the corresponding audio frequency way of output, can realize selecting different way of output output audio signals according to the wear condition of earphone, the audio frequency that thus can meet different application scene exports demand.
Further, in a kind of implementation of step S102, predetermined current threshold set comprises the first range of current and the second range of current, this first range of current is the range of current of user when wearing corresponding sound channel, and this second range of current is the range of current of user when not wearing corresponding sound channel.
The first range of current in the present embodiment and the second range of current are and are obtained by many experiments, and the first range of current and the second range of current be without common factor.In experimentation, the impact of the various factors such as the environment residing for earphone, test the driving current value got may be different at every turn.Also, namely, when user wears certain sound channel, the driving current value of this sound channel in varied situations, its value is floated within the scope of certain, thus, in the present embodiment, when adopting the first range of current to represent that user wears certain sound channel, this sound channel can institute's likely value of obtainable driving current value; In like manner, in the present embodiment, the second range of current for user do not wear this sound channel time, this sound channel can institute's likely value of obtainable driving current value.
Thus, as shown in Figure 2, step S102 can be refined as following step S201.
S201: the driving current value of each sound channel is compared with the first range of current and the second range of current respectively, obtains the range of current at the driving current value place of each sound channel.
Specifically, this step is the process of the range of current at the driving current value place of searching each sound channel.In the process of searching, both can for having searched the first range of current and whether the second range of current comprises this driving current value simultaneously; Also can for first to search the first range of current, when driving current value is not in the first range of current, tentatively can determine that the range of current at this driving current value place is the second range of current, again by the second range of current and this driving current value are compared confirmation, obtain the ultimate current scope at driving current value place; In like manner, also can first search the second range of current, then search the first range of current.
When this driving current value is neither in the first range of current, also not when the second range of current, can think that exception worn by earphone, preserve this driving current value simultaneously, for revising the first range of current and the second range of current.
Accordingly, step S103 can be refined as following step S202 and step S203.
S202: if the range of current at the driving current value place of at least one sound channel is the first range of current, to be then user wears described earphone described sound channel described at least one that result worn by the described earphone obtained.
When the range of current at the driving current value place of L channel is the first range of current, the earphone obtained is worn result for user and is worn L channel; When the range of current at the driving current value place of R channel is the second range of current, the earphone obtained is worn result and is not worn R channel for user; When the range of current at the driving current value place of left and right acoustic channels is all in the first range of current, the earphone obtained is worn result for user and has been worn left and right acoustic channels.
S203: if the range of current at the driving current value place of all sound channels of earphone is the second range of current, then the earphone obtained is worn result and do not worn described earphone for user.
The comparative result that this step obtains did not wear R channel for user has not both worn L channel yet, was the non-wear headphones of user yet.
In the another kind of implementation of step S102, above-mentioned predetermined current threshold set comprises pre-set current value.
This pre-set current value is that the user obtained by test of many times is not worn certain sound channel and wears the critical value of certain sound channel, when the driving current value obtained is greater than this critical value, shows that user wears this sound channel, otherwise, show that user does not wear this sound channel.
Thus, as shown in Figure 3, step S102 can be refined as following step S301.
S301: the driving current value of each sound channel compared with corresponding pre-set current value, obtains the comparative result corresponding with each sound channel.
Accordingly, step S103 can be refined as following step S302 and step S303.
S302: if the driving current value of at least one sound channel is greater than pre-set current value, to be then user wears described earphone described sound channel described at least one that result worn by the earphone obtained.
The comparative result that this step obtains may L channel, user only wear R channel, user has not only worn L channel but also worn R channel for user only wears.
S303: if the driving current value of all sound channels of earphone is all less than pre-set current value, then the earphone obtained is worn result and do not worn described earphone for user.
The comparative result that this step obtains did not wear R channel for user has not both worn L channel yet, was the non-wear headphones of user yet.
The predetermined threshold value set that this method provides only comprises a pre-set current value, and the procurement process of this pre-set current value is simple, and compared to the method that Fig. 2 provides, its comparison procedure simplifies further.
Wear on the basis of result what obtain earphone, for different application scenarioss, as shown in Figure 4, step S104 can be refined as following step S401 to S403.
S401: if described earphone to wear result be user wears described earphone described sound channel described at least one, then export described sound signal by described sound channel described at least one.
S402: if result worn by described earphone do not wear described earphone for user, and described sound signal is from multimedia application, then stop the output of described sound signal or export described sound signal by the loudspeaker of described terminal.
This multimedia application is the audiovisual applications on terminal device.When the non-wear headphones of user and sound signal from audiovisual applications, be specifically music file or video file time, in a kind of implementation of this step, in order to avoid the waste of electricity, stop the output of this sound signal; In addition, in the another kind of implementation of this step, in order to ensure the continuity of the output of sound signal, output audio signal is continued by the loudspeaker of terminal itself.
S403: if result worn by described earphone do not wear described earphone for user, and described sound signal is from speech business, then export described sound signal by the loudspeaker of described terminal.
Due to the angle from Consumer's Experience, compared to other audio services, speech business possesses higher priority.Thus in this step, when the non-wear headphones of user and sound signal from speech business time, have new incoming call by the loudspeaker output audio signal of terminal with reminding user.
It should be noted that, when the non-wear headphones of user, different broadcast modes can be adopted for different sound signals as described in step S402 and step S403, also can for adopt identical broadcast mode after user is arranged voluntarily, as being no matter the sound signal from speech business or other business, to arbitrary sound signal, as long as the situation of the non-wear headphones of user, can be set to all be play by the loudspeaker of terminal.
Further, because different earphone internal drivings has difference, need to determine the predetermined current threshold set corresponding with this earphone when therefore using new earphone, wear result for use in what judge earphone, this deterministic process needs user to participate in.When this predetermined current threshold set comprises the first range of current and the second range of current, as shown in Figure 5, this process comprises:
S501: receive the first instruction triggered when user wears sound channel.
In the present embodiment in predetermined threshold value set-determination process because needs user participates in, thus need first to load track selecting interface.The first range of current of corresponding sound channel and the deterministic process of the second range of current is carried out according to the selection result of user.As when user selects L channel, this deterministic process is the deterministic process of the first range of current that L channel is corresponding and the second range of current; After the first range of current corresponding to L channel and the second range of current have been determined, the first range of current of R channel, the deterministic process of the second range of current are started.
Simultaneously, after user have selected corresponding sound channel, load and be used for the sound channel that reminding user does not wear its selection, trigger the interface of beginning first range of current simultaneously for user, and when user triggers this instruction, start the deterministic process of the first range of current of this sound channel.
S502: according to described first instruction, output audio signal, gathers the driving current value of described sound channel every Preset Time, determine described first range of current corresponding with described sound channel.
When after the instruction receiving user, terminal device can automatically by earphone output audio signal, and gather the driving current value of this sound channel at regular intervals, by analyzing the driving current value of multi collect, get maximal value wherein and minimum value, obtain the first range of current that this sound channel is corresponding.
S503: receive the second instruction triggered when user does not wear sound channel.
This step can refer step S501, and wherein the second instruction is for triggering the deterministic process of the second range of current.
S504: according to described second instruction, output audio signal, gathers the driving current value of described sound channel every Preset Time, determine described second range of current corresponding with described sound channel.
This step can refer step S502.
It should be noted that, the deterministic process of this range of current, also for first to determine the second range of current, then can determine the first range of current, thus can be first perform step S503 and step S504, then perform step S501 and step S502.
In addition, when this predetermined current threshold set only comprises pre-set current value, its implementation procedure also can with reference to above-mentioned steps S501 to step S504, and specifically, this process comprises:
511: receive the first instruction triggered when user wears sound channel.
512: according to described first instruction, output audio signal, gathers the driving current value of described sound channel every Preset Time.
513: receive the second instruction triggered when user does not wear this sound channel.
514: according to described second instruction, output audio signal, gathers the driving current value of this sound channel every Preset Time.
515: the driving current value that this sound channel gathered when the driving current value that this sound channel gathered when analysis user wears sound channel is corresponding and user do not wear this sound channel is corresponding, determine predetermined current threshold.
Due between the current value that gathers when the current value that gathers when user does not wear a certain sound channel and user wear this sound channel without occuring simultaneously, and when current value when user wears sound channel does not wear this sound channel, current value is larger.Thus can take the current value between the minimum value in the current value gathered when maximal value in the current value gathered when a certain sound channel is not worn at family and user wear this sound channel, this current value is defined as predetermined current threshold.
Also first step 513 and step 514 be can perform in this process, then step 511 and step 512 performed.
It should be noted that, the deterministic process of the predetermined current threshold set of indication in the present embodiment, the deterministic process that also can participate in reference to this user.The deterministic process participated in this user unlike, participant can be the scientific research personnel in mobile phone production run.Such as, mobile-phone manufacturers are in the process of producing mobile phone, and be generally also equipped with earphone corresponding with it, then, when this mobile phone dispatches from the factory, the predetermined current threshold set stored is corresponding with this earphone, and its deterministic process needs the participation of scientific research personnel; When user in use changes earphone, can be participated in by user, redefine the predetermined current threshold set corresponding with new earphone.
As application and the realization of method shown in above-mentioned each figure, the invention provides the device that a kind of audio frequency is play, this application of installation is in terminal, and as shown in Figure 6, this device comprises:
Whether detecting unit 601, be connected with earphone for sense terminals.
Acquiring unit 602, for when described detecting unit 601 detects that terminal is connected with described earphone, obtain the driving current value of each sound channel of earphone, this driving current value is after terminal is connected with described earphone, the current value that described each sound channel obtains.
Comparing unit 603, described driving current value for each sound channel obtained by described acquiring unit 602 compares with corresponding predetermined current threshold set, obtain the comparative result corresponding with each sound channel, the corresponding predetermined current threshold set of each described sound channel.
Processing unit 604, for the comparative result corresponding with each sound channel obtained according to described comparing unit 603, obtains earphone and wears result.
Output unit 605, the audio frequency way of output wearing result corresponding for the earphone chosen with described processing unit 604 obtains exports described sound signal.
Further, comparing unit 603, also for the driving current value of described each sound channel is compared with described first range of current and described second range of current respectively, obtain the range of current at the driving current value place of described each sound channel, described first range of current is the range of current of user when wearing corresponding sound channel, and described second range of current is the range of current of user when not wearing the sound channel of described correspondence;
Processing unit 604, when being also described first range of current for the range of current at the driving current value place when sound channel described at least one, to be user wears described earphone described sound channel described at least one that result worn by the described earphone obtained;
When the range of current at the driving current value place of all described sound channel of described earphone is described second range of current, the described earphone obtained is worn result and is not worn described earphone for user.
Further, comparing unit 603, also for the described driving current value of described each sound channel being compared with corresponding described pre-set current value, determines whether the described driving current value of each sound channel is greater than described pre-set current value;
Processing unit 604, also for when described at least one, the driving current value of sound channel is greater than described pre-set current value, to be user wears described earphone described sound channel described at least one that result worn by the described earphone obtained;
When the driving current value of all described sound channel of described earphone is all less than described pre-set current value, the described earphone obtained is worn result and is not worn described earphone for user.
Further, output unit 605, the described earphone also for obtaining when described processing unit 604 wears result for user wears described in described earphone described at least one during sound channel, exports described sound signal by described sound channel described at least one;
The described earphone obtained when described processing unit 604 is worn result and is not worn described earphone for user, and described sound signal from multimedia application time, stop the output of described sound signal or export described sound signal by the loudspeaker of described terminal;
The described earphone obtained when described processing unit 604 is worn result and is not worn described earphone for user, and described sound signal from speech business time, export described sound signal by the loudspeaker of described terminal.
The device that a kind of audio frequency that the embodiment of the present invention provides is play, when detecting that terminal is connected with earphone, obtains the driving current value of each sound channel of earphone; Again the driving current value of each sound channel is compared with corresponding predetermined current threshold set, obtain the comparative result corresponding with each sound channel, and obtain earphone further and wear result; And then choose and wear audio frequency way of output output audio signal corresponding to result with earphone, with in prior art when terminal plugged earphone, the implementation fixed single that its audio frequency is play is compared, the present invention wears result by obtaining earphone according to the driving current value of each sound channel, wear result according to earphone again and choose the corresponding audio frequency way of output, can realize selecting different way of output output audio signals according to the wear condition of earphone, the audio frequency that thus can meet different application scene exports demand.
Present invention also offers a kind of terminal, as shown in Figure 7, this terminal comprises earphone intelligent power output amplification unit 70.Identical with the earphone intelligent power output amplification unit in existing terminal, this earphone intelligent power output amplification unit 70 comprises R channel power amplifier 701, power supply 702, L channel power amplifier 703 and controller 704; And controller 704 is connected with R channel power amplifier 701, power supply 702, L channel power amplifier 703 respectively; Power supply 702 is connected with L channel power amplifier 703 with R channel power amplifier 701 respectively.
With earphone intelligent power output amplification unit of the prior art unlike, the earphone intelligent power output amplification unit 70 that the embodiment of the present invention provides also comprises L channel current sensor 705 and R channel current sensor 706, and this L channel current sensor 705 is all connected with controller 704 with R channel current sensor 706, wherein:
L channel current sensor 705, for when terminal is connected with earphone, obtains the driving current value of the L channel of described earphone, and described driving current value is after power supply 702 drives described L channel by L channel power amplifier 703, the current value that L channel obtains.
R channel current sensor 706, for when terminal is connected with earphone, obtain the driving current value of earphone R channel, described driving current value is after power supply 702 drives R channel by R channel power amplifier 701, the current value that R channel obtains.
Controller 704, for receiving the driving current value of L channel that L channel current sensor 705 obtains, and with the L channel predetermined current threshold set of pre-stored compare obtain described L channel wear result.
Controller 704, also for receiving the driving current value of R channel that R channel current sensor 706 obtains, and with the R channel predetermined current threshold set of pre-stored compare obtain described R channel wear result.
The terminal that the embodiment of the present invention provides, compared with terminal of the prior art, the earphone intelligent power output amplification unit that it comprises, owing to adding L channel current sensor and R channel current sensor, thus can in real time or obtain the current value of L channel and R channel at set intervals respectively and send to controller; Controller the predetermined current threshold set corresponding respectively according to this current value and L channel, R channel can obtain user and whether wears L channel or R channel, and then terminal can select corresponding audio frequency broadcast mode according to the result of wearing of earphone sound channel.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computing machine, hard disk or CD etc., comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.

Claims (10)

1. a method for audio frequency broadcasting, it is characterized in that, described method is applied to terminal, and described method comprises:
If detect that described terminal is connected with earphone, then obtain the driving current value of each sound channel of described earphone, described driving current value is after described terminal is connected with described earphone, the current value that described each sound channel obtains;
The described driving current value of each sound channel is compared with corresponding predetermined current threshold set, obtains the comparative result corresponding with each sound channel, the corresponding predetermined current threshold set of each described sound channel;
According to the comparative result corresponding with each sound channel, obtain earphone and wear result;
Choose the audio frequency way of output wearing result corresponding with described earphone and export described sound signal.
2. the method for audio frequency broadcasting according to claim 1, it is characterized in that, described predetermined current threshold set comprises the first range of current and the second range of current, described first range of current is the range of current of user when wearing corresponding sound channel, described second range of current is the range of current of user when not wearing the sound channel of described correspondence, and described first range of current and described second range of current are without common factor;
Described the driving current value of each sound channel to be compared with corresponding predetermined current threshold set, obtains the comparative result corresponding with each sound channel, comprising:
The driving current value of described each sound channel is compared with described first range of current and described second range of current respectively, obtains the range of current at the driving current value place of described each sound channel;
The comparative result that described basis is corresponding with each sound channel, obtains earphone and wears result, comprising:
If the range of current at the driving current value place of sound channel described at least one is described first range of current, to be then user wears described earphone described sound channel described at least one that result worn by the described earphone obtained;
If the range of current at the driving current value place of all described sound channel of described earphone is described second range of current, then the described earphone obtained is worn result and is not worn described earphone for user.
3. the method for audio frequency broadcasting according to claim 1, it is characterized in that, described predetermined current threshold set comprises pre-set current value;
Described the described driving current value of each sound channel to be compared with corresponding predetermined current threshold set, obtains the comparative result corresponding with each sound channel, comprising:
The described driving current value of described each sound channel is compared with corresponding described pre-set current value, determines whether the described driving current value of each sound channel is greater than described pre-set current value;
The comparative result that described basis is corresponding with each sound channel, obtains earphone and wears result, comprising:
If the driving current value of sound channel is greater than described pre-set current value described at least one, to be then user wears described earphone described sound channel described at least one that result worn by the described earphone obtained;
If the driving current value of all described sound channel of described earphone is all less than described pre-set current value, then the described earphone obtained is worn result and is not worn described earphone for user.
4. the method that the audio frequency according to Claims 2 or 3 is play, is characterized in that,
The described audio frequency way of output wearing result corresponding with described earphone of choosing exports described sound signal, comprising:
Sound channel described at least one that to be user wears described earphone described if result worn by described earphone, then export described sound signal by described sound channel described at least one;
If described earphone is worn result and do not worn described earphone for user, and described sound signal is from multimedia application, then stop the output of described sound signal or export described sound signal by the loudspeaker of described terminal;
If described earphone is worn result and do not worn described earphone for user, and described sound signal is from speech business, then export described sound signal by the loudspeaker of described terminal.
5. the method for audio frequency broadcasting according to claim 2, it is characterized in that, detect that if described described terminal is connected with earphone, then, before obtaining the driving current value of each sound channel of described earphone, described method also comprises:
Receive the first instruction triggered when user wears sound channel;
According to described first instruction, output audio signal, gathers the driving current value of described sound channel every Preset Time, determines described first range of current corresponding with described sound channel;
Receive the second instruction triggered when user does not wear described sound channel;
According to described second instruction, output audio signal, gathers the driving current value of described sound channel every Preset Time, determines described second range of current corresponding with described sound channel.
6. a device for audio frequency broadcasting, it is characterized in that, described application of installation is in terminal, and described device comprises:
Whether detecting unit, be connected with earphone for detecting described terminal;
Acquiring unit, for when described detecting unit detects that described terminal is connected with described earphone, obtain the driving current value of each sound channel of described earphone, described driving current value is after described terminal is connected with described earphone, the current value that described each sound channel obtains;
Comparing unit, the described driving current value for each sound channel obtained by described acquiring unit compares with corresponding predetermined current threshold set, obtains the comparative result corresponding with each sound channel, the corresponding predetermined current threshold set of each described sound channel;
Processing unit, for the comparative result corresponding with each sound channel obtained according to described comparing unit, obtains earphone and wears result;
Output unit, the audio frequency way of output wearing result corresponding for the earphone chosen with described processing unit obtains exports described sound signal.
7. the device of audio frequency broadcasting according to claim 6, is characterized in that,
Described comparing unit, also for the driving current value of described each sound channel is compared with described first range of current and described second range of current respectively, obtain the range of current at the driving current value place of described each sound channel, described first range of current is the range of current of user when wearing corresponding sound channel, described second range of current is the range of current of user when not wearing the sound channel of described correspondence, and described first range of current and described second range of current are without common factor;
Described processing unit, when being also described first range of current for the range of current at the driving current value place when sound channel described at least one, to be user wears described earphone described sound channel described at least one that result worn by the described earphone obtained;
When the range of current at the driving current value place of all described sound channel of described earphone is described second range of current, the described earphone obtained is worn result and is not worn described earphone for user.
8. the device of audio frequency broadcasting according to claim 6, is characterized in that,
Described comparing unit, also for the described driving current value of described each sound channel being compared with corresponding described pre-set current value, determines whether the described driving current value of each sound channel is greater than described pre-set current value;
Described processing unit, also for when described at least one, the driving current value of sound channel is greater than described pre-set current value, to be user wears described earphone described sound channel described at least one that result worn by the described earphone obtained;
When the driving current value of all described sound channel of described earphone is all less than described pre-set current value, the described earphone obtained is worn result and is not worn described earphone for user.
9. the device that the audio frequency according to claim 7 or 8 is play, is characterized in that,
Described output unit, the described earphone also for obtaining when described processing unit wears result for user wears described in described earphone described at least one during sound channel, exports described sound signal by described sound channel described at least one;
The described earphone obtained when described processing unit is worn result and is not worn described earphone for user, and described sound signal from multimedia application time, stop the output of described sound signal or export described sound signal by the loudspeaker of described terminal;
The described earphone obtained when described processing unit is worn result and is not worn described earphone for user, and described sound signal from speech business time, export described sound signal by the loudspeaker of described terminal.
10. a terminal, described terminal comprises earphone intelligent power output amplification unit, described earphone intelligent power output amplification unit comprises L channel power amplifier, R channel power amplifier, power supply, controller, it is characterized in that, described earphone intelligent power output amplification unit also comprises L channel current sensor and R channel current sensor, described L channel current sensor is all connected with described controller with described R channel current sensor, wherein:
Described L channel current sensor, for when described terminal is connected with earphone, obtain the driving current value of the L channel of described earphone, described driving current value is after described power supply drives described L channel by described L channel power amplifier, the current value that described L channel obtains;
Described R channel current sensor, for when described terminal is connected with earphone, obtain the driving current value of described earphone R channel, described driving current value is after described power supply drives described R channel by described R channel power amplifier, the current value that described R channel obtains;
Described controller, for receiving the driving current value of described L channel that described L channel current sensor obtains, and with the L channel predetermined current threshold set of pre-stored compare obtain described L channel wear result;
Receive the driving current value of described R channel that described R channel current sensor obtains, and with the R channel predetermined current threshold set of pre-stored compare obtain described R channel wear result.
CN201410841413.2A 2014-12-29 2014-12-29 Method, device and a kind of terminal that a kind of audio is played Active CN104484150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410841413.2A CN104484150B (en) 2014-12-29 2014-12-29 Method, device and a kind of terminal that a kind of audio is played

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410841413.2A CN104484150B (en) 2014-12-29 2014-12-29 Method, device and a kind of terminal that a kind of audio is played

Publications (2)

Publication Number Publication Date
CN104484150A true CN104484150A (en) 2015-04-01
CN104484150B CN104484150B (en) 2017-08-11

Family

ID=52758698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410841413.2A Active CN104484150B (en) 2014-12-29 2014-12-29 Method, device and a kind of terminal that a kind of audio is played

Country Status (1)

Country Link
CN (1) CN104484150B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635880A (en) * 2016-02-19 2016-06-01 惠州Tcl移动通信有限公司 Earphone tone quality improving method and system for mobile terminal
CN105916074A (en) * 2016-06-21 2016-08-31 维沃移动通信有限公司 Play control method for multimedia and terminal
CN106201420A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 Audio-frequency processing method and device
CN106341535A (en) * 2016-08-31 2017-01-18 维沃移动通信有限公司 Audio playing control method and mobile terminal
CN106375554A (en) * 2016-08-25 2017-02-01 维沃移动通信有限公司 Audio output control method and mobile terminal
CN106528041A (en) * 2016-11-07 2017-03-22 广东欧珀移动通信有限公司 Voice output mode switching method and device, and terminal
WO2017067410A1 (en) * 2015-10-19 2017-04-27 京东方科技集团股份有限公司 Headset control circuit and method, headset, and audio output device and method
CN109040896A (en) * 2018-11-05 2018-12-18 长沙拓扑陆川新材料科技有限公司 A kind of earphone and apart from detection cut-in method
CN109068226A (en) * 2018-09-29 2018-12-21 安克创新科技股份有限公司 Earphone and its control method
CN109391869A (en) * 2018-11-05 2019-02-26 长沙拓扑陆川新材料科技有限公司 A kind of earphone and ear canal judge cut-in method
CN109753777A (en) * 2018-12-29 2019-05-14 上海瑾盛通信科技有限公司 A kind of personal identification method, device, storage medium and mobile terminal
CN111065020A (en) * 2019-11-07 2020-04-24 华为终端有限公司 Method and device for processing audio data
US10674247B2 (en) 2018-06-19 2020-06-02 Merry Electronics (Suzhou) Co., Ltd. Hearing protection earphone, hearing protection method and computer program storage medium for the same
WO2022037434A1 (en) * 2020-08-20 2022-02-24 华为技术有限公司 Earphone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211650A (en) * 2006-12-25 2008-07-02 鸿富锦精密工业(深圳)有限公司 Audio frequency playing apparatus and its earphone used therefore, automatic control method
CN201233594Y (en) * 2008-07-17 2009-05-06 英业达股份有限公司 Test device for sound interface
US20120148062A1 (en) * 2010-06-11 2012-06-14 Nxp B.V. Audio device
US20140369525A1 (en) * 2013-06-17 2014-12-18 Tencent Technology (Shenzhen) Company Limited Volume adjusting method, volume adjusting apparatus and electronic device using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211650A (en) * 2006-12-25 2008-07-02 鸿富锦精密工业(深圳)有限公司 Audio frequency playing apparatus and its earphone used therefore, automatic control method
CN201233594Y (en) * 2008-07-17 2009-05-06 英业达股份有限公司 Test device for sound interface
US20120148062A1 (en) * 2010-06-11 2012-06-14 Nxp B.V. Audio device
US20140369525A1 (en) * 2013-06-17 2014-12-18 Tencent Technology (Shenzhen) Company Limited Volume adjusting method, volume adjusting apparatus and electronic device using the same

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017067410A1 (en) * 2015-10-19 2017-04-27 京东方科技集团股份有限公司 Headset control circuit and method, headset, and audio output device and method
US10313777B2 (en) 2015-10-19 2019-06-04 Boe Technology Group Co., Ltd. Earphone control circuit and method, earphone, as well as audio output device and method
CN105635880A (en) * 2016-02-19 2016-06-01 惠州Tcl移动通信有限公司 Earphone tone quality improving method and system for mobile terminal
CN105635880B (en) * 2016-02-19 2019-02-26 惠州Tcl移动通信有限公司 A kind of the earphone sound quality improvement method and system of mobile terminal
CN105916074A (en) * 2016-06-21 2016-08-31 维沃移动通信有限公司 Play control method for multimedia and terminal
CN106201420A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 Audio-frequency processing method and device
CN106375554A (en) * 2016-08-25 2017-02-01 维沃移动通信有限公司 Audio output control method and mobile terminal
CN106375554B (en) * 2016-08-25 2020-02-11 维沃移动通信有限公司 Audio output control method and mobile terminal
CN106341535A (en) * 2016-08-31 2017-01-18 维沃移动通信有限公司 Audio playing control method and mobile terminal
CN106341535B (en) * 2016-08-31 2019-08-20 维沃移动通信有限公司 A kind of audio play control method and mobile terminal
CN106528041A (en) * 2016-11-07 2017-03-22 广东欧珀移动通信有限公司 Voice output mode switching method and device, and terminal
US10674247B2 (en) 2018-06-19 2020-06-02 Merry Electronics (Suzhou) Co., Ltd. Hearing protection earphone, hearing protection method and computer program storage medium for the same
CN109068226A (en) * 2018-09-29 2018-12-21 安克创新科技股份有限公司 Earphone and its control method
CN109040896A (en) * 2018-11-05 2018-12-18 长沙拓扑陆川新材料科技有限公司 A kind of earphone and apart from detection cut-in method
CN109391869A (en) * 2018-11-05 2019-02-26 长沙拓扑陆川新材料科技有限公司 A kind of earphone and ear canal judge cut-in method
CN109753777A (en) * 2018-12-29 2019-05-14 上海瑾盛通信科技有限公司 A kind of personal identification method, device, storage medium and mobile terminal
CN111065020A (en) * 2019-11-07 2020-04-24 华为终端有限公司 Method and device for processing audio data
CN111065020B (en) * 2019-11-07 2021-09-07 华为终端有限公司 Method and device for processing audio data
WO2022037434A1 (en) * 2020-08-20 2022-02-24 华为技术有限公司 Earphone

Also Published As

Publication number Publication date
CN104484150B (en) 2017-08-11

Similar Documents

Publication Publication Date Title
CN104484150A (en) Audio play method, audio play device and terminal
JP6489563B2 (en) Volume control method, system, device and program
US8363823B1 (en) Two microphone uplink communication and stereo audio playback on three wire headset assembly
CN102413402A (en) Audio frequency control method of audio frequency output device and audio frequency output device
KR20140047201A (en) Device and method for detecting insertion of ear-mic phone in terminal
CN102143421B (en) Terminal and method for processing audio of terminal
CN103078997A (en) Method and system for setting volume of mobile terminal and mobile terminal
CN106302997A (en) A kind of output control method, electronic equipment and system
US10136209B2 (en) Method, apparatus, and system for supplying power to active noise reduction headset
CN105744325B (en) Audio and video playing control method and audio and video playing control device
CN105100330A (en) Method and mobile terminal for optimizing equipment sound effect
CN106303816B (en) Information control method and electronic equipment
CN107621933B (en) Audio playing method and device and related medium product
CN109040896B (en) Earphone and distance detection access method
CN103929692B (en) Audio information processing method and electronic equipment
CN101873363A (en) Method and terminal for restraining noise by using double microphones
CN104821796A (en) Volume control method, playing device, mobile terminal and system
CN104581515A (en) Audio playing device and method as well as mobile terminal
CN104869505A (en) Volume control method, playing device, mobile terminal and system
CN103297896B (en) A kind of audio-frequency inputting method and electronic equipment
CN106534578A (en) Electronic equipment and sound control method thereof
CN106412760B (en) Earphone compatible device
CN103986818A (en) Information processing method and electronic device
AU2017425543B2 (en) Multipurpose bluetooth interface and controller
CN103809754B (en) Information processing method and electronic device

Legal Events

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