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

Use Assist pipeline STT/TTS on Wear OS #3611

Merged
merged 3 commits into from
Jun 30, 2023

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Jun 27, 2023

Summary

Completing the Assist features for Wear: use the pipeline's STT/TTS if available.

If permission is denied or the pipeline doesn't offer STT, input will continue using the watch IME/voice input intent.

This feature mostly follows the Assist implementation in the main app, so to prevent duplicate code most of this functionality is moved to a 'base' viewmodel. The main app and Wear app both inherit from this base and implement anything related to UI/permission handling.

Screenshots

Video showing using voice with a pipeline's STT:

PXL_20230627_182629793.TS-2.mp4

Link to pull request in Documentation repository

n/a

Any other notes

 - Update Assist pipeline support on Wear OS to use the pipelines' STT/TTS capabilities, if available and if the app has the required permission
 - Move UrlHandler functions (app) to UrlUtil (common)
 - Creates AssistViewModelBase in common to share Assist tasks that appear in both the main app and watch app
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

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

This is great! Lots of hard work put into Assist lately ❤️

@JBassett JBassett merged commit edf6ba5 into home-assistant:master Jun 30, 2023
4 checks passed
@jpelgrom jpelgrom deleted the wear-assist-voice branch June 30, 2023 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants