Skip to content

TTS v1.0.0 — Self-Contained WebAssembly Release

Choose a tag to compare

@izuc izuc released this 16 Nov 07:17
· 9 commits to main since this release

TTS v1.0.0 (tts.computer)

Single self-contained WebAssembly release (tts.wasm) — zero external WASM imports, zero models, zero audio samples, with the complete JavaScript TTS SDK embedded inside tts.wasm itself.

Release Assets

  • tts.wasm — standalone self-contained WebAssembly binary (~566 KB gzipped) with internal JS TTS glue (tts_glue_ptr / tts_glue_len) and raw C-ABI exports
  • tts.js — optional ES module loader (import init, { TTS } from "./tts.js")
  • tts.d.ts — full TypeScript declarations

4-Line Single-File HTML Embed (tts.wasm only)

<script type="module">
  const { instance: { exports: w } } = await WebAssembly.instantiateStreaming(fetch("./tts.wasm"));
  const { TTS } = Function("wasm", new TextDecoder().decode(new Uint8Array(w.memory.buffer, w.tts_glue_ptr(), w.tts_glue_len())))(w);

  const voice = new TTS();
  await voice.play("Hello from tts.computer!");
</script>