Voice encoder and method of voice encoding

Abstract: A voice encoder which pauses outputting codewords in accordance with the absence of voice activity. An input aural signal is divided into frames and inputted to the voice encoder. The voice encoder has a voice activity detection circuit for determining at each frame whether voice activity is absent or present, a voice encoding circuit, a background noise update judging circuit for detecting a change in the characteristics of the input aural signal, and a control circuit. If the absence of voice activity is detected, the control circuit causes the frame at that time to be encoded as a background noise frame, and then pauses the operation of the voice encoding circuit. If the presence of voice activity is detected, the operation of the voice encoding circuit is resumed. Furthermore, if the voice encoding circuit is not in operation when a change in the characteristics of the input aural signal is detected, the control circuit causes the voice encoding circuit to encode the frame at that time as a background noise frame and then again stop the operation of the voice encoding circuit. A method of voice encoding is also disclosed.

Description: The present invention relates to a voice encoder, and to a method of voice encoding. Various devices and apparatus have been proposed as voice encoders (voice-to-digital converters) that encode inputted aural signals. In the case of applying a voice encoder to a mobile radio communication system or a satellite communication system, reducing the amount of code while maintaining encoding quality is important for eliminating inefficiency or interference in the communication channel. When taking as an object the encoding of human speech, a particular speaker in a conversation will obviously not be speaking at all times. Consequently, if coding is halted during the time a speaker is not actually speaking, the amount of encoding can be reduced. Furthermore, in a mobile radio communication terminal, a reduction in the consumption of electrical power can be achieved by halting encoding, enabling longer battery life. For example, in GSM (Global System for Mobile Communication) recommendations such as "GSM Full-rate Speech Transcoding," (ETSI/PT 12, GSM Recommendation 06.10, January 1990) and "Discontinuous Transmission (DTx) for Full-rate Speech Traffic Channels," (ETSI/PT 12, GSM Recommendation 06.31, January 1990), techniques are disclosed by which transmission devices on the mobile station side are not activated if there is no voice activity when encoding aural signals in communication between a mobile station and a base station. Fig. 1 shows a block diagram of the composition of an example of a conventional voice encoder. This voice encoder 50 is composed of an input terminal 51 for inputting input aural signals for each frame, a synthetic filter coefficient calculation circuit 52 for calculating a synthetic filter coefficient for each frame, a frame energy calculation circuit 53 for calculating the frame energy value for each frame, a voice activity detecting circuit 54 for distinguishing whether or not there is voice activity in the current frame, a voice encoding circuit (voice-to-digital circuit) 55 for encoding the current frame based on the synthetic filter coefficient and the frame energy value, an output terminal 56 for outputting the coded result (codewords) of the voice encoding circuit 55, and a control circuit 57 that controls the overall operation of the voice encoder 50. The input aural signal is an acoustic signal obtained by means of a handset, a microphone or the like, and includes not only the speaker's voice, but also background noise or sound during pauses in the speaker's voice. In this case, the presence of voice activity is a state in which the input aural signal includes the speaker's voice, and the absence of voice activity is a state in which the input aural signal does not include the speaker's voice. The coded signal outputted from the output terminal 56 is then transmitted by way of a communication channel 58 and demodulated by means of a voice decoder (degital-to-voice converter) 59 on the other speaker's side. In the voice encoder 50, the voice activity detecting circuit 54 judges the absence or presence of voice activity at each of the frames. The absence of voice activity, i.e., a state in which the input aural signal is not the speaker's voice but rather background noise, is determined at the voice activity detecting circuit 54. If the information of absence of voice activity is inputted to the control circuit 57, then the control circuit 57 controls the voice encoding circuit 55, and after allowing encoding and transmitting of the frame at the time of determination, stops the output of the coded signal from the voice encoding circuit 55 until the presence of voice activity is determined. To the signal of the coded frame at the time the absence of voice activity was determined, a flag is added indicating that it is background noise. If it is here determined that voice activity is present, the voice encoding circuit 55 resumes encoding based on the synthetic filter coefficient and the frame energy value. Furthermore, although the absence of voice activity continues, a frame encoded as background noise is sent for the passage of each fixed time period ΔT. Here, the fixed time ΔT can be termed the "continuous background noise time." When the absence of voice activity continues for a long time, a coded signal is not transmitted from the voice encoder 50 to the voice decoder 59 during each time period of continuous background noise. Consequently, during the time period of continuous background noise, demodulated data is outputted at the voice decoder 59 based on the frame preceding the break in coded transmission, i.e., the frame to which a flag is affixed indicating that it is background noise. Specifically, the voice decoder 59 first demodulates frames that are transmitted as background noise, and, during times of continuous background noise, it continues to demodulate while changing a portion of the code of the transmitted frame that is background noise. If a new frame of background noise is sent in accordance with the passage of time ΔT from the transmission of the previous frame of background noise, the voice decoder 59 updates the background noise based on the frame of background noise just sent from the voice encoder 50 and continues demodulating based on the updated background noise. As explained above, in a voice encoder of the prior art, as long as it is continuously determined that voice activity is absent, a frame encoded as background noise is sent for the passage of each time period ΔT of continuous background noise, and when this is not the case (during a test period), no coded data is outputted. Accordingly, at the voice decoder, the background noise is updated for each time period ΔT of continuous background noise, and, during a rest period, demodulation is continued based on updated background noise. As a result, when the absence of voice activity is accompanied by a large variation in the input aural signal, the background noise will vary greatly for each time period of continuous background noise, and the aural signal outputted from the voice decoder will vary greatly in quality for each fixed time ΔT, and this variation in sound quality will sound unnatural to the person on the receiving side. EP 0,459,363 describes a voice signal coding system which includes a voice signal detector for receiving a mixed signal of a voice signal and background noise signal and for detecting the presence and absence of the voice signal contained in the mixed signal. A voice signal period detector is provided for detecting a voice signal period in which the voice signal is present. A coding period control circuit is coupled to the voice signal period detector for producing a coding period control signal during the voice signal period. A coding circuit receives and encodes the mixed signal in response to the coding period control signal. A purpose of the present invention is to provide a voice encoder that will not cause an unnatural aural signal to be outputted from the voice encoder on the receiving side during a continued absence of voice activity. Accordingly, the present invention provides a voice encoder comprising input means for inputting an input aural signal divided into frames, voice activity detection means for determining whether voice activity is absent or present in each frame of the input aural signal and voice encoding means for encoding the input aural signal frame by frame, characterised by further comprising background noise update judging means for detecting a change in the characteristics of each frame of the input aural signal when voice activity is absent, the background noise update judging means comparing a current frame and a previously outputted background noise frame, and judging whether a change has occurred in the characteristics of the input aural signal, and control means for temporarily stopping the operation of the voice encoding means when it is detected that voice activity is absent, and, when a change in the characteristics of the input aural signal is detected by the background noise update judging means, causing the voice encoding means to encode the input aural signal at that time as a background noise frame. The present invention also provides a method of voice encoding according to claim 9. The above and other purposes, features and advantages of the present invention will become apparent from the following description referring to the accompanying drawings which illustrate an example of a preferred embodiment of the present invention. Fig. 1 is a block diagram showing the composition of an example of a conventional voice encoder; Fig. 2 is a block diagram showing the composition of a preferred embodiment of the voice encoder of the present invention; and; Fig. 3 is a characteristics graph showing a comparison of synthetic filter coefficients. A preferred embodiment of the present invention will be described, by way of example only, with reference to the drawings In the voice encoder 10 shown in Fig. 2, an input aural signal divided into frames is inputted to an input terminal 11. A synthetic filter coefficient calculation circuit 12 that calculates a synthetic filter coefficient for each frame and a frame energy calculation circuit 13 that calculates a frame energy value for each frame are each connected to the input terminal 11. The method of calculating the synthetic filter coefficient can for example be a method based on LPC (Linear Prediction Coding). The calculated synthetic filter coefficient and frame energy value are both supplied to a voice activity detecting circuit 14, a voice encoding circuit 15, and a background noise update judging circuit 20. The voice activity detecting circuit 14 determines whether voice activity is absent or present in the current frame based on the synthetic filter coefficient and the frame energy value. This judgment is carried out for each frame. The result of judgment of the voice activity detecting circuit 14 is outputted to the control circuit 17. The voice encoding circuit 15 is for encoding the current frame using the synthetic filter coefficient and the frame energy value, and its operation is controlled by the control circuit 17 as will be explained below. The voice encoding method of the present embodiment can employ for example a RPE-LTP (Regular Pulse Excitation - Long Term Predictor) method. The output of the voice encoding circuit 15, codewords, is outputted to the outside as the output of the voice encoder 10 by way of the output terminal 16. In the present embodiment, this voice encoder 10 is connected to a voice decoder 19 by way of a communication line 18. The background noise update judging circuit 20 is for detecting whether or not there is variation or change in the characteristics of the input aural signal when voice activity is absent based on the synthetic filter coefficient and the frame energy value. The judgment result of the background noise update judging circuit 20 is outputted to the control circuit 17. The control circuit 17 is structured so as to control the voice encoding circuit 15 in the following manner. If the absence of voice activity is detected by the voice activity detecting circuit 14 when the voice encoding circuit 15 is in operation, the control circuit 17 causes the frame at that time to be encoded as a background noise frame and then temporarily stops the operation of the voice encoding circuit 15; and if the presence of voice activity is detected when the voice encoding circuit 15 is not in operation, the control circuit 17 causes the voice encoding circuit 15 to resume operation. Furthermore, if the voice encoding circuit 15 is not in operation when variation or change in the characteristics of the input aural signal is detected by the background noise update judging circuit 20, the control circuit 17 causes the voice encoding circuit 15 to encode the frame at that time as a background noise frame and then again stop the operation of the voice encoding circuit 15. Here, a background noise frame is a frame produced by encoding an input aural signal when voice activity is absent, i.e., a frame of encoded background noise, and is a frame that indicates that encoding is to temporarily stop after output of the frame. Specifically, a background noise frame is composed of a postamble signal and the following encoded data. A postamble signal is a signal indicating that (1) the output of the voice encoder 10 is to be temporarily stopped because the voice activity has ceased, and (2) the data to be transmitted next is background noise. The background noise update judging circuit 20 will next be described in further detail. The background noise update judging circuit 20 holds the synthetic filter coefficient and frame energy value of the previously transmitted background noise frame and compares the synthetic filter coefficient and frame energy value of the previously transmitted frame with the synthetic filter coefficient and frame energy value of the current frame. Here, the synthetic filter coefficient must first be explained. The synthetic filter coefficient specifies the characteristics of the synthetic filter used in the coding of the aural signal, and generally, designates the spectrum characteristics of the corresponding synthetic filter. Various methods of comparing the two synthetic filter coefficients may be considered, but, in in the present embodiment, considering the spectral envelope of the synthetic filter corresponding to each synthetic filter coefficient, comparison is made according to values derived by integrating according to the frequency the absolute value of the difference in spectral intensity of the envelope of two synthetic filters for each frequency. In other words, the spectral envelope represented by the synthetic filter coefficient of the previously outputted background noise frame is f pre ( ν ), and the spectral envelope represented by the synthetic filter coefficient of the current frame is f curr ( ν ). Here, ν is the frequency, and f 1 and f 2 are the lowest limit frequency and the highest limit frequency, respectively, of a frequency band. The integral value LD indicated by formula (1) below is referred to as "LPC distortion" in which |x| represents the absolute value of x. In Fig. 3, spectral envelope f pre ( ν ) and f curr ( ν ) are shown by a solid and a dotted line, respectively. The region enclosed by the solid and dotted lines, i.e., the area marked by diagonal lines, is the integral value LD. Next will be explained the principles for the judgment by the background noise update judging circuit 20. When the absence of voice activity continues and background noise is updated, (1) if there is a relatively large change in the signal intensity (frame energy) from the beginning to the end of updating, or (2) if there is a relatively large change in the tone quality of the aural signal from the beginning to the end of updating, it can be considered likely that the output at the voice decoder on the receiving side will sound unnatural. If the frame energy value of the current frame is RO curr , the frame energy value of the previously transmitted background noise is RO pre , the threshold value of the frame energy is RO th , and the threshold value for the integral value (LPC distortion) LD is LD th , the background noise update judging circuit 20 determines that a change or variation in the characteristics of the input aural signal occurred if at least one of the two formulae (2) and (3) is satisfied. LD > LD th Formula (2) is a condition for updating the background noise, before the difference between RO pre and RO curr becomes very great, in order to prevent sudden changes in the frame energy from the beginning to the end of updating. Rather than judging conditions based on a simple difference, condition judgment is performed using a logarithm because human perception possesses a logarithmic characteristic. Formula (3) is a condition to prevent sudden changes in the tone quality from the beginning to the end of updating. The threshold values RO th and LD th used in formulae (2) and (3) are parameters used for determining whether or not to forcibly update the background noise on the voice decoder side and can be appropriately set according to the sound quality on the receiving side or type of input aural signals. Regarding the operation of this voice encoder 10, the voice activity detecting circuit 14 judges the absence or presence of voice activity at each of the frames, and, when there is voice activity, the voice encoding circuit 15 carries on encoding of inputted frames, and the inputted frames are outputted from the output terminal 16. If voice activity is detected when the operation of the voice encoding circuit 15 is stopped due to the absence of voice activity, the operation of the voice encoding circuit 15 is resumed. As to transition from the presence to the absence of voice activity, when the absence of voice activity is detected, the input aural signal at that time is encoded as a background noise frame and outputted, following which the voice encoding circuit 15 is stopped by the control circuit 17. While operation of the voice encoding digital circuit 15 is stopped, the background noise update judging circuit 20 monitors the synthetic filter coefficient and frame energy value of each frame, and , when at least one of formulae (2) and (3) is satisfied, it is determined that a change has occurred in the characteristics of the input aural signal. When a change in the characteristic of the input aural signal has been detected, under the control of the control circuit 17, the voice encoding circuit 15 encodes and outputs the frame at that time as a background noise frame. The voice encoding circuit 15 then returns to a rest state, where it remains until voice activity is present or a change in the characteristics of the input aural signal is again detected. If neither formula (2) nor (3) is satisfied, the current frame is not encoded. As explained above, in the present preferred embodiment, if a change in the characteristics of the input aural signal is detected, background noise is forcibly updated, and, consequently, it is possible to reduce unpleasantness (unnatural sound quality) due to sudden changes in background noise for the person on the voice decoder side. The present invention allows a number of different embodiments. As an example, when a fixed time ΔT has elapsed since the last transmission of a background frame, the background noise can be updated regardless of the judgment made by the background noise update judging circuit 20. The fixed time period ΔT corresponds to continuous background noise time in the voice coder of the prior art. In the embodiment described above, judgment was made using the ratio of RO curr to RO pre in formula (2), but judgment may also be made based on the difference between RO pre and RO curr . In addition, when calculating integral value LD, it is possible to weight the spectral intensity according to the perceived characteristics or to carry out integration non-linearly. It is also possible to vary threshold values RO th and LD th according to the state of the synthetic filter coefficient or the frame energy value. Further, the background noise may be updated only when changes occur in both the synthetic filter coefficient and the frame energy value. In summary, the preferred embodiment of voice encoder pauses outputting codewords in accordance with the absence of voice activity. An input aural signal is divided into frames and inputted to the voice encoder. The voice encoder has a voice activity detection circuit for determining at each frame whether voice activity is absent or present, a voice encoding circuit, a background noise update judging circuit for detecting a change in the characteristics of the input aural signal, and a control circuit. If the absence of voice activity is detected, the control circuit causes the frame at that time to be encoded as a background noise frame, and then pauses the operation of the voice encoding circuit. If the presence of voice activity is detected, the operation of the voice encoding circuit is resumed. Furthermore, if the voice encoding circuit is not in operation when a change in the characteristics of the input aural signal is detected, the control circuit causes the voice encoding circuit to encode the frame at that time as a background noise frame and then again stop the operation of the voice encoding circuit. It will be understood that the present invention has been described above purely by way of example, and modifications of detail can be made within the scope of the invention as defined by the appended claims.

Claims: A voice encoder comprising: input means (11) for inputting an input aural signal divided into frames; voice activity detection means (14) for determining whether voice activity is absent or present in each frame of the input aural signal; and voice encoding means (15) for encoding the input aural signal frame by frame; characterised by further comprising; background noise update judging means (20) for detecting a change in the characteristics of each frame of the input aural signal when voice activity is absent, the background noise update judging means (20) comparing a current frame and a previously outputted background noise frame, and judging whether a change has occurred in the characteristics of the input aural signal; and control means (17) for temporarily stopping the operation of the voice encoding means when it is detected that voice activity is absent, and, when a change in the characteristics of the input aural signal is detected by the background noise update judging means, causing the voice encoding means to encode the input aural signal at that time as a background noise frame. The voice encoder of Claim 1 wherein, when it is detected that voice activity is absent, the operation of the voice encoding means (15) is to be temporarily stopped after encoding the input aural signal at that time as the background noise frame. The voice encoder of Claim 1 or 2, adapted to output the background noise frame at predetermined time intervals while the absence of voice activity continues. The voice encoder of Claim 1, further comprising: synthetic filter coefficient calculation means (12) for analysing the input aural signal and calculating a synthetic filter coefficient for each frame of the input aural signal; and frame energy calculation means (13) for analysing the input aural signal and calculating a frame energy value for each of the frames; wherein said voice encoding means is adapted to encode the input aural signal frame by frame based on the synthetic filter coefficient and the frame energy value; and said background noise update judging means is adapted to judge that a change has occurred in the characteristics of the input aural signal if the change of at least one of the synthetic filter coefficient and the frame energy value exceeds a predetermined threshold value. The voice encoder of Claim 4 wherein the voice activity detection means (14) is adapted to determine whether voice activity is absent or present based on the synthetic filter coefficient and the frame energy value. The voice encoder of Claim 4 or 5 wherein it is judged that a change has occurred in the input aural signal if the ratio of the frame energy value of the current frame to the frame energy value of the previously outputted background noise frame deviates from a predetermined range. The voice encoder of any of claims 4 to 6 wherein it is judged that a change has occurred in the characteristics of the input aural signal if the area of the difference between the spectral characteristics shown by the synthetic filter coefficient of the current frame and the spectral characteristics shown by the synthetic filter coefficient of the previously outputted background noise frame exceeds a predetermined value. The voice encoder of any preceding claim wherein operation of the voice encoding means is to be resumed if it is judged that voice activity is present when the operation of the voice encoding means is in a rest state. A method of voice encoding comprising: inputting an input aural signal divided into frames; determining whether voice activity is absent or present in each frame of the input aural signal; and encoding the input aural signal frame by frame; characterised by further comprising the steps of: detecting a change in the characteristics of each frame of the input aural signal when voice activity is absent; comparing a current frame and a previously outputted background noise frame; and judging whether a change has occurred in the characteristics of the input aural signal; wherein encoding is temporarily stopped when it is detected that voice activity is absent, and, when a change in the characteristics of the input aural signal is detected when voice activity is absent, the input aural signal at that time is encoded as a background noise frame. The method of Claim 9, further comprising the steps of: analyzing the input aural signal and calculating a synthetic filter coefficient for each frame of the input aural signal; analyzing the input aural signal and calculating a frame energy value for each of the frames; wherein said step of encoding the input aural signal frame by frame is based on the synthetic filter coefficient and the frame energy value; and the said judging step comprises judging that a change has occurred in the characteristics of the input aural signal if the change of at least one of the synthetic filter coefficient and the frame energy value exceeds a predetermined threshold value.

Inventors: HAYATA TOSHIHIRO, UNNO YOSHIHIRO, HAYATA, TOSHIHIRO, UNNO, YOSHIHIRO, HAYATA, TOSHIHIRO, C/O NEC CORPORATION, UNNO, YOSHIHIRO, C/O NEC CORPORATION
Applicants: NIPPON ELECTRIC CO, NEC CORPORATION
Application year: 1993
Main classification: G10L3
IPC codes: G10L19, H03M7