0

Is there any alternative to stopListening() method for API < 8 since this method was included in API level 8?

guipivoto
  • 18,327
  • 9
  • 60
  • 75

2 Answers2

1

SpeechRecognizer class was added on API 8. So, you can't use it in lower API devices.

guipivoto
  • 18,327
  • 9
  • 60
  • 75
  • Wasn't this already stated in OP's question though? Because the API isn't available before API 8 they're looking for an alternative. – Michael Dodd Mar 20 '19 at 14:15
  • @MichaelDodd He's asking specifically about stopListening(). – Gavin Wright Mar 20 '19 at 14:17
  • Michael pointed it correctly. I am looking for an alternative of stopListening() for older versions of Android(or API < 8). I want to know if it is possible to stop speech recognition without using methods included in and after API 8. – Ankriti Sachan Mar 21 '19 at 15:55
0

The SpeechRecognizer class itself was added in API 8.

Gavin Wright
  • 3,124
  • 3
  • 14
  • 35