CN105848052A - Microphone switching method and terminal - Google Patents
Microphone switching method and terminal Download PDFInfo
- Publication number
- CN105848052A CN105848052A CN201510022069.9A CN201510022069A CN105848052A CN 105848052 A CN105848052 A CN 105848052A CN 201510022069 A CN201510022069 A CN 201510022069A CN 105848052 A CN105848052 A CN 105848052A
- Authority
- CN
- China
- Prior art keywords
- mike
- main
- input
- voice
- voice signal
- 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
Links
Landscapes
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a microphone switching method and a terminal, and relates to the technical field of electronic terminals. The problem that the terminal cannot perform normal voice communication when a main microphone in a plurality of microphones is abnormal in the prior art can be solved. The specific scheme is as follows: detecting whether a voice signal input by the main microphone in the plurality of microphones is abnormal, if detecting that the voice signal input by the main microphone is abnormal, setting a secondary microphone as the main microphone so as to perform the voice communication through the set microphone. The embodiment of the invention is used for performing the microphone switching.
Description
Technical field
The present invention relates to electric terminal technical field, particularly relate to a kind of Mike's changing method and terminal.
Background technology
Along with personal communications terminals pair such as the development of communication technology, mobile phone, car phone, digital deaf-aids
The requirement of voice call quality is more and more higher, meanwhile, can be reached for terminal and provide clear voice call effect
The application of many Mikes noise reduction technology of fruit is more and more extensive.Many Mikes noise reduction technology refers to, by main wheat
Gram carry out voice and send words, and the voice signal other one or more secondary Mikes inputted is as reference signal
For eliminating the environmental noise in main Mike, i.e. carry out noise reduction process.Wherein, many Mikes refer in terminal
In can have two or more Mike, one of them Mike is main Mike.
Specifically, multiple Mikes are generally by coder (COder-DECoder, Codec) and number
The port of word signal processor (Digital Signal Processor, DSP) is connected, wherein, and main Mike
The signal of typing is by main Mike passage supplied with digital signal processor DSP, the signal of secondary Mike typing
By secondary Mike passage supplied with digital signal processor DSP, its attachment structure schematic diagram may refer to figure
1.In prior art, when carrying out voice call, terminal by main Mike set in advance by typing
Signal inputs to digital signal processor DSP, and this signal includes the useful signal i.e. voice signal of user,
And garbage signal such as environment noise, and using the signal of other secondary Mike typing as reference signal, with
It is easy to digital signal processor DSP according to this reference signal, the signal of main Mike's typing is carried out at noise reduction
Reason, thus eliminate the environment noise in main Mike's typing signal, it is thus achieved that user voice signal i.e. has clearly
It is sent to other terminal with signal from digital signal processor DSP output complete voice and send words.Existing skill
In art, Mike is solid with the corresponding relation of coder Codec and digital signal processor DSP port
Fixed, the voice signal that the port corresponding from main Mike is inputted by digital signal processor DSP is as having
With signal processing, using from the voice signal of other port input being connected with secondary Mike at reference signal
Reason, i.e. secondary Mike can not carry out voice and send words, and main Mike the most set in advance can carry out voice and send words,
Thus when the main Mike set occurs abnormal, terminal will be unable to carry out voice and send words, thus causes user
Cannot be carried out voice call.
Summary of the invention
The embodiment of the present invention provides a kind of Mike's changing method and terminal, it is possible to solve many wheats of prior art
When in gram, main Mike occurs abnormal, the problem that terminal can not be normally carried out voice call.
For reaching above-mentioned purpose, the present invention adopts the following technical scheme that
First aspect, it is provided that a kind of Mike's changing method, for many Mikes terminal, described many Mikes include
One main Mike and at least one secondary Mike, including:
The voice signal detecting described main Mike input is the most abnormal;
If detecting, the voice signal that described main Mike inputs is abnormal, then a secondary Mike be set to
Main Mike, in order to carry out voice by the main Mike after arranging and send words.
In conjunction with first aspect, in the first mode in the cards of first aspect, described terminal includes
Mike's routing switch, the input of described Mike's routing switch is connected with many Mikes, and described Mike route is opened
The outfan closed is connected with the input of coder Codec;
The voice signal of described detection described main Mike input includes the most extremely:
The voltage being detected the voice signal that described main Mike inputs by described Mike's routing switch is
No exception;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
Described a secondary Mike is set to main Mike, in order to carried out by the main Mike after arranging
Voice send words to include:
By described Mike's routing switch by the output port of main Mike abnormal for voice signal and institute
State input port corresponding with described main Mike in coder Codec to disconnect, and according in advance
If the Mike selected described secondary Mike of order, by output port and the institute of selected described secondary Mike
State input port corresponding with described main Mike in coder Codec to connect.
In conjunction with first aspect, in the second mode in the cards of first aspect, described detection institute
The voice signal stating main Mike input includes the most extremely:
The voltage of the voice signal of described main Mike input is detected by digital signal processor DSP
The most abnormal;
If described electric voltage exception, it is determined that the input signal of described main Mike is abnormal;
Described a secondary Mike is set to main Mike, in order to carried out by the main Mike after arranging
Voice send words to include:
By described digital signal processor DSP according to the default selected described secondary wheat of Mike's order
Gram, and then control selected secondary Mike and carry out voice as main Mike by coder Codec
Send words.
In conjunction with first aspect, in the third mode in the cards of first aspect, described detection institute
The voice signal stating main Mike input includes the most extremely:
Described main Mike and the language of described secondary Mike input is detected by digital signal processor DSP
The matching degree of tone signal, described matching degree is the pitch by described voice signal, loudness of a sound and sound
Long weight institute is calculated;
If detecting that the voice that arbitrary secondary Mike inputs is believed by described digital signal processor DSP
Number matching degree more than the matching degree of voice signal of described main Mike input, it is determined that described master
The voice signal of Mike's input is abnormal;
Described a secondary Mike is set to main Mike, in order to carried out by the main Mike after arranging
Voice send words to include:
The secondary Mike conduct that described matching degree is maximum is controlled by described digital signal processor DSP
Main Mike carries out voice by coder Codec and send words.
In conjunction with first aspect, in the 4th kind of mode in the cards of first aspect, described detection institute
The voice signal stating main Mike input includes the most extremely:
Upstream voice data after the noise reduction exported by digital signal processor DSP is recorded
Sound;
Described recorded audio signals is sampled, and whether detects the voltage of voice signal in sample
Abnormal;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
Described a secondary Mike is set to main Mike, in order to carried out by the main Mike after arranging
Voice send words to include:
According to the default selected described secondary Mike of Mike's order, and then control selected secondary Mike work
It is that main Mike carries out voice by coder Codec and send words.
Second aspect, it is provided that a kind of terminal, described terminal is many Mikes terminal, and described many Mikes include one
Individual main Mike and at least one secondary Mike, including:
Detector unit is the most abnormal for detecting the voice signal of described main Mike input;
Unit is set, if detecting, for described detector unit, the voice letter that described main Mike inputs
Number exception, then be set to main Mike by a secondary Mike, in order to entered by the main Mike after arranging
Lang sound send words.
In conjunction with second aspect, in the first mode in the cards of second aspect, described terminal includes
Mike's routing switch, the input of described Mike's routing switch is connected with many Mikes, and described Mike route is opened
The outfan closed is connected with the input of coder Codec, and described Mike's routing switch includes described inspection
Survey unit and described unit is set;
Described detector unit specifically for, the voltage of voice signal detecting described main Mike input is the most different
Often;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
Described arrange unit specifically for, by output port and the described volume of main Mike abnormal for voice signal
Input port corresponding with described main Mike in decoder Codec disconnects, and according to default Mike
The selected described secondary Mike of order, by output port and the described coder of selected described secondary Mike
Input port corresponding with described main Mike in Codec connects.
In conjunction with second aspect, in the second mode in the cards of second aspect, described terminal
Digital signal processor DSP includes described detector unit and described arranges unit;
Described detector unit specifically for, the voltage of voice signal detecting described main Mike input is the most different
Often;
If described electric voltage exception, it is determined that the input signal of described main Mike is abnormal;
Described arrange unit specifically for, according to the default selected described secondary Mike of Mike's order,
And then the secondary Mike controlling to select carries out voice as main Mike by coder Codec and send words.
In conjunction with second aspect, in the third mode in the cards of second aspect, described terminal
Digital signal processor DSP includes described detector unit and described arranges unit;
Described detector unit specifically for, detect described main Mike and described secondary Mike input voice signal
Matching degree, described matching degree is that the weight of the pitch by described voice signal, loudness of a sound and the duration of a sound is counted
Obtain;
If the matching degree that described detector unit detects the voice signal that arbitrary secondary Mike inputs is more than
The matching degree of the voice signal of described main Mike input, it is determined that the voice of described main Mike input
Abnormal signal;
Described arrange unit specifically for, control the maximum secondary Mike of described matching degree as main wheat
Gram carrying out voice by coder Codec send words.
In conjunction with second aspect, in the 4th kind of mode in the cards of second aspect, described detector unit
Specifically for, the upstream voice data after the noise reduction exported by digital signal processor DSP is carried out
Recording;
Described recorded audio signals is sampled, and the voltage detecting voice signal in sample is the most abnormal;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
Described arrange unit specifically for, according to the default selected described secondary Mike of Mike's order,
And then the secondary Mike controlling to select carries out voice as main Mike by coder Codec and send words.
The embodiment of the present invention provides a kind of Mike's changing method and terminal, when main wheat in many Mikes being detected
Gram input voice signal exception time, a secondary Mike is set to main Mike, in order to by setting
The new main Mike postponed carries out voice and send words, occurs as the main Mike that specifies in prior art
Time abnormal, other the secondary Mike in terminal can not carry out voice and send words to compare, the embodiment of the present invention
The method provided and terminal can solve the problem that when in many Mikes of prior art, main Mike occurs abnormal, terminal
The problem that can not be normally carried out voice call.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below
The required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, are not paying creative work
Under premise, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is that in prior art, Mike is connected with digital signal processor DSP by coder Codec
The structural representation connect;
A kind of Mike's changing method flow chart that Fig. 2 provides for the embodiment of the present invention;
A kind of Mike's changing method flow chart that Fig. 3 provides for another embodiment of the present invention;
A kind of process schematic that new main Mike is set that Fig. 4 provides for the embodiment of the present invention;
A kind of Mike's changing method flow chart that Fig. 5 provides for another embodiment of the present invention;
A kind of process schematic that new main Mike is set that Fig. 6 provides for the embodiment of the present invention;
A kind of Mike's changing method flow chart that Fig. 7 provides for another embodiment of the present invention;
A kind of Mike's changing method flow chart that Fig. 8 provides for another embodiment of the present invention;
A kind of terminal structure schematic diagram that Fig. 9 provides for the embodiment of the present invention;
A kind of terminal structure schematic diagram that Figure 10 provides for another embodiment of the present invention;
A kind of terminal structure schematic diagram that Figure 11 provides for another embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
Terminal in the embodiment of the present invention, can be that mobile phone, panel computer, car phone etc. have many wheats
Gram terminal, the embodiment of the present invention does not limits.Following example will be described as a example by mobile phone.
When many Mikes terminal carries out voice call, if Mike's quantity is m, m is more than or equal to 2
Positive integer, the most typically have a main Mike, k secondary Mike, wherein, k can be to be less than more than 0
Or the positive integer equal to m-1.If k is less than m-1, then terminal has m-1-k Mike not work, this
This m-1-k idle Mike is referred to as idle Mike by bright embodiment.
Seeing Fig. 1, the Mike in terminal passes through coder Codec and digital signal processor DSP
It is connected.Mike therein includes main Mike and at least one secondary Mike, and each Mike can be simulation Mike,
It can also be digital microphone;Coder Codec is for carrying out analog to the voice signal of Mike's input
Conversion (Analog-to-Digital Converter, ADC), amplification etc. process;Digital signal processor
DSP signal after processing coder Codec carries out noise reduction process, and carries out audio frequency lattice
Formula conversion etc., in order to the voice signal of user is sent to opposite end, Digital Signal Processing the most here
Specific implementation within device can also use single-chip microcomputer, ARM (Advanced RISC Machines)
Or the mode such as field programmable gate array (Field Programmable Gate Array, FPGA), this
Inventive embodiments does not limits.
The embodiment of the present invention provides a kind of Mike's changing method, and for many Mikes terminal, these many Mikes wrap
Including a main Mike and at least one secondary Mike, see Fig. 2, key step may include that
201, terminal detects the voice signal of main Mike input the most extremely.
Wherein, terminal can be believed by detection voice of main Mike input before coder Codec
Number whether abnormal, the voice signal of the main Mike input after can being processed by detection coder Codec
Whether abnormal, or whether the voice signal after can being processed by detection digital signal processor DSP
Abnormal, determine that the voice signal that main Mike inputs is the most abnormal.Certainly, terminal can also be by detection
The voltage of the voice signal of main Mike input, or detect the frequency spectrum of the voice signal of main Mike input, or
Person, by the way of speech recognition, determines that the voice signal that main Mike inputs is the most abnormal.The present invention is real
Execute example the most abnormal to which kind of mode to detect and to determine the voice signal that main Mike inputs especially by
Do not limit.
If 202 terminals detect that the voice signal that main Mike inputs is abnormal, then terminal is by a secondary wheat
Gram it is set to main Mike, in order to carry out voice by the main Mike after arranging and send words.
Wherein, when terminal detects the voice signal exception the most main Mike exception that main Mike inputs,
The main Mike specified may damage, it is impossible to carries out voice again and send words, now can be secondary by one
Mike is set to main Mike, in order to carries out voice by the main Mike after arranging and send words, thus
Ensure that terminal can be normally carried out voice call.
Need to carry out additionally, Mike's changing method that the embodiment of the present invention provides is also applied for terminal
Scene during recording.Concrete, when terminal is recorded, main wheat in many Mikes can be detected
Whether the voice signal of gram input is abnormal, if terminal detects that the voice signal that main Mike inputs is different
Often, then a secondary Mike is set to main Mike by terminal, in order to entered by the main Mike after arranging
Row recording, during such that it is able to main Mike occurs abnormal in many Mikes of solution prior art, terminal can not
The problem being normally carried out recording.From carry out unlike voice call, recorded by main Mike
During sound, secondary Mike can not work, and digital signal processor DSP is also without the signal to typing
Carry out noise reduction process, say, that if terminal detects that the voice signal that main Mike inputs is abnormal,
Then terminal Mike of can leaving unused is set to main Mike, in order to by the main Mike after arranging
Record.
The embodiment of the present invention provides a kind of Mike's changing method, when main Mike input in many Mikes being detected
Voice signal exception time, a secondary Mike is set to main Mike, in order to after arranging
New main Mike carries out voice and send words, with prior art in when the main Mike specified occurs abnormal,
Other secondary Mike in terminal can not carry out voice and send words to compare, the side that the embodiment of the present invention provides
Method can solve the problem that when main Mike occurs abnormal in many Mikes of prior art, terminal can not be normally carried out voice
The problem of call.
The embodiment of the present invention provides a kind of Mike's changing method, for many Mikes terminal, this terminal
Including Mike's routing switch, and the input of Mike's routing switch is connected with many Mikes, Mai Kelu
It is connected by the input of the outfan switched with coder Codec, sees Fig. 3, the most permissible
Comprise the following steps:
301, the voltage of the voice signal that terminal detects main Mike input by Mike's routing switch is
No exception.
In this step, the voice signal that terminal inputs main Mike through coder Codec it
Before, can be the most different by the voltage of the voice signal of Mike's routing switch detection main Mike input
Often.
Exemplary, comparator can be set in Mike's routing switch, detect main Mike input
The voltage of voice signal whether abnormal.Concrete, when causing due to reasons such as main Mike's damages
During main Mike's exception, main Mike cannot typing voice signal, the main Mike now detected input
Signal be probably the noise of circuit, owing to the amplitude of circuit noise is the least e.g., less than
10mV, it is believed that main Mike is without input signal, and the voice signal of the most main Mike input is abnormal,
Otherwise, when main Mike is normal, the voice signal of typing should be that the voice signal of user is made an uproar with environment
The superposition of sound.Therefore, it is possible to one end of comparator to be set to the constant voltage of 10mV, will
The voice signal that the other end inputs with main Mike is connected, if the language of main Mike input in the appointment time
The voltage magnitude of tone signal is less than 10mV, then it is believed that main Mike's no signal inputs, and main Mike
The electric voltage exception of the voice signal of input.Exemplary, this appointment time can be 1 minute.
Simultaneously as the voltage magnitude of environment noise is generally higher than 10mV, thus can also pass through
Comparator in Mike's routing switch comes whether the voice signal of comparison secondary Mike input is less than
10mV, if the voltage magnitude of environment noise is less than 10mV in secondary Mike, then it is believed that secondary wheat
The input of gram no signal, the electric voltage exception of the voice signal of secondary Mike input, i.e. this secondary Mike are abnormal
Cisco unity malfunction.
In addition it is also possible to design Mike's routing switch by other hardware circuit, thus detect
The voltage of the voice signal of main Mike input is the most abnormal, and the embodiment of the present invention does not limits.
It should be noted that the voice that main Mike can be inputted by terminal when conversing every time
Signal carries out one-time detection;Abnormal in order to prevent main Mike from occurring in communication process, terminal is also
The voice signal that periodically can input main Mike detects, such as can be every 10 points
Clock detects once, does not limits.
If 302 electric voltage exceptions, then terminal determines that the voice signal that main Mike inputs is abnormal.
If in step 301, Mike's routing switch detects the electricity of the voice signal that main Mike inputs
Pressure is abnormal, then may determine that the voice signal that main Mike inputs is abnormal, may thereby determine that main wheat
Gram exception.
It should be noted that the voice signal that terminal can also input main Mike is through coder
Arranging processing unit before Codec, the voice signal inputting main Mike carries out spectrum analysis, if
Frequency spectrum not (the such as language in user voice signal spectral range of the voice signal of main Mike input
Sound spectrum scope is generally 80Hz~12kHz), then may determine that the voice signal that main Mike inputs
Abnormal;Or this processing unit can also determine by the way of speech recognition that main Mike inputs
Voice signal whether abnormal.The embodiment of the present invention language to specifically how detecting main Mike input
Tone signal is the most abnormal not to be limited.
303, terminal passes through Mike's routing switch output port by main Mike abnormal for voice signal
Disconnect with input port corresponding with main Mike in coder Codec, and according to default
The selected secondary Mike of Mike's order, by the output port of selected secondary Mike and coder Codec
The input port corresponding with main Mike connects.
When in step 302, terminal determines that the voice signal that main Mike inputs is abnormal, and the most main Mike is different
Chang Shi, main Mike may damage, it is impossible to carries out voice again and send words.Now, terminal is permissible
By Mike's routing switch by the output port of main Mike abnormal for voice signal and coder
Input port corresponding with main Mike in Codec disconnects, and according to default Mike's order choosing
Fixed secondary Mike, by the output port of selected secondary Mike and coder Codec with main Mike couple
The input port answered connects, thus arranges new main Mike.Wherein, Mike's routing switch is arranged
The process schematic of new main Mike may refer to Fig. 4.By the output port of selected secondary Mike
After connecting with input port corresponding with main Mike in coder Codec, this secondary Mike is set
It is main Mike, now can carry out voice by the new main Mike after arranging and send words, thus protect
Card user can be normally carried out voice call.
During according to the default selected secondary Mike of Mike's order, if step 301 detects
During to the i.e. secondary Mike exception of electric voltage exception of the voice signal of secondary Mike input to be selected,
Then can come the secondary wheat after current secondary Mike according in the default selected order of Mike's order
Gram, and it is set to new main Mike.
Exemplary, terminal can be according to many Mikes position in mobile phone and the use habit etc. of user
Information, is configured default Mike's order, and default Mike is sequentially written in memorizer.
Such as, if mobile phone has 3 Mikes of numbered 1,2,3, lay respectively at bottom front, just
In the middle part of top, face and the back side, then No. 1, No. 2, No. 3 Mikes combination can be set, and according to
The use habit of user, the Mike's order that can the main Mike preferentially used order be i.e. preset sets
Be set to No. 1, No. 2, No. 3 Mikes, i.e. No. 1 Mike as the priority of main Mike higher than No. 2
Mike, No. 2 Mikes as the priority of main Mike higher than No. 3 Mikes.When conversing, can
Using by No. 1 Mike as main Mike, No. 2 Mikes, No. 3 Mikes are as secondary Mike;When No. 1 wheat
Time gram abnormal, according to default Mike's order, No. 2 Mikes can be set to main Mike, No. 3 wheats
Gram as secondary Mike, when No. 1 Mike recovers normal, can recover be set to by No. 1 Mike
Main Mike, No. 2 Mikes, No. 3 Mikes are secondary Mike;When No. 1 Mike, No. 2 Mikes are the most abnormal
Time, No. 3 Mikes can be set to main Mike, now, due to 1 according to default Mike's order
Number Mike, No. 2 Mikes are all abnormal, thus terminal only includes main Mike and do not includes secondary Mike, terminal
Carry out voice by main Mike and send words, but voice de-noising can not be carried out by secondary Mike.Certainly,
Can also by No. 1, No. 2, Mike's order in No. 3 Mikes combination be set to No. 2, No. 1,3
Number or No. 3, No. 2, No. 1 etc..
If additionally, mobile phone includes 3 Mikes, it is also possible to arrange No. 1, No. 2 Mike's combinations, or
No. 1, No. 3 Mike's combinations or No. 1 Mike's combination etc., now, not included in the Mike's group arranged
Some or certain several Mikes in conjunction will not work, and be idle Mike.The embodiment of the present invention
The concrete Mike arranged combination and the Mike's order preset are not limited.
It addition, when proceeding by voice call, currently used main Mike can be Mike's group
Close the Mike that medium priority is the highest, it is also possible to the main Mike arranged when being last call.
It should be noted that the embodiment of the present invention is to set between Mike and coder Codec
Putting what Mike's routing switch illustrated, this Mike's routing switch can also be integrated in coder
Inside Codec, the embodiment of the present invention does not limits.
Certainly, Mike's changing method that the embodiment of the present invention provides is also applied for terminal to be needed to carry out
Scene during recording.Concrete, when terminal is recorded, Mike's routing switch can be passed through
The voltage of the voice signal detecting main Mike input is the most abnormal, if electric voltage exception, then terminal is true
The voice signal of fixed main Mike input is abnormal, and now, terminal passes through Mike's routing switch by voice
Defeated corresponding with main Mike with in coder Codec of the output port of the main Mike of abnormal signal
Inbound port disconnects, and according to the default selected secondary Mike of Mike's order, by selected secondary wheat
Gram the output port input port corresponding with main Mike with in coder Codec connect, thus
When can solve that in many Mikes of prior art, main Mike occurs abnormal, terminal can not be normally carried out recording
Problem.From carry out unlike voice call, when being recorded by main Mike, secondary Mike can
Not work, digital signal processor DSP carries out noise reduction process also without to the signal of typing,
If it is to say, terminal detects that the voice signal that main Mike inputs is abnormal, then terminal can be by
One Mike of leaving unused is set to main Mike, in order to recorded by the main Mike after arranging.
The embodiment of the present invention provides a kind of Mike's changing method, when by many Mikes and coder
Mike's routing switch between Codec, detects that in many Mikes, the voice signal of main Mike input is different
Chang Shi, by the output port of main Mike abnormal for voice signal and coder Codec with main wheat
Gram corresponding input port disconnects, then according to the default selected secondary Mike of Mike's order,
The input corresponding with main Mike with in coder Codec by the output port of selected secondary Mike
Port connects, thus this secondary Mike is set to new main Mike, now can be by arranging after
Main Mike carry out voice and send words, it is thus possible to solve main Mike in many Mikes of prior art and occur
Time abnormal, the problem that terminal can not be normally carried out voice call.
The embodiment of the present invention provides a kind of Mike's changing method, sees Fig. 5, mainly can include with
Lower step:
501, terminal detects the voice signal of main Mike input by digital signal processor DSP
Voltage is the most abnormal.
In this step, the voice signal that terminal inputs main Mike through coder Codec it
After, the voltage of the voice signal of main Mike input can be detected by digital signal processor DSP
The most abnormal.Due to after coder Codec, the analog voice signal of Mike's input
Have been converted to digital signal.When causing main Mike's exception due to reasons such as main Mike's damages,
Main Mike cannot typing voice signal, now, the main Mike detected before coder Codec
Input signal is probably the noise of circuit.Exemplary, due to the noise signal voltage amplitude of circuit
Be worth less, after coder Codec is converted into digital signal for constant low level (if warp
Anti-phase process is likely to as constant high level), thus it is believed that main Mike is without input signal,
The voice signal of the most main Mike input is abnormal.When main Mike is normal, the voice signal of typing should
This is the voice signal of user and superposing of environment noise, through coder Codec analog digital conversion
After signal should be low and high level interval digital signal.Therefore, it is possible to pass through digital signal
Whether the voltage of the voice signal that processor DSP detects main Mike input is constant voltage, if
It is to may determine that the voice signal electric voltage exception that main Mike inputs.In like manner, abnormal as secondary Mike
Time, it is also possible to the voltage causing the voice signal that secondary Mike inputs is steady state value, thus, it is possible to
The most abnormal to be detected the voltage of the voice signal of secondary Mike input by the method.
It is of course also possible to detected the voltage of the voice signal of main Mike input by other method
The most abnormal, such as by detecting whether the voltage of the voice signal of main Mike input exceedes a certain
Threshold value, exceedes this appointment threshold value if being in the appointment time, then it is believed that main Mike input
The electric voltage exception of voice signal, which kind of mode of employing is detected main Mike input by the embodiment of the present invention
The voltage of voice signal whether abnormal do not limit.
It should be noted that the voice signal that when conversing every time, main Mike can be inputted
Carry out one-time detection, it is also possible to the voice signal periodically inputted main Mike detects,
Such as can every detection in 10 minutes once not limit.
If 502 electric voltage exceptions, then terminal determines that the input signal of main Mike is abnormal.
If in step 501, digital signal processor DSP detects the voice letter that main Mike inputs
Number electric voltage exception, then may determine that the voice signal that main Mike inputs is abnormal, such that it is able to really
Fixed main Mike is abnormal.
It should be noted that the voice that main Mike can also be inputted by digital signal processor DSP
Signal carries out spectrum analysis, if the frequency spectrum of the voice signal of main Mike input is not believed at user speech
In number spectral range (such as voice spectrum scope is generally 80Hz~12kHz), then may determine that
Main Mike's input signal is abnormal, so that it is determined that main Mike is the most abnormal.The embodiment of the present invention is to tool
How body detects the voice signal of main Mike input does not limits the most extremely.
503, terminal selectes secondary wheat by digital signal processor DSP according to default Mike's order
Gram, and then control selected secondary Mike and carry out voice as main Mike by coder Codec
Send words.
When in step 502, terminal determines that the voice signal that main Mike inputs is abnormal, and the most main Mike is different
Chang Shi, main Mike may damage, it is impossible to carries out voice again and send words.At this point it is possible to pass through
Digital signal processor DSP is according to the default selected secondary Mike of Mike's order, and then controls selected
Secondary Mike carry out voice as main Mike by coder Codec and send words.Concrete, numeral
Signal processor DSP can be by main Mike couple abnormal with voice signal in coder Codec
The output port answered is corresponding with main Mike abnormal with voice signal in digital signal processor DSP
Input port disconnect, and according to the default selected secondary Mike of Mike's order, by coder
In output port corresponding with selected secondary Mike in Codec and digital signal processor DSP with
The input port connection that main Mike is corresponding, thus new main Mike is set.Wherein, digital signal
Processor DSP arranges the process schematic of new main Mike and may refer to Fig. 6.By selected
After secondary Mike is set to main Mike, voice can be carried out by the new main Mike after arranging and send words,
Thus ensure that user can be normally carried out voice call.
During according to the default selected secondary Mike of Mike's order, if step 501 detects
During to the i.e. secondary Mike exception of voice signal exception of secondary Mike input to be selected, the most permissible
The secondary Mike after current secondary Mike is come according in the default selected order of Mike's order, and will
It is set to new main Mike.
Wherein, the step that the method arranging default Mike's order may refer in above-described embodiment
303, repeat no more here.
Certainly, Mike's changing method that the embodiment of the present invention provides is also applied for terminal to be needed to carry out
Scene during recording.Concrete, when terminal is recorded, Digital Signal Processing can be passed through
The voltage of the voice signal that device DSP detects main Mike input is the most abnormal, if electric voltage exception, then
Terminal determines that the input signal of main Mike is abnormal, and now, terminal passes through digital signal processor DSP
According to the default selected secondary Mike of Mike's order, and then control selected secondary Mike as main Mike
Carry out voice by coder Codec and send words, such that it is able to solve in many Mikes of prior art
When main Mike occurs abnormal, the problem that terminal can not be normally carried out recording.Different from carrying out voice call
, when being recorded by main Mike, secondary Mike can not work, digital signal processor
DSP carries out noise reduction process also without to the signal of typing, say, that if terminal detects
The voice signal of main Mike input is abnormal, then terminal Mike of can leaving unused is set to main Mike,
So that being recorded by the main Mike after arranging.
The embodiment of the present invention provides a kind of Mike's changing method, is examined by digital signal processor DSP
When measuring the voice signal exception of main Mike input, by different with voice signal in coder Codec
In output port that normal main Mike is corresponding and digital signal processor DSP abnormal with voice signal
Input port corresponding to main Mike disconnect, and according to the default selected secondary wheat of Mike's order
Gram, at output port corresponding with selected secondary Mike in coder Codec and digital signal
Input port corresponding with main Mike in reason device DSP connects, thus arranges new main Mike, control
The selected secondary Mike of system carries out voice as main Mike by coder Codec and send words, thus energy
When enough solving that in many Mikes of prior art, main Mike occurs abnormal, terminal can not be normally carried out voice and lead to
The problem of words.
The embodiment of the present invention provides a kind of Mike's changing method, sees Fig. 7, mainly can include with
Lower step:
701, terminal detects main Mike and the language of secondary Mike input by digital signal processor DSP
The matching degree of tone signal, matching degree is the weight by the pitch of voice signal, loudness of a sound and the duration of a sound
Institute is calculated.
In this step, the voice signal that terminal inputs main Mike through coder Codec it
After, the matching degree of the voice signal that can be inputted by main Mike and secondary Mike, in order to main wheat
Gram signal is the most abnormal.Such as, digital signal processor DSP can pass through voice recognition mode
The voice signal main Mike and secondary Mike inputted enters with the user speech reference signal of typing in advance
Row coupling, and each Mike of weight calculation according to speech signal parameter pitch, loudness of a sound and the duration of a sound is defeated
The matching degree of the voice signal entered.Exemplary, pitch, loudness of a sound, the duration of a sound weight respectively can
Think 0.5,0.2,0.3, the voice that digital signal processor DSP can input according to each Mike
The characteristic of signal obtains each parameter with user speech reference signal matching rate, the most a certain wheat
Gram input the pitch of voice signal with the matching rate of the pitch of user speech reference signal be
85%, the matching rate of loudness of a sound is 73%, and the matching rate of the duration of a sound is 90%, then this Mike inputs
Voice signal is 84.1% with the matching degree of user speech reference signal, i.e.
85%*0.5+73%*0.2+90%*0.3=84.1%.In like manner, the voice of arbitrary Mike input can be calculated
The matching degree of signal.
If 702 terminals detect, by digital signal processor DSP, the language that arbitrary secondary Mike inputs
The matching degree of tone signal is more than the matching degree of the voice signal of main Mike input, then terminal determines master
The voice signal of Mike's input is abnormal.
After the matching degree of the voice signal obtaining arbitrary Mike input in step 701, if detection
To the matching degree of voice signal of arbitrary secondary Mike input more than the voice signal of main Mike input
Matching degree, then show that the user voice signal of this secondary Mike typing is believed than the voice of main Mike's typing
Number clear, then terminal in may determine that many Mikes the voice signal of main Mike input abnormal.
It should be noted that the voice signal that when conversing every time, main Mike can be inputted
Carry out one-time detection, it is also possible to the voice signal periodically inputted main Mike detects,
Such as can every detection in 10 minutes once not limit.
703, terminal controls, by digital signal processor DSP, the secondary Mike conduct that matching degree is maximum
Main Mike carries out voice by coder Codec and send words.
In a step 702, if digital signal processor DSP detects the language that arbitrary Mike inputs
When the matching degree of tone signal is more than the matching degree of the voice signal that main Mike inputs, terminal is by number
Word signal processor DSP controls the maximum secondary Mike of matching degree as new main Mike by compiling
Code device Codec carries out voice and send words, and the most former main Mike and other secondary Mike are carried out as secondary Mike
Work.Concrete, digital signal processor DSP can by coder Codec with voice
Output port that the main Mike of abnormal signal is corresponding and digital signal processor DSP are believed with voice
The input port that the main Mike of number exception is corresponding disconnects, and by coder Codec with choosing
In output port that the maximum secondary Mike of fixed matching degree is corresponding and digital signal processor DSP with
The input port connection that main Mike is corresponding, this process disconnecting and reconnecting and above-mentioned enforcement
Example is similar may refer to Fig. 6, thus arranges new main Mike, controls selected secondary Mike as master
Mike carries out voice by coder Codec and send words, it is thus possible to solve many wheats of prior art
When in gram, main Mike occurs abnormal, the problem that terminal can not be normally carried out voice call.
Additionally, when user talks facing to arbitrary Mike, the wheat provided according to embodiments of the present invention
Gram changing method, digital signal processor DSP can detect the voice signal that this Mike inputs
Matching degree maximum, thus this Mike can be set to main Mike and carry out voice and send words, thus
Can realize all can carrying out when user talks the effect of normal talking facing to arbitrary Mike, permissible
Solve in prior art when user talks facing to secondary Mike, the voice signal quilt of secondary Mike input
Eliminate as noise, thus send words sound the least or voiceless sound, cause user not to be normally carried out
The problem of voice call.
Wherein, if the matching degree maximum of the voice signal of multiple Mike's typing detected, then
Can according to according to default Mike's order one of them Mike selected as main Mike, here
The method arranging default Mike's order may refer to the step 303 in above-described embodiment.
Certainly, Mike's changing method that the embodiment of the present invention provides is also applied for terminal to be needed to carry out
Scene during recording.Concrete, when terminal is recorded, Digital Signal Processing can be passed through
Device DSP detects the matching degree of the voice signal of main Mike and secondary Mike input, and matching degree is to pass through
The weight institute of the pitch of voice signal, loudness of a sound and the duration of a sound is calculated, if terminal is by numeral
Signal processor DSP detects that the matching degree of the voice signal that arbitrary secondary Mike inputs is more than main wheat
The matching degree of voice signal of gram input, then terminal voice of main Mike input in determining many Mikes
Abnormal signal, now, terminal controls, by digital signal processor DSP, the pair that matching degree is maximum
Mike carries out voice as main Mike by coder Codec and send words, and controls beyond main Mike
Other Mike as secondary Mike, occur such that it is able to solve main Mike in many Mikes of prior art
Time abnormal, the problem that terminal can not be normally carried out recording.From carry out unlike voice call, logical
Crossing secondary Mike when main Mike records can not work, digital signal processor DSP is also not required to
The signal of typing is carried out noise reduction process, say, that if terminal detects that main Mike inputs
Voice signal abnormal, then terminal Mike of can leaving unused is set to main Mike, in order to logical
Cross the main Mike after arranging to record.
The embodiment of the present invention provides a kind of Mike's changing method, passes through digital signal processor DSP
Detect the matching degree of the voice signal of main Mike and secondary Mike input, work as digital signal processor
DSP detects the matching degree language more than main Mike input of the voice signal that arbitrary secondary Mike inputs
During the matching degree of tone signal, terminal determines that in many Mikes, the voice signal of main Mike input is abnormal,
Then can be by different with voice signal in coder Codec by digital signal processor DSP
Output port corresponding to normal main Mike is corresponding with main Mike abnormal with voice signal in DSP
Input port disconnects, and by secondary wheat maximum with selected matching degree in coder Codec
Gram corresponding output port and input port corresponding with main Mike in digital signal processor DSP
Connect, thus the secondary Mike controlling matching degree maximum is entered by coder Codec as main Mike
Lang sound send words, it is thus possible to when in many Mikes of solution prior art, main Mike occurs abnormal, terminal
The problem that can not be normally carried out voice call.
The embodiment of the present invention provides a kind of Mike's changing method, sees Fig. 8, mainly can include with
Lower step:
801, the ascending voice number after the terminal noise reduction to being exported by digital signal processor DSP
Record.
In this step, the voice signal that terminal inputs main Mike through coder Codec it
After, the upstream voice data after the noise reduction exported by digital signal processor DSP can be entered
Row recording, in order to the upstream voice data after recording is processed.Herein for avoiding down
The interference of row data, when carrying out voice signal recording, only records to upstream data, no
Downlink data is recorded.Wherein, noise-reduction method here can use base in prior art
In the multi-microphone noise-reduction method of Minimum Mean Square Error (Least Mean Square, LMS) algorithm,
Or many Mikes of based on recurrence least square (Recursive Least Squares, RLS) algorithm fall
Method for de-noising, the voice signal inputting main Mike carries out adaptive-filtering thus reduces noise, also
Noise can be reduced by generating the reverse compensation signal of environment noise in secondary Mike, concrete
Noise-reduction method and process are referred to prior art, repeat no more here.
Exemplary, terminal can after putting through phone, within the appointment time starting call or
In the appointment time that after starting call, certain time point is later, upstream voice data is recorded,
Here the appointment time can be such as 20s, specifically can be set as required.
Concrete, terminal once can be recorded when conversing every time, it is also possible to the cycle
Property ground voice signal that main Mike is inputted record, such as can detect one every 10 minutes
Secondary, do not limit.
802, recorded audio signals is sampled by terminal, and detects the voltage of voice signal in sample
The most abnormal.
Terminal carries out sampling processing to the voice signal after recording, and detects in the sample after sampling
The voltage of voice signal whether abnormal.Due to the fall exported by digital signal processor DSP
Upstream data after making an uproar is digital signal, when main Mike's exception, sees step 501, can recognize
Be main Mike without input signal, thereby through the letter after digital signal processor DSP noise reduction process
Number for constant low level (if inverted process is likely to as constant high level), after sampling
Signal in sample is also low level.Exemplary, if digital signal processor DSP detects
The signal in sample after sampling is low level, then show the voltage of voice signal in sample
Abnormal.
If 803 electric voltage exceptions, then terminal determines that the voice signal that main Mike inputs is abnormal.
If the electric voltage exception of the voice signal detected in step 802 in sample, then may determine that
The voice signal of main Mike input is abnormal.
It should be noted that terminal can also be to the fall exported by digital signal processor DSP
Upstream voice data after making an uproar is recorded, and the voice signal after recording is carried out spectrum analysis,
If the frequency spectrum of this voice signal is (such as voice spectrum model not in user voice signal spectral range
Enclose generally 80Hz~12kHz), then may determine that the voice signal that main Mike inputs is abnormal;Or
Person's digital signal processor DSP can also by the way of speech recognition will recording after signal with
The speech reference signal of user contrasts, if such as recorded audio signals and user speech reference signal
Matching degree less than specify threshold value (such as 50%), then may determine that the voice that main Mike inputs
Abnormal signal.The embodiment of the present invention is to whether specifically how detecting the voice signal of main Mike input
Extremely do not limit.
804, terminal is according to the default selected secondary Mike of Mike's order, and then controls selected secondary wheat
Gram carrying out voice as main Mike by coder Codec send words.
In step 803, terminal determines that the most main Mike of voice signal exception that main Mike inputs is different
Chang Hou, according to the default selected secondary Mike of Mike's order, and then can control selected secondary Mike
Carry out voice as main Mike by coder Codec and send words.Wherein, default Mike is set
The method of order may refer to the step 303 in above-described embodiment, repeats no more here.
Owing to, within the time period of current recording, user is likely not to have speech, so that terminal
May detect that main Mike does not has input signal, the voice signal of the most main Mike input is abnormal.
Thus, in order to prevent error detection, in terminal every time according to the default selected secondary Mike of Mike's order
Before, it is also possible to carry out the recording of predetermined number of times and detect, such as, terminal can record 3 continuously
Secondary, record 20s every time, and determines that the voice signal that main Mike inputs is by detection recorded audio signals
No exception, if all detecting in the number of times specified, the voice signal that main Mike inputs is abnormal, then may be used
Abnormal to determine the voice signal that main Mike inputs, then can be according to default Mike's order choosing
Fixed secondary Mike, and it is set to new main Mike, new main Mike otherwise need not be set, etc.
In time conversing, carry out recording detection next time, or wait next cycle (such as 10 in current talking
After minute) recording detection.
Exemplary, terminal can be by the output port of main Mike abnormal for voice signal and coding and decoding
Input port corresponding with main Mike in device Codec disconnects, and suitable according to default Mike
Sequence selectes secondary Mike, by the output port of selected secondary Mike and coder Codec with main wheat
Gram corresponding input port connects;Or terminal can also will be believed with voice in coder Codec
With voice signal in output port that the main Mike of number exception is corresponding and digital signal processor DSP
The input port that abnormal main Mike is corresponding disconnects, and selected according to default Mike's order
Secondary Mike, by output port corresponding with selected secondary Mike in coder Codec and numeral letter
Input port corresponding with main Mike in number processor DSP connects, thus arranges new main Mike
Carry out voice by coder Codec and send words, it is ensured that user is normally carried out voice call.
Certainly, Mike's changing method that the embodiment of the present invention provides is also applied for terminal to be needed to carry out
Scene during recording.Concrete, upstream voice data can be recorded by terminal, and to record
Tone signal is sampled, and the voice signal in detection sample is the most abnormal, if main wheat in many Mikes
The voice signal of gram input is abnormal, then terminal is according to the default selected secondary Mike of Mike's order, enters
And the secondary Mike controlling to select carries out voice as main Mike by coder Codec and send words.From
And when can solve that in many Mikes of prior art, main Mike occurs abnormal, terminal can not be normally carried out record
The problem of sound.From carry out unlike voice call, the secondary Mike when being recorded by main Mike
Can not work, digital signal processor DSP is carried out at noise reduction also without to the signal of typing
Reason, say, that if terminal detects that the voice signal that main Mike inputs is abnormal, then terminal can
It is set to main Mike, in order to recorded by the main Mike after arranging with Mike of leaving unused.
The embodiment of the present invention provides a kind of Mike's changing method, by passing through digital signal processor
Upstream voice data after the noise reduction of DSP output is recorded, and samples recorded audio signals,
Voice signal in detection sample is the most abnormal, when determining the language of main Mike input in the most Mikes
During tone signal exception, terminal is according to the default selected secondary Mike of Mike's order, and then controls selected
Secondary Mike carry out voice as main Mike by coder Codec and send words, it is thus possible to solve
When in many Mikes of prior art, main Mike occurs abnormal, terminal can not be normally carried out asking of voice call
Topic.
The embodiment of the present invention provides a kind of terminal 900, and this terminal 900 is many Mikes terminal, wherein
Many Mikes include a main Mike 901 and at least one secondary Mike 902, shown in Figure 9
Terminal structure schematic diagram, this terminal 900 can also include:
Detector unit 903 is the most abnormal for detecting the voice signal of main Mike 901 input.
If arranging unit 904, detecting, for detector unit 903, the voice that main Mike 901 inputs
Abnormal signal, then be set to main Mike 901 by a secondary Mike 902, in order to after arranging
Main Mike 901 carries out voice and send words.
Alternatively, terminal structure schematic diagram shown in Figure 10, terminal 900 can include wheat
Gram routing switch 100, the input of this Mike's routing switch 100 is connected with many Mikes, this Mike
The outfan of routing switch 100 is connected with the input of coder Codec 200, this Mike road
Detector unit 903 can be included by switch 100 and unit 904 is set;
Detector unit 903 can be specifically for, detects the voice signal of main Mike 901 input
Voltage is the most abnormal;If electric voltage exception, then may determine that the voice signal that main Mike 901 inputs
Abnormal;
Arranging unit 904 can be specifically for, defeated by main Mike 901 abnormal for voice signal
Go out input port corresponding with main Mike 901 in port and coder Codec 200 to disconnect even
Connect, and according to the default selected secondary Mike 902 of Mike's order, defeated by selected secondary Mike 902
Go out input port corresponding with main Mike 901 in port and coder Codec 200 to connect.
Alternatively, terminal structure schematic diagram shown in Figure 11, the digital signal of terminal 900
Processor DSP 110 can include detector unit 903 and arrange unit 904;
Detector unit 903 can be specifically for, detects the voice signal of main Mike 901 input
Voltage is the most abnormal;If electric voltage exception, then may determine that the input signal of main Mike 901 is abnormal;
Arranging unit 904 can be specifically for, according to the default selected secondary Mike 902 of Mike's order,
And then control selected secondary Mike 902 as main Mike 901 by coder Codec 200
Carry out voice and send words.
Alternatively, terminal structure schematic diagram shown in Figure 11, the digital signal of terminal 900
Processor DSP 110 can include detector unit 903 and arrange unit 904;
Detector unit 903 can be specifically for, detects main Mike 901 and secondary Mike 902 inputs
The matching degree of voice signal, matching degree is by the pitch of voice signal, loudness of a sound and the duration of a sound
Weight institute is calculated;If detector unit 903 detects the language that arbitrary secondary Mike 902 inputs
The matching degree of tone signal, then can be true more than the matching degree of the voice signal of main Mike 901 input
The voice signal of fixed main Mike 901 input is abnormal;
Arranging unit 904 can be specifically for, controls secondary Mike 902 conduct that matching degree is maximum
Main Mike 901 carries out voice by coder Codec 200 and send words.
Alternatively, terminal structure schematic diagram shown in Figure 9, the detector unit of terminal 900
903 can be specifically for, upper to after the noise reduction exported by digital signal processor DSP 110
Row speech data is recorded;Recorded audio signals is sampled, and detects the voice letter in sample
Number voltage whether abnormal;If electric voltage exception, then may determine that the voice that main Mike 901 inputs
Abnormal signal;
Arranging unit 904 can be specifically for, according to the default selected secondary Mike 902 of Mike's order,
And then control selected secondary Mike 902 as main Mike 901 by coder Codec 200
Carry out voice and send words.
The embodiment of the present invention provides a kind of terminal 900, when the language of main Mike input in many Mikes being detected
During tone signal exception, a secondary Mike is set to main Mike, in order to new by after arranging
Main Mike carries out voice and send words, with prior art in when the main Mike specified occurs abnormal, eventually
Other secondary Mike in end can not carry out voice and send words to compare, the terminal that the embodiment of the present invention provides
Can solve the problem that when in many Mikes of prior art, main Mike occurs abnormal, terminal can not be normally carried out voice and lead to
The problem of words.
In several embodiments provided herein, it should be understood that disclosed method and terminal,
Can realize by another way.Such as, apparatus embodiments described above is only schematically,
Such as, the division of described unit, it is only a kind of logic function and divides, actual can have additionally when realizing
Dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another system, or
Some features can be ignored, or does not performs.Another point, shown or discussed coupling each other or
Direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication link
Connect, can be electrical, machinery or other form.
It addition, in equipment in each embodiment of the present invention, each functional unit can be integrated at one
In reason unit, it is also possible to be that the independent physics of unit includes, it is also possible to two or more unit collection
Become in a unit.And above-mentioned each unit both can realize to use the form of hardware, it would however also be possible to employ
Hardware adds the form of SFU software functional unit and realizes.
Realize the hardware that all or part of step of said method embodiment can be correlated with by programmed instruction
Completing, aforesaid program can be stored in a computer read/write memory medium, and this program is performing
Time, perform to include the step of said method embodiment;And aforesaid storage medium includes: USB flash disk, movement
Hard disk, read only memory (English: Read Only Memory, ROM), random access memory abbreviation:
Memorizer (English: Random Access Memory, RAM), magnetic disc or CD etc. abbreviation:
The various media that can store program code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to
In this, any those familiar with the art, can be easily in the technical scope that the invention discloses
Expect change or replace, all should contain within protection scope of the present invention.Therefore, the protection of the present invention
Scope should be as the criterion with described scope of the claims.
Claims (10)
1. Mike's changing method, for many Mikes terminal, described many Mikes include a master
Mike and at least one secondary Mike, it is characterised in that including:
The voice signal detecting described main Mike input is the most abnormal;
If detecting, the voice signal that described main Mike inputs is abnormal, then a secondary Mike be set to
Main Mike, in order to carry out voice by the main Mike after arranging and send words.
Method the most according to claim 1, it is characterised in that described terminal includes Mike
Routing switch, the input of described Mike's routing switch is connected with many Mikes, and described Mike route
The outfan of switch is connected with the input of coder Codec;
The voice signal of described detection described main Mike input includes the most extremely:
The voltage being detected the voice signal that described main Mike inputs by described Mike's routing switch is
No exception;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
One secondary Mike is set to main Mike, in order to carry out voice by the main Mike after arranging
Words are sent to include:
By described Mike's routing switch by the output port of main Mike abnormal for voice signal and institute
State input port corresponding with described main Mike in coder Codec to disconnect, and according to
The Mike selected described secondary Mike of order preset, by the output port of selected described secondary Mike and
Input port corresponding with described main Mike in described coder Codec connects.
Method the most according to claim 1, it is characterised in that the described main wheat of described detection
Gram input voice signal the most extremely include:
The voltage of the voice signal of described main Mike input is detected by digital signal processor DSP
The most abnormal;
If described electric voltage exception, it is determined that the input signal of described main Mike is abnormal;
One secondary Mike is set to main Mike, in order to carry out voice by the main Mike after arranging
Words are sent to include:
By described digital signal processor DSP according to the default selected described secondary wheat of Mike's order
Gram, and then control selected secondary Mike and carry out voice as main Mike by coder Codec
Send words.
Method the most according to claim 1, it is characterised in that the described main wheat of described detection
Gram input voice signal the most extremely include:
Described main Mike and the language of described secondary Mike input is detected by digital signal processor DSP
The matching degree of tone signal, described matching degree is the pitch by described voice signal, loudness of a sound and sound
Long weight institute is calculated;
If detecting that the voice that arbitrary secondary Mike inputs is believed by described digital signal processor DSP
Number matching degree more than the matching degree of voice signal of described main Mike input, it is determined that described master
The voice signal of Mike's input is abnormal;
Described a secondary Mike is set to main Mike, in order to carried out by the main Mike after arranging
Voice send words to include:
The secondary Mike conduct that described matching degree is maximum is controlled by described digital signal processor DSP
Main Mike carries out voice by coder Codec and send words.
Method the most according to claim 1, it is characterised in that the described main wheat of described detection
Gram input voice signal the most extremely include:
Upstream voice data after the noise reduction exported by digital signal processor DSP is recorded
Sound;
Described recorded audio signals is sampled, and whether detects the voltage of voice signal in sample
Abnormal;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
Described a secondary Mike is set to main Mike, in order to carried out by the main Mike after arranging
Voice send words to include:
According to the default selected described secondary Mike of Mike's order, and then control selected secondary Mike work
It is that main Mike carries out voice by coder Codec and send words.
6. a terminal, described terminal is many Mikes terminal, and described many Mikes include a main wheat
Gram and at least one secondary Mike, it is characterised in that including:
Detector unit is the most abnormal for detecting the voice signal of described main Mike input;
Unit is set, if detecting, for described detector unit, the voice letter that described main Mike inputs
Number exception, then be set to main Mike by a secondary Mike, in order to entered by the main Mike after arranging
Lang sound send words.
Terminal the most according to claim 6, it is characterised in that described terminal includes Mike
Routing switch, the input of described Mike's routing switch is connected with many Mikes, and described Mike route
The outfan of switch is connected with the input of coder Codec, described Mike's routing switch bag
Include described detector unit and described unit is set;
Described detector unit specifically for, detect the voltage of voice signal of described main Mike input
The most abnormal;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
Described arrange unit specifically for, by the output port of main Mike abnormal for voice signal and
Input port corresponding with described main Mike in described coder Codec disconnects, and presses
According to the default selected described secondary Mike of Mike's order, by the output port of selected described secondary Mike
Connect with input port corresponding with described main Mike in described coder Codec.
Terminal the most according to claim 6, it is characterised in that the numeral letter of described terminal
Number processor DSP includes described detector unit and described arranges unit;
Described detector unit specifically for, detect the voltage of voice signal of described main Mike input
The most abnormal;
If described electric voltage exception, it is determined that the input signal of described main Mike is abnormal;
Described arrange unit specifically for, according to the default selected described secondary Mike of Mike's order,
And then the secondary Mike controlling to select carries out voice as main Mike by coder Codec and send words.
Terminal the most according to claim 6, it is characterised in that the numeral letter of described terminal
Number processor DSP includes described detector unit and described arranges unit;
Described detector unit specifically for, detect described main Mike and described secondary Mike input language
The matching degree of tone signal, described matching degree is the pitch by described voice signal, loudness of a sound and sound
Long weight institute is calculated;
If the matching degree that described detector unit detects the voice signal that arbitrary secondary Mike inputs is more than
The matching degree of the voice signal of described main Mike input, it is determined that the voice of described main Mike input
Abnormal signal;
Described arrange unit specifically for, control the maximum secondary Mike of described matching degree as main wheat
Gram carrying out voice by coder Codec send words.
Terminal the most according to claim 6, it is characterised in that described detector unit has
Body is used for, and enters the upstream voice data after the noise reduction exported by digital signal processor DSP
Row recording;
Described recorded audio signals is sampled, and whether detects the voltage of voice signal in sample
Abnormal;
If described electric voltage exception, it is determined that the voice signal of described main Mike input is abnormal;
Described arrange unit specifically for, according to the default selected described secondary Mike of Mike's order,
And then the secondary Mike controlling to select carries out voice as main Mike by coder Codec and send words.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510022069.9A CN105848052B (en) | 2015-01-16 | 2015-01-16 | A kind of Mike's switching method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510022069.9A CN105848052B (en) | 2015-01-16 | 2015-01-16 | A kind of Mike's switching method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105848052A true CN105848052A (en) | 2016-08-10 |
CN105848052B CN105848052B (en) | 2019-10-11 |
Family
ID=56580183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510022069.9A Active CN105848052B (en) | 2015-01-16 | 2015-01-16 | A kind of Mike's switching method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105848052B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713817A (en) * | 2017-01-24 | 2017-05-24 | 无锡纽微特科技有限公司 | System and method for switching recording sources in video call |
CN107707728A (en) * | 2017-07-25 | 2018-02-16 | 努比亚技术有限公司 | A kind of audio transmission switching method, terminal and computer-readable recording medium |
CN108132770A (en) * | 2017-12-13 | 2018-06-08 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus for carrying out audio frequency process |
CN108877837A (en) * | 2018-06-12 | 2018-11-23 | 北京小米移动软件有限公司 | Audio signal abnormality recognition method, device and storage medium |
CN109089191A (en) * | 2018-07-24 | 2018-12-25 | Oppo(重庆)智能科技有限公司 | Plug-hole processing method and Related product |
CN109429147A (en) * | 2017-08-30 | 2019-03-05 | 美商富迪科技股份有限公司 | The control method of electronic device and electronic device |
CN111343558A (en) * | 2018-07-26 | 2020-06-26 | Oppo广东移动通信有限公司 | Microphone hole blockage detection method and related product |
CN113766409A (en) * | 2021-09-07 | 2021-12-07 | 深圳创维-Rgb电子有限公司 | Microphone array adjusting method, intelligent terminal and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006270147A (en) * | 2005-03-22 | 2006-10-05 | Matsushita Electric Ind Co Ltd | Amplifying conversation device and system |
CN101765048A (en) * | 2008-12-22 | 2010-06-30 | 西门子医疗器械公司 | Hearing-aid device with automatic algorithm switching |
CN103067821A (en) * | 2012-12-12 | 2013-04-24 | 歌尔声学股份有限公司 | Method of and device for reducing voice reverberation based on double microphones |
CN103297884A (en) * | 2013-06-27 | 2013-09-11 | 苏州工业园区依利电子贸易有限公司 | Multifunctional prompting microphone |
CN104270489A (en) * | 2014-09-10 | 2015-01-07 | 中兴通讯股份有限公司 | Method and system for determining main microphone and auxiliary microphone from multiple microphones |
-
2015
- 2015-01-16 CN CN201510022069.9A patent/CN105848052B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006270147A (en) * | 2005-03-22 | 2006-10-05 | Matsushita Electric Ind Co Ltd | Amplifying conversation device and system |
CN101765048A (en) * | 2008-12-22 | 2010-06-30 | 西门子医疗器械公司 | Hearing-aid device with automatic algorithm switching |
CN103067821A (en) * | 2012-12-12 | 2013-04-24 | 歌尔声学股份有限公司 | Method of and device for reducing voice reverberation based on double microphones |
CN103297884A (en) * | 2013-06-27 | 2013-09-11 | 苏州工业园区依利电子贸易有限公司 | Multifunctional prompting microphone |
CN104270489A (en) * | 2014-09-10 | 2015-01-07 | 中兴通讯股份有限公司 | Method and system for determining main microphone and auxiliary microphone from multiple microphones |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713817A (en) * | 2017-01-24 | 2017-05-24 | 无锡纽微特科技有限公司 | System and method for switching recording sources in video call |
CN106713817B (en) * | 2017-01-24 | 2020-04-10 | 厦门靠谱知识产权服务有限公司 | System and method for switching recording sound source in video call |
CN107707728A (en) * | 2017-07-25 | 2018-02-16 | 努比亚技术有限公司 | A kind of audio transmission switching method, terminal and computer-readable recording medium |
CN109429147A (en) * | 2017-08-30 | 2019-03-05 | 美商富迪科技股份有限公司 | The control method of electronic device and electronic device |
CN108132770A (en) * | 2017-12-13 | 2018-06-08 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus for carrying out audio frequency process |
CN108877837A (en) * | 2018-06-12 | 2018-11-23 | 北京小米移动软件有限公司 | Audio signal abnormality recognition method, device and storage medium |
CN108877837B (en) * | 2018-06-12 | 2021-01-15 | 北京小米移动软件有限公司 | Audio signal abnormality identification method, device and storage medium |
CN109089191A (en) * | 2018-07-24 | 2018-12-25 | Oppo(重庆)智能科技有限公司 | Plug-hole processing method and Related product |
CN111343558A (en) * | 2018-07-26 | 2020-06-26 | Oppo广东移动通信有限公司 | Microphone hole blockage detection method and related product |
US11425519B2 (en) | 2018-07-26 | 2022-08-23 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for detecting blocking of microphone and related products |
CN113766409A (en) * | 2021-09-07 | 2021-12-07 | 深圳创维-Rgb电子有限公司 | Microphone array adjusting method, intelligent terminal and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105848052B (en) | 2019-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105848052A (en) | Microphone switching method and terminal | |
US9633654B2 (en) | Low power voice detection | |
US20160358602A1 (en) | Robust speech recognition in the presence of echo and noise using multiple signals for discrimination | |
CN102800323B (en) | Method and device for reducing noises of voice of mobile terminal | |
CN106911996A (en) | The detection method of microphone state, device and terminal device | |
CN106792415B (en) | A kind of test method and device for digital microphone array | |
CN105228056B (en) | A kind of method and system for eliminating microphone whistle | |
US20130142346A1 (en) | Audio testing system and audio testing method for device under test | |
CN106463106A (en) | Wind noise reduction for audio reception | |
CN105118522A (en) | Noise detection method and device | |
CN103730122A (en) | Voice converting apparatus and method for converting user voice thereof | |
CN106098078A (en) | A kind of audio recognition method that may filter that speaker noise and system thereof | |
CN103796136B (en) | Equipment and method for ensuring output loudness and tone quality of different sound effect modes | |
CN103327433A (en) | Audio input interface detection method and system thereof | |
CN112614504A (en) | Single sound channel voice noise reduction method, system, equipment and readable storage medium | |
CN102608931B (en) | System and method for controlling electronic equipment | |
CN106162489A (en) | A kind of earphone condition detection method and terminal | |
CN104599667A (en) | Information processing method and electronic device | |
CN107659864A (en) | A kind of noise-reduction method and terminal | |
CN106227498A (en) | A kind of voice-operated method and apparatus | |
CN103312911B (en) | Data processing method and electronic terminal | |
CN101950564A (en) | Remote digital voice acquisition, analysis and identification system | |
CN103454579B (en) | A kind of method of testing of chip digital interface and system | |
CN105718174A (en) | Interface switching method and switching system | |
CN104967964A (en) | Terminal microphone fault processing apparatus, method and terminal |
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 |