Skip to content

Releases: AssemblyAI/assemblyai-node-sdk

v4.0.1

14 Dec 18:28
ffa9186
Compare
Choose a tag to compare

What's Changed

Added

  • Add "assemblyai/mistral-7b" to LemurModel type

Changed

  • Update types with @example
  • Update types with Format: uuid if applicable

Full Changelog: v4.0.0...v4.0.1

v4.0.0

08 Dec 18:10
5dcdb1c
Compare
Choose a tag to compare

What's changed

Added

  • Add node, deno, bun, browser, and workerd (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 and dist/assemblyai.umd.min.js. You can reference these script files directly in the browser and the SDK will be available at the global assemblyai variable.

Changed

  • RealtimeService.sendAudio accepts audio via type ArrayBufferLike.
  • 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

v4.0.0-beta.0

28 Nov 23:05
52eadc2
Compare
Choose a tag to compare
v4.0.0-beta.0 Pre-release
Pre-release

What's Changed

Added

  • Add browser and browser:min exports, at dist/index.umd.js and dist/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.sendAudio accepts audio via type ArrayBufferLike.
  • 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-beta.0

v3.1.3

26 Nov 07:26
f473053
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.1.2...v3.1.3

v3.1.2

24 Nov 20:53
6909ab4
Compare
Choose a tag to compare

What's Changed

Put default export last in package.json.

Full Changelog: v3.1.1...v3.1.2

v3.1.1

21 Nov 15:56
d352e51
Compare
Choose a tag to compare

What's Changed

Added

  • Add client.transcripts.transcribe function to transcribe an audio file with polling until transcript status is completed or error. This function takes an audio option which can be an audio file URL, path, stream, or buffer.
  • Add client.transcripts.submit function to queue a transcript. You can use client.transcripts.waitUntilReady to poll the transcript returned by submit. This function also takes an audio option which can be an audio file URL, path, stream, or buffer.

Changed

  • Deprecated client.transcripts.create in favor of transcribe and submit, to be more consistent with other AssemblyAI SDKs.
  • Renamed types
    • Renamed Parameters type suffix with Params type suffix
    • Renamed CreateTranscriptParameters to TranscriptParams
    • Renamed CreateTranscriptOptionalParameters to TranscriptOptionalParams.
  • Added deprecated aliases for the forementioned types
  • Improved type docs

Full Changelog: v3.1.0...v3.1.1

v3.1.0

16 Nov 17:32
3a25491
Compare
Choose a tag to compare

Added

  • Add AssemblyAI.transcripts.waitUntilReady function to wait until a transcript is ready, meaning status is completed or error.
  • Add chars_per_caption parameter to AssemblyAI.transcripts.subtitles function.
  • Add input_text property to LeMUR functions. Instead of using transcript_ids, you can use input_text to 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

30 Oct 18:36
5e244bc
Compare
Choose a tag to compare

What's Changed

Changed

  • The SDK uses fetch instead of Axios. This removes the Axios dependency. Axios relies on XMLHttpRequest which isn't supported in Cloudflare Workers, Deno, Bun, etc. By using fetch, 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 speaker property to the TranscriptUtterance type, and removed channel property.

Full Changelog: v3.0.0...v3.0.1

v3.0.0

24 Oct 16:19
387b1ac
Compare
Choose a tag to compare

Changed

  • AssemblyAI.files.upload accepts 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 AssemblyAI as a named import like this: import { AssemblyAI } from 'assemblyai'.

Full Changelog: v2.0.2...v3.0.0

v2.0.2

13 Oct 21:23
ea15913
Compare
Choose a tag to compare

What's Changed

  • AssemblyAI.transcripts.wordSearch searches for keywords in the transcript.
  • AssemblyAI.lemur.purgeRequestData deletes data related to your LeMUR request.
  • RealtimeService.stream creates 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