Estoy guardando datos de voz con Google Speech Service.
Cuando grabo mi voz, se llama a RecognizerIntent.ACTION_RECOGNIZE_SPEECH y el texto que hablo se muestra en la parte inferior del Servicio de voz de Google.
¿Hay alguna forma de ocultar este texto?
setStudy: function () { let options = { language: this.language, prompt: this.cur_question, matches: this.matches, showPopup: this.showPopup, showPartial: this.showPartial }; if (this.avaliable && "" != this.prompt) { window.plugins.speechRecognition.startListening( res => { if (this.category === VOCA) { this.getScoreWord(res); } else { this.getScore(res[0]); } this.record_cnt += 1; this.$emit("update:recordCnt", this.record_cnt); this.$store.commit("Audio/ADD_SPEAKING_REC_CNT"); }, err => window.console.error(err), options ); } },
JS
if (showPopup) { NotificationSentence(MainActivity.getSentence()); cordova.startActivityForResult(this, intent, REQUEST_CODE_SPEECH); }
Androide