Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
APPARATUS AND METHOD FOR PLAYOUT SCHEDULING IN VOICE OVER INTERNET PROTOCOL (VOIP) SYSTEM
Document Type and Number:
WIPO Patent Application WO/2009/054674
Kind Code:
A2
Abstract:
A method and an apparatus for playout scheduling in a Voice over Internet Protocol (VoIP) system are provided. The method includes acquiring Pulse Code Modulation (PCM) samples by decoding a received packet; setting a first scale ratio according to a length of PCM samples stored in a playout buffer based on a preset scale ratio table; setting a second scale ratio by predicting a packet delay; setting a final scale ratio using the first scale ratio and the second scale ratio; and adjusting the length of the acquired PCM samples at the final scale ratio.

Inventors:
OH HEE-JIN (KR)
JUNG HAE-TAEK (KR)
KIM AUSTIN (KR)
KIM JAE-BUM (KR)
KIM MIN-SUNG (KR)
Application Number:
PCT/KR2008/006248
Publication Date:
April 30, 2009
Filing Date:
October 22, 2008
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SAMSUNG ELECTRONICS CO LTD (KR)
OH HEE-JIN (KR)
JUNG HAE-TAEK (KR)
KIM AUSTIN (KR)
KIM JAE-BUM (KR)
KIM MIN-SUNG (KR)
International Classes:
H04L47/30; H04L12/66; H04L47/52
Foreign References:
US20050243846A1
US5790538A
US20070211704A1
Attorney, Agent or Firm:
KWON, Hyuk-Rok et al. (1-96 Sinmun-ro 2ga Jongro-k, Seoul 110-062, KR)
Download PDF:
Claims:

Claims

[1] A method for play out scheduling at a receiver in a Voice over Internet Protocol

(VoIP) system, the method comprising: decoding a received packet; acquiring Pulse Code Modulation (PCM) samples from the decoded; setting a first scale ratio according to a length of PCM samples stored in a playout buffer based on a preset scale ratio table; setting a second scale ratio by predicting a packet delay; setting a final scale ratio using the first scale ratio and the second scale ratio; and adjusting a length of the acquired PCM samples at the final scale ratio. [2] The method of claim 1, wherein the scale ratio table defines a higher scale ratio for a shorter length of the PCM samples stored in the playout buffer and defines a lower scale ratio for a longer PCM length. [3] The method of claim 1, wherein the setting of the first scale ratio comprises: checking a number of queued packets being received; confirming a scale ratio corresponding to the number of the queued packets and the length of the PCM samples in the scale ratio table; and setting the confirmed scale ratio as the first scale ratio. [4] The method of claim 3, wherein the scale ratio table defines a higher scale ratio for a shorter length of the PCM samples stored in the playout buffer and a smaller number of the queued packets, and defines a lower scale ratio for a longer length of the PCM samples and a greater number of the queued packets. [5] The method of claim 1, wherein the setting of the final scale ratio comprises: applying weights to the first scale ratio and the second scale ratio, respectively; and summing the weighted first scale ratio scale ratio and the weighted second scale ratio. [6] An apparatus for playout scheduling at a receiver in a Voice over Internet

Protocol (VoIP) system, comprises: a decoder for acquiring Pulse Code Modulation (PCM) samples by decoding a received packet; a first scale ratio setter for setting a first scale ratio according to a length of PCM samples stored in a playout buffer based on a preset scale ratio table; a second scale ratio setter for setting a second scale ratio by predicting a packet delay; a final scale ratio setter for setting a final scale ratio using the first scale ratio and the second scale ratio; and

a packet size regulator for adjusting a length of the acquired PCM samples at the final scale ratio.

[7] The apparatus of claim 6, wherein the scale ratio table defines a higher scale ratio for a shorter length of the PCM samples stored in the playout buffer and defines a lower scale ratio for a longer PCM length.

[8] The apparatus of claim 6, wherein the first scale ratio setter checks a number of queued packets being received, confirms a scale ratio corresponding to the number of the queued packets and the length of the PCM samples in the scale ratio table, and sets the confirmed scale ratio as the first scale ratio.

[9] The apparatus of claim 8, wherein the scale ratio table defines a higher scale ratio for a shorter length of the PCM samples stored in the playout buffer and a smaller number of the queued packets, and defines a lower scale ratio for a longer length of the PCM samples and a greater number of the queued packets.

[10] The apparatus of claim 6, wherein the final scale ratio setter applies weights to the first scale ratio and the second scale ratio, respectively, and determines the final scale ratio by summing the weighted first scale ratio and the weighted second scale ratio.

Description:

Description

APPARATUS AND METHOD FOR PLAYOUT SCHEDULING IN VOICE OVER INTERNET PROTOCOL (VOIP) SYSTEM

Technical Field

[1] The present invention relates generally to an apparatus and a method for play out scheduling in a Voice over Internet Protocol (VoIP), and more particularly to an apparatus and a method for a receiver of the VoIP system to robustly handle influence of a jitter by adaptively adjusting a size of a playout buffer. Background Art

[2] Currently, transmission of time-varying multimedia such as voice and audio over an

Internet Protocol (IP) network is increasing. Yet, because the jitter caused by a network delay is considerable and it is difficult to predict the jitter, an IP network using a best effort service does not guarantee Quality of Service (QoS) of the voice, which requires the real-time service. In the packet delivery over the IP network, the network delay jitter occurs because the packets arrive at a destination node through different delays.

[3] When the packets are received after an intended playout time because of the considerable delay jitter, a user suffers discontinuous voice signal. The playout time is a time taken to receive voice packets, to convert the voice packets to a voice signal, to amplify the voice signal, and to reproduce the audio.

[4] To address the above-mentioned shortcoming, in the related art, the receiver, which includes a playout buffer for buffering, stores the decoded voice PCM samples to the buffer, and then outputs the audio, rather than restoring and outputting the corresponding packets as the voice signal upon the reception of the packet. However, using the playout buffer, the user experiences the delay that lasts as long as the first buffering time at the initial call setup, and the playout scheduling is not conducted for the jitter variation in the process of the call. As a result, to the related art cannot actively handle the delay varying according to the condition of the network.

[5] To avoid this problem, a method has been suggested for adaptively adjusting the playout time by predicting the jitter caused by the network delay and adjusting a size of Pulse Code Modulation (PCM) samples. Herein, the method for adjusting the playout time is referred to as a playout scheduling, and a technique for increasing or decreasing the number of the PCM samples using the characteristic of the voice for the playout scheduling is referred to as a Time Scale Modification (TSM). The TSM determines a scale ratio to increase or decrease the number of the PCM samples. The audio quality greatly depends on a performance of an algorithm of determining the

scale ratio. [6] FIG. 1 illustrates a conventional structure for playout scheduling at a receiver of a

VoIP system. [7] Referring to FIG. 1, the receiver measures the delay in every reception of the packet, predicts a next packet arrival time by taking statistics on delay, i.e., predicts a next packet delay

dn in step 101, adjusts the number of voice PCM samples received in the current packet by determining the scale ratio S 'based on the predicted delay in step 103, and adjusts the playout time so that the user cannot recognize the discontinuous voice signal. Herein, the scale ratio indicates the increase or the decrease of the length of the PCM samples.

[8] FIG. 2 is a flowchart illustrating a conventional method of a receiver for determining a playout time through delay prediction in a VoIP system.

[9] Referring to FIG. 2, after a call is set up in step 201, the receiver checks if a packet is received in step 203. When a packet is received, the receiver checks if the packet is an i-th packet in step 205. When the packet is the i-th packet, the receiver updates to wait for the (i+l)-th path in step 207, and decodes the current i-th packet in step 209 in order to acquire PCM samples of the i-th packet. The receiver predicts a reception time of the next (i+l)-th packet, i.e., predicts the (i+l)-th packet delay

dn in step 211, and defines the scale ratio S ' of the PCM samples of the i-th packet according to the predicted delay in step 213. Herein, the scale ratio of the PCM samples of the i-th packet is determined using a ratio of the delay time of the (i+l)-th packet to the playout time of one packet.

[10] Upon determining the scale ratio of the i-th packet, the receiver adjusts the size of the i-th packet at the determined scale ratio, i.e., adjusts the number of the PCM samples of the i-th packet in step 215, stores the adjusted PCM samples to the playout buffer in step 217, and then returns to step 203.

[11] By contrast, when the packet is not the i-th packet in step 205, the receiver checks if the received packet is a packet after the i-th packet in step 219. When the packet is the packet after the i-th packet, the receiver stores the packet to a queuing buffer in step 221. When the packet is a packet prior to the i-th packet, the receiver discards the packet in step 223.

[12] The receiver checks if the set call is released in step 225. When the call is not released, method returns to step 203. When the call is released, the receiver finishes

this conventional process.

[13] As discussed above, the TSM in the conventional playout scheduling method reproduces the voice signal by adjusting the playout time through the delay prediction on the next packet. However, because the delay in the IP network may abruptly change according to the condition and the jitter may increase unexpectedly, it is highly likely that the delay prediction is not conducted accurately. Consequently, it is difficult to robustly deal with the jitter variation of the IP network using the scheduling method that determines the playout time through the delay prediction. Disclosure of Invention Technical Solution

[14] Accordingly, the present invention has been designed to address at least the above- mentioned problems and/or disadvantages and to provide at least the advantages described below. An aspect of the present invention is to provide an apparatus and a method for playout scheduling in a VoIP system.

[15] Another aspect of the present invention is to provide an apparatus and a method for playout scheduling to robustly deal with an influence of jitter, by adaptively adjusting voice PCM sample size of a packet stored to a playout buffer at a receiver of a VoIP system.

[16] Another aspect of the present invention is to provide an apparatus and a method for playout scheduling using a length of PCM samples stored to a playout buffer, the number of queued packets, presence or absence of zero padding, and the number of times of staying in areas of the playout buffer for the playout scheduling at a receiver of a VoIP system.

[17] Another aspect of the present invention is to provide an apparatus and a method for adjusting a playout time using available information within a receiver of a VoIP system.

[18] Another aspect of the present invention is to provide an apparatus and a method for adjusting a playout time based on a receiver using only information in the receiver, without receiving any information from a transmitter or a network.

[19] In accordance with an aspect of the present invention, a method is provided for playout scheduling at a receiver in a Voice over Internet Protocol (VoIP) system. The method includes decoding a received packet; acquiring PCM samples from the decoded; setting a first scale ratio according to a length of PCM samples stored in a playout buffer based on a preset scale ratio table; setting a second scale ratio by predicting a packet delay; setting a final scale ratio using the first scale ratio and the second scale ratio; and adjusting the length of the acquired PCM samples at the final scale ratio.

[20] In accordance with another aspect of the present invention, an apparatus is provided for playout scheduling at a receiver in a VoIP system. The apparatus includes a decoder for acquiring PCM samples by decoding a received packet; a first scale ratio setter for setting a first scale ratio according to a length of PCM samples stored in a playout buffer based on a preset scale ratio table; a second scale ratio setter for setting a second scale ratio by predicting a packet delay; a final scale ratio setter for setting a final scale ratio using the first scale ratio and the second scale ratio; and a packet size regulator for adjusting the length of the acquired PCM samples at the final scale ratio. Brief Description of the Drawings

[21] The above and other aspects, features, and advantages of certain exemplary embodiments the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:

[22] FIG. 1 illustrates a conventional structure for playout scheduling at a receiver of a

VoIP system;

[23] FIG. 2 illustrates a conventional method of a receiver for determining a playout time through delay prediction in a VoIP system;

[24] FIG. 3 illustrates a receiver for playout scheduling in a VoIP system according to an exemplary embodiment of the present invention;

[25] FIG. 4 illustrates a playout scheduling method of a receiver in a VoIP system according to an exemplary embodiment of the present invention;

[26] FIG. 5 illustrates a playout buffer area based on a length of PCM samples at a receiver of a VoIP system according to an exemplary embodiment of the present invention;

[27] FIG. 6 illustrates a playout buffer area and a scale ratio based on a number of queued packets at the receiver of a VoIP system according to an exemplary embodiment of the present invention;

[28] FIG. 7 illustrates a method for determining a scale ratio according to zero padding at a receiver of a VoIP system according to an exemplary embodiment of the present invention;

[29] FIG. 8 illustrates a scale ratio when zero padding occurs at a receiver of a VoIP system according to an exemplary embodiment of the present invention;

[30] FIG. 9 illustrates a method for determining a scale ratio based on a playout buffer area at a receiver of a VoIP system according to an exemplary embodiment of the present invention; and

[31] FIG. 10 illustrates a method for determining a final scale ratio at a receiver of a VoIP system according to an exemplary embodiment of the present invention.

[32] Throughout the drawings, like reference numerals will be understood to refer to like

parts, components and structures.

Best Mode for Carrying Out the Invention

[33] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of exemplary embodiments of the present invention as defined by the claims and their equivalents. The description includes various specific details to assist in that understanding, but the specific details are to be regarded as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted for clarity and conciseness.

[34] Exemplary embodiments of the present invention provide an apparatus and a method for playout scheduling to robustly deal with influence of a jitter by adaptively adjusting a size of voice Pulse Code Modulation (PCM) samples stored to a playout buffer at a receiver of a Voice over Internet Protocol (VoIP) system. Hereinafter, a scale ratio indicates increase or decrease of a length of the PCM samples with respect to a voice packet.

[35] FIG. 3 is a block diagram of a receiver for playout scheduling in a VoIP system according to an exemplary embodiment of the present invention.

[36] Referring to FIG. 3, the receiver includes a first scale ratio setter 300, a second scale ratio setter 310, and a final scale ratio setter 312. The first scale ratio setter 300 includes a first candidate scale ratio setter 302, a second candidate scale ratio setter 304, a third candidate scale ratio setter 306, and a combiner 308.

[37] The first scale ratio setter 300, which includes the first candidate scale ratio setter

302, the second candidate scale ratio setter 304, the third candidate scale ratio setter 306, and the combiner 308, determines a first scale ratio

based on a length of PCM samples

stored to a playout buffer, the number of queued packets

, presence or absence of zero padding

z ero M

, and the number of packets staying in the same area of the playout buffer

re S lOn AREA[cnt]

[38] More specifically, the first candidate scale ratio setter 302 sets a first candidate scale ratio using the length of the PCM samples

stored to the playout buffer and the number of the queued packets he first candidate scale ratio setter 302 confirms the length of the PCM samples stored to the playout buffer, identifies an area filled with the PCM samples in the playout buffer as illustrated in FIG. 5 and will be described below, and sets the first candidate scale ratio

λ l based on the identified area and the number of the queued packets q n ' as illustrated in FIG. 6 and will be described below. [39] For example, when the number of the queued packets

1 and the length of the PCM samples corresponds to an expansion area I of the playout buffer, the first candidate scale ratio setter 302 sets the scale ratio to 1.8. When the length of the PCM samples

corresponds to a compression area II of the playout buffer, the first candidate scale ratio setter 302 sets the scale ratio to 0.6. Herein, the number of the queued packets qn'

is 1 when a packet arrives at a constant rate and the jitter is zero or close to zero. [40] Referring to FIG. 5, the play out buffer is divided into two expansion areas, one normal area, and three compression areas, which may vary according to situation and purpose. [41] The expansion area is a region that may go through underflow in the abrupt delay variation. The expansion area increases the length

of the PCM samples stored to the playout buffer by setting the corresponding scale ratio greater than 1. In doing so, the scale ratio for the expansion area I is higher than that of the expansion area II in order to avoid the underflow in the playout buffer by fully ensuring the length of the PCM samples

stored to the playout buffer within a shorter time in relation to the shorter length of the PCM samples stored to the playout buffer. [42] The compression area is a region having the sufficient PCM sample length he compression area reduces the PCM sample length by setting the corresponding scale ratio smaller than 1, to prevent an increase of the playout delay. The compression area is divided into three subareas. The smaller scale ratio is applied to the later subarea in order to avoid the increase of the playout delay by decreasing the length

of the PCM samples stored to the playout buffer within a shorter time in relation to the longer PCM samples stored to the playout buffer.

[43] The normal area is a region determined to be able to robustly handle the delay jitter variation and to have an appropriate playout delay. The normal area prevents the deterioration of the audio quality by setting the corresponding scale ratio to 1 so as not to adjust the PCM sample size of the actually input packet.

[44] Referring now to FIG. 6, the scale ratio differs depending on the area of the playout buffer and the number of the queued packets

In

. When the delay variation of the network causes too much packets fed to the receiver, i.e., when the number of the queued packets

exceeds 1 and is increasing by degrees, the playout buffer may increase as processing the packets. When the number of the queued packets

increases, the abrupt increase of the playout buffer can be prevented by gradually lowering the scale ratio. [45] Herein, the values of the scale ratio illustrated in FIG. 6 are mere examples and changeable if necessary. In this exemplary embodiment of the present invention, the scale ratio is set to 1.8 at maximum and to 0.5 at minimum, because the deterioration of the audio quality gets worse when the scale ratio exceeds 2.0 (hereinafter, referred to as a S max ) or falls below 0.5 (hereafter, referred to as a S mn ) in experiments. The maximum scale ratio S max is set to 1.8, rather than 2.0, because the scale ratio may increase depending on the zero padding

ZerO fl > a g or the number of the packets staying in the same area of the playout buffer. [46] The second candidate scale ratio setter 304 determines a second candidate scale ratio based on the presence or absence of the zero padding z ew βl g

. The zero padding can occur when the delay of the network suddenly increases and the packet arrives behind the expected playout time. Upon detecting the zero padding, the second candidate scale ratio setter 304 predicts the increase of the network delay and sets the second candidate scale ratio to increase the scale ratio.

[47] When the zero padding occurs after the playout scheduling of the (i-l)-th packet, the second candidate scale ratio setter 304 sets the zero flag of the (i-l)-th packet to 'ON', and sets the second candidate scale ratio

by conf inning the area corresponding to the length of the PCM samples

stored to the playout buffer. When the area corresponding to the PCM sample length

is the expansion area I or the expansion area II, the second candidate scale ratio setter 304 sets the second candidate scale ratio

C"

1 V to a preset positive value. [48] When the area corresponding to the PCM sample length

is the expansion area I, the value INC_EXP1_ZP determined as the second candidate scale ratio is greater than the value INC_EXP2_ZP determined as the second candidate scale ratio

A .

C"

1 V for the expansion area II. This avoids the audio quality deterioration by applying the smaller scale ratio because the incidence of the zero padding decreases when the PCM samples correspond to the expansion area II, compared to the expansion area I. INC_EXP1_ZP is greater than zero and less than or equal to 0.2. INC_EXP1_ZP is greater than zero in order to avoid no operation in case of the zero padding. INC_EXP1_ZP is less than or equal to 0.2 so that the first scale ratio

^l does not exceed 2.0. In other words, INC_EXP1_ZP is smaller than 0.2 so that the sum of the first candidate scale ratio

A . si

and the second candidate scale ratio does not exceed 2.0 as illustrated in FIG. 8 and will be described below. [49] When the area corresponding to the PCM sample length

is the normal area, the second candidate scale ratio setter 304 determines that the sufficient PCM length is ensured, and aborts the scale ratio supplement according to the previous zero padding by setting the zero flag

∑er °βa l g to 'OFF'.

[50] When the zero padding occurs after the processing of the (i-l)-th packet, the play out buffer is empty at the point of the processing of the i-th packet. Therefore, when the zero padding occurs, the PCM sample length

corresponds to the expansion area I, then corresponds to the expansion area II due to the expansion to continuous packets, and finally corresponds to the normal area. [51] The third candidate scale ratio setter 306 determines a third candidate scale ratio

O Z

based on the number of packets

r e S lOn AREA[cnt] staying in the same area of the play out buffer. As the PCM sample length

stays in the expansion area longer, the probability of causing the underflow in the playout buffer increases and the audio quality can deteriorate at a higher scale ratio. As the PCM sample length

stays in the compression area longer, the playout delay increases and the audio quality can deteriorate at a low scale ratio. Thus, the third candidate scale ratio setter 306 sets and modifies the third candidate scale ratio

ώ re to lower the probability of staying in the expansion area and the compression area, and to make the fast transition to the normal area. [52] The third candidate scale ratio setter 306 counts the number of packets staying in the same area of the playout buffer in every packet processing. When the count is greater than zero, the third candidate scale ratio setter 306 identifies the area of the playout buffer corresponding to the PCM sample length

, sets a weight according to the identified area, and determines the third candidate scale ratio oi ύrc by multiplying the count by the weight. Accordingly, weights for the expansion areas I and II are positive, weights for the compression areas I and II are negative, and weights for the normal area and the compression area III are zero. Herein, the weight for the normal area is set to zero to prevent adjusting the PCM sample size for the corresponding packet. The weight for the compression area III is set to zero in order to prevent reducing the scale ratio any more because the scale ratio for the compression area III is equal to S 1 ^ n 0.5. [53] When the PCM sample length

increases and accordingly the area of the playout buffer corresponding to the PCM sample length

is changed, the third candidate scale ratio setter 306 resets a count

r e S lOn PREV- AREA[cnt] of the previous area of the i-th packet to zero and increases a count

r e S lOn cURR- AREA[cnt] of a new area in every packet processing.

[54] In further detail, the third candidate scale ratio setter 306 identifies a playout buffer area of the PCM sample length

and sets the third candidate scale ratio

re by counting the number of packets staying in the same area. For example, when the area CURR_AREA corresponding to the PCM sample length

of the i-th packet is equal to the area PREV_AREA corresponding to the PCM sample length of the (i-l)-th packet, the count

/-1 r e £ lOn CURR-AREA[cnt] of the current area of the (i-l)-th packet exceeds zero. When the PCM sample length

of the i-th packet and the PCM sample length of the (i-l)-th packet lie in different areas, it reaches a new area. Accordingly, the third candidate scale ratio setter 306 resets the count

r e £ lOn PREV-AREA[cnt=Q] of the previous area of the i-th packet to zero and increases the count

. f r e 8 lOn CURRAREA[cnt++] of the current area of the i-th packet. [55] The combiner 308 sets the first scale ratio

by summing the first, second, and third candidate scale ratios si

and

^ re determined at the first candidate scale ratio setter 302, the second candidate scale ratio setter 304, and the third candidate scale ratio setter 306, based on Equation (1) below. [56] MathFigure 1

[Math.l]

^3 — ^3 -f- π i zf ^ ^ ^ n re . . .(1)

[57] The main factor for setting the first scale ratio is the first candidate scale ratio

. The second candidate scale ratio

If and the third candidate scale ratio are used to modify the first scale ratio according to the zero padding and the area corresponding to the PCM sample length

[58] The second scale ratio setter 310 measures the delay in every packet reception, takes statistics on the delay, and sets a second scale ratio

S

by predicting a delay of the next packet. The second scale ratio setter 310 determines the second scale ratio

S. for the PCM samples of the i-th packet by calculating a ratio of the delay time of the (i+l)-th packet to the playout time size of one packet as expressed below in Equation (2). Accordingly, the delay prediction algorithm can employ various conventional algorithms of high performance in predicting the delay of the network. [59] MathFigure 2

[Math.2]

S i = «2

2 PACKET - SIZE ' (2)

[60] In Equation (2),

O Z

denotes the second scale ratio of the i-th packet, d 1+λ denotes the predicted delay of the (i+l)-th packet, and PACKET - SIZE denotes a temporal size of the voice PCM samples in one VoIP packet.

[61] The final scale ratio setter 312 determines a final scale ratio S 'using the first scale ratio s[ and the second scale ratio

determined at the first scale ratio setter 300 and the second scale ratio setter 310. To determine the final scale ratio S' , the final scale ratio setter 312 applies weights to the first scale ratio

and the second scale ratio

, respectively, and sums the weighted values based on Equation (3).

[62] MathFigure 3

[Math.3]

[63] In Equation (3), S 'denotes the final scale ratio, α denotes a weight, denotes the first scale ratio, and

denotes the second scale ratio. The weight α is greater than zero and less than or equal to 1.

[64] The final scale ratio setter 312 makes the final scale ratio S ' acquired from Equation

(3) an integer S l =int(S l ).

[65] The final scale ratio setter 312 compares the final scale ratio S ' acquired from

Equation (3) with S max and S mn . When the acquired final scale ratio S'is greater than S m ax , the final scale ratio setter 312 determines S max as the final scale ratio S 1 , instead of the acquired value. When the acquired final scale ratio S ' is less than S mn , the final scale ratio setter 312 determines S mn as the final scale ratio S ' , instead of the acquired value.

[66] Although not depicted in FIG. 3 for ease of explanation, the receiver further includes a decoder for acquiring the PCM samples by decoding the packet, and a packet size regulator for increasing or decreasing the size of the PCM samples based on the finally acquired scale ratio S ' .

[67] FIG. 4 illustrates a playout scheduling method of a receiver in a VoIP system according to an exemplary embodiment of the present invention.

[68] When the call is set up in step 401, the receiver checks if a packet is received in step

403. When receiving the packet, the receiver checks if the packet is the i-th packet in step 405. When the packet is the i-th packet, the receiver updates to wait for the (i+l)-th packet in step 407, and acquires the PCM samples by decoding the currently received i-th packet in step 409.

[69] In step 411, the receiver sets the first candidate scale ratio using the length of the PCM samples

s Ktored in the playout buffer and the number of the queued packets in the packet buffer. More specifically, the receiver confirms the length of the PCM samples

stored in the playout buffer, identifies an area filled with the PCM samples in the playout buffer as illustrated in FIG. 5, and sets the first candidate scale ratio based on the identified area and the number of the queued packets as illustrated in FIG. 6. [70] In step 413, the receiver sets the second candidate scale ratio by checking for the zero padding

z ero flls of the i-th packet, which will be described in more detail in FIG. 7 below. [71] In step 415, the receiver checks in each packet reception if the current packet lies in a same area as a previous packet in the playout buffer, and sets the third candidate scale ratio

^ re by counting the number of packets

r e § lOn AREA{cnt} in the same area. As the PCM sample length stays in the expansion area longer, the probability of causing the underflow in the

playout buffer increases and the audio quality can deteriorate at a higher scale ratio. As the PCM sample length

s Ktays in the compression area longer, the playout delay increases and the audio quality can deteriorate at a low scale ratio. Thus, the receiver sets the third candidate scale ratio

^ re to lower the number of packets in the expansion area and the compression area. A method of setting the third candidate scale ratio

^ re will be explained in more detail by referring to FIG. 9. [72] In step 417, the receiver sets the first scale ratio

S{ by summing the first, second, and third candidate scale ratios

and

° re as shown in Equation (1). [73] In step 419, the receiver sets the second scale ratio

S of the i-th packet using Equation (2) by predicting the delay of the (i+l)-th packet. [74] Thereafter, the receiver sets the final scale ratio S ' by applying the weights to the first scale ratio

and the second scale ratio

, respectively, based on Equation (3), in step 421, adjusts the PCM sample length

of the i-th packet according to the set final scale ratio S'in step 423, and stores the adjusted PCM samples to the playout buffer in step 425. Thereafter, the method returns to step 403.

[75] By contrast, when the packet is not the i-th packet in step 405, the receiver if whether the received packet is a packet after the i-th packet in step 427. When the packet is the packet after the i-th packet, the receiver stores the packet to the queuing buffer in step 429. When the packet is a packet before the i-th packet, the receiver discards the packet in step 431.

[76] In step 433, the receiver checks if the set call is released. When the call is not released, the method returns to step 403. When the set call is released, the receiver finishes the process.

[77] While the first, second, and third candidate scale ratios

S \'f and

^ re

, the first scale ratio and the second scale ratio

2 are acquired in that order for the final scale ratio S ' in FIG. 4, the scale ratios can be determined at the same time and the order of the scale ratios can vary.

[78] FIG. 7 illustrates a method for determining a scale ratio according to zero padding at a receiver of a VoIP system according to an exemplary embodiment of the present invention.

[79] Referring to FIG. 7, the receiver schedules the (i-l)-th packet in step 701 and checks if zero padding occurs in step 703. Herein, the zero padding can occur when the delay of the network suddenly increases and the packet arrives behind the expected playout time.

[80] When the zero padding occurs, the receiver sets the zero flag

z ero fl« s of the (i-l)-th packet to 'ON' in step 705. [81] In step 707, the receiver checks if the PCM sample length

stored in the playout buffer corresponds to the expansion area I of the playout buffer. When PCM sample length

corresponds to the expansion area I, the receiver sets the second candidate scale ratio

according to the zero padding to the preset INC_EXP1_ZP in step 715 and then finishes the process. [82] When the PCM sample length

does not correspond to the expansion area I in step 707, the receiver checks if the PCM sample length

stored in the playout buffer corresponds to the expansion area II in step 709. For the expansion area II, the receiver sets the second candidate scale ratio

I

V according to the zero padding

z ero flls

to the preset INC_EXP2_ZP in step 717 and then finishes the process.

[83] INC_EXP1_ZP is greater than the INC_EXP2_ZP. When the PCM samples correspond to the expansion area II, the probability of generating the zero padding decreases, compared to the expansion area II. Thus, applying the smaller scale ratio prevents the audio quality degradation. INC_EXP1_ZP and INC_EXP2_ZP are positive values, and INC_EXP1_ZP is greater than zero and less than or equal to 0.2.

[84] By contrast, when the PCM sample length

does not correspond to the expansion area II in step 709, i.e., when the PCM sample length

reaches the normal area, the receiver sets the zero flag

ZerO fl' ag to 'OFF' by determining the sufficient PCM samples

guaranteed in step 711, sets the second candidate scale ratio

to zero in step 713, and then finishes the process.

[85] When the zero padding does not occur in step 703, the receiver sets the second candidate scale ratio

S' to zero in step 713 and finishes the process. [86] FIG. 9 illustrates a method for determining a scale ratio based on a playout buffer area at a receiver of a VoIP system according to an exemplary embodiment of the present invention. [87] Referring to FIG. 9, in step 901, the receiver confirms the PCM sample length

stored in the playout buffer and the current area CURR_AREA of the playout buffer corresponding to the PCM sample length

[88] In step 903, the receiver checks if the current area count

r e § lOn CURR-AREA[ cnt] of the (i-l)-th packet is greater than zero. When the count is not greater than zero, i.e., when the count is equal to zero, the receiver sets the third candidate scale ratio

S re to zero by determining that the area of the current packet is different from the area of the previous packet in step 919, and resets the count

Te S lOγi PREV ' - AREA[cnt ~ \ of the previous area of the i-th packet to zero in step 921. Next, the receiver increases the count

r e & lO ri CURR- AREA\cnt] of the current area of the i-th packet in step 923, updates the current area with the previous area PREV_AREA=CURR_AREA in step 925, and then finishes the process. [89] However, when the count is greater than zero in step 903, the receiver determines that the area of the current packet matches the area of the previous packet and checks if the PCM sample length

stored in the play out buffer corresponds to the expansion area I in step 905. When corresponds to the expansion area I, the receiver sets the third candidate scale ratio to INC_EXP1_RC in step 927 and resets the third candidate scale ratio

S r'e by multiplying the set third candidate scale ratio

^ re by the current area count

r e § lOn CURR-AREA[ cnt] of the (i-l)-th packet in step 939. Thereafter, the receiver increases the current area count of the i-th packet in step 941, updates the area information in step 943, and then finishes the process. [90] When the PCM sample length

does not correspond to the expansion area I in step 905, the receiver checks if the PCM sample length

*; corresponds to the expansion area II in step 907. When the PCM sample length

corresponds to the expansion area II, the receiver sets the third candidate scale ratio

^ re to INC_EXP2_RC in step 929 and resets the third candidate scale ratio by multiplying the set third candidate scale ratio

^ re by the current area count of the (i-l)-th packet in step 939. Thereafter, the process proceeds to step 941. [91 ] When the PCM sample length

d Koes not correspond to the expansion area II in step 907, the receiver checks if the PCM sample length

c Korresponds to the normal area in step 909. When the PCM sample length

c Korresponds to the normal area, the receiver sets the third candidate scale ratio

° re to zero in step 931 and resets the third candidate scale ratio

U T „C. by multiplying the set third candidate scale ratio

S I re by the current area count J-I r e £ lOn CURR-AREA[cnt] of the (i-l)-th packet in step 939. Next, the process proceeds to step 941. [92] When the PCM sample length

does not correspond to the normal area in step 909, the receiver checks if the PCM sample length

corresponds to the compression area I in step 911. When the PCM sample length

corresponds to the compression area I, the receiver sets the third candidate scale ratio

^ re

to INC_COMP1_RC in step 933 and resets the third candidate scale ratio

S r'e by multiplying the set third candidate scale ratio ni

by the current area count z—1 r e S l On cURR-AREA[ cnt ] of the (i-l)-th packet in step 939. Next, the process proceeds to step 941. [93] When the PCM sample length

does not correspond to the compression area I in step 911, the receiver checks if the PCM sample length b n' corresponds to the compression area II in step 913. When the PCM sample length

corresponds to the compression area II, the receiver sets the third candidate scale ratio

S r ' c to INC_C0MP2_RC in step 935 and resets the third candidate scale ratio

^ re by multiplying the set third candidate scale ratio

^ re by the current area count

r e S lOn CURR-AREA[cnt] of the (i-l)-th packet in step 939. Next, the process proceeds to step 941. [94] When the PCM sample length

d Koes not correspond to the compression area II in step 913, the receiver checks if the PCM sample length

c Korresponds to the compression area III in step 915. When the PCM sample length

c Korresponds to the compression area III, the receiver sets the third candidate scale ratio

^ re to zero in step 937 and resets the third candidate scale ratio

^ re by multiplying the set third candidate scale ratio

^ re by the current area count

.M r e S lOrt CURR-AREA[cnt] of the (i-l)-th packet in step 939. Next, the process proceeds to step 941.

[95] Herein, INC_EXP 1_RC, INC_EXP2_RC, INC_C0MP 1_RC, and INC_C0MP2_RC are the weights applied to the third candidate scale ratio

^ re

. INC_EXP1_RC and the INC_EXP2_RC are positive values, and INC_COMP1_RC and INC_C0MP2_RC are negative values. For example, INC_EXP1_RC and the INC_EXP2_RC can be set to 0.05, and INC_COMP1_RC and INC_C0MP2_RC can be set to -0.05. The weight on the normal area is set to zero in order to not adjust the packet size in the normal area. The weight on the compression area III is set to zero not to further reduce the scale ratio because the weight on the compression area III is the minimum value S 1 ^ n . [96] When the PCM sample length

K

does not correspond to the compression area III in step 915, the receiver sets the third candidate scale ratio

^ re to zero, sets the count

r e S lOn ALL-AREA[cnt] of every area of the i-th packet to zero, and updates the information of the previous area in step 917. Next, the receiver finishes this process. Herein, step 917 is performed to cope with the abnormal situation in the case where the PCM sample length

corresponds to none of the areas of the playout buffer. [97] FIG. 10 illustrates a method for determining a final scale ratio at a receiver of a VoIP system according to an exemplary embodiment of the present invention. [98] In step 1001, the receiver acquires the final scale ratio S 'by applying weights to the first scale ratio and the second scale ratio

, respectively, based on Equation (3). [99] In step 1003, the receiver compares the acquired final scale ratio S 'with S max . When the acquired final scale ratio S ' is greater than S max , the receiver determines S max as the final scale ratio S 'in step 1009. [100] When the acquired final scale ratio S 'is not greater than S m2x , the receiver compares the acquired final scale ratio S 'with S mn in step 1005. When the acquired final scale ratio S ' is less than S mn , the receiver determines S mn as the final scale ratio S ' in step

1011. [101] However, when the acquired final scale ratio S'is not less than S mn in step 1005, the receiver makes the acquired final scale ratio S 'an integer S ' =int(S ' ) in step 1007. [102] As described above, a scheduling method using a length of PCM samples stored in a playout buffer and a number of queued packets can realize a practical scheduling based on guaranteed resources, compared to the conventional method. [103] The scale ratio setting method for increasing and decreasing the packet size to adjust

the playout time is compatible with various conventional time scale modification methods, which suggest how to increase and decrease the packet size based on the scale ratio.

[104] In addition, because the information required for setting the scale ratio can be attained within the receiver, the playout scheduling is accomplished without receiving any information from the transmitter or the network.

[105] The receiver of the VoIP system adjusts the playout time by modifying the size of the voice PCM samples based on the predicted delay of the next packet, the length of the PCM samples stored in the playout buffer, the number of the queued packets, the presence or absence of the zero padding, and the number of times staying in the same area of the playout buffer. Therefore, even with the inaccurate delay predicted for the next packet, the discontinuous voice signal can be mitigated by robustly dealing with the jitter. The packet size stored in the playout buffer can be adaptively adjusted and the capability for handling the underflow in the playout buffer can be increased. As the playout delay, which is an important index of the QoS in the real-time service, is adaptively regulated, the QoS can be enhanced.

[106] While the present invention has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the appended claims and their equivalents.