v4.0.0
What's changed
Added
- Add
node
,deno
,bun
,browser
, andworkerd
(Cloudflare Workers) exports to package.json. These exports are compatible versions of the SDK, with a few limitations in some cases. For more details, consult the SDK Compatibility document. - Add
dist/assemblyai.umd.js
anddist/assemblyai.umd.min.js
. You can reference these script files directly in the browser and the SDK will be available at the globalassemblyai
variable.
Changed
RealtimeService.sendAudio
accepts audio via typeArrayBufferLike
.- Breaking:
RealtimeService.stream
returns a WHATWG Streams Standard stream, instead of a Node stream. In the browser, the native web standard stream will be used. ws
is used as the WebSocket client as before, but in the browser, the native WebSocket client is used.- Rename Node SDK to JavaScript SDK as the SDK is compatible with more runtimes now.
Full Changelog: v3.1.3...v4.0.0