Browse Source

Always use 'en' as the default voice/language.

master
Reece H. Dunn 8 years ago
parent
commit
59ca718d40
4 changed files with 3 additions and 7 deletions
  1. 1
    1
      emscripten/js/demo.js
  2. 0
    4
      espeak-ng-data/voices/default
  3. 1
    1
      src/espeak-ng.c
  4. 1
    1
      src/libespeak-ng/voices.c

+ 1
- 1
emscripten/js/demo.js View File

@@ -240,7 +240,7 @@ function initializeDemo() {
opt.value = voice.identifier;
console.log('Adding voice: ' + opt.text);
sel.add(opt);
if (voice.name === 'default') {
if (voice.name === 'en') {
opt.id = 'default-voice';
opt.selected = true;
}

+ 0
- 4
espeak-ng-data/voices/default View File

@@ -1,4 +0,0 @@
name default
language en
gender male


+ 1
- 1
src/espeak-ng.c View File

@@ -592,7 +592,7 @@ int main(int argc, char **argv)
}

if (voicename[0] == 0)
strcpy(voicename, "default");
strcpy(voicename, "en");

result = espeak_ng_SetVoiceByName(voicename);
if (result != ENS_OK) {

+ 1
- 1
src/libespeak-ng/voices.c View File

@@ -556,7 +556,7 @@ voice_t *LoadVoice(const char *vname, int control)
return NULL;
} else {
if (voicename[0] == 0)
strcpy(voicename, "default");
strcpy(voicename, "en");

sprintf(path_voices, "%s%cvoices%c", path_home, PATHSEP, PATHSEP);
sprintf(buf, "%s%s", path_voices, voicename); // look in the main voices directory

Loading…
Cancel
Save