Browse Source

cleanup: remove setting samplerate with Sonic.

we currently only support 22050 as samplerate so this code has no
effect. This should be readded to setSpeed() with and without Sonic if
multiple samplerates are supported in the future.
master
Juho Hiltunen 2 years ago
parent
commit
a4c70d7921
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      src/libespeak-ng/setlengths.c

+ 0
- 5
src/libespeak-ng/setlengths.c View File

@@ -303,11 +303,6 @@ static void SetSpeedMods(int wpm, int x) {
speed.min_sample_len = 420 - (wpm - 440);
}

#if HAVE_SONIC_H
// adjust for different sample rates
speed.min_sample_len = (speed.min_sample_len * samplerate_native) / 22050;
#endif

speed.pause_factor = (256 * s1)/115; // full speed adjustment, used for pause length
speed.clause_pause_factor = 0;


Loading…
Cancel
Save