Skip to content

Commit ad3778e

Browse files
committed
fix: add abortSignal property to SpeechToTextInput and TextToSpeechInput types
1 parent caa928f commit ad3778e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

adminforth/types/adapters/AudioAdapter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export type SpeechToTextInput = {
44
mimeType: string;
55
language?: string;
66
prompt?: string;
7+
abortSignal?: AbortSignal;
78
};
89

910
export type SpeechToTextResult = {
@@ -34,6 +35,7 @@ export type TextToSpeechInput<Voice extends string = string> = {
3435
format?: TtsAudioFormat;
3536
speed?: number;
3637
instructions?: string;
38+
abortSignal?: AbortSignal;
3739
stream?: false;
3840
};
3941

0 commit comments

Comments
 (0)