mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
when matching voices, need to check language matches too
This commit is contained in:
parent
ccd7150136
commit
b00a9010be
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class TTSPlayer:
|
||||||
# any requested voices match?
|
# any requested voices match?
|
||||||
for requested_voice in tag.voices:
|
for requested_voice in tag.voices:
|
||||||
for avail in avail_voices:
|
for avail in avail_voices:
|
||||||
if avail.name == requested_voice:
|
if avail.name == requested_voice and avail.lang == tag.lang:
|
||||||
return TTSVoiceMatch(voice=avail, rank=rank)
|
return TTSVoiceMatch(voice=avail, rank=rank)
|
||||||
|
|
||||||
rank -= 1
|
rank -= 1
|
||||||
|
|
Loading…
Reference in a new issue