Skip to content

Commit

Permalink
Merge pull request #49 from subalterngames:speech_dispatcher_voices_p…
Browse files Browse the repository at this point in the history
…anic

Fixed a panic in SpeechDispatcher.voices()
  • Loading branch information
ndarilek authored Feb 9, 2024
2 parents 3032fe0 + a0c6cba commit 9e1476f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backends/speech_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ impl Backend for SpeechDispatcher {
.0
.list_synthesis_voices()?
.iter()
.filter(|v| LanguageTag::parse(v.language.clone()).is_ok())
.map(|v| Voice {
id: v.name.clone(),
name: v.name.clone(),
Expand Down

0 comments on commit 9e1476f

Please sign in to comment.