Browse Source

Fix using the mbrola voices in Windows Subsystem for Linux.

master
Reece H. Dunn 5 years ago
parent
commit
7290b6f3cc
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/libespeak-ng/mbrowrap.c

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

@@ -527,6 +527,11 @@ static int init_mbrola(char *voice_path)
if (error)
return -1;

// Allow mbrola time to start when running on Windows Subsystem for
// Linux (WSL). Otherwise, the receive_from_mbrola call to read the
// wav header from mbrola will fail.
usleep(100);

result = send_to_mbrola("#\n");
if (result != 2) {
stop_mbrola();

Loading…
Cancel
Save