File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
voice/src/main/kotlin/com/algolia/instantsearch/voice Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import android.speech.SpeechRecognizer
88
99
1010class VoiceSpeechRecognizer (
11- private val context : Context ,
11+ context : Context ,
1212 private val maxResults : Int = 1 ,
1313 private val language : String? = null
1414) {
@@ -27,7 +27,7 @@ class VoiceSpeechRecognizer(
2727
2828 private val speechRecognizer = SpeechRecognizer .createSpeechRecognizer(context)
2929
30- val intent = Intent (RecognizerIntent .ACTION_RECOGNIZE_SPEECH ).also { intent ->
30+ private val intent = Intent (RecognizerIntent .ACTION_RECOGNIZE_SPEECH ).also { intent ->
3131 intent.putExtra(RecognizerIntent .EXTRA_LANGUAGE_MODEL , RecognizerIntent .LANGUAGE_MODEL_FREE_FORM )
3232 intent.putExtra(RecognizerIntent .EXTRA_PARTIAL_RESULTS , true )
3333 intent.putExtra(RecognizerIntent .EXTRA_MAX_RESULTS , maxResults)
You can’t perform that action at this time.
0 commit comments