Generating
Speech
Generates audio from the input text.
npm i @xsai/generate-speechExamples
import { } from '@xsai/generate-speech'
import { } from 'node:buffer'
const = await ({
: 'http://localhost:5050',
: 'Hello, I am your AI assistant! Just let me know how I can help bring your ideas to life.',
: 'tts-1',
: 'en-US-AnaNeural',
})
const = .()