@micdrop/gradium
v1.0.2
Published
Gradium TTS implementation for @micdrop/server
Maintainers
Readme
@micdrop/gradium
Micdrop website | Documentation
Gradium TTS implementation for @micdrop/server.
Installation
npm install @micdrop/gradiumGradium TTS (Text-to-Speech)
Usage
import { GradiumTTS } from '@micdrop/gradium'
import { MicdropServer } from '@micdrop/server'
const tts = new GradiumTTS({
apiKey: process.env.GRADIUM_API_KEY || '',
voiceId: 'YTpq7expH9539ERJ', // Gradium voice ID
modelName: 'default', // Optional: model name
outputFormat: 'pcm_16000', // Optional: audio format
region: 'eu', // Optional: 'eu' or 'us'
jsonConfig: {
// Optional: advanced voice settings
temp: 0.7, // Temperature (0-1.4)
cfg_coef: 2.0, // Voice similarity (1.0-4.0)
padding_bonus: 0, // Speed control (-4.0 to 4.0)
},
})
// Use with MicdropServer
new MicdropServer(socket, {
tts,
// ... other options
})Documentation
Read full documentation of the Gradium integration for Micdrop on the website.
License
MIT
Author
Originally developed for Raconte.ai and open sourced by Lonestone (GitHub)
