Skip to content

Commit 0724496

Browse files
authored
Merge pull request #99 from AssemblyAI/61C6D6CA2C0CC6A8F8859B5BFCBA61A5
Sync from internal repo (2025/07/30)
2 parents 52b6155 + aa44dca commit 0724496

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "assemblyai",
3-
"version": "4.14.1",
3+
"version": "4.14.2",
44
"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.",
55
"engines": {
66
"node": ">=18"

src/services/streaming/service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ export class StreamingTranscriber {
105105
searchParams.set("encoding", this.params.encoding.toString());
106106
}
107107

108+
if (this.params.keyterms) {
109+
searchParams.set("keyterms", JSON.stringify(this.params.keyterms));
110+
}
111+
108112
url.search = searchParams.toString();
109113

110114
return url;

src/types/streaming/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type StreamingTranscriberParams = {
1010
minEndOfTurnSilenceWhenConfident?: number;
1111
maxTurnSilence?: number;
1212
formatTurns?: boolean;
13+
keyterms?: string[];
1314
};
1415

1516
export type StreamingEvents = "open" | "close" | "turn" | "error";

0 commit comments

Comments
 (0)