Configuring audio with WebRTC
Configure Speech Recognizer before and after call
const val THIRD_EYE_VOICE_COMMAND_INTENT_PACKAGE =
"com.thirdeyegen.api.voicecommand"
fun pauseVoiceRecognizer(context: Context) {
val intent =
Intent(THIRD_EYE_VOICE_COMMAND_INTENT_PACKAGE)
intent.putExtra("instructions", "interrupt")
context.sendBroadcast(intent)
}fun resumeVoiceRecognizer(context: Context) {
val intent =
Intent(THIRD_EYE_VOICE_COMMAND_INTENT_PACKAGE)
intent.putExtra("instructions", "resume")
context.sendBroadcast(intent)
}
Configure your application to us the built-in speaker
Modifying WebRTC Configuration
Last updated
Was this helpful?