Skip to content

Instantly share code, notes, and snippets.

@peterc
Created April 9, 2026 12:01
Show Gist options
  • Select an option

  • Save peterc/2cdb2ba30476858b5d2a9a041ddf884c to your computer and use it in GitHub Desktop.

Select an option

Save peterc/2cdb2ba30476858b5d2a9a041ddf884c to your computer and use it in GitHub Desktop.
Text-to-speech with tiny-tts (Node.js ESM example)
import TinyTTS from 'tiny-tts';
const tts = new TinyTTS();
await tts.speak('Hello, welcome to Node Weekly.', {
output: 'output.wav',
});
await tts.dispose();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment