Skip to content

Commit

Permalink
fix: Stop Polly when ASR is engaged
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Jun 15, 2020
1 parent 55de44f commit ee0bc51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ function storeSetup(vuetify) {
state.asr.stopAudioCapture = true;
},
START_AUDIO_CAPTURE(state) {
polly.stop();
if (state.asr.asr !== null) {
if (state.tts.tts.isSpeaking()) {
logger.debug(`TTS was speaking. Stopping the existing chatter.`);
Expand Down

0 comments on commit ee0bc51

Please sign in to comment.