Skip to content

Instantly share code, notes, and snippets.

@StephenVinouze
Last active November 28, 2022 15:57
Show Gist options
  • Save StephenVinouze/3039394072804ad56935695d8f11deab to your computer and use it in GitHub Desktop.
Save StephenVinouze/3039394072804ad56935695d8f11deab to your computer and use it in GitHub Desktop.
private val speech: SpeechRecognizer by lazy { SpeechRecognizer.createSpeechRecognizer(context) }
if (SpeechRecognizer.isRecognitionAvailable(context)) {
speechRecognizer.setRecognitionListener(this)
} else {
// Handle error
}
@StephenVinouze
Copy link
Author

Just bumped into it, I'm never logged in on my personal account since I use a professional one for my company ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment