A method for implementing Voice over IP through an electronic device including the phase of sampling a voice communication in a corresponding sampled communication; encoding the sampled communication into corresponding encoded data; decoding the corresponding encoded data into decoded data; and connecting...http://www.google.com/patents/US20070291753?utm_source=gb-gplus-sharePatent US20070291753 - Method for implementing voice over ip through an electronic device connected to a packed switched network

Method for implementing voice over ip through an electronic device connected to a packed switched networkUS 20070291753 A1

Abstract

A method for implementing Voice over IP through an electronic device including the phase of sampling a voice communication in a corresponding sampled communication; encoding the sampled communication into corresponding encoded data; decoding the corresponding encoded data into decoded data; and connecting the electronic device to a packed switched network for transmitting the corresponding encoded data. The method may include a phase for storing an encoder and a decoder inside a portable memory unit of the electronic device for executing the phase of encoding and decoding the sampled communication. The phase of storing the encoder and a decoder may be executed on a IC Card intended to be inserted in the electronic device.

Images(4)

Claims(30)

1-28. (canceled)

29. A method for implementing voice over Internet Protocol through an electronic device comprising:

sampling a voice communication to generate a corresponding sampled communication;

encoding the sampled communication into encoded data;

decoding the encoded data into decoded data; and

connecting the electronic device to a packed switched network for transmitting the encoded data;

the encoding and decoding being executed respectively by an encoder and a decoder stored on a portable memory unit associated with the electronic device.

30. The method according to claim 29 further comprising executing the stored encoder and the stored decoder on an integrated circuit card inserted into the electronic device.

31. The method according to claim 29 further comprising reproducing the voice communication from the transmitted encoded data on a loud speaker of the electronic device.

32. The method according to claim 29 wherein the sampling comprises sampling the voice communication at a sampling frequency.

33. The method according to claim 32 wherein the encoding comprises processing a threshold bit rate for each sample.

34. The method according to claim 29 wherein the encoding comprises grouping a plurality of the samples in a frame.

35. The method according to claim 34 further comprising transforming the frame into a transformed frame comprising a plurality of transformed samples.

36. The method according to claim 35 wherein transforming the frame comprises transforming the frame with a Discrete Cosine Transform.

37. The method according to claim 35 wherein at least one of the plurality of transformed samples is discarded.

38. The method according to claim 35 further comprising grouping the plurality of transformed samples into at least a plurality of odd transformed samples and a plurality of even transformed samples.

39. The method according to claim 38 further comprising processing a first difference between the plurality of odd transformed samples and the plurality of even transformed samples.

40. The method according to claim 39 further comprising processing a second difference between the plurality of even transformed samples and the plurality of odd transformed samples.

41. The method according to claim 40 further comprising packing the first difference and the plurality of odd transformed samples in a first packet structure.

42. The method according to claim 41 further comprising packing the second difference and the plurality of even transformed samples in a second packet structure.

43. The method according to claim 42 further comprising encrypting the first packet structure and the second packet structure into encrypted packet structures before being transmitted over the packet switched network.

44. The method according to claim 43 further comprising transmitting the encrypted packet structures over the packet switched network.

45. The method according to claim 44 further comprising decrypting the encrypted packet structures into a corresponding plurality of packets after transmission over the packet switched network.

46. The method according to claim 45 wherein the decoding further comprises processing a validity check for checking a validity of the transmitted plurality of packets; and wherein a positive value of the validity check corresponds to a correctly transmitted packet.

47. The method according to claim 46 wherein the decoding comprises discarding, from the corresponding plurality of packets, the first difference and the second difference when the validity check is positive.

48. The method according to claim 46 wherein the decoding comprises using at least one of the first difference and the second difference to rebuild at least one packet of the plurality of packets when the validity check is not positive.

54. An integrated circuit card for cooperating with an electronic device for sampling a voice communication to generate a corresponding sampled communication, for encoding the sampled communication into encoded data, for decoding the encoded data into decoded data, and for connecting to a packed switched network, the portable memory device comprising:

a memory for storing an encoder and a decoder; and

a processor coupled to said memory for executing the encoding and the decoding.

The present invention relates to a method for implementing Voice over IP through an electronic device.

BACKGROUND OF THE INVENTION

[0002]

As it is known, a method implementing Voice over IP transmits a voice communication over a network designed to support a data communication, usually known as a packet switched network. In a packet switched network a plurality of small units of data, usually known as packets, are routed between a sender electronic device and a receiver electronic device on the basis of a destination address, stored within each packet.

[0003]

This type of communication between the sender and the receiver electronic device is known as a connectionless communication because each packet may follow a different route on the network before reaching the receiver device. More particularly, the Internet is based on the connectionless communication as described above.

[0004]

A method implementing Voice over IP transmits the voice communication between the sender and the receiver electronic devices connected to a first and a second access point of a Packet switched network. The Internet, that is a Packet switched network used to transmit data communications may be adapted to support voice communications between two electronic devices, for example, located in different nations all over the world and connected to a first and a second access point of the Internet.

[0005]

In fact, the data to be sent are previously divided in a plurality of packets by a sender electronic device, they are sent over the network and they are finally received by a receiver electronic device, wherein they are recomposed into the original data communication. More particularly, the method implementing Voice over IP is subject to the packet loss during the data communication, and a consequent bad audio quality of the voice communication may result from a high packet loss ratio of the corresponding data communication. In fact, the quality of a voice communication based on a real time voice communication is strictly linked to the percentage of packet loss and to the transmission delay due to the distance between the sender electronic device and the receiver one.

[0006]

More particularly, experimental results prove that on the Internet the packet loss ratio is between the 0% and the 20%, with delays between 5 ms and 500 ms. Anyway, when the packet loss rate is over 10% and the delay is over the 150 ms the audio quality received at the destination device is considered unacceptable.

[0007]

A reduction of the packet loss ratio may be achieved through an encoder that reduces the effect of the packet loss on the received data, reconstructing with higher fidelity the corresponding voice communication. More particularly, a known telephony company developed a method for implementing Voice over IP through a personal computer, at the same time reducing the packet loss ratio. This method comprises an encoder and a decoder intended to be installed on a sender personal computer for encoding a voice communication into a data communication at the sender side and, vice versa, for decoding the data communication into a voice communication at the receiver side. More particularly, the sender personal computer comprises a microphone wherein a first user may speak and a loudspeaker wherefrom the first user may hear the voice, for example, the voice of a second user in voice communication with him.

[0008]

The second user is provided with a corresponding receiver personal computer comprising an encoder and a decoder for encoding the voice communication into a data communication at the sender side and, vice versa, for decoding the data communication into a voice communication at the receiver side. The receiver personal computer also comprises a respective microphone and loudspeaker.

[0009]

When the first user speaks, the microphone samples his voice and forwards it to the encoder. The encoder processes the sampled voice and encodes it in a corresponding data communication ready to be sent over the Internet. The receiver personal computer of the second user receives through the Internet the data communication. The decoder installed on the receiver personal computer of the second user may process and decode the data communication into a corresponding voice communication, ready to be heard from the loudspeaker.

[0010]

Such voice communication is less expensive with respect to a voice communication based on a traditional telephone network, like a circuit switched one, because it has the cost of an Internet connection. In addition, the use of a personal computer is not always possible to make a telephone call, being the personal computer, for example a notebook, not intended to be used as a mobile phone, especially for its size and weight.

[0011]

At the same time, an access point to a packet switched Ethernet, like the Internet, is required to implement the voice communication according to the method described above, such an access point not being always available. Moreover, the hardware configuration of a personal computer not always includes a microphone and a loudspeaker, and the installation and use of a headphone as a peripheral device connected to the personal computer may not particularly appreciated by a user.

[0012]

The method for implementing Voice over IP in a packet switched network requires that a personal computer or a notebook, provided with a microphone and a loudspeaker, be connected to an access point of the packet switched network. The use of such a personal computer as a mobile telephone may not always be possible because the access point to the packet switched network is not ubiquitous and the personal computer is not as portable as a mobile phone, especially for its size and weight.

SUMMARY OF THE INVENTION

[0013]

An object of the present invention is to provide a method for implementing a voice over IP over a packet switched network using a telephone device, more particularly using a mobile phone that is able to reach the packet switched network and that may include an embedded microphone and a loudspeaker.

[0014]

This and other objects are provided by a method for implementing Voice over IP through an electronic device comprising: sampling a voice communication in a corresponding sampled communication; encoding the sampled communication into corresponding encoded data; decoding the corresponding encoded data into decoded data; and connecting the electronic device to a packed switched network for transmitting the corresponding encoded data. The phases of encoding and decoding may be executed respectively by an encoder and a decoder stored inside a portable memory unit of the electronic device.

BRIEF DESCRIPTION OF THE DRAWINGS

[0015]

Further characteristics and the advantages of the method implementing Voice over IP according to the present invention will be apparent from the following description of an embodiment thereof, made with reference to the annexed drawings, given for indicative and non-limiting purpose.

[0016]

FIG. 1a schematically shows a phase of encoding a sampled communication in corresponding encoded data, according to the present invention.

[0017]

FIG. 1b schematically shows a phase of decoding the encoded data in corresponding decoded data, according to the present invention.

[0018]

FIG. 2a schematically shows a phase of sampling a voice communication, the phase of encoding the sampled communication in corresponding encoded data and the phase of transmission of the corresponding encoded data, according to the present invention.

[0019]

FIG. 2b schematically shows a phase of receiving encoded data, the phase of decoding the encoded data into decoded data and the phase of reproducing a voice communication from decoded data, according to the present invention.

[0020]

FIG. 3a schematically shows a phase of sampling a voice communication in a plurality of samples, their grouping in a frame and their encoding, according to the present invention.

[0021]

FIG. 3b schematically shows a division of the encoded frames in odd and even samples, their grouping in corresponding packets and the subsequent encryption, according to the present invention.

[0022]

FIG. 3c schematically shows at the receiver side, the packet decryption and the reconstruction of the received signal, according to the present invention.

[0023]

FIG. 4 schematically shows in more detail how the packets of FIG. 3b are built, comprising odd, even and difference samples, according to the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0024]

With more specific reference to FIG. 1a, a channel intended to be used for a voice communication is schematically represented and indicated with numeral reference 1. More particularly, the channel 1 belongs to a packed switched network and the transmission of the voice communication over such a network is driven by a method for implementing Voice over IP. The method provides that an electronic device is connected to the packed switched network, for example to an access point of the channel 1, and samples the voice of a user.

[0025]

More particularly, the method for implementing Voice over IP comprises a phase for sampling the voice communication of the user in a corresponding sampled communication; a phase or step for encoding the sampled communication into corresponding encoded data; a phase for decoding the corresponding encoded data into decoded data; and wherein connection means or connection circuitry is provided to connect the electronic device to the packed switched network and for transmitting/receiving the corresponding encoded data over such a network.

[0026]

Accordingly, the method for implementing Voice over IP comprises a phase for storing an encoder and a decoder inside a portable memory unit of the electronic device, such encoder and decoder being used respectively to execute the phase of encoding the sampled communication and the phase of decoding the corresponding encoded data in decoded data. More particularly, the encoder and the decoder are stored on a IC Card intended to be inserted into the electronic device.

[0027]

In FIG. 1a the transmission of a voice communication from the electronic device over a channel 1 is represented where the input 2 is a voice communication sampled, for example, by a microphone connected or embedded inside the electronic device. The sampled voice is encoded through an encoder 2, for example stored inside an IC Card included inside the electronic device that is connected to an access point of the channel. When the sampled communication is encoded, it is transmitted from the electronic device to a second electronic device, for example, connected to a second access point of the packed switched network.

[0028]

The method comprises a phase of decoding the encoded data into corresponding decoded data. In fact when the second electronic device receives through the packed switched network the encoded data, it decodes the data, through the corresponding decoder, into corresponding decoded data. As schematically shown by the block diagram of FIG. 1b, the received data is decoded through a decoder 5, for example, stored inside an IC Card inserted in the receiver electronic device. The original voice communication of the first user is reproduced by the second electronic device, sending the decoded data to a loudspeaker connected or embedded inside the second electronic device.

[0029]

In FIG. 2a, there is schematically shown a microphone 6 used to sample the voice communication of a user in a sampled communication, and an IC card 7 storing the encoder for encoding the sampled communication into encoded data. The encoded data is transmitted by a mobile phone 8 hosting the IC Card 7.

[0030]

With reference to FIG. 2b, when a second mobile phone 8 receives the encoded data through the packed switched network, it decodes it through a decoder stored inside an IC Card 7 and forwards it to the loudspeaker embedded in the mobile phone. More particularly, the phase of sampling, samples the voice communication through specific mathematic processing, intended to allow the precise reproduction of the voice communication after its transmission over the packet switched network.

[0031]

As schematically shown in FIG. 3a, the phase of sampling, samples the voice communication at fs samples/sec and quantizes it at b bits/sample while the phase of encoding groups the quantized samples in frames, compacts each frame, divides it into two different descriptions, and encrypts it before sending. According to the method, the frame is transformed, for example, by a Discrete Cosine Transform (DCT) into a transformed frame comprising a plurality of transformed samples.

[0032]

During the phase of encoding, one or more transformed samples that do not satisfy a condition are discarded. More particularly, those samples that are nearby to zero after the DCT are discarded without any loss in the audio quality. In fact the DCT is a unitary transform and the energy of the signal is preserved after the transformation. Accordingly, since after the transformation all of the signal is concentrated at low frequencies, the high frequencies that are nearby to zero may be cut. The transformed samples are grouped into a plurality of odd transformed samples y1 and into a plurality of even transformed samples y2, as schematically shown in FIG. 3b. More particularly, a first difference d1 is processed subtracting the plurality of even transformed samples y2 from the plurality of odd transformed samples y1 and a second difference d2 is processed subtracting the plurality of odd transformed samples y1 from the plurality of even transformed samples y2.

[0033]

The first difference d1 and the odd transformed samples y1 are packed in a corresponding first packet structure p1, ready to be sent over the packed switched network. Also the second difference d2 and the even transformed samples y2 are packed in a corresponding second packet structure p2. More particularly, the first packet structure p1 and the second packet structure p2 are encrypted into encrypted packet structures before being transmitted over the packet switched network, for example, through a DES encryption.

[0034]

The encrypted packet structures p1 and p2, represented in major detail in FIG. 4, are transmitted over the packet switched network from the electronic device. When the second electronic device receives the encrypted packet structures p1 and p2, it decrypts them into a corresponding plurality of packet structures.

[0035]

The phase of decoding, schematically represented in FIG. 3c, comprises the decrypting the encrypted data, for example, through a DES−1 algorithm, and processing of a validity check for checking the validity of a transmitted packet. More particularly, the phase of decoding discards, from the corresponding plurality of packets, the first difference d1 and the second difference d2 when the validity check is positive. When the validity check is negative, the phase of decoding uses the first difference d1 and/or the second difference d2 to rebuild one or more of the plurality of packets that are not received correctly by the second electronic device.

[0036]

With more specific reference to FIG. 4, an audio signal y is split into two flows: y1, made up of all the odd samples of y, and y2, made up of all the even samples of y. The first difference d1 and the second difference d2 are processed as explained above and two packets p1 and p2 are structured and ciphered before being sent on the network. At receiver side, the packets p1 and p2 are deciphered and sent to the decoder. More particularly, if p1 and p2 are received correctly, d1 and d2 are discarded and a frame r is built from interleaving of y1 and y2.

[0037]

If only p1 is correctly received, a frame r1 is built from interleaving of y1 and the difference between y1 and d1. If only p2 is correctly received, a frame r2 is built from interleaving of the difference between y2 and d2 and y2. Finally, if both p1 and p2 are not received correctly, a silent frame may be inserted or replaced with white noise or replaced with the last correctly received packet.

[0038]

Once the frame r, r1 or r2 is received a zero padding is performed before the Inverse Discrete Cosine Transformation. Advantageously, the method implementing Voice Over IP provides that a telephone device, a mobile phone or, more generally, an electronic devices with native embedded microphone and loudspeaker is used to transmit and receive a voice communication over a packet switched network. Advantageously, such electronic device is typically connectable to a packet switched network, for example, through the same antenna or connection used to reach a circuit switched network. Advantageously, when a packet switched network is not reachable by the antenna of the electronic device, it may support a voice communication over a reachable circuit switched network. Advantageously, a telephone device, for example, a cordless or a mobile phone, being that its size and weight are designed to be carried, may be used to reach a packet switched network.

[0039]

An electronic device for implementing Voice over IP may comprise sampling means or a sampler for sampling a voice communication in a corresponding sampled communication; encoding means or an encoder for encoding the sampled communication in corresponding encoded data; and decoding means or a decoder for decoding the corresponding encoded data into decoded data. The electronic device also comprises means to be connected to a packed switched network for transmitting and receiving the corresponding encoded data.

[0040]

The electronic device for implementing Voice over IP comprises a portable memory unit for storing the encoding and decoding means or an encoder and decoder. Advantageously, the portable memory unit is an IC Card intended to be hosted by the electronic device. Advantageously, the encoding and decoding means stored on the portable memory unit may be uploaded, and, for example, used to implement a Voice communication over IP through another electronic device, able to support a connection with such portable memory device. The electronic device implementing Voice over IP comprises sampling means or a sampler for sampling the communication. Advantageously, the sampling means is embedded inside the electronic device, for example, inside a telephone device or a mobile phone.