CN109343820A - A kind of control method, device and terminal that audio plays - Google Patents
A kind of control method, device and terminal that audio plays Download PDFInfo
- Publication number
- CN109343820A CN109343820A CN201811191293.0A CN201811191293A CN109343820A CN 109343820 A CN109343820 A CN 109343820A CN 201811191293 A CN201811191293 A CN 201811191293A CN 109343820 A CN109343820 A CN 109343820A
- Authority
- CN
- China
- Prior art keywords
- audio signal
- loudspeaker
- audio
- terminal
- output
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
Abstract
This application involves field of electronic devices.This application provides control method, device and terminals that a kind of audio plays, wherein the control method that audio plays includes: whether the audio signal for the loudspeaker output that the terminal is detected when terminal plays audio file by loudspeaker meets preset condition;If the audio signal of the loudspeaker output does not meet preset condition, the audio signal is exported by the earpiece of the terminal.The technical solution of the application passes through the switching of terminal speaker and earpiece, solves the problems, such as that loudspeaker audio is poor, improves the audio experience of user.
Description
Technical field
This application involves field of electronic device, control method, device and the end played in particular to a kind of audio
End.
Background technique
The general development of terminal, so that requirement of the user for audio experience is higher and higher.The loudspeaking of terminal at present
Device mostly uses bottom to go out sound greatly, and in order to preferably go out audio fruit, terminal bottom can design a discharge sound hole.Such as in special screne
Middle user, which blocks mobile phone speaker such as both hands transverse screen and holds mobile phone, sees that video or play games can block mobile phone speaker goes out acoustic aperture,
There is the problem of loudspeaker sound is small, even without sound, causes loudspeaker audio difference and audio user experience effect bad.
Summary of the invention
In order to solve the problems, such as that loudspeaker audio difference and audio user experience effect are bad, the embodiment of the present application first party
Face provides a kind of control method that audio plays, comprising the following steps: when terminal plays audio file by loudspeaker, inspection
Whether the audio signal for surveying the loudspeaker output of the terminal meets preset condition;If the audio signal of the loudspeaker output is not
Meet preset condition, the audio signal is exported by the earpiece of the terminal.
Wherein, described when terminal plays audio file by the loudspeaker, detect the loudspeaker output of the terminal
Audio signal whether to meet preset condition include: the first audio signal for obtaining the loudspeaker and normally exporting;When the end
When end plays audio file by the loudspeaker, the second audio signal of the loudspeaker output is obtained;Compare described second
Audio signal and first audio signal;If the deviation between second audio signal and first audio signal is greater than
Equal to preset threshold, the audio signal of the loudspeaker output does not meet preset condition;If second audio signal with it is described
Deviation between first audio signal is less than preset threshold, and the audio signal of the loudspeaker output meets preset condition.
Wherein, the audio signal of the loudspeaker output is obtained by the microphone of the terminal.
Wherein, described when the terminal plays audio file by loudspeaker, obtain the second of the loudspeaker output
Audio signal includes: every preset time interval, obtaining primary second audio signal.
Wherein, comparison second audio signal includes with first audio signal: comparison second audio
At least two in the frequency of signal and first audio signal, amplitude and phase.
Wherein, if the audio signal of loudspeaker output does not meet preset condition, pass through the earpiece of the terminal
Exporting the audio signal includes: the loudspeaker and the earpiece while exporting the audio signal;If the loudspeaking
The audio signal of device output does not meet preset condition, after the earpiece output audio signal of the terminal further include:
Whether the audio signal for detecting loudspeaker output meets preset condition, if the audio signal of loudspeaker output meet it is pre-
If condition, stop exporting the audio signal by the earpiece, the audio signal is exported by the loudspeaker.
Wherein, if the audio signal of loudspeaker output does not meet preset condition, pass through the earpiece of the terminal
After exporting the audio signal further include: issue the user with the earpiece and export the audio signal of the loudspeaker output and mention
Show information.
The embodiment of the present application second aspect provides a kind of control device that audio plays, comprising: detection unit, for examining
Whether the audio signal for surveying the loudspeaker output of terminal meets preset condition;Output unit, the sound for loudspeaker output
When frequency signal does not meet preset condition, the audio signal is exported by the earpiece of the terminal.
Wherein, the detection unit is also used to obtain the first audio signal that the loudspeaker normally exports;When the end
When end plays audio file by the loudspeaker, the second audio signal of the loudspeaker output is obtained;Compare described second
Audio signal and first audio signal;If the deviation between second audio signal and first audio signal is greater than
Equal to preset threshold, the audio signal of the loudspeaker output does not meet preset condition;If second audio signal with it is described
Deviation between first audio signal is less than preset threshold, and the audio signal of the loudspeaker output meets preset condition.
The embodiment of the present application third aspect provides a kind of terminal, including memory, processor and is stored in described deposit
In reservoir and the computer program that can run on the processor, the processor are realized when executing the computer program
The step of stating any one the method.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer journey
Sequence, when which is executed by processor the step of realization any of the above-described the method.
The embodiment of the present application provides the control method that a kind of audio plays, by the technical solution of the embodiment of the present application,
It is when the audio signal of loudspeaker output does not meet preset condition, the audio signal of loudspeaker output is defeated by the earpiece of terminal
Out, it by the switching of terminal speaker and earpiece, solves the problems, such as that loudspeaker audio is poor, improves the audio experience effect of user
Fruit.
Detailed description of the invention
Fig. 1 is the exemplary application schematic diagram of a scenario one of the application terminal;
Fig. 2 is a kind of structural schematic diagram of loudspeaker of terminal shown in FIG. 1;
Fig. 3 is the flow diagram one for the control method that the application audio plays;
Fig. 4 is the exemplary application schematic diagram of a scenario two of the application terminal;
Fig. 5 a is the exemplary application schematic diagram of a scenario three of the application terminal;
Fig. 5 b is the exemplary application schematic diagram of a scenario four of the application terminal;
Fig. 6 is the flow diagram two for the control method that the application audio plays;
Fig. 7 is the flow diagram three for the control method that the application audio plays;
Fig. 8 is the flow diagram four for the control method that the application audio plays;
Fig. 9 is the exemplary application schematic diagram of a scenario five of the application terminal;
Figure 10 is the structural schematic diagram one of the control device of the application audio signal;
Figure 11 is the structural schematic diagram two of the control device of the application audio signal;
Figure 12 is the structural schematic diagram of the application terminal.
Specific embodiment
The application is further introduced with reference to the accompanying drawings and examples.
In following introductions, term " first ", " second " only for descriptive purposes, and should not be understood as instruction or dark
Show relative importance.Following introductions provide multiple embodiments of the application, can replace or merge between different embodiments
Combination, therefore the application is it is also contemplated that all possible combinations comprising documented identical and/or different embodiments.Thus, such as
Fruit one embodiment include feature A, B, C, another embodiment include feature B, D, then the application also should be regarded as include containing
A, the every other possible combined embodiment of one or more of B, C, D, although the embodiment may be in the following contents
In have specific literature record.
In following introductions, statement " having ", " can have ", "comprising" and " comprising " or " may include " and " can be with
Including " indicate that there are corresponding feature (for example, elements of such as numerical value, function, operation or component etc), but be not excluded for depositing
In additional feature.
In following introductions, when an element (for example, first element) is referred to as " (operation or communication) is couple to " or " connects
Be connected to " another element (for example, second element) when, other elements can be directly coupled or connected, or may exist
Intermediary element (for example, third element).On the other hand, when an element (for example, first element) referred to as " is directly coupled to "
Or when " being directly connected to " another element (for example, second element), it should be appreciated that be not present intermediary element (for example, third element).
Following description provides example, and does not carry out to range, applicability described in claims or example
Limitation.The function and arrangement of the element of description can be made a change in the case where not departing from the range of teachings herein.Respectively
Various processes or component can suitably be omitted, substitute or be added to a example.Such as described method can be with described suitable
Sequence different sequence executes, and can add, omits or combine various steps.Furthermore, it is possible to will be retouched about some examples
The feature stated is combined in other examples.
The terminal of the application can be directed to user and provide the equipment of voice and/or data association, have loudspeaker and
The handheld device of earpiece or other processing equipments that audio file can be played.It such as can be mobile phone, tablet computer, a
People's computer, notebook, desktop computer, server, personal digital assistant (Personal Digital Assistant,
PDA), E-book reader, ambulatory medical device, wearable device, multimedia player etc., but not limited to this.Below with hand
It is introduced for machine.
Fig. 1 is the exemplary application schematic diagram of a scenario one of the application terminal, as shown in Figure 1, when mobile phone 50 plays audio text
When part, pass through 23 output audio signal of loudspeaker.For state one for playing music, playing music has been mobile phone in the present embodiment
One of important amusement function, user can pass through the loudspeaker 22 of mobile phone 50 by the music player software opened in mobile phone 50
Play specified music.When the loudspeaker 22 of mobile phone 50 exports music signal at that time, in order to preferably go out audio fruit, loudspeaker 22
Bottom is mostly used to go out sound greatly, Fig. 2 is a kind of structural schematic diagram of loudspeaker of terminal shown in FIG. 1, as shown in Fig. 2, mobile phone 50
Bottom can design a discharge sound hole 27 of loudspeaker 22, and loudspeaker 22 passes through 27 output audio signal of sound outlet hole.In special screne
Middle loudspeaker 22 breaks down or the sound outlet hole 27 of loudspeaker 22 is blocked when object 28 blocks, such as both hands transverse screen holds mobile phone
50 see video or play games and can shelter from the sound outlet hole 27 of mobile phone speaker 22, and it is small loudspeaker sound occur, even without sound
The problem of.In audio playing process, since the sound outlet hole 27 of loudspeaker 22 object 28 that is blocked blocks, the sound that loudspeaker 22 exports
Frequency signal will appear the problem of not meeting preset condition, and the interruption for causing audio file to play, user does not hear audio signal, use
Family audio experience is bad.
In this application, when terminal plays audio file by loudspeaker, when the sound outlet hole 27 of loudspeaker 22 is blocked object
28 when blocking, it may appear that the audio signal that the loudspeaker 22 of terminal exports does not meet preset condition, can will be defeated on loudspeaker 22
The earpiece 23 that audio signal out is switched to terminal continues to output, and as shown in figure 1 shown in state two, passes through terminal speaker and earpiece
Switching, solve the problems, such as that loudspeaker audio is poor, realize the normal play of terminal audio frequency file, improve the audio of user
Experience.
Fig. 1 is merely illustrative to show a kind of structural schematic diagram that may be present of terminal in the embodiment of the present application, and this Shen
Please the terminal in embodiment be also likely to be there are one group of earpiece 23 in other structures, such as terminal, this group of earpiece 23 only includes one
A earpiece 23.
For the ease of the understanding of those skilled in the art, the application is by following embodiment to technical side provided by the present application
The specific implementation process of case is illustrated.
Embodiment one
Fig. 3 is the flow diagram one for the control method that the application audio plays, as shown in figure 3, the present embodiment audio is broadcast
The control method put is the following steps are included: step 101, terminal play audio file by loudspeaker;Step 102, terminal is detected
Loudspeaker output audio signal whether meet preset condition;Step 103, if loudspeaker output audio signal do not meet it is pre-
If condition, pass through the earpiece output audio signal of terminal.Step 101-103 is described below.
Step 101, terminal plays audio file by loudspeaker.
In some embodiments, user terminal input play instruction, such as user can click mobile phone touch screen it is defeated
Entering play instruction, after terminal receives play instruction, play instruction searches corresponding audio file collection to terminal based on the received,
Terminal plays audio file specified by play instruction in audio file collection by loudspeaker.Audio file for example can be song
At least one of bent file, recording file and talking book.
In further embodiments, the multiple loudspeakers that may include in a terminal, multiple loudspeaker mutual cooperations make
With for exporting the signal of different frequency range respectively, to provide more good audio for user.In some embodiments, such as Fig. 4
For the exemplary application schematic diagram of a scenario two of the application terminal, as shown in figure 4, including a loudspeaker in terminal, terminal passes through
Loudspeaker plays audio file.
Step 102, whether the audio signal for detecting the loudspeaker output of terminal meets preset condition.
In some embodiments, whether loudspeaker output audio signal, the audio signal that terminal detection loudspeaker plays accord with
Close preset condition.
Step 103, if the audio signal of loudspeaker output does not meet preset condition, audio letter is exported by the earpiece of terminal
Number.
Fig. 5 a is the exemplary application schematic diagram of a scenario three of the application terminal, as shown in Figure 5 a, in some embodiments, when
When loudspeaker breaks down, the audio signal of the loudspeaker output of terminal does not meet preset condition, the audio that loudspeaker is exported
Signal is exported by the earpiece of terminal, earpiece output audio signal, stops passing through loudspeaker output audio signal.
Fig. 5 b is the exemplary application schematic diagram of a scenario four of the application terminal, as shown in Figure 5 b, in further embodiments,
When loudspeaker is normal, when the sound outlet hole of loudspeaker is blocked by obstructions, the audio signal of the loudspeaker output of terminal does not meet pre-
If condition, the audio signal of loudspeaker output is passed through into the earpiece output of terminal, loudspeaker and earpiece while output audio signal.
In the control method that the present embodiment audio plays, when the audio signal of loudspeaker output does not meet preset condition,
The audio signal of loudspeaker output is exported by the earpiece of terminal, by the switching of terminal speaker and earpiece, solves and raises
The problem of sound device audio difference, realizes the normal play of terminal audio frequency file, improves the audio experience of user.
Embodiment two
Fig. 6 is the flow diagram two for the control method that the application audio plays, as shown in fig. 6, the present embodiment audio is broadcast
The control method put is the following steps are included: step 201, terminal play audio file by loudspeaker;Step 202A obtains loudspeaking
The first audio signal that device normally exports;It is defeated to obtain loudspeaker when terminal exports audio file by loudspeaker by step 202B
The second audio signal out;Step 202C, the second audio signal of comparison and the first audio signal, the audio of detection loudspeaker output
Whether signal meets preset condition;Step 203, if the audio signal of loudspeaker output does not meet preset condition, pass through terminal
Earpiece output audio signal.Lower mask body introduction step 201-203.
Step 201, terminal plays audio file by loudspeaker.
This step is hereinbefore introduced, and details are not described herein again.
Step 202A obtains the first audio signal that loudspeaker normally exports.
In some embodiments, the microphone of terminal obtains the first audio signal of loudspeaker normal play.Step 202A
It can also be executed before step 201.Microphone can be to be multiple, and microphone can be set at terminal bottom, side or the back side.
The microphone type of terminal is generally divided into moving-coil type, crystal formula, carbon granule formula, aluminium band type and condenser type etc., the Mike of the present embodiment
Wind can be the DYN dynamic microphone that terminal bottom is arranged in.
Step 202B obtains the second audio signal of loudspeaker output when terminal plays audio file by loudspeaker.
In some embodiments, when terminal plays audio file by loudspeaker, the microphone of terminal obtains loudspeaker
Second audio signal of output.The microphone of terminal is settable at the terminal, is also possible to the external microphone of terminal.
In further embodiments, the microphone of terminal obtains second audio signal every preset time interval.
Step 202C, the second audio signal of comparison and the first audio signal, whether the audio signal of detection loudspeaker output
Meet preset condition.
In some embodiments, the second audio signal of comparison and the first audio signal;If the second audio signal and the first sound
Deviation between frequency signal is more than or equal to preset threshold, and the audio signal of loudspeaker output does not meet preset condition, at this time may
It is blocked by obstructions for the sound outlet hole of loudspeaker, it is also possible to break down for loudspeaker;If the second audio signal and the first audio
Deviation between signal is less than preset threshold, and the audio signal that loudspeaker plays meets preset condition.
In some embodiments, the frequency and phase of the second audio signal and the first audio signal are compared.If the second audio
Frequency departure and phase deviation between signal and the first audio signal are both greater than equal to preset threshold, the audio of loudspeaker output
Signal does not meet preset condition, may be blocked by obstructions at this time for the sound outlet hole of loudspeaker, it is also possible to event occurs for loudspeaker
Barrier.
In further embodiments, the frequency and amplitude of the second audio signal and the first audio signal are compared.If the second sound
Frequency departure and amplitude error between frequency signal and the first audio signal are both greater than equal to preset threshold, the sound of loudspeaker output
Frequency signal does not meet preset condition, may be blocked by obstructions at this time for the sound outlet hole of loudspeaker, it is also possible to occur for loudspeaker
Failure.
In further embodiments, the amplitude and phase of the second audio signal and the first audio signal are compared.If the second sound
Amplitude error and phase deviation between frequency signal and the first audio signal are both greater than equal to preset threshold, the sound of loudspeaker output
Frequency signal does not meet preset condition, may be blocked by obstructions at this time for the sound outlet hole of loudspeaker, it is also possible to occur for loudspeaker
Failure.
Step 203, if the audio signal of loudspeaker output does not meet preset condition, audio letter is exported by the earpiece of terminal
Number.
This step is hereinbefore introduced, and details are not described herein again.
In the control method that the present embodiment audio plays, the microphone of terminal obtains the first audio that loudspeaker normally exports
Signal, when the loudspeaker of terminal exports audio file, the microphone of terminal obtains one time second every preset time interval
Audio signal;The second audio signal and the first audio signal are compared, when not meeting for the audio signal for detecting loudspeaker output
When preset condition, the audio signal that loudspeaker exports is switched to the earpiece of terminal, by the switching of earpiece and loudspeaker, is solved
The problem of loudspeaker audio difference, realizes the normal play of terminal audio frequency file, improves the audio experience of user.
Embodiment three
Fig. 7 is the flow diagram three for the control method that the application audio plays, as shown in fig. 7, the present embodiment audio is broadcast
The control method put is the following steps are included: step 301, terminal play audio file by loudspeaker;Step 302, terminal is detected
Loudspeaker output audio signal whether meet preset condition;Step 303, if loudspeaker output audio signal do not meet it is pre-
If condition, pass through the earpiece output audio signal of terminal;Step 304, the prompt letter of earpiece output audio signal is issued the user with
Breath.Step 301-304 is described in detail below.
Step 301, terminal plays audio file by loudspeaker.
This step is hereinbefore introduced, and details are not described herein again.
Step 302, whether the audio signal for detecting the loudspeaker output of terminal meets preset condition.
This step is hereinbefore introduced, and details are not described herein again.
Step 303, if the audio signal of loudspeaker output does not meet preset condition, audio letter is exported by the earpiece of terminal
Number.
This step is hereinbefore introduced, and details are not described herein again.
Step 304, the prompt information of earpiece output audio signal is issued the user with.
In some embodiments, loudspeaker breaks down, and the audio signal that the loudspeaker of terminal plays does not meet default item
Part after the audio signal that loudspeaker exports is switched to the earpiece of terminal, stops through loudspeaker output audio signal, Xiang Yong
Family issues the prompt information of earpiece output audio signal, for prompting user's earpiece output audio signal.
In further embodiments, loudspeaker is normal, and the sound outlet hole of loudspeaker is blocked by obstructions, and the loudspeaker of terminal is defeated
Audio signal out does not meet preset condition, the audio file of loudspeaker output is exported by the earpiece of terminal, loudspeaking at this time
Device and earpiece while output audio signal, issue the user with the prompt information of earpiece output audio signal, for prompting user to listen
Cylinder output audio signal.
It, will when the audio signal of loudspeaker output does not meet preset condition in the control method that the present embodiment audio plays
The audio signal of loudspeaker output is switched to the earpiece of terminal, and issues the user with the prompt information of earpiece output audio signal,
The loudspeaker of prompt user terminal is possible to break down or the sound outlet hole of loudspeaker is possible to be blocked by obstructions, Yong Huke
To repair loudspeaker or take loudspeaker shelter away, it ensure that the normal play of terminal audio frequency file, improve the sound of user
Frequency experience effect.
Example IV
Fig. 8 is the flow diagram four for the control method that the application audio plays, as shown in figure 8, the present embodiment audio is broadcast
The control method put is the following steps are included: step 401, terminal play audio file by loudspeaker;Step 402, terminal is detected
Loudspeaker output audio signal whether meet preset condition;Step 403, if loudspeaker output audio signal do not meet it is pre-
If condition, by the earpiece output audio signal of terminal, loudspeaker and earpiece output audio signal simultaneously;Step 404, detection is raised
Whether the audio signal of sound device output meets preset condition, if the audio signal of loudspeaker output meets preset condition, stops logical
Earpiece output audio signal is crossed, loudspeaker output audio signal is passed through.Step 401-404 is described in detail below.
Step 401, terminal plays audio file by loudspeaker.
This step is hereinbefore introduced, and details are not described herein again.
Step 402, whether the audio signal for detecting the loudspeaker output of terminal meets preset condition.
This step is hereinbefore introduced, and details are not described herein again.
Step 403, if the audio signal of loudspeaker output does not meet preset condition, audio letter is exported by the earpiece of terminal
Number, loudspeaker and earpiece playing audio signal simultaneously.
Part identical with step 101 is hereinbefore introduced in this step, and details are not described herein again.In some implementations
In example, loudspeaker is normal, and the sound outlet hole of loudspeaker is blocked by obstructions, and the audio signal of loudspeaker output does not meet default item
Part, by the earpiece output audio signal of terminal, loudspeaker and earpiece playing audio signal simultaneously.
Step 404, whether the audio signal of detection loudspeaker output meets preset condition, if the audio letter of loudspeaker output
Number meet preset condition, stops passing through loudspeaker output audio signal by earpiece output audio signal.
Fig. 9 is the exemplary application schematic diagram of a scenario five of the application terminal, as shown in state two in Fig. 9, in some implementations
In example, the sound outlet hole of loudspeaker is blocked by obstructions, and is detected that the audio signal of loudspeaker output does not meet preset condition, will be raised
The audio signal of sound device output is switched to the earpiece of terminal, and loudspeaker is normal at this time, and the sound outlet hole of loudspeaker is blocked by obstructions,
Loudspeaker and earpiece while output audio signal detect the audio signal of loudspeaker output every preset time interval
Whether preset condition is met.As shown in state three in Fig. 9, after shelter is taken away, the audio signal of loudspeaker output is detected
Meet preset condition, the audio signal of earpiece output is exported by loudspeaker, stops passing through by earpiece output audio signal
Loudspeaker output audio signal.
In the control method that the present embodiment audio plays, the sound outlet hole of loudspeaker is blocked by obstructions, and detects loudspeaker
The audio signal of output does not meet preset condition, and the audio signal that loudspeaker exports is switched to the earpiece of terminal, at this time loudspeaking
Device and earpiece output audio signal simultaneously, every preset time interval, detect the output of a loudspeaker audio signal whether
Meet preset condition, after shelter is taken away, detects that the audio signal of loudspeaker output meets preset condition, earpiece is exported
Audio signal exported by loudspeaker, stop passing through by loudspeaker output audio signal by earpiece output audio signal
The switching of earpiece and loudspeaker realizes the normal play of terminal audio frequency file, improves the audio experience of user.
Figure 10 is the structural schematic diagram one of the control device of the application audio signal, as shown in Figure 10, the present embodiment audio
The control device 10 of broadcasting includes detection unit 11 and output unit 12.
Whether detection unit 11, the audio signal that the loudspeaker for detecting terminal exports meet preset condition;
Output unit 12, it is defeated by the earpiece of terminal when the audio signal for loudspeaker output does not meet preset condition
Audio signal out.
In some embodiments, every preset time interval, detection unit 11 detects the audio of loudspeaker output
Whether signal meets preset condition.
In further embodiments, detection unit 11 is also used to obtain the first audio signal that loudspeaker normally exports;When
When terminal plays audio file by loudspeaker, the second audio signal of loudspeaker output is obtained;Compare the second audio signal with
First audio signal;If the deviation between the second audio signal and the first audio signal is more than or equal to preset threshold, loudspeaker is defeated
Audio signal out does not meet preset condition;If the deviation between the second audio signal and the first audio signal is less than default threshold
The audio signal of value, loudspeaker output meets preset condition.
In further embodiments, loudspeaker breaks down, and detection unit 11 detects the audio signal of loudspeaker output
Preset condition is not met, the audio signal that output unit 12 exports loudspeaker is exported by the earpiece of terminal, and earpiece exports sound
Frequency signal stops through loudspeaker output audio signal, and whether the audio signal of the stopping detection loudspeaker output of detection unit 11
Meet preset condition.
In further embodiments, loudspeaker is normal, and the sound outlet hole of loudspeaker is blocked by obstructions, and detection unit 11 detects
The audio signal exported to loudspeaker does not meet preset condition, and the audio signal that loudspeaker exports is passed through terminal by output unit 12
Earpiece output, loudspeaker and earpiece output audio signal simultaneously at this time, detection unit 11 is every preset time interval, detection
Whether the audio signal of loudspeaker output meets preset condition.After shelter is taken away, detection unit 11 detects loudspeaking
The audio signal of device output meets preset condition, and the audio signal that output unit 12 exports earpiece is defeated by the loudspeaker of terminal
Out, stop passing through loudspeaker output audio signal by earpiece output audio signal.
A kind of control device that audio plays is present embodiments provided, detects that the loudspeaker of terminal is defeated by detection unit
Audio signal out does not meet preset condition, and the audio signal that output unit exports loudspeaker is exported by the earpiece of terminal,
By the switching of terminal speaker and earpiece, the normal play of terminal audio frequency file is realized, improves the audio experience of user
Effect.
Figure 11 is the structural schematic diagram two of the control device of the application audio signal, as shown in figure 11, the present embodiment audio
The control device 25 of broadcasting includes detection unit 11, output unit 12 and prompt unit 13.
Whether detection unit 11, the audio signal that the loudspeaker for detecting terminal exports meet preset condition;
Output unit 12 when the audio signal for exporting when loudspeaker does not meet preset condition, passes through the earpiece of terminal
Output audio signal.
Prompt unit 13, the prompt information of the audio signal for issuing the user with earpiece output loudspeaker output.
In some embodiments, loudspeaker breaks down, and detection unit 11 detects the audio signal of loudspeaker output not
Meet preset condition, the audio signal that output unit 12 exports loudspeaker is exported by the earpiece of terminal, and earpiece exports audio
Signal stops through loudspeaker output audio signal, and prompt unit 13 is used to send mentioning for earpiece output audio signal to user
Show information, to remind user to check loudspeaker.
In further embodiments, loudspeaker does not have failure, and the sound outlet hole of loudspeaker is blocked by obstructions, detection unit 11
Detect that the audio signal of loudspeaker output does not meet preset condition, output unit 12 passes through the audio signal that loudspeaker exports
The earpiece of terminal exports, and output audio signal, prompt unit 13 are used to send earpiece to user simultaneously for loudspeaker and earpiece at this time
The prompt information of output audio signal, to remind user to take shelter away.Detection unit 11 is every preset time interval, detection
Whether the audio signal of loudspeaker output meets preset condition.After shelter is taken away, detection unit 11 detects loudspeaking
The audio signal of device output meets preset condition, and the audio signal that output unit 12 exports earpiece is defeated by the loudspeaker of terminal
Out, stop through earpiece output audio signal, by loudspeaker output audio signal, prompt unit 13 is used to send to user and raise
Sound device plays the prompt information of the audio signal of earpiece output, to remind user's loudspeaker normal output audio signal again.
A kind of control device that audio plays is present embodiments provided, earpiece output is issued the user with by prompt unit and is raised
The prompt information of the audio signal of sound device output makes user clearly know the loudspeaker failure of terminal or going out for loudspeaker
Sound hole is blocked by obstructions, and can be repaired loudspeaker or be taken loudspeaker shelter away, realize the normal of terminal audio frequency file
It plays, improves the audio experience of user.
Figure 12 is the structural schematic diagram of the application terminal, and as shown in figure 12, the present embodiment controlling terminal 25 includes processor
20, memory 21, loudspeaker 22, earpiece 23, microphone 26 lead between processor 20, memory 21, loudspeaker 22 and earpiece 23
Bus 24 is crossed to be communicated.
In some embodiments, processor 20 may be single or multiple core central processing unit, or be specific integrated electricity
Road, or it is configured to implement one or more integrated circuits of the application.Memory 21 can store for high random access
Device (Random Access Memory, RAM), or nonvolatile memory (non-volatile memory), such as
At least one magnetic disk storage.Memory 21 may include program in computer instruction 211 for storing computer instruction 211
Code.
In some embodiments, 22 output audio signal of loudspeaker.Processor 20 is used to obtain the audio of loudspeaker output
Signal, and whether the audio signal for detecting the output of loudspeaker 22 meets preset condition.Earpiece 23 is used for output audio signal, when raising
The audio signal that sound device 22 exports is not when meeting preset condition, and processor 20 switches audio signal that loudspeaker 22 exports to earpiece
23 outputs.
In some embodiments, the loudspeaker 22 of terminal breaks down, and the audio signal that loudspeaker 22 exports does not meet pre-
If condition, processor 20 exports the audio signal that loudspeaker 22 exports by the earpiece 23 of terminal, and earpiece 23 exports audio letter
Number, stop passing through 22 output audio signal of loudspeaker.
In further embodiments, the loudspeaker 22 of terminal is normal, and the sound outlet hole of loudspeaker 22 is blocked by obstructions, loudspeaking
The audio signal that device 22 exports does not meet preset condition, and the audio signal that loudspeaker 22 exports is passed through listening for terminal by processor 20
23 output of cylinder, loudspeaker 23 and earpiece 22 while output audio signal, after shelter is taken away, processor 20 detects loudspeaker
The audio signal of 22 outputs meets preset condition, and processor 20 exports the audio signal that earpiece 23 exports by loudspeaker 22,
Stop through 23 output audio signal of earpiece, loudspeaker 22 continues to output audio signal.
In some embodiments, it is first that the microphone 26 of terminal, which is used to obtain the audio signal that loudspeaker 22 normally exports,
Audio signal, the audio signal for being also used to obtain the output of loudspeaker 22 is the second audio signal.Processor 20 is also used to compare
In the frequency of two audio signals and the first audio signal, the second audio signal of comparison and the first audio signal, amplitude and phase
At least two, if the deviation between the second audio signal and the first audio signal is more than or equal to preset threshold, loudspeaker 22 is exported
Audio signal do not meet preset condition;If the deviation between the second audio signal and the first audio signal is less than preset threshold,
The audio signal that loudspeaker 22 exports meets preset condition.
In further embodiments, the microphone 26 of terminal bottom is set every preset time interval, is obtained primary
The second audio signal that loudspeaker 22 exports.
In further embodiments, processor 20 is also used to not meet preset condition when the audio signal that loudspeaker 22 exports
When, after the audio signal that loudspeaker 22 is exported passes through 23 output audio signal of earpiece of terminal, processor 20 is sent out to user
The prompt information of 23 output audio signal of earpiece out.
In this specification, for the embodiment of the controlling terminal of audio signal, since it is substantially similar to audio letter
Number control method embodiment, related place refers to the introduction of the control method embodiment of audio signal.
The embodiment of the present application provides a kind of terminal, and the audio signal of the loudspeaker output of terminal is detected by processor
When not meeting preset condition, the audio signal of loudspeaker output is exported by the earpiece of terminal, simultaneous processor is sent out to user
The prompt information of the audio signal of earpiece output loudspeaker output out makes user clearly know the audio of the loudspeaker output of terminal
Signal does not meet preset condition, can repair loudspeaker or take loudspeaker shelter away, therefore uses the embodiment of the present application
Terminal realizes the normal play of terminal audio frequency file by the switching of loudspeaker and earpiece, improves the audio experience of user
Effect.
Those skilled in the art can be understood that the technical solution of the application can be come by software and/or hardware
It realizes." unit " and " module " in this specification refers to complete independently or cooperates with other component complete specific function
Software and/or hardware, wherein hardware for example can be FPGA (Field-ProgrammaBLE Gate Array, scene can compile
Journey gate array), IC (Integrated Circuit, integrated circuit) etc..
Unit and/or module are managed everywhere in the application, can pass through the analog circuit reality of realization function described herein
It is existing, it can also be realized by executing the software of function described herein.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, which is located
Manage the step of realizing the above method when device executes.Wherein, computer readable storage medium can include but is not limited to any type
Disk, including floppy disk, CD, DVD, CD-ROM, mini drive and magneto-optic disk, ROM, RAM, EPROM, EEPROM, DRAM,
VRAM, flash memory device, magnetic or optical card, nanosystems (including molecular memory IC), or be suitable for store instruction and/
Or any kind of medium or equipment of data.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or
It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion
Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit
Or communication connection, it can be electrical, mechanical or other forms.
Each functional unit in each embodiment of the application can be fully integrated in one processing unit, be also possible to each
Unit can also be integrated in one unit individually as a unit with two or more units;It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Described above is only preferred embodiment of the present application, is not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.
Claims (11)
1. the control method that a kind of audio plays characterized by comprising
When terminal plays audio file by loudspeaker, whether the audio signal for detecting the loudspeaker output of the terminal meets
Preset condition;
If the audio signal of the loudspeaker output does not meet preset condition, the audio is exported by the earpiece of the terminal and is believed
Number.
2. the control method that audio according to claim 1 plays, which is characterized in that described when terminal is broadcast by loudspeaker
When playback frequency file, whether the audio signal for detecting the loudspeaker output of the terminal, which meets preset condition, includes:
Obtain the first audio signal that the loudspeaker normally exports;
When the terminal plays audio file by the loudspeaker, the second audio signal of the loudspeaker output is obtained;
Compare second audio signal and first audio signal;
If the deviation between second audio signal and first audio signal is more than or equal to preset threshold, the loudspeaker
The audio signal of output does not meet preset condition;
If the deviation between second audio signal and first audio signal is less than preset threshold, the loudspeaker output
Audio signal meet preset condition.
3. the control method that audio according to claim 2 plays characterized by comprising
The audio signal of the loudspeaker output is obtained by the microphone of the terminal.
4. the control method that audio according to claim 2 or 3 plays, which is characterized in that described when the terminal passes through
When the loudspeaker plays audio file, the second audio signal for obtaining the loudspeaker output includes:
Every preset time interval, primary second audio signal is obtained.
5. the control method played according to the described in any item audios of Claims 2 or 3, which is characterized in that described in the comparison
Second audio signal includes with first audio signal:
Compare the frequency of second audio signal and first audio signal, at least two in amplitude and phase.
6. the control method that audio according to any one of claim 1-3 plays, which is characterized in that if described raise
The audio signal of sound device output does not meet preset condition, exports the audio signal by the earpiece of the terminal and includes:
The loudspeaker and the earpiece export the audio signal simultaneously;
If the audio signal of the loudspeaker output does not meet preset condition, the sound is exported by the earpiece of the terminal
After frequency signal further include:
Whether the audio signal for detecting the loudspeaker output meets preset condition, if the audio signal symbol of loudspeaker output
Preset condition is closed, stops exporting the audio signal by the earpiece, the audio signal is exported by the loudspeaker.
7. the control method that audio according to any one of claim 1-3 plays, which is characterized in that if described raise
The audio signal of sound device output does not meet preset condition, also wraps after exporting the audio signal by the earpiece of the terminal
It includes:
Issue the user with the prompt information that the earpiece exports the audio signal of the loudspeaker output.
8. the control device that a kind of audio plays characterized by comprising
Whether detection unit, the audio signal that the loudspeaker for detecting terminal exports meet preset condition;
Output unit passes through the earpiece of the terminal when audio signal for loudspeaker output does not meet preset condition
Export the audio signal.
9. the control device that audio according to claim 8 plays, which is characterized in that the detection unit is also used to obtain
The first audio signal that the loudspeaker normally exports;When the terminal plays audio file by the loudspeaker, obtain
Second audio signal of the loudspeaker output;Compare second audio signal and first audio signal;If described
Deviation between two audio signals and first audio signal is more than or equal to preset threshold, the audio letter of the loudspeaker output
Number preset condition is not met;If the deviation between second audio signal and first audio signal is less than preset threshold,
The audio signal of the loudspeaker output meets preset condition.
10. a kind of terminal, including memory, processor and storage can be run in the memory and on the processor
Computer program, which is characterized in that the processor realizes that the claims 1-7 is any when executing the computer program
The step of item the method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The step of any one of claim 1-7 the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811191293.0A CN109343820A (en) | 2018-10-12 | 2018-10-12 | A kind of control method, device and terminal that audio plays |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811191293.0A CN109343820A (en) | 2018-10-12 | 2018-10-12 | A kind of control method, device and terminal that audio plays |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109343820A true CN109343820A (en) | 2019-02-15 |
Family
ID=65309353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811191293.0A Pending CN109343820A (en) | 2018-10-12 | 2018-10-12 | A kind of control method, device and terminal that audio plays |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109343820A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839196A (en) * | 2019-10-28 | 2020-02-25 | 华为终端有限公司 | Electronic equipment and playing control method thereof |
CN111629304A (en) * | 2020-05-15 | 2020-09-04 | 维沃移动通信有限公司 | Loudspeaker control method and device and electronic equipment |
CN112201232A (en) * | 2020-08-28 | 2021-01-08 | 星络智能科技有限公司 | Voice output control method, electronic device and computer readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102891914A (en) * | 2011-05-11 | 2013-01-23 | 深圳市福智软件技术有限公司 | Mobile terminal and method for switching answer modes of mobile terminal |
CN103501375A (en) * | 2013-09-16 | 2014-01-08 | 华为终端有限公司 | Method and device for controlling sound effect |
CN103985400A (en) * | 2014-04-18 | 2014-08-13 | 青岛尚慧信息技术有限公司 | Audio file playing system |
CN105718237A (en) * | 2016-01-20 | 2016-06-29 | 广东欧珀移动通信有限公司 | Mobile terminal, method and device for audio switch thereof |
CN106603857A (en) * | 2016-12-29 | 2017-04-26 | 北京奇艺世纪科技有限公司 | Method and device for eliminating whistler in call and intelligent device |
US20170278539A1 (en) * | 2016-03-28 | 2017-09-28 | Lenovo (Beijing) Limited | Method, apparatus and computer program product for audio recording |
CN107621933A (en) * | 2015-09-22 | 2018-01-23 | 广东欧珀移动通信有限公司 | A kind of audio frequency playing method and device and related media production |
CN107920321A (en) * | 2016-10-09 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of loudspeaker faults treating method and apparatus |
-
2018
- 2018-10-12 CN CN201811191293.0A patent/CN109343820A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102891914A (en) * | 2011-05-11 | 2013-01-23 | 深圳市福智软件技术有限公司 | Mobile terminal and method for switching answer modes of mobile terminal |
CN103501375A (en) * | 2013-09-16 | 2014-01-08 | 华为终端有限公司 | Method and device for controlling sound effect |
CN103985400A (en) * | 2014-04-18 | 2014-08-13 | 青岛尚慧信息技术有限公司 | Audio file playing system |
CN107621933A (en) * | 2015-09-22 | 2018-01-23 | 广东欧珀移动通信有限公司 | A kind of audio frequency playing method and device and related media production |
CN105718237A (en) * | 2016-01-20 | 2016-06-29 | 广东欧珀移动通信有限公司 | Mobile terminal, method and device for audio switch thereof |
US20170278539A1 (en) * | 2016-03-28 | 2017-09-28 | Lenovo (Beijing) Limited | Method, apparatus and computer program product for audio recording |
CN107920321A (en) * | 2016-10-09 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of loudspeaker faults treating method and apparatus |
CN106603857A (en) * | 2016-12-29 | 2017-04-26 | 北京奇艺世纪科技有限公司 | Method and device for eliminating whistler in call and intelligent device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839196A (en) * | 2019-10-28 | 2020-02-25 | 华为终端有限公司 | Electronic equipment and playing control method thereof |
CN111629304A (en) * | 2020-05-15 | 2020-09-04 | 维沃移动通信有限公司 | Loudspeaker control method and device and electronic equipment |
CN112201232A (en) * | 2020-08-28 | 2021-01-08 | 星络智能科技有限公司 | Voice output control method, electronic device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109343820A (en) | A kind of control method, device and terminal that audio plays | |
CN108962240A (en) | A kind of sound control method and system based on earphone | |
CN106953990A (en) | The incoming call sound method and mobile terminal of mobile terminal | |
CN106557297A (en) | Based on contextual adaptation audio output | |
CN106341535B (en) | A kind of audio play control method and mobile terminal | |
CN101547245A (en) | Method for playing multitrack audio file through a mobile phone | |
CN107087072A (en) | A kind of audio frequency playing method and mobile terminal | |
CN104507001B (en) | The method for playing music of Baffle Box of Bluetooth | |
CN106302997A (en) | A kind of output control method, electronic equipment and system | |
US9973855B2 (en) | Method and electronic device for controlling output depending on type of external output device | |
WO2012092731A1 (en) | Electronic terminal and ring prompt method of the electronic terminal | |
CN102624961A (en) | Method and terminal for preventing sound crosstalk between external loudspeaker and microphone | |
CN106293599A (en) | A kind of output control method, electronic equipment and output system | |
CN105554631B (en) | Audio switching method, device and electronic equipment | |
CN101673551A (en) | Information processing apparatus and information processing method | |
CN111145773B (en) | Sound field restoration method and device | |
WO2011153779A1 (en) | Method and terminal for noise suppression using dual-microphone | |
CN102496359A (en) | Method and device for realizing multi-party remote karaoke | |
CN110730946B (en) | Volume control method and device of mobile terminal, storage medium and mobile terminal | |
CN103377674A (en) | Audio player and control method thereof | |
CN112243182B (en) | Pickup circuit, method and device | |
CN110431915B (en) | Terminal equipment, DSD audio playing circuit and method | |
CN107124512B (en) | The switching method and apparatus of audio-frequency play mode | |
CN107957860A (en) | Can adjust automatically sound output method and electronic device | |
US20120134499A1 (en) | Audio Processing Devices, Multi-Channel Audio Application System, and Method Thereof |
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 |