Overview
vn-tts turns text into visual-novel-style sine-wave beeps locally in the browser or Node. Each character becomes a short pitched tone: vowels longer and softer, consonants shorter and sharper.
How It Works
- Characters map to pitched sine-wave tones with simple attack and release envelopes.
- The output is stylized VN gibberish, not intelligible speech.
- Zero runtime dependencies; ships as
@phantasy/vn-ttson npm.
Hard Parts
The challenge is making the beeps feel lively without turning into noise. Timing, pitch variation, and volume differences between vowels and consonants need to stay readable at typewriter speed.
Results
vn-tts powers the portfolio hero typewriter audio and is an optional TTS provider in Phantasy. The demo playground makes it easy to tune pitch and speed before wiring it into a product surface.