Update groq.js

This commit is contained in:
Sweaterdog 2025-03-14 12:31:20 -07:00 committed by GitHub
parent 452ac77f32
commit adce9982de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ export class GroqCloudTTS {
async transcribe(filePath, options = {}) {
const transcription = await this.groq.audio.transcriptions.create({
file: fs.createReadStream(filePath),
model: options.model || "distil-whisper-large-v3-en", // or "whisper-large-v3-turbo", etc.
model: options.model || "distil-whisper-large-v3-en", // or "whisper-large-v3-turbo"
prompt: options.prompt || "",
response_format: options.response_format || "json",
language: options.language || "en",
@ -122,4 +122,4 @@ export class GroqCloudTTS {
});
return transcription.text;
}
}
}