Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assemblyai",
"version": "4.14.1",
"version": "4.14.2",
"description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.",
"engines": {
"node": ">=18"
Expand Down
4 changes: 4 additions & 0 deletions src/services/streaming/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ export class StreamingTranscriber {
searchParams.set("encoding", this.params.encoding.toString());
}

if (this.params.keyterms) {
searchParams.set("keyterms", JSON.stringify(this.params.keyterms));
}

url.search = searchParams.toString();

return url;
Expand Down
1 change: 1 addition & 0 deletions src/types/streaming/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type StreamingTranscriberParams = {
minEndOfTurnSilenceWhenConfident?: number;
maxTurnSilence?: number;
formatTurns?: boolean;
keyterms?: string[];
};

export type StreamingEvents = "open" | "close" | "turn" | "error";
Expand Down
Loading