mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-03 06:55:44 +00:00
Compensate silence duration when sonic enabled
This commit is contained in:
@@ -918,6 +918,10 @@ static int PlaySilence(int length, bool resume)
|
|||||||
if (length == 0)
|
if (length == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
#if HAVE_SONIC_H
|
||||||
|
length = (int)(length * sonicSpeed);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (resume == false)
|
if (resume == false)
|
||||||
n_samples = length;
|
n_samples = length;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user