Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Text-to-speech and speech-to-text
OpenAIVoiceProvider
ElevenLabsVoiceProvider
import { createOpenAIVoice, createElevenLabsVoice } from 'praisonai'; // OpenAI voice const openaiVoice = createOpenAIVoice({ apiKey: process.env.OPENAI_API_KEY }); // ElevenLabs voice const elevenLabsVoice = createElevenLabsVoice({ apiKey: process.env.ELEVENLABS_API_KEY });
const audio = await voice.speak({ text: 'Hello world', voice: 'alloy' // OpenAI voices: alloy, echo, fable, onyx, nova, shimmer });
const text = await voice.listen({ audio: audioBuffer });
praisonai-ts voice info praisonai-ts voice providers --json