1. Field of the Invention
Embodiments of the present disclosure are related to communication technology, and in particular, to an automatic disconnection system and method of a communication device.
2. Description of Related Art
Some people may forget to lock the keypad of a communication device (e.g., a cell phone) or forget to press a button of the communication device to end a phone call when the phone call is finished, which can result in unnecessary phone charges.
What is needed, therefore, is an improved system and method for overcoming the aforementioned problem.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as an EPROM. It will be appreciated that modules may comprised connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
In one embodiment, the auto disconnection system 20 comprises a setting module 200, a timer 202, an obtaining module 204, a calculation module 206, a determination module 208, and a processing module 210. The modules 200, 202, 204, 206, 208, and 210 may comprise one or more computerized codes to be executed by the processor 40 to perform one or more operations of the communication device 1. Details of these operations will be provided below.
The setting module 200 sets a critical time T of the phone call of the communication device, the critical time determining if the phone call of the communication device 1 needs to be disconnected. In one embodiment, the predetermined critical time T may be set as 5 seconds or 10 seconds. The setting module 200 further sets a first final threshold for a local voice and a second final threshold for a remote voice. It should be understood that “voice” is defined to include not only human voices of a caller/a callee, but background noise as well. The first final threshold and the second final threshold may be used to determine whether the local voice or the remote voice is inactive. Details will be provided below.
The VAD technology makes use of voice characteristic parameters (e.g., energy, zero-crossing rate, vocal tract area, pitch period, and spectral distortion) to calculate a quantification value of input voice, and uses the quantification value to determine the input voice is active or inactive. In one embodiment, an active voice may represent dialogue between two parties during a phone call. An inactive voice may represent a temporary suspension of dialog between the parties during the phone call.
If P1 is greater than TH1U, the input voice signal is determined to be active voice, and the output value f1 is “1.” If P1 is less than TH1L, this input voice signal is determined to be inactive voice, and the output value f1 is “−1.” If P1 is greater than TH1L and less than TH1U, this input voice signal is also determined to be inactive voice, and the output value f1 is 0. Fr is obtained using a formula of Fr=(α1*f1+α2*f2 . . . αn*fn). The α1, α2 . . . αn represent weighted values of the voice characteristic parameters P1, P2 . . . Pn, and Fr represents voice parameter quantification value. Finally, the calculated Fr is compared with the final threshold Fth. If Fr is less than Fth, the input voice signal is determined to be inactive voice. If Fr is not less than Fth, the input voice signal is determined to be active voice.
The timer 202 starts timing a duration of inactivity of when both the local voice and remote voice of a phone call are determined to be inactive. In one embodiment, the duration of inactivity is represented as N, and the initial value of N is set to 0.
The obtaining module 204 obtains the local voice and the remote voice when the phone call of the communication device 1 is established. That is, the obtaining module 204 obtains the voice signal of a user of the communication device 1 and the voice signal of the other side of the phone call. In one embodiment, the obtaining module 204 obtains the local voice and the remote voice by collecting and recording the local voice and the remote voice.
The calculation module 206 analyzes the obtained local voice and remote voice, and calculates a voice parameter quantification value of the local voice and a voice parameter quantification value of the remote voice.
The determination module 208 determines whether both the local voice and remote voice are inactive. In one embodiment, if the voice parameter quantification value of the local voice is less than the first final threshold, and the voice parameter quantification value of the remote voice is also less than the second final threshold, the determination module 208 determines that both the local voice and remote voice are inactive. If the voice parameter quantification value of the local voice is less than the first final threshold, and the voice parameter quantification value of the remote voice is not less than the second final threshold, the determination module 208 determines the local voice is active and the remote voice is inactive. If the voice parameter quantification value of the local voice is not less than the first final threshold, and the voice parameter quantification value of the remote voice is less than the second final threshold, the determination module 208 determines the local voice is active and the remote voice is inactive. If the parameter of the local voice is not less than the first final threshold, and the voice parameter of the remote voice is not less than the second final threshold, the determination module 208 determines the local voice is active and the remote voice is inactive.
The determination module 208 further determines whether the duration N of inactivity exceeds the predetermined critical time T when both the local voice and remote voice are inactive.
The processing module 210 controls the communication device 1 to perform an auto disconnection of the phone call immediately when the duration of inactivity N exceeds the predetermined critical time T.
In block S110, The setting module 200 sets a critical time of the phone call, the critical time determining if the phone call needs to be disconnected, and sets a first final threshold of a local voice and a second final threshold of a remote voice. In one embodiment, the predetermined critical time T may be set as 5 seconds or 10 seconds, and both of the first final threshold and the second threshold may be set as 0.8.
In block S111, when the phone call of the communication device 1 is established, the timer 202 is reset, and the duration of inactivity N of the timer 202 is equal to 0.
In block S112, the obtaining module 204 obtains the local voice and the remote voice of the communication device 1.
In block S113, the calculation module 206 analyzes the obtained local voice and remote voice, and calculates a voice parameter quantification value of the local voice and a voice parameter quantification value of the remote voice.
In block S114, The determination module 208 determines whether both of the local voice and remote voice are inactive.
If both of the local voice and remote voice are inactive, in block S115, the timer 202 starts timing and calculates the duration of inactivity of the timer N=N+1. Otherwise, if one of the local voice and remote voice are active or both of the local voice and remote voice are active, the procedure turns back to S110.
In block S116, the determination module 208 further determines whether the duration of inactivity N exceeds the predetermined critical time T when both of the local voice and remote voice are inactive.
If the duration of inactivity N exceeds the predetermined critical time T, in block S117, the processing module 210 controls the communication device 1 to perform an auto disconnection of the phone call immediately. If the duration of inactivity N does not exceed the predetermined critical time T, the procedure turns back to S112.
It should be emphasized that the described inventive embodiments are merely possible examples of implementations, and set forth for a clear understanding of the principles of the present disclosure. Many variations and modifications may be made to the above-described inventive embodiments without departing substantially from the spirit and principles of the present disclosure. All such modifications and variations are intended to be comprised herein within the scope of this disclosure and the above-described inventive embodiments, and the present disclosure is protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
200910311740.6 | Dec 2009 | CN | national |