Skip to content

[Bug]: Browser: SpeakerAudioDestination.pause() and .mute() do not always pause or mute synthesized audio #1000

@mattflaschen

Description

@mattflaschen

What happened?

I am using SpeakerAudioDestination (based on https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/633b8fd841a98deeb8b22319271487dffd518755/samples/js/browser/public/synthesis.html#L341 ) to pause TTS audio from SpeechSynthesizer (actually, I want to stop it, but I am using this method for now).

If I call SpeakerAudioDestination .pause() early enough in the playback, it stops playing immediately. If I call it later (closer to the end of the playback), it does not pause at all.

I recommending testing this with a fairly long message (at least 4 or 5 paragraphs), and pausing near the end.

OS: Windows 11
Browser: Edge 146.0.3856.84 (64-bit)

Version

1.48.0 (Latest, Default)

What browser/platform are you seeing the problem on?

Microsoft Edge

Relevant log output

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions