Browse Source

Compensate silence duration when sonic enabled

master
Yury Popov 2 years ago
parent
commit
9f0b23f49e
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/libespeak-ng/wavegen.c

+ 4
- 0
src/libespeak-ng/wavegen.c View File

@@ -918,6 +918,10 @@ static int PlaySilence(int length, bool resume)
if (length == 0)
return 0;

#if HAVE_SONIC_H
length = (int)(length * sonicSpeed);
#endif

if (resume == false)
n_samples = length;


Loading…
Cancel
Save