Text-to-speech CLI powered by Cartesia AI with real-time streaming.
npm i -g ai-say-cli
pnpm blocks native module builds by default. After installing, run:
cd $(pnpm root -g)/.pnpm/@mastra+node-speaker@0.1.0/node_modules/@mastra/node-speaker
npx node-gyp rebuild
Get your API key from https://play.cartesia.ai/keys
export CARTESIA_API_KEY="your-key"
ai-say "Hello world"
echo "Piped text" | ai-say
ai-say -m sonic-3 "Use a different model"
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.