Releases: AssemblyAI/assemblyai-node-sdk
Releases · AssemblyAI/assemblyai-node-sdk
v4.0.0-beta.0
What's Changed
Added
- Add
browserandbrowser:minexports, atdist/index.umd.jsanddist/index.umd.min.js. These exports are browser compatible versions of the SDK, with a few limitations. You can't use the file system and you have to use a temporary auth token with the real-time transcriber.
Changed
RealtimeService.sendAudioaccepts audio via typeArrayBufferLike.- Breaking:
RealtimeService.streamreturns a WHATWG Streams Standard stream, instead of a Node stream. In the browser, the native web standard stream will be used. wsis 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-beta.0
v3.1.3
v3.1.2
v3.1.1
What's Changed
Added
- Add
client.transcripts.transcribefunction to transcribe an audio file with polling until transcript status iscompletedorerror. This function takes anaudiooption which can be an audio file URL, path, stream, or buffer. - Add
client.transcripts.submitfunction to queue a transcript. You can useclient.transcripts.waitUntilReadyto poll the transcript returned bysubmit. This function also takes anaudiooption which can be an audio file URL, path, stream, or buffer.
Changed
- Deprecated
client.transcripts.createin favor oftranscribeandsubmit, to be more consistent with other AssemblyAI SDKs. - Renamed types
- Renamed
Parameterstype suffix withParamstype suffix - Renamed
CreateTranscriptParameterstoTranscriptParams - Renamed
CreateTranscriptOptionalParameterstoTranscriptOptionalParams.
- Renamed
- Added deprecated aliases for the forementioned types
- Improved type docs
Full Changelog: v3.1.0...v3.1.1
v3.1.0
Added
- Add
AssemblyAI.transcripts.waitUntilReadyfunction to wait until a transcript is ready, meaningstatusiscompletedorerror. - Add
chars_per_captionparameter toAssemblyAI.transcripts.subtitlesfunction. - Add
input_textproperty to LeMUR functions. Instead of usingtranscript_ids, you can useinput_textto provide custom formatted transcripts as input to LeMUR.
Changed
- Change default timeout from 3 minutes to infinite (-1). Fixes #17
Fixed
- Correctly serialize the keywords for
client.transcripts.wordSearch. - Use more widely compatible syntax for wildcard exporting types. Fixes #18.
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
Changed
- The SDK uses
fetchinstead of Axios. This removes the Axios dependency. Axios relies on XMLHttpRequest which isn't supported in Cloudflare Workers, Deno, Bun, etc. By usingfetch, the SDK is now more compatible on the forementioned runtimes.
Fixed
- The SDK uses relative imports instead of using path aliases, to make the library transpilable with tsc for consumers. Fixes #14.
- Added
speakerproperty to theTranscriptUtterancetype, and removedchannelproperty.
Full Changelog: v3.0.0...v3.0.1
v3.0.0
Changed
AssemblyAI.files.uploadaccepts streams and buffers, in addition to a string (path to file).
Removed
- Breaking: The module does not have a default export anymore, because of inconsistent functionality across module systems. Instead, use
AssemblyAIas a named import like this:import { AssemblyAI } from 'assemblyai'.
Full Changelog: v2.0.2...v3.0.0
v2.0.2
What's Changed
AssemblyAI.transcripts.wordSearchsearches for keywords in the transcript.AssemblyAI.lemur.purgeRequestDatadeletes data related to your LeMUR request.RealtimeService.streamcreates a writable stream that you can write audio data to instead of using RealtimeService.sendAudio.- Fix where the AssemblyAI class would be exported as default named export instead in certain module systems.
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
- Release TS SDK 2.0 in #8
- Add transcript API client
- Add LeMUR API client
- Add real-time transcript client
Full Changelog: https://github.com/AssemblyAI/assemblyai-node-sdk/commits/v2.0.1