TRANSMISSION SYSTEM FOR CODED SPEECH SIGNALS AND/OR VOICEBAND DATA

Abstract: A digital coder receives (input 100) either speech or voice-band data. When receiving speech this is coded by a digital speech coder (102) and formatted into frames with parity bits (106). If modulated data are present this is recognised by a detector (107) which routes the signals instead via a demodulator (108). Parity bits are generated from the same frame portions but parity is inverted (110) so that a parity checking unit at a receiver (not shown) can readily recognise the change. Preferably means (111) are provided to insert into data frames codewords identifying the start and end and indicating the type of modulation in use. Additional detectors (107) and demodulators can be added for different types of modulation.

Description: TRANSMISSION SYSTEM FOR CODED SPEECH SIGNALS AND/OR VOICEBAND DATA The present invention relates to apparatus for coding voice-band signals into digital form, and to apparatus for decoding such signals . More particularly the obj ect is to provide a coder and decoder able to accommodate both speech signals and modulated data signals . Thus the invention provides , in a first aspect, an audio-frequency coding apparatus comprising: (a) an input for receiving audio frequency signals; (b) a speech coder for coding the received signals into digital form; (c) a demodulator for demodulating the received signals, in accordance with a predetermined modulation scheme; (d) a recogniser operable to place the apparatus in a data or speech mode dependent on the presence or absence respectively of signals according to the predetermined modulation scheme; (e) means for formatting signals from, in the data mode, the demodulator and from, in the speech mode, the speech coder, into a common framing structure; and (f) a parity generator responsive to a plurality of predetermined bit positions within the framing structure to generate parity bits and to insert these in predetermined positions within the framing structure, the sense of the parity bits when in the data mode being the reverse of that in the speech mode. In another aspect of the invention there is provided an apparatus for decoding signals thus coded comprising: (a) means for receiving frames of digital signals and for performing parity checks thereon to produce a parity pass/fail signal for each frame; (b) control means responsive to the parity pass/fail signals to switch the apparatus between a data mode and a speech mode; (σ) a modulator operable in the data mode to modulate the received signals to provide a modulated signal to the output of the apparatus; and (d) speech decoding means operable in the speech mode to decode the received signals to provide a speech signal to the said output. Some embodiments of the invention will now be described, by way of example, with reference to the accompanying drawings, in which: Figure 1 is a block diagram of one form of voice-band coding apparatus in accordance with the invention; and Figure 2 is -a block diagram of a decoding apparatus. Referring to Figure 1, analogue voice-band signals received at an input 100 are sampled and converted to digital form in an analogue-to-digital converter 101, the output of which is supplied to the input of a speech coder 102. The speech coder can be any of various types of redundancy-reducing digital speech coder currently available, for example a ultipulse-excited LPC coder. The output of the speech coder is supplied to a formatting unit 103 which formats the data with parity bits and framing information into a frame structure. The formatted data are fed to a modulator 104 to convert the signal to a form suitable for transmission by a radio transmitter 105. The parity bits are produced in a parity generator 106 which produces parity bits for all, or for the most sensitive, groups of speech data being transmitted. Figure 2 shows a decoder. Signals are received by a radio receiver 200 and demodulated in a demodulator 201. The digital speech parameters are fed to a speech decoder 202 and also to a parity check unit 203; if more than a predetermined number of parity bits is incorrect, a "parity fail" signal is produced and serves to mute the speech decoder 202. The decoded output is converted to analogue form by a converter 204 and supplied to an output 205. Returning now to Figure 1, the bit rate reduction in the speech coder 102 is achieved by exploiting the inherent redundancy of a speech signal. Such coders generally are optimised for the known characteristics of speech signals and consequently perform badly if one attempts to use them to process voice-band data such as modulated signals of the type used for group III facsimile transmission. In order to enable the encoder to handle ;uch data signals, a detector 107 monitors the input 100 to identify signals of this kind. In this embodiment the detector 107 serves to detect the presence of phase-shift-keyed (PSK) modulated signals according to CCITT standard V.27. In the event of recognition by the detector 107 a V.27 demodulator 108 is enabled; the demodulated data are forwarded to the formatting unit 103 in place of the data from the speech coder 102, via a changeover switch 109. The data are then formatted, in any desired manner, into the same frame structure, subject however to the constraint that the parity bits are generated from the data bits having the same positions in the frame and occupy the same positions in the frame as before. A modulation codeword indicating the type of modulation received is inserted by a unit 111 into the frame at a position designated for this purpose. It is envisaged that the first such frame will carry a distinct ("START V.27 DATA") codeword from the following frames (having a "V.27 DATA" codeword). Moreover, the parity bits are inverted (shown as performed by an exclusive-or gate 110 supplied with enable signal from the detector 107). The modulator 104 and transmitter 105 operate in the same manner as in the case of speech transmission. In the event that V.27 modulation ceases to be recognised by the detector 107, then the unit 111 inserts an additional code to indicate "END OF DATA" in the last data frame: to permit this, release of the enabling signal from the detector 107 to the switch 109 and exclusive-or gate 110 is delayed by hold circuit 112. Turning again to Figure 2, assume first that speech is being received and that the transmission switches to V.27 data. Owing to the parity reversal, the parity check unit 203 produces a parity fail signal. As well as muting the speech decoder 202 this signal also enables a comparator unit 206 which extracts from the received data frame the "modulation codeword" bits and compares these with stored codewords, namely those identifying the types of voice-band data modulation that the apparatus is designed to handle. Assuming that a codeword "V.27 START DATA" corresponding to the commencement of V.27 modulation is recognised, the comparator produces an enable signal which enables operation of a V.27 modulator 207. The latter receives the received data from the demodulator 201 and produces a modulated output which is routed to the output 205 via a changeover switch 208. The enable signal from the comparator 206 is shown as being latched by a latch 209. Upon cessation of data the "END DATA" code is recognised by the comparator 206; the latch is released and the apparatus reverts to speech operation. In order to obtain satisfactory operation in the presence of transmission errors, provision is made for conditions which may occur as a result: (a) if a parity fail signal occurs during the speech mode of operation (i. e. when the latch 209 is not set) and a START or END code is not recognised by the comparator 206 this means either that speech is being received with errors or that data are being received with the receiver .in speech mode (e.g. because the "START DATA" code has been missed). If a "DATA" code is recognised this condition is recognised by an and-gate 210 and increments a data frame counter 211. If this condition occurs four times in succession a comparator 212 sets the latch 209 (via an or-gate 214) to switch to data reception and incrementing of the counter is inhibited by an inverter 215 and an and-gate 216; (b) if a parity fail does not occur (inverter 225) - or occurs without recognition of a valid codeword ("OTHER" output from the comparator 206) - when the latch 209 is set this means either that data are being received with errors or that speech is being received when the receiver is in the data mode of operation (e.g. because the "END DATA" code has been missed). This condition is recognised by an or-gate 217 and and-gate 218. A bad frame counter 219 (with associated " >3" comparator 220, an and-gate 222, inverter 223 and or-gate 224) operates in like manner to the counter 221 so that four occurrences of such a frame results in resetting of the latch 209 and reversion to speech decoding. In the interests of clarity, circuitry for resetting the counters 211, 219 is not shown. The data frame counter 211 is reset to zero upon resetting of the latch 209 or, if the latter is already reset, for any frame for which a "START DATA" OR "DATA" code is not recognised by the comparator 206. The bad frame counter 219 is reset upon setting of the latch 209, or, if the latter is already set, for any frame for which a "START DATA" or "DATA" code is recognised by the comparator 206. Naturally (as with the apparatus of Figure 1) components 206-244 could be duplicated for FSK or other desired modulation.

Claims: 1. An audio-frequency coding apparatus comprising: (a) an input for receiving audio-frequency signals; (b) a speech coder for coding the received signals into digital form; (c) a demodulator for demodulating the received signals, in accordance with a predetermined modulation scheme; (d) a recogniser operable to place the apparatus in a data or speech mode dependent on the presence or absence respectively of signals according to the predetermined modulation scheme; (e) means for formatting signals from, in the data mode, the demodulator and from, in the speech mode, the speech coder, into a common framing structure; and (f) a parity generator responsive to a plurality of predetermined bit positions within the framing structure to generate parity bits and to insert these in predetermined positions within the framing structure, the sense of the parity bits when in the data mode being the reverse of that in the speech mode. 2. An apparatus according to Claim 1 including insertion means for generating a codeword indicative of data transmission and inserting this into a predetermined position within the framing structure. 3. An apparatus according to Claim 2 in which the insertion means is operable to insert, in a group of consecutive frames containing data from the demodulator: (i) in the first frame, a first codeword; (ii) in the last frame, a second codeword distinct from the first; and (iii) in any intervening frames, a third codeword distinct from the first and second. 4. An apparatus according to Claim 2 or 3 including a second recogniser for recognising a second modulation scheme, arranged to enable a second demodulator, the codeword or words identifying the type of modulation. 5. An audio frequency coding apparatus substantially as herein described with reference to Figure 1 of the accompanying drawings. 6. A decoding apparatus for decoding signals encoded by means of the apparatus of claim 1, comprising: (a) means for receiving frames of digital signals and for performing parity checks thereon to produce a parity pass/fail signal for each frame; (b) control means responsive to the parity pass/fail signals to switch the apparatus between a data mode and a speech mode; (c) a modulator operable in the data mode to modulate the received signals to provide a modulated signal to the output of the apparatus; and (d) speech decoding means operable in the speech mode to decode the received signals to provide a speech signal to the said output. 7. A decoding apparatus according to Claim 6 including recognition means for recognising codewords, in which the control means is responsive to the occurrence of a parity fail signal and of a first codeword to switch the apparatus into the data mode and to the occurrence of a parity fail signal and of a second codeword to switch the apparatus into the speech mode. 8. A decoding apparatus according to Claim 7 in which the control means is additionally responsive: (i) when in the speech mode, to the repeated occurrence, on a predetermined number of consecutive frames, of a parity fail signal and of a third codeword to switch the apparatus into the data mode; and (ii) when in the data mode, to the repeated absence on a predetermined number of consecutive frames, of a parity fail signal or the repeated occurrence on a predetermined number of consecutive frames of a parity fail signal unaccompanied by a recognisable codeword, to switch the apparatus into the speech mode. 9. A decoding apparatus according to Claim 7 or 8 including a second modulator operable in the data mode to modulate the received signals to provide a modulated signal, using a second type of modulation, to the output of the apparatus, the control means being responsive to codewords of a first set or a second set to select the modulator to be used. 10. A decoding apparatus substantially as herein described with reference to Figure 2 of the accompanying drawings.

Inventors: DAVIS ANDREW GORDON, DAVIS, ANDREW, GORDON
Applicants: BRITISH TELECOMM, BRITISH TELECOMMUNICATIONS PUBLIC LIMITED COMPANY
Application year: 1992
Main classification: H04L25
IPC codes: H04J3, H04L25, H04M11