From 43a56eb075325eb91b995a9ded0d9c0fc8ae6b4d Mon Sep 17 00:00:00 2001 From: Swathi S <105411200+s-swathib@users.noreply.github.com> Date: Wed, 6 Dec 2023 17:45:56 +0530 Subject: [PATCH] Update main.js --- src/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/main.js b/src/js/main.js index 670e090..3e77813 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -283,12 +283,12 @@ window.startSession = () => { } const speechSynthesisConfig = SpeechSDK.SpeechConfig.fromSubscription(cogSvcSubKey, CogSvcRegion) - speechSynthesisConfig.endpointId = document.getElementById('customVoiceEndpointId').value - speechSynthesisConfig.speechSynthesisVoiceName = document.getElementById('ttsVoice').value + //speechSynthesisConfig.endpointId = document.getElementById('customVoiceEndpointId').value + speechSynthesisConfig.speechSynthesisVoiceName = ttsVoice const avatarConfig = new SpeechSDK.AvatarConfig(TalkingAvatarCharacter, TalkingAvatarStyle) - avatarConfig.customized = document.getElementById('customizedAvatar').checked + //avatarConfig.customized = document.getElementById('customizedAvatar').checked avatarSynthesizer = new SpeechSDK.AvatarSynthesizer(speechSynthesisConfig, avatarConfig) avatarSynthesizer.avatarEventReceived = function (s, e) { var offsetMessage = ", offset from session start: " + e.offset / 10000 + "ms."