Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider Integrating VoiceManager to hass-edge-tts #30

Open
rany2 opened this issue Jan 5, 2023 · 2 comments
Open

Consider Integrating VoiceManager to hass-edge-tts #30

rany2 opened this issue Jan 5, 2023 · 2 comments

Comments

@rany2
Copy link
Collaborator

rany2 commented Jan 5, 2023

Have a look at https://github.com/rany2/edge-tts/blob/master/examples/dynamic_voice_selection.py to see if it is feasible to integrate.

@al-one
Copy link
Contributor

al-one commented Jan 7, 2023

I think the voice list should be cached in hass storage instead of getting it from the cloud every time. Even if the voice list fails to be fetched from the cloud next time, the voices in the old cache can still be used.

from homeassistant.helpers.storage import Store
store = Store(hass, 1, 'edge-voices.json')
voices = await store.async_load()

@rany2
Copy link
Collaborator Author

rany2 commented Jan 7, 2023

This sounds like a good idea, I'll add a way to have VoiceManager use a custom voice list that HASS could provide. You could currently get the voice list from list_voices(), needs to be cached by HASS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants