Browse Source

SelectVoice: Also try to select an mbrola voice when we are told to

Otherwise we won't ever be able to select an mbrola voice in ssml
processing.
master
Samuel Thibault 8 months ago
parent
commit
b583cc8d80
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/libespeak-ng/voices.c

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

@@ -1110,7 +1110,8 @@ char const *SelectVoice(espeak_VOICE *voice_select, int *found)
}

// select and sort voices for the required language
nv = SetVoiceScores(&voice_select2, voices, 0);
nv = SetVoiceScores(&voice_select2, voices,
voice_select2.identifier && strncmp(voice_select2.identifier, "mb/", 3) == 0 ? 1 : 0);

if (nv == 0) {
// no matching voice, choose the default

Loading…
Cancel
Save