Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
COMMUNICATION DEVICE AND METHOD OF OPERATION
Document Type and Number:
WIPO Patent Application WO/1999/046914
Kind Code:
A2
Abstract:
A communication device (100) is provided having a speech encoder (103) and a speech decoder (110) and being able to retrieve and store voice messages in a memory (116). The messages are stored in the memory according to a message format. This format is more compressed than the speech encoding format which is provided by the speech encoder. The device includes a frame interpolation block (109) for decompressing a stored message and thereby creating a signal according to the speech encoding format. A frame decimation block (104) is also provided for compressing a speech encoded signal thereby allowing a corresponding voice message to be stored in the memory according to the message format.

Inventors:
MEKURIA FISSEHA
CAVANDER HANS
LJUNGBERG PER
Application Number:
PCT/SE1999/000362
Publication Date:
September 16, 1999
Filing Date:
March 10, 1999
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ERICSSON TELEFON AB L M (SE)
International Classes:
G10L19/00; G10L19/135; H03M7/30; H04B14/04; H04M1/65; H04M1/72433; (IPC1-7): H04M1/65; H03M7/30
Foreign References:
US5105197A1992-04-14
US5675333A1997-10-07
US5499286A1996-03-12
US5630205A1997-05-13
Attorney, Agent or Firm:
ERICSSON MOBILE COMMUNICATIONS AB (IPR Dept. Lund, SE)
Download PDF:
Claims:
CLAIMS
1. A communication device (100,200,300,400) comprising: a microphone (101) for receiving an acoustic voice signal thereby generating a voice signal, a speech encoder (103) adapted to encoding the voice signal according to a speech encoding algorithm, the voice signal thereby being coded in a speech encoding format, a transmitter (106) for transmitting the encoded voice signal, a receiver (108) for receiving a transmitted encoded voice signal, the received encoded voice signal being coded in the speech encoding format, a speech decoder (110) for decoding the received encoded voice signal according to a speech decoding algorithm, a loudspeaker (113) for outputting the decoded voice signal, a memory (116) for holding message data corresponding to at least one stored voice message, memory read out means (115) for reading out message data corresponding to a voice message from the memory, the device being characterized in that it further comprises: code decompression means (109) for decompressing read out message data from a message data format to the speech encoding format.
2. A communication device according to claim 1 further comprising: first connection means for passing the message data decompressed by the code decompression means to the speech decoder, the decompressed message data thereby being decoded according to the speech decoding algorithm and outputted as a voice message by means of the loudspeaker.
3. A communication device according to claim 2 wherein the first connection means optionally passes the message data to the speech decoder under the control by a user of the communication device.
4. A communication device according to any one of the preceding claims further comprising: post filtering means (111) for filtering the signal decoded by the speech decoder before it is outputted by means of the loudspeaker.
5. A communication device according to claim 4 wherein the post filtering means (111) is a low pass filter.
6. A communication device according to any one of claim 1 to claim 5 further comprising: second connection means for passing the message data decompressed by the code decompression means to the transmitter, thereby allowing the decompressed message data to be transmitted by the transmitter.
7. A communication device according to claim 6 wherein the second connection means optionally passes the message data to the transmitter under the control by a user of the communication device.
8. A communication device according to any one of the preceding claims further comprising: code compression means (104) for compressing an encoded voice signal coded in the speech encoding format thereby generating message data coded in the message data format, memory write means (115) for storing the compressed message data in the memory as a stored voice message.
9. A communication device according to claim 8 further comprising: third connection means for passing the encoded voice signal of the speech encoder to the code compression means, the code compression means thereby compressing an encoded voice signal corresponding to an acoustic voice signal picked up by the microphone, and allowing the compressed voice signal to be stored in the memory as a stored voice message by the memory write means.
10. A communication device according to claim 9 wherein the third connection means optionally passes the encoded voice signal of the speech encoder to the code compression means under the control by a user of the communication device.
11. A communication device according to any one of claim 8 or claim 10 further comprising: fourth connection means for passing the encoded voice signal received by the receiver to the compression means, the compression means thereby compressing the encoded voice signal, and allowing the compressed voice signal to be stored in the memory as a stored voice message by the memory write means.
12. A communication device according to claim 11 wherein the fourth connection means passes the encoded voice signal received by the receiver to the compression means under the control by a user of the. communication device.
13. A communication device according to any one of the preceding claims wherein the code decompression means generates m data frames from n inputted data frames by means of a linear interpolation method, a data frame comprising a predetermined number of binary bits, m and n being integers and m being greater than n.
14. A communication device according to any one of the preceding claims further comprising: a random code generator (222) for generating random code sequences, the random code sequences being used in combination with read out message data to form data corresponding to the speech encoding format.
15. A communication device according to any one of claim 1 to claim 12 wherein the code decompression means is adapted to perform the ZivLempel or the Huffman algorithm.
16. A communication device according to any one of claim 8 to claim 14 wherein the code compression means eliminates i data frames out of j data frames, a data frame comprising a predetermined number of binary bits, i and j being integers and j being greater than i.
17. A communication device according to any one of claim 8 to claim 14 or claim 16 wherein the code compression means eliminates k bits out of 1 bits of each data frame, a data frame comprising a predetermined number of binary bits, k and 1 being integers and 1 being greater than k.
18. A communication device according to any one of claim 8 to claim 14 or claim 16 or claim 17 wherein the encoded voice signal according to the speech encoding format comprises at least two sets of data corresponding to pre defined priority levels, and wherein the code compression means eliminates at least the set of data corresponding to the lowest priority level.
19. A communication device according to claim 18 insofar as dependent on claim 14 wherein the random code sequences generated by the random code generator are used instead of data corresponding to data eliminated by the code compression means.
20. A communication device according to any one of claim 8 to claim 15 wherein the code compression means is adapted to perform the ZivLempel or the Huffman algorithm.
21. A communication device according to any one of the preceding claims further comprising: an analoguetodigital converter (102) for receiving the voice signal generated by the microphone thereby generating a digitized voice signal, the digitized voice signal being passed to the speech encoder, and a digitaltoanalogue converter (112) for receiving the decoded voice signal thereby generating an analogue signal, the analogue signal being outputted by means of the loudspeaker.
22. A communication device according to any one of the preceding claims wherein the communication device forms part of a handsfree equipment adapted to operate with a radio communication device, such as a cellular phone.
23. A communication device according to claim 21 wherein the communication device is a cellular phone.
24. A voice message retrieval method comprising the steps of: reading out message data coded in a message data format from a memory; decompressing the read out message data by means of a decompression algorithm whereby the decompressed data being coded in a speech encoding format; decoding the decompressed message data according to a speech decoding algorithm; and passing the decoded message data to a loudspeaker for outputting the voice message as an acoustic voice signal.
25. A voice message retrieval method according to claim 24 further comprising the step of: post filtering the decoded message data according to a filtering method before it is outputted by means of the loudspeaker.
26. A voice message retrieval method according to claim 25 wherein the post filtering method performs low pass filtering.
27. A voice message retrieval method for use with a communication device comprising the steps of: reading out message data coded in a message data format from a memory; decompressing the read out message data by means of a decompression algorithm whereby the decompressed data being coded in a speech encoding format; passing the decompressed message data to a transmitter for transmitting the voice message from the communication device.
28. A voice message retrieval method according to any one of claim 24 to claim 27 wherein the decompression algorithm comprises the step of: generating m data frames from n inputted data frames by means of a linear interpolation method, a data frame comprising a predetermined number of binary bits, m and n being integers and m being greater than n.
29. A voice message retrieval method according to any one of claim 24 to claim 27 wherein the decompression algorithm performs the ZivLempel or the Huffman algorithm.
30. A voice message storage method comprising the steps of: converting an acoustic voice signal to an electrical voice signal; encoding the electrical voice signal by means of a speech encoding algorithm thereby generating an encoded voice signal coded in a speech encoding format; compressing the encoded voice signal according to a compression algorithm thereby generating message data coded in a message data format; and storing the compressed message data in a memory as a stored voice message.
31. A voice message storage method for use with a communication device comprising the steps of: receiving an transmitted encoded voice signal coded in a speech encoding format; compressing the received encoded voice signal according to a compression algorithm thereby generating message data coded in a message data format; and storing the compressed message data in a memory as a stored voice message.
32. A voice message storage method according to claim 30 or claim 31 wherein the compression algorithm comprises the step of: eliminating i data frames out of j data frames, where a data frame comprises a predetermined number of binary bits, i and j are integers and j is greater than i.
33. A voice message storage method according to any one of claim 30 to claim 32 wherein the compression algorithm comprises the step of: eliminating k bits out of 1 bits of each data frame, where a data frame comprises a predetermined number of binary bits, k and 1 are integers and 1 is greater than k.
34. A voice message storage method according to any one of claim 30 to claim 33 wherein the encoded voice signal according to the speech encoding format comprises at least two sets of data corresponding to predefined priority levels, and wherein the compression algorithm further comprises the step of: eliminating at least the set of data corresponding to the lowest priority level.
35. A voice message retrieval method according to any one of claim 30 or claim 31 wherein the compression algorithm performs the ZivLempel or the Huffman algorithm.
Description:
COMMUNICATION DEVICE AND METHOD OF OPERATION TECHNICAL FIELD OF INVENTION The invention relates to communication devices and, in particular, to communication devices being able to read-out and, possibly, store voice messages in a memory. The invention also relates to methods for retrieving and, possibly, storing voice messages in such devices.

DESCRIPTION OF RELATED ART A communication device adapted to receiving and transmitting audio signals is often equipped with a speech encoder and a speech decoder. The purpose of the encoder is to compress an audio signal which has been picked-up by a microphone. The speech encoder provides a signal in accordance with a speech encoding format. By compressing the audio signal the bandwidth of the signal is reduced and, consequently, the bandwidth requirement of a transmission channel for transmitting the signal is also reduced. The speech decoder performs substantially the inverse function of the speech encoder. A received signal, coded in the speech encoding format, is passed through the speech decoder and an audio signal, which is later outputted by a loudspeaker, is thereby recreated.

One known form of a communication device being able to read- out and store voice messages in a memory is discussed in the U. S. patent no. 5,499,286 by Kobayashi. A voice message is stored in the memory as data coded in the speech encoding format. The speech decoder of the communication device is used to decode the stored data and thereby recreating an audio signal of the stored voice message. Likewise, the speech encoder is used to encode a voice message, picked up

by the microphone, and providing data coded in the speech encoding format. This data is then stored in the memory as a representation of the voice message.

The U. S. patent no. 5,630,205 by Ekelund illustrates a similar design.

Whilst the known communication device described above functions quite adequately, it does have a number of disadvantages.

A drawback of the known communication device is that although the speech encoder and speech decoder allow message data to be stored in a memory in a relatively compressed format, a large memory is still needed. Memory is expensive and is often, especially in small hand-held communication devices, such as cellular phones or mobile phones, a scarce resource.

An example of a speech encoding/decoding algorithm is defined in the GSM (Global System for Mobile communications) standard where a residual pulse excited long term prediction, RPE-LTP coding algorithm is used. This algorithm, which is referred to as a full-rate speech coder algorithm, provides a compressed data rate of about 13 kbit/s. The memory requirement for storing voice messages is thereby relatively high. The computation power needed for performing the full-rate speech coding algorithm is, however, relatively low (about 2 MIPS). The GSM standard also includes a half-rate speech coder algorithm which provides a compressed data rate of about 5.6 kbit/s. Although this means that the memory requirement for storing voice messages is lower than what is required when the full- rate speech coding algorithm is used, the half-rate speech code algorithm does require a lot of computation power (about 16 MIPS). Computation power is expensive to implement and is often, especially in small hand-held communication devices, such as cellular phones or mobile phones, a scarce

resource. Furthermore, a circuit for carrying out a high degree of computation power also consumes a lot of electrical power, which adversely affect the battery life- length in battery powered communication devices.

It is an object of the present invention to provide a communication device which overcomes or alleviates the above mentioned problems.

The invention is also directed to a method by which the described device operates.

SUMMARY According to an aspect of the present invention there is provided a communication device comprising a microphone for receiving an acoustic voice signal thereby generating a voice signal, a speech encoder adapted to encoding the voice signal according to a speech encoding algorithm, the voice signal thereby being coded in a speech encoding format, a transmitter for transmitting the encoded voice signal, a receiver for receiving a transmitted encoded voice signal, the received encoded voice signal being coded in the speech encoding format, a speech decoder for decoding the received encoded voice signal according to a speech decoding algorithm, a loudspeaker for outputting the decoded voice signal, a memory for holding message data corresponding to at least one stored voice message, memory read out means for reading out message data corresponding to a voice message from the memory and code decompression means for decompressing read out message data from a message data format to the speech encoding format.

According to another aspect of the present invention there is provided a voice message retrieval method comprising the steps of reading out message data coded in a message data format from the memory, decompressing the read out message

data to the speech encoding format by means of a decompression algorithm, decoding the decompressed message data according to the speech decoding algorithm, and passing the decoded message data to the loudspeaker for outputting the voice message as an acoustic voice signal.

According to another aspect of the present invention there is provided a voice message retrieval method comprising the steps of reading out message data coded in a message data format from the memory, decompressing the read out message data to the speech encoding format by means of a decompression algorithm and passing the decompressed message data to the transmitter for transmitting the voice message from the communication device.

This construction and methods achieve the advantage that a voice message is stored in the memory in a more compressed format than the format provided by a speech encoder. Such a stored voice message is decompressed by the decompression means thereby recreating an encoded voice signal coded in the speech encoding format, i. e. the format provided after a voice signal has passed a speech encoder.

Preferably the communication device further comprises code compression means for compressing an encoded voice signal coded in the speech encoding format thereby generating message data coded in the message data format and memory write means for storing the compressed message data in the memory as a stored voice message.

According to another aspect of the present invention there is provided a voice message storage method comprising the steps of converting an acoustic voice signal to a voice signal by means of a microphone, encoding the voice signal by means of the speech encoding algorithm thereby generating an encoded voice signal coded in the speech encoding format, compressing the encoded voice signal according to a

compression algorithm thereby generating message data coded in the message data format and storing the compressed message data in the memory as a stored voice message.

According to another aspect of the present invention there is provided a voice message storage method comprising the steps of receiving a transmitted encoded voice signal coded in the speech encoding format, compressing the received encoded voice signal according to a compression algorithm thereby generating message data coded in the message data format and storing the compressed message data in the memory as a stored voice message.

This construction and methods achieve the advantage that a user can store a voice message in the memory in a more compressed format compared to the speech encoding format.

Since a voice message is stored in the memory in a more compressed format than the format provided by a speech encoder, as is the case in the prior art, less memory is required to store a particular voice message. A smaller memory can therefore be used. Alternatively, a longer voice message can be stored in a particular memory. Consequently, the communication device of the present invention requires less memory and, hence, is cheaper to implement. In, for example, small hand-held communication devices, where memory is a scarce resource, the smaller amount of memory required provides obvious advantages. Furthermore, a small amount of computation power is required due to the fact that simple decompression algorithms can be used by the decompression means.

BRIEF DESCRIPTION OF THE DRAWINGS FIG 1 illustrates a block diagram of a communication device in accordance with a first embodiment of the present invention;

FIG 2 illustrates a block diagram of a communication device in accordance with a second embodiment of the present invention; FIG 3 illustrates a block diagram of a communication device in accordance with a third embodiment of the present invention; FIG 4 illustrates a block diagram of a communication device in accordance with a fourth embodiment of the present invention.

DETAILED DESCRIPTION OF EMBODIMENTS Embodiments of the present invention are described below, by way of example only. The block diagrams illustrate functional blocks and their principle interconnections and should not be mistaken for illustrating specific implementations of the present invention.

FIG 1 illustrates a block diagram of a communication device 100 in accordance with a first embodiment of the present invention. A microphone 101 is connected to an input of an analogue-to-digital, A/D, converter 102. The output of the A/D converter is connected to an input of a speech encoder, SPE, 103. The output of the speech encoder is connected to the input of a frame decimation block, FDB, 104 and to a transmitter input, Tx/I, of a signal processing unit, SPU, 105. A transmitter output, Tx/0, of the signal processing unit is connected to a transmitter, Tx, 106, and the output of the transmitter is connected to an antenna, 107, constituting a radio air interface. The antenna is also connected to the input of a receiver, Rx, 108, and the output of the receiver is connected to a receiver input, Rx/I, of the signal processing unit 105. A receiver output Rx/O of the signal processing unit 105 is connected to an input of a speech decoder, SPD, 110. The input of the speech decoder 110 is also connected to an output of a frame interpolation block, FINT, 109. The output of the speech

decoder is connected to an input of a post-filtering block, PF, 111. The output of the post-filtering block is connected to an input of a digital-to-analogue, D/A, converter, 112.

The output of the D/A converter is connected to a loudspeaker 113. Preferably, the SPE, FDEC, FINT, SPD and PF are implemented by means of a digital signal processor, DSP, 114 as is illustrated by the broken line in FIG 1. If a high degree of integration is desired, the A/D converter, the D/A converter and the SPU may also be implemented by means of the DSP. It should be understood that the elements implemented by means of the DSP may be realized as software routines run by the DSP. However, it would be equally possible to implement these elements by means of hardware solutions. The methods of choosing the actual implementation is well known in the art. The output of the frame decimation block 104 is connected to a controller 115. The controller also being connected to a memory 116, a keyboard 117, a display 118 and a transmit controller, Tx Contr, 119, the latter being connected to a control input of the transmitter, 106. The controller also controls the operation of the digital signal processor 114 illustrated by the connection 120 and the operation of the signal processing unit 105 illustrated by the connection 121 in FIG 1.

In operation the microphone 101 picks-up an acoustic voice signal and generates thereby a voice signal which is fed to and digitized by the A/D converter 102. The digitized signal is forwarded to the speech encoder 103 which encodes the signal according to a speech encoding algorithm. The signal is thereby compressed and an encoded voice signal is generated. The encoded voice signal is set in a pre- determined speech encoding format. By compressing the signal the bandwidth of the signal is reduced and, consequently, the bandwidth requirement of a transmission channel for transmitting the signal is also reduced. For example, in the GSM (Global System for Mobile communications) standard a residual pulse excited long term prediction, RPE-LTP coding algorithm is used. This algorithm, which is referred to as a

full-rate speech coder algorithm, provides a compressed data rate of about 13 kbit/s and is more fully described in the GSM Recommendation 6.10 entitled"GSM Full Rate Speech Transcoding"which description is hereby incorporated by reference. The GSM standard also includes a half-rate speech coder algorithm which provides a compressed data rate of about 5.6 kbit/s. Another example is the vector sum excited linear prediction, VLSELP, coding algorithm which is used in the D-AMPS (Digital-Advanced Mobile Phone Systems) standard.

It should be understood that the algorithm used by the speech encoder is not crucial to the present invention.

Furthermore, the access method used by the communication system is not crucial to the present invention. Examples of access methods that may be used are CDMA (Code Division Multiple Access), TDMA (Time Division Multiple Access) and FDMA (Frequency Division Multiple Access).

The encoded voice signal is fed to the signal processing unit 105 where it is further processed before being transmitted as a radio signal by means of the transmitter 106 and the antenna 107. Certain parameters of the transmitter are controlled by the transmit controller 119, e. g. the transmission power. The transmit controller 119 is under the control of the controller 115. The communication device may also receive a radio transmitted encoded voice signal by means of the antenna 107 and the receiver 108. The signal from the receiver 108 is fed to the signal processing unit 105 for processing and a received encoded voice signal is thereby generated. The received encoded voice signal is coded in the pre-determined speech encoding format mentioned above. The signal processing unit 105 includes, for example, circuitry for digitizing the signal from the receiver, channel coding, channel decoding and interleaving. The received encoded voice signal is decoded by the speech decoder 110 according to a speech decoding algorithm and a decoded voice signal is generated. The speech decoding algorithm represents substantially the inverse to the speech

encoding algorithm of the speech encoder 103. In this case the post-filtering block is disabled and the decoded voice signal is outputted by means of the loudspeaker 113 after being converted to an analogue signal by means of the D/A converter 112. The communication device comprises also a keyboard, KeyB, 117 and display, Disp, 118 for allowing a user to give commands to and receive information from the device.

In the case where the user wants to store a voice message in the memory 116 the user gives a command to the controller by pressing a pre-defined key or key-sequence at the keyboard 117 possibly guided by a menu system presented on the display 118. A voice message to be stored is then picked up by the microphone 101 and a digitized voice signal is generated by the A/D converter 102. The voice signal is encoded by the speech encoder 103 according to the speech encoding algorithm and an encoded voice signal having the pre-defined speech encoding format is provided. The encoded voice signal is inputted to the frame decimation block 104 where the signal is processed according to a compression algorithm and message data, coded in a pre-determined message data format, is generated. The message data is inputted to the controller 115 which stores the voice message by writing the message data into the memory 116.

Two compression algorithms will be discussed as examples of compression algorithms. The encoded voice signal may be considered to comprise a number of data frames, each data frame comprising a pre-determined number of bits. In many systems the concept of data frames and the number of bits per data frame is defined in the communication standard. A first compression algorithm eliminates i data frames out of j data frames where i an j are integers and j is greater than i. For example, every second data frame may be eliminated. A second compression algorithm makes use of the fact that in several systems the bits of a data frame is separated into at least two sets of data corresponding to

pre-defined priority levels. For example, in the GSM system using the full-rate speech coder algorithm a data frame is defined as comprising 260 bits of which 182 are considered to be crucial (highest priority level) and 78 bits are considered to be non-crucial (lowest priority level). The crucial bits are normally protected by a high level of redundancy during radio transmission. Statistically the crucial bits will therefore be more insensitive to radio disturbances compared to the non-crucial bits. The second compression algorithm eliminates the bits of the data frame corresponding to the data set having the lowest priority level, i. e. the non-crucial bits. In the case where the data frame is defined to comprise more than two sets of data corresponding to more than two priority levels, the compression algorithm may eliminate a number of the sets of data corresponding to the lowest priority levels.

Although information is lost due to the compression algorithms discussed above, it is normally possible to reconstruct the signal sufficiently well, by the use of a decompression algorithm, to achieve a reasonable quality of the voice message when it is replayed. Decompression algorithms are discussed below.

In the case where the user wants to retrieve a voice message stored in the memory 116 the user gives a command to the controller by pressing a pre-defined key or key-sequence at the keyboard 117. Message data corresponding to a selected voice message is then read out by the controller 115 and forwarded to the frame interpolation block 109. The decompression algorithm of the frame interpolation block performs substantially the inverse function to the compression algorithm of the frame decimation block. If message data has been compressed using the first compression algorithm discussed above where i data frames out of j data frames have been eliminated the corresponding decompression algorithm may reconstruct the eliminated frames by means of

an interpolation algorithm, e. g. linear interpolation.

Message data compressed according to the second compression algorithm where the bits corresponding to the set of data having the lowest priority level have been eliminated the corresponding decompression algorithm may replace the eliminated bits by any pre-selected bit pattern. Preferably, however, the eliminated bits are replaced by an random code sequence. The random code sequence may either be generated by a random code generator or taken from a stored list of (pseudo-random) sequences. The use of a random code generator is illustrated in FIG 2 which illustrates a block diagram of a communication device 200 in accordance with a second embodiment of the present invention. The second embodiment differs from the first embodiment in that the random code generator, RND, 222 is connected to the frame interpolation block 109. A random code sequence is thereby provided to the frame interpolation block 109.

FIG 3 illustrates a block diagram of a communication device 300 in accordance with a third embodiment of the present invention. The third embodiment of the present invention differs from the first embodiment discussed above in that a switch 323 is introduced having a first terminal, A, connected to the output of the speech encoder 103, a second terminal, B, connected to the input of the speech decoder 110 and a common terminal, C, connected to the input of the frame decimation block 104. The switch may either connect terminal A or terminal B to terminal C upon control by the controller 115.

The operation of the third embodiment is identical to the operation of the first embodiment when the switch 323 connects the output of the speech encoder 103 to the input of the frame decimation block 104 (terminal A connected to terminal C). However, when the switch 323 is connecting the input of the speech decoder 110 to the input of the frame decimation block 104 (terminal B connected to terminal C)

the user has the possibility to store a voice message which is received by the receiver 108. In this case the encoded voice signal appearing on the input of the speech decoder 110 also appears on the input of the frame decimation block 104. The frame decimation block thereby generates message data coded in the message data format. The controller 115 then stores the message data as a stored voice message in the memory 116. Accordingly, the user may choose to store either a voice message by speaking through the microphone or a voice message received by means of the receiver of the communication device.

FIG 4 illustrates a block diagram of a communication device 400 in accordance with a fourth embodiment of the present invention. The fourth embodiment of the present invention differs from the first embodiment discussed above in that a switch 424 is introduced. The switch 424 has a first terminal, A, connected to the output of the speech encoder 103, a second terminal, B, not connected at all and a common terminal, C, connected to the output of the frame interpolation block 109. The switch may either connect terminal A or terminal B to terminal C upon control by the controller 115.

The operation of the fourth embodiment is identical to the operation of the first embodiment when the switch 424 does not connect the output of the frame interpolation block 109 to the transmitter input, Tx/I, of the signal processing unit 105 (terminal B connected to terminal C). In the case when the switch 424 does connect the output of the frame interpolation block 109 to the transmitter input, Tx/I, of the signal processing unit 105 (terminal A connected to terminal C) the user has the possibility to retrieve a stored voice message and transmit it by means of the transmitter 106. In this case message data corresponding to a stored voice message is read out from the memory 116 by the controller 115 and forwarded to the frame interpolation block 109. An encoded voice signal is generated at the

output of the frame interpolation block 109 and this signal will also appear on the transmitter input, Tx/I of the signal processing unit 105 due to the switch 424. After processing by the signal processing unit the voice message is transmitted by means of the transmitter 106. Accordingly, the user may choose to retrieve a stored voice message and either just having it replayed through the loudspeaker or in addition having it sent by means of the transmitter.

Several other embodiments (not shown) are conceivable. For example, message data corresponding to a number of stored voice messages may be unalterably pre-stored in the memory.

These messages may then be outputted by means of the loudspeaker or by means of the transmitter at the command of the user or initiated by the controller. For example, the controller may response to a particular operational status of the communication device by outputting a stored voice message to the user through the loudspeaker. In another example, the communication device may operate in a manner similar to an automatic answering machine. Assuming that there is an incoming call to the communication device and the user does not answer or does not want to answer, a stored voice message may then be read out from the memory under the control of the controller and transmitted to the calling party by means of the transmitter. The calling party is informed by the outputted stored voice message that the user is unable to answer the call and that the user may leave a voice message. If the calling party chooses to leave a voice message, the voice message is received by the receiver, compressed by the frame decimation block and eventually stored in the memory by means of the controller.

The user may later replay the stored message which was placed by the calling party by reading out the stored voice message from the memory and outputting it by means of the loudspeaker.

The communication devices 100,200 300 and 400 discussed above may, for example, be a mobile phone or a cellular

phone. A duplex filter may be introduced for connecting the antenna 107 with the output of the transmitter 106 and the input of the receiver 108. The present invention is not limited to radio communication devices but may also be used for wired communication devices having a fixed-line connection. Moreover, the user may give commands to the communication device 100,200,300,400 by voice commands instead of, or in addition to, using the keyboard 117.

The frame decimation block 104 may more generally be labeled a code compression means and any algorithm performing compression may be used. Both algorithms introducing distortion, e. g. the methods described above, and algorithms being able to recreate the original signal completely, such as Ziv-Lempel or Huffman, can be used. The Ziv-Lempel algorithm and the Huffman algorithm are discussed in "Elements of Information Theory"by Thomas M. Cover, pp.

319-and pp. 92, respectively, which descriptions are hereby incorporated by reference. Likewise, the frame interpolation block, FINT, 109 may more generally be labeled a code decompression means which algorithm substantially carries out the inverse operation to the algorithm used by the code compression means.

It should be noted that the term"communication device"of the present invention may refer to a hands-free equipment adapted to operate with another communication device, such as a mobile phone or a cellular phone. Furthermore, the elements of the present invention may be realized in different physical devices. For example, the frame interpolation block, FINT, 109 and/or the frame decimation block, FDB, 104 may equally well be implemented in an accessory to a cellular phone as in the cellular phone itself. Examples of such accessories are hands-free equipment and expansion units. An expansion unit may be connected to a system-bus connector of the cellular phone

and may thereby provide message storing functions, such as dictating machine functions or answering machine functions.

The construction and method of operation of the present invention achieve the advantage that a voice message is stored in the memory in a more compressed format than the format provided by a speech encoder. Such a stored voice message is decompressed by the decompression means to recreate an encoded voice signal in according to the speech encoding format, i. e. the format provided after a voice signal has passed a speech encoder.

Since a stored voice message is stored in the memory in a more compressed format than the format provided by a speech encoder, as is the case in the prior art, less memory is required to store a particular voice message. A smaller memory can therefore be used. Alternatively, a longer voice message can be stored in a particular memory. Consequently, the communication device of the present invention requires less memory and, hence, is cheaper to implement. In, for example, small hand-held communication devices, where memory is a scarce resource, the smaller amount of memory required provides obvious advantages. Furthermore, a small amount of computation power is required due to the fact that simple decompression algorithms can be used by the decompression means.