Loading the Kaya editor…
// Uses the Speech model you configure in Settings → Speech.
let narration = generateAudio(
prompt: "Welcome to the Robot Book Club. Today, we explore the greatest sports plays.",
filename: "narration.mp3"
)
"Saved narration: {{narration.filename}} ({{narration.mimeType}}, {{narration.size}} bytes)"