Skip to content

Commit 9fb08bc

Browse files
authored
cannot import format from undefined
SpeechSynthesisOutputFormat does exist inside the sdk reference, should be mentioned on the docs
1 parent 7e250a0 commit 9fb08bc

File tree

1 file changed

+1
-1
lines changed
  • articles/cognitive-services/Speech-Service/includes/how-to/speech-synthesis

1 file changed

+1
-1
lines changed

articles/cognitive-services/Speech-Service/includes/how-to/speech-synthesis/javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function synthesizeSpeech() {
299299
const speechConfig = SpeechConfig.fromSubscription("<paste-your-speech-key-here>", "<paste-your-speech-location/region-here>");
300300

301301
// Set the output format
302-
speechConfig.speechSynthesisOutputFormat = SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm;
302+
speechConfig.speechSynthesisOutputFormat = sdk.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm;
303303

304304
const synthesizer = new sdk.SpeechSynthesizer(speechConfig, null);
305305
synthesizer.speakTextAsync(

0 commit comments

Comments
 (0)