microsoft / cognitive-services-speech-sdk-js

Microsoft Azure Cognitive Services Speech SDK for JavaScript
Other
267 stars 101 forks source link

fix(sdk/SpeechSynthesizer): fix type of param `audioConfig` #861

Closed YogiLiu closed 1 month ago

YogiLiu commented 1 month ago

According to the documentation, audioConfig should be nullable (https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-speech-synthesis?tabs=browserjs%2Cterminal&pivots=programming-language-javascript#get-a-result-as-an-in-memory-stream).