ENCODING METHOD

Abstract: An encoding method for an anologue waveform, such as a speech waveform comprises deriving a digital data stream from the waveform, dividing the digital data stream into a num­ ber of successive time frames of equal period and storing the data. A stream of time encoded symbols is also derived from the analogue waveform, divided into successive time frames corresponding to those of the digital data stream. The distribu­ tion of the time encoded symbols for successive time frames is determined and a digital data stream for subsequent decod­ ing is reconstructed from the digital data stored in combination with derived digital data which is dependent upon the results of the comparison of the encoded symbols.

Description: The present invention relates to an encoding method for an analogue waveform, and in particular, but not exclusively, to an encoding method for an analogue waveform representing speech. Electrical waveforms derived from human speech are complex in character, having significant components extending from below 300 Hz, to above 3kHz and a wide dynamic range. Such waveforms may be converted into streams of digital data by known methods such as Pulse Code Modulation (PCM), Delta Modulation or Time Encoding. In PCM, the analogue speech waveform is sampled and a digital code is assigned to each sample to indicate the instantaneous amplitude of the analogue waveform at the time the sample was taken. However, to obtain acceptable quality the sampling rate must be at least double the bandwidth of the waveform. Furthermore, the digital code indicating amplitude normally comprises at least an 8 bit code. Hence, assuming a bandwidth of 3kHz for the speech waveform, it can be seen that the digital data stream will contain 48 k bits/second. In most commercial applications 64 k bits/second are generated as the bandwidth is taken as 4 kHz. In Delta Modulation the analogue speech waveform is sampled, as with PCM. A single bit descriptor code is then assigned to each sample in order to describe the amplitude of the sample with respect to the preceding sample. However, as a single bit descriptor code is used it is necessary to use a higher sample rate than PCM and, for commercial applications, a sample rate of at least 32 k bits/second is necessary. Hence, the digital data stream generated will contain 32 k bits/second. In Time Encoding, the locations of the real zeros in the analogue waveform are determined by quantising in the time domain. The shape of the waveform between successive zeros is then determined by studying the number of events, e.g. maxima or minima, in the waveform between successive real zeros. A series of coded symbols is generated by grouping the successive zeros with their associated events. These symbols are known as TES symbols, and the analogue speech waveform can be reconstructed from them. Since the analogue speech waveform is of restricted bandwidth only a limited number of coded symbols are necessary. For example, in a speech waveform having a bandwidth of 300 Hz to 3.3 kHz with a sampling rate of 20k samples/second, only a limited variation in half cycle durations can occur. At the highest frequency, 3.3 kHz, the half cycle duration is approximately 3 quanta, at the lowest frequency, 300 Hz, the half cycle duration is approximately 34 quanta. By applying mapping logic it has been found that an alphabet of about 27 TES symbols can be used to define the analogue speech waveform. As there are fewer than 32 symbols, a 5 bit constant length (linear) binary word may be allocated to represent each TES symbol. Hence, the TES symbol stream is represented by a digital data stream of 5 bit constant length (linear) data words. In practice, however, additional data may be included, such as amplitude information so that each symbol would be represented by a (5 +n) bit constant length (linear) data word, where n is normally a 1 to 3 bit code word. The principles of Time Encoded Speech (TES) are described in detail in UK Patent No. GB-B-2020517. By adopting Time Encoding it is possible to represent an analogue speech waveform by a digital data stream having a bit rate of approximately 12k bits/second, whilst maintaining acceptable quality. It is often desirable to store digitally encoded speech but it can be seen that, with existing methods of encoding, large memories are required to store relatively short periods of speech because of the number of bits of digital information to be stored per second of the analogue speech waveform. In order to reduce memory requirements, a reduction in the bit rate of the digital data stream is both desirable and necessary. It is an object of the present invention to provide a method of encoding data whereby the bit rate of the digital data stream representing the data is reduced substantially from that obtained with existing methods. The method of the present invention is, therefore, particularly applicable when it is required to store speech in digital form. Furthermore, in transmission by line or radio the lower bit rate means that a narrower bandwidth is required for transmission. If a narrower bandwidth is not adopted the time required to transmit a given quantity of data is reduced, which may be particularly advantageous when the data is to be transmitted by telephone line link. According to the present invention there is provided an encoding method for an analogue waveform, the method comprising deriving a digital data stream from the analogue waveform, dividing the digital data stream into a number of successive time frames of equal time period, storing the digital data in respect of successive time frames, deriving a stream of time encoded symbols from the analogue waveform, dividing the stream of time encoded symbols into successive time frames corresponding to the successive time frames of the digital data stream, storing the time encoded symbols for successive time frames, determining and comparing the distribution of the time encoded symbols for successive time frames, and deriving an encoded digital signal from said digital data stored in respect of successive time frames with a repeat signal being substituted in place of the stored digital data of one or more time frames dependent upon the results of the comparison of the time encoded symbols for successive time frames. Preferably the time frames are of 10 to 20 millisecond time period. The repeat signal for a particular time frame may indicate that the digital data of the time frame immediately preceding, or, one or more preceding time frames is to be repeated. The encoded digital signal may be stored. The encoded digital signal may be transmitted. The digital data stream may be derived from the analogue waveform by pulse code modulation. The digital data stream may be derived from the analogue waveform by delta modulation. The digital data stream may be derived from the analogue waveform by time encoding. The digital data stream may be derived from the analogue waveform by any other method of digital encoding. The present invention will now be described, by way of example, with reference to the accompanying drawings in which:- Figure 1 shows a flow chart illustrating an encoding method in accordance with the present invention, and Figure 2 shows a table illustrating the distribution of time encoded symbols representing a short period of speech. Referring to the drawings, an analogue waveform, for example an analogue speech waveform, is digitized into a digital data stream by any known method such as for example Pulse Code Modulation, Delta Modulation, or Time Encoding. The digital data stream is then divided into a number of successive time frames of equal time period and stored. In this example a 10 millisecond time period has been chosen but time periods of longer or shorter duration may also be adopted. Any store suitable for storing quantities of digital information may be used to store the time frames of digital data. The division of the digital data stream into the successive time frames may be achieved by gating at the required 10 millisecond time intervals. The analogue speech waveform is also time encoded into a stream of TES symbols. Apparatus suitable for this purpose is described in UK Patent GB-B-2020517. The stream of TES symbols is also divided into a number of successive time frames of equal time period and stored such that the time frames stored in respect of the TES symbol stream correspond both in time and duration to the time frames stored in respect of the digital data stream. The distributions of the TES symbols stored in respect of successive time frames are now determined and compared. As previously mentioned the TES alphabet may consist of 27 TES symbols and hence, each stored TES symbol may be represented by a 5 bit binary word. The identity of each TES symbol stored in respect of successive time frames can, therefore, be determined easily by reading the stored 5 bit binary words. The frequency with which any TES symbol occurs may then be determined by incrementing a counter each time a particular 5 bit binary word is recognised. In this way a table can be formulated which shows, for successive time frames, the distribution of the stored TES symbols. The information contained in the table can be generated and stored in any apparatus suitable for this purpose, such as a computer. Figure 2 illustrates the information which could be contained in such a table. Figure 2 shows clearly the distribution of the TES symbols in any time frame. In time frame 1 for example, which represents the TES symbols generated by time encoding 10 milliseconds of speech, it can be seen that only TES symbols 1 to 5 were derived and that TES symbol 2 occurred most frequently. The distribution of the TES symbols in successive time frames is now compared. It can be seen from Figure 2 that there is a little change in the frequency with which the TES symbols occur in time frames 1 to 7 and hence there is a little change in the distribution of the TES symbols in these time frames. This restricted change in distribution indicates that, in the speech waveform from which the TES symbols were derived, there was little change in the character of the speech which occurred in time frames 1 to 7. However, it will be seen that the TES symbol distributrion in time frames 8 and 9 differ from the preceding time frames and from each other which indicates a transition from one speech sound to another. Time frame 11 is identical to that of time frame 10 which indicates that the character of the speech was essentially constant for this 20 millisecond period. Although the TES symbols stored in respect of time frames 10 and 11 are identical, the digital data stored in respect of the same time frames of the digital data stream produced for example by Pulse Code Modulation may differ greatly in view of the sampling rate and the binary codes allocated for each sample. It has been determined by analysing segmented TES symbol streams derived from speech that the TES symbol distribution may remain substantially constant through several 10 millisecond time periods indicating the occurrence of considerable repetition redundancy and the encoding method of the present invention proposes to encode the digital data stream in dependence upon the results of the comparison between the TES symbols stored in respect of successive time frames of the TES symbol stream to eliminate a proportion of this repetition redundancy. The digital data stream is encoded by recalling the digital data stored in respect of the successive time frames. However, the digital data stored in respect of any particular successive time frame is not recalled until the distribution of the TES symbols stored in respect of that time frame has been compared with the distribution of the TES symbols stored in respect of one or more preceding time frames. The results of this comparison then determine whether the digital data in the particular time frame is recalled to form part of the encoded digital data stream or whether the digital data in that time frame is substituted by a repeat signal to indicate that the repetition of a previous time frame, with a similar TES symbol distribution is to be substituted. The repeat signal may, for example, indicate that the digital data stored in respect of a preceding time frame is to be repeated if the TES symbol distribution between the two time frames is within predetermined limits or it may indicate that the digital data which is stored in respect of several preceding time frames is to be repeated if the difference in the TES symbol distribution in these preceding time frames is within predetermined limits. This procedure may be seen more clearly with reference to Figure 2. Referring firstly to time frames 10 and 11, if a comparison is made between the TES symbol distribution in these frames it will be recognised that the distributions for the two time frames are identical. As a result of this comparison the digital data stored in respect of time frame 11 would not be recalled and a repeat signal would be generated indicating that the digital data stored in respect of time frame 10 is to be repeated to replace the data stored in respect of time frame 11. This repeat signal would replace the data stored in respect of time frame 11 and hence, the bit rate of the encoded digital data stream would be reduced in comparison to the bit rate of the digital data stream derived from digitizing the analogue speech waveform by known methods, such as PCM. Referring now to time frames 1 to 7 shown in Figure 2, if a comparison is made between the TES symbol distribution it can be seen there is little change between time frames 1 to 7. However, as there are several time frames having similar TES symbol distribution it may not be possible to repeat any one of these time frames seven times without affecting the character of the speech reconstructed from the encoded data. Hence, the reconstructed or encoded data stream could consist of the repetition of the digital data stored in respect of a selected smaller number of these time frames with a repeat signal generated to indicate when the repetition of a selected time frame is to occur. In this manner the repeated time frames are substituted in the encoded data stream by the repeat signals thereby effecting a reduction in the bit rate of the data stream whilst maintaining the character of any speech reconstructed from the data. With regard to time frames 7, 8 and 9 in Figure 2, it can be seen that these frames differ considerably from each other and therefore, a repeat strategy would not be adopted for these frames since the comparison of the TES symbol distribution in these frames would not show sufficient similarity. With reference to time frames 21 to 30 in Figure 2 it can be seen that the TES symbol distribution in time frames 21 to 25 is almost identical, there being minor variations in the frequency of TES symbols 7 and 9. As a result, the digital data stored in respect of time frames 21 to 25 would not be recalled and could be substituted in the encoded digital data stream by repeat signals indicating when a selected time frame is to be repeated, as previously described in relation to time frames 1 to 7. A similar procedure may be applied to segments 26 to 28 and segments 29 and 30 as the variations in TES symbol distribution in these time frames are also slight. The digital repeat signals which are substituted into the encoded digital data stream may be derived according to predetermined guidelines which enable the maximum possible reduction in the bit rate whilst maintaining acceptable quality in the reconstructed speech. Therefore, by adopting the method of the present invention the analogue speech waveform is encoded into a stream of digital data which may comprise sections of digital data derived directly by known methods such as PCM interleaved with digital repeat signals derived in dependence upon the results of the comparison made on the TES symbol distribution stored in respect of successive time frames. The encoded digital data stream may be either transmitted or stored for subsequent transmission by known methods. The method of the present invention is also applicable when the digital data stream comprises a TES digital data stream. In this case the presence of repeat signals may preferably indicate that, for example, selected TES symbols or groups of TES symbols may be omitted throughout the time frames being compared to reduce the transmission bit rate. On reception or reconstruction the remaining TES symbols or groups of TES symbols may be repeated to replace those symbols or groups of symbols selected for omission in order to reconstruct an acceptable version of the original speech waveform. Furthermore, the present invention has been described with reference to first order probability distribution but it should be understood that higher order probability distribution or alternative probability distribution may equally be used to advantage with the present invention.

Claims: An encoding method for an analogue waveform, the method comprising the following steps: deriving a digital data stream from the analogue waveform, dividing the digital data stream into a number of successive time frames of equal time period, storing the digital data in respect of successive time frames, deriving a stream of time encoded symbols from the analogue waveform, dividing the stream of time encoded symbols into successive time frames corresponding to the successive time frames of the digital data stream, storing the time encoded symbols for successive time frames, determining and comparing the distribution of the time encoded symbols for successive times frames, and deriving an encoded digital signal from said digital data stored in respect of successive time frames with a repeat signal being substituted in place of the stored digital data of one or more time frames dependent upon the results of the comparison of the time encoded symbols for successive time frames. A method according to claim 1, characterised in that the repeat signal for a particular time frame indicates that the digital data of the time frame immediately preceding the particular time frame is to be repeated. A method according to claim 1, characterised in that the repeat signal indicates that the digital data of one or more preceding time frames is to be repeated. A method according to any one of the preceding claims, characterised in that the time frames are of 10 to 20 millisecond time period. A method according to any one of the preceding claims, characterised in that the encoded digital signal is stored. A method according to any preceding claim, characterised in that the digital data stream derived from the analogue waveform comprises a stream of time encoded symbols and the repeat signal is for indicating that one or more time frames of time encoded symbols in the digital data stream are to be repeated. A method according to any one of claims 1 to 5, characterised in that the digital data stream is derived from the analogue waveform by a pulse code modulation. A method according to any one of claims 1 to 5, characterised in that the digital data stream is derived from the analogue waveform by delta modulation. A method according to any of the preceding claims characterised in that the analogue waveform comprises a speech waveform.

Inventors: KING, REGINALD ALFRED
Applicants: KING, REGINALD ALFRED
Application year: 1985
Main classification: H03M7
IPC codes: G11C7, G06F3, G10L19, H03M1, H03M7