CN101211563A - sound signal processing method - Google Patents
sound signal processing method Download PDFInfo
- Publication number
- CN101211563A CN101211563A CNA2006101722547A CN200610172254A CN101211563A CN 101211563 A CN101211563 A CN 101211563A CN A2006101722547 A CNA2006101722547 A CN A2006101722547A CN 200610172254 A CN200610172254 A CN 200610172254A CN 101211563 A CN101211563 A CN 101211563A
- Authority
- CN
- China
- Prior art keywords
- frequency
- sound
- voltage
- intervals
- sampled
- 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
- 230000005236 sound signal Effects 0.000 title claims abstract description 18
- 238000003672 processing method Methods 0.000 title claims abstract description 14
- 238000005070 sampling Methods 0.000 claims abstract description 65
- 238000000034 method Methods 0.000 claims description 18
- 238000001914 filtration Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 10
- 230000001755 vocal effect Effects 0.000 description 4
- 230000007613 environmental effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000036039 immunity Effects 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
Abstract
一种声音信号处理方法,包括下列步骤:首先,根据预设声音的音量,得到电压信号;接着,根据电压信号的最小电压峰值及最大电压峰值定义音量取样区间;然后,根据音量取样区间,对待取样声音进行取样。
A sound signal processing method includes the following steps: first, obtaining a voltage signal according to a preset sound volume; then, defining a volume sampling interval according to a minimum voltage peak value and a maximum voltage peak value of the voltage signal; and then, sampling the sound to be sampled according to the volume sampling interval.
Description
技术领域 technical field
本发明涉及一种声音信号处理方法,且特别涉及一种根据不同音源特征以调整取样方式的声音信号处理方法。The invention relates to a sound signal processing method, and in particular to a sound signal processing method for adjusting sampling methods according to different sound source characteristics.
背景技术 Background technique
目前市面上出售的移动电话,部分已经具有抗噪音技术的设计,将环境中音量过大或频率过高及过低的声音滤除,使使用者的声音能够清楚的传送出去。但是目前已有的技术是针对一般大众的发声频率及音量进行设计,对于部分发声特殊的群众,例如声音高亢的女性或声音低沉的男性,因为他们的发声频率高于或低于取样范围而遭到滤除,因而无法使用此种抗噪音功能。Currently, some of the mobile phones on the market have been designed with anti-noise technology, which can filter out the sounds that are too loud or the frequency is too high or too low in the environment, so that the user's voice can be clearly transmitted. However, the existing technologies are designed for the vocal frequency and volume of the general public. For some people with special voices, such as women with high-pitched voices or men with low-pitched voices, because their voice frequencies are higher or lower than the sampling range, they will be affected. to filter out, so this noise immunity feature cannot be used.
发明内容 Contents of the invention
有鉴于此,本发明的目的就是提供一种声音信号处理方法,可以针对不同人的发声特征调整取样范围,能够保留使用者的声音并滤除环境噪音。In view of this, the purpose of the present invention is to provide a sound signal processing method, which can adjust the sampling range according to the vocal characteristics of different people, and can preserve the user's voice and filter out environmental noise.
根据本发明的目的,提出第一种声音信号处理方法,包括下列步骤:首先,根据预设声音的音量,得到电压信号;接着,根据电压信号的最小电压峰值及最大电压峰值定义音量取样区间;然后,根据音量取样区间,对待取样声音进行取样。According to the purpose of the present invention, a first sound signal processing method is proposed, comprising the following steps: first, according to the volume of the preset sound, a voltage signal is obtained; then, according to the minimum voltage peak value and the maximum voltage peak value of the voltage signal, the volume sampling interval is defined; Then, according to the volume sampling interval, the sound to be sampled is sampled.
根据本发明的目的,提出第二种声音信号处理方法,包括下列步骤。首先,根据预设声音的频率,得到频率信号;接着,根据频率信号的最小频率峰值及最大频率峰值定义频率取样区间;然后,根据频率取样区间,对待取样声音进行取样。According to the purpose of the present invention, a second sound signal processing method is proposed, which includes the following steps. First, the frequency signal is obtained according to the frequency of the preset sound; then, the frequency sampling interval is defined according to the minimum frequency peak value and the maximum frequency peak value of the frequency signal; then, the sound to be sampled is sampled according to the frequency sampling interval.
根据本发明的目的,提出第三种声音信号处理方法,包括下列步骤。首先,根据预设声音的音量,得到电压信号;接着,根据电压信号的最小电压峰值及最大电压峰值定义n个电压区间;然后,将n个电压区间的第s1至第t1电压区间设定为音量取样区间,其中1<s1<t1<n;接着,根据音量取样区间,对待取样声音进行取样。According to the purpose of the present invention, a third sound signal processing method is proposed, which includes the following steps. Firstly, the voltage signal is obtained according to the volume of the preset sound; then, n voltage intervals are defined according to the minimum voltage peak value and the maximum voltage peak value of the voltage signal; then, the s1th to t1th voltage intervals of the n voltage intervals are set as The volume sampling interval, where 1<s1<t1<n; then, according to the volume sampling interval, the sound to be sampled is sampled.
根据本发明的目的,提出第四种声音信号处理方法,包括下列步骤。首先,根据预设声音的频率,得到频率信号;接着,根据频率信号的最小频率峰值及最大频率峰值定义m个频率区间;然后,将m个频率区间的第s2至第t2频率区间设定为频率取样区间,其中1<s2<t2<m;接着,根据频率取样区间,对待取样声音进行取样。According to the purpose of the present invention, a fourth sound signal processing method is proposed, which includes the following steps. First, the frequency signal is obtained according to the frequency of the preset sound; then, m frequency intervals are defined according to the minimum frequency peak and the maximum frequency peak of the frequency signal; then, the s2 to t2 frequency intervals of the m frequency intervals are set as The frequency sampling interval, where 1<s2<t2<m; then, according to the frequency sampling interval, the sound to be sampled is sampled.
为让本发明的上述目的、特征、和优点能更明显易懂,下文特举较佳实施例,并配合附图,作详细说明如下:In order to make the above-mentioned purposes, features, and advantages of the present invention more comprehensible, the preferred embodiments are specifically cited below, together with the accompanying drawings, and are described in detail as follows:
附图说明 Description of drawings
图1表示应用本发明的电子装置的功能示意图;Fig. 1 shows the functional schematic diagram of the electronic device applying the present invention;
图2表示本发明实施例一的声音信号处理流程图;Fig. 2 shows the sound signal processing flow chart of embodiment one of the present invention;
图3表示预设声音音量的电压信号示意图;Fig. 3 represents the schematic diagram of the voltage signal of preset sound volume;
图4表示待取样声音的电压信号示意图;Fig. 4 represents the voltage signal schematic diagram of the sound to be sampled;
图5表示预设声音的频率信号示意图;Fig. 5 shows the frequency signal schematic diagram of preset sound;
图6表示待取样声音的频率信号示意图;以及Fig. 6 represents the schematic diagram of the frequency signal of the sound to be sampled; and
图7表示本发明实施例二的声音信号处理流程图。FIG. 7 shows a flow chart of audio signal processing in Embodiment 2 of the present invention.
主要元件标记说明Description of main component marking
100:电子装置100: Electronics
110:本体110: Ontology
120:麦克风120: microphone
130:处理单元130: processing unit
140:记忆单元140: memory unit
150:设定按键150: Set button
具体实施方式 Detailed ways
实施例一Embodiment one
请参照图1,其表示应用本发明的电子装置的功能示意图。电子装置100包括本体110、麦克风120、处理单元130、记忆单元140及设定按键150。经由麦克风120收录使用者的声音后,经处理单元130转化为代表音量的电压信号及代表频率的频率信号后,储存于记忆单元140中。处理单元130根据代表使用者声音特征的电压信号及频率信号得到取样范围后,储存在记忆单元140内,往后即根据此取样范围对使用者的声音进行滤波,让使用者的声音能够清楚的传达出去。而当要改变使用者时,仅需按下与处理单元130连接的设定按键150,即可将原有的取样范围擦除,以录制新使用者的声音得到新的取样范围。电子装置100可包括移动电话、录音笔、语言学习机、MP3播放器或任何具有收音功能的电子装置。Please refer to FIG. 1 , which shows a functional diagram of an electronic device applying the present invention. The
请参照图2,其表示本发明实施例一的声音信号处理流程图,并请同时参考图1的组件标号。首先,如步骤201所示,并请参照图3,其表示预设声音音量的电压信号示意图。电子装置100以麦克风120根据预设声音的音量,例如使用者于安静环境下说话的音量,得到如图3的电压信号Vs。Please refer to FIG. 2 , which shows a flow chart of audio signal processing according to
接着,如步骤202所示,处理单元130根据电压信号Vs的最小电压峰值LV及最大电压峰值HV定义音量取样区间,也就是0V-5V之间。Next, as shown in
然后,如步骤203所示,将音量取样区间区分为n个电压区间。以电压信号Vs为例,由于最小电压峰值LV及最大电压峰值HV位于0V及5V之间,令n=8,将0V到5V的间区分为8个区间。也就是将0V-0.625V设定为第一区间、0.625V-1.25V设定为第二区间、1.25V-1.875V设定为第三区间、1.875V-2.5V设定为第四区间、2.5V-3.125V设定为第五区间、3.125V-3.75V设定为第六区间、3.75V-4.375V设定为第七区间、4.375V-5V设定为第八区间,对电压信号Vs进行8位的编码。本实施例中各电压区间的范围相同,但也可各自设定不同的范围,本发明不以此为限。此外,虽然本实施例将音量做8位的编码,但是也可以更高的分辨率划分更多的取样区间,例如24位、32位或128位等等,以取得更细腻的音量变化。Then, as shown in
接着,如步骤204所示,并请参照图4,其表示待取样声音的电压信号示意图。处理单元130根据步骤203定义的音量取样区间,对待取样声音的待取样电压信号SV进行取样,例如使用者于吵杂环境说话的声音。也就是说,处理单元130对待取样声音的音量所对应的待取样电压信号SV位于音量取样区间的部份进行取样。由于音量取样区间位于0V-5V的间,因此大于5V的电压信号不会进行取样,而得到一个音量适中的声音。Next, as shown in step 204 , please refer to FIG. 4 , which shows a schematic diagram of the voltage signal of the sound to be sampled. The
然后,如步骤205所示,并请参照图5,其表示预设声音的频率信号示意图。根据预设声音的频率,得到频率信号Fs。Then, as shown in step 205 , please refer to FIG. 5 , which shows a schematic diagram of the frequency signal of the preset sound. According to the frequency of the preset sound, the frequency signal Fs is obtained.
接着,如步骤206所示,根据频率信号Fs的最小频率峰值LF及最大频率峰值HF,定义频率取样区间,也就是500Hz-2000Hz之间。Next, as shown in
然后,如步骤207所示,将频率取样区间区分为m个频率区间。本实施例中,频率信号Fs大致上位于500Hz-2000Hz之间,令m=8,区分为8个频率区间。也就是说,将500Hz-687.5Hz设为第一区间、687.5Hz-875Hz设为第二区间、875Hz-1062.5Hz设为第三区间、1062.5Hz-1250Hz设为第四区间、1250Hz-1437.5Hz设为第五区间、1437.5Hz-1625Hz设为第六区间、1625Hz-1812.5Hz设为第七区间、1812.5Hz-2000Hz设为第八区间,对频率信号Fs进行8位的编码。本实施例中各频率区间的范围相同,但也可各自设定不同的范围,本发明不以此为限。此外,虽然本实施例将频率做8位的编码,但是也可以更高的分辨率划分更多的取样区间,例如24位、32位或128位等等,以取得更细腻的频率变化。Then, as shown in
接着,如步骤208所示,并请参照图6,其表示待取样声音的频率信号示意图。处理单元130根据频率取样区间,对待取样声音的待取样频率信号SF进行取样。例如使用者于吵杂环境下发出的声音。也就是说,处理单元130对待取样声音的频率所对应的待取样频率信号SF位于频率取样区间的部份进行取样。由于频率取样区间位于500Hz-2000Hz之间,因此小于500Hz的低频部分或大于2000Hz的高频部分的频率信号不会进行取样,而得到一个较接近原使用者说话的频率的声音。Next, as shown in step 208 , please refer to FIG. 6 , which shows a schematic diagram of the frequency signal of the sound to be sampled. The
此外,本实施例于步骤204及步骤205之间,还可包括以带通滤波器(bandpass filter)对待取样声音所对应的待取样频率信号SF进行滤波,以事先过滤掉大部分的噪声。带通滤波器的频率范围可以设定为位于100Hz~4000Hz之间,也就是一般人发声的频率范围。In addition, between step 204 and step 205, this embodiment may further include filtering the frequency signal to be sampled SF corresponding to the sound to be sampled with a bandpass filter, so as to filter out most of the noise in advance. The frequency range of the band-pass filter can be set to be between 100 Hz and 4000 Hz, which is the frequency range of the voice of ordinary people.
本实施例中,步骤201-204对于音量部分做取样,步骤205-208则对于频率部分做取样。事实上,处理单元130可以同时或分别对音量及频率作取样,因此也可以先进行步骤205-208,再进行步骤201-204,本发明不以此为限。In this embodiment, steps 201-204 sample the volume part, and steps 205-208 sample the frequency part. In fact, the
实施例二Embodiment two
请参照图7,其表示本发明实施例二的声音信号处理流程图,并请同时参考图1的组件标号,其余与实施例一相同的组件及步骤说明,不再赘述。首先,如步骤301所示,并请参照图3,根据预设声音的音量,得到电压信号Vs。Please refer to FIG. 7 , which shows the flow chart of sound signal processing in Embodiment 2 of the present invention, and please also refer to the component numbers in FIG. 1 . First, as shown in step 301 and referring to FIG. 3 , the voltage signal Vs is obtained according to the volume of the preset sound.
接着,如步骤302所示,处理单元130根据电压信号Vs的最小电压峰值LP及最大电压峰值HP定义n个电压区间。本实施例一样在0V-5V的间定义8个电压区间(n=8)。其中各8个电压区间的范围相同,但不以此为限。Next, as shown in step 302 , the
然后,如步骤303所示,处理单元130将n个电压区间的第s1至第t1电压区间设定为音量取样区间,其中1<s1<t1<n。本实施例中令n=8,并假设最小电压峰值LV落于第二区间之间,最大电压峰值HV落于第七区间3.75V-4.375V之间。因此,可令s1=2,t1=7,设定0.625V-4.375V为音量取样区间。Then, as shown in
接着,如步骤304所示,并参考图4,根据音量取样区间,对待取样声音进行取样。也就是对待取样声音的音量所对应的待取样电压信号SV位于音量取样区间的部份进行取样。Next, as shown in
然后,如步骤305所示,并参照图5。根据预设声音的频率,得到频率信号Fs。Then, as shown in
接着,如步骤306所示,处理单元130根据频率信号Fs的最小频率峰值LF及最大频率峰值HF定义m个频率区间。本实施例一样在500Hz-2000Hz之间定义8个频率区间。其中8个频率区间的范围相同,但不以此为限。Next, as shown in
然后,如步骤307所示,处理单元130将m个频率区间的第s2至第t2频率区间设定为频率取样区间,其中1<s2<t2<m。本实施例中令m=8,并假设最小频率峰值LF落于第三区间875Hz-1062.5Hz之间,最大频率峰值HF落于第七区间1625Hz-1812.5Hz之间。因此,可令s2=3,t2=7,设定875Hz-1812.5Hz为频率取样区间。Then, as shown in
接着,如步骤308所示,并参照图6。根据频率取样区间,对待取样声音进行取样。也就是对待取样声音的频率所对应的待取样频率信号SF位于频率取样区间的部份进行取样。Next, as shown in step 308, and refer to FIG. 6 . According to the frequency sampling interval, the sound to be sampled is sampled. That is, the part of the frequency signal SF to be sampled corresponding to the frequency of the sound to be sampled located in the frequency sampling interval is sampled.
此外,在步骤304及步骤305之间,还包括以带通滤波器对待取样声音所对应的待取样频率信号SF进行滤波。带通滤波器的频率范围可设定位于100Hz~4000Hz之间。In addition, between
本实施例中,步骤301-304对于音量部分做取样,步骤305-308则对于频率部分做取样。事实上,处理单元130可以同时或分别对音量及频率作取样,因此也可以先进行步骤305-308,再进行步骤301-304,本发明不以此为限。In this embodiment, steps 301-304 sample the volume part, and steps 305-308 sample the frequency part. In fact, the
本实施例通过设定更精确的取样范围,让使用者的音量及频率特征能够更精确的被摄取,保留使用者主要的发声特征。In this embodiment, by setting a more accurate sampling range, the volume and frequency characteristics of the user can be captured more accurately, and the main vocal characteristics of the user can be preserved.
本发明上述实施例所披露的声音信号处理方法,能够根据使用者的发声特征做出适当的取样范围,过滤掉环境噪音。由于可以根据不同的使用者进行调整取样范围,对于具有特殊发声特征的使用者也能够使用此功能滤除环境噪音。The audio signal processing method disclosed in the above-mentioned embodiments of the present invention can make an appropriate sampling range according to the user's vocalization characteristics, and filter out environmental noise. Since the sampling range can be adjusted according to different users, users with special vocal characteristics can also use this function to filter out environmental noise.
综上所述,虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明。本发明所属技术领域的技术人员,在不脱离本发明的精神和范围内,当可作各种的更动与改进。因此,本发明的保护范围当视权利要求所界定者为准。To sum up, although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Those skilled in the art to which the present invention belongs can make various changes and improvements without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be determined by what is defined by the claims.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101722547A CN101211563B (en) | 2006-12-30 | 2006-12-30 | sound signal processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101722547A CN101211563B (en) | 2006-12-30 | 2006-12-30 | sound signal processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101211563A true CN101211563A (en) | 2008-07-02 |
CN101211563B CN101211563B (en) | 2011-12-21 |
Family
ID=39611542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006101722547A Expired - Fee Related CN101211563B (en) | 2006-12-30 | 2006-12-30 | sound signal processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101211563B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107331404A (en) * | 2017-06-22 | 2017-11-07 | 深圳传音通讯有限公司 | The sound processing method and device of audio frequency and video |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4405948A (en) * | 1982-01-26 | 1983-09-20 | Rca Corporation | Volume control signal coupling circuit in an audio signal processing system |
US5790671A (en) * | 1996-04-04 | 1998-08-04 | Ericsson Inc. | Method for automatically adjusting audio response for improved intelligibility |
JP3225918B2 (en) * | 1998-03-30 | 2001-11-05 | 日本電気株式会社 | Mobile terminal device |
CN1299092A (en) * | 1999-12-03 | 2001-06-13 | 张发勋 | Use voice to turn on and off the computer power system |
CN100466467C (en) * | 2004-12-02 | 2009-03-04 | 上海交通大学 | Automatic volume limiting device with automatic gain control function |
-
2006
- 2006-12-30 CN CN2006101722547A patent/CN101211563B/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107331404A (en) * | 2017-06-22 | 2017-11-07 | 深圳传音通讯有限公司 | The sound processing method and device of audio frequency and video |
Also Published As
Publication number | Publication date |
---|---|
CN101211563B (en) | 2011-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103236263B (en) | Method, system and mobile terminal for improving call quality | |
Nakajima et al. | Non-audible murmur recognition input interface using stethoscopic microphone attached to the skin | |
NO20050986L (en) | Method and apparatus for multi-sensory voice recording preparation on mobile equipment | |
CN104735232B (en) | A kind of method and apparatus for realizing function of hearing aid on mobile terminals | |
JP2017538146A (en) | Systems, methods, and devices for intelligent speech recognition and processing | |
CN110708625A (en) | Ambient sound suppression and enhancement adjustable earphone system and method based on intelligent terminal | |
WO2005018275A3 (en) | Speech-based optimization of digital hearing devices | |
KR102350890B1 (en) | Portable hearing test device | |
CN107690034A (en) | Intelligent scene mode switching system and method based on environmental background sound | |
JP5027127B2 (en) | Improvement of speech intelligibility of mobile communication devices by controlling the operation of vibrator according to background noise | |
JP2009178783A (en) | Communication robot and control method thereof | |
JPWO2006011405A1 (en) | Digital filtering method, digital filter device, digital filter program, computer-readable recording medium, and recorded device | |
WO2019228329A1 (en) | Personal hearing device, external sound processing device, and related computer program product | |
JP7218143B2 (en) | Playback system and program | |
CN104851423A (en) | Sound message processing method and device | |
CN101211563A (en) | sound signal processing method | |
JP7284570B2 (en) | Sound reproduction system and program | |
CN106548782A (en) | The processing method and mobile terminal of acoustical signal | |
WO2008075305A1 (en) | Method and apparatus to address source of lombard speech | |
US8204257B2 (en) | System and method for increasing ring tone volume | |
CN213877572U (en) | Human voice enhancement and environment prediction system based on deep learning | |
CN114513723A (en) | Howling suppression method, device, earphone and storage medium | |
JP2008042740A (en) | Microphone for collecting non-audible tweets | |
CN208000739U (en) | Optimized for external voice signaling devices | |
CN101771390B (en) | Sound output and input system and its volume output adjustment method |
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: 20111221 |