mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user