1

I use online google speech to text in my application. How can i change it to offline? I saw it in another app and i know it is possible. My online speech to text code:

if(isConnected()){
                Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
                intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
                        RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
                startActivityForResult(intent, REQUEST_CODE);
            }
            else{
                Toast.makeText(getApplicationContext(), "No Internet",  Toast.LENGTH_LONG).show();
            }

isconnect() is a method for test connection

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
REZA
  • 73
  • 1
  • 12

0 Answers0