Skip to content

Instantly share code, notes, and snippets.

@StephenVinouze
Last active November 28, 2022 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
}
@Binozo
Copy link

Binozo commented Dec 23, 2020

where is the speech object in line 2 coming from?

@StephenVinouze
Copy link
Author

Fair enough, I've completed the Gist. Thanks for pointing it out

@Binozo
Copy link

Binozo commented May 15, 2021

Sorry for being not polite in my comment. I was frustrated while I wrote the comment.

Why did you needed half a year to answer my comment? 😂

@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