Add voice api calls to steamosctl and proxy.

Added listing of screen reader locales.
Added listing of voices for a given locale.
Added getting and setting of voice property.
This commit is contained in:
Jeremy Whiting 2025-06-27 16:52:40 -06:00 committed by Jeremy Whiting
parent 02a15c9295
commit afa0eddf41
5 changed files with 82 additions and 30 deletions

View file

@ -170,8 +170,8 @@ impl<'dbus> OrcaManager<'dbus> {
Ok(())
}
pub fn get_voices(&self, locale: &str) -> Option<Vec<String>> {
self.voices_by_language.get(locale).cloned()
pub fn get_voices(&self) -> HashMap<String, Vec<String>> {
self.voices_by_language.clone()
}
pub fn get_voice_locales(&self) -> Vec<String> {