mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 16:09:38 +00:00
Merge pull request #49 from subalterngames:speech_dispatcher_voices_panic
Fixed a panic in SpeechDispatcher.voices()
This commit is contained in:
commit
9e1476fd36
|
@ -188,6 +188,7 @@ impl Backend for SpeechDispatcher {
|
||||||
.0
|
.0
|
||||||
.list_synthesis_voices()?
|
.list_synthesis_voices()?
|
||||||
.iter()
|
.iter()
|
||||||
|
.filter(|v| LanguageTag::parse(v.language.clone()).is_ok())
|
||||||
.map(|v| Voice {
|
.map(|v| Voice {
|
||||||
id: v.name.clone(),
|
id: v.name.clone(),
|
||||||
name: v.name.clone(),
|
name: v.name.clone(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user