Vocal engine (wauvio/vocal)

v2 — differences from v1

Namespace wauvio::vocal::v2, header vocal/v2.hpp, sources in vocal/yune-v2/. v2 is a direct upgrade of v1: the same synthesiser and the same Singer/NoteRef shape, extended with voice profiles and a layer of expression controls. It is not the current engine: v3 reworks the articulation and adds streaming and ensembles, and is the one to use for new work. This page lists only what v2 changes relative to v1.

Reading guide. The concepts v2 introduced (Style expression fields, personas, lanes, events, .wvc voicebanks) are documented in full on the v3 pages, since v3 keeps them. Links below point there; each item is marked as introduced in v2.

Compatible with v1

  • Same Singer score-building API (note, note_sec, note_at, rest, style(), parse_options(), seed, phrase_pitch_curve, MIDI loading, render/render_stereo/save) and the same NoteRef setters.
  • All new Style fields default to “off”, so a default Style renders as v1 does.
  • Same limits as v1: a NoteRef is valid only until the next note is added (notes are in a std::vector), and there is no streaming render.

Added in v2

Voices

  • Voice profiles. v1 has one hard-wired voice; v2 adds VoiceProfile (model, default look, lyric defaults, personas, recommended natural strength), Singer::set_profile() and a Singer(VoiceProfile) constructor. Singer() defaults to Yune. SingerInstrument gains a profile member (replacing v1’s voice_model). See Voices, personas and voicebanks.
  • Five built-in voices: yune, yune-old, reiha, koharu, itsuki (v3 later adds mio and akari).
  • .wvc voicebanks — export/load voices as text (save_profile, load_profile, make_voice); shipped in yune-v2/voicebanks/.
  • Personas — named, bounded variations of a voice’s look (PersonaLibrary, Singer::persona, persona_blend, persona_lane, per-note persona/persona_morph).
  • VoiceModel changes: name becomes a std::string, and the engine gains per-voice gains in a Tune struct (out_scale, asp_gain, fric_gain, upper_gain, sing_gain, air_gain, pre_gain, f23_gain), so voices tune independently and rendering is thread-safe.

Expression

  • New Style fields (Style): formant_shift, mouth_open, growl, tremor/tremor_rate, fry, air, reg/reg_auto, glottal_onset, pitch_loud, pitch_snap, undershoot, porta_interval, exit_fall_min, bidakuon, n_nasalize, mumble, transition_speed, vv_glide, devoice_max, mora_weighting, glottal_final, grit, natural. In v2, n_nasalize and mora_weighting default to 0 (off).
  • Automation lanes (lane, per note and Singer-wide) over named channels, plus phrase_arc.
  • NoteRef additions: growl, tremor, fry, breathy, falsetto, formant_shift, mouth_open, hard_onset, ornament, lane, persona, persona_morph.
  • Humanisation: humanize(), natural(), auto_expression() (Expression).
  • Ornaments: fall, doit, shakuri, scoop_in, kobushi, turn, trill, mordent.
  • Mic model (mic.hpp): proximity, air, de-esser, mouth noise.

Speech and events

  • Singer::say() — spoken utterances with intonation contours (statement, question, flat, trail, emphatic, ne, yo, ka, no). v2 has no pitch-accent argument.
  • Events (event() and <tag> lyrics): laugh, giggle, sob, hum, shout, kyaa and interjections.

Lyrics

  • Phoneme input {k a n a} with *strength and @weight overrides, time weights さ[0.7]ん[0.3], the cute parse option, and the [ŋ] sound (ng) (Lyric input).

Diagnostics and tools

  • Singer::diagnostics().
  • New tools/voice_tool.cpp and tools/listen.cpp; sing_score gains the score commands for the new features (Tools).

Still not in v2 (added by v3)

Streaming render (VoiceStream), Ensemble, transposed()/doubled(), consonant locus equations and coarticulation, Tokyo pitch accent in say(), the particles option, the [v] consonant, the new vibrato controls (vib_am, vib_shape, vib_accel), the FX chain, extra voices, and a stable NoteRef (std::deque storage). See the overview for the full comparison.

API listing (files new or changed in v2)

Declarations for the v2 headers that did not exist in v1, plus the changed singer.hpp. Unchanged-in-spirit files (japanese, pitch, synth) are in the v1 listing and the v3 pages.

wauvio/vocal/yune-v2/singer.hpp

wauvio::vocal::v2::Free functions, constants and aliases

class Singer;

wauvio::vocal::v2::class NoteRef

// Returned by Singer::note(); chain setters to tweak that one note.
// Valid only until the next call that adds a note to the same Singer.
class NoteRef
public:
    NoteRef(SynthNote& n, const PersonaLibrary* lib) : n_(n), lib_(lib) {}
    NoteRef& velocity(float v)             { n_.vel = v; return *this; }
    NoteRef& articulation(wauvio::music::Articulation a) { n_.art = a; return *this; }
    NoteRef& vibrato(float depth_st, float rate_hz = -1.f, float delay_s = -1.f, float fade_s = -1.f)
    NoteRef& no_vibrato()                  { n_.style.vibrato_depth = 0.f; return *this; }
    NoteRef& portamento(float seconds)     { n_.style.portamento = seconds; return *this; }
    NoteRef& glide_from(double midi)       { n_.glide_from = midi; return *this; }
    NoteRef& bend(const Curve& semitones_vs_seconds) { n_.bend = semitones_vs_seconds; return *this; }
    NoteRef& overshoot(float o)            { n_.style.overshoot = o; return *this; }
    NoteRef& scoop(float semitones)        { n_.style.scoop = semitones; return *this; }
    Style&   style()                       { return n_.style; }
    // V2: expression and automation. Names: volume, brightness, breathiness, tension, formant,
    // mouth, growl, tremor, fry, air, register, plus "pitch" (semitones). Curve time = seconds
    // from the note start.
    NoteRef& lane(const std::string& name, const Curve& c)
    // Persona for this note only (moves its look toward the persona by `amount`).
    NoteRef& persona(const std::string& name, float amount = 1.f) { if (lib_) apply_persona(*lib_, n_.style, name, amount); return *this; }
    // Morph this note's look toward a persona over time. amount: 0..1 vs seconds from note start.
    // Only channel-capable fields move inside a note (see persona_morph_lanes).
    NoteRef& persona_morph(const std::string& name, const Curve& amount)
    NoteRef& growl(float v)         { n_.style.growl = v; return *this; }
    NoteRef& tremor(float v, float rate_hz = -1.f) { n_.style.tremor = v; if (rate_hz > 0) n_.style.tremor_rate = rate_hz; return *this; }
    NoteRef& fry(float v)           { n_.style.fry = v; return *this; }
    NoteRef& breathy(float v)       { n_.style.breathiness = v; return *this; }
    NoteRef& falsetto(float v)      { n_.style.reg = v; return *this; }
    NoteRef& formant_shift(float st){ n_.style.formant_shift = st; return *this; }
    NoteRef& mouth_open(float v)    { n_.style.mouth_open = v; return *this; }
    NoteRef& hard_onset(float v)    { n_.style.glottal_onset = v; return *this; }
    // Pitch ornament: fall, doit, shakuri, scoop_in, kobushi, turn, mordent, trill. depth scales size.
    NoteRef& ornament(const std::string& name, float depth = 1.f)

wauvio::vocal::v2::class Singer

class Singer
public:
    Singer() { set_profile(voice_yune()); }          // Yune is the default voice
    explicit Singer(const VoiceProfile& p) { set_profile(p); }
    // Switch character: model, default look, lyric defaults and personas all come from the profile.
    // Call before adding notes (the default look applies to notes added afterwards).
    Singer& set_profile(const VoiceProfile& p) { profile_ = p; voice_ = p.model; style_ = p.style; popt_ = p.parse; return *this; }
    const VoiceProfile& profile() const { return profile_; }
    const PersonaLibrary& personas() const { return profile_.personas; }
    // Engine-level override of the tract model only (keeps the profile's personas and look).
    Singer& set_voice(const VoiceModel& v) { voice_ = v; return *this; }
    const VoiceModel& voice() const { return voice_; }
    Singer& set_tempo(double bpm, int ticks_per_quarter = 480) { bpm_ = bpm; ppq_ = ticks_per_quarter; return *this; }
    Style& style() { return style_; }                 // defaults applied to notes added afterwards
    const Style& style() const { return style_; }
    ParseOptions& parse_options() { return popt_; }
    Singer& phrase_pitch_curve(const Curve& semitones_vs_seconds) { phrase_curve_ = semitones_vs_seconds; return *this; }
    Singer& seed(uint32_t s) { seed_ = s; return *this; }
    // V2 personas. These move the Singer's default look for notes added afterwards.
    Singer& persona(const std::string& name, float amount = 1.f) { apply_persona(profile_.personas, style_, name, amount); return *this; }
    Singer& persona_blend(const std::string& a, const std::string& b, float t, float amount = 1.f) { apply_persona_blend(profile_.personas, style_, a, b, t, amount); return *this; }
    // Persona automation over the whole song: amount (0..1) vs absolute seconds, relative to the
    // current default look. Drive verse/chorus changes without re-annotating notes.
    Singer& persona_lane(const std::string& name, const Curve& amount)
    // V2: small deterministic imperfections in timing, length and tuning. Different seeds = different takes.
    Singer& humanize(double timing_s = 0.012, double pitch_st = 0.05, double length = 0.03, double bias_s = 0.0, uint32_t take = 1)
    // V2: one call for a more living voice. amount 0..1 sets the `natural` voice control (jitter, wander, irregular
    // vibrato) AND per-note human imperfections (timing, tuning, entry error, length, phrase breath pressure).
    // `take` picks a different performance. amount 0 turns it off.
    Singer& natural(float amount = -1.f, uint32_t take = 1) {      // amount < 0: the voice's recommended strength
    // V2: rule-based expression (vibrato shape, phrase-end, dynamics). Only fills fields left at defaults.
    Singer& auto_expression(bool on = true, double phrase_gap = 0.30) { auto_.on = on; auto_.phrase_gap = phrase_gap; return *this; }
    AutoExpr& auto_expression_options() { return auto_; }
    // V2: volume shape over [t0,t1] seconds: "arch", "crescendo", "decrescendo", "swell".
    Singer& phrase_arc(const std::string& kind, double t0, double t1, float depth = 1.f)
    // V2 speech: one utterance at `base_midi`. kind: statement, question, flat, trail, emphatic, ne, yo, ka, no.
    // Intonation moves pitch only; vibrato and scoop are off, morae are weighted by type.
    NoteRef say(const std::string& text, double seconds, const std::string& kind = "statement", int base_midi = 64, float velocity = 0.7f)
    // Problems worth knowing about before rendering (empty = none).
    std::vector<std::string> diagnostics() const
    // V2: Singer-wide automation lane (absolute seconds). See NoteRef::lane for names.
    Singer& lane(const std::string& name, const Curve& c)
    NoteRef note(int midi, int ticks, const std::string& lyric, float velocity = 0.75f)
    Singer& rest(int ticks) { cursor_ += ticks_to_sec(ticks); return *this; }
    NoteRef note_sec(int midi, double seconds, const std::string& lyric, float velocity = 0.75f)
    Singer& rest_sec(double seconds) { cursor_ += seconds; return *this; }
    // V2 events at the cursor: laugh, giggle, sob, hum, shout, kyaa and
    // interjections (ah, eh, un, fuun, uun, eeto, ano, waa, hya, hee, eee, maa). Same as the lyric
    // tag, e.g. note_sec(69, 1.2, "<laugh>"). `variant` and extra "key=value" go in the tag.
    NoteRef event(const std::string& kind, int midi, double seconds, float intensity = 0.6f, const std::string& variant = "")
    // Absolute placement; the cursor moves to the end of the note.
    NoteRef note_at(double start_sec, int midi, double seconds, const std::string& lyric, float velocity = 0.75f)
    void clear() { notes_.clear(); cursor_ = 0.0; phrase_curve_.clear(); lanes_.clear(); }
    size_t size() const { return notes_.size(); }
    const std::vector<SynthNote>& notes() const { return notes_; }
    double cursor() const { return cursor_; }
    double ticks_to_sec(int ticks) const { return static_cast<double>(ticks) / ppq_ * 60.0 / bpm_; }
    using TapFn = std::function<void(const Buffer&, int)>;
    static TapFn& render_tap() { static TapFn f; return f; }
    Buffer render(int sample_rate = 0) const
    Buffer render_impl(int sample_rate) const
    StereoBuffer render_stereo(int sample_rate = 0) const
    void save(const std::string& path, int sample_rate = 0) const
    // Reads notes (and Lyric/Text meta events) from one track of a parsed MIDI
    // file. track < 0 picks the first track that contains lyrics. Notes without a
    // lyric continue the previous vowel (melisma). Lyrics may be UTF-8 or
    // Shift-JIS kana. Returns the number of notes added.
    size_t load_midi_track(const midi::ParsedMidiFile& f, int track = -1)
    size_t load_midi_file(const std::string& path, int track = -1)

wauvio::vocal::v2::class SingerInstrument

// Drop-in for Arrangement / MidiMusic parts: renders ONE note with a fixed lyric
// (no coarticulation with neighbouring notes; use Singer for phrases).
class SingerInstrument : public wauvio::music::Instrument
public:
    std::string lyric = "あ";
    Style style;
    VoiceProfile profile = voice_yune();   // which character sings (default Yune)
    SingerInstrument() { name = "Japanese Female Singer"; }
    explicit SingerInstrument(std::string lyr) : lyric(std::move(lyr)) { name = "Japanese Female Singer"; }
    StereoBuffer render_note(const wauvio::music::Note& n, int sample_rate = 0) const override
    std::vector<wauvio::music::Articulation> supported_articulations() const override

wauvio/vocal/yune-v2/persona.hpp

wauvio::vocal::v2::Free functions, constants and aliases

// A persona is a named, absolute "look" for the expressive Style fields. A voice stays itself:
// the identity (VoiceModel: tract proportions, vowel centres, source family) is not touched,
// and persona values are kept inside a bounded envelope.
// Blending lerps the expressive fields only; volume, velocity response, compression and
// devoicing are never changed by a persona.
inline const std::vector<float Style::*>& expressive_fields()
// lerp on the expressive fields. Vibrato fields use -1 as "voice default": if only one side
// is explicit the explicit value wins, so blending never produces a negative depth by accident.
inline Style blend_expressive(const Style& a, const Style& b, float t)

wauvio::vocal::v2::struct Persona

struct Persona
    std::string name;
    Style look;     // absolute values for the expressive fields

wauvio::vocal::v2::class PersonaLibrary

class PersonaLibrary
public:
    PersonaLibrary() = default;     // empty; each voice (voices/voice-*.hpp) supplies its own personas
    void add(const std::string& name, const Style& look) { map_[name] = Persona{ name, look }; }
    const Persona* find(const std::string& name) const { auto it = map_.find(name); return it == map_.end() ? nullptr : &it->second; }
    std::vector<std::string> names() const { std::vector<std::string> v; for (auto& kv : map_) v.push_back(kv.first); return v; }
    // Text format (one persona per block):
    //   persona sweet
    //   brightness 0.78      # any Style field name, others stay at the Normal look
    // Returns the number of personas read.
    size_t load(const std::string& path)
    bool save(const std::string& name, const std::string& path, bool append = false) const
// Moves the expressive fields of `s` toward persona `name` by `amount` (0..1). Unknown names
// are ignored (returns false).
inline bool apply_persona(const PersonaLibrary& lib, Style& s, const std::string& name, float amount = 1.f)
// Blend of two personas (t = 0 -> a, 1 -> b), then moved toward by `amount`.
inline bool apply_persona_blend(const PersonaLibrary& lib, Style& s, const std::string& a, const std::string& b, float t, float amount = 1.f)
// Lanes that morph a note's current look toward persona `name` over time. `amount` is a
// curve of 0..1 vs seconds. Only fields that have a render-level channel can move inside a
// note: brightness, breathiness, tension, volume, growl, fry, air, register, formant shift,
// mouth opening. Values are converted into the channel's own units.
inline std::vector<Lane> persona_morph_lanes(const Style& cur, const Persona& p, const Curve& amount, double t_end, double t_begin = 0.0)

wauvio/vocal/yune-v2/expr.hpp

wauvio::vocal::v2::enum class Ch

// Render-level expression channels. They are additive around a neutral zero, so an
// all-zero track is a no-op (the V1 render path is taken untouched).
enum class Ch : int
    Volume, Brightness, Breath, Tension, FormantShift, MouthOpen,
    Growl, Tremor, Fry, Air, Register, RegAuto, Natural, N
constexpr int N_CH = static_cast<int>(Ch::N);

wauvio::vocal::v2::struct Lane

// An automation lane: a Curve on one channel. Note lanes use seconds from the note
// start; Singer-wide lanes use absolute seconds.
struct Lane { Ch ch = Ch::Volume; Curve curve; };
inline bool channel_from_name(const std::string& n, Ch& out)

wauvio::vocal::v2::struct Expr

struct Expr
    std::array<float, N_CH> v{};
    float tremor_rate = 9.f;
    float operator[](Ch c) const { return v[static_cast<size_t>(c)]; }

wauvio::vocal::v2::class ExprTrack

class ExprTrack
public:
    std::vector<Expr> data;     // one sample per ms (PITCH_RATE)
    bool any = false;
    Expr at(double t) const

wauvio::vocal::v2::struct ExprNote

struct ExprNote
    double start = 0.0, end = 0.0;
    Style style;
    std::vector<Lane> lanes;
inline double expr_smooth(double x) { x = x < 0 ? 0 : (x > 1 ? 1 : x); return x * x * (3 - 2 * x); }
// Builds the expression track from per-note Style fields, per-note lanes and global lanes.
inline ExprTrack build_expr_track(const std::vector<ExprNote>& notes, const std::vector<Lane>& global,
                                  double total_seconds)

wauvio/vocal/yune-v2/expression.hpp

wauvio::vocal::v2::Free functions, constants and aliases

//   fall, doit, shakuri, scoop_in, kobushi, turn, trill, mordent
// `depth` scales the size (1 = typical). Unknown names return an empty curve.
inline Curve make_ornament(const std::string& name, double dur, float depth = 1.f)

wauvio::vocal::v2::struct Humanize

struct Humanize
    bool   on = false;
    double timing = 0.0;    // s, spread of note-start offsets
    double bias = 0.0;      // s, constant push (+ late / lazy, - ahead)
    double length = 0.0;    // fraction, spread of note-length changes
    double pitch = 0.0;     // semitones, spread of per-note tuning offsets
    double tone = 0.0;      // 0..1: per-note random brightness / breathiness / mouth-opening (no two notes sound identical)
    double entry = 0.0;     // semitones, spread of the pitch error a note starts with (corrected within ~90 ms)
    double pressure = 0.0;  // 0..1: breath pressure sags over a phrase (slightly quieter and flatter toward its end)
    double phrase_gap = 0.30; // s of silence that starts a new phrase
    uint32_t seed = 1;      // different seed = a different "take"
    inline float hash01(uint32_t x) { x ^= x >> 16; x *= 0x7feb352dU; x ^= x >> 15; x *= 0x846ca68bU; x ^= x >> 16; return static_cast<float>(x & 0xFFFFFF) / 16777216.f; }
    inline float sym3(uint32_t seed, uint32_t i, uint32_t k) {      // ~triangular in [-1,1]
inline void apply_humanize(std::vector<SynthNote>& ns, const Humanize& h)
// Breath pressure over phrases: a gentle level and pitch sag that resets at each new phrase.
inline void apply_pressure(std::vector<SynthNote>& ns, const Humanize& h)

wauvio::vocal::v2::struct AutoExpr

struct AutoExpr
    bool on = false;
    bool vibrato = true;      // onset/fade/depth follow note length
    bool dynamics = true;     // louder toward the phrase's high point
    bool phrase_end = true;   // longer fall + release on a phrase's last note
    bool articulation = true; // crisper consonants on fast notes
    double phrase_gap = 0.30; // s of silence that starts a new phrase
inline void apply_auto_expression(std::vector<SynthNote>& ns, const AutoExpr& a, const VoiceModel& voice)
inline double phrase_arc_shape(const std::string& kind, double u)
inline double speech_contour(const std::string& kind, double u)

wauvio/vocal/yune-v2/events.hpp

wauvio::vocal::v2::struct EventSpec

// Non-lexical vocal events (laughs, giggles, sobs, shouts, hums, interjections).
// They are written as a lyric tag, e.g. `<laugh>`, `<laugh:he,intensity=0.8>`,
// `<sob>`, `<hmm?>`, `<kyaa>`, and are expanded at render time into ordinary
// notes with pitch contours and expression lanes, so they
// are generated by the same voice, not spelled out as syllables.
//   <kind[:variant][,intensity=0..1][,pitch=semitones][,key=value...]>
struct EventSpec
    std::string kind, variant;
    std::map<std::string, float> p;
    float get(const std::string& k, float d) const { auto it = p.find(k); return it == p.end() ? d : it->second; }
inline bool is_event_tag(const std::string& s) { return s.size() >= 3 && s.front() == '<' && s.back() == '>'; }
inline bool parse_event_tag(const std::string& tag, EventSpec& out)
    struct Rng
        uint32_t s;
        float next() { s ^= s << 13; s ^= s >> 17; s ^= s << 5; return static_cast<float>(s & 0xFFFFFF) / 16777216.f; }
        float sym() { return next() * 2.f - 1.f; }
    // normalised (0..1) contour -> seconds, offset by the fractional part of the pitch
    inline Curve scale_contour(const std::vector<std::pair<double, double>>& c, double dur, double off)
    inline SynthNote make(const SynthNote& par, double t0, double dur, double midi_f, const std::string& lyric, float vel,
                          const std::vector<std::pair<double, double>>& contour)

    inline void glottal_end(SynthNote& n) {           // abrupt stop with a touch of creak (あっ!)
    struct Interj { const char* lyric; std::vector<std::pair<double, double>> contour; float vel, breath; bool glottal; float mouth, tension; };
    inline const std::map<std::string, Interj>& interjections()
inline std::vector<std::string> event_kinds()
// Expands one event note into ordinary notes. Returns an empty list for an unknown kind.
inline std::vector<SynthNote> expand_event(const SynthNote& par, const EventSpec& sp, uint32_t seed)

wauvio/vocal/yune-v2/mic.hpp

wauvio::vocal::v2::struct MicModel

// Optional "recording" stage: proximity warmth, de-esser, air band, mouth/lip noise.
// Not part of the voice (Singer::render never calls it); apply to the rendered Buffer.
            struct MicModel
                float proximity   = 0.f;   // 0..1: low-shelf warmth (+0..5 dB below ~200 Hz), as when singing close
                float air         = 0.f;   // 0..1: high shelf above ~9 kHz (+0..4 dB)
                float de_ess      = 0.f;   // 0..1: dynamic cut of 5-9 kHz when sibilants spike
                float mouth_noise = 0.f;   // 0..1: tiny deterministic lip/tongue clicks in quiet passages
                uint32_t seed = 7;
                struct Bq { double b0 = 1, b1 = 0, b2 = 0, a1 = 0, a2 = 0, z1 = 0, z2 = 0;
                    double run(double x) { const double y = b0 * x + z1; z1 = b1 * x - a1 * y + z2; z2 = b2 * x - a2 * y; return y; } };
                inline Bq shelf(bool high, double fc, double gain_db, double sr) {          // RBJ shelf, S = 1
                inline Bq bandpass(double fc, double Q, double sr)
            inline void apply_mic(Buffer& b, int sr, const MicModel& m)

wauvio/vocal/yune-v2/voices/profile.hpp

wauvio::vocal::v2::struct VoiceProfile

// A VoiceProfile is everything that makes one *character* what it is, kept out of the engine:
//   model     - tract proportions, vowel centres, source family, range, vibrato defaults (VoiceModel)
//   style     - the character's default look/behaviour (Style; the "Normal" persona)
//   parse     - lyric parsing defaults
//   personas  - the bounded variations this character can take (soft, sweet, ...)
//   natural_amount - recommended Singer::natural() strength
// Voices live in voices/voice-<id>.hpp (C++, typed). The same voice can be exported/loaded as a text voicebank (.wvc); the .wvc files live in voicebanks/.
            struct VoiceProfile
                std::string id = "voice";            // short key: "yune"
                std::string display = "Voice";       // human name
                std::string language = "ja";
                std::string notes;                   // one line of character description
                VoiceModel model;
                Style style;                         // the character's default (Normal) look
                ParseOptions parse;
                PersonaLibrary personas;
                float natural_amount = 0.6f;         // default strength for Singer::natural()
                inline const std::vector<std::string>& style_names()
                struct MF { const char* name; float VoiceModel::* p; };
                inline const std::vector<MF>& model_floats()
                struct TF { const char* name; float Tune::* p; };
                inline const std::vector<TF>& tune_floats()
                inline std::string fl(float x) {       // shortest text that reads back as the same float
                inline const char* VOW = "aiueo";
            inline std::string profile_to_text(const VoiceProfile& p)
            inline bool save_profile(const VoiceProfile& p, const std::string& path)
            // Parses profile text onto `out` (start from a copy of an existing voice to override a few values).
            // Returns false and sets *err on a malformed line; unknown keys are an error too, so typos are caught.
            inline bool profile_from_text(const std::string& text, VoiceProfile& out, std::string* err = nullptr)
            // Voicebank files use the .wvc extension.
            inline constexpr const char* VOICEBANK_EXT = ".wvc";
            inline bool is_voicebank_path(const std::string& s)
            inline bool load_profile(const std::string& path, VoiceProfile& out, std::string* err = nullptr)

wauvio/vocal/yune-v2/voices/voices.hpp

Free functions, constants and aliases

// Registry of the built-in voices. To add a voice: write voices/voice-<id>.hpp (copy voice-template.md's checklist),
// include it here and add one line to builtin_voices().
            inline const std::vector<std::pair<std::string, std::function<VoiceProfile()>>>& builtin_voices()
            inline std::vector<std::string> voice_ids() { std::vector<std::string> o; for (auto& kv : builtin_voices()) o.push_back(kv.first); return o; }
            // "yune" -> built-in voice; anything else is read as a .wvc file path. Returns false (and *err) if neither works.
            inline bool make_voice(const std::string& id_or_path, VoiceProfile& out, std::string* err = nullptr)

Voice definition headers: voice-itsuki.hpp, voice-koharu.hpp, voice-reiha.hpp, voice-yune-old.hpp, voice-yune.hpp.