'JS Azure Speech SDK Text to Speech (control volume for AudioConfig)
I'm working with azure text to speech service for enabling voice based outputs. Using Speech SDK Javascript.
For outputing the sound, im creating fromSpeakerOutput instance with custom iPlayer (as in docs).
const browserSound = new speechsdk.SpeakerAudioDestination();
const audioConfig = speechsdk.AudioConfig.fromSpeakerOutput(browserSound);
var synthesizer = new speechsdk.SpeechSynthesizer(speechConfig, audioConfig);
Issue is, i need some iPlayer customizations like pause, resume, stop current sound. I could see only pause and resume. Is there any way i could cancel current playing sound ?
Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|