Skip to content

Commit aa44dca

Browse files
AssemblyAIgsharp-aai
authored andcommitted
Project import generated by Copybara.
GitOrigin-RevId: 6b949ee3406ef80df55f71d722f407775d25909f
1 parent 52b6155 commit aa44dca

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)