CN104101421A - Method and device for identifying external sound environments - Google Patents
Method and device for identifying external sound environments Download PDFInfo
- Publication number
- CN104101421A CN104101421A CN201410342371.8A CN201410342371A CN104101421A CN 104101421 A CN104101421 A CN 104101421A CN 201410342371 A CN201410342371 A CN 201410342371A CN 104101421 A CN104101421 A CN 104101421A
- Authority
- CN
- China
- Prior art keywords
- threshold
- less
- default
- interval range
- equal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention relates to a method and a device for identifying external sound environments. The method for identifying the external sound environments includes: converting a received sound signal into a voltage signal; recording times when values of the collected voltage signal are respectively less than a preset threshold value, larger than or equal to the threshold value and less than a preset second threshold value, and larger than or equal to the second threshold value and less than a preset third threshold value within preset step time, and forming a column diagram according to the statistic times; outputting an interval range in the column diagram, where the longest rectangle strip is located, as a corresponding sound type within the step time. The method for identifying the external sound environments can use a column diagram mode to grade sounds into non-quantization levels such as silent, normal and noisy levels, not only enables a user to directly know status of a current sound environment, but also requires low hardware performance due to the fact that only column diagram statistics and division are needed, and furthermore is low in total scheme cost.
Description
Technical field
The present invention relates to a kind of method and device of identifying external voice environment.
Background technology
Along with the raising of the level of urbanization and living standard, people are more and more concerned about the impact of external environment condition and are responsive.Wherein, sound is a kind of very crucial environmental factor, yet, also sound is not carried out fast and effectively at present the technology appearance of non-quantification gradation identification.
Summary of the invention
One of object of the present invention is to propose a kind of method of identifying external voice environment, and it can solve prior art cannot carry out to sound the problem of non-quantification gradation identification.
In order to achieve the above object, the technical solution adopted in the present invention is as follows:
A method of identifying external voice environment, it comprises the following steps:
Step 1, the voice signal receiving is converted to voltage signal;
Step 2, in default step-length in the time, the voltage signal that collects of record is less than respectively default first threshold, is more than or equal to first threshold and is less than default Second Threshold, be more than or equal to Second Threshold and be less than the number of times of the 3rd default threshold value, and forms histogram according to the number of times of statistics; Wherein, first threshold is less than Second Threshold, and Second Threshold is less than the 3rd threshold value; Be less than first threshold interval range, be more than or equal to first threshold and be less than the interval range of default Second Threshold and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value shines upon with sound type respectively;
Step 3, in this step-length in the time, the interval range at the longest rectangular strip place of the length in histogram is output as to corresponding sound type.
Preferably, described histogrammic ordinate is number of times, and horizontal ordinate is interval range.
Preferably, described sound type comprises quietness, normal and noisy, be less than the interval range of first threshold with quiet corresponding, the interval range that is more than or equal to first threshold and is less than default Second Threshold is with normal corresponding, and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value is with noisy corresponding.
Two of object of the present invention is to propose a kind of device of identifying external voice environment, and it can realize said method.
In order to achieve the above object two, the technical solution adopted in the present invention is as follows:
A device of identifying external voice environment, it comprises:
Microphone, for being converted to voltage signal by the voice signal receiving;
Process chip, be used in default step-length in the time, the voltage signal that collects of record is less than respectively default first threshold, is more than or equal to first threshold and is less than default Second Threshold, be more than or equal to Second Threshold and be less than the number of times of the 3rd default threshold value, and forms histogram according to the number of times of statistics; Wherein, first threshold is less than Second Threshold, and Second Threshold is less than the 3rd threshold value; Be less than first threshold interval range, be more than or equal to first threshold and be less than the interval range of default Second Threshold and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value shines upon with sound type respectively; And in this step-length in the time, the interval range at the longest rectangular strip place of the length in histogram is output as to corresponding sound type;
Output unit, for exporting corresponding sound type.
Preferably, the model of described process chip is marvel8188.
Preferably, described histogrammic ordinate is number of times, and horizontal ordinate is interval range.
Preferably, described sound type comprises quietness, normal and noisy, be less than the interval range of first threshold with quiet corresponding, the interval range that is more than or equal to first threshold and is less than default Second Threshold is with normal corresponding, and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value is with noisy corresponding.
Preferably, described output unit is display or televisor or mobile phone.
The present invention has following beneficial effect:
Adopt histogrammic mode sound to be carried out to the division of quietness, the non-quantification gradation such as normal, noisy, can not only allow user know intuitively the state of current acoustic environment, and owing to only need to carrying out statistics with histogram, division, lower to hardware requirement, whole scheme cost is very low, without complicated signal mapping algorithm, reduced the resource overhead of identification, and then improved recognition speed.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of method of the identification external voice environment of preferred embodiment of the present invention;
Fig. 2 is the structural representation of device of the identification external voice environment of preferred embodiment of the present invention.
Embodiment
Below, by reference to the accompanying drawings and embodiment, the present invention is described further.
As shown in Figure 1, a kind of method of identifying external voice environment, it comprises the following steps:
Step S1, the voice signal receiving is converted to voltage signal.Before execution step S2, can also voltage signal be removed and be made an uproar and filtering processing.
Step S2, within the default step-length time (as 1 minute), the voltage signal that collects of record is less than respectively default first threshold, is more than or equal to first threshold and is less than default Second Threshold, be more than or equal to Second Threshold and be less than the number of times of the 3rd default threshold value, and forms histogram according to the number of times of statistics.
Wherein, first threshold is less than Second Threshold, and Second Threshold is less than the 3rd threshold value.
Be less than first threshold interval range, be more than or equal to first threshold and be less than the interval range of default Second Threshold and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value shines upon with sound type respectively.
Described sound type comprises quietness, normal and noisy, be less than the interval range of first threshold with quiet corresponding, the interval range that is more than or equal to first threshold and is less than default Second Threshold is with normal corresponding, and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value is with noisy corresponding.
Described histogrammic ordinate is number of times, and horizontal ordinate is interval range.
Step S3, in this step-length in the time, the interval range at the longest rectangular strip place of the length in histogram is output as to corresponding sound type.
As shown in Figure 2, the present embodiment also proposes a kind of device of identifying external voice environment, and it comprises:
Microphone, for being converted to voltage signal by the voice signal receiving;
Process chip, be used in default step-length in the time, the voltage signal that collects of record is less than respectively default first threshold, is more than or equal to first threshold and is less than default Second Threshold, be more than or equal to Second Threshold and be less than the number of times of the 3rd default threshold value, and forms histogram according to the number of times of statistics; Wherein, first threshold is less than Second Threshold, and Second Threshold is less than the 3rd threshold value; Be less than first threshold interval range, be more than or equal to first threshold and be less than the interval range of default Second Threshold and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value shines upon with sound type respectively; And in this step-length in the time, the interval range at the longest rectangular strip place of the length in histogram is output as to corresponding sound type;
Display, for showing corresponding sound type.
Wherein, the mapping relations of interval range and sound type are stored in the internal memory of process chip.The model of the process chip of the present embodiment is marvel8188.
In addition, described display can also replace with the output units such as televisor, mobile phone.
The invention has the advantages that:
1. without complicated signal mapping algorithm, reduced the resource overhead of identification, and then improved recognition speed;
2. owing to only need to carrying out statistics with histogram algorithm, lower to hardware requirement, whole scheme cost is very low.
For a person skilled in the art, can make other various corresponding changes and distortion according to technical scheme described above and design, and these all changes and distortion all should belong to the protection domain of the claims in the present invention within.
Claims (8)
1. a method of identifying external voice environment, is characterized in that, comprises the following steps:
Step 1, the voice signal receiving is converted to voltage signal;
Step 2, in default step-length in the time, the voltage signal that collects of record is less than respectively default first threshold, is more than or equal to first threshold and is less than default Second Threshold, be more than or equal to Second Threshold and be less than the number of times of the 3rd default threshold value, and forms histogram according to the number of times of statistics; Wherein, first threshold is less than Second Threshold, and Second Threshold is less than the 3rd threshold value; Be less than first threshold interval range, be more than or equal to first threshold and be less than the interval range of default Second Threshold and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value shines upon with sound type respectively;
Step 3, in this step-length in the time, the interval range at the longest rectangular strip place of the length in histogram is output as to corresponding sound type.
2. the method for identification external voice environment as claimed in claim 1, is characterized in that, described histogrammic ordinate is number of times, and horizontal ordinate is interval range.
3. the method for identification external voice environment as claimed in claim 1, it is characterized in that, described sound type comprises quietness, normal and noisy, be less than the interval range of first threshold with quiet corresponding, the interval range that is more than or equal to first threshold and is less than default Second Threshold is with normal corresponding, and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value is with noisy corresponding.
4. a device of identifying external voice environment, is characterized in that, comprising:
Microphone, for being converted to voltage signal by the voice signal receiving;
Process chip, be used in default step-length in the time, the voltage signal that collects of record is less than respectively default first threshold, is more than or equal to first threshold and is less than default Second Threshold, be more than or equal to Second Threshold and be less than the number of times of the 3rd default threshold value, and forms histogram according to the number of times of statistics; Wherein, first threshold is less than Second Threshold, and Second Threshold is less than the 3rd threshold value; Be less than first threshold interval range, be more than or equal to first threshold and be less than the interval range of default Second Threshold and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value shines upon with sound type respectively; And in this step-length in the time, the interval range at the longest rectangular strip place of the length in histogram is output as to corresponding sound type;
Output unit, for exporting corresponding sound type.
5. the device of identification external voice environment as claimed in claim 4, is characterized in that, the model of described process chip is marvel8188.
6. the device of identification external voice environment as claimed in claim 4, is characterized in that, described histogrammic ordinate is number of times, and horizontal ordinate is interval range.
7. the device of identification external voice environment as claimed in claim 4, it is characterized in that, described sound type comprises quietness, normal and noisy, be less than the interval range of first threshold with quiet corresponding, the interval range that is more than or equal to first threshold and is less than default Second Threshold is with normal corresponding, and the interval range that is more than or equal to Second Threshold and is less than the 3rd default threshold value is with noisy corresponding.
8. the device of identification external voice environment as claimed in claim 4, is characterized in that, described output unit is display or televisor or mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410342371.8A CN104101421B (en) | 2014-07-17 | 2014-07-17 | A kind of method and device for recognizing external voice environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410342371.8A CN104101421B (en) | 2014-07-17 | 2014-07-17 | A kind of method and device for recognizing external voice environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104101421A true CN104101421A (en) | 2014-10-15 |
CN104101421B CN104101421B (en) | 2017-06-30 |
Family
ID=51669753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410342371.8A Active CN104101421B (en) | 2014-07-17 | 2014-07-17 | A kind of method and device for recognizing external voice environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104101421B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112181350A (en) * | 2020-09-25 | 2021-01-05 | 北京博睿维讯科技有限公司 | Active terminal control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5579238A (en) * | 1994-10-21 | 1996-11-26 | Krugman; Michael | Instrumented computer keyboard for prevention of injury |
CN101529929A (en) * | 2006-09-05 | 2009-09-09 | Gn瑞声达A/S | A hearing aid with histogram based sound environment classification |
CN101601088A (en) * | 2007-09-11 | 2009-12-09 | 松下电器产业株式会社 | Sound judgment means, sound detection device and sound determination methods |
CN102252749A (en) * | 2010-05-17 | 2011-11-23 | 松下电器产业株式会社 | Quality evaluation method and quality evaluation apparatus |
-
2014
- 2014-07-17 CN CN201410342371.8A patent/CN104101421B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5579238A (en) * | 1994-10-21 | 1996-11-26 | Krugman; Michael | Instrumented computer keyboard for prevention of injury |
CN101529929A (en) * | 2006-09-05 | 2009-09-09 | Gn瑞声达A/S | A hearing aid with histogram based sound environment classification |
CN101601088A (en) * | 2007-09-11 | 2009-12-09 | 松下电器产业株式会社 | Sound judgment means, sound detection device and sound determination methods |
CN102252749A (en) * | 2010-05-17 | 2011-11-23 | 松下电器产业株式会社 | Quality evaluation method and quality evaluation apparatus |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112181350A (en) * | 2020-09-25 | 2021-01-05 | 北京博睿维讯科技有限公司 | Active terminal control method and device |
CN112181350B (en) * | 2020-09-25 | 2023-08-15 | 北京博睿维讯科技有限公司 | Active terminal control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104101421B (en) | 2017-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10381021B2 (en) | Robust feature extraction using differential zero-crossing counts | |
US9721560B2 (en) | Cloud based adaptive learning for distributed sensors | |
US9412373B2 (en) | Adaptive environmental context sample and update for comparing speech recognition | |
US9785706B2 (en) | Acoustic sound signature detection based on sparse features | |
US9460720B2 (en) | Powering-up AFE and microcontroller after comparing analog and truncated sounds | |
WO2016180100A1 (en) | Method and device for improving audio processing performance | |
KR102214888B1 (en) | Method and device for detecting an audio signal | |
CN103730122B (en) | Voice conversion device and method for converting user voice | |
CN103347115B (en) | The method and apparatus of a kind of output volume controlling electronic product and a kind of mobile phone | |
CN103269405A (en) | Method and device for hinting friendlily | |
CN110265036A (en) | Voice awakening method, system, electronic equipment and computer readable storage medium | |
CN106356070A (en) | Audio signal processing method and device | |
CN203219384U (en) | Device for processing communication environment noise and mobile terminal | |
WO2012151997A1 (en) | Call voice recording method and device for mobile terminal and mobile terminal | |
CN106448696A (en) | Adaptive high-pass filtering speech noise reduction method based on background noise estimation | |
CN105872258A (en) | Method and device for regulating speaking volume of terminal | |
CN102103861A (en) | Electronic equipment and health protection method | |
CN109545246A (en) | A kind of sound processing method and terminal device | |
CN106356071A (en) | Noise detection method and device | |
CN204733335U (en) | A kind of Intelligent earplug | |
CN111028838A (en) | Voice wake-up method, device and computer readable storage medium | |
CN104064212A (en) | Sound recording method and device | |
CN104101421A (en) | Method and device for identifying external sound environments | |
CN110556128B (en) | Voice activity detection method and device and computer readable storage medium | |
CN204014066U (en) | A kind of microphone test macro |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310051 Room 101, 1st Floor, Block C, No. 57, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Hangzhou Bolian Intelligent Technology Co., Ltd. Address before: Room 106, Building No. 1, 611 Jianghong Road, Changhe Street, Binjiang District, Hangzhou City, Zhejiang 310000 Patentee before: Hangzhou Gubei Electronic Technology Co., Ltd. |