TW200410508A - Method for detecting a tone signal through digital signal processing - Google Patents

Method for detecting a tone signal through digital signal processing Download PDF

Info

Publication number
TW200410508A
TW200410508A TW91136013A TW91136013A TW200410508A TW 200410508 A TW200410508 A TW 200410508A TW 91136013 A TW91136013 A TW 91136013A TW 91136013 A TW91136013 A TW 91136013A TW 200410508 A TW200410508 A TW 200410508A
Authority
TW
Taiwan
Prior art keywords
signal
frequency
sampling
patent application
item
Prior art date
Application number
TW91136013A
Other languages
Chinese (zh)
Other versions
TW591903B (en
Inventor
Chau-Kai Hsieh
Original Assignee
Conwise Technology Corp 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 Conwise Technology Corp Ltd filed Critical Conwise Technology Corp Ltd
Priority to TW91136013A priority Critical patent/TW591903B/en
Application granted granted Critical
Publication of TW591903B publication Critical patent/TW591903B/en
Publication of TW200410508A publication Critical patent/TW200410508A/en

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

A method for detecting a tone signal having a predetermined tone frequency includes receiving an analog communication signal, using a sampling frequency to convert the analog communication signal into a digital communication signal, selecting a plurality of signal sectors, which corresponds to a predetermined frequency range, out of the digital communication signal wherein the predetermined tone frequency agrees with the predetermined frequency range, and using the number of samples of each signal sector to determine whether the analog communication signal contains the tone signal.

Description

200410508 五、發明說明(l) 發明所屬之技術領域 本發明提供一種無線通訊裝置偵測對應一音頻頻率 (tone frequency)之音頻訊號的方法,尤指一種無線通 A裝置使用數位訊號處理(digital signal processing )以及過零率(zer〇 —cr〇ssing rate,ZCR)處理來摘測 該音頻訊號的方法。 先前技術 連續音頻編碼靜音系統(continuous tone-coded squelch system, CTCSS)已經被廣泛地應用於無線通信 的領域中,主要係用來於一通信區域中讓複數個使用者經 由同一通訊頻道(c h a η n e 1)進行通話,該連續音頻編碼 靜音系統係使用一低頻的音頻訊號(CTCSS tone)來區別 於一通訊頻道上所傳輸的訊號,例如習知手提無線對講機 (walki -talki)便是應用該連續音頻編碼靜音系統來達 到團體通話(group communication)的目的。請參閱圖 一,圖一為習知連續音頻編碼靜音系統所使用頻率範圍的 示意圖。如圖一所示,頻率62· 5Hz與2 5 0Hz之間的頻率範 圍主要係用來傳輸上述低頻的音頻訊號,而頻率3 〇 〇 Η z與 3. 4ΚΗζ之間的頻率範圍則用來傳輸一使用者產生的語音訊 號(speech signal)。對於習知手提無線對講機而言, 其操作原理簡述如下,一般來說係使用1 4個通訊頻道200410508 V. Description of the Invention (l) Technical Field of the Invention The present invention provides a method for a wireless communication device to detect an audio signal corresponding to a tone frequency, especially a wireless communication device using digital signal processing (digital signal). processing) and a zero-crossing rate (Zero-crossing rate, ZCR) process to extract and measure the audio signal. The prior art continuous tone-coded squelch system (CTCSS) has been widely used in the field of wireless communication, and is mainly used to allow multiple users to pass through the same communication channel (cha η) in a communication area. ne 1) For a call, the continuous audio coding mute system uses a low-frequency audio signal (CTCSS tone) to distinguish it from a signal transmitted on a communication channel. For example, walki-talki Continuous audio coding mute system to achieve the purpose of group communication. Please refer to Figure 1. Figure 1 is a schematic diagram of the frequency range used in the conventional continuous audio coding mute system. As shown in Figure 1, the frequency range between frequencies 62 · 5Hz and 250Hz is mainly used to transmit the above-mentioned low-frequency audio signals, and the frequency range between frequencies 〇〇Ηz and 3.4KΗζ is used to transmit A user generates a speech signal. For the conventional portable wireless walkie-talkie, the operation principle is briefly described as follows. Generally, 14 communication channels are used.

200410508200410508

五、發明說明(2) (channel) Pf" ·· Pi床進行訊號傳送與接收,該1糊通訊 頻道係為實體通道(physical channel),此外’每一通 訊頻道又可依據3 8個不同頻率之音頻訊號T f••…T 3涞產生 總共 532( 14*38)個邏輯通道(logical channel),當 一發話者設定該手提無線對講機所使用的實體通道為P从 及所使用的音頻訊號為T !,亦即該發話者設定其邏輯通道 為P i ( T 〇 ,當該發話者經由按壓該手提無線對講機之通 話鍵(push-to-talk,PTT)後,該發話者便可經由讀實 體通道P輸出其語音訊號至該手提無線對講機所對應的預 定通信範圍中,若該預定通信範圍中有其他3位使用者, 且分別設定其所使用的邏V. Description of the invention (2) (channel) Pf " · The Pi bed transmits and receives signals. The communication channel is a physical channel. In addition, each communication channel can be based on 38 different frequencies. The audio signal T f ••… T 3 涞 generates a total of 532 (14 * 38) logical channels. When a speaker sets the physical channel used by the portable radio as P slave and the audio signal used Is T !, that is, the caller sets its logical channel to P i (T 〇, when the caller presses the push-to-talk (PTT) button of the portable radio, the caller can pass Read the physical channel P to output its voice signal to the predetermined communication range corresponding to the portable radio, if there are three other users in the predetermined communication range, and set the logic used by them

^ ^ ^ w ^ ^ 1 1 V 1 1; ' ϊ ^ 1 38; Λ (το ,對於第一位使用者而言,由於其手提無線對講拖 係於實體通道P進行訊號傳送與接收,因此第一位使用 之手提無線對講機會開始接收該發話者所輸出的語音 ΪαΪ該d斜講機判斷該發話者所使用的音頻訊號 亦為T r亦即孩發話者與該第一位使用^ 輯通道P丨(τ丨),因此禕篦一仞蚀用I 勺认疋相同的邏 便會將接收至該發話者的語音訊餘由—1 4機 从你田本而一,士 到發者的語音訊號,對於第二 位使用者而a由於其手提無線對講機係於實㉟ 二^ ^ ^ w ^ ^ 1 1 V 1 1; 'ϊ ^ 1 38; Λ (το, for the first user, because his portable wireless intercom is connected to the physical channel P for signal transmission and reception, so The first portable wireless intercom used to start receiving the voice output by the speaker ΪαΪ The d intercom judged that the audio signal used by the speaker was also T r, that is, the child speaker and the first one used Channel P 丨 (τ 丨), so if I use the I spoon to recognize the same logic, I will receive the voice message of the caller from -1 to 4 from your Tianben, taxi to the sender Voice signal for the second user, because a portable walkie-talkie is attached to the second user

行訊號傳送與接收,因此第二位使用手m 亦會開始接收該發話者所輸出的語音訊號ΐΐίί4機 線對講機判斷該發話者所使用的音頻訊號?而^手提無 即該發話者與該第二位使用者分別号$泥馮11而非τ38,亦 位便用者刀別。又疋不同的邏輯通道ΡLine signal transmission and reception, so the second user using hand m will also start to receive the voice signal output by the caller. Ίί 4 line radio to determine the audio signal used by the caller? The two users were numbered as $ 泥 冯 11 instead of τ38. Different logical channels

第6頁 200410508 五、發明說明(3) (Τι)與Ρι(Τ38),因此兮 機並不會將接收至該發^第二位使用/之手提無線對講 所以該第二位使用者ifί,語音=號i由一 t八輸出, 於第三位使用者而t,d ?者的語音訊號,對 道P终行訊號傳送與接二於其手f無線f講機係於實體通 對講機與該發話者係分別使用=甬使二气之手提無線 位使用者之手提無線對’因此第三 / ·」· 可兩機無法依據一收訊強度指示 C received signal st丄! ·」· 丄 八 irength indicator, RSSI)所偵測 f,訊號強度來開始接收該發話者所傳送的訊號,因此該 第三位使用者之手提無線對講機並不會接收該發話者的語 音訊,二也就=會經由一喇叭輸出該發話者的語音訊號, 所以該第二、三^使用者並無法聽到該發話者的語音訊號 亦即說該第二、三位使用者之手提無線對講機經由判斷該 音頻訊號而啟動靜音(Squelch)功能,換句話說,設定 相同邏輯通道的使用者才可彼此間進行通話來達到上述團 體通活的目的’因此對於收話者而言,如何债测該發話者 所使用的邏輯通道便成為習知手提無線對講機的重要課 題。Page 6 200410508 V. Description of the invention (3) (Ti) and Pι (Τ38), so the machine will not receive it. The second person uses / hand-held wireless intercom so the second user if The voice = number i is output by one t eight, and the voice signal of the third user and t, d? Is transmitted and connected to the final signal of the channel P. The wireless f walkie-talkie is connected to the physical walkie-talkie. Use the same wireless connection with the speaker as 甬 to make the second wireless mobile user's portable wireless pair 'hence the third / · "· but the two machines cannot follow the C received signal st 丄! · "· The eighth indicator (RSSI) detected f, the signal strength to start receiving the signal sent by the caller, so the portable radio of the third user will not receive the voice signal of the caller, Two is also = the speaker's voice signal will be output through a speaker, so the second and third users cannot hear the voice signal of the caller, that is, the portable radio of the second and third users passes Judging the audio signal and activating the Squelch function, in other words, users with the same logical channel can talk to each other to achieve the purpose of the above group communication. Therefore, for the receiver, how to test the debt The logical channel used by the speaker has become an important subject for conventional portable radios.

請參閱圖一與圖二’圖二為習知手提無線對講機1 0的 功能方塊示意圖。手提無線對講機1 0包含有一天線 (antenna) U,一 收發器(transceiver) 12,一 選擇器 (selector) 14,一 解碼器( CTCSS decoder) 16, —編 碼器(CTCSS encoder) 18,一語音訊號處理單元2〇,〆Please refer to FIG. 1 and FIG. 2 'FIG. 2 is a functional block diagram of a conventional portable radio 10. The portable wireless walkie-talkie 10 includes an antenna U, a transceiver 12, a selector 14, a CTCSS decoder 16, a CTCSS encoder 18, and a voice signal. Processing unit 20, 〆

第7頁 63Q 200410508 五、發明說明(4) 制 ^fDP,aker) 22’ 一 麥克風("Aerophone) 24,以及 值二U單凡2 6。手提無線對講機1 0可經由天線1 1來接收與 古ί从頻訊號RF,對於接收射頻訊號RF而言,收發器1 2將 =w h射頻訊號RF轉換為低頻的基頻訊號Rx,求傳送至選 I?态to,ΐ後選擇器1 4會經由輸出端A輸出該基頻訊號 x,解碼器1 6則依據基頻訊號“來判斷其音頻訊號之頻 淪箕=般而言,解碼器1 6包含有一個類比濾波電路用來過 j基頻訊號Rx中介於頻率62· 5Hz與頻率25〇112之間的訊 Ϊ的斷對應基頻訊號^的音頻訊號以決定是否使用相 =的,輯通道,同時解碼器16會將其判斷結 26,若基頻訊號以所對應的邏輯 益 設ir輯通道相同,則控制單元以以: 來進灯後#讯號輸出處理,語音訊號處理單元2〇亦 有兩個類比濾波電路,用來擷取頻率30 0H通3 =率3.4ΚΗζ的高通渡波之間的訊號,最後再經由^f f。相反地,若基頻訊號Rx所對應的邏輯通道盥 = 2講機ίο所設定的邏輯通道不同’則控制單元2、6便不;^ $ ,語音訊號處理單兀20與喇叭22,因此手 ^ 便不會輸出經由不同邏輯通道所傳送的任何;J對=〇 ,射頻訊號RF…當-使用者按壓該 14會選取輸入端B’同時控制單元26會啟動 / $擇/ $該使用者之$音訊號便可輸入至語音訊號處 如前所述,語音訊號處理單元,20經由其濾波雷攸=二Μ, 率3 0 0 I1Z至頻率3·4ΚΗζ之間的訊號,麸後•再電路來榻取頻 …、傻再輸出至編碼器Page 7 63Q 200410508 V. Description of the Invention (4) System ^ fDP, aker) 22 ’A microphone (Aerophone) 24, and the value of 2 U Danfan 26. The portable wireless walkie-talkie 10 can receive and transmit the secondary frequency signal RF via the antenna 11. For receiving the radio frequency signal RF, the transceiver 12 converts the = wh radio frequency signal RF into a low-frequency fundamental frequency signal Rx, and transmits it to Select the I state to, and then the selector 14 will output the baseband signal x through the output terminal A, and the decoder 16 will judge the frequency of its audio signal based on the baseband signal ". Generally speaking, the decoder 1 6 contains an analog filter circuit to pass the signal of the base frequency signal Rx between the frequency of 62.5 Hz and the frequency of 250.112 to the audio signal corresponding to the base frequency signal ^ to determine whether to use phase =, The decoder unit 16 will judge it 26 at the same time. If the baseband signal is set to the same logical channel as the corresponding channel, the control unit will use: to enter the light after the # signal output processing, the voice signal processing unit There are also two analog filter circuits, which are used to capture the signal between the high-pass crossing waves with a frequency of 30 0H3 and a rate of 3.4KΗζ, and then pass through ^ ff. Conversely, if the fundamental frequency signal Rx corresponds to the logical channel Toilet = 2 sets of logic channels set different control rules 2, 6 will not; ^ $, the voice signal processing unit 20 and the speaker 22, so the hand ^ will not output any transmitted through different logical channels; J pair = 〇, radio frequency signal RF ... When-the user presses the 14 will select the input terminal B 'and the control unit 26 will start / $ opt / $ The user's $ audio signal can be input to the voice signal. As mentioned earlier, the voice signal processing unit 20 filters through its filter. Μ, the signal between the rate of 3 0 0 I1Z and the frequency of 3 · 4Κ , ζ, after the bran • the circuit to get the frequency ..., and then output to the encoder

200410508 五、發明說明(5) 1 8,編碼器1 8會依據手提無線對講機丨〇所設定的邏輯通道 (CTCSS code)而加入相對應音頻訊號至語音訊號處理單元 2 0的輸出訊號而產生基頻訊號τχ,最後經由收發器1 2轉換 為高頻的射頻訊號RF而經由天線1 1輸出。 如上所述,習知手提無線對講機丨〇係執行類比訊號處 理(analog signal processing),亦即對於接收類比射 頻訊號RF至經由喇π八22輸出類比基頻訊號Rx之間係以類比 =式來進行音頻訊號等相關處理,亦即解碼器丨6必須使用 習知濾波電路來擷取所需的頻率範圍(6 2. 5〜2 5 0 Hz),然 而習知濾波電路由於本身特性並無法得到精準的(sharp )的過濾特性來擷取出所需頻率範圍的訊號,例如當3 8個 音頻訊號平均分佈於頻率62· 5Hz至頻率25 0KHz之間時,相 鄰音頻訊號之頻率差僅大約3到5Hz,亦即解碼器1 6極可能 會產生誤判音頻訊號而影響實際訊號接收。 發明内容 因此本發明的主要目的在於提供一種無線通訊裝置以 數位訊號處理與過零率處理來偵測對應一音頻頻率之音頻 訊號的方法,以解決上述問題。 本I明之申清專利範圍提供一種無線通訊裝置偵測對 應一音頻頻率(tone frequency)之音頻訊號之方法,其200410508 V. Description of the invention (5) 18, the encoder 18 will generate the basic signal by adding the corresponding audio signal to the output signal of the voice signal processing unit 20 according to the logical channel (CTCSS code) set by the portable radio. The frequency signal τχ is finally converted into a high-frequency radio frequency signal RF by the transceiver 12 and output through the antenna 11. As mentioned above, the conventional portable radios are performing analog signal processing, that is, for receiving analog radio frequency signals RF to outputting analog baseband signals Rx via π 22 22, the analog = formula is used. For audio signals and other related processing, that is, the decoder 6 must use a conventional filter circuit to capture the required frequency range (6.2 to 2.5 Hz). However, the conventional filter circuit cannot be obtained due to its characteristics. Accurate (sharp) filtering characteristics to extract signals in the required frequency range. For example, when 38 audio signals are evenly distributed between the frequency 62 · 5Hz to 25 0KHz, the frequency difference between adjacent audio signals is only about 3 To 5Hz, that is, the decoder 16 will most likely produce misjudgment audio signals and affect the actual signal reception. SUMMARY OF THE INVENTION Therefore, a main object of the present invention is to provide a method for a wireless communication device to detect an audio signal corresponding to an audio frequency by using digital signal processing and zero-crossing rate processing to solve the above problems. The scope of this patent application provides a method for a wireless communication device to detect an audio signal corresponding to a tone frequency.

第9頁 200410508 五、發明說明(6) 包含有接收一類比語音訊號,並使用一取樣頻率 (sampling frequency)將該類比語音訊號轉換為一數位 w曰成说’该數位$吾音机號係由複數個訊號區段構成,每 一訊號區段對應一週期(p e r i 〇 d);於一偵測時間 (frame time)内,選取該數位語音訊號中對應於一預定 頻率範圍内之複數個第一訊號區段;以及依據每一第一訊 號區段所對應之取樣點(sample)之數目來判斷該類比語 音訊號是否包含對應該音頻頻率之音頻訊號。該音頻頻率 係位於該預定頻率範圍中。 實施方式 請參閱圖三,圖三為本發明解碼器3 0的功能方塊示意 圖。解碼器3 0係應用於圖二所示之習知手提無線對講機 1 〇,用來偵測一發話者輸出之通訊訊號的相對應音頻訊號 以決定是否使用相同的邏輯通道。本實施例中,解碼器3 〇 包含有一類比/數位轉換器(anal〇g-to-digi tal converter,ADC) 32,一數位訊號處理器(digital signal processor, DSP) 34,一隨機存取記憶體 (random access memory, RAM) 36,以及一唯讀記憶體 (read-only memory, ROM) 38。如圖二所示,當習知手 提無線對講機1 0經由天線11接收一語音訊號A1後傳送至解 碼器3 0進行音頻訊號的相關處,理,然後本實施例之類比/ 數位轉換器3 2會將該類比的語音訊號A1以一取樣頻率Page 9 200410508 V. Description of the invention (6) It includes receiving an analog voice signal and using a sampling frequency to convert the analog voice signal into a digital w saying that the digital $ 我 音 机 号 系It is composed of a plurality of signal segments, and each signal segment corresponds to a period (period); within a frame time, a plurality of first digital speech signals corresponding to a predetermined frequency range are selected. A signal segment; and determining whether the analog voice signal includes an audio signal corresponding to an audio frequency according to the number of sample points corresponding to each first signal segment. The audio frequency is located in the predetermined frequency range. Embodiment Please refer to FIG. 3, which is a schematic diagram of a functional block of the decoder 30 of the present invention. The decoder 30 is applied to the conventional portable wireless walkie-talkie 10 shown in FIG. 2 to detect the corresponding audio signal of the communication signal output by a speaker to determine whether to use the same logical channel. In this embodiment, the decoder 30 includes an analogue-to-digi tal converter (ADC) 32, a digital signal processor (DSP) 34, and a random access memory. Random access memory (RAM) 36, and a read-only memory (ROM) 38. As shown in FIG. 2, when the conventional portable radio 1 10 receives a voice signal A1 via the antenna 11 and transmits it to the decoder 30 for audio signal processing, the analog / digital converter 3 2 of this embodiment is then processed. Will take the analog voice signal A1 at a sampling frequency

第10頁 200410508 五、發明說明(7) (samp 1 ing frequency)轉換為一數位的語音訊號m,而 該語音訊號D 1則經由數位訊號處理器3 4來進一步地偵測語 音訊號D 1是否使用手提無線對講機1 〇所設定的邏輯通道, 亦即數位訊號處理器3 4係處理語音訊號d 1中對應於頻率 6 2 · 5 Η z〜2 5 0 Η z間的訊號來判斷該語音訊號a 1所對應的音頻 頻率(tone frequency)。此外,唯讀記憶體38則儲存數 位訊號處理器3 4用來執行上述操作所需的運算程式,並經 由隨機存取記憶體3 6來暫存數位訊號處理器4 0執行該達算 程式所產生的暫存資料,亦即隨機存取記憶體4 8係為一資 料暫存器(buffer),當數位訊號處理器34完成該語音訊 號D1的音頻訊號處理後會產生一偵測結果!)2,並傳送至一 控制電路4 0 (例如一微處理器),其係用來控制習知手提 無線對溝機的整體運作,並提供一人機介面(man ^machine interface, MMI)以使一使用者經由該人機介面 得知該手提無線對講機之狀態與經由該人機介面來操作該 手提無線對講機,所以控制電路4〇便依據該偵測結果^來 判斷該手提無線對講機是否經由一輸出裝置(例如圖二所 不之剩八2 2)來輸出該語音訊號A丨中頻率介於 3 0 0Hz〜3· 4KHz的訊號而完成訊號接收。 請參閱圖四,圖四為圖三所示之數位訊號處理器3 4的 運作流程圖。數位訊號處理器3 4的運作包含有下列步驟·· 步驟1 〇 〇 ··開始;Page 10 200410508 V. Description of the invention (7) (samp 1 ing frequency) is converted to a digital voice signal m, and the voice signal D 1 is further detected by the digital signal processor 3 4 to determine whether the voice signal D 1 is Use the logical channel set by the portable wireless walkie-talkie 10, that is, the digital signal processor 3 4 series processes the voice signal d 1 corresponding to the frequency 6 2 · 5 Η z ~ 2 5 0 Η z to determine the voice signal a 1 corresponds to the tone frequency. In addition, the read-only memory 38 stores the calculation program required by the digital signal processor 34 to perform the above operations, and temporarily stores the digital signal processor 40 through the random access memory 36 to execute the calculation program. The generated temporary data, that is, the random access memory 48 is a data buffer. When the digital signal processor 34 finishes processing the audio signal of the voice signal D1, a detection result will be generated! ) 2, and transmitted to a control circuit 40 (such as a microprocessor), which is used to control the overall operation of the conventional portable wireless trencher and provides a man-machine interface (MMI) to enable A user learns the state of the portable radio through the human-machine interface and operates the portable radio through the human-machine interface, so the control circuit 40 judges whether the portable radio has passed a The output device (for example, 8 2 2 left in Fig. 2) outputs a signal with a frequency between 300 Hz and 3.4 kHz in the voice signal A 丨 to complete signal reception. Please refer to FIG. 4, which is a flowchart of the operation of the digital signal processor 34 shown in FIG. The operation of the digital signal processor 34 includes the following steps: Step 10: Start;

第11頁 634 200410508 五、發明說明(8) 步驟1 0 2 :對語音訊號D 1之一取樣點執行一對應該邏輯通 道的帶通過滤處理(band-pass filtering); 步驟1 0 4 ··對該帶通過濾處理後之信號執行一平滑過濾處 理(smooth filtering); 步驟 106:使用一過零率(zero crossing rate,ZCR)處 理來判斷該語音訊號D1是否已輸入對應一週期(period) 的取樣點至數位訊號處理器3 4,若是,則執行步驟1 〇 8, 否則執行步驟11 2 ; 步驟1 0 8 :偵測該週期之取樣點所對應的信號能量 (signal energy),並比較該信號能量與一預定能量數 值以判斷該週期的取樣點是否有效(va 1 i d),以及比較 該週期的取樣點之數目與一預定計數值以判斷該週期的取 樣點是否有效,若是,則執行步驟1 1 〇,否則執行步驟 112; 步驟1 1 0 :紀錄該週期之取樣點之數目; 步驟112·檢查疋否已達到一檢查時間(frame period ),若是,則執行步驟11 4 ,否則執行步驟i 〇 2 ; 步驟1 1 4 :計算已兄錄之每一週期取樣點數目的平均值; 步驟1 1 6 :計算該平均值與該預定計數值的偏移量; 步驟1 18 :比較該偏移量與一臨界值(thresh〇id)以判斷 該語音訊號D 1是否使用該邏輯通道,並告知控制電路,回 到步驟102。 數位訊號處理器3 4判斷音頻訊號的操作敘述如下,如Page 11 634 200410508 V. Description of the invention (8) Step 1 0 2: Perform a pair of logical channel band-pass filtering on one sampling point of the voice signal D 1; Step 1 0 4 ·· A smooth filtering process is performed on the band-passed signal; step 106: use a zero crossing rate (ZCR) process to determine whether the voice signal D1 has been input for a period The sampling point to the digital signal processor 34, if yes, then go to step 10; otherwise, go to step 11 2; step 108: detect the signal energy corresponding to the sampling point in the period, and compare The signal energy and a predetermined energy value are used to determine whether the sampling points in the period are valid (va 1 id), and the number of sampling points in the period is compared with a predetermined count value to determine whether the sampling points in the period are valid. If so, then Go to step 1 1 0, otherwise go to step 112; step 1 1 0: record the number of sampling points in the period; step 112 check whether the frame period has been reached, and if so, execute Step 11 14, otherwise execute step i 〇 2; Step 1 14: Calculate the average value of the number of sampling points in each cycle of the brother record; Step 1 16: Calculate the offset between the average value and the predetermined count value; Step 118: Compare the offset with a threshold value to determine whether the voice signal D1 uses the logical channel, and inform the control circuit, and then return to step 102. The operation of the digital signal processor 3 4 to determine the audio signal is described below, such as

$ 12頁 200410508 五、發明說明(9) 圖一所示,音頻訊號的頻率係介於62. 5Hz〜25 0Hz之間,因 此38個不同頻率的音頻訊號會分佈於62· 5Hz〜2 5 0 Hz之間, 所以本實施例係先使用3 8個頻率範圍來過濾輸入語音訊號 D1以簡化後續處理的複雜度(c〇mpiexity),舉例來說, 若一使用者設定其手提無線對講機的邏輯通道為Ρι( τ38 )’亦即採用第38個音頻訊號(其頻率為25〇Ηζ)來區別 於實體通道Ρ山所傳輸的種種語音訊號,因此本實施例會 啟動對應該第38個音頻訊號的頻率範圍238Ηζ〜25〇Ηζ來濾 ,,率範圍2 38Hz〜25 0Hz以外的語音訊號以提升後續音頻 訊號偵測的處理效率,亦即數位訊號處理器3 4會朱對輸入 的語音訊號D1進行帶通過濾(band —pass f丨丨tering)處 理(步驟>1〇。2)以操取出可能與音頻訊號(其頻率為25〇Hz )有關的訊就。所以,本實施例係設定3 8個頻率範圍以便 分別過濾出38個相對應音頻訊號Τι〜Τ38,換句話說,本實施 ^ ^據該使用者所設定的邏輯通道來啟動其中一相對應頻 二範圍以排,與該邏輯通道之相對應音頻訊號無關的訊 二由於發,者與收話者之間的訊號傳遞過程可能受到環 築物、天氣等)而產生雜訊干擾,因此可能使 =,對講機所接收的語音訊號A1之波形會因為雜訊 η兑ΐ犬波(SPlke)等不規則的波形變動,所以本實施 ‘上 = i / Sm〇〇thing)處理(步驟 1〇4)來消 =Γ ’、二二曰δΤΙ说A1的影響。請參閱圖五,圖五為圖 Γ = 2 1 :音訊號A1以及數位語音訊號D1的波形示意 '。枳車代表時間,而縱軸代表取樣值,語音訊號ai係為$ 12 页 200410508 V. Description of the invention (9) As shown in Figure 1, the frequency of the audio signal is between 62.5Hz ~ 2500Hz, so the audio signals of 38 different frequencies will be distributed at 62.5Hz ~ 2 5 0 Hz, so this embodiment first uses 38 frequency ranges to filter the input voice signal D1 to simplify the subsequent processing complexity (complexity). For example, if a user sets the logic of his portable radio, The channel is Pι (τ38) ', that is, the 38th audio signal (with a frequency of 25 Ηζ) is used to distinguish it from the various voice signals transmitted by the physical channel P. Therefore, this embodiment will start to respond to the 38th audio signal. The frequency range is 238Ηζ ~ 25〇Ηζ to filter, and the rate range is 2 38Hz ~ 25 0Hz for voice signals outside to improve the processing efficiency of subsequent audio signal detection, that is, the digital signal processor 34 will perform the input voice signal D1. Band-pass filtering (step > 10.2) processing to extract signals that may be related to the audio signal (whose frequency is 25 Hz). Therefore, in this embodiment, 38 frequency ranges are set so as to filter out 38 corresponding audio signals Ti ~ T38 respectively. In other words, in this implementation, one of the corresponding frequencies is activated according to the logical channel set by the user. The two ranges are arranged in a row. Signals that are not related to the corresponding audio signal of the logical channel. Because the signal transmission process between the receiver and the receiver may be affected by ring structures, weather, etc.), it may cause noise interference. =, The waveform of the voice signal A1 received by the interphone will be changed due to the irregular waveform such as the noise η vs. the dog wave (SPlke), so this implementation of the "up = i / Sm〇〇thing) processing (step 104)来 消 = Γ ', Er Er said δΤΙ said the impact of A1. Please refer to FIG. 5. FIG. 5 is a diagram of Γ = 2 1: the waveforms of the audio signal A1 and the digital voice signal D1 ′.枳 car represents time, and the vertical axis represents the sampled value. The voice signal ai is

200410508 五、發明說明(10)200410508 V. Description of Invention (10)

類比訊號,其經由類比/數位轉換器32以一取樣頻率來對 語音訊號A1進行取樣而產生語音訊號D1,語音訊號D1係為 數位訊號,其對應於複數個取樣點(samPle),如圖五所 示,語音訊號D1包含有複數個訊號區段3卜S2、S3,且每 一訊號區段S1、S 2、S 3分別對應一週期(P e r i 0 d) ’然而 於訊號區段S2中,於取樣點SPn—與取樣點SPn+夂間,由於 語音訊號A1受干擾而產生突波,因此使其波形產生不規則 變化,所以理論上取樣點S P的取樣值應為正值,然而經由 突波的影響而成為負值,亦即取樣點SP妁取樣值產生錯 誤,所以本發明係以每一取樣點之前的複數個取樣點來進 行平均取樣值的連算以使每一取樣點受雜訊的影響減輕, 舉例來說,對於受雜訊影響的取樣點SP n,可計算取樣點 SP n-4、SP n_3、SP n_2、SP n-P SP A取樣值的平均值來更新 (update)取樣點SP妁取樣值,所以取樣點SP枘取樣值 會由原 擾,由 rate, 所以當 表示一 取樣點 為正值 個取樣 點,而 取樣值The analog signal is obtained by sampling the speech signal A1 at a sampling frequency through the analog / digital converter 32 to generate a speech signal D1. The speech signal D1 is a digital signal, which corresponds to a plurality of sampling points (samPle), as shown in Figure 5. As shown, the speech signal D1 includes a plurality of signal segments 3, S2, and S3, and each signal segment S1, S2, and S3 corresponds to a period (Peri 0 d). However, in the signal segment S2, Between the sampling point SPn— and the sampling point SPn + 由于, because the speech signal A1 is disturbed and generates a surge, the waveform is irregularly changed. Therefore, in theory, the sampling value of the sampling point SP should be a positive value. The effect of the wave becomes a negative value, that is, the sampling point SP 妁 sampling value generates an error. Therefore, the present invention uses a plurality of sampling points before each sampling point to perform a continuous calculation of the average sampling value to make each sampling point confusing. For example, for the sampling point SP n affected by noise, the average value of the sampling points SP n-4, SP n_3, SP n_2, and SP nP SP A can be calculated to update the sampling. Point SP 妁 sample value, so take Sampling point value SP peg in the original scrambled by Rate, so when a positive value indicates a sample point sampling points and sample values

先錯誤的負值修正為正確的正值而降低該雜訊的干 於本實施例係以習知過零率(zero-crossing ZCR)的方式來判斷每一訊號區段的啟始與結束, ,相鄰取樣點之取樣值產生正值與負值的轉變時即 半週期的結束與另一半週期的開始,如圖五所示, s ρ 的取樣值為負值,而下一取樣點s p趵取樣值則 ’所以表不取樣點Spm係為訊號區段S2中的最後一 而取樣點SP剿為另一訊號區段S3的第一個取樣 s取樣點SPk‘取樣值為正值,而下一取樣點sp的 貝為負值’所以表示訊號區段S3已完成一半週期Correcting the wrong negative value to the correct positive value first to reduce the noise. In this embodiment, the start and end of each signal section is judged in the manner of the known zero-crossing ZCR. When the sampling values of adjacent sampling points change between positive and negative values, that is, the end of the half cycle and the beginning of the other half cycle, as shown in Figure 5, the sampling value of s ρ is negative, and the next sampling point sp趵 The sample value is 'so the sample point Spm is the last one in the signal section S2 and the sample point SP is the first sample s in the other signal section S3. The sample point SPk' is a positive value, and The next sampling point sp is negative, so it means that the signal segment S3 has completed half the cycle.

第14頁 200410508 五、發明說明(11) (ha 1 f per i od),而同樣地,當取樣點SP 的取樣值為負 值,而下一取樣點SP的取樣值則為正值,所以表示訊號區 段S3已完成了 一週期。如前所述,取樣點SPh係為訊號區 段S 3中的最後一個取樣點,所以經由習知過零率的運算處 理得知對應某一訊號區段的取樣點(步驟1 〇 6),由於本 實施例係逐一對取樣點進行處理,因此當步驟1 〇 6尚未完 成一訊號區段的偵測時,例如處理取樣點Sp m,由於取樣點 SP在非訊號區段S3的最後一個取樣點SPi i,所以會進行下 一步驟11 2,步驟1 1 2係用來判斷該數位訊號處理器34偵測 音頻訊號的操作是否已達到一檢查時間(frame time), 例如1 5Oms,若未達到該檢查時間則回到步驟1 02以持續對 下一個取樣點SP ffl+漣行處理。此外,若於執行步驟1 〇 6時判 斷出一訊號區段時’則會進一步判斷該訊號區段的取樣點 是否有效(步驟1 0 8),步驟1 〇 8係以該訊號區段的取樣點 所對應的信號能量(signal energy)以及該訊號區段的 取樣點的數目來做為判斷依據,其原理敘述如下。 依據習知連續音頻編碼靜音系統的規範 (speci f icat ion),音頻訊號(頻率介於 62· 5Hz〜2 5 0Hz )與通信訊號(頻率介於3 0 0Hz〜3. 4KHz)之間的信號能量 比例成1 : 4〜1 : 5的關係,因此經由計算該訊號區段的取樣 點所對應的信號能量即可將雖頻率介於62· 5Hz〜2 5 0Hz卻不 屬於音頻訊號的雜訊濾除,例,如步驟1〇2篩選出頻率範圍 238〜2 5 0Hz的訊號,然而可能有非音頻訊號的雜訊通過頻Page 14 200410508 V. Description of the invention (11) (ha 1 f per i od). Similarly, when the sampling value of the sampling point SP is negative, and the sampling value of the next sampling point SP is positive, so It means that the signal section S3 has completed one cycle. As mentioned above, the sampling point SPh is the last sampling point in the signal section S 3, so the sampling point corresponding to a certain signal section is obtained through the conventional zero-crossing calculation process (step 106), Since this embodiment deals with a pair of sampling points one by one, when the detection of a signal segment has not been completed in step 106, for example, processing of the sampling point Sp m, since the sampling point SP is the last sample in the non-signaling segment S3 Point SPi i, so the next step 11 2 will be performed. Step 1 12 is used to determine whether the operation of the digital signal processor 34 to detect the audio signal has reached a frame time, such as 1 50ms. When the inspection time is reached, the process returns to step 102 to continue processing the next sampling point SP ffl +. In addition, if a signal segment is judged when executing step 10, it will further judge whether the sampling point of the signal segment is valid (step 108), and step 108 is based on the sampling of the signal segment. The signal energy (signal energy) corresponding to the point and the number of sampling points in the signal section are used as the basis for judgment. The principle is described below. According to the specifications of the conventional continuous audio coding mute system (speci f icat ion), the signal between the audio signal (frequency between 62 · 5Hz ~ 2 50Hz) and the communication signal (frequency between 300Hz ~ 3.4KHz) The energy ratio is in a relationship of 1: 4 ~ 1: 5, so by calculating the signal energy corresponding to the sampling points in the signal section, the noise that does not belong to the audio signal although the frequency is between 62 · 5Hz ~ 2 50Hz Filter out, for example, as in step 102, a signal with a frequency range of 238 ~ 250 Hz is screened out. However, noise from non-audio signals may pass through the frequency.

第15頁 200410508 五、發明說明(12) 率範圍238〜25 0Hz的帶通過濾處理而進行步驟1〇8,然 該雜訊卻可能因為強度太弱(例如由周圍環境所產生 無法滿足上述信號能量比例的條件,所以經由步驟1〇8 可忽略(skip)該訊號區段而不進行後續步驟11〇以紀錄 該訊號區段的取樣點數目。所以,本實施例係設定一預定 能量數值,若該訊號區段的取樣點所對應的信號能量低於 該預定能量數值,則忽略該訊號區段的取樣點而執行步驟 11 2來判斷是否已達到該檢查時間。另外,步驟i 〇 8亦舍檢 查該訊號區段的取樣點的敫目來濾除嚴重地受雜訊影響的 訊號區段,舉例來說,對於音頻訊號T3雨言,其頻率為 =ζ’ 5ΐ = /數位轉換器32所使用的取樣頻率為 含有64個取樣點,耗步心:;‘:-訊ΪΪ段理應包 雜訊干擾_,:而! 10^丄平滑過濾處理來衰減 ^ I , ^ ^ ; · 右一雜訊使該音頻訊號中一訊缺Page 15 200410508 V. Description of the invention (12) The band in the range of 238 ~ 25 0Hz is filtered through step 10, but the noise may be too weak (for example, the signal generated by the surrounding environment cannot meet the above signal) The condition of the energy ratio, so that the signal section can be skipped through step 108 without performing the subsequent step 11 to record the number of sampling points in the signal section. Therefore, this embodiment sets a predetermined energy value. If the signal energy corresponding to the sampling point of the signal section is lower than the predetermined energy value, ignore the sampling point of the signal section and execute step 11 2 to determine whether the inspection time has been reached. In addition, step i 08 Check the sampling point of the signal section to filter out the signal section that is severely affected by noise. For example, for audio signal T3, the frequency is = ζ '5ΐ = / Digital converter 32 The sampling frequency used is 64 sampling points, which consumes a lot of time: ':-The signal segment should include noise interference _ ,: and! 10 ^ 丄 Smooth filtering processing to attenuate ^ I, ^ ^; Noise makes the tone One missing signal

Si於運算的過二,或者數位訊號處理器3“ 生^的規氮°程中因為本身電路干擾而使該音頻訊號產 念失真的現象,所以該訊號區段會因而短暫改變其週:產 mί ϊ t所對應的取樣數目會大幅偏離理想值μ, 區段所包含之取樣點數目與該理想 寻兩者差里大於一臨界值的訊號區段略而不 ,步驟112來判斷是否達到該檢查時間。換句話說,若, 诋唬區段之取樣點符合上述信號能量比例以及取樣數目的The second half of the calculation, or the phenomenon that the audio signal is distorted due to the interference of its own circuit during the digital signal processor 3 ’s generation process, so the signal section will temporarily change its cycle: The number of samples corresponding to mί ϊ t will greatly deviate from the ideal value μ, and the number of sampling points in the section and the ideal search will be omitted. The signal section will be omitted, and step 112 will determine whether the Check the time. In other words, if the sampling points of the bluffing section meet the above-mentioned signal energy ratio and the number of samples

fc SH 第16頁 200410508fc SH p. 16 200410508

:艮制條件才會勃 樣點數目以進!^Π10以紀錄該訊號區段所自 步地用來判斷該音頻訊號。 半跡t,位號處理器34的操作達到該檢查時間 A 9 Μ Η、右W亥檢查時間為1 5 〇mS,對於音頻訊號 ί r! i t而言’理論上最多可於該檢查時間紀条 f f ’又,亦即當步驟1 14開始執行時,數位訊號J 應、,、己錄對應37個週期的取樣數目,請注意,於該 中’本實施例僅紀錄具有完整週期的訊號區段, 始運作時可能存在的非完整週期之訊號區段的取 實施例經由步驟1 1 4來求出步驟1丨0所記錄之取樣 生偏移(〇 f f s e t),所以本實施例係經由一平均 低上述頻率偏移對取樣點數目的影響,因此可經 值來使數位訊號處理器3 4偵測音頻訊號的操作更 後,計算該平均值與一理論值(對音頻訊號T 3雨 的偏移量(步驟11 6) ’最後比較該偏移量與一 E 判斷該語音訊號D1是否使用該邏輯通道,若該偏 該臨界值則表示語音訊號Α卜D1與該手提無線對 用的邏輯通道相同’因此當控制電路4 0被告知後 相關操作來將該發話者的通話(頻率範圍30 0Hz' 輸出該手提無線對講機。反之,若該偏移量大於 則表示語音訊號Al、D1與該手提無線對講機所使 含之取 平均值,由於訊號於發話者與收話者之間的傳遞 到發話者/收話者移動,建築物阻擋等干擾而使; 後會執行 T 38 (頻率 ^37個訊 i理器3 4 檢查時間 而忽略開 樣點。本 點數目的 過程會受 頻率產 運算來降 由該平均 準確,然 言為64) ^界值以 移量小於 講機所使 便可啟動 3. 4KHz) 該臨界值 用的邏輯 200410508: Only the condition will be established. The number of samples will be advanced! ^ Π10 is used to record the signal section and is used to determine the audio signal. At half-track t, the operation of the bit number processor 34 reaches the inspection time A 9 Μ Η, and the inspection time of the right W Hai is 150 mS. For an audio signal ί r! It ' Article ff 'Also, that is, when step 1 14 starts to be executed, the digital signal J should record the number of samples of 37 cycles. Please note that in this embodiment, only the signal area with a complete cycle is recorded. Segment, the example of the non-complete cycle signal segment that may exist at the beginning of operation is obtained through step 1 1 4 to obtain the sample generated offset (0ffset) recorded in step 1 丨 0, so this embodiment is based on a The effect of the above frequency offset on the number of sampling points is averagely low, so the value can be used to make the digital signal processor 3 4 detect the audio signal later, and calculate the average value and a theoretical value (for the audio signal T 3 rain). Offset (step 11 6) 'Finally, compare the offset with an E to determine whether the voice signal D1 uses the logical channel. If the deviation is less than the threshold, it indicates that the voice signal A1 D1 and the portable wireless pair logic Channel is the same ' The circuit 40 is informed of the relevant operation to output the call of the caller (frequency range 300 Hz ') to the portable radio. On the other hand, if the offset is greater than that, the voice signal Al, D1 and the portable radio are included. The average value is taken as the signal is transmitted between the caller and the receiver to the caller / receiver's movement, and the building is blocked. The T 38 (frequency ^ 37 processors 3 will be executed later) 4 Check the time and ignore the sample point. The process of the number of points will be affected by the frequency production operation. The average is accurate, but it is 64. ^ The threshold can be started by shifting the amount less than the phone. 3. 4KHz) 该Logic for critical value 200410508

通道不相同,亦即數位μ D1中债測到該手提無線對4 2 = 34無法由語音訊號Α卜 控制電路40被告知後便=戶,^吏用的音頻訊號,因此當 位訊號處理器34會重新接收的語音訊號A1,然後數 102)以不斷地對該手提^績俄料則音頻訊號的操作(步驟 ^ T 于徒無線對講機所接收的訊號進行處 ^ * Si ί i本實施例所揭露之平滑過遽處理係以平均運 ί=Π 的影響’然而亦可使用其他方式來達到Ϊ 二u理的效果’舉例來說,對於—待處理取樣點來 I’、考慮該J寺處理取樣點於其前面連續—預定數量(例如 )之已處理取樣點,然後於該8個取樣點中去除具= 大取樣值與最小取樣值的二取樣點,並於剩下的6個取 點所對應的取樣值中選取一中間值,或是計算該6個取梯 值的平均值來做為該待處理取樣點的取樣值,均可使/ ^06能產生更準確的結果。此外,本實施例中,當數位 號處理器34判斷音頻訊號的操作啟動後(步驟丨〇 〇)係^ ^下一步驟1 02,並依據圖四所示之流程來運作,然而, 若當數位訊號處理器34判斷音頻訊號的操作啟動後、(步’ 1 〇 〇)由步驟1 1 2開始執行,並依據圖四所示之流程來$你 T :達到本發明之㈣。另外,本實施例所揭露之步驟 10 6係以對應該語音訊號A 1之 < 週期來做為一訊號區段, J而亦可使用半週期的語音訊號A1來做為—訊號區段以古十The channels are not the same, that is, the digital μ D1 China debt has detected that the portable wireless pair 4 2 = 34 cannot be notified by the voice signal Ab control circuit 40 and then the audio signal used by the household, so the signal processor 34 will re-receive the voice signal A1, and then count 102) to continue the operation of the audio signal of the mobile phone (step ^ T to process the signal received by the wireless walkie-talkie ^ * Si) i This embodiment The disclosed smoothing process is based on the effect of the average operation. However, other methods can also be used to achieve the effect of the second principle. For example, for the sample point to be processed, I, consider the J temple. The processing sampling point is continuous in front of it-a predetermined number (for example) of processed sampling points, and then the two sampling points with = large sampling value and minimum sampling value are removed from the 8 sampling points, and the remaining 6 sampling points are taken Selecting an intermediate value from the sampling values corresponding to the points, or calculating the average of the 6 taken ladder values as the sampling value of the sampling point to be processed, can make / ^ 06 produce a more accurate result. In addition, In this embodiment, when the digital number processor 34 determines After the operation of interrupting the audio signal is started (step 丨 〇〇) is ^ ^ Next step 102, and operates according to the process shown in Figure 4. However, if the digital signal processor 34 determines that the operation of the audio signal is started, (Step '1 00') Start from step 1 12 and follow the procedure shown in Figure 4 to get you T: to reach the point of the present invention. In addition, step 10 6 disclosed in this embodiment corresponds to the voice A period of the signal A 1 is used as a signal section, and a half-period speech signal A1 can also be used as the signal section.

200410508 五、發明說明 算所包含 訊號區段 11 8來達ί 僅使用於 以用來偵 天氣警報 述操作均 相較 類比通信 波處理來 後再經由 的干擾, 來進一步 目進行一 率偏移對 法不但可 降低硬體. 以上} 專利範圍/ 範圍。 (15) 之取樣數目,均可使用過零率的運算來判斷出各 的開始與結束,並經由圖四之步驟1 1 4、11 6、 ’J本發明彳貞測音頻说说之目的,而且本實施例不 習知連續音頻編碼靜音糸統,亦可應用其他裝置 測一預定頻率的訊號,例如於北美地區所使用的 (weather alert)訊號,其頻率為 ι〇5〇Ηζ,上 屬本發明之範疇。 於習知技術, 訊號轉換為一 得到較 一平滑 同時使 過濾雜 平均運 取樣數 得到更 成本。 習知類 過濾處 用信號 訊的干 算以降 目的影 準確的 本發明偵 數位通信 比濾波器 理來降低 能量比例 擾,最後 低訊號於 響,因此 偵測結果 夠音頻 訊號, 為佳的 突波的 以及取 對於各 無線傳 本發明 ,而且 訊號之方法係將 以便經由一 帶通過濾效 對於過零率 樣數目等限 訊5虎區段之 輸過程所伴 偵測音頻訊 其容易實作 數位濾 果,然 之處理 制條件 取樣數 隨的頻 就的方 而大幅 200410508 圖式簡單說明 圖示之簡單說明 圖一為習知連續音頻編碼靜音系統所使用頻率範圍的 示意圖。 圖二為習知手提無線對講機的功能方塊示意圖。 圖三為本發明解碼器的功能方塊示意圖。 圖四為圖三所示之數位訊號處理器的運作流程圖。 圖五為圖三所示之類比語音訊號以及數位語音訊號的 波形示意圖。 圖示之符號說明 10 手提無線對講機 11 天線 12 收發器 14 選擇器 16^ 30 解碼器 18 編碼器 20 語音訊號處理單元 22 口刺口八 24 麥克風 26 控制單元 32 類比/數位轉換器 34 數位訊號處理器 36 隨機存取記憶體 38 唯讀記憶體200410508 V. The invention explains that the signal section of the calculation unit 11 8 is used only for the interference that is used to detect the weather alarm and the operation is compared with the analog communication wave processing, to further perform a rate offset pair. Not only can the hardware be reduced. Above} Patent Scope / Scope. (15) The number of samples can be determined by the operation of the zero-crossing rate to determine the start and end of each, and through steps 1 1 4, 11 6 and 'J of the present invention, the purpose of the audio test, Moreover, this embodiment is not familiar with the continuous audio coding mute system, and other devices can also be used to measure a signal of a predetermined frequency, such as a weather alert signal used in North America, whose frequency is ι〇5〇Ηζ, the superior The scope of the invention. According to the conventional technology, the signal is converted to one to obtain a smoother meanwhile, the average number of samples of the filtering filter is more costly. The conventional filtering unit uses signal calculations to reduce the accuracy of the present invention. The invention detects digital communication ratio filters to reduce the proportion of energy. Finally, the signal is low, so the detection result is sufficient for audio signals. The method of taking the wireless transmission of the present invention, and the signal method is to pass through a band to filter the effect of the number of zero-crossing rate samples such as the number of five-segment five-segment input process accompanied by the detection of audio signals is easy to implement digital filtering Sure enough, the number of samples in the processing system varies greatly with the frequency. 200410508 The diagram is a simple illustration. The diagram is simple. Figure 1 is a schematic diagram of the frequency range used in the conventional continuous audio coding mute system. FIG. 2 is a functional block diagram of a conventional portable radio. FIG. 3 is a functional block diagram of the decoder of the present invention. FIG. 4 is an operation flowchart of the digital signal processor shown in FIG. 3. Figure 5 is a waveform diagram of the analog voice signal and the digital voice signal shown in Figure 3. Explanation of Symbols 10 Portable Wireless Interphone 11 Antenna 12 Transceiver 14 Selector 16 ^ 30 Decoder 18 Encoder 20 Voice Signal Processing Unit 22 Mouth Spike 8 24 Microphone 26 Control Unit 32 Analog / Digital Converter 34 Digital Signal Processing Device 36 random access memory 38 read-only memory

第20頁Page 20

Claims (1)

ZUU41U^U« 六、申請專利範圍 1· 種無線通訊袭置偵 frequency)之音頻訊號之于應一音頻頻率(tone 接收一類比語音訊號,方法,其包含有: frequency)將該類比語立4迷使用一取樣頻率(sampling 該數位語音訊號係由複數_ A號轉換為一數位語音訊號, 分別對應一週期(p e Γ丨〇 111机號區段構成,每一訊號區段 於一偵測時間(fra^ ; 及 依據每一第 數目來判斷該類比語A 頻訊號; 9 號中對應於一預定頻率餘二ΐ i m e)内,選取該數位語音訊 J 内之複數個第一訊號區段;以 訊號區# ό 扭a气,所對應之取樣點(sample)之 °就是否包含對應該音頻頻率之音 其中該音頻頻率係 “位於該預定頻率範圍中。 如申請專利範園 於每一第一訊號區=弟1項所述之方法,其另包含有: 點,並計算該預=丨又中’連續地選取一預定數目之取樣 使用該平均值更=f1目之取樣點之取樣值之平均值,以及 取樣值。 新該預定數目之取樣點中一第一取樣點之 如申請專利ΛΛ* 點係為該預定數靶圍第2項所述之方法,其中該第一取樣 最後一取樣點。目之取樣點於時域(time domain)中之ZUU41U ^ U «VI. Patent application scope 1. A type of wireless communication attack detection frequency) of the audio signal should be an audio frequency (tone receives an analog voice signal, the method includes: frequency) the analogy 4 The fans use a sampling frequency (sampling the digital voice signal is converted from a complex number A to a digital voice signal, corresponding to a period (pe Γ 丨 〇111 machine number segment, each signal segment at a detection time (Fra ^; and to judge the analogue A-frequency signal according to each number; within number 9 corresponding to a predetermined frequency remainder ΐime), select a plurality of first signal sections in the digital voice signal J;以 信号 区 # ό twist a gas, does the corresponding sample point (°) include the sound corresponding to the audio frequency, where the audio frequency is "located in the predetermined frequency range. For example, if a patent application is filed in each A signal area = the method described in item 1, which further includes: points, and calculates the pre-selection of a predetermined number of samples continuously using the average value of f1 sampling points The average of the values, and the sampling value. The first sampling point of the new predetermined number of sampling points, such as the patent application ΛΛ * point, is the method described in item 2 of the predetermined number of targets, where the first sampling is the last A sampling point. The target sampling point is in the time domain. 200410508 六、申請專利範圍 4. 如申請專利範圍第1項所述之方法,其另包含有: 偵測對應每一第一訊號區段之過零率(z e r 〇 - c r 〇 s s i n g rate)來判斷其週期,並計算每一第一訊號區段於該偵測 時間内所對應之取樣點之數目。 5. 如申請專利範圍第1項所述之方法,其另包含有: 比較一預定能量數值以及每一第一訊號區段所對應之訊號 能量(s i g n a 1 e n e r g y)以判斷是否選取該第一訊號區 段。 6. 如申請專利範圍第5項所述之方法,其另包含有: 計算每一第一訊號區段所對應之訊號能量與該預定能量數 值之偏移量,若該偏移量小於一臨界值則選取該第一訊號 區段。 7. 如申請專利範圍第1項所述之方法,其另包含有: 比較一預定計數值以及每一第一訊號區段所對應之取樣點 之數目以判斷是否選取該第一訊號區段。 8. 如申請專利範圍第7項所述之方法,其另包含有: 計算每一第一訊號區段所對應之取樣點之數目與該預定計 數值之偏移量,若該偏移量小於一臨界值則選取該第一訊 號區段。 ,200410508 6. Scope of patent application 4. The method described in item 1 of the scope of patent application further includes: detecting the zero-crossing rate (zer 〇- cr 〇ssing rate) corresponding to each first signal segment to determine Its period, and calculate the number of sampling points corresponding to each first signal segment within the detection time. 5. The method according to item 1 of the scope of patent application, further comprising: comparing a predetermined energy value and a signal energy corresponding to each first signal segment (signa 1 energy) to determine whether to select the first signal Section. 6. The method according to item 5 of the scope of patent application, further comprising: calculating an offset between the signal energy corresponding to each first signal segment and the predetermined energy value, if the offset is less than a critical value Value selects the first signal segment. 7. The method according to item 1 of the scope of patent application, further comprising: comparing a predetermined count value and the number of sampling points corresponding to each first signal section to determine whether to select the first signal section. 8. The method as described in item 7 of the scope of patent application, further comprising: calculating an offset between the number of sampling points corresponding to each first signal segment and the predetermined count value, if the offset is less than A threshold value selects the first signal section. , 第22頁 200410508 六、申請專利範圍 9 ·如申請專利範圍第1項所述之方法,其另包含有: 計算該複數個第一訊號區段所對應之取樣點之數目之平均 值;以及 比較該平均值以及該音頻訊號依據該取樣頻率所對應之取 樣點之數目以判斷該類比語音訊號是否包含該音頻訊號。 I 〇 ·如申請專利範圍第9項所述之方法,其另包含有: 計算該音頻訊號依據該取樣頻率所對應之取樣點之數目與 該平均值之偏移量,若該偏移量小於一臨界值則該類比語 音訊號包含該音頻訊號。 II ·如申請專利範圍第1項所述之方法,其中該無線通訊 裝置係為一手提無線對講機(walki-talki)。 1 2 ·如申請專利範圍第1項所述之方法,其係應用於一連 續音頻編碼靜音系統(continuous tone-coded squelch system, CTCSS),其中該無線通訊裝置係依據對應該音 頻頻率之音頻訊號來區別於一通訊頻道(channel)上所 傳遞之訊號。Page 22 200410508 VI. Patent application scope 9 · The method described in item 1 of the patent application scope further includes: calculating an average of the number of sampling points corresponding to the plurality of first signal sections; and comparing The average value and the audio signal are based on the number of sampling points corresponding to the sampling frequency to determine whether the analog voice signal includes the audio signal. I. The method as described in item 9 of the scope of patent application, further comprising: calculating an offset between the number of sampling points corresponding to the audio signal according to the sampling frequency and the average, if the offset is less than A threshold value indicates that the analog voice signal includes the audio signal. II. The method according to item 1 of the scope of patent application, wherein the wireless communication device is a walkie-talki. 1 2 · The method described in item 1 of the scope of patent application, which is applied to a continuous tone-coded squelch system (CTCSS), wherein the wireless communication device is based on an audio signal corresponding to an audio frequency It is different from the signal transmitted on a communication channel. 第23頁Page 23
TW91136013A 2002-12-12 2002-12-12 Method for detecting a tone signal through digital signal processing TW591903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91136013A TW591903B (en) 2002-12-12 2002-12-12 Method for detecting a tone signal through digital signal processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91136013A TW591903B (en) 2002-12-12 2002-12-12 Method for detecting a tone signal through digital signal processing

Publications (2)

Publication Number Publication Date
TW591903B TW591903B (en) 2004-06-11
TW200410508A true TW200410508A (en) 2004-06-16

Family

ID=34058053

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91136013A TW591903B (en) 2002-12-12 2002-12-12 Method for detecting a tone signal through digital signal processing

Country Status (1)

Country Link
TW (1) TW591903B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MY157901A (en) * 2005-06-30 2016-08-15 Lg Electronics Inc Apparatus for encoding and decoding audio signal and method thereof
TWI403988B (en) * 2009-12-28 2013-08-01 Mstar Semiconductor Inc Signal processing apparatus and method thereof

Also Published As

Publication number Publication date
TW591903B (en) 2004-06-11

Similar Documents

Publication Publication Date Title
CN103259898B (en) The method of Automatic adjusument frequency response and terminal
WO2007063880A1 (en) Position detection system, audio device and terminal device used in the position detection system
JP2016529555A (en) Voice activity detection method and apparatus
JP2008252939A (en) Automatic gain control circuit
CN105657110A (en) Voice communication echo cancellation method and device
CN104243662A (en) Terminal prompt mode adjusting method and terminal thereof
CN101242595A (en) Method for adjusting mobile phone volume
CN104780280A (en) Audio signal detection method and device
CN102860047B (en) The control method of hearing aids and hearing aids
US8010071B2 (en) Integrated squelch circuit with programmable engagement threshold
JP2005516247A (en) Voice activity detector and enabler for noisy environments
TW200410508A (en) Method for detecting a tone signal through digital signal processing
WO2006073571A2 (en) Communication device and method for using speaker as a stud finder
CN103177731B (en) Improved method and device for CTCSS (Continuous Tone Controlled Squelch System) tail tone detecting simulation
TWI408673B (en) Voice detection method
CN102300014A (en) Double-talk detection method applied to acoustic echo cancellation system in noise environment
CN206686330U (en) A kind of microphone
US20100255878A1 (en) Audio filter
CN111954174B (en) Method for prompting calling
CN111049596B (en) Method and system for testing audio activation sound pressure of talkback terminal
US20040176062A1 (en) Method for detecting a tone signal through digital signal processing
CN103138854A (en) Method of detecting subaudio frequency signals and device using the same
WO2018072186A1 (en) Howling detection method and device
CN103152071A (en) Method and equipment for searching synchronization sequence
CN105050021A (en) Method, system and terminal for detecting tone quality of earphones

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees