I am saving voice data with Google Speech Service.
When I record my voice, RecognizerIntent.ACTION_RECOGNIZE_SPEECH is called, and the text I speak is displayed at the bottom of the Google Speech Service.
Is there a way to hide this text?
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);
}
Android