CN105848052B - A kind of Mike's switching method and terminal - Google Patents

A kind of Mike's switching method and terminal Download PDF

Info

Publication number
CN105848052B
CN105848052B CN201510022069.9A CN201510022069A CN105848052B CN 105848052 B CN105848052 B CN 105848052B CN 201510022069 A CN201510022069 A CN 201510022069A CN 105848052 B CN105848052 B CN 105848052B
Authority
CN
China
Prior art keywords
mike
main
input
voice signal
main mike
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510022069.9A
Other languages
Chinese (zh)
Other versions
CN105848052A (en
Inventor
李文鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510022069.9A priority Critical patent/CN105848052B/en
Publication of CN105848052A publication Critical patent/CN105848052A/en
Application granted granted Critical
Publication of CN105848052B publication Critical patent/CN105848052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of Mike's switching method and terminal, is related to electric terminal technical field, when being able to solve that main Mike occurs abnormal in more Mikes of the prior art, the problem of terminal cannot proceed normally voice communication.The specific scheme is that whether the voice signal for detecting main Mike input in more Mikes is abnormal, if detecting, the voice signal of main Mike's input is abnormal, a secondary Mike is arranged as main Mike, in order to send words by the main Mike progress voice after setting.The embodiment of the present invention is for carrying out Mike's switching.

Description

A kind of Mike's switching method and terminal
Technical field
The present invention relates to electric terminal technical field more particularly to a kind of Mike's switching method and terminals.
Background technique
With the development of communication technology, the personal communications terminals such as mobile phone, car phone, digital deaf-aid are to voice communication matter The requirement of amount is higher and higher, meanwhile, it can achieve the more Mike's noise reduction technologies for providing clear voice communication effect for terminal and answer With also more and more extensive.More Mike's noise reduction technologies refer to, carry out voice by main Mike and send words, and will be other one or more secondary The voice signal of Mike's input is used to eliminate the environmental noise in main Mike as reference signal, i.e. progress noise reduction process.Wherein, More Mikes refer in the terminal can there are two or more than two Mikes, one of Mike be main Mike.
Specifically, multiple Mikes usually pass through coder (COder-DECoder, Codec) and Digital Signal Processing The port of device (Digital Signal Processor, DSP) is connected, wherein the signal of main Mike's typing is logical by main Mike Road inputs digital signal processor DSP, and the signal of secondary Mike typing inputs digital signal processor DSP by secondary Mike channel, Its attachment structure schematic diagram may refer to Fig. 1.In the prior art, during a voice call, terminal passes through preset master The signal of typing is input to digital signal processor DSP by Mike, which includes the useful signal i.e. voice signal of user, with And garbage signal such as ambient noise, and using the signal of other secondary Mike typings as reference signal, at digital signal It manages device DSP and noise reduction process is carried out according to signal of the reference signal to main Mike's typing, to eliminate in main Mike's typing signal Ambient noise, obtain clearly user voice signal, that is, useful signal from digital signal processor DSP output be sent to it is other Terminal completes voice and send words.In the prior art, Mike and coder Codec and digital signal processor DSP port is corresponding Relationship be it is fixed, digital signal processor DSP is using the voice signal inputted from the corresponding port of main Mike as useful signal Processing handles the voice signal inputted from other ports for being connected with secondary Mike as reference signal, i.e. secondary Mike cannot be into Row voice send words, and only preset main Mike is able to carry out voice and send words, thus when the main Mike of setting occurs abnormal, Terminal will be unable to progress voice and send words, can not carry out voice communication so as to cause user.
Summary of the invention
The embodiment of the present invention provides a kind of Mike's switching method and terminal, is able to solve main wheat in more Mikes of the prior art When gram occurring abnormal, the problem of terminal cannot proceed normally voice communication.
In order to achieve the above objectives, the present invention adopts the following technical scheme:
In a first aspect, providing a kind of Mike's switching method, more Mike's terminals are used for, more Mikes to include a main Mike With at least one secondary Mike, comprising:
Whether the voice signal for detecting main Mike's input is abnormal;
If detecting, the voice signal of the main Mike input is abnormal, and a secondary Mike is arranged as main Mike, in order to Voice, which is carried out, by the main Mike after setting send words.
With reference to first aspect, in the first mode in the cards of first aspect, the terminal includes Mike's routing Switch, the input terminal of Mike's routing switch are connect with more Mikes, the output end and coder of Mike's routing switch The input terminal of Codec connects;
The voice signal of the detection main Mike input whether include: extremely
Whether the voltage for detecting the voice signal of main Mike's input by Mike's routing switch is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
It is described that a secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
By Mike's routing switch by the output port and the coder of the main Mike of voice signal exception Input port corresponding with the main Mike disconnects in Codec, and selectes the secondary Mike according to preset Mike's sequence, Input port corresponding with the main Mike in the output port and the coder Codec of the selected secondary Mike is connected It connects.
With reference to first aspect, in second of mode in the cards of first aspect, the detection main Mike is defeated The voice signal entered whether include: extremely
Whether the voltage for detecting the voice signal of main Mike's input by digital signal processor DSP is abnormal;
If the electric voltage exception, it is determined that the input signal of the main Mike is abnormal;
It is described that a secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
The secondary Mike is selected according to preset Mike's sequence by the digital signal processor DSP, and then controls choosing Fixed secondary Mike carries out voice by coder Codec as main Mike and send words.
With reference to first aspect, in the third mode in the cards of first aspect, the detection main Mike is defeated The voice signal entered whether include: extremely
The matching of the voice signal of the main Mike and secondary Mike input is detected by digital signal processor DSP Degree, the matching degree is calculated by the weight of the pitch of the voice signal, loudness of a sound and the duration of a sound;
If detecting that the matching degree of the voice signal of any secondary Mike input is greater than by the digital signal processor DSP The matching degree of the voice signal of main Mike's input, it is determined that the voice signal of main Mike's input is abnormal;
It is described that a secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
The maximum secondary Mike of matching degree, which is controlled, as main Mike by the digital signal processor DSP passes through compiling Code device Codec carries out voice and send words.
With reference to first aspect, in the 4th kind of mode in the cards of first aspect, the detection main Mike is defeated The voice signal entered whether include: extremely
It records to the upstream voice data after the noise reduction exported by digital signal processor DSP;
The recorded audio signals are sampled, and whether the voltage for detecting voice signal in sample is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
It is described that a secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
The secondary Mike is selected according to preset Mike's sequence, and then controls selected secondary Mike and passes through volume as main Mike Decoder Codec carries out voice and send words.
Second aspect, provides a kind of terminal, and the terminal is more Mike's terminals, more Mikes include a main Mike and At least one secondary Mike, comprising:
Whether detection unit, the voice signal for detecting main Mike's input are abnormal;
Setting unit, if detecting that the voice signal of main Mike's input is abnormal for the detection unit, by one Secondary Mike is arranged as main Mike, send words in order to carry out voice by the main Mike after setting.
In conjunction with second aspect, in the first mode in the cards of second aspect, the terminal includes Mike's routing Switch, the input terminal of Mike's routing switch are connect with more Mikes, the output end and coder of Mike's routing switch The input terminal of Codec connects, and Mike's routing switch includes the detection unit and the setting unit;
The detection unit is specifically used for, and whether the voltage for detecting the voice signal of main Mike's input is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
The setting unit is specifically used for, by the output port and the coder of the main Mike of voice signal exception Input port corresponding with the main Mike disconnects in Codec, and selectes the secondary Mike according to preset Mike's sequence, Input port corresponding with the main Mike in the output port and the coder Codec of the selected secondary Mike is connected It connects.
In conjunction with second aspect, in second of mode in the cards of second aspect, at the digital signal of the terminal Managing device DSP includes the detection unit and the setting unit;
The detection unit is specifically used for, and whether the voltage for detecting the voice signal of main Mike's input is abnormal;
If the electric voltage exception, it is determined that the input signal of the main Mike is abnormal;
The setting unit is specifically used for, and selectes the secondary Mike according to preset Mike sequence, and then controls selected Secondary Mike carries out voice by coder Codec as main Mike and send words.
In conjunction with second aspect, in the third mode in the cards of second aspect, at the digital signal of the terminal Managing device DSP includes the detection unit and the setting unit;
The detection unit is specifically used for, and detects the matching of the voice signal of the main Mike and secondary Mike input Degree, the matching degree is calculated by the weight of the pitch of the voice signal, loudness of a sound and the duration of a sound;
If it is defeated that the detection unit detects that the matching degree of the voice signal of any secondary Mike input is greater than the main Mike The matching degree of the voice signal entered, it is determined that the voice signal of main Mike's input is abnormal;
The setting unit is specifically used for, and controls the maximum secondary Mike of the matching degree as main Mike and passes through coder Codec carries out voice and send words.
In conjunction with second aspect, in the 4th kind of mode in the cards of second aspect, the detection unit is specifically used for, It records to the upstream voice data after the noise reduction exported by digital signal processor DSP;
The recorded audio signals are sampled, and whether the voltage for detecting voice signal in sample is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
The setting unit is specifically used for, and selectes the secondary Mike according to preset Mike sequence, and then controls selected Secondary Mike carries out voice by coder Codec as main Mike and send words.
The embodiment of the present invention provides a kind of Mike's switching method and terminal, when the language for detecting main Mike's input in more Mikes When sound signal exception, a secondary Mike is arranged as main Mike, send words in order to carry out voice by the new main Mike after setting, With when specified main Mike occurs abnormal, other secondary Mikes in terminal not can be carried out voice and words sent to compare in the prior art, When method and terminal provided in an embodiment of the present invention are able to solve main Mike's appearance exception in more Mikes of the prior art, terminal is not The problem of voice communication can be normally carried out.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is that Mike passes through the structural representation that coder Codec is connect with digital signal processor DSP in the prior art Figure;
Fig. 2 is a kind of Mike's switching method flow chart provided in an embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides a kind of Mike's switching method flow chart;
Fig. 4 is the process schematic of the new main Mike of setting provided in an embodiment of the present invention a kind of;
Fig. 5 be another embodiment of the present invention provides a kind of Mike's switching method flow chart;
Fig. 6 is the process schematic of the new main Mike of setting provided in an embodiment of the present invention a kind of;
Fig. 7 be another embodiment of the present invention provides a kind of Mike's switching method flow chart;
Fig. 8 be another embodiment of the present invention provides a kind of Mike's switching method flow chart;
Fig. 9 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention;
Figure 10 be another embodiment of the present invention provides a kind of terminal structure schematic diagram;
Figure 11 be another embodiment of the present invention provides a kind of terminal structure schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Terminal in the embodiment of the present invention can be the terminal that mobile phone, tablet computer, car phone etc. have more Mikes, The embodiment of the present invention is without limitation.Following embodiment, which will use mobile phones as an example, to be described.
When more Mike's terminals carry out voice communication, if Mike's quantity is m, m is positive integer more than or equal to 2, then one As have a main Mike, k secondary Mikes, wherein k can be the positive integer that is less than or equal to m-1 greater than 0.If k is less than m-1, Terminal has m-1-k Mike not work, and the m-1-k idle Mikes are known as idle Mike by the embodiment of the present invention.
Referring to Fig. 1, the Mike in terminal is connected by coder Codec with digital signal processor DSP.Wheat therein It gram include main Mike and at least one secondary Mike, each Mike can be simulation Mike, or digital microphone;Coder Voice signal progress analog/digital conversion (Analog-to-Digital Converter, ADC) that Codec is used to input Mike, The processing such as amplification;Digital signal processor DSP is used to carry out noise reduction process to coder Codec treated signal, and Audio format conversion etc. is carried out, in order to send opposite end for the voice signal of user, digital signal processor here certainly Internal specific implementation can also use single-chip microcontroller, ARM (Advanced RISC Machines) or field programmable gate The modes such as array (Field Programmable Gate Array, FPGA), the embodiment of the present invention is without limitation.
The embodiment of the present invention provides a kind of Mike's switching method, is used for more Mike's terminals, which includes a main wheat Gram and at least one secondary Mike, referring to fig. 2, key step may include:
201, whether abnormal terminal detects the voice signal that main Mike inputs.
Wherein, whether terminal can different by detecting the voice signal inputted by Mike main before coder Codec Often, can whether abnormal by the voice signal of detection coder Codec treated main Mike input, or can pass through Detect whether digital signal processor DSP treated voice signal abnormal, come determine main Mike's input voice signal whether It is abnormal.Certainly, terminal can also pass through the voltage of the voice signal of the main Mike's input of detection, or the language of the main Mike's input of detection The frequency spectrum of sound signal, or by way of speech recognition, whether the voice signal to determine main Mike's input is abnormal.The present invention Embodiment especially by which kind of mode to detecting and determine whether the voice signal of main Mike input is abnormal without limitation.
If 202, terminal detects that the voice signal of main Mike's input is abnormal, one secondary Mike is arranged as main wheat terminal Gram, words are sent in order to carry out voice by the main Mike after setting.
Wherein, when terminal detects the voice signal i.e. main Mike's exception of exception of main Mike's input, specified main Mike It may damage, voice cannot have been carried out again and send words, a secondary Mike can be arranged at this time as main Mike, in order to pass through setting Main Mike afterwards carries out voice and send words, to guarantee that terminal can be normally carried out voice communication.
In addition, Mike's switching method provided in an embodiment of the present invention is also applied for scene when terminal is recorded. Specifically, whether the voice signal that can detecte main Mike's input in more Mikes is abnormal, if terminal is examined when terminal is recorded The voice signal for measuring main Mike input is abnormal, then one secondary Mike is arranged as main Mike terminal, after through setting Main Mike records, when main Mike occurs abnormal in more Mikes so as to solve the prior art, terminal cannot normally into The problem of row recording.Unlike progress voice communication, when being recorded by main Mike, secondary Mike can not work, number Word signal processor DSP does not need to carry out noise reduction process to the signal of typing yet, that is to say, that if terminal detects that main Mike is defeated The voice signal that enters is abnormal, then terminal one idle Mike can be arranged as main Mike, in order to pass through the main Mike after setting It records.
The embodiment of the present invention provides a kind of Mike's switching method, when the voice signal for detecting main Mike's input in more Mikes When abnormal, a secondary Mike is arranged as main Mike, send words in order to carry out voice by the new main Mike after setting, and it is existing In technology when specified main Mike occurs abnormal, other secondary Mikes in terminal not can be carried out voice and words sent to compare, the present invention When the method that embodiment provides is able to solve main Mike's appearance exception in more Mikes of the prior art, terminal cannot proceed normally language The problem of sound is conversed.
The embodiment of the present invention provides a kind of Mike's switching method, is used for more Mike's terminals, which includes that Mike's routing is opened It closes, and the input terminal of Mike's routing switch is connect with more Mikes, and the output end of Mike's routing switch is defeated with coder Codec's Enter end connection, referring to Fig. 3, mainly may comprise steps of:
301, whether the voltage for the voice signal that terminal detects main Mike's input by Mike's routing switch is abnormal.
In this step, terminal can pass through Mike before the voice signal that main Mike inputs is by coder Codec Whether the voltage that routing switch detects the voice signal of main Mike's input is abnormal.
Illustratively, comparator can be set in Mike's routing switch, detects the electricity of the voice signal of main Mike's input Whether pressure is abnormal.Specifically, main Mike can not typing voice letter when leading to main Mike's exception due to main Mike damage etc. Number, the signal of the main Mike input detected at this time may be the noise of circuit, due to the usually smaller example of the amplitude of circuit noise Such as less than 10mV, it is believed that main Mike is without input signal, i.e., the voice signal of main Mike's input is abnormal, and otherwise, main Mike is just The voice signal of typing should be the voice signal of user and being superimposed for ambient noise when often.Therefore, it is possible to by the one of comparator End is set as the constant voltage of 10mV, the other end is connect with the voice signal that main Mike inputs, if main Mike in specified time The voltage magnitude of the voice signal of input is less than 10mV, it may be considered that main Mike's no signal inputs, the voice of main Mike's input The electric voltage exception of signal.Illustratively, which can be 1 minute.
Simultaneously as the voltage magnitude of ambient noise is generally higher than 10mV, thus can also be by Mike's routing switch Comparator come comparison secondary Mike input voice signal whether be less than 10mV, if the voltage magnitude of ambient noise is small in secondary Mike In 10mV, it may be considered that the input of secondary Mike no signal, the electric voltage exception of the voice signal of secondary Mike input, the i.e. secondary Mike are different Normal cisco unity malfunction.
In addition it is also possible to Mike's routing switch be designed by other hardware circuits, to detect the language of main Mike's input Whether the voltage of sound signal is abnormal, and the embodiment of the present invention is without limitation.
It should be noted that terminal can once examine the voice signal of main Mike input when being conversed every time It surveys;Main Mike occurs abnormal in communication process in order to prevent, and terminal can also periodically believe the voice of main Mike input It number is detected, such as can be primary every detection in 10 minutes, here without limitation.
If 302, electric voltage exception, terminal determines that the voice signal of main Mike's input is abnormal.
If in step 301, Mike's routing switch detects the electric voltage exception of the voice signal of main Mike's input, then can be true The voice signal of fixed main Mike's input is abnormal, may thereby determine that main Mike is abnormal.
It should be noted that terminal can also be set before the voice signal that main Mike inputs is by coder Codec Processing unit is set, spectrum analysis is carried out to the voice signal of main Mike input, if the frequency spectrum of the voice signal of main Mike input is not In user voice signal spectral range (such as voice spectrum range is generally 80Hz~12kHz), then main Mike can be determined The voice signal of input is abnormal;Or the processing unit can also determine the language of main Mike's input by way of speech recognition Whether sound signal is abnormal.Whether the embodiment of the present invention is abnormal to the voice signal for specifically how detecting main Mike's input not to limit It is fixed.
303, terminal passes through Mike's routing switch for the output port and coder of the main Mike of voice signal exception Input port corresponding with main Mike disconnects in Codec, and selectes secondary Mike according to preset Mike's sequence, by what is selected Input port connection corresponding with main Mike in the output port and coder Codec of secondary Mike.
When terminal determines the voice signal exception, i.e. main Mike's exception of main Mike's input in step 302, main Mike may It has been damaged that, voice cannot be carried out again and send words.At this point, terminal can be by Mike's routing switch by the main wheat of voice signal exception Gram output port and coder Codec in input port corresponding with main Mike disconnect, and according to preset Mike Sequence selectes secondary Mike, by input terminal corresponding with main Mike in the output port and coder Codec of selected secondary Mike Mouth connection, thus the main Mike that setting is new.Wherein, the process schematic of the new main Mike of Mike's routing switch setting may refer to Fig. 4.In the output port and coder Codec for the secondary Mike that will be selected after input port connection corresponding with main Mike, The secondary Mike is set as main Mike, can carry out voice by the new main Mike after setting at this time and send words, to guarantee to use Family can be normally carried out voice communication.
Select secondary Mike according to preset Mike sequence during, currently to be selected if being detected in step 301 It, then can be according to the preset selected sequence of Mike's sequence when electric voltage exception, that is, secondary Mike exception of the voice signal of secondary Mike input In come secondary Mike after current secondary Mike, and be set to new main Mike.
Illustratively, terminal can be right according to information such as the use habit of position and user of more Mikes in mobile phone Preset Mike's sequence is configured, and preset Mike is sequentially written in memory.For example, if it is 1 that mobile phone, which has number, 2, 33 Mikes are located at positive bottom, front top and back side middle part, then No. 1, No. 2, No. 3 Mike's groups can be set It closes, and according to the use habit of user, No. 1,2 can be set by the i.e. preset Mike's sequence of the main Mike preferentially used sequence Number, No. 3 Mikes, i.e. No. 1 Mike is higher than No. 2 Mikes as the priority of main Mike, and No. 2 Mikes are high as the priority of main Mike In No. 3 Mikes., can be using No. 1 Mike as main Mike when being conversed, No. 2 Mikes, No. 3 Mikes are as secondary Mike;When 1 When number Mike's exception, No. 2 Mikes can be arranged as main Mike according to preset Mike's sequence, No. 3 Mikes as secondary Mike, when When No. 1 Mike restores normal, No. 1 Mike can be restored to be arranged as main Mike, No. 2 Mikes, No. 3 Mikes are secondary Mike;When No. 1 When Mike, No. 2 Mikes are abnormal, No. 3 Mikes can be arranged as main Mike according to preset Mike's sequence, at this point, due to No. 1 Mike, No. 2 Mikes are abnormal, thus it includes secondary Mike that terminal, which only includes main Mike not, and terminal carries out voice by main Mike and send Words, but voice de-noising cannot be carried out by secondary Mike.It is of course also possible to by Mike's sequence in No. 1, No. 2, No. 3 Mike's combinations It is set as No. 2, No. 1, No. 3 or No. 3, No. 2, No. 1 etc..
In addition, also can be set No. 1, No. 2 Mikes combine or No. 1, No. 3 Mikes' combinations or 1 if mobile phone includes 3 Mikes Number Mike combination etc., at this point, do not include that some or certain several Mikes in Mike's combination of setting will not work, it is as not busy Set Mike.The embodiment of the present invention combines with preset Mike's sequence without limitation the Mike being specifically arranged.
In addition, currently used main Mike can be highest priority in Mike's combination when starting to carry out voice communication Mike, be also possible to the main Mike being arranged when last call.
It should be noted that the embodiment of the present invention is so that Mike's routing to be arranged between Mike and coder Codec and opens It closes come what is be illustrated, which also can integrate inside coder Codec, and the embodiment of the present invention does not limit It is fixed.
Certainly, Mike's switching method provided in an embodiment of the present invention is also applied for scene when terminal is recorded. Specifically, when terminal is recorded, the voltage that the voice signal of main Mike's input can be detected by Mike's routing switch is No exception, if electric voltage exception, terminal determines that the voice signal of main Mike's input is abnormal, at this point, terminal is opened by Mike's routing It closes and disconnects input port corresponding with main Mike in the output port and coder Codec of the main Mike of voice signal exception Connection, and secondary Mike is selected according to preset Mike's sequence, it will be in the output port and coder Codec of selected secondary Mike Input port corresponding with main Mike connects, when main Mike occurs abnormal in more Mikes so as to solve the prior art, eventually The problem of end cannot proceed normally recording.Unlike progress voice communication, the secondary Mike when being recorded by main Mike It can not work, digital signal processor DSP does not need to carry out noise reduction process to the signal of typing yet, that is to say, that if terminal Detect that the voice signal of main Mike input is abnormal, then terminal one idle Mike can be arranged as main Mike, in order to pass through Main Mike after setting records.
The embodiment of the present invention provides a kind of Mike's switching method, when passing through wheat between more Mikes and coder Codec Gram routing switch, when detecting the voice signal exception of main Mike's input in more Mikes, by the main Mike's of voice signal exception Input port corresponding with main Mike disconnects in output port and coder Codec, then suitable according to preset Mike Sequence selectes secondary Mike, by input port corresponding with main Mike in the output port and coder Codec of selected secondary Mike Connection can carry out voice by the main Mike after setting at this time and send words to set new main Mike for the secondary Mike, because And when being able to solve that main Mike occurs abnormal in more Mikes of the prior art, the problem of terminal cannot proceed normally voice communication.
The embodiment of the present invention provides a kind of Mike's switching method and mainly may comprise steps of referring to Fig. 5:
501, whether the voltage for the voice signal that terminal detects main Mike's input by digital signal processor DSP is abnormal.
In this step, terminal can pass through number after the voice signal that main Mike inputs is by coder Codec Whether the voltage that signal processor DSP detects the voice signal of main Mike's input is abnormal.Due to by coder Codec it Afterwards, the analog voice signal of Mike's input has been converted to digital signal.When main Mike damage etc. due to lead to main wheat When gram exception, main Mike can not typing voice signal, at this point, the main Mike's input signal detected before coder Codec It may be the noise of circuit.Illustratively, since the noise signal voltage magnitude of circuit is smaller, turn by coder Codec Changing into after digital signal is constant low level (if inverted processing may also be constant high level), thus can consider master For Mike without input signal, i.e., the voice signal of main Mike's input is abnormal.When main Mike is normal, the voice signal of typing should be The voice signal of user is superimposed with ambient noise, and the signal after coder Codec analog-to-digital conversion should be height electricity The digital signal at flat interval.Therefore, it is possible to detect the electricity of the voice signal of main Mike's input by digital signal processor DSP Whether pressure is constant voltage, if then may determine that the voice signal electric voltage exception of main Mike's input.Similarly, when secondary Mike exception When, it is also possible to the voltage for the voice signal for causing secondary Mike to input is steady state value, thus, secondary wheat can also be detected by this method Whether the voltage of the voice signal of gram input is abnormal.
It is of course also possible to whether the voltage that the voice signal of main Mike's input is detected by other methods is abnormal, such as Whether the voltage by detecting the voice signal of main Mike's input is more than a certain threshold value, if being specified more than this in specified time Threshold value, it may be considered that the electric voltage exception of the voice signal of main Mike input, the embodiment of the present invention are detected to using which kind of mode Whether the voltage of the voice signal of main Mike's input is abnormal without limitation.
It should be noted that one-time detection can be carried out to the voice signal of main Mike input when being conversed every time, Periodically the voice signal of main Mike input can also be detected, such as can be primary every detection in 10 minutes, here Without limitation.
If 502, electric voltage exception, terminal determines that the input signal of main Mike is abnormal.
If in step 501, digital signal processor DSP detects the electric voltage exception of the voice signal of main Mike's input, then It can determine that the voice signal of main Mike's input is abnormal, may thereby determine that main Mike is abnormal.
It should be noted that digital signal processor DSP can also carry out frequency spectrum point to the voice signal that main Mike inputs Analysis, if the frequency spectrum of the voice signal of main Mike input (such as voice spectrum range one not in user voice signal spectral range As be 80Hz~12kHz), then can determine that main Mike's input signal is abnormal, so that it is determined that whether main Mike abnormal.The present invention is real It is whether abnormal to the voice signal for specifically how detecting main Mike's input without limitation to apply example.
503, terminal selectes secondary Mike according to preset Mike's sequence by digital signal processor DSP, and then controls choosing Fixed secondary Mike carries out voice by coder Codec as main Mike and send words.
When terminal determines the voice signal exception, i.e. main Mike's exception of main Mike's input in step 502, main Mike may It has been damaged that, voice cannot be carried out again and send words.At this point it is possible to by digital signal processor DSP according to preset Mike's sequence Secondary Mike is selected, and then controls selected secondary Mike as main Mike and send words by coder Codec progress voice.Specifically , digital signal processor DSP can be by output port corresponding with the main Mike of voice signal exception in coder Codec It is disconnected with input port corresponding with the main Mike of voice signal exception in digital signal processor DSP, and according to default Mike's sequence select secondary Mike, by coder Codec with the corresponding output port of secondary Mike and digital signal selected Input port connection corresponding with main Mike in processor DSP, thus the main Mike that setting is new.Wherein, digital signal processor The process schematic of the new main Mike of DSP setting may refer to Fig. 6.It, can be with after the secondary Mike that will be selected is arranged as main Mike Voice is carried out by the new main Mike after setting and send words, to guarantee that user can be normally carried out voice communication.
Select secondary Mike according to preset Mike sequence during, currently to be selected if being detected in step 501 When the voice signal of secondary Mike input is secondary Mike exception extremely, then it can select in sequence and come according to preset Mike's sequence Secondary Mike after current secondary Mike, and it is set to new main Mike.
Wherein, the method that preset Mike's sequence is arranged may refer to step 303 in above-described embodiment, no longer superfluous here It states.
Certainly, Mike's switching method provided in an embodiment of the present invention is also applied for scene when terminal is recorded. Specifically, the electricity of the voice signal of main Mike's input can be detected by digital signal processor DSP when terminal is recorded Whether pressure is abnormal, if electric voltage exception, terminal determines that the input signal of main Mike is abnormal, at this point, terminal passes through at digital signal Reason device DSP selectes secondary Mike according to preset Mike's sequence, and then controls selected secondary Mike and pass through coding and decoding as main Mike Device Codec carries out voice and send words, and when main Mike occurs abnormal in more Mikes so as to solve the prior art, terminal cannot be just The problem of often being recorded.Unlike progress voice communication, when being recorded by main Mike, secondary Mike can not work Make, digital signal processor DSP does not need to carry out noise reduction process to the signal of typing yet, that is to say, that if terminal detects master The voice signal of Mike's input is abnormal, then terminal one idle Mike can be arranged as main Mike, after through setting Main Mike records.
The embodiment of the present invention provides a kind of Mike's switching method, detects that main Mike is defeated by digital signal processor DSP When the voice signal exception entered, by output port sum number corresponding with the main Mike of voice signal exception in coder Codec Input port corresponding with the main Mike of voice signal exception disconnects in word signal processor DSP, and according to preset wheat Gram sequence selectes secondary Mike, by output port corresponding with selected secondary Mike in coder Codec and Digital Signal Processing Input port connection corresponding with main Mike in device DSP, so that the main Mike that setting is new, controls selected secondary Mike as main wheat Gram carrying out voice by coder Codec send words, it is thus possible to solve main Mike in more Mikes of the prior art and occur extremely When, the problem of terminal cannot proceed normally voice communication.
The embodiment of the present invention provides a kind of Mike's switching method and mainly may comprise steps of referring to Fig. 7:
701, terminal detects the matching of the voice signal of main Mike and secondary Mike input by digital signal processor DSP Degree, matching degree is calculated by the weight of the pitch of voice signal, loudness of a sound and the duration of a sound.
In this step, terminal can pass through main wheat after the voice signal that main Mike inputs is by coder Codec Gram and secondary Mike input voice signal matching degree, in order to which whether main Mike's signal abnormal.For example, digital signal processor DSP can be referred to main Mike and the secondary Mike voice signal inputted and the user speech of preparatory typing by voice recognition mode Signal is matched, and according to the voice signal of each Mike's input of the weight calculation of speech signal parameter pitch, loudness of a sound and the duration of a sound Matching degree.Illustratively, pitch, loudness of a sound, the duration of a sound weight respectively can be 0.5,0.2,0.3, digital signal processor DSP The characteristic for the voice signal that can be inputted according to each Mike obtains the matching rate with user speech reference signal of each parameter, such as The matching rate of the pitch of the pitch and user speech reference signal of the voice signal of a certain Mike's input is 85%, the matching of loudness of a sound Rate is 73%, and the matching rate of the duration of a sound is 90%, then the matching degree of the voice signal of Mike input and user speech reference signal It is 84.1%, i.e. 85%*0.5+73%*0.2+90%*0.3=84.1%.Similarly, the language of any Mike's input can be calculated The matching degree of sound signal.
If 702, terminal detects the matching degree of the voice signal of any secondary Mike input by digital signal processor DSP Greater than the matching degree of the voice signal of main Mike input, then terminal determines that the voice signal of main Mike's input is abnormal.
After the matching degree for obtaining the voice signal of any Mike's input in step 701, if detecting, any secondary Mike is defeated The matching degree of the voice signal entered is greater than the matching degree of the voice signal of main Mike input, then shows the user of the secondary Mike typing Voice signal is more clear than the voice signal of main Mike's typing, then terminal can determine the voice signal of main Mike's input in more Mikes It is abnormal.
It should be noted that one-time detection can be carried out to the voice signal of main Mike input when being conversed every time, Periodically the voice signal of main Mike input can also be detected, such as can be primary every detection in 10 minutes, here Without limitation.
703, terminal passes through compiling as main Mike by the digital signal processor DSP control maximum secondary Mike of matching degree Code device Codec carries out voice and send words.
In a step 702, if digital signal processor DSP detects that the matching degree of the voice signal of any Mike's input is big When the matching degree of the voice signal of main Mike input, terminal controls the maximum pair of matching degree by digital signal processor DSP Mike carries out voice by coder Codec as new main Mike and send words, main Mike former at this time and other secondary Mike conducts Secondary Mike works.Specifically, digital signal processor DSP can will be abnormal with voice signal in coder Codec Input port corresponding with the main Mike of voice signal exception in the corresponding output port of main Mike and digital signal processor DSP It disconnects, and output port corresponding with the selected maximum secondary Mike of matching degree in coder Codec and number is believed Input port connection corresponding with main Mike in number processor DSP, this is disconnected and process and above-described embodiment for reconnecting It is similar to may refer to Fig. 6, so that the main Mike that setting is new, controls selected secondary Mike as main Mike and passes through coder Codec carries out voice and send words, it is thus possible to which when solving main Mike's appearance exception in more Mikes of the prior art, terminal cannot be normal The problem of carrying out voice communication.
In addition, when user talks against any Mike, the Mike's switching method provided according to embodiments of the present invention, number The matching degree that signal processor DSP can detecte the voice signal of Mike input is maximum, thus the Mike can be arranged Voice is carried out for main Mike and send words, and the effect of normal talking can be carried out when so as to realize that user talks against any Mike Fruit can solve in the prior art when user is against when secondary Mike speech, and the voice signal of secondary Mike input is taken as noise to disappear The problem of removing, thus sending words sound very little or voiceless sound, user is caused to cannot proceed normally voice communication.
It wherein, can be according to according to pre- if detect the matching degree maximum of the voice signal of multiple Mike's typings If Mike sequence select one of Mike as main Mike, the method that preset Mike's sequence is arranged here may refer to Step 303 in above-described embodiment.
Certainly, Mike's switching method provided in an embodiment of the present invention is also applied for scene when terminal is recorded. Specifically, the voice of main Mike and secondary Mike input can be detected by digital signal processor DSP when terminal is recorded The matching degree of signal, matching degree is calculated by the weight of the pitch of voice signal, loudness of a sound and the duration of a sound, if terminal is logical It crosses digital signal processor DSP and detects that the matching degree of the voice signal of any secondary Mike input is greater than the voice of main Mike input The matching degree of signal, then terminal determines that the voice signal of main Mike's input in more Mikes is abnormal, at this point, terminal passes through digital signal Processor DSP controls the maximum secondary Mike of matching degree as main Mike and send words by coder Codec progress voice, and controls Other Mikes other than main Mike are as secondary Mike, and main Mike occurs abnormal in more Mikes so as to solve the prior art When, the problem of terminal cannot proceed normally recording.Unlike progress voice communication, the pair when being recorded by main Mike Mike can not work, and digital signal processor DSP does not need to carry out noise reduction process to the signal of typing yet, that is to say, that if Terminal detects that the voice signal of main Mike input is abnormal, then terminal one idle Mike can be arranged as main Mike, in order to It is recorded by the main Mike after setting.
The embodiment of the present invention provides a kind of Mike's switching method, detects main Mike and pair by digital signal processor DSP The matching degree of the voice signal of Mike's input, when digital signal processor DSP detects the voice signal of any secondary Mike input The matching degree voice signal that is greater than main Mike input matching degree when, terminal determines the voice letter of main Mike input in more Mikes Number exception, then can be by the main Mike couple in coder Codec with voice signal exception by digital signal processor DSP Input port corresponding with the main Mike of voice signal exception disconnects in the output port and DSP answered, and by coder In Codec in output port corresponding with the selected maximum secondary Mike of matching degree and digital signal processor DSP with main Mike Corresponding input port connection, is carried out to control the maximum secondary Mike of matching degree as main Mike by coder Codec Voice send words, it is thus possible to which when solving main Mike's appearance exception in more Mikes of the prior art, terminal cannot proceed normally voice The problem of call.
The embodiment of the present invention provides a kind of Mike's switching method and mainly may comprise steps of referring to Fig. 8:
801, terminal records to the ascending voice number after the noise reduction exported by digital signal processor DSP.
In this step, terminal in the voice signal that main Mike inputs by after coder Codec, can be to passing through number Upstream voice data after the noise reduction of word signal processor DSP output is recorded, in order to the ascending voice number after recording According to being handled.Here in order to avoid the interference of downlink data only records upstream data when carrying out voice signal recording Sound does not record to downlink data.Wherein, noise-reduction method here can be using in the prior art based on Minimum Mean Square Error The multi-microphone noise-reduction method of (Least Mean Square, LMS) algorithm, or it is based on recurrence least square (Recursive Least Squares, RLS) algorithm more Mike's noise-reduction methods, to main Mike input voice signal carry out adaptive-filtering from And noise is reduced, noise, specific noise reduction can also be reduced by generating the reverse compensation signal of ambient noise in secondary Mike Method and process can refer to the prior art, and which is not described herein again.
Illustratively, terminal can after putting through phone, start call specified time in or start call after some It records in specified time after time point to upstream voice data, specified time here for example can be 20s, specifically It can according to need and set.
Specifically, terminal can once be recorded when being conversed every time, it can also be periodically defeated to main Mike The voice signal entered is recorded, such as can be primary every detection in 10 minutes, here without limitation.
802, terminal samples recorded audio signals, and whether the voltage for detecting voice signal in sample is abnormal.
Terminal carries out sampling processing to the voice signal after recording, and detects the electricity of the voice signal in the sample after sampling Whether pressure is abnormal.Since the upstream data after the noise reduction that is exported by digital signal processor DSP is digital signal, as main Mike When abnormal, referring to step 501, it is believed that main Mike passes through digital signal processor DSP noise reduction process without input signal Signal afterwards is constant low level (if inverted processing may also be constant high level), the signal in sample after sampling For low level.Illustratively, if digital signal processor DSP detects that the signal in the sample after sampling is low level, Show the electric voltage exception of the voice signal in sample.
If 803, electric voltage exception, terminal determines that the voice signal of main Mike's input is abnormal.
If detecting the electric voltage exception of the voice signal in sample in step 802, the language of main Mike's input can be determined Sound signal is abnormal.
It should be noted that terminal can also be to the ascending voice after the noise reduction exported by digital signal processor DSP Data are recorded, and carry out spectrum analysis to the voice signal after recording, if the frequency spectrum of the voice signal is not in user speech Within the scope of signal spectrum (such as voice spectrum range is generally 80Hz~12kHz), then the voice of main Mike's input can be determined Abnormal signal;Or digital signal processor DSP can also by way of speech recognition by after recording signal and user Speech reference signal compares, if such as the matching degree of recorded audio signals and user speech reference signal be less than specified threshold (example Voice signal as that 50%), then can determine main Mike's input is abnormal.The embodiment of the present invention is defeated to specifically how to detect main Mike Whether the voice signal entered is abnormal without limitation.
804, terminal selectes secondary Mike according to preset Mike's sequence, and then it is logical as main Mike to control selected secondary Mike It crosses coder Codec progress voice and send words.
It, can be according to pre- after terminal determines the abnormal i.e. main Mike's exception of voice signal of main Mike's input in step 803 If Mike's sequence select secondary Mike, and then control selected secondary Mike as main Mike and language carried out by coder Codec Sound send words.Wherein, the method that preset Mike's sequence is arranged may refer to step 303 in above-described embodiment, no longer superfluous here It states.
Since within the period of current recording, user may not talk, so that terminal may detect master Mike does not have input signal, i.e., the voice signal of main Mike's input is abnormal.Thus, error detection, is pressed every time in terminal in order to prevent Before selecting secondary Mike according to preset Mike's sequence, recording and the detection of predetermined number of times can also be carried out, for example, terminal can connect Continuous recording 3 times, record 20s every time, and determines whether the voice signal of main Mike's input is abnormal by detecting recorded audio signals, if referring to It detects that the voice signal of main Mike's input is abnormal in fixed number, then can determine that the voice signal of main Mike's input is different Often, then secondary Mike can be selected according to preset Mike's sequence, and is set to new main Mike, it is new otherwise not have to setting Main Mike, wait and carry out recording detection when conversing next time, or wait in current talking next period (such as after ten minutes) Recording detection.
Illustratively, terminal can by the output port and coder Codec of the main Mike of voice signal exception with The corresponding input port of main Mike disconnects, and selectes secondary Mike according to preset Mike's sequence, by selected secondary Mike's Input port connection corresponding with main Mike in output port and coder Codec;Or terminal can also be by coder It is different with voice signal in output port corresponding with the main Mike of voice signal exception and digital signal processor DSP in Codec The normal corresponding input port of main Mike disconnects, and selectes secondary Mike according to preset Mike's sequence, by coder Input terminal corresponding with main Mike in Codec and in the corresponding output port of selected secondary Mike and digital signal processor DSP Mouth connection, so that the main Mike of setting newly, which carries out voice by coder Codec, send words, it is ensured that user is normally carried out language Sound call.
Certainly, Mike's switching method provided in an embodiment of the present invention is also applied for scene when terminal is recorded. Specifically, terminal can record to upstream voice data, and recorded audio signals are sampled, detects the voice letter in sample Whether number abnormal, if the voice signal of main Mike's input is abnormal in more Mikes, terminal is according to the preset selected pair of Mike's sequence Mike, and then control selected secondary Mike as main Mike and give words by coder Codec progress voice.So as to solve When main Mike occurs abnormal in more Mikes of the prior art, the problem of terminal cannot proceed normally recording.With progress voice communication Unlike, when being recorded by main Mike, secondary Mike can not work, and digital signal processor DSP is not needed to record yet The signal that enters carries out noise reduction process, that is to say, that if terminal detects that the voice signal of main Mike's input is abnormal, terminal can be with One idle Mike is arranged as main Mike, in order to be recorded by the main Mike after setting.
The embodiment of the present invention provides a kind of Mike's switching method, by the drop exported by digital signal processor DSP Upstream voice data after making an uproar is recorded, and is sampled to recorded audio signals, and whether the voice signal detected in sample is abnormal, When determining the voice signal exception of main Mike's input in fixed more Mikes, terminal selectes secondary Mike according to preset Mike's sequence, And then selected secondary Mike is controlled as main Mike and send words by coder Codec progress voice, it is thus possible to solve existing When main Mike occurs abnormal in more Mikes of technology, the problem of terminal cannot proceed normally voice communication.
The embodiment of the present invention provides a kind of terminal 900, which is more Mike's terminals, and more Mikes therein include one A main Mike 901 and at least one secondary Mike 902, terminal structure schematic diagram shown in Figure 9, the terminal 900 can also wrap It includes:
Whether detection unit 903 is abnormal for detecting the voice signal that main Mike 901 inputs.
If setting unit 904 detects that the voice signal that main Mike 901 inputs is abnormal for detection unit 903, by one Secondary Mike 902 is arranged as main Mike 901, send words in order to carry out voice by the main Mike 901 after setting.
Optionally, terminal structure schematic diagram shown in Figure 10, terminal 900 may include Mike's routing switch 100, should The input terminal of Mike's routing switch 100 is connect with more Mikes, the output end and coder Codec of Mike's routing switch 100 200 input terminal connection, which may include detection unit 903 and setting unit 904;
Detection unit 903 can be specifically used for, and whether the voltage for detecting the voice signal that main Mike 901 inputs is abnormal;If Electric voltage exception can then determine that the voice signal that main Mike 901 inputs is abnormal;
Setting unit 904 can be specifically used for, by the output port and coder of the main Mike 901 of voice signal exception Input port corresponding with main Mike 901 disconnects in Codec 200, and selectes secondary Mike according to preset Mike's sequence 902, by input port corresponding with main Mike 901 in the output port and coder Codec 200 of selected secondary Mike 902 Connection.
Optionally, the digital signal processor DSP 110 of terminal structure schematic diagram shown in Figure 11, terminal 900 can To include detection unit 903 and setting unit 904;
Detection unit 903 can be specifically used for, and whether the voltage for detecting the voice signal that main Mike 901 inputs is abnormal;If Electric voltage exception can then determine that the input signal of main Mike 901 is abnormal;
Setting unit 904 can be specifically used for, and select secondary Mike 902 according to preset Mike's sequence, and then control selected Secondary Mike 902 as main Mike 901 by coder Codec 200 progress voice send words.
Optionally, the digital signal processor DSP 110 of terminal structure schematic diagram shown in Figure 11, terminal 900 can To include detection unit 903 and setting unit 904;
Detection unit 903 can be specifically used for, and detect the matching for the voice signal that main Mike 901 and secondary Mike 902 input Degree, matching degree is calculated by the weight of the pitch of voice signal, loudness of a sound and the duration of a sound;If detection unit 903 detects The matching degree of the voice signal inputted to any secondary Mike 902 is greater than the matching degree of the voice signal of main Mike 901 input, then may be used It is abnormal with the voice signal that the main Mike 901 of determination inputs;
Setting unit 904 can be specifically used for, and the maximum secondary Mike 902 of control matching degree passes through volume as main Mike 901 Decoder Codec 200 carries out voice and send words.
Optionally, the detection unit 903 of terminal structure schematic diagram shown in Figure 9, terminal 900 can be specifically used for, It records to the upstream voice data after the noise reduction exported by digital signal processor DSP 110;Recorded audio signals are carried out Sampling, and whether the voltage for detecting voice signal in sample is abnormal;If electric voltage exception, it can determine that main Mike 901 inputs Voice signal it is abnormal;
Setting unit 904 can be specifically used for, and select secondary Mike 902 according to preset Mike's sequence, and then control selected Secondary Mike 902 as main Mike 901 by coder Codec 200 progress voice send words.
The embodiment of the present invention provides a kind of terminal 900, when the voice signal for detecting main Mike's input in more Mikes is abnormal When, a secondary Mike is arranged as main Mike, words are sent in order to carry out voice by the new main Mike after setting, with the prior art In when specified main Mike occurs abnormal, other secondary Mikes in terminal not can be carried out voice and words sent to compare, and the present invention is implemented When the terminal that example provides is able to solve main Mike's appearance exception in more Mikes of the prior art, it is logical that terminal cannot proceed normally voice The problem of words.
In several embodiments provided herein, it should be understood that disclosed method and terminal can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
In addition, each functional unit can integrate in one processing unit in equipment in each embodiment of the present invention, Being also possible to the independent physics of each unit includes that can also be integrated in one unit with two or more units.And it is above-mentioned Each unit both can take the form of hardware realization, can also be realized in the form of hardware adds SFU software functional unit.
This can be accomplished by hardware associated with program instructions for all or part of the steps of realization above method embodiment, preceding The program stated can be stored in a computer readable storage medium, and when being executed, execute includes that the above method is real to the program The step of applying;And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (English: Read Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, abbreviation: RAM), magnetic disk or The various media that can store program code such as CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (8)

1. a kind of Mike's switching method, is used for more Mike's terminals, more Mikes include a main Mike and at least one secondary wheat Gram characterized by comprising
Whether the voice signal for detecting main Mike's input is abnormal;
If detecting, the voice signal of the main Mike input is abnormal, a secondary Mike is arranged as main Mike, in order to pass through Main Mike after setting carries out voice and send words;
The terminal includes Mike's routing switch, and the input terminal of Mike's routing switch is connect with more Mikes, the Mike road It is connect by the output end switched with the input terminal of coder Codec;
The voice signal of the detection main Mike input whether include: extremely
Whether the voltage for detecting the voice signal of main Mike's input by Mike's routing switch is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
One secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
It will be in the output port and the coder Codec of the main Mike of voice signal exception by Mike's routing switch Input port corresponding with the main Mike disconnects, and selectes the secondary Mike according to preset Mike's sequence, will select The secondary Mike output port and the coder Codec in input port corresponding with the main Mike connect.
2. the method according to claim 1, wherein the voice signal of the detection main Mike input whether Extremely include:
Whether the voltage for detecting the voice signal of main Mike's input by digital signal processor DSP is abnormal;
If the electric voltage exception, it is determined that the input signal of the main Mike is abnormal;
One secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
The secondary Mike is selected according to preset Mike sequence by the digital signal processor DSP, and then is controlled selected Secondary Mike carries out voice by coder Codec as main Mike and send words.
3. the method according to claim 1, wherein the voice signal of the detection main Mike input whether Extremely include:
The matching degree of the voice signal of the main Mike and secondary Mike input, institute are detected by digital signal processor DSP Stating matching degree is calculated by the weight of the pitch of the voice signal, loudness of a sound and the duration of a sound;
If detecting the matching degree of the voice signal of any secondary Mike input greater than described by the digital signal processor DSP The matching degree of the voice signal of main Mike's input, it is determined that the voice signal of main Mike's input is abnormal;
It is described that a secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
The maximum secondary Mike of matching degree, which is controlled, as main Mike by the digital signal processor DSP passes through coder Codec carries out voice and send words.
4. the method according to claim 1, wherein the voice signal of the detection main Mike input whether Extremely include:
It records to the upstream voice data after the noise reduction exported by digital signal processor DSP;
The recorded audio signals are sampled, and whether the voltage for detecting voice signal in sample is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
It is described that a secondary Mike is arranged as main Mike, send the words to include: in order to carry out voice by the main Mike after setting
The secondary Mike is selected according to preset Mike's sequence, and then controls selected secondary Mike and passes through coding and decoding as main Mike Device Codec carries out voice and send words.
5. a kind of terminal, the terminal is more Mike's terminals, and more Mikes include a main Mike and at least one secondary Mike, It is characterised by comprising:
Whether detection unit, the voice signal for detecting main Mike's input are abnormal;
Setting unit, if detecting that the voice signal of main Mike's input is abnormal for the detection unit, by a secondary wheat Gram it is arranged as main Mike, send words in order to carry out voice by the main Mike after setting;
The terminal includes Mike's routing switch, and the input terminal of Mike's routing switch is connect with more Mikes, the Mike road Connect by the output end switched with the input terminal of coder Codec, Mike's routing switch include the detection unit and The setting unit;
The detection unit is specifically used for, and whether the voltage for detecting the voice signal of main Mike's input is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
The setting unit is specifically used for, by the output port and the coder Codec of the main Mike of voice signal exception In input port corresponding with the main Mike disconnect, and select the secondary Mike according to preset Mike's sequence, will select Input port corresponding with the main Mike connects in the output port of the fixed secondary Mike and the coder Codec.
6. terminal according to claim 5, which is characterized in that the digital signal processor DSP of the terminal includes described Detection unit and the setting unit;
The detection unit is specifically used for, and whether the voltage for detecting the voice signal of main Mike's input is abnormal;
If the electric voltage exception, it is determined that the input signal of the main Mike is abnormal;
The setting unit is specifically used for, and selectes the secondary Mike according to preset Mike's sequence, and then control selected secondary wheat Gram as main Mike by coder Codec progress voice send words.
7. terminal according to claim 5, which is characterized in that the digital signal processor DSP of the terminal includes described Detection unit and the setting unit;
The detection unit is specifically used for, and detects the matching degree of the voice signal of the main Mike and secondary Mike input, institute Stating matching degree is calculated by the weight of the pitch of the voice signal, loudness of a sound and the duration of a sound;
If the detection unit detects that the matching degree of the voice signal of any secondary Mike input is greater than main Mike's input The matching degree of voice signal, it is determined that the voice signal of main Mike's input is abnormal;
The setting unit is specifically used for, and controls the maximum secondary Mike of the matching degree as main Mike and passes through coder Codec carries out voice and send words.
8. terminal according to claim 5, which is characterized in that the detection unit is specifically used for, to passing through digital signal Upstream voice data after the noise reduction of processor DSP output is recorded;
The recorded audio signals are sampled, and whether the voltage for detecting voice signal in sample is abnormal;
If the electric voltage exception, it is determined that the voice signal of main Mike's input is abnormal;
The setting unit is specifically used for, and selectes the secondary Mike according to preset Mike's sequence, and then control selected secondary wheat Gram as main Mike by coder Codec progress voice send words.
CN201510022069.9A 2015-01-16 2015-01-16 A kind of Mike's switching method and terminal Active CN105848052B (en)

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 CN105848052A (en) 2016-08-10
CN105848052B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109429147B (en) * 2017-08-30 2021-01-05 美商富迪科技股份有限公司 Electronic device and control method thereof
CN108132770A (en) * 2017-12-13 2018-06-08 青岛海信移动通信技术股份有限公司 A kind of method and apparatus for carrying out audio frequency process
CN108877837B (en) * 2018-06-12 2021-01-15 北京小米移动软件有限公司 Audio signal abnormality identification method, device and storage medium
CN109089191B (en) * 2018-07-24 2021-11-02 Oppo(重庆)智能科技有限公司 Plugging hole treatment method and related product
CN109151697B (en) * 2018-07-26 2020-03-27 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN105848052A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN105848052B (en) A kind of Mike's switching method and terminal
CN102800323B (en) Method and device for reducing noises of voice of mobile terminal
US20170330579A1 (en) Method and device for improving audio processing performance
CN111883156B (en) Audio processing method and device, electronic equipment and storage medium
CN105118522B (en) Noise detection method and device
CN106920559B (en) Voice communication optimization method and device and call terminal
CN101207663A (en) Internet communication device and method for controlling noise thereof
CN112004177B (en) Howling detection method, microphone volume adjustment method and storage medium
CN103491488A (en) Echo cancellation method and device for microphone
US20120158401A1 (en) Music detection using spectral peak analysis
CN110431624B (en) Residual echo detection method, residual echo detection device, voice processing chip and electronic equipment
CN112037810B (en) Echo processing method, device, medium and computing equipment
CN102655006A (en) Voice transmission device and voice transmission method
CN113763977A (en) Method, apparatus, computing device and storage medium for eliminating echo signal
CN110956976A (en) Echo cancellation method, device, equipment and readable storage medium
CN110636432A (en) Microphone testing method and related equipment
CN106033673B (en) A kind of near-end voice signals detection method and device
CN112509595A (en) Audio data processing method, system and storage medium
CN105657165A (en) Call volume adjustment method and apparatus
CN108540680B (en) Switching method and device of speaking state and conversation system
CN104851423A (en) Sound message processing method and device
US20160232923A1 (en) Method and system for speech detection
CN103312911B (en) Data processing method and electronic terminal
Cheng et al. Semi-blind source separation for nonlinear acoustic echo cancellation
CN112151055A (en) Audio processing method and device

Legal Events

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