xsAI v0.3 "future base" is now available! Read Announcement
xsAI0.4.0-beta.1
Generating

Speech

Generates audio from the input text.

install sizeminified sizeminzipped size
npm i @xsai/generate-speech

Examples

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  = .()

On this page