config = AIConfiguration( "ACCESS_TOKEN", ai.api.AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System ) aiService = AIService.getService(this, config) aiService.setListener(this) btnListen.setOnClickListener { aiService.startListening() } }