60db
v1.0.5
Published
Official 60db SDK for Node.js
Readme
60db
Official 60db SDK for JavaScript/TypeScript
Installation
npm install 60dbQuick Start
import { SixtyDBClient } from '60db';
const client = new SixtyDBClient('your-api-key');
// Text to Speech
const audio = await client.textToSpeech({
text: 'Hello, world!',
voice_id: 'default-voice',
speed: 1.0 // 0.5 to 2.0 (default 1.0)
});
// Get all voices
const voices = await client.getVoices();
// Get all lanuages
const lanuages = await client.getLanguages();
API Methods
Text-to-Speech
textToSpeech(params)- Convert text to speech
Speech-to-Text
speechToText(audio, options)- Transcribe audiogetLanguages()- Get supported languages
Voices
getVoices()- List all voicesgetVoice(id)- Get specific voice
Languages
getLanguages()- List all languages
License
MIT
