Skip to content

Commit

Permalink
✨ models: Add keywords in transcription option (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
lowczarc authored Feb 29, 2024
1 parent 4d7373a commit 2261f0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/transcribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type TranscriptionOptions = {
provider?: string;
language?: string;
outputFormat?: string;
keywords?: string[];
};

type Word = {
Expand Down Expand Up @@ -144,6 +145,7 @@ export function transcribe(
provider: options.provider,
language: options.language,
output_format: options.outputFormat,
keywords: options.keywords,
file_path: fileName,
},
{
Expand Down

0 comments on commit 2261f0e

Please sign in to comment.