Releases: AssemblyAI/assemblyai-node-sdk
Releases · AssemblyAI/assemblyai-node-sdk
v4.2.2
What's Changed
Changed
- Windows paths passed to
client.transcripts.transcribe
andclient.transcripts.submit
will work as expected.
Full Changelog: v4.2.1...v4.2.2
v4.2.1
What's Changed
Added
- Add
answer_format
toLemurActionItemsParams
type
Changed
- Rename
RealtimeService
toRealtimeTranscriber
,RealtimeServiceFactory
toRealtimeTranscriberFactory
,RealtimeTranscriberFactory.createService()
toRealtimeTranscriberFactory.transcriber()
. Deprecated aliases are provided for all old types and functions for backwards compatibility. - Restrict the type for
redact_pii_audio_quality
fromstring
toRedactPiiAudioQuality
an enum string.
Full Changelog: v4.2.0...v4.2.1
v4.2.0
Added
- Add
content_safety_confidence
toTranscriptParams
&TranscriptOptionalParams
.
Changed
- The
RealtimeService
now sends audio as binary instead of a base64-encoded JSON object.
v4.1.0
What's Changed
Added
- Add
"anthropic/claude-2-1"
toLemurModel
type - Add
encoding
option to the real-time service and factory.encoding
can be"pcm_s16le"
or"pcm_mulaw"
. "pcm_mulaw"
is a newly supported audio encoding for the real-time service.
Changed
- Allow any string into
final_model
for LeMUR requests
@Swimburger in #29
Full Changelog: v4.0.1...v4.1.0
v4.0.1
What's Changed
Added
- Add
"assemblyai/mistral-7b"
toLemurModel
type
Changed
- Update types with
@example
- Update types with
Format: uuid
if applicable
Full Changelog: v4.0.0...v4.0.1
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
v4.0.0-beta.0
What's Changed
Added
- Add
browser
andbrowser:min
exports, atdist/index.umd.js
anddist/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 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-beta.0
v3.1.3
v3.1.2
v3.1.1
What's Changed
Added
- Add
client.transcripts.transcribe
function to transcribe an audio file with polling until transcript status iscompleted
orerror
. This function takes anaudio
option which can be an audio file URL, path, stream, or buffer. - Add
client.transcripts.submit
function to queue a transcript. You can useclient.transcripts.waitUntilReady
to poll the transcript returned bysubmit
. This function also takes anaudio
option which can be an audio file URL, path, stream, or buffer.
Changed
- Deprecated
client.transcripts.create
in favor oftranscribe
andsubmit
, to be more consistent with other AssemblyAI SDKs. - Renamed types
- Renamed
Parameters
type suffix withParams
type suffix - Renamed
CreateTranscriptParameters
toTranscriptParams
- Renamed
CreateTranscriptOptionalParameters
toTranscriptOptionalParams
.
- Renamed
- Added deprecated aliases for the forementioned types
- Improved type docs
Full Changelog: v3.1.0...v3.1.1