@micdrop/elevenlabs
v1.1.1
Published
ElevenLabs implementation for @micdrop/server
Downloads
2,262
Maintainers
Readme
@micdrop/elevenlabs
Micdrop website | Documentation
ElevenLabs implementation for @micdrop/server.
Installation
npm install @micdrop/elevenlabsElevenLabs TTS (Text-to-Speech)
Usage
import { ElevenLabsTTS } from '@micdrop/elevenlabs'
import { MicdropServer } from '@micdrop/server'
const tts = new ElevenLabsTTS({
apiKey: process.env.ELEVENLABS_API_KEY || '',
voiceId: '21m00Tcm4TlvDq8ikWAM', // ElevenLabs voice ID
modelId: 'eleven_turbo_v2_5', // Optional: model to use
language: 'en', // Optional: language code
voiceSettings: {
stability: 0.5,
similarity_boost: 0.75,
style: 0.5,
},
})
// Use with MicdropServer
new MicdropServer(socket, {
tts,
// ... other options
})Documentation
Read full documentation of the ElevenLabs integration for Micdrop on the website.
License
MIT
Author
Originally developed for Raconte.ai and open sourced by Lonestone (GitHub)
