@runapi.ai/gemini-tts
v0.1.3
Published
RunAPI Gemini TTS SDK for multi-speaker speech generation in JavaScript, Python, Ruby, Go, Java, and PHP
Maintainers
Readme
Gemini TTS JavaScript SDK for RunAPI
Install @runapi.ai/gemini-tts to generate multi-speaker speech with typed JavaScript and TypeScript requests.
npm install @runapi.ai/gemini-ttsimport { GeminiTtsClient } from '@runapi.ai/gemini-tts';
const client = new GeminiTtsClient();
const result = await client.textToSpeech.run({
model: 'gemini-3.1-flash-tts',
speakers: [{ speaker_id: 'Speaker 1', voice_name: 'Puck', accent: 'Neutral', style: 'Newscaster', pace: 'Natural' }],
dialogue_turns: [{ speaker_id: 'Speaker 1', text: 'Today in brief.' }],
});See the model page and API reference. Licensed under Apache-2.0.
