CN100389455C - Device and method for detecting sound type - Google Patents

Device and method for detecting sound type Download PDF

Info

Publication number
CN100389455C
CN100389455C CNB2004100702585A CN200410070258A CN100389455C CN 100389455 C CN100389455 C CN 100389455C CN B2004100702585 A CNB2004100702585 A CN B2004100702585A CN 200410070258 A CN200410070258 A CN 200410070258A CN 100389455 C CN100389455 C CN 100389455C
Authority
CN
China
Prior art keywords
sound
signal
frequency
type
electronic equipment
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.)
Expired - Fee Related
Application number
CNB2004100702585A
Other languages
Chinese (zh)
Other versions
CN1728235A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100702585A priority Critical patent/CN100389455C/en
Publication of CN1728235A publication Critical patent/CN1728235A/en
Application granted granted Critical
Publication of CN100389455C publication Critical patent/CN100389455C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention provides a sound type detection device which comprises a sound signal process part for processing a sound signal and converting the sound signal to a pulse signal, a frequency calculation part used for counting pulse signals output from the sound signal process part and calculating the signal frequency thereby, and a sound type decision part for judging the type of the detected sound according to the signal frequency calculated by the frequency calculation part. By the sound detection device and a method of the present invention, the state of electronic equipment can be simply judged, and consequently, the electronic equipment can be correctly controlled to carry out the related operation. Simultaneously, the sound detection device and the method of the present invention have the advantages of low cost and simple circuit.

Description

Sound type pick-up unit and method
Technical field
The present invention relates to detect the apparatus and method of sound type.Particularly, the present invention relates to realize at low cost the apparatus and method of voice recognition with simple circuit.
Background technology
In a lot of fields, need the acoustic information of electronic equipment output is discerned, to determine the duty of this electronic equipment.
For example, in moving communicating field, high traffic test be the product issue must through link, be near the test of the online practical operation situation of product, have only through high traffic test and satisfactory product to be only reliable product, just have the possibility of commercialization.
Cell phone controller is a kind ofly to be used to control handset dialing, the instrument of operating such as to call out, answer for what the high traffic test of carrying out the base station develop.In order to carry out the high traffic test of base station, need to use cell phone controller that mobile phone is controlled automatically, and will realize at first must knowing its state the correct control of mobile phone.
The external interface that can reflect its state of mobile phone has only screen and earphone interface, wherein screen interface is because be light signal, and different mobile phone forms is different, and be difficult to realize automatic detection, earphone interface then is an electric signal interface, thereby realizes correct control by the state that detects mobile phone that simple circuit just can be correct.Therefore, generally come the state of detection of handset by earphone interface.
Existing sound detection technology has a lot, but all will adopt special sound chip to realize sound is accurately detected.Therefore bring some shortcomings, for example, needed to use special-purpose chip, the circuit complexity, and caused expensive.
Summary of the invention
The present invention has been proposed in view of the above problems.The purpose of this invention is to provide a kind of apparatus and method that detect sound type, it can detect the type of sound effectively, and realizes simply having advantage cheaply.
According to an aspect of the present invention, a kind of sound type pick-up unit is provided, comprise: the sound extraction unit is used for extracting the sound that this electronic equipment is exported from the earphone of electronic equipment, and the voice signal of electronic equipment output is isolated by AC coupling; Sound signal processing portion is used for voice signal is handled, and converts described voice signal to the LVTTL level signal; Frequency computation part portion comprises processor (CPU), is used for the LVTTL level signal of sound signal processing portion output being counted by CPU, and signal calculated frequency thus; And the sound type detection unit, be used for the signal frequency calculated according to frequency computation part portion, judge the type of the sound that detects.
According to another aspect of the present invention, provide a kind of method that detects sound type, may further comprise the steps: extracted sound from sound source, and the voice signal of sound source output is isolated by AC coupling; The voice signal that is extracted is handled, converted thereof into the LVTTL level signal; Pulse to this LVTTL level signal is counted, thus the frequency of signal calculated; And the type of judging sound according to signal frequency.
According to another aspect of the present invention, a kind of device that is used for the state of detected electrons equipment also is provided, comprise: the sound extraction unit, be used for extracting the sound that this electronic equipment is exported, and the voice signal of electronic equipment output is isolated by AC coupling from the earphone of electronic equipment; Sound signal processing portion is used for voice signal is handled, and converts described voice signal to the LVTTL level signal; Frequency computation part portion comprises CPU, is used for the LVTTL level signal of sound signal processing portion output being counted by CPU, and signal calculated frequency thus; The sound type detection unit, the signal frequency that it is calculated according to frequency computation part portion, the type of the judgement sound that detects; And condition judgement portion, be used for judging the state of described electronic equipment according to detected sound type.
According to another aspect of the present invention, also provide a kind of method of state of detected electrons equipment, may further comprise the steps: extracted sound from sound source, and the voice signal of sound source output is isolated by AC coupling; The voice signal that is extracted is handled, converted thereof into the LVTTL level signal; Pulse to this LVTTL level signal is counted, the frequency of signal calculated; Judge the type of sound according to signal frequency; And the state of judging described electronic equipment according to described sound type.
Sound detection device of the present invention and method can be applied to the occasion of multiple judgement sound type.Preferably, sound detection device of the present invention and method are used for the voice signal of detection of handset output, thereby can realize the judgement to mobile phone state simply, can correctly control mobile phone then and carry out associative operation.Simultaneously, sound detection device of the present invention and method have that cost is low, the simple remarkable advantage of circuit.
Description of drawings
Fig. 1 shows the schematic block diagram according to the sound detection device of first embodiment of the invention;
Fig. 2 shows a part of circuit diagram according to the sound detection device of first embodiment of the invention;
Fig. 3 shows the treatment scheme according to the sound detection device of first embodiment of the invention;
Fig. 4 shows the example of the LVTTL level signal in the first embodiment of the invention;
Fig. 5 shows the schematic block diagram according to the mobile phone state pick-up unit of second embodiment of the invention;
Fig. 6 shows the treatment scheme according to the mobile phone state pick-up unit of second embodiment of the invention.
Embodiment
Sound detection device of the present invention and method can be applied to various occasions.For convenience's sake, the sound of exporting with the earphone of mobile phone below is that the present invention is described in detail for example.
First embodiment
Basic thought of the present invention is, the sound of reflection mobile phone state is limited several, and each sound type has specific frequecy characteristic, and has nothing in common with each other.On this basis, the invention provides a kind of sound detection device, it has simple circuit, does not need to adopt special sound chip, just can correctly judge the state of mobile phone, has reduced cost of development.
Describe below in conjunction with Fig. 1-4 pair first embodiment of the present invention.
For the earphone sound detection of mobile phone, as shown in Figure 1, voice recognition device of the present invention comprises: the sound extraction unit is used for extracting the sound that mobile phone is exported from the earphone of mobile phone; Sound signal processing portion, it receives earphone sound from the sound extraction unit, and handles, and converts thereof into the LVTTL level signal; Frequency computation part portion is used for the LVTTL level signal of sound signal processing portion output is counted, and signal calculated frequency thus; And the sound type detection unit, the signal frequency that it is calculated according to frequency computation part portion, the type of judgement earphone sound.
At first, the sound extraction unit extracts the sound that mobile phone is exported from the earphone of mobile phone.The sound extraction unit should be isolated the signal of earphone, in order to avoid mobile phone is impacted.
Next, the little voice signal that sound signal processing portion sends earphone carries out a series of processing such as filtering, detection, amplification, obtains the LVTTL level signal that can be received by late-class circuit.
Fig. 2 shows and realizes that an examples of circuits of the present invention, Fig. 3 show the flow process of the performed processing of the voice recognition device of first embodiment.
The voice signal RING of earphone interface of mobile phone output is the AC signal that fluctuates in the scope of positive and negative 100mV.In circuit shown in Figure 2, adopt capacitor C 1 to carry out AC coupling, with the isolated DC signal, the earphone of protection mobile phone is not damaged.Realized the sound extraction unit thus.The voice signal that is extracted is realized biasing, isolates and is driven through the resistance of AMP1 and front.Then, signal is realized filtering by R2, C2 and AMP2, and the signal of output is given operational amplifier A MP3.Simultaneously, the resistance of AMP4 and front thereof provides a reference voltage to give AMP3.Operational amplifier A MP3 uses as a voltage comparator, it compares the amplitude of two input signals, if the amplitude of (+) input end is greater than the amplitude of (-) input end, it just exports a high level, otherwise then export a low level, thereby the LVTTL level signal RING_DIG of outputting standard.Like this, realized sound signal processing of the present invention portion.
The LVTTL level signal RING_DIG of sound signal processing portion output is delivered to frequency computation part portion.Can realize frequency computation part of the present invention portion according to multiple mode.In the present embodiment, realize frequency computation part portion by the processor (CPU) of suitable programming and the storer that is associated.
Below with reference to Fig. 4 the pulse counting process of LVTTL level signal is described.
The LVTTL level signal of sound signal processing portion output is delivered to the interrupt pin of CPU, trigger by rising edge and interrupt.In interrupting one first counter is arranged, every triggering is once interrupted first counter and is added 1.There is a 10ms to interrupt in addition, the value of reading first counter during each the triggering, first count value>0 if (T1), illustrated that voice signal enters, begin to enter count status, simultaneously that the second counter TOTAL is clear 0, first count value (N1) is added among the second counter TOTAL first count value clear 0.After this each 10ms interrupts judging at first whether first count value is 0.If judge that first count value is not 0, then first count value (N2) is added among the second counter TOTAL, and then first count value clear 0.And then etc. interrupt next time, judge whether first count value is 0.If judge that first count value is not 0, then first count value (N3) is added among the second counter TOTAL, and then first count value clear 0.By that analogy, on the other hand,, illustrate that signal is at T[m-1 if judge that first count value is 0 (Tm)] finish.
Then, frequency computation part portion calculates the frequency of signal according to count results.Can be according to the frequency of following formula 1 signal calculated:
F=(TOTAL-N1-N[m-1])/(T2+T3+......+T[m-2]) (1)
Need to prove that above-mentioned frequency computation part process only is an example.Can there be multiple known method to calculate the frequency of LVTTL signal.
Give the sound type detection unit frequency information that calculates.The sound type detection unit is judged the signal type that earphone is sent according to the frequency of signal.In sound detection device of the present invention, can be provided with candidate's acoustic information storage part, wherein storing the frequency information of several specific sound that ring-back tone, ring back tone, busy tone, keypad tone and cell phone controller send.The sound type detection unit extracts the frequency information of candidate's sound from candidate's acoustic information storage part, frequency and Candidate Frequency that frequency computation part portion is calculated compare.If calculated rate equals Candidate Frequency, perhaps the difference between calculated rate and the Candidate Frequency is within the predetermined error range, and then the sound type detection unit is judged to be corresponding candidate's sound type with the voice signal of current detection.
As mentioned above, the sound type pick-up unit of first embodiment of the invention can be realized the detection of sound type by very simple structure.
Second embodiment
The present invention also provides a kind of apparatus and method of state of detected electrons equipment.Below with reference to Fig. 5 and 6, be that example describes the second embodiment of the present invention with the state-detection of mobile phone.
In order to carry out the high traffic test of base station, need to use cell phone controller that mobile phone is controlled automatically, and will realize at first must knowing its state the correct control of mobile phone.
In the second embodiment of the present invention, detect the sound that earphone is exported by earphone interface, judge the state of mobile phone according to detected sound type.
As shown in Figure 5, the pick-up unit of second embodiment comprises: sound signal processing portion, and it is handled voice signal, converts thereof into the LVTTL signal; Frequency computation part portion is used for the LVTTL signal of sound signal processing portion output is counted, and signal calculated frequency thus; The sound type detection unit, the signal frequency that it is calculated according to frequency computation part portion, the type of the judgement sound that detects; And condition judgement portion, it judges the state of mobile phone according to detected sound type.
Sound signal processing portion among second embodiment, frequency computation part portion are identical with first embodiment with sound type decision portion, therefore no longer it are carried out repeat specification.
Fig. 6 shows the operating process of the pick-up unit of second embodiment.The same with first embodiment, at first the earphone interface from mobile phone extracts voice signal, and the voice signal that is extracted is handled, convert thereof into the LVTTL signal, pulse to this LVTTL signal is counted, the frequency of signal calculated, and judge the type of sound according to signal frequency.
Also comprise a condition judgement portion in the pick-up unit of second embodiment, it further judges the state of mobile phone according to sound type.Condition judgement portion also can be made of the processor of suitable programming and the storer that is associated.
For example, in condition judgement portion, can comprise a corresponding tables, wherein store various sound types and corresponding state.Condition judgement portion compares the sound type information that receives and the sound type in this table, thereby determines and the received corresponding status information of sound type.
In a simplified way of second embodiment of the invention, the corresponding tables in the condition judgement portion can be stored various sound frequency information and corresponding state.The sound type detection unit is exported to condition judgement portion with the frequency information of voice signal, and condition judgement portion compares the sound frequency value that receives and the frequency information in this table, thereby determines and the received corresponding status information of sound type.
The same with first embodiment, the second embodiment of the present invention also realizes the detection of mobile phone state by very simple structure.
More than be that example describes the present invention with detection of handset earphone sound.But it should be understood that above-mentioned example is not construed as limiting the invention.
For example, though more than utilize handset earphone sound to describe the present invention, obviously the present invention not only can be used for detection of handset earphone sound, can also be used for any occasion of judging the type of sound to be detected among limited multiple sound type.
And for example, in the superincumbent explanation, pick-up unit of the present invention converts voice signal to the LVTTL level signal.But be appreciated that the present invention is not limited to the LVTTL signal,, make it possible to paired pulses and count, can both realize the present invention as long as convert voice signal to pulse signal.
In addition, the circuit that provides in accompanying drawing and above explanation is exemplary fully.Within the scope of the present invention, can there be other circuit to be used for converting voice signal to pulse signal.
In the explanation of above embodiment, realize counting by the mode of interrupting.But, the invention is not restricted to this, can also carry out step-by-step counting by any suitable mode.
In sum, can carry out improvement and variation on various ways and the details to the present invention.Therefore, scope of the present invention is only defined by the appended claims.

Claims (8)

1. a sound type pick-up unit is characterized in that, comprising:
The sound extraction unit is used for extracting the sound that this electronic equipment is exported from the earphone of electronic equipment, and the voice signal of electronic equipment output is isolated by AC coupling;
Sound signal processing portion is used for voice signal is handled, and converts described voice signal to the LVTTL level signal;
Frequency computation part portion comprises processor CPU, is used for the LVTTL level signal of sound signal processing portion output being counted by CPU, and signal calculated frequency thus; And
The sound type detection unit is used for the signal frequency calculated according to frequency computation part portion, judges the type of the sound that detects.
2. device according to claim 1 is characterized in that, also comprises a storage part, stores the frequency information of various candidate's sound types, and
Described sound type detection unit compares the frequency information of storing in detected signal frequency and the described storage part, is a kind of in described candidate's sound type based on the result of this comparison and the type decision of detection sound.
3. a method that detects sound type is characterized in that, may further comprise the steps:
Extract sound from sound source, and the voice signal of sound source output is isolated by AC coupling;
The voice signal that is extracted is handled, converted thereof into the LVTTL level signal;
Pulse to this LVTTL level signal is counted, the frequency of signal calculated; And the type of judging sound according to signal frequency.
4. method according to claim 3 is characterized in that, in the step of described judgement sound type, signal frequency and stored candidate frequency are in advance compared, based on this relatively result and determine the type of the sound that detects.
5. a device that is used for the state of detected electrons equipment is characterized in that, comprising:
The sound extraction unit is used for extracting the sound that this electronic equipment is exported from the earphone of electronic equipment, and the voice signal of electronic equipment output is isolated by AC coupling;
Sound signal processing portion is used for voice signal is handled, and converts described voice signal to the LVTTL level signal;
Frequency computation part portion comprises processor CPU, is used for the LVTTL level signal of sound signal processing portion output being counted by CPU, and signal calculated frequency thus;
The sound type detection unit is used for the signal frequency calculated according to frequency computation part portion, judges the type of the sound that detects; And
Condition judgement portion, it judges the state of described electronic equipment according to detected sound type.
6. device according to claim 5 is characterized in that described electronic equipment is a mobile phone.
7. the method for the state of a detected electrons equipment is characterized in that, may further comprise the steps:
Extract sound from sound source, and the voice signal of sound source output is isolated by AC coupling;
The voice signal that is extracted is handled, converted thereof into the LVTTL level signal;
Pulse to this LVTTL level signal is counted, the frequency of signal calculated;
Judge the type of sound according to signal frequency; And
Judge the state of described electronic equipment according to described sound type.
8. method according to claim 7 is characterized in that this method is used for the state of detection of handset.
CNB2004100702585A 2004-07-30 2004-07-30 Device and method for detecting sound type Expired - Fee Related CN100389455C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100702585A CN100389455C (en) 2004-07-30 2004-07-30 Device and method for detecting sound type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100702585A CN100389455C (en) 2004-07-30 2004-07-30 Device and method for detecting sound type

Publications (2)

Publication Number Publication Date
CN1728235A CN1728235A (en) 2006-02-01
CN100389455C true CN100389455C (en) 2008-05-21

Family

ID=35927460

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100702585A Expired - Fee Related CN100389455C (en) 2004-07-30 2004-07-30 Device and method for detecting sound type

Country Status (1)

Country Link
CN (1) CN100389455C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274913B (en) * 2017-05-26 2020-09-11 广东美的厨房电器制造有限公司 Voice recognition method and device
CN107750037A (en) * 2017-11-07 2018-03-02 芯海科技(深圳)股份有限公司 A kind of electret miaow head double-clicks acoustic control detection trigger circuit and method
CN108543302B (en) * 2018-03-29 2020-11-20 维高时代(北京)科技有限公司 Portable intelligent terminal for event referee
CN108460858B (en) * 2018-03-29 2020-11-20 维高时代(北京)科技有限公司 Intelligent match timing system
CN108665906B (en) * 2018-03-29 2021-03-05 维高时代(北京)科技有限公司 Event referee whistle acquisition and identification system and method
JP2021061876A (en) * 2019-10-10 2021-04-22 パナソニックIpマネジメント株式会社 State detection device, state detection system, and state detection program
CN112164390A (en) * 2020-09-16 2021-01-01 珠海格力电器股份有限公司 Equipment fault identification method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02136900A (en) * 1988-11-18 1990-05-25 Nec Corp Voice text retrieving device
CN2144337Y (en) * 1992-10-31 1993-10-20 梁宏 Digital display electronic sound calibrator for piano
CN1247621A (en) * 1997-12-12 2000-03-15 摩托罗拉公司 Device and method for detecting and determining signal in telecommunication system
WO2003058599A1 (en) * 2001-12-18 2003-07-17 Amusetec Co., Ltd. Apparatus for analyzing music using sounds of instruments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02136900A (en) * 1988-11-18 1990-05-25 Nec Corp Voice text retrieving device
CN2144337Y (en) * 1992-10-31 1993-10-20 梁宏 Digital display electronic sound calibrator for piano
CN1247621A (en) * 1997-12-12 2000-03-15 摩托罗拉公司 Device and method for detecting and determining signal in telecommunication system
WO2003058599A1 (en) * 2001-12-18 2003-07-17 Amusetec Co., Ltd. Apparatus for analyzing music using sounds of instruments

Also Published As

Publication number Publication date
CN1728235A (en) 2006-02-01

Similar Documents

Publication Publication Date Title
CN102798787B (en) Electronic equipment and circuit breaking detection system and circuit breaking detection method thereof
CN101493728B (en) Line control push-button detecting and recognizing device and method capable of identifying combined key
CN101951446A (en) Be connected to detection, identification and the operation of the ancillary equipment of electronic equipment via the audio/video plug
CN100389455C (en) Device and method for detecting sound type
CN108377146B (en) Hall detection circuit and intelligent wearing equipment
US6160884A (en) Telephone ring signal detector
DK0740880T3 (en) Method for detecting a raised telephone handset during ringing and using a subscriber line interface circuit with
CA2614427A1 (en) Method and apparatus for recognizing a change-of-state in communication signals of electronic circuits
CN205793346U (en) A kind of towards earphone/headset loudspeaker broken string and short-circuit detecting circuit
CN202083763U (en) Electronic device and broken circuit detecting system thereof
CN108572275A (en) One kind is shoved detecting system and detection method
CN103197199B (en) Interrupt detection apparatus and method
CN100579148C (en) Testing apparatus for ringing current breadth
CN102004590B (en) Front-end signal detector and method for improving noise resistance of capacitance type touch pad
US11729566B2 (en) Judging circuit for positive and negative terminals of mic of earphone and method thereof, and eletronic device
CN106329901A (en) Overcurrent protective peripheral circuit and electric device
CN204649888U (en) A kind of novel lan device electrical interface identification circuit
CN208158562U (en) A kind of Hall detection circuit and intelligent wearable device
CN102238454A (en) ECM (electret condenser microphone) switching circuit and method
CN100426901C (en) Earphone and pushbutton detection device and method in mobile communication terminal
CN106371026A (en) Customized battery recognition method and system
CN219498934U (en) Residual current operated protector and electronic equipment
CN211428907U (en) Overload protection device for electronic circuit board
US6173040B1 (en) Telephone line state detecting device
US6944286B1 (en) Ground key detection circuit and method for interference-resistant detection of the activation of a ground key for telephones

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080521

Termination date: 20200730