Skip to content

Commit

Permalink
feat: Allow Polly "voice" output param when switching language solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Jun 22, 2020
1 parent 4eabe19 commit a1071c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,10 @@ function storeSetup(vuetify) {
state.tts.tts = initializeTTS(lang);
initializeASR(store, setupConfig.ASR_CORRECTIONS_MERGED);
},
CHANGE_POLLY_VOICE(state, voice) {
state.activeSolution.pollyVoice = voice;
state.activeSolution.ttsEngine = "AWS Polly";
},
CLEAR_USER_INFO(state) {
state.auth.userInfo.user = null;
}
Expand Down Expand Up @@ -2239,6 +2243,10 @@ function handleTieUrlSwitchResponse(tResp, context) {
context.commit("UPDATE_UI_LOCALE", tResp.getParameter("lang"));
context.commit("CHANGE_ASR_TTS", tResp.getParameter("lang"));
}
if (tResp.hasParameter("voice")) {
context.commit("CHANGE_POLLY_VOICE", tResp.getParameter("voice"));
}

if (tResp.hasParameter("langurl")) {
context.commit("UPDATE_FRAME_URL", tResp.getParameter("langurl"));
}
Expand Down

0 comments on commit a1071c7

Please sign in to comment.