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

feat: add local speech provider support #9

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HipsterBrown
Copy link
Contributor

This cannot be merged until the RDK modules manager supports foreign server handlers for module <-> module gRPC communication.

In order to support other speech-to-text (STT) capabilities with this module, this PR adds the "local" option to the speech_provider configuration attribute and associated speech_service_name attribute.

@@ -322,6 +333,7 @@ def reconfigure(
str(attrs.get("speech_provider", "google"))
]
self.speech_provider_key = str(attrs.get("speech_provider_key", ""))
self.speech_service_name = str(attrs.get("speech_service_name", ""))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with this approach of the "local" value for the speech provider field paired with this field to keep the Enum usage for the SpeechProvider. If we want this configuration to match the listen_provider setting just the service name, I can refactor for consistency and remove the Enum.

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

Successfully merging this pull request may close these issues.

1 participant