mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-30 20:05:29 +02:00
Update groq.js
This commit is contained in:
parent
452ac77f32
commit
adce9982de
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue