Licence
Apache-2.0
Version
0.1.1
Deps
1
Size
33 kB
Vulns
0
Weekly
0
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-tts
import { 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.