Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Swimburger committed Mar 21, 2024
1 parent 0133fa2 commit a52b51e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/plugins/assemblyAi/TranscribeAudioNode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { nanoid } from 'nanoid/non-secure';
import { dedent } from 'ts-dedent';
import { AssemblyAI } from 'assemblyai';
import type { TranscriptParams } from 'assemblyai';
import type { TranscribeParams, TranscriptParams } from 'assemblyai';
import {
type AnyDataValue,
type AudioDataValue,
Expand Down Expand Up @@ -118,7 +118,7 @@ export const TranscribeAudioNodeImpl: PluginNodeImpl<TranscribeAudioNode> = {
throw new Error('Audio input must be audio or string containing the audio URL.');
}

let transcriptParams: TranscriptParams = { audio: audioUrl };
let transcriptParams: TranscribeParams = { audio: audioUrl };
transcriptParams = { ...transcriptParams, ...getAdditionalParameters(data) };
const transcript = await client.transcripts.transcribe(transcriptParams);

Expand Down

0 comments on commit a52b51e

Please sign in to comment.