Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import createRvencClient from "@premai/api-sdk"; import fs from "fs"; const client = await createRvencClient({ apiKey: process.env.API_KEY, clientKEK: process.env.CLIENT_KEK }); const audioFile = fs.createReadStream("./audio.mp3"); const transcription = await client.audio.transcriptions.create({ file: audioFile, model: "openai/whisper-large-v3", }); console.log(transcription.text);
const transcription = await client.audio.transcriptions.create({ file: audioFile, model: "openai/whisper-large-v3", language: "en", }); console.log(transcription.text);
const transcription = await client.audio.transcriptions.create({ file: audioFile, model: "openai/whisper-large-v3", language: "en", response_format: "verbose_json", timestamp_granularities: ["word", "segment"], }); console.log(transcription);
const transcription = await client.audio.transcriptions.create({ file: audioFile, model: "openai/whisper-large-v3", prompt: "This is a medical consultation discussing patient symptoms and treatment options.", }); console.log(transcription.text);