Skip to content

Adds Wear module and voice input snippet #280

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

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Adds Wear module and voice input snippet #280

merged 1 commit into from
Jun 13, 2024

Conversation

kul3r4
Copy link
Contributor

@kul3r4 kul3r4 commented Jun 10, 2024

Copy link

snippet-bot bot commented Jun 10, 2024

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@kul3r4 kul3r4 requested review from riggaroo and garanj June 10, 2024 13:15
// This is where you process the intent and extract the speech text from the intent.
it.data?.let { data ->
val results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS)
textForVoiceInput = results?.get(0) ?: "None"
Copy link
Contributor

Choose a reason for hiding this comment

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

Would this be better as a nullable string, instead of using "None"?

Copy link
Collaborator

@riggaroo riggaroo left a comment

Choose a reason for hiding this comment

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

Needs the build scripts and spotless :) Otherwise its looking great!

@kul3r4 kul3r4 force-pushed the input branch 8 times, most recently from fd03da6 to 4b33b10 Compare June 12, 2024 12:24
@kul3r4 kul3r4 merged commit 8baaa4a into main Jun 13, 2024
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.

3 participants