201125347 六、發明說明: 【發明所屬之技術頜域】 _]树明涉及一種自動#卜斷電話的方法和系統。 【先前技術】 [_纟於有些人會忘了去按按鍵鎖不小心打出電話而進入語 音信箱或是講完電話後忘了按斷話鍵而造成通話持續進 行’使用者收到騰單後必須繳交一筆無必要花費的費用 ’造成^一定的浪費。 [0003] 另外目前VAD (V〇iCe Acti vity'Detect ion,語音活 . ·. . ...... 動偵測)技術現已比較成熟,但以往的V AD技術都是用在 錄音功能,當有人交談講話時才錄音,沒有人交談時就 會自動不錄音’卻未有將此技術用在手機自動掛斷電話 的功能上。 【發明内容】 [0004] 鑒於以上内容,有必要提供一種自動掛斷電話的方法, 其利用VAD技術,以雙方通話中非活動責框持續超過一段 時間會自動的掛斷通話。 [〇〇〇5]此外還有必要提供一種自動掛斷電話系統,其利用VAD技 術,以雙方通話中祚活動音框持續超過—段時間來自動 的掛斷通話。 [0006]所述的自動掛斷電話的方法,應用於手機上,該方法包 括:a.設置掛斷電話的臨界時間;b.當手機發生通話 時’計時器的值N歸零;c.獲取遠端聲音和本地聲音; d.分析所獲取的遠端聲音和本地聲音,分別計算得到遠 098144352 表單編號A0101 第4頁/共17頁 0982075816-0 201125347 Ο [0007] Ο [0008] 098144352 端語音參數量化值與本地語音參數量化值;e.根據所得 到的遠端語音參數量化值與本地語音參數量化值,判斷 本地聲音與遠端聲音是否都為非活動音框,當判斷本地 聲音與遠端聲音都為非活動音框時’進入步驟f ;否則返 回步驟b ; f.計時器開計時,即N = N+1 ; g.判斷計時器 的計時時間N是否大於所設置的掛斷電話的臨界時間,若 計時器的計時時間N大於所設置的掛斷電話的臨界時間, 則進入步驟h ;若計時器的計時時間N不大於所設置的掛 斷電話的臨界時間,則返回步驟c ; h.控制手機自動掛 斷通話。 所述自動掛斷電話系統,運行於手機上,該系統包括: 設置模組,用於設置掛斷電話:的臨界時間;獲取模組, 用於獲取遠端聲音和本地聲音;計算模組,用於分析所 獲取的遠端聲音和本地聲音,分別計算得到遠端語音參 數量化值與本地語音參數量化值;判斷模組,用於根據 所得到的遠端語音參教量化值與本地語音參數量化值, 判斷本地聲音與違端聲音是否都為非活動音框;計時器 ,用於對本地聲音和遠端聲音都為非活動音框時的持續 時間進行計時’計時的時間為N,n初始值為〇 ;所述的判 斷模組還用於當本地聲音與遠端聲音都為非活動音框時 ’判斷計時器的計時時間N是否大於所設置的掛斷電話的 臨界時間;處理模組’用於當計時器的計時時間大於所 設置的掛斷電話的臨界時間時,控制手機自動掛斷通話 〇 相較於習知技術’本發明提供的自動掛斷電話的方法和 表單編號A0101 第5頁/共17頁 0982 201125347 系統,首先判斷本地聲音和遠端聲音都為非活動音框時 ,然後透過判斷其持續時間大於所設置的掛斷電話的臨 界時間時,控制手機自動掛斷通話,避免一定的浪費。 【實施方式】 [0009] 本發明的目的為利用VAD技術,以雙方通話中非活動音框 持續超過一段時間來自動的掛斷通話。下面首先對本發 明的理論基礎進行說明。 [0010] VAD技術:利用語音特性參數(能量、越零率、聲道截面 積參數和、音高週期及頻譜失真)來計算輸入音框的量 化值,用此量化值來做下一步活動音框和非活動音框的 判斷。其中所述的活動音框指在通話時雙方交談中的對 話聲音(Active voice);而所述的非活動音框指在通 話時雙方交談中停頓或者背景雜訊的聲音(Inactive voice)。 [0011] 如圖1所示,是一種判斷是活動音框還是非活動音框的方 法流程圖。首先計算得到輸入訊號的語音特性參數P1, P2……Pn,其次透過與其對應的上限值與下限值比較, 得到相應的輸出結果的值f 1,f2……fn。例如對於語音 特性參數P1.來說,其對應的上限值和下限值分別是THlu 和ΤΗ、,若P1大於THl/^,將此訊號判定為活動音框, 則得到的輸出結果Π的值為1 ;若P1小於TH1/寺,將此訊 號判定為非活動音框,則得到的輸出結果fl的值為-1 ; 若P1大於TH、且小於^、時,仍然將此訊號判定為非活 動音框,則得到的輸出結果fl的值為0。將各輸出結果的 值fl,……fn分別乘以其對應的加權值α 1,α 2…… 098144352 表單編號Α0101 第6頁/共17頁 0982075816-0 201125347 «η,再進行求和,則得到^,即為語音參數量化值所 述的Fr=(«Ufl+aW2......an*fn);判斷所得到的 疋否J ;最、终門限值Fa,若小於,則判斷為非活動 音框;若不是小於Fth,關斷為活動音框。 [0012] Ο [0013] Ο [0014] [0015] 如圖2所$ ’是本發明具備自動掛斷電話魏的手機的較 佳實施例的架構圖 '所述的自動掛斷電話系統運行在 手機1上。所述的自動掛斷電話系統2〇包括設置模組2〇〇 、計時器202、獲取模組204、計算模組2〇6、判斷模組 208以及處理模組21(^本發明所稱的模組是指完成一特 疋功此的電腦程式段,比程式更適合於描述教體在電腦 中的執行過程,因此在本發明以下對軟體都以模組進行 描述。 所述的設置模組200,用於設置掛斷電話的臨界時間T。 所述的掛斷電話的臨界時間T是判斷手機1是否自動掛斷 電話的閥值。例如可以設置掛斷電話的臨界時間為5秒, 或者1 0秒。 . 所述的設置模組200還用於分別設置本地聲音與遠端聲音 的最終門限值。所述的最終n限值是用於判定本地聲音 與遠端聲音是否為非活動音框的閥值。 計時器202,用於當本地聲音和遠端聲音都為非活動音框 時開始計時。其計時的時間為N’N初始值為〇。 [0016] 獲取模組204,用於獲取逮端聲音和本地聲音。即獲取手 犯本身的聲音訊號以及端的聲音1 [0017] 計算模組206,用於分析所獲取的遠端聲音和本地聲音’ 098144352 表單編號A0101 17頁 0982075816-0 201125347 分別計算㈣遠端ff音錄量域與本綠音參數量化 值0 [0018] [0019] 判斷模組208 ’用練據所得到的遠端語音參數量化值與 本地語音參數量化值’判斷本地聲音與遠端聲音是否都 為非活動音框。當所述得到的遠端語音參數量化值與本 地S吾音參數量化值都小於其相應的最終門限值時,所述 的判斷模組208關斷本轉音與遠端聲音都為非活動音 框,反之則判斷本地聲音與遠端聲音不是都為非活動音 框。 所述的判斷模組208還用於當判斷本地聲音與遠端聲音都 為非活動音框時’判斷計時器的計時時間N是否大於所設 置的掛斷電話的臨界時間τ,即判斷本地聲音和遠端聲音 都為非活動音框時持續時間N是否大於所設置的掛斷電話 的臨界時間T。 [0020] [0021] 處理模組210 ’用於當計時器的許祷時間,^於所設置的 掛斷電話的臨界時間T時,控制手機丨自動掛斷通話。 如圖3所示’是本發明自動掛斷電話的方法的較佳實施例 的流程圖。步驟Sll〇 ’設置模組2〇〇設置掛斷電話的臨界 時間T、本地聲音的最終門限值以及遠端聲音的最終門限 值。在本較佳實施例中,可以設置掛斷電話的臨界時間τ 為10秒、本地聲音與遠端聲音的最終門限值都為〇. 8。 [0022] 步驟S111,當手機〗發生通話時,計時器202歸零,即 [0023] 098144352 步驟S112,獲取模組2〇4獲取遠端聲音和本地聲音。 表單編號A0101 第8頁/共π頁 0982075816-0 201125347 [0024] #驟S113,计真模組2〇6分析所獲取的遠端聲音和本地聲 十算彳于到达端s吾音參數量化值與本地語音參數 量化值。 [0025] 步驟S1 1 4,判_榲组2〇8奸姑 ' 姨組ZU 8根據所得到的遠端語音參數量化 值與本地語音參數量化值,判斷本地聲音與遠端聲音是 否都為非活動音框。當判斷本地聲音與遠端聲音都為非 活動音框時’進入步驟SU5 ;否則返回步驟Slu。 [0026] 步驟S115,計時哭川 吁>«202對本地聲音和达端聲音都為非活動 0 音框時的持續時間進行計時,即N4 + 1 〇 闕步驟S116 ’判斷模組2〇8判斷計時器2〇2的計時時間仪 否大於所設置的掛斷電話的臨界時間丁。若計時器的計時 時間N大於所設置的掛斷電話的臨界時間τ,則進入步驟 S117 ;若計時器的計時時間π大於所設置的掛斷電話的 臨界時間Τ,則返回步驟si 12。 [0〇28]步驟S11 7,處理模組210控制手機1自動掛斷通話。 Q [°029]此外,為了使本發明吏加完善,如果手機1開啟了語音留 言功能,即在撥打電話時,被呼叫的那一方沒有接通電 話的話’則會先進入語音留言信箱的功能,則在步驟 S112獲取本地聲音和遠端聲音之後,先判斷是否進入語 音留言信箱’如果是進入語音留言信箱,就直接進入步 驟S117掛斷通話’避免由於進入語音留言信箱造成通話 的費用增加;若沒有進入語音留言信箱,則繼續3113的 步驟。 [0030] 098144352 綜上所述,本發明符合發明專利要件,爰依法提出專利 表單編號Α0101 第9頁/共17頁 0982075816-0 201125347 申請。惟,以上所述者僅爲本發明之較佳實施例,本發 明之範圍並不以上述實施例爲限,舉凡熟悉本案技藝之 人士援依本發明之精神所作之等效修飾或變化,皆應涵 蓋於以下申請專利範圍内。 【圖式簡單說明】 [0031] 圖1是一種判斷是活動音框還是非活動音框的方法流程圖 〇 [0032] 圖2是本發明具備自動掛斷電話功能的手機的較佳實施例 的架構圖。 [0033] 圖3是本發明自動掛斷電話的方法的較佳實施例的流程圖 〇 【主要元件符號說明】 [0034] 手機 1 [0035] 自動掛斷電話系統2 [0036] 設置模組200 [0037] 計時器202 [0038] 獲取模組204 [0039] 計算模組206 [0040] 判斷模組208 [0041] 處理模組210 [0042] 設置掛斷電話的臨界時間S110 [0043] 計時器歸零N = 0 S111 098144352 表單編號A0101 第10頁/共17頁 0982075816-0 201125347 [0044] 獲取遠端的聲音和本地的聲音S112 [0045] 分析遠端聲音與本地聲音,計算得到遠端與本地語音參 數量化值S113 . [0046] 判斷本地聲音與遠端聲音是否都為非活動音框S114 [0047] 計時器計時N=N + 1 S115 [0048] 判斷計時時間N是否超過所設置的掛斷電話的臨界時間T S116 _ [0049] 自動掛斷通話S117 〇 098144352 表單編號A0101 第11頁/共17頁 0982075816-0201125347 VI. Description of the invention: [Technical jaw domain to which the invention belongs] _] Shuming relates to an automatic method and system for disconnecting a telephone. [Prior Art] [_ Some people will forget to press the button lock to accidentally make a call and enter the voice mail or after the phone call, forget to press the call button to cause the call to continue. You must pay a fee that is not necessary to spend 'cause ^ a certain amount of waste. [0003] In addition, the current VAD (V〇iCe Acti vity'Detect ion, voice activity. · . . . ... motion detection) technology is now mature, but the previous V AD technology is used in the recording function When someone talks and talks, they record, and when no one talks, they will not record automatically. But there is no such technology used to automatically hang up the phone. SUMMARY OF THE INVENTION [0004] In view of the above, it is necessary to provide a method for automatically hanging up a call, which utilizes VAD technology to automatically hang up a call when the inactive call frame for both parties continues for more than a period of time. [〇〇〇5] In addition, it is also necessary to provide an automatic hang-up telephone system that utilizes VAD technology to automatically hang up the call in the event that the active voice frame of the two parties continues for more than a period of time. [0006] The method for automatically hanging up a phone is applied to a mobile phone, and the method comprises: a. setting a critical time for hanging up the phone; b. when the phone is in a call, the value of the timer is reset to zero; c. Obtain the far-end sound and local sound; d. Analyze the obtained far-end sound and local sound, respectively calculate the far 098144352 Form No. A0101 Page 4 / Total 17 Page 0982075816-0 201125347 Ο [0007] Ο [0008] 098144352 End The voice parameter quantized value and the local voice parameter quantized value; e. determining whether the local sound and the far-end sound are both inactive sound boxes according to the obtained far-end speech parameter quantized value and the local speech parameter quantized value, when determining the local sound and When the far-end sound is inactive, go to step f; otherwise, return to step b; f. The timer starts counting, that is, N = N+1; g. Determine whether the timer's timing time N is greater than the set hang up. The critical time of the phone, if the timer time N of the timer is greater than the critical time of the set hang up call, then step h is entered; if the timer time N is not greater than the set critical time of the hang up call, then return Step c; h. Control the phone to automatically hang up the call. The automatic hang up telephone system runs on a mobile phone, and the system comprises: a setting module for setting a critical time for hanging up the phone; an acquiring module for acquiring a far-end sound and a local sound; and a computing module, It is used for analyzing the obtained far-end sound and the local sound, respectively calculating the far-end speech parameter quantized value and the local speech parameter quantized value; the judging module is configured to obtain the far-end speech teaching reference quantized value and the local speech parameter according to the obtained far-end speech parameter The quantized value determines whether the local sound and the violated sound are both inactive sound boxes; the timer is used to time the duration when the local sound and the far-end sound are both inactive sound boxes. The time for timing is N, n The initial value is 〇; the determining module is further configured to: determine whether the timing time N of the timer is greater than a critical time of the set hang-up phone when both the local sound and the far-end sound are inactive sound boxes; The group 'is used to control the mobile phone to automatically hang up the call when the time of the timer is greater than the set time of the hang-up call. Compared with the prior art, the present invention provides How to hang up the phone and form number A0101 Page 5 of 17 0982 201125347 The system first judges that the local sound and the far-end sound are both inactive, and then judges that the duration is greater than the set hang-up call. At the critical time, the mobile phone is controlled to automatically hang up the call, avoiding certain waste. [Embodiment] [0009] The object of the present invention is to use the VAD technology to automatically hang up a call when the inactive voice frame of the two parties continues for more than a period of time. The theoretical basis of the present invention will first be described below. [0010] VAD technology: using the speech characteristic parameters (energy, zero-crossing rate, channel cross-sectional area parameter, and pitch period and spectral distortion) to calculate the quantized value of the input sound box, and use the quantized value to make the next activity sound. The judgment of the box and the inactive sound box. The active sound box refers to the active voice in the conversation between the two parties during the call; and the inactive voice frame refers to the pause (inactive voice) in the conversation between the two parties during the conversation. [0011] As shown in FIG. 1, it is a method flow chart for determining whether it is an active sound box or an inactive sound box. First, the speech characteristic parameters P1, P2, . . . , Pn of the input signal are calculated, and secondly, by comparing the corresponding upper and lower limit values, the values f 1, f2, . . . fn of the corresponding output result are obtained. For example, for the speech characteristic parameter P1., the corresponding upper and lower limit values are THlu and ΤΗ, respectively. If P1 is greater than THl/^, the signal is determined to be an active sound box, and the obtained output result is Π The value is 1; if P1 is smaller than TH1/Temple, the signal is judged to be an inactive sound box, and the obtained output result fl is -1; if P1 is greater than TH and less than ^, the signal is still determined as For an inactive sound box, the resulting output result fl has a value of zero. The values f, ..., fn of the respective output results are respectively multiplied by their corresponding weighting values α 1, α 2 ... 098144352 Form number Α 0101 Page 6 / Total 17 pages 0982075816-0 201125347 «η, then summation, then Obtaining ^, which is the Fr=(«Ufl+aW2...an*fn) of the quantized value of the speech parameter; judging whether the obtained 疋No J; the maximum and final threshold value Fa, if less than, then judging It is an inactive sound box; if it is not smaller than Fth, it is turned off as the active sound box. [0012] [0015] [0015] FIG. 2 is an architecture diagram of a preferred embodiment of the present invention having a handset that automatically hangs up the telephone. The automatic hang-up telephone system operates in On the phone 1. The automatic hang up telephone system 2 includes a setting module 2, a timer 202, an obtaining module 204, a computing module 2〇6, a determining module 208, and a processing module 21 (referred to as the invention) The module refers to a computer program segment that performs a special function, and is more suitable for describing the execution process of the teaching body in the computer than the program. Therefore, the following software modules are described in the present invention. 200, configured to set a critical time T for hanging up the phone. The critical time T of the hanging call is a threshold for determining whether the mobile phone 1 automatically hangs up the phone. For example, the critical time for hanging up the phone may be set to 5 seconds, or 10 seconds. The setting module 200 is further configured to respectively set a final threshold value of the local sound and the far-end sound. The final n-limit value is used to determine whether the local sound and the far-end sound are inactive sounds. The threshold of the frame is used to start timing when both the local sound and the far-end sound are inactive. The time of the timing is N'N initial value is 〇. [0016] The acquisition module 204 is used. For getting the catching sound and the local sound. Compulsing its own voice signal and the sound of the end 1 [0017] The calculation module 206 is used to analyze the acquired far-end sound and local sound ' 098144352 Form No. A0101 17 pages 0982075816-0 201125347 Calculate (4) Remote ff-record range And the green tone parameter quantized value 0 [0019] The determining module 208 'determines the local voice parameter and the local voice parameter quantized value obtained by the training data to determine whether the local voice and the far-end voice are inactive. When the obtained far-end speech parameter quantized value and the local S-sound parameter quantized value are both smaller than their corresponding final thresholds, the determining module 208 turns off both the local and the far-end sounds. The inactive sound box, on the other hand, determines that the local sound and the far end sound are not both inactive sound boxes. The determining module 208 is further configured to determine the timing when the local sound and the far end sound are both inactive sound boxes. Whether the timing time N of the device is greater than the critical time τ of the set hanging telephone, that is, whether the duration N when the local sound and the far-end sound are both inactive sound boxes is greater than the set hanging telephone The critical time T. [0020] [0021] The processing module 210' is used to control the mobile phone to automatically hang up the call when the timer's prayer time is set to the critical time T of the hang up call. The 'shown' is a flow chart of a preferred embodiment of the method of automatically hanging up the telephone of the present invention. Step S11' sets the module 2 to set the critical time T of the hanging call, the final threshold of the local sound, and the far end sound. In the preferred embodiment, the critical time τ of the hang-up call is 10 seconds, and the final threshold of the local sound and the far-end sound are both 〇. 8. [0022] Step S111, when the mobile phone When the call occurs, the timer 202 is reset to zero, that is, [0023] 098144352. Step S112, the acquisition module 2〇4 acquires the far-end sound and the local sound. Form No. A0101 Page 8 / Total π page 0982075816-0 201125347 [0024] #STEPS113, the calculation of the far-end sound and the local sound of the real module 2〇6 is calculated at the arrival end s Quantize values with local speech parameters. [0025] Step S1 1 4, judge _ 榲 group 2 〇 8 姑 ' ' 姨 group ZU 8 according to the obtained far-end speech parameter quantization value and local speech parameter quantization value, determine whether the local sound and the far-end sound are non- Activity box. When it is judged that both the local sound and the far-end sound are inactive sound boxes, the process proceeds to step SU5; otherwise, the process returns to step Slu. [0026] Step S115, the timing crying Chuan>>202 counts the duration when both the local sound and the end sound are inactive 0, ie N4 + 1 〇阙Step S116 'Judge module 2〇8 It is judged whether the timer of the timer 2〇2 is greater than the critical time of the set up call. If the timer time N of the timer is greater than the critical time τ of the set up call, the process proceeds to step S117; if the timer time π of the timer is greater than the set critical time of the hung call, then step si 12 is returned. [0〇28] Step S117, the processing module 210 controls the mobile phone 1 to automatically hang up the call. Q [°029] In addition, in order to improve the present invention, if the mobile phone 1 has the voice message function enabled, that is, when the called party does not connect the phone when making a call, the voice message mailbox function is first entered. Then, after obtaining the local voice and the far-end voice in step S112, it is first determined whether to enter the voicemail mailbox. If the voicemail mailbox is entered, the process proceeds directly to step S117 to hang up the call, to avoid the increase of the cost of the call due to entering the voicemail mailbox; If you do not enter the voicemail mailbox, proceed to step 3113. [0030] In summary, the present invention complies with the requirements of the invention patent, and patents are filed according to law. Form No. Α0101 Page 9 of 17 0982075816-0 201125347 Application. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS [0031] FIG. 1 is a flow chart of a method for determining whether an active sound box or an inactive sound box is used. [0032] FIG. 2 is a preferred embodiment of a mobile phone having the function of automatically hanging up the telephone of the present invention. Architecture diagram. 3 is a flow chart of a preferred embodiment of a method for automatically hanging up a telephone according to the present invention. [Description of Main Components] [0034] Mobile Phone 1 [0035] Automatic Hang Up Telephone System 2 [0036] Setting Module 200 [0038] The timer 202 [0038] The acquisition module 204 [0040] The calculation module 206 [0040] The determination module 208 [0041] The processing module 210 [0042] Sets the critical time S110 for hanging up the phone [0043] Return to zero N = 0 S111 098144352 Form No. A0101 Page 10 of 17 0982075816-0 201125347 [0044] Get the sound of the far end and the local sound S112 [0045] Analyze the far end sound and the local sound, calculate the far end and Local voice parameter quantization value S113. [0046] It is determined whether the local sound and the far end sound are both inactive sound boxes S114 [0047] Timer timing N=N + 1 S115 [0048] Determine whether the timing time N exceeds the set hanging Critical time for disconnected calls T S116 _ [0049] Automatically hang up call S117 〇098144352 Form No. A0101 Page 11 of 17 0982075816-0