You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should not give a TS error, since this is supported according to the docs (and by testing):
Indeed, I can hack around it with new SpeechSynthesizer(speechConfig, null as unknown as AudioConfig);, but that's mildly annoying. Note that passing null results in a different behavior than not passing anything.
The text was updated successfully, but these errors were encountered:
Mike-Bell
changed the title
SpeechSynthesizer Type should allow null for audioConfig
SpeechSynthesizer ctor Type should allow null for audioConfig
Jul 7, 2022
This should not give a TS error, since this is supported according to the docs (and by testing):
Indeed, I can hack around it with
new SpeechSynthesizer(speechConfig, null as unknown as AudioConfig);
, but that's mildly annoying. Note that passingnull
results in a different behavior than not passing anything.The text was updated successfully, but these errors were encountered: