Vocal engine (wauvio/vocal)
Vocal engine overview
The vocal engine (wauvio/vocal/) is a formant/glottal-source singing and speech synthesiser for Japanese, built around the character Yune. It does not use samples: it models the voice (glottal source, vocal-tract formants, consonant articulation, pitch and expression) and renders it from notes with kana, romaji or phoneme lyrics. It exists in three generations that can coexist in one program.
See it in action: Hello, singer · Make it expressive
Generations
| Generation | Namespace | Header | Adds |
|---|---|---|---|
| v1 | wauvio::vocal::v1 | vocal/v1.hpp | Core singer: kana/romaji lyrics, pitch curves with vibrato, portamento and scoops, a single built-in voice, MIDI-lyric loading, SingerInstrument |
| v2 | wauvio::vocal::v2 | vocal/v2.hpp | Direct upgrade of v1: voice profiles and personas, .wvc voicebanks, expression lanes, events (laugh, sob, …), speech (say), humanisation, natural(), auto-expression, phoneme input, mic model, 5 voices |
| v3 | wauvio::vocal::v3 | vocal/v3.hpp, vocal/v3_fx.hpp | Streaming render (VoiceStream), coarticulation and consonant loci, pitch accent, particles, Ensemble (harmonies, doubles), transposed()/doubled(), vocal FX chains, diagnostics, 7 voices |
Choosing a generation
- Include
vocal/v1.hpp,v2.hpporv3.hppdirectly to use a specific generation; they can be included together. vocal/v3_fx.hpp= v3 +wauvio/fx.hpp+ the ready-made vocal chain.wauvio/vocal.hppdefineswauvio::vocal::currentas an alias. In this source it aliases v2 (it includesvocal/v2.hppand setsnamespace current = v2), although its comment describes it as the latest generation and mentions av4.hpp; no v4 exists in the source tree. For the newest engine usewauvio::vocal::v3explicitly.
Dependencies
Each generation includes wauvio.hpp (core), ext/core/core.hpp (for music::Instrument, Articulation) and midi/core.hpp (the light MIDI file model, to read lyric tracks). v3’s FX chain additionally needs wauvio/fx.hpp, which is why it is a separate header.
Quick start (v3)
#include "wauvio/vocal/v3.hpp"
using namespace wauvio::vocal::v3;
Singer s; // default voice: Yune
s.set_tempo(120);
s.natural(); // living-voice imperfections (voice's recommended strength)
s.auto_expression();
s.note(69, 480, "さ");
s.note(71, 480, "く");
s.note(72, 960, "ら");
s.save("sakura.wav");