Skip to main content

Signatures

stop() is synchronous on Web, unlike the native SDKs where it is async.

Options

Autoplay

Browsers block audio that starts without a user gesture. speak() called on page load is silently suppressed by the browser, not by the SDK. Trigger it from a click, or prime an AudioContext on the first interaction and reuse it.

Playing it yourself

Saving to a file

Revoke the object URL when you are finished with it.

Stopping