diff --git a/packages/app/client/src/state/sagas/chatSagas.ts b/packages/app/client/src/state/sagas/chatSagas.ts index 7372b24f8..a74f56842 100644 --- a/packages/app/client/src/state/sagas/chatSagas.ts +++ b/packages/app/client/src/state/sagas/chatSagas.ts @@ -165,21 +165,15 @@ export class ChatSagas { const { GetSpeechToken: command } = SharedConstants.Commands.Emulator; try { - // const speechAuthenticationToken: Promise = ChatSagas.commandService.remoteCall( - // command, - // endpoint.id, - // !!existingFactory - // ); - const speechAuthenticationToken: string = yield ChatSagas.commandService.remoteCall( + const speechAuthenticationToken: Promise = ChatSagas.commandService.remoteCall( command, endpoint.id, !!existingFactory ); - console.log('INSIDE SAGA: ', speechAuthenticationToken); const factory = yield call(createCognitiveServicesSpeechServicesPonyfillFactory, { authorizationToken: speechAuthenticationToken, - region: 'westus', // Currently, the prod speech service is only deployed to westus + region: 'westus2', // Currently, the prod speech service is only deployed to westus2 }); yield put(webSpeechFactoryUpdated(documentId, factory)); // Provide the new factory to the store diff --git a/packages/emulator/core/src/authEndpoints.ts b/packages/emulator/core/src/authEndpoints.ts index 073d463a7..d703c17bf 100644 --- a/packages/emulator/core/src/authEndpoints.ts +++ b/packages/emulator/core/src/authEndpoints.ts @@ -58,5 +58,5 @@ export const v32Authentication = { export const speech = { // Access token for Cognitive Services API - tokenEndpoint: 'http://login.scratch.botframework.com/v3/speechtoken/speechservices', // 'http://login.botframework.com/v3/speechtoken/speechservices', + tokenEndpoint: 'http://login.botframework.com/v3/speechtoken/speechservices', };