microsoft / cognitive-services-speech-sdk-js

Microsoft Azure Cognitive Services Speech SDK for JavaScript
Other
252 stars 91 forks source link

[Bug]: SpeakerAudioDestination > onAudioEnd does not work #826

Open sinajia opened 1 month ago

sinajia commented 1 month ago

What happened?

function audioEnd () { console.log('audioEnd'); }

const player = new speechsdk.SpeakerAudioDestination(); player.onAudioEnd = audioEnd; const audioConfig = speechsdk.AudioConfig.fromSpeakerOutput(player); const synthesizer = new speechsdk.SpeechSynthesizer(speechConfig, audioConfig);

After the sound is played, the end event function is not executed.

Version

1.36.0 (Latest)

What browser/platform are you seeing the problem on?

Chrome

Relevant log output

No response