United States Patent5546395
Sharma , ; et al.August 13, 1996

Title

Dynamic selection of compression rate for a voice compression algorithm in a voice over data modem

Abstract

The present invention includes software and hardware components to enable digital data communication over standard telephone lines. The present invention converts analog voice signals to digital data, compresses that data and places the compressed speech data into packets for transfer over the telephone lines to a remote site. A voice control digital signal processor (DSP) operates to use one of a plurality of speech compression algorithms which produce a scaleable amount of compression. The rate of compression is inversely proportional to the quality of the speech the compression algorithm is able to reproduce. The higher the compression, the lower the reproduction quality. The selection of the rate of compression is dependant on such factors as the speed or data bandwidth on the communications connection between the two sites, the data demand between the sites and amount of silence detected in the speech signal. The voice compression rate is dynamically changed as the aforementioned factors change. A negotiation handshake protocol is described which enables the two sites to negotiate the compression rate based on such factors.


Inventors:Sharma; Raghu N. (North Oaks, MN), Davis; Jeffrey P.  (Ham Lake, MN), Gunn; Timothy D.  (Mounds View, MN), Li; Ping  (New Brighton, MN), Maitra; Sidhartha  (Saratoga, CA), Thanawala; Ashish A.  (Saratoga, CA)
Assignee:Multi-Tech Systems, Inc. (Mounds View, MN)
Appl. No.:346421
Filed:November 29, 1994

Current U.S. Class:370/468 370/477 375/246 704/219 
Field of Search:370/94.1,110.1,118,112,79,76,82,84,24 395/2,2.2,2.21,2.28,2.3,2.31 381/29,32,36,30,41 375/245,246 455/72 341/51

U.S. Patent Documents
3304372February 1967Filipowsky et al.
3789165January 1974Campanella et al.
3904830September 1975Every, Sr. et al.
3973081August 1976Hutchins
3997732December 1976Every, Sr. et al.
4100377July 1978Flanagan
4107471August 1978Reed
4205202May 1980Kahn
4284850August 1981Clingenpeel
4354273October 1982Araseki et al.
4377860March 1983Godbole
4403322September 1983Kato et al.
4425661January 1984Moses et al.
4445213April 1984Baugh et al.
4476559October 1984Brolin et al.
4479195October 1984Herr et al.
4479213October 1984Galand et al.
4495620January 1985Steele et al.
4500987February 1985Hasegawa
4524244June 1985Faggin et al.
4534024August 1985Maxemchuk et al.
4546212October 1985Crowder, Sr.
4578537March 1986Faggin et al.
4587651May 1986Nelson et al.
4593389June 1986Wurzburg et al.
4609788September 1986Miller et al.
4629829December 1986Puhl et al.
4652703March 1987Lu et al.
4660218April 1987Hashimoto
4670874June 1987Sato et al.
4697281September 1987O'Sullivan
4700341October 1987Huang
4707831November 1987Weir et al.
4718082January 1988Parker et al.
4740963April 1988Eckley
4750169June 1988Carse et al.
4751510June 1988De Saint Michel et al.
4751736June 1988Gupta et al.
4757527July 1988Beniston et al.
4764955August 1988Galand et al.
4807250February 1989Tanaka
4809271February 1989Kondo et al.
4813040March 1989Futato
4827085May 1989Yaniv et al.
4835765May 1989Bergmans et al.
4839802June 1989Wonak et al.
4845746July 1989Li
4847900July 1989Wakim
4862449August 1989Hoefkens et al.
4866732September 1989Carey et al.
4887265December 1989Felix
4890282December 1989Lambert et al.
4901333February 1990Hodgkiss
4905282February 1990McGlynn et al.
4912758March 1990Arbel
4914650April 1990Sriram
4926448May 1990Kraul et al.
4932048June 1990Kenmochi et al.
4935954June 1990Thompson et al.
4942569July 1990Maeno
4953210August 1990McGlynn et al.
4965789October 1990Bottau et al.
4972457November 1990O'Sullivan
4972462November 1990Shibata
4972483November 1990Carey
4977591December 1990Chen et al.
4991169February 1991Davis et al.
4995059February 1991Ishikawa
4998241March 1991Brox et al.
5001710March 1991Gawrys et al.
5001745March 1991Pollock
5005183April 1991Carey et al.
5008926April 1991Misholi
5014232May 1991Andr e
5020058May 1991Holden et al.
5036513July 1991Greenblatt
5044010August 1991Frenkiel et al.
5046188September 1991Molnar
5051720September 1991Kittirutsunetorn
5062133October 1991Melrose
5065425November 1991Lecomte et al.
5081647January 1992Bremer
5083310January 1992Drory
5086471February 1992Tanaka et al.
5099472March 1992Townsend et al.
5107519April 1992Ishikawa
5115429May 1992Hluchyj et al.
5121385June 1992Tominaga et al.
5127001June 1992Steagall et al.
5127041June 1992O'Sullivan
5132966July 1992Hayano et al.
5136586August 1992Greenblatt
5138662August 1992Amano et al.
5146470September 1992Fujii et al.
5150410September 1992Bertrand
5151937September 1992Chujo et al.
5153897October 1992Sumiyoshi et al.
5162812November 1992Aman et al.
5177734January 1993Cummiskey et al.
5182762January 1993Shirai et al.
5187591February 1993Guy et al.
5187692February 1993Haneda et al.
5193110March 1993Jones et al.
5195130March 1993Weiss et al.
5208812May 1993Dudek et al.
5208850May 1993Kino
5214656May 1993Chung et al.
5228026July 1993Albrow et al.
5233660August 1993Chen
5235595August 1993O'Dowd
5249218September 1993Sainton
5258983November 1993Lane et al.
5261027November 1993Taniguchi et al.
5263019November 1993Chu
5272695December 1993Makino et al.
5276703January 1994Budin et al.
5278900January 1994Van Gerwen et al.
5282197January 1994Kreitzer
5283638February 1994Engberg et al.
5283819February 1994Glick et al.
5289539February 1994Maruyama
5295136March 1994Ashley et al.
5305312April 1994Fornek et al.
5307413April 1994Denzer
5309562May 1994Li
5313498May 1994Sano
5317604May 1994Osterweil
5319682June 1994Clark
5327520July 1994Chen
5329472July 1994Sugiyama
5341374August 1994Lewen et al.
5343473August 1994Cidon et al.
5343521August 1994Jullien et al.
5371853December 1994Kao et al.
5406560April 1995Kondo et al.
5414796May 1995Jacobs
Re34034August 1992O'Sullivan
Foreign Patent Documents
2210237Jan., 1989GB
488865A2Jun., 1992EP
63-054052Aug., 1988JP
Other References
European Search Report for Application No. EP 93403164 completed on Sep. 21, 1995 by Examiner Lambley; 4 pages. .
S. Casale et al., "Statistical Voice/High-Speed Data Multiplexing on a 64 KBIT/S Channel," IEEE, pp. 459-464, dated 1991. .
T. Komiya et al, "An Approach to the Multifunction Graphic Terminal for the ISDN Environment", IEEE, pp. 32-36, dated 1988. .
D. Gulick et al., "Interface for the ISDN to Your PC with A Voice/Data Board", Electronic Design, pp. 85-88, dated Dec. 10, 1987. .
S. Sasaki et al., "Variable Rate Voice Coding System", IEEE, pp. 364-367, dated 1992. .
AT&T Microelectronics, "High Speed Data Pump Chip Sets", published in Dec. 1991. .
AT&T Microelectronics, "WE DSP16C Digital Signal Processor/CODEC Preliminary Data Sheet", 32 pages, May published in 1991. .
AT&T Microelectronics, "T7540 Digital Telephone CODEC Data Sheet Addendum", pp. 1-4, published in Jul., 1991. .
AT&T Microelectronics, "T7540 Digital Telephone CODEC Preliminary Data Sheet", pp. 1-64, published in Jan., 1991. .
Zilog Intelligent Peripheral Controllers, "Z84C01 Z80 CPU with Clock Generator/Controller," pp. 43-73, published in 1991. .
Zilog Intelligent Peripheral Controllers, "Z84C90 CMOS Z80 KIO Serial/Parallel/counter/timer," pp. 205-224, published in 1991. .
U.S. West Caller ID publication, received Jul. 18, 1994, one page. .
J. D. Mills, et al., "A Data and Boice System for the General Service Telephone Network," IECON, pp. 1143-1148, 1987. .
Copy of European Search Report (Application No. EP 94304742), completed Jun. 8, 1995 by Examiner Mikkelsen. .
"TechTips--A Periodic Round-up of Technical Applications, Notes, and Information on MultiTech's Data Communications Products" by MultiTech Systems, vol. 2, No. 2, May 1992. .
"MultiX25--X.25 PAD, The New MultiX25 PAD 8 Port X.25 Packet Assembler/Disassembler for Public and Private Data Networks," by MultiTech Systems. Mar. 1992 (2 pages). .
Y. Akaiwa et al., "An Integrated Voice and Data Radio Access System," 1992, pp. 255-258, IEEE. .
CCITT V.42, "Error-Correcting Procedures for DCES Using Asynchronous-to-Synchronous Conversion", vol. VIII, pp. 296-370, dated 1988..~
Primary Examiner: Chin; Wellington
Assistant Examiner: Nguyen; Chau T.
Attorney, Agent or Firm:Schwegman, Lundberg, Woessner & Kluth, P.A.

Parent Case Text



This patent application is a Continuation-In-Part of U.S. patent application Ser. No. 08/271,496 filed Jul. 7, 1994 entitled "VOICE OVER DATA MODEM WITH SELECTABLE VOICE COMPRESSION", the complete application of which is hereby incorporated by reference, and also U.S. patent application Ser. No. 08/002,467 filed Jan. 8, 1993, now issued as U.S. Pat. No. 5,452,289 on Sep. 19, 1995 entitled "COMPUTER-BASED MULTIFUNCTION PERSONAL COMMUNICATIONS SYSTEM", the complete application of which, including the microfiche appendix, is also hereby incorporated by reference.

A microfiche appendix is included in the application, 1 microfiche and 92 pages.

Claims


We claim:
1. A communication module for use with a personal computer, comprising:
communications interface means connected for communicating to the personal computer for transferring data between the personal computer and the communications module;
telephone line interface means for connection to a telephone line;
voice interface means for receiving local voice signals from a local user and for conveying remote voice signals from a remote user to the local user;
full-duplex conversion means connected to the voice interface means for converting the local voice signals into outgoing digital voice data and for converting incoming digital voice data into the remote voice signals;
digital signal processor means connected to the full-duplex conversion means for compressing the outgoing digital voice data into compressed outgoing digital voice data having one of a plurality of selectable compression rates and for decompressing compressed incoming digital voice data into the incoming digital voice data at one of said plurality of said selectable compression rates;
main control means connected for receiving the compressed outgoing digital voice data from the digital signal processor means, connected for receiving outgoing conventional digital data from the personal computer through the communications interface means, and operable for multiplexing the compressed outgoing digital voice data and the conventional digital data to produce multiplexed outgoing data; and
the main control means further operable for receiving multiplexed incoming data which contains incoming conventional digital data multiplexed with the compressed incoming digital voice data, for demultiplexing the incoming conventional digital data and the compressed incoming digital voice data, and for sending the incoming conventional digital data to the personal computer through the communications interface means and for sending the compressed incoming digital voice data to the digital signal processor means; and
the main control means further operable for negotiating the compression rate at various times during the transmission of conventional digital data multiplexed with the compressed digital voice data to change the compression rate.

2. The module according to claim 1 wherein the digital signal processor means is further operable for compressing the outgoing digital voice data into compressed outgoing digital voice data by performing the steps of:
a.) removing any DC bias in the outgoing digital voice data to produce a normalized outgoing digital voice signal;
b.) pre-emphasizing the normalized outgoing digital voice signal to produce a pre-emphasized outgoing digital voice signal;
c.) dividing the pre-emphasized outgoing digital voice signal into segments to produce a current segment and a past segment;
d.) predicting the pitch of the current speech segment to form a pitch prediction;
e.) calculating the gain of the pitch of the current speech segment to form a prediction gain;
e.) reconstructing the past speech segment from a compressed past segment to produce a reconstructed past segment;
f.) finding the innovation in the current speech segment by comparing the pitch prediction to the reconstructed past segment to produce an error signal;
g.) determining the maximum amplitude in the current speech segment;
h.) quantizing the error signal using one of a plurality of code books, each code book corresponding to a different compression rate, the code books being generated from a representative set of speakers and environments to produce a minimum mean squared error matching the form of an index into said one of said plurality of code book; and
i.) recording the pitch prediction, the prediction gain, the maximum amplitude and the index into the selected code book in a packet as the compressed outgoing digital voice data.

3. The module according to claim 1 wherein the digital signal processor means is further operable for detecting silent periods in the outgoing digital voice data and for producing in response thereto a silence flag and wherein the main control means is further operable for transmitting outgoing conventional digital data on the telephone line when the silence flag indicates the absence of voice information and wherein the main control means is further operable for multiplexing and transmitting both the compressed outgoing digital voice data and the outgoing conventional digital data on the telephone line when the silence flag indicates the presence of voice information.

4. A system for performing voice compression, comprising:
voice interface means including a voice input device for receiving voice signals from a user;
conversion means for converting the voice signals into digital voice data;
means for dividing the digital voice signal into segments and for serially producing therefrom a current voice segment and a past voice segment;
means for determining the predicted gain of the current voice segment;
means for determining the pitch values of the current voice segment;
coding means for predictive coding on the current voice segment by predicting the current voice segment as best as possible based on past recreated voice segments and for producing a difference signal value in response thereto;
means for selecting a compression rate for the speech compression;
means including a plurality of code books stored in a memory for comparing the difference signal value to stored difference values stored one of the plurality of code books stored in the memory and for locating the memory address of the closest match between the difference signal value and the stored difference values;
output means for providing a compression packet for each of the segments, the packet including the memory address of the closest match between the difference signal value and the stored difference values, the predicted gain and the pitch values for each voice segment; and
output means further for providing a negotiation packet sent to determine the compression rate.

Description

FIELD OF THE INVENTION

The present invention relates to communications systems and in particular to modem communications having simultaneous digitized voice and data capabilities.

BACKGROUND OF THE INVENTION

Simultaneous voice and modem data transmitted over the same communications link between two sites has been accomplished in several ways. The most common communications link used between two sites is the telephone line. The most common data handling equipment to communicate over a communications link is the computer modem which modulates digital data onto a carrier for transmission in the voice band of the telephone line. A wide variety of modulation standards have been promulgated by such international groups as the CCITT for communication in the voice band. The data bandwidth for such modulation standards is typically fixed and the throughput rate of data is also assumed to be fixed.

In some modulations standards, there are provisions for changing the modulation data rate based on the quality of the communications link. For example, in a noisy telephone line, a 9600 baud modulation rate may have such a high bit error rate that the modulation must be changed to a 2400 baud connection. This is done in a handshake communication protocol between the two sites when the communications link simply cannot support the higher rate.

There is a need in the art, however, for an efficient and cost effective way of maximizing bandwidth over the communications link between two sites to enable the simultaneous transmission of voice and data. There is a need, therefore, to negotiate the data bandwidth between the sites, negotiate the compression rate for the voice compression algorithms used to compress the voice and there is a need to allocate and reallocate the ratio of compress voice to digital data transmitted over the communications link.

SUMMARY OF THE INVENTION

The present invention solves the aforementioned problems and shortcoming of the existing art and solves other problems not listed above which will become apparent to those skilled in the art upon reading and understanding the present specification and claims. The present invention describes a voice over data modem which allows the operator to simultaneously transmit voice and data communication to a remote site. This voice over data function dynamically allocates data bandwidth over the telephone line depending on the demands of the voice grade digitized signal and the modulation speed of the communication link between the two sites.

The present invention includes software and hardware components to enable digital data communication over standard telephone lines. The present invention converts analog voice signals to digital data, compresses that data and places the compressed speech data into packets for transfer over the telephone lines to a remote site. A voice control digital signal processor (DSP) operates to use one of a plurality of speech compression algorithms which produce a scaleable amount of compression. The rate of compression is inversely proportional to the quality of the speech the compression algorithm is able to reproduce. The higher the compression, the lower the reproduction quality. The selection of the rate of compression is dependant on such factors as the speed or data bandwidth on the communications connection between the two sites, the data demand between the sites and amount of silence detected in the speech signal. The voice compression rate is dynamically changed as the aforementioned factors change. A negotiation handshake protocol is described which enables the two sites to negotiate the compression rate based on such factors.

DESCRIPTION OF THE DRAWINGS

In the drawings, where like numerals describe like components throughout the several views,

FIG. 1 shows the telecommunications environment within which the present may operate in several of the possible modes of communication;

FIG. 2 is a block diagram of the hardware components of the present system;

FIG. 3 is a detailed function flow diagram of the speech compression algorithm;

FIG. 4 is a detailed function flow diagram of the speech decompression algorithm;

FIG. 5 is a signal flow diagram of the speech compression algorithm;

FIG. 6 is a signal flow diagram of the speech compression algorithm showing details of the code book synthesis; and

FIG. 7 is a detailed function flow diagram of the voice/data multiplexing function.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The specification for the multiple inventions described herein includes the present description, the drawings and a microfiche appendix. In the following detailed description of the preferred embodiment, reference is made to the accompanying drawings which form a part hereof, and in which is shown by way of illustration specific embodiments in which the inventions may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention, and it is to be understood that other embodiments may be utilized and that structural changes may be made without departing from the spirit and scope of the present inventions. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present inventions is defined by the appended claims.

FIG. 1 shows a typical arrangement for the use of the present system. Personal computer 10 is running the software components of the present system while the hardware components 20 include the data communication equipment and telephone headset. Hardware components 20 communicate over a standard telephone line 30 to one of a variety of remote sites. One of the remote sites may be equipped with the present system including hardware components 20a and software components running on personal computer 10a. In one alternative use, the local hardware components 20 may be communicating over standard telephone line 30 to facsimile machine 60. In another alternative use, the present system may be communicating over a standard telephone line 30
to another personal computer 80 through a remote modem 70. In another alternative use, the present system may be communicating over a standard telephone line 30 to a standard telephone 90. Those skilled in the art will readily recognize the wide variety of communication interconnections possible with the present system by reading and understanding the following detailed description.

The ornamental features of the hardware components 20 of FIG. 1 are claimed as part of Design Patent Application Number 29/001368, filed Nov. 12, 1992 entitled "Telephone/Modem case for a Computer-Based Multifunction Personal Communications System" assigned to the same assignee of the present inventions and hereby incorporated by reference.

General Overview

The present inventions are embodied in a commercial product by the assignee, MultiTech Systems, Inc. The software component operating on a personal computer is sold under the commercial trademark of MultiExpressPCS.TM. personal communications software while the hardware component of the present system is sold under the commercial name of MultiModemPCS.TM., Intelligent Personal Communications System Modem. In the preferred embodiment, the software component runs under Microsoft.RTM. Windows.TM. however those skilled in the art will readily recognize that the present system is easily adaptable to run under any single or multi-user, single or multi-window operating system.

The present system is a multifunction communication system which includes hardware and software components. The system allows the user to connect to remote locations equipped with a similar system or with modems, facsimile machines or standard telephones over a single analog telephone line. The software component of the present system includes a number of modules which are described in more detail below.

The telephone module allows the system to operate as a conventional or sophisticated telephone system. The system converts voice into a digital signal so that it can be transmitted or stored with other digital data, like computer information. The telephone function supports PBX and Centrex features such a call waiting, call forwarding, caller ID and three-way calling. This module also allows the user to mute, hold or record a conversation. The telephone module enables the handset, headset or hands-free speaker telephone operation of the hardware component. It includes on-screen push button dialing, speed-dial of stored numbers and digital recording of two-way conversations.

The voice mail portion of the present system allows this system to operate as a telephone answering machine by storing voice messages as digitized voice files along with a time/date voice stamp. The digitized voice files can be saved and sent to one or more destinations immediately or at a later time using a queue scheduler. The user can also listen to, forward or edit the voice messages which have been received with a powerful digital voice editing component of the present system. This module also creates queues for outgoing messages to be sent at preselected times and allows the users to create outgoing messages with the voice editor.

The fax manager portion of the present system is a queue for incoming and outgoing facsimile pages. In the preferred embodiment of the present system, this function is tied into the Windows "print" command once the present system has been installed. This feature allows the user to create faxes from any Windows.RTM.-based document that uses the "print" command. The fax manager function of the present system allows the user to view queued faxes which are to be sent or which have been received. This module creates queues for outgoing faxes to be sent at preselected times and logs incoming faxes with time/date stamps.

The multi-media mail function of the present system is a utility which allows the user to compose documents that include text, graphics and voice messages using the message composer function of the present system, described more fully below. The multi-media mail utility of the present system allows the user to schedule messages for transmittal and queues up the messages that have been received so that can be viewed at a later time.

The show and tell function of the present system allows the user to establish a data over voice (DOV) communications session. When the user is transmitting data to a remote location similarly equipped, the user is able to talk to the person over the telephone line while concurrently transferring the data. This voice over data function is accomplished in the hardware components of the present system. It digitizes the voice and transmits it in a dynamically changing allocation of voice data and digital data multiplexed in the same transmission. The allocation at a given moment is selected depending on the amount of voice digital information required to be transferred. Quiet voice intervals allocate greater space to the digital data transmission.

The terminal function of the present system allows the user to establish a data communications session with another computer which is equipped with a modem but which is not equipped with the present system. This feature of the present system is a Windows.TM.-based data communications program that reduces the need for issuing "AT" commands by providing menu driven and "pop-up" window alternatives.

The address book function of the present system is a database that is accessible from all the other functions of the present system. This database is created by the user inputting destination addresses and telephone numbers for data communication, voice mail, facsimile transmission, modem communication and the like. The address book function of the present system may be utilized to broadcast communications to a wide variety of recipients. Multiple linked databases have separate address books for different groups and different destinations may be created by the users. The address book function includes a textual search capability which allows fast and efficient location of specific addresses as described more fully below.

Hardware Components

FIG. 2 is a block diagram of the hardware components of the present system corresponding to reference number 20 of FIG. 1. These components form the link between the user, the personal computer running the software component of the present system and the telephone line interface. As will be more fully described below, the interface to the hardware components of the present system is via a serial communications port connected to the personal computer. The interface protocol is well ordered and defined such that other software systems or programs running on the personal computer may be designed and implemented which would be capable of controlling the hardware components shown in FIG. 2 by using the control and communications protocol defined below.

In the preferred embodiment of the present system, three alternate telephone interfaces are available: the telephone handset 301, a telephone headset 302, and a hands-free microphone 303 and speaker 304. Regardless of the telephone interface, the three alternative interfaces connect to the digital telephone coder-decoder (CODEC) circuit 305.

The digital telephone CODEC circuit 305 interfaces with the voice control digital signal processor (DSP) circuit 306 which includes a voice control DSP and CODEC. This circuit does digital to analog (D/A) conversion, analog to digital (A/D) conversion, coding/decoding, gain control and is the interface between the voice control DSP circuit 306 and the telephone interface. The CODEC of the voice control circuit 306 transfers digitized voice information in a compressed format to multiplexor circuit 310 to analog telephone line interface 309.

The CODEC of the voice control circuit 306 is actually an integral component of a voice control digital signal processor integrated circuit, as described more fully below. The voice control DSP of circuit 306 controls the digital telephone CODEC circuit 305, performs voice compression and echo cancellation.

Multiplexor (MUX) circuit 310 selects between the voice control DSP circuit 306 and the data pump DSP circuit 311 for transmission of information on the telephone line through telephone line interface circuit 309.

The data pump circuit 311 also includes a digital signal processor (DSP) and a CODEC for communicating over the telephone line interface 309 through MUX circuit 310. The data pump DSP and CODEC of circuit 311 performs functions such as modulation, demodulation and echo cancellation to communicate over the telephone line interface 309 using a plurality of telecommunications standards including FAX and modem protocols.

The main controller circuit 313 controls the DSP data pump circuit 311 and the voice control DSP circuit 306 through serial input/output and clock timer control (SIO/CTC) circuits 312 and dual port RAM circuit 308 respectively. The main controller circuit 313 communicates with the voice control DSP 306 through dual port RAM circuit 308. In this fashion digital voice data can be read and written simultaneously to the memory portions of circuit 308 for high speed communication between the user (through interfaces 301, 302 or 303/304) and the personal computer connected to serial interface circuit 315 and the remote telephone connection connected through the telephone line attached to line interface circuit 309.

As described more fully below, the main controller circuit 313 includes, in the preferred embodiment, a microprocessor which controls the functions and operation of all of the hardware components shown in FIG. 2. The main controller is connected to RAM circuit 316 and an programmable and electrically erasable read only memory (EEPROM) circuit 317. The EEPROM circuit 317 includes non-volatile memory in which the executable control programs for the voice control DSP circuits 306 and the main controller circuits 313 operate.

The RS232 serial interface circuit 315 communicates to the serial port of the personal computer which is running the software components of the present system. The RS232 serial interface circuit 315 is connected to a serial input/output circuit
314 with main controller circuit 313. SIO circuit 314 is in the preferred embodiment, a part of SIO/CTC circuit 312.

Functional Operation of the Hardware Components

Referring once again to FIG. 2, the multiple and selectable functions described in conjunction with FIG. 2 are all implemented in the hardware components of FIG. 2. Each of these functions will be discussed in turn.

The telephone function 115 is implemented by the user either selecting a telephone number to be dialed from the address book 127 or manually selecting the number through the telephone menu on the personal computer. The telephone number to be dialed is downloaded from the personal computer over the serial interface and received by main controller 313. Main controller 313 causes the data pump DSP circuit 311 to seize the telephone line and transmit the DTMF tones to dial a number. DSP 306
receives commands from the personal computer via main controller 313 to configure the digital telephone CODEC circuit 305 to enable either the handset 301 operation, the microphone 303 and speaker 304 operation or the headset 302 operation. A telephone connection is established through the telephone line interface circuit 309 and communication is enabled. The user's analog voice is transmitted in an analog fashion to the digital telephone CODEC 305 where it is digitized. The digitized voice patterns are passed to the voice control circuit 306 where echo cancellation is accomplished, the digital voice signals are reconstructed into analog signals and passed through multiplexor circuit 310 to the telephone line interface circuit 309 for analog transmission over the telephone line. The incoming analog voice from the telephone connection through telephone connection circuit 309 is passed to the integral CODEC of the voice control circuit 306 where it is digitized. The digitized incoming voice is then passed to digital telephone CODEC circuit 305 where it is reconverted to an analog signal for transmission to the selected telephone interface (either the handset 301, the microphone/speaker 303/304 or the headset 302). Voice Control DSP circuit
306 is programmed to perform echo cancellation to avoid feedback and echoes between transmitted and received signals, as is more fully described below.

In the voice mail function mode of the present system, voice messages may be stored for later transmission or the present system may operate as an answering machine receiving incoming messages. For storing digitized voice, the telephone interface is used to send the analog speech patterns to the digital telephone CODEC circuit 305. Circuit 305 digitizes the voice patterns and passes them to voice control circuit 306 where the digitized voice patterns are digitally compressed. The digitized and compressed voice patterns are passed through dual port ram circuit 308 to the main controller circuit 313 where they are transferred through the serial interface to the personal computer using a packet protocol defined below. The voice patterns are then stored on the disk of the personal computer for later use in multi-media mail, for voice mail, as a pre-recorded answering machine message or for later predetermined transmission to other sites.

For the present system to operate as an answering machine, the hardware components of FIG. 2 are placed in answer mode. An incoming telephone ring is detected through the telephone line interface circuit 309 and the main controller circuit 313
is alerted which passes the information off to the personal computer through the RS232 serial interface circuit 315. The telephone line interface circuit 309 seizes the telephone line to make the telephone connection. A pre-recorded message may be sent by the personal computer as compressed and digitized speech through the RS232 interface to the main controller circuit 313. The compressed and digitized speech from the personal computer is passed from main controller circuit 313 through dual port ram circuit 308 to the voice control DSP circuit 306 where it is uncompressed and converted to analog voice patterns. These analog voice patterns are passed through multiplexor circuit 310 to the telephone line interface 309 for transmission to the caller. Such a message may invite the caller to leave a voice message at the sound of a tone. The incoming voice messages are received through telephone line interface 309 and passed to voice control circuit 306. The analog voice patterns are digitized by the integral CODEC of voice control circuit 306 and the digitized voice patterns are compressed by the voice control DSP of the voice control circuit 306. The digitized and compressed speech patterns are passed through dual port ram circuit 308 to the main controller circuit 313 where they are transferred using packet protocol described below through the RS232 serial interface 315 to the personal computer for storage and later retrieval. In this fashion the hardware components of FIG. 2 operate as a transmit and receive voice mail system for implementing the voice mail function 117 of the present system.

The hardware components of FIG. 2 may also operate to facilitate the fax manager function 119 of FIG. 2. In fax receive mode, an incoming telephone call will be detected by a ring detect circuit of the telephone line interface 309 which will alert the main controller circuit 313 to the incoming call. Main controller circuit 313 will cause line interface circuit 309 to seize the telephone line to receive the call. Main controller circuit 313 will also concurrently alert the operating programs on the personal computer through the RS232 interface using the packet protocol described below. Once the telephone line interface seizes the telephone line, a fax carrier tone is transmitted and a return tone and handshake is received from the telephone line and detected by the data pump circuit 311. The reciprocal transmit and receipt of the fax tones indicates the imminent receipt of a facsimile transmission and the main controller circuit 313 configures the hardware components of FIG. 2
for the receipt of that information. The necessary handshaking with the remote facsimile machine is accomplished through the data pump 311 under control of the main controller circuit 313. The incoming data packets of digital facsimile data are received over the telephone line interface and passed through data pump circuit 311 to main controller circuit 313 which forwards the information on a packet basis (using the packet protocol described more fully below) through the serial interface circuit 315 to the personal computer for storage on disk. Those skilled in the art will readily recognize that the FAX data could be transferred from the telephone line to the personal computer using the same path as the packet transfer except using the normal AT stream mode. Thus the incoming facsimile is automatically received and stored on the personal computer through the hardware components of FIG. 2.

A facsimile transmission is also facilitated by the hardware components of FIG. 2. The transmission of a facsimile may be immediate or queued for later transmission at a predetermined or preselected time. Control packet information to configure the hardware components to send a facsimile are sent over the RS232 serial interface between the personal computer and the hardware components of FIG. 2 and are received by main controller circuit 313. The data pump circuit 311 then dials the recipient's telephone number using DTMF tones or pulse dialing over the telephone line interface circuit 309. Once an appropriate connection is established with the remote facsimile machine, standard facsimile handshaking is accomplished by the data pump circuit 311. Once the facsimile connection is established, the digital facsimile picture information is received through the data packet protocol transfer over serial line interface circuit 315, passed through main controller circuit 313 and data pump circuit 311 onto the telephone line through telephone line interface circuit 309 for receipt by the remote facsimile machine.

The operation of the multi-media mail function 121 of FIG. 2 is also facilitated by the hardware components of FIG. 2. A multimedia transmission consists of a combination of picture information, digital data and digitized voice information. For example, the type of multimedia information transferred to a remote site using the hardware components of FIG. 2 could be the multimedia format of the MicroSoft.RTM. Multimedia Wave.RTM. format with the aid of an Intelligent Serial Interface (ISI) card added to the personal computer. The multimedia may also be the type of multimedia information assembled by the software component of the present system which is described more fully below.

The multimedia package of information including text, graphics and voice messages (collectively called the multimedia document) may be transmitted or received through the hardware components shown in FIG. 2. For example, the transmission of a multimedia document through the hardware components of FIG. 2 is accomplished by transferring the multimedia digital information using the packet protocol described below over the RS232 serial interface between the personal computer and the serial line interface circuit 315. The packets are then transferred through main controller circuit 313 through the data pump circuit 311 on to the telephone line for receipt at a remote site through telephone line interface circuit 309. In a similar fashion, the multimedia documents received over the telephone line from the remote site are received at the telephone line interface circuit 309, passed through the data pump circuit 311 for receipt and forwarding by the main controller circuit 313 over the serial line interface circuit 315.

The show and tell function 123 of the present system allows the user to establish a data over voice communication session. In this mode of operation, full duplex data transmission may be accomplished simultaneously with the voice communication between both sites. This mode of operation assumes a like-configured remote site. The hardware components of the present system also include a means for sending voice/data over cellular links. The protocol used for transmitting multiplexed voice and data include a supervisory packet described more fully below to keep the link established through the cellular link. This supervisory packet is an acknowledgement that the link is still up. The supervisory packet may also contain link information to be used for adjusting various link parameters when needed. This supervisory packet is sent every second when data is not being sent and if the packet is not acknowledged after a specified number of attempts, the protocol would then give an indication that the cellular link is down and then allow the modem to take action. The action could be for example; change speeds, retrain, or hang up. The use of supervisory packets is a novel method of maintaining inherently intermittent cellular links when transmitting multiplexed voice and data.

The voice portion of the voice over data transmission of the show and tell function is accomplished by receiving the user's voice through the telephone interface 301, 302 or 303 and the voice information is digitized by the digital telephone circuit 305. The digitized voice information is passed to the voice control circuit 306 where the digitized voice information is compressed using a voice compression algorithm described more fully below. The digitized and compressed voice information is passed through dual port RAM circuit 308 to the main controller circuit 313. During quiet periods of the speech, a quiet flag is passed from voice control circuit 306 to the main controller 313 through a packet transfer protocol described below by a dual port RAM circuit 308.

Simultaneous with the digitizing compression and packetizing of the voice information is the receipt of the packetized digital information from the personal computer over interface line circuit 315 by main controller circuit 313. Main controller circuit 313 in the show and tell function of the present system must efficiently and effectively combine the digitized voice information with the digital information for transmission over the telephone line via telephone line interface circuit 309. As described above and as described more fully below, main controller circuit 313 dynamically changes the amount of voice information and digital information transmitted at any given period of time depending upon the quiet times during the voice transmissions. For example, during a quiet moment where there is no speech information being transmitted, main controller circuit 313 ensures that a higher volume of digital data information be transmitted over the telephone line interface in lieu of digitized voice information.

Also, as described more fully below, the packets of digital data transmitted over the telephone line interface with the transmission packet protocol described below, requires 100 percent accuracy in the transmission of the digital data, but a lesser standard of accuracy for the transmission and receipt of the digitized voice information. Since digital information must be transmitted with 100 percent accuracy, a corrupted packet of digital information received at the remote site must be re-transmitted. A retransmission signal is communicated back to the local site and the packet of digital information which was corrupted during transmission is retransmitted. If the packet transmitted contained voice data, however, the remote site uses the packets whether they were corrupted or not as long as the packet header was intact. If the header is corrupted, the packet is discarded. Thus, the voice information may be corrupted without requesting retransmission since it is understood that the voice information must be transmitted on a real time basis and the corruption of any digital information of the voice signal is not critical. In contrast to this the transmission of digital data is critical and retransmission of corrupted data packets is requested by the remote site.

The transmission of the digital data follows the CCITT V.42 standard, as is well known in the industry and as described in the CCITT Blue Book, volume VIII entitled Data Communication over the Telephone Network, 1989. The CCITT V.42 standard is hereby incorporated by reference. The voice data packet information also follows the CCITT V.42 standard, but uses a different header format so the receiving site recognizes the difference between a data packet and a voice packet. The voice packet is distinguished from a data packet by using undefined bits in the header (80 hex) of the V.42 standard. The packet protocol for voice over data transmission during the show and tell function of the present system is described more fully below.

Since the voice over data communication with the remote site is full-duplex, incoming data packets and incoming voice packets are received by the hardware components of FIG. 2. The incoming data packets and voice packets are received through the telephone line interface circuit 309 and passed to the main controller circuit 313 via data pump DSP circuit 311. The incoming data packets are passed by the main controller circuit 313 to the serial interface circuit 315 to be passed to the personal computer. The incoming voice packets are passed by the main controller circuit 313 to the dual port RAM circuit 308 for receipt by the voice control DSP circuit 306. The voice packets are decoded and the compressed digital information therein is uncompressed by the voice control DSP of circuit 306. The uncompressed digital voice information is passed to digital telephone CODEC circuit 305 where it is reconverted to an analog signal and retransmitted through the telephone line interface circuits. In this fashion full-duplex voice and data transmission and reception is accomplished through the hardware components of FIG. 2 during the show and tell functional operation of the present system.

Terminal operation 125 of the present system is also supported by the hardware components of FIG. 2. Terminal operation means that the local personal computer simply operates as a "dumb" terminal including file transfer capabilities. Thus no local processing takes place other than the handshaking protocol required for the operation of a dumb terminal. In terminal mode operation, the remote site is assumed to be a modem connected to a personal computer but the remote site is not necessarily a site which is configured according to the present system. In terminal mode of operation, the command and data information from personal computer is transferred over the RS232 serial interface circuit 315, forwarded by main controller circuit 313 to the data pump circuit 311 where the data is placed on the telephone line via telephone line interface circuit 309.

In a reciprocal fashion, data is received from the telephone line over telephone line interface circuit 309 and simply forwarded by the data pump circuit 311, the main controller circuit 313 over the serial line interface circuit 315 to the personal computer.

As described above, and more fully below, the address book function of the present system is primarily a support function for providing telephone numbers and addresses for the other various functions of the present system.

Packet Protocol Between the PC and the Hardware Component

A special packet protocol is used for communication between the hardware components 20 and the personal computer (PC) 10. The protocol is used for transferring different types of information between the two devices such as the transfer of DATA, VOICE, and QUALIFIED information. The protocol also uses the BREAK as defined in CCITT X.28 as a means to maintain protocol synchronization. A description of this BREAK sequence is also described in the Statutory Invention Registration entitled "ESCAPE METHODS FOR MODEM COMMUNICATIONS", to Timothy D. Gunn filed Jan. 8, 1993, which is hereby incorporated by reference.

The protocol has two modes of operation. One mode is packet mode and the other is stream mode. The protocol allows mixing of different types of information into the data stream without having to physically switch modes of operation. The hardware component 20 will identify the packet received from the computer 10 and perform the appropriate action according to the specifications of the protocol. If it is a data packet, then the controller 313 of hardware component 20 would send it to the data pump circuit 311. If the packet is a voice packet, then the controller 313 of hardware component 20 would distribute that information to the Voice DSP 306. This packet transfer mechanism also works in the reverse, where the controller 313 of hardware component 20 would give different information to the computer 10 without having to switch into different modes. The packet protocol also allows commands to be sent to either the main controller 313 directly or to the Voice DSP 306 for controlling different options without having to enter a command state.

Packet mode is made up of 8 bit asynchronous data and is identified by a beginning synchronization character (01 hex) followed by an ID/LI character and then followed by the information to be sent. In addition to the ID/LI character codes defined below, those skilled in the art will readily recognize that other ID/LI character codes could be defined to allow for additional types of packets such as video data, or alternate voice compression algorithm packets such as Codebook Excited Linear Predictive Coding (CELP) algorithm, GSM, RPE, VSELP, etc.

Stream mode is used when large amounts of one type of packet (VOICE, DATA, or QUALIFIED) is being sent. The transmitter tells the receiver to enter stream mode by a unique command. Thereafter, the transmitter tells the receiver to terminate stream mode by using the BREAK command followed by an "AT" type command. The command used to terminate the stream mode can be a command to enter another type of stream mode or it can be a command to enter back into packet mode.

Currently there are 3 types of packets used: DATA, VOICE, and QUALIFIED. Table 1 shows the common packet parameters used for all three packet types. Table 2 shows the three basic types of packets with the sub-types listed.

TABLE 1 ______________________________________ Packet Parameters ______________________________________ 1. Asynchronous transfer 2. 8 bits, no parity 3. Maximum packet length of 128 bytes IDentifier byte = 1 InFormation = 127 4. SPEED variable from 9600 to 57600 default to 19200 ______________________________________

TABLE 2 ______________________________________ Packet Types ______________________________________ 1. Data 2. Voice 3. Qualified: a. COMMAND b. RESPONSE c. STATUS d. FLOW CONTROL e. BREAK f. ACK g. NAK h. STREAM ______________________________________

A Data Packet is shown in Table 1 and is used for normal data transfer between the controller 313 of hardware component 20 and the computer 10 for such things as text, file transfers, binary data and any other type of information presently being sent through modems. All packet transfers begin with a synch character 01 hex (synchronization byte). The Data Packet begins with an ID byte which specifies the packet type and packet length. Table 3 describes the Data Packet byte structure and Table
4 describes the bit structure of the ID byte of the Data Packet. Table 5 is an example of a Data Packet with a byte length of 6. The value of the LI field is the actual length of the data field to follow, not counting the ID byte.

TABLE 3 ______________________________________ Data Packet Byte Structure ______________________________________ ##STR1## ##STR2## ______________________________________

TABLE 4 ______________________________________ ID Byte of Data Packet ______________________________________ ##STR3## ##STR4## ______________________________________

TABLE 5 ______________________________________ Data Packet Example ______________________________________ LI (length indicator) = 6 ##STR5## ______________________________________

The Voice Packet is used to transfer compressed VOICE messages between the controller 313 of hardware component 20 and the computer 10. The Voice Packet is similar to the Data Packet except for its length which is, in the preferred embodiment, currently fixed at 23 bytes of data. Once again, all packets begin with a synchronization character chosen in the preferred embodiment to be 01 hex (01 H). The ID byte of the Voice Packet is completely a zero byte: all bits are set to zero. Table 6
shows the ID byte of the Voice Packet and Table 7 shows the Voice Packet byte structure.

TABLE 6 ______________________________________ ID Byte of Voice Packet ______________________________________ ##STR6## ______________________________________

TABLE 7 ______________________________________ Voice Packet Byte Structure ______________________________________ ##STR7## ##STR8## ______________________________________

The Qualified Packet is used to transfer commands and other non-data/voice related information between the controller 313 of hardware component 20 and the computer 10. The various species or types of the Qualified Packets are described below and are listed above in Table 2. Once again, all packets start with a synchronization character chosen in the preferred embodiment to be 01 hex (01 H). A Qualified Packet starts with two bytes where the first byte is the ID byte and the second byte is the QUALIFIER type identifier. Table 8 shows the ID byte for the Qualified Packet, Table 9 shows the byte structure of the Qualified Packet and Tables 10-12 list the Qualifier Type byte bit maps for the three types of Qualified Packets.

TABLE 8 ______________________________________ ID Byte of Qualified Packet ______________________________________ ##STR9## ______________________________________

The Length Identifier of the ID byte equals the amount of data which follows including the QUALIFIER byte (QUAL byte+DATA). If LI=1, then the Qualifier Packet contains the Q byte only.

TABLE 9 ______________________________________ Qualifier Packet Byte Structure ______________________________________ ##STR10## ______________________________________

The bit maps of the Qualifier Byte (QUAL BYTE) of the Qualified Packet are shown in Tables 10-12. The bit map follows the pattern whereby if the QUAL byte=0, then the command is a break. Also, bit 1 of the QUAL byte designates ack/nak, bit 2
designates flow control and bit 6 designates stream mode command. Table 10 describes the Qualifier Byte of Qualified Packet, Group 1 which are immediate commands. Table 11 describes the Qualifier Byte of Qualified Packet, Group 2 which are stream mode commands in that the command is to stay in the designated mode until a BREAK+INIT command string is sent. Table 12 describes the Qualifier Byte of Qualified Packet, Group 3 which are information or status commands.

TABLE 10 ______________________________________ Qualifier Byte of Qualified Packet: Group 1 ______________________________________ ##STR11## ______________________________________

TABLE 11 ______________________________________ Qualifier Byte of Qualified Packet: Group 2 ______________________________________ ##STR12## ______________________________________

The Qualifier Packet indicating stream mode and BREAK attention is used when a large of amount of information is sent (voice, data . . . ) to allow the highest throughput possible. This command is mainly intended for use in DATA mode but can be used in any one of the possible modes. To change from one mode to another, a break-init sequence would be given. A break "AT . . . <cr>" type command would cause a change in state and set the serial rate from the "AT" command.

TABLE 12 ______________________________________ Qualifier Byte of Qualified Packet: Group 3 ______________________________________ ##STR13## ______________________________________

Cellular Supervisory Packet

In order to determine the status of the cellular link, a supervisory packet shown in Table 13 is used. Both sides of the cellular link will send the cellular supervisory packet every 3 seconds. Upon receiving the cellular supervisory packet, the receiving side will acknowledge it using the ACK field of the cellular supervisory packet. If the sender does not receive an acknowledgement within one second, it will repeat sending the cellular supervisory packet up to 12 times. After 12 attempts of sending the cellular supervisory packet without an acknowledgement, the sender will disconnect the line. Upon receiving an acknowledgement, the sender will restart its 3 second timer. Those skilled in the art will readily recognize that the timer values and wait times selected here may be varied without departing from the spirit or scope of the present invention.

TABLE 13 ______________________________________ Cellular Supervisory Packet Byte Structure ______________________________________ ##STR14## ______________________________________

Speech Compression

The Speech Compression algorithm described above for use in transmitting voice over data accomplished via the voice control circuit 306. Referring once again to FIG. 2, the user is talking either through the handset, the headset or the microphone/speaker telephone interface. The analog voice signals are received and digitized by the telephone CODEC circuit 305. The digitized voice information is passed from the digital telephone CODEC circuit 305 to the voice control circuits 306. The digital signal processor (DSP) of the voice control circuit 306 is programmed to do the voice compression algorithm. The source code programmed into the voice control DSP is in the microfiche appendix of U.S. patent application Ser. No.
08/002,467, filed Jan. 8, 1993 entitled "COMPUTER-BASED MULTIFUNCTION PERSONAL COMMUNICATIONS SYSTEM", which was previously incorporated by reference. The DSP of the voice control circuit 306 compresses the speech and places the compressed digital representations of the speech into special packets described more fully below. As a result of the voice compression algorithm, the compressed voice information is passed to the dual port ram circuit 308 for either forwarding and storage on the disk of the personal computer via the RS232 serial interface or for multiplexing with conventional modem data to be transmitted over the telephone line via the telephone line interface circuit 309 in the voice-over-data mode of operation Show and Tell function
123. The compressed speech bits are multiplexed with data bits using a packet format described below. Three compression rates are described herein which will be called 8 Kbit/sec, 9.6 Kbit/sec and 16 Kbit/sec.

Speech Compression Algorithm

To multiplex high-fidelity speech with digital data and transmit both over the telephone line, a high available bandwidth would normally be required. In the present invention, the analog voice information is digitized into 8-bit PCM data at an 8
KHz sampling rate producing a serial bit stream of 64,000 bps serial data rate. This rate cannot be transmitted over the telephone line. With the Speech Compression algorithm described below, the 64 Kbs digital voice data is compressed into a 9500 bps encoding bit stream using a fixed-point (non-floating point) DSP such that the compressed speech can be transmitted over the telephone line multiplexed with asynchronous data. This is accomplished in an efficient manner such that enough machine cycles remain during real time speech compression to allow to allow for echo cancellation in the same fixed-point DSP.

A silence detection function is used to detect quiet intervals in the speech signal which allows the data processor to substitute asynchronous data in lieu of voice data packets over the telephone line to efficiently time multiplex the voice and asynchronous data transmission. The allocation of time for asynchronous data transmission is constantly changing depending on how much silence is on the voice channel.

The voice compression algorithm of the present system relies on a model of human speech which shows that human speech contains redundancy inherent in the voice patterns. Only the incremental innovations (changes) need to be transmitted. The algorithm operates on 128 digitized speech samples (20 milliseconds at 6400 Hz), divides the speech samples into time segments of 32 samples (5 milliseconds) each, and uses predicted coding on each segment. Thus, the input to the algorithm could be either PCM data sampled at 6400 Hz or 8000 Hz. If the sampling is at 8000 Hz, or any other selected sampling rate, the input sample data stream must be decimated from 8000 Hz to 6400 Hz before processing the speech data. At the output, the 6400 Hz PCM signal is interpolated back to 8000 Hz and passed to the CODEC.

With this algorithm, the current segment is predicted as best as possible based on the past recreated segments and a difference signal is determined. The difference values are compared to the stored difference values in a lookup table or code book, and the address of the closest value is sent to the remote site along with the predicted gain and pitch values for each segment. In this fashion, the entire 20 milliseconds of speech can be represented by 190 bits, thus achieving an effective data rate of 9500 bps.

To produce this compression, the present system includes a unique Vector Quantization (VQ) speech compression algorithm designed to provide maximum fidelity with minimum compute power and bandwidth. The VQ algorithm has two major components. The first section reduces the dynamic range of the input speech signal by removing short term and long term redundancies. This reduction is done in the waveform domain, with the synthesized part used as the reference for determining the incremental "new" content. The second section maps the residual signal into a code book optimized for preserving the general spectral shape of the speech signal.

FIG. 3 is a high level signal flow block diagram of the speech compression algorithm used in the present system to compress the digitized voice for transmission over the telephone line in the voice over data mode of operation or for storage and use on the personal computer. The transmitter and receiver components are implemented using the programmable voice control DSP/CODEC circuit 306 shown in FIG. 2.

The DC removal stage 1101 receives the digitized speech signal and removes the D.C. bias by calculating the long-term average and subtracting it from each sample. This ensures that the digital samples of the speech are centered about a zero mean value. The pre-emphasis stage 1103 whitens the spectral content of the speech signal by balancing the extra energy in the low band with the reduced energy in the high band.

The system finds the innovation in the current speech segment by subtracting 1109 the prediction from reconstructed past samples synthesized from synthesis stage 1107. This process requires the synthesis of the past speech samples locally (analysis by synthesis). The synthesis block 1107 at the transmitter performs the same function as the synthesis block 1113 at the receiver. When the reconstructed previous segment of speech is subtracted from the present segment (before prediction), a difference term is produced in the form of an error signal. This residual error is used to find the best match in the code book 1105. The code book 1105 quantizes the error signal using a code book generated from a representative set of speakers and environments. A minimum mean squared error match is determined in segments. In addition, the code book is designed to provide a quantization error with spectral rolloff (higher quantization error for low frequencies and lower quantization error for higher frequencies). Thus, the quantization noise spectrum in the reconstructed signal will always tend to be smaller than the underlying speech signal.

The following description will specifically explain the algorithm for the 9.6 Kbit/sec compression rate, except where specifically stated otherwise. The discussion is applicable to the other compression rates by substituting the parameter values found in Table 14, below, and by following the special instructions for each calculation provided throughout the discussion.

TABLE 14 ______________________________________ Speech Compression Algorithm Parameters For Three Voice Compression Rates Parameter 16Kbit/sec 9.6Kbit/sec 8Kbit/sec ______________________________________ Input Samples 160 (20 msec) 160
(20 msec) 192 (24 msec) (msecs @ 8Ksample/sec) Decimaled Samples 160 (20 msec) 128 (20 msec) 144 (24 msec) (msec) @ rate @ 8Ksample/ @ 6.4Ksam- 6Ksample/ sec ple/sec sec Sub-Block Size 40 32 36 Min.sub.-- Pitch 40 32 36 Max.sub.-- Pitch
160 95 99 Codebook Size 256 512 512 Vector Size 5 8 9 (VSIZE) # of compressed 40 24 24 bytes .rho. 0.75 0.5 0.5 ______________________________________

9.6 Kbit/sec Compression Rate Algorithm

For the 9.6 Kbit/sec speech compression rate, each frame of 20 ms is divided into 4 sub-blocks or segments of 5 ms each. Each sub-block of data consists of a plurality of bits for the long term predictor, a plurality of bits for the long term predictor gain, a plurality of bits for the sub-block gain, and a plurality of bits for each code book entry for each 5 ms. In the code book block, each 1.25 ms of speech is looked up in a 512 word code book for the best match. The table entry is transmitted rather than the actual samples. The code book entries are pre-computed from representative speech segments, as described more fully below.

On the receiving end 1200, the synthesis block 1113 at the receiver performs the same function as the synthesis block 1107 at the transmitter. The synthesis block 1113 reconstructs the original signal from the voice data packets by using the gain and pitch values and code book address corresponding to the error signal most closely matched in the code book. The code book at the receiver is similar to the code book 1105 in the transmitter. Thus the synthesis block recreates the original pre-emphasized signal. The de-emphasis stage 1115 inverts the pre-emphasis operation by restoring the balance of original speech signal.

The complete speech compression algorithm is summarized as follows:

a) Digitally sample the voice to produce a PCM sample bit stream sampled at 8,000 samples per second.

b) Decimate the 8,000 samples per second sampled data to produce a sampling rate of 6,400 samples per second for the 9.6 Kbit/sec compression rate (6,000 samples per second for the 8 Kbit/sec algorithm and 8,000 samples per second for the 16
Kbit/sec algorithm).

c) Remove any D.C. bias in the speech signal.

d) Pre-emphasize the signal.

e) Find the innovation in the current speech segment by subtracting the prediction from reconstructed past samples. This step requires the synthesis of the past speech samples locally (analysis by synthesis) such that the residual error is fed back into the system.

f) Quantize the error signal using a code book generated from a representative set of speakers and environments. A minimum mean squared error match is determined in 5 ms segments. In addition, the code book is designed to provide a quantization error with spectral rolloff (higher quantization error for low frequencies and lower quantization error for higher frequencies). Thus, the quantization noise spectrum in the reconstructed signal will always tend to be smaller than the underlying speech signal.

g) At the transmitter and the receiver, reconstruct the speech from the quantized error signal fed into the inverse of the function in step (e) above. Use this signal for analysis by synthesis and for the output to the reconstruction stage below.

h) Use a de-emphasis filter to reconstruct the output.

The major advantages of this approach over other low-bit-rate algorithms are that there is no need for any complicated calculation of reflection coefficients (no matrix inverse or lattice filter computations). Also, the quantization noise in the output speech is hidden under the speech signal and there are no pitch tracking artifacts: the speech sounds "natural", with only minor increases of background hiss at lower bit-rates. The computational load is reduced significantly compared to a VSELP algorithm and variations of the present algorithm thus provides bit rates of 8, 9.6 and 16 Kbit/sec, and can also provide bit rates of 9.2 Kbit/sec, 9.5 Kbit/sec and many other rates. The total delay through the analysis section is less than 20
milliseconds in the 9.6 Kbit/sec embodiment. The present algorithm is accomplished completely in the waveform domain and there is no spectral information being computed and there is no filter computations needed.

Detailed Description of the Speech Compression Algorithm

The speech compression algorithm is described in greater detail with reference to FIGS. 4 through 7, and with reference to the block diagram of the hardware components of the present system shown at FIG. 2. The voice compression algorithm operates within the programmed control of the voice control DSP circuit 306. In operation, the speech or analog voice signal is received through the telephone interface 301, 302 or 303 and is digitized by the digital telephone CODEC circuit 305. The CODEC for circuit 305 is a companding .mu.-law CODEC. The analog voice signal from the telephone interface is band-limited to about 3,000 Hz and sampled at a selected sampling rate by digital telephone CODEC 305. The sample rates in the 9.6 Kbit/sec embodiment of the present invention are 8 Ksample/sec. Each sample is encoded into 8-bit PCM data producing a serial 64 kb/s. The digitized samples are passed to the voice control DSP/CODEC of circuit 306. There, the 8-bit .mu.-law PCM data is converted to 13-bit linear PCM data. The 13-bit representation is necessary to accurately represent the linear version of the logarithmic 8-bit .mu.-law PCM data. With linear PCM data, simpler mathematics may be performed on the PCM data.

The voice control DSP/CODEC of circuit 306 correspond to the single integrated circuit U8 shown in FIGS. 9A and 9B as a WE.RTM. DSP16C Digital Signal Processor/CODEC from AT&T Microelectronics which is a combined digital signal processor and a linear CODEC in a single chip as described above. The digital telephone CODEC of circuit 305 corresponds to integrated circuit U12 shown in FIG. 9B as a T7540 companding .mu.-law CODEC.

The sampled and digitized PCM voice signals from the telephone .mu.-law CODEC 305 shown in FIG. 2 are passed to the voice control DSP/CODEC circuit 308 via direct data lines clocked and synchronized to a clocking frequency. The sample rate in CODEC 305 in this embodiment of the present invention is 8 Ksample/sec. The digital samples are loaded into the voice control DSP/CODEC one at a time through the serial input and stored into an internal queue held in RAM, converted to linear PCM data and decimated to a sample rate of 6.4 Ksample/sec. As the samples are loaded into the end of the queue in the RAM of the voice control DSP, the samples at the head of the queue are operated upon by the voice compression algorithm. The voice compression algorithm then produces a greatly compressed representation of the speech signals in a digital packet form. The compressed speech signal packets are then passed to the dual port RAM circuit 308 shown in FIG. 2 for use by the main controller circuit 313
for either transferring in the voice-over-data mode of operation or for transfer to the personal computer for storage as compressed voice for functions such as telephone answering machine message data, for use in the multi-media documents and the like.

In the voice-over-data mode of operation, voice control DSP/CODEC circuit 306 of FIG. 2 will be receiving digital voice PCM data from the digital telephone CODEC circuit 305, compressing it and transferring it to dual port RAM circuit 308 for multiplexing and transfer over the telephone line. This is the transmit mode of operation of the voice control DSP/CODEC circuit 306 corresponding to transmitter block 1100 of FIG. 3 and corresponding to the compression algorithm of FIG. 4.

Concurrent with this transmit operation, the voice control DSP/CODEC circuit 306 is receiving compressed voice data packets from dual port RAM circuit 308, uncompressing the voice data and transferring the uncompressed and reconstructed digital PCM voice data to the digital telephone CODEC 305 for digital to analog conversion and eventual transfer to the user through the telephone interface 301, 302, 304. This is the receive mode of operation of the voice control DSP/CODEC circuit 306
corresponding to receiver block 1200 of FIG. 3 and corresponding to the decompression algorithm of FIG. 5. Thus, the voice-control DSP/CODEC circuit 306 is processing the voice data in both directions in a full-duplex fashion.

The voice control DSP/CODEC circuit 306 operates at a clock frequency of approximately 24.576 MHz while processing data at sampling rates of approximately 8 KHz in both directions. The voice compression/decompression algorithms and packetization of the voice data is accomplished in a quick and efficient fashion to ensure that all processing is done in real-time without loss of voice information. This is accomplished in an efficient manner such that enough machine cycles remain in the voice control DSP circuit 306 during real time speech compression to allow real time acoustic and line echo cancellation in the same fixed-point DSP.

In programmed operation, the availability of an eight-bit sample of PCM voice data from the .mu.-law digital telephone CODEC circuit 305 causes an interrupt in the voice control DSP/CODEC circuit 306 where the sample is loaded into internal registers for processing. Once loaded into an internal register it is transferred to a RAM address which holds a queue of samples. The queued PCM digital voice samples are converted from 8-bit .mu.-law data to a 13-bit linear data format using table lookup for the conversion. Those skilled in the art will readily recognize that the digital telephone CODEC circuit 305 could also be a linear CODEC.

Sample Rate Decimation

The sampled and digitized PCM voice signals from the telephone .mu.-law CODEC 305 shown in FIG. 2 are passed to the voice control DSP/CODEC circuit 308 via direct data lines clocked and synchronized to a clocking frequency. The sample rate in this embodiment of the present invention is 8 Ksample/sec. The digital samples for the 9.6 Kbit/sec and 8 Kbit/sec algorithms are decimated using a digital decimation process to produce a 6.4 Ksample/sec and 6 Ksample/sec rate, respectively. For the 16
Kbit/sec algorithm, no decimation is needed.

Referring to FIG. 3, the decimated digital samples are shown as speech entering the transmitter block 1100. The transmitter block, of course, is the mode of operation of the voice-control DSP/CODEC circuit 306 operating to receive local digitized voice information, compress it and packetize it for transfer to the main controller circuit 313 for transmission on the telephone line. The telephone line connected to telephone line interface 309 of FIG. 2 corresponds to the channel 1111 of FIG. 3.

A frame rate for the voice compression algorithm is 20 milliseconds of speech for each compression. This correlates to 128 samples to process per frame for the 6.4K decimated sampling rate. When 128 samples are accumulated in the queue of the internal DSP RAM, the compression of that sample frame is begun.

Data Flow Description

The voice-control DSP/CODEC circuit 306 is programmed to first remove the DC component 1101 of the incoming speech. The DC removal is an adaptive function to establish a center base line on the voice signal by digitally adjusting the values of the PCM data. This corresponds to the DC removal stage 1203 of the software flow chart of FIG. 4. The formula for removal of the DC bias or drift is as follows: ##EQU1## and where

n=sample number,

s(n) is the current sample, and

x(n) is the sample with the DC bias removed.

The removal of the DC is for the 20 millisecond frame of voice which amounts to 128 samples at the 6.4 Ksample/sec decimated sampling rate which corresponds to the 9.6 Kbit/sec algorithm. The selection of .alpha. is based on empirical observation to provide the best result.

Referring again to FIG. 4, the voice compression algorithm in a control flow diagram is shown which will assist in the understanding of the block diagram of FIG. 3. FIG. 6 is a simplified data flow description of the flow chart of FIG. 4 showing the sample rate decimator 1241 and the sample rate incrementor 1242. Sample rate decimator 1241 produces an output 1251 of 6.4 Ksample/sec for an 8 Ksample/sec input in the 9.6 Kbit/sec system. (Similarly, a 6 Ksample/sec output 1250 is produced for the 8 Kbit/sec algorithm, and no decimation is performed on the 8 Ksample/sec voice sample rate 1252 for the 16 Kbit/sec algorithm.) The analysis and compression begin at block 1201 where the 13-bit linear PCM speech samples are accumulated until 128
samples (for the 6.4 Ksample/sec decimated sampling rate) representing 20 milliseconds of voice or one frame of voice is passed to the DC removal portion of code operating within the programmed voice control DSP/CODEC circuit 306. The DC removal portion of the code described above approximates the base line of the frame of voice by using an adaptive DC removal technique.

A silence detection algorithm 1205 is also included in the programmed code of the DSP/CODEC 306. The silence detection function is a summation of the square of each sample of the voice signal over the frame. If the power of the voice frame falls below a preselected threshold, this would indicate a silent frame. The detection of a silence frame of speech is important for later multiplexing of the V-data (voice data) and C-data (asynchronous computer data) described below. During silent portions of the speech, the main controller circuit 313 will transfer conventional digital data (C-data) over the telephone line in lieu of voice data (V-data). The formula for computing the power is ##EQU2##

If the power PWR is lower than a preselected threshold, then the present voice frame is flagged as containing silence. The 128-sample (Decimated Samples) silent frame is still processed by the voice compression algorithm; however, the silent frame packets are discarded by the main controller circuit 313 so that asynchronous digital data may be transferred in lieu of voice data. The rest of the voice compression is operated upon in segments where there are four segments per frame amounting to 32 samples of data per segment (Sub-Block Size). It is only the DC removal and silence detection which is accomplished over an entire 20 millisecond frame.

The pre-emphasis 1207 of the voice compression algorithm shown in FIG. 4 is the next step. The sub-blocks are first passed through a pre-emphasis stage which whitens the spectral content of the speech signal by balancing the extra energy in the low band with the reduced energy in the high band. The pre-emphasis essentially flattens the signal by reducing the dynamic range of the signal. By using pre-emphasis to flatten the dynamic range of the signal, less of a signal range is required for compression making the compression algorithm operate more efficiently. The formula for the pre-emphasis is ##EQU3##

Each segment thus amounts to five milliseconds of voice which is equal to 32 samples. Pre-emphasis then is done on each segment. The selection of .rho. is based on empirical observation to provide the best result.

The next step is the long-term prediction (LTP). The long-term prediction is a method to detect the innovation in the voice signal. Since the voice signal contains many redundant voice segments, we can detect these redundancies and only send information about the changes in the signal from one segment to the next. This is accomplished by comparing the speech samples of the current segment on a sample by sample basis to the reconstructed speech samples from the previous segments to obtain the innovation information and an indicator of the error in the prediction.

The long-term predictor gives the pitch and the LTP-Gain of the sub-block which are encoded in the transmitted bit stream. In order to predict the pitch in the current segment, we need at least 3 past sub-blocks of reconstructed speech. This gives a pitch value in the range of MIN.sub.-- PITCH to MAX.sub.-- PITCH (32 and 95, respectively, as given in Table 14). This value is coded with 6-bits. But, in order to accommodate the compressed data rate within a 9600 bps link, the pitch for segments 0 and 3 is encoded with 6 bits, while the pitch for segments 1 and 2 is encoded with 5 bits. When performing the prediction of the Pitch for segments 1 and 2, the correlation lag is adjusted around the predicted pitch value of the previous segment. This gives us a good chance of predicting the correct pitch for the current segment even though the entire range for prediction is not used. The computations for the long-term correlation lag PITCH and associated LTP-gain factor .beta. j (where j=0, 1, 2, 3 corresponding to each of the four segments of the frame) are done as follows:

For j=min.sub.-- pitch . . . max.sub.-- pitch, first perform the following computations between the current speech samples x(n) and the past reconstructed speech samples x'(n) ##EQU4##

The Pitch j is chosen as that which maximizes S.sub.xx'.sup.2 /S.sub.x'x'. Since .beta. j is positive, only j with positive S.sub.xx'.sup.2 is considered.

For the 9.6 Kbit/sec and 8 Kbit/sec embodiments, the Pitch is encoded with different number of bits for each sub-segment, the value of min.sub.-- pitch and max.sub.-- pitch (range of the synthesized speech for pitch prediction of the current segment) is computed as follows: ##EQU5##

(This calculation is not necessary for the 16 Kbit/sec algorithm.) The prev.sub.-- pitch parameter in the above equation, is the of the pitch of the previous sub-segment. The pitch j is the encoded in 6 bits or 5 bits as:

The LTP-Gain is given by ##EQU6##

The value of the .beta. is a normalized quantity between zero and unity for this segment where .beta. is an indicator of the correlation between the segments. For example, a perfect sine wave would produce a .beta. which would be close to unity since the correlation between the current segments and the previous reconstructed segments should be almost a perfect match so .beta. is one. The LTP gain factor is quantized from a LTP Gain Encode Table. This table is characterized in Table 15. The resulting index (bcode) is transmitted to the far end. At the receiver, the LTP Gain Factor is retrieved from Table 16, as follows:

TABLE 15 ______________________________________ LTP Gain Encode Table ______________________________________ ##STR15## ______________________________________

TABLE 16 ______________________________________ LTP Gain Decode Table ______________________________________ ##STR16## ______________________________________

After the Long-Term Prediction, we pass the signal through a pitch filter to whiten the signal so that all the pitch effects are removed. The pitch filter is given by:

where

j is the Lag, and

.beta..sub.q is the associated Quantized LTP Gain.

Next, the error signal is normalized with respect to the maximum amplitude in the sub-segment for vector-quantization of the error signal. The maximum amplitude in the segment is obtained as follows:

The maximum amplitude (G) is encoded using the Gain Encode Table. This table is characterized in Table 17. The encoded amplitude (gcode) is transmitted to the far end. At the receiver, the maximum amplitude is retrieved from Table 18, as follows:

The error signal e(n) is then normalized by ##EQU7##

TABLE 17 __________________________________________________________________________ Gain Encode Table __________________________________________________________________________ __________________________________________________________________________

TABLE 18 __________________________________________________________________________ Gain Decode Table __________________________________________________________________________ ##STR17## __________________________________________________________________________

From the Gain and LTP Gain Encode tables, we can see that we would require 4 bits for gcode and 3 bits for bcode. This results in total of 7 bits for both parameters. In order to reduce the bandwidth of the compressed bit stream, the gcode and bcode parameters are encoded together in 6 bits, as follows:

The encoded bits for the G and LTP-Gain (.beta.) at the receiver can be obtained as follows:

However, these calculations are needed only for the 8 Kbit/sec and 9.6 Kbit/sec algorithms.

Each segment of 32 samples (Sub-Block Size) is divided into 4 vectors of 8 samples (VSIZE) each. Each vector is compared to the vectors stored in the CodeBook and the Index of the Code Vector that is closest to the signal vector is selected. The CodeBook consists of 512 entries (512 addresses). The index chosen has the least difference according to the following minimization formula: ##EQU8## where x.sub.i =the input vector of VSIZE samples (8 for the 9.6 Kbit/sec algorithm), and

y.sub.i =the code book vector of VSIZE samples (8 for the 9.6 Kbit/sec algorithm).

The minimization computation, to find the best match between the subsegment and the code book entries is computationally intensive. A brute force comparison may exceed the available machine cycles if real time processing is to be accomplished. Thus, some shorthand processing approaches are taken to reduce the computations required to find the best fit. The above formula can be computed in a shorthand fashion as follows.

By expanding out the above formula, some of the unnecessary terms may be removed and some fixed terms may be pre-computed: ##EQU9## where x.sub.i.sup.2 is a constant so it may be dropped from the formula, and the value of -1/2
.SIGMA.y.sub.i.sup.2 may be precomputed and stored as the VSIZE+1th value (8+1=9th value for the 9.6 Kbit/sec algorithm) in the code book so that the only real-time computation involved is the following formula: ##EQU10##

Thus, for a segment of Sub-Block Size samples (32 for the 9.6 Kbit/sec algorithm), we will transmit Sub-Block Size/VSIZE CodeBook indices (4 CodeBook Indices, 9 bits each, for the 9.6 Kbit/sec algorithm). Therefore, for the 9.6 Kbit/sec algorithm, for each Sub-Block Size segment we will transmit 36 bits representing that segment.

After the appropriate index into the code book is chosen, the input speech samples are replaced by the corresponding vectors in the chosen indexes. These values are then multiplied by the G.sub.q to denormalize the synthesized error signal, e'(n). This signal is then passed through the Inverse Pitch Filter to reintroduce the Pitch effects that was taken out by the Pitch filter. The Inverse Pitch Filter is performed as follows:

where .beta..sub.q is the Quantized LTP-Gain from Table 16, and j is the Lag.

The Inverse Pitch Filter output is used to update the synthesized speech buffer which is used for the analysis of the next sub-segment. The update of the state buffer is as follows:

where

k=0, . . . , (MAX.sub.-- PITCH-MIN.sub.-- PITCH)-1

where

l=MAX.sub.-- PITCH-MIN.sub.-- PITCH, . . . , MAX.sub.-- PITCH-1

The signal is then passed through the deemphasis filter since preemphasis was performed at the beginning of the processing. In the analysis, only the preemphasis state is updated so that we properly satisfy the Analysis-by-Synthesis method of performing the compression. In the Synthesis, the output of the deemphasis filter, s'(n), is passed on to the D/A to generate analog speech. The deemphasis filter is implemented as follows:

where

p=0.5 for the 9.6 Kbit/sec algorithm

The voice is reconstructed at the receiving end of the voice-over data link according to the reverse of the compression algorithm as shown as the decompression algorithm in FIG. 5.

If a silence frame is received, the decompression algorithm simply discards the received frame and initialize the output with zeros. If a speech frame is received, the pitch, LTP-Gain and GAIN are decoded as explained above. The error signal is reconstructed from the codebook indexes, which is then denormalized with respect to the GAIN value. This signal is then passed through the Inverse filter to generate the reconstructed signal. The Pitch and the LTP-Gain are the decoded values, same as those used in the Analysis. The filtered signal is passed through the Deemphasis filter whose output is passed on to the D/A to put out analog speech.

The compressed frame contains 23 8-bit words and one 6-bit word. Thus a total of 24 words. Total number of bits transferred is 190, which corresponds to 9500 bps as shown in Table 19 (for the 9.6 Kbit/sec algorithm).

TABLE 19 __________________________________________________________________________ Compressed Frame Packet for 9.6Kbit/see Algorithm 7 6 5 4 3 2 1 0 Bit Number __________________________________________________________________________ S S p.sub.0.sup.5 p.sub.0.sup.4 p.sub.0.sup.3 p.sub.0.sup.2 p.sub.0.sup.1 p.sub.o.sup.0 Comp.sub.-- Frame[0] V.sub.2.sup.8 V.sub.1.sup.8 V.sub.0.sup.8 p.sub.1.sup.4 p.sub.1.sup.3 p.sub.1.sup.2 p.sub.1.sup.1 p.sub.1.sup.0 Comp.sub.-- Frame[1] V.sub.5.sup.8 V.sub.4.sup.8 V.sub.3.sup.8 p.sub.2.sup.4 p.sub.2.sup.3 p.sub.2.sup.2 p.sub.2.sup.1 p.sub.2.sup.0 Comp.sub.-- Frame[2] V.sub.7.sup.8 V.sub.6.sup.8 p.sub.3.sup.5 p.sub.3.sup.4 p.sub.3.sup.3 p.sub.3.sup.2 p.sub.3.sup.1 p.sub.3.sup.0 Comp.sub.-- Frame[3] V.sub.9.sup.8 V.sub.8.sup.8 BG.sub.0.sup.5 BG.sub.0.sup.4 BG.sub.0.sup.3 BG.sub.0.sup.2 BG.sub.0.sup.1 BG.sub.0.sup.0 Comp.sub.-- Frame[4] V.sub.11.sup.8 V.sub.10.sup.8 BG.sub.1.sup.5 BG.sub.1.sup.4 BG.sub.1.sup.3 BG.sub.1.sup.2 BG.sub.1.sup.1 BG.sub.1.sup.0 Comp.sub.-- Frame[5] V.sub.13.sup.8 V.sub.12.sup.8 BG.sub.2.sup.5 BG.sub.2.sup.4 BG.sub.2.sup.3 BG.sub.2.sup.2 BG.sub.2.sup.1 BG.sub.2.sup.0 Comp.sub.-- Frame[6] V.sub.15.sup.8 V.sub.14.sup.8 BG.sub.3.sup.5 BG.sub.3.sup.4 BG.sub.3.sup.3 BG.sub.3.sup.2 BG.sub.3.sup.1 BG.sub.3.sup.0 Comp.sub.-- Frame[7] VQ.sub.0.sup.7 VQ.sub.0.sup.6 VQ.sub.0.sup.5 VQ.sub.0.sup.4 VQ.sub.0.sup.3 VQ.sub.0.sup.2 VQ.sub.0.sup.1 VQ.sub.0.sup.0 Comp.sub.-- Frame[8] = LS 8 bits VQ[0] VQ.sub.1.sup.7 VQ.sub.1.sup.6 VQ.sub.1.sup.5 VQ.sub.1.sup.4 VQ.sub.1.sup.3 VQ.sub.1.sup.2 VQ.sub.1.sup.1 VQ.sub.1.sup.0 Comp.sub.-- Frame[9] = LS 8 bits VQ[1] VQ.sub.14.sup.7 VQ.sub.14.sup.6 VQ.sub.14.sup.5 VQ.sub.14.sup.4 VQ.sub.14.sup.3 VQ.sub.14.sup.2 VQ.sub.14.sup.1 VQ.sub.14.sup.0 Comp.sub.-- Frame[22] LS 8 bits VQ[14] VQ.sub.15.sup.7 VQ.sub.15.sup.6 VQ.sub.15.sup.5 VQ.sub.15.sup.4 VQ.sub.15.sup.3 VQ.sub.15.sup.2 VQ.sub.15.sup.1 VQ.sub.15.sup.0 Comp.sub.-- Frame[23] LS 8 bits VQ[15] __________________________________________________________________________ where BG = Beta/Gain, P = Pitch, VQ = CodeBook Index and S = Spare Bits

Code Book Descriptions

The code books used for the VQ algorithm described above are attached as Appendices A, B and C. Appendix A includes the code book data for the 8 Kbit/sec algorithm, Appendix B includes the code book data for the 9.6 Kbit/sec algorithm and Appendix C includes the code book data for the 16 Kbit/sec algorithm. Table 20 describes the format of the code book for the 9.6 Kbit/sec algorithm. The code book values in the Appendices are stored in a signed floating point format which is converted to a fixed point representation of floating point number when stored in the lookup tables of the present invention. There are 512 entries in each code book corresponding to 512 different speech segments which can be used to encode and reconstruct the speech.

TABLE 20 ______________________________________ Code Book Format for the 9.6Kbit/sec Algorithm ______________________________________ ##STR18## ______________________________________

For the 9.6 Kbit/sec algorithm, the code book comprises a table of nine columns and 512 rows of floating point data. The first 8 rows correspond to the 8 samples of speech and the ninth entry is the precomputed constant described above as - 1/2
.SIGMA.y.sub.i.sup.2. An example of the code book data is shown in Table 21 with the complete code book for the 9.6 Kbit/sec algorithm described in Appendix B.

TABLE 21 __________________________________________________________________________ Code Book Example for the 9.6Kbit/sec Algorithm __________________________________________________________________________ 0.786438 1.132875 1.208375
1.206750 1.114250 0.937688 0.772062 0.583250 3.93769 0.609667 1.019167 0.909167 0.957750 0.999833 0.854333 1.005667 0.911250 3.36278 0.614750 1.150750 1.477750 1.548750 1.434750 1.304250 1.349750 1.428250 6.95291 0.657000
1.132909 1.279909 1.204727 1.335636 1.280818 1.162000 0.958818 5.24933 0.592429 0.897571 1.101714 1.337286 1.323571 1.349000 1.304857 1.347143 5.6239 0.325909 0.774182 1.035727 1.263636 1.456455 1.356273 1.076273 0.872818 4.628 __________________________________________________________________________

The code books are stored in PROM memory accessible by the Voice DSP as a lookup table. The table data is loaded into local DSP memory upon the selection of the appropriate algorithm to increase access speed. The code books comprise a table of data in which each entry is a sequential address from 000 to 511. For the 9.6 Kbit/sec algorithm, a 9.times.512 code book is used. For the 16 Kbit/sec algorithm, a 6.times.256 code book is used and for the 8 Kbit/sec algorithm, a 9.times.512 code book is used. Depending upon which voice compression quality and compression rate is selected, the corresponding code book is used to encode/decode the speech samples.

Generation of the Code Books

The code books are generated statistically by encoding a wide variety of speech patterns. The code books are generated in a learning mode for the above-described algorithm in which each speech segment which the compression algorithm is first exposed to is placed in the code book until 512 entries are recorded. Then the algorithm is continually fed a variety of speech patterns upon which the code book is adjusted. As new speech segments are encountered, the code book is searched to find the best match. If the error between the observed speech segment and the code book values exceed a predetermin