Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
s-swathib authored Dec 6, 2023
1 parent aada823 commit 43a56eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 43a56eb

Please sign in to comment.