Lines Matching refs:speed
12 generates smooth speech at speed up factors as high as 6X, possibly more. It is
14 regardless of the speed up or slow down factor. For speeding up speech by 2X or
17 newSamples = period/(speed - 1.0)
21 pitch estimator, and speed is the speedup factor. If the current position in
30 For speed factors < 2X, the PICOLA algorithm is used. The above
31 algorithm is first used to double the speed of one pitch period. Then, enough
33 speed up facter, where 1.0 < speed < 2.0. The amount of data copied is derived:
35 speed = (2*period + length)/(period + length)
36 speed*length + speed*period = 2*period + length
37 length(speed - 1) = 2*period - speed*period
38 length = period*(2 - speed)/(speed - 1)
40 For slowing down speech where 0.5 < speed < 1.0, a pitch period is inserted into
42 until the output desired speed is reached. The length of data copied is:
44 length = period*(speed - 0.5)/(1 - speed)
47 similar to high speed factors is used.
63 /* These are used to down-sample some inputs to improve speed */
77 /* Use this to write floating point data to be speed up or down into the stream.
80 /* Use this to write 16-bit data to be speed up or down into the stream.
83 /* Use this to write 8-bit unsigned data to be speed up or down into the stream.
101 /* Get the speed of the stream. */
103 /* Set the speed of the stream. */
104 void sonicSetSpeed(sonicStream stream, float speed);
134 /* This is a non-stream oriented interface to just change the speed of a sound
136 speed*numSamples available space in the array. Returns the new number of samples. */
137 int sonicChangeFloatSpeed(float *samples, int numSamples, float speed, float pitch,
139 /* This is a non-stream oriented interface to just change the speed of a sound
141 speed*numSamples available space in the array. Returns the new number of samples. */
142 int sonicChangeShortSpeed(short *samples, int numSamples, float speed, float pitch,