Speech codec

Abstract: Disclosed herein is a speech codec whose muting circuit mutes the output of a decoded speech when either the accumulated number of error-correcting codes corrected or the number of error-detecting codes detected within a received signal frame exceeds the corresponding threshold value. Because that part of the decoded speech which fails to meet a reference level is suppressed, noise is eliminated from the decoded speech.

Description: BACKGROUND OF THE INVENTION Field of the invention The present invention relates to a speech codec which decodes an error-corrected signal (frame-structured received signal) in order to output a decoded speech. Description of the Prior Art EP-A-0 275 751 discloses a procedure and a device for digital transmission of speech signals. In this known procedure and device, the speech is segmented into frames of fixed duration so as to transmit them independently from one another and is restored upon reception by means of a synthesizer filter. Each frame has a first field composed of binary words of identical structure in order to code the position and the amplitude of exiting impulses of the synthesizer filter, a second field composed of at least one binary word to code the amplitude of a reference impulse associated with the frame, and a third field composed of binary words to code the coefficients of the synthesizer filter. Only the codes representing the reference amplitude and the coefficients of the synthesizer filter which constitute the second and third fields are accompanied by error self-correcting codes which are used upon reception by error correcting detectors. Fig. 1 is a block diagram showing a further prior art speech codec. In the figure, reference numeral 1 is a received signal; numeral 2 is an error-corrected signal output from an error correcting circuit after error correction, indicated later; numeral 3 is a decoded speech obtained by decoding the error-corrected signal 2; numeral 41 is the above-mentioned error correcting circuit, and numeral 12 is a speech decoding circuit. In operation, the error correcting circuit 41 decodes error-correcting codes in the received signal 1 so as to correct or detect any errors that may have occurred during transmission. The circuit 41 then outputs the error-corrected signal 2. The speech decoding circuit 12 decodes the error-corrected signal 2 to output the decoded speech 3. Constructed as described above, prior art speech codecs has a drawback that, when the number of transmission errors in the received signal 1 exceeds the correcting capacity of error-correcting codes, wrong corrections and uncorrected errors as results cause the decoded speech 3 to produce noises. SUMMARY OF THE INVENTION It is therefore the principal object of the present invention to provide a speech codec that eliminates the above-described problem of prior art speech codecs, that is, removes said noises from the decoded speech. According to a first aspect of the present invention, there is provided a speech codec in which a correcting and decoding means decodes error-correcting codes in a frame-structured signal received, detects any transmission errors therein, corrects them if they are correctable, and decodes the error-corrected signal to provide a decoded speech. Meanwhile, accumulators are provided to calculate the number of the error-correcting codes corrected in a frame of the received signal as well as the number of error-detecting codes detected therein. These counts are compared with the corresponding threshold values by comparators. The results are used by a muting circuit to mute the decoded speech from the correcting and decoding means as needed. According to a second aspect of the present invention, there is provided a speech codec in which upon detecting a starting position of a frame by using a frame-synchronizing code in a received signal, a threshold value inserting circuit substitutes a threshold value for the frame-synchronizing code bits in the frame-structured received signal, so that the comparators can extract threshold values to be used therein from the frame of the received signal. The above and other related objects and features of the invention, as well as the novelty thereof, will clearly appear from the following description and from the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a prior art speech codec; Fig. 2 is a block diagram of a speech codec according to the first aspect of the present invention; Fig. 3 is a block diagram of a speech codec according to the second aspect of the present invention; and Fig. 4 is a view showing the formats of signals at several points indicated in Fig. 3. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS There will now be described preferred embodiments of the present invention by referring to the accompanying drawings. Fig. 1 is a block diagram showing the architecture of a preferred embodiment according to the above-described first aspect of the invention. In the figure, reference numeral 1 is a received signal; numeral 2 is an error-corrected signal; numeral 3 is a decoded speech; numeral 4 is a speech output; numeral 5 is a frame timing signal that is input for every received signal; numeral 11 is an error correcting circuit; numeral 12 is a speech decoding circuit; numerals 13 and 14 are an accumulator each; numerals 15 and 16 are a comparator each; numerals 17 and 18 are threshold value setting circuits which set threshold values for the number of error-correcting codes corrected and for the number of error-detecting codes detected, respectively, and illustratively made up of switches; numeral 19 is a muting circuit that mutes the decoded speech output from the comparators 15 and 16 as needed; reference character A is a correcting and decoding means; character B is an accumulating means; and character C is a comparing means. In operation, the error correcting circuit 11 decodes error-correcting codes in the received signal 1 and detects any errors therein. After correcting transmission errors that are detected and found correctable, the circuit 11 outputs the error-corrected signal 2. At this time, the number of the error-correcting codes corrected and the number of the error-detecting codes detected are accumulated respectively by the accumulators 13 and 14 of the accumulating means B. These accumulators, reset by the frame timing signal 5, calculate the number of the error-correcting codes corrected and the number of the error-detecting codes detected within the frame of the received signal respectively. The results are compared by the comparators 15 and 16 of the comparing means C with the threshold values set up by the threshold value setting circuits 17 and 18. When the number of the corrected error-correcting codes or of the detected error-detecting codes exceeds the corresponding threshold value, the muting circuit 19 mutes the decoded speech 3 coming from the speech decoding circuit 12. That is, the speech output 4 is inhibited. Fig. 3 is a block diagram showing a preferred embodiment according to the above-described second aspect of the invention. In the figure, reference numeral 1 is a received signal; numeral 2 is an error-corrected signal; numeral 3 is a decoded speech; numeral 4 is a speech output; numeral 5 is a frame timing signal; numeral 6 is a received signal with threshold values inserted therein; numeral 21 is a threshold value inserting circuit which inserts into the received signal 1 the threshold values established by threshold value setting circuits 17A and 18A, pointed out later; numeral 11 is an error correcting circuit; numeral 22 is a threshold value separating circuit; numeral 12 is a speech decoding circuit; numerals 13 and 14 are an accumulator each; numerals 15 and 16 are a comparator each; numerals 17A and 18A are the above-mentioned threshold value setting circuits; numeral 19 is a muting circuit; and reference character D is a correcting and decoding means. In operation, the frame-structured received signal 1 contains frame-synchronizing code bits that indicate the beginning of each frame. By use of the frame-synchronizing code bits, the frame timing signal 5 is extracted from the signal and the beginning of the frame is determined accordingly. Then the frame-synchronizing code bits become unnecessary. At this time, the frame-synchronizing code bits in the received signal are replaced with the threshold values set by the threshold value setting circuits 17A and 18A. The resulting signal is sent to the error correcting circuit 11. The circuit 11 decodes the error correcting codes of the received signal 6 with the threshold values inserted therein, corrects or detects the transmission errors, and outputs the error-corrected signal 2. At this stage, the number of the error-correcting codes corrected and that of the error-detecting codes detected are accumulated by the accumulators 13 and 14 of the accumulating means B respectively. These accumulators, reset by the frame timing signal, calculate the number of the error-correcting codes corrected and that of the error-detecting codes detected within the frame respectively. Meanwhile, the threshold value separating circuit 22 separates the inserted threshold values from the error-corrected signal 2. The results are input to the comparators 15 and 16 for comparison with the predetermined threshold values. When either the number of the error-correcting codes corrected or the number of the error-detecting codes detected exceeds the corresponding threshold value, the muting circuit 19 mutes the decoded speech 3 coming from the speech decoding circuit 12. That is, the speech output 4 is inhibited. Fig. 4 depicts the relationships among the signal 1 received by the threshold value inserting circuit 21, the received signal 6 with threshold values inserted therein, and the error-corrected signal 2. As described above, according to the first and the second aspects of the present invention, there is provided a speech codec adapted to mute the decoded speech when the number of the error-correcting codes corrected or that of the error-detecting codes detected in each frame exceeds the corresponding threshold value determined in advance. In this manner, the speech codec can eliminate noises from its speech output.

Claims: A speech codec comprising: a correcting and decoding means (11, 12) for decoding error-correcting codes in a received signal frame (1), for correcting any correctable transmission errors therein and for decoding the error-corrected signal into a decoded speech (3); characterized by an accumulating means (13, 14) for accumulating the number of the error-correcting codes which are corrected by said correcting and decoding means (11, 12) in said received signal frame (1) as well as the number of the error-detecting codes detected by said correcting and decoding means (11, 12) in the received signal frame (1); a comparing means (15, 16) for comparing each of the accumulated results of said accumulating means (13, 14) with respective predetermined threshold values (17A, 18A) which are set in advance as upper limits; and a muting means (19) for muting the decoded speech (3) output by said correcting and decoding means (11, 12) in accordance with each of comparison results of said comparing means (15, 16). A speech codec according to claim 1 in which voice data are received in sequential signal frames for decoding, characterized in that said muting means (19) is connected to be activated by said comparing means (15, 16) for muting the entire decoded speech output data (3) of each of said received signal frames (1) in which said accumulated results for such frame (1) exceed said respective threshold values (17A, 18A) from the decoded speech data (3) output by said correcting and decoding means (11, 12). A speech codec according to anyone of claims 1 to 2, characterized in that a threshold value inserting means (17, 18) is provided for inserting threshold values (17A, 18A) which replace frame-synchronizing code bits in each of said received signal frames (1), each of said threshold values (17A, 18A) being set as an upper limit respectively corresponding to a selected number of corrected error-correcting codes for said received signal frame (1) and a selected number of detected error-detecting codes for said signal frame (1); said correcting and decoding means (11, 12) detects and decodes the error-correcting codes in said signal frame (1) which are outputted from said threshold value inserting means (17, 18); a threshold value separating means (22) is provided for separating said inserted threshold values (17A, 18A); and said comparing means (15, 16) is connected to receive the outputs of said accumulating means (13, 14) and said threshold value separating means (22) for comparing each of the accumulated results of said accumulating means (13, 14) with the respective separated threshold values (17A, 18A) previously inserted into the signal frame (1) by said threshold value inserting means (17, 18). A speech codec according to any preceding claim, wherein said muting means (19) decreases the level of the decoded speech (3).

Inventors: HAYASHI RYOJI C O MITSUBISHI D, HAYASHI, RYOJI, C/O MITSUBISHI DENKI K.K.
Applicants: MITSUBISHI ELECTRIC CORP, MITSUBISHI DENKI KABUSHIKI KAISHA
Application year: 1990
Main classification: H04L1
IPC codes: H04L1, H03M13