I've not found any way to determine when the audio has completed.
Am I missing something? All of the ResultReason options do not appear to support it or event out on audio playback complete.
Many thanks for any pointers in resolving this
EDIT:
related to #656 which is not resolved I see. This is a pretty important feature guys.
synthesizer.speakSsmlAsync(this.ssml, (result) => {
if (result.reason === ResultReason.SynthesizingAudioCompleted) {
//Testing
console.log('Speech not finished - just the actual Synthesis has finished.');
this.synchronizeVisemesWithAudio(result.audioData, audioContext);
} else {
console.error('Speech synthesis canceled:', result.errorDetails);
}
Version
1.29.0
What browser/platform are you seeing the problem on?
What happened?
I've not found any way to determine when the audio has completed. Am I missing something? All of the ResultReason options do not appear to support it or event out on audio playback complete.
Many thanks for any pointers in resolving this
EDIT: related to #656 which is not resolved I see. This is a pretty important feature guys.
Version
1.29.0
What browser/platform are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge, React
Relevant log output
No response