chimera-vocal-synth README

项目的 README,来自 github.com/jamesondh/chimera-vocal-synth。合并为一个 markdown 文件:README.md。

CHIMERA

A physical-modeling voice synthesizer in the browser. Every sound comes from a simulated airway (lungs, vocal folds or syrinx, a branched vocal tract, lips, nose), not from samples. The engine is Rust, compiled to WebAssembly for an AudioWorklet; the same code runs natively for tests and the chimera CLI.

Vision & scope

  1. One instrument: a physically modeled voice (lungs, vocal folds, throat, mouth). No samples, no neural audio.
  2. The web app is the primary surface: anyone should be able to make songs in it without an LLM's help. Mobile is the likely next surface. The plugin (CLAP/VST3/AU) still ships, but it's secondary.
  3. As realistic as we can make it: the main push is to see how close the simulation gets to a real voice. The robotic, Vocaloid-like sound people like today stays playable as a preset (#93).
  4. Languages enter through one shared front-end design, not one-off hacks. Each needs a native speaker's check and must leave English unchanged.
  5. The design language (the vector display) is settled; the look within it can still evolve.
  6. Nothing copyrighted in git; MIT; a deterministic, real-time-safe engine.
  7. Not now: a DAW or sequencer, a light theme, MPE, multi-voice dialogue, translating the interface (the voice speaks and sings many languages; the labels stay in English).

What it does

Male, female and child bodies blend continuously. Everything on screen animates from live engine state: pressure in the airway, airflow, the vocal folds, spectra and formants.

Run it

Needs Rust with the wasm32-unknown-unknown target, and Bun.

bun install
bun run dev        # builds the wasm, then Vite on 127.0.0.1:5317
bun run test       # wasm build, cargo test --workspace, bun test tests

The AudioWorklet needs a secure context, so open it on localhost or over HTTPS (for example tailscale serve). Vercel builds it with vercel.json.

Offline renders and measurement:

cargo run --release -p chimera-cli -- render speech|text|song|notes|beatbox|creature|vowels …
cargo run --release -p chimera-cli -- diagnose       # nasal leakage, formants, bandwidths, pitch
cargo run --release -p chimera-cli -- compare csd    # against a real singer (docs/csd-comparison.md)
cargo run --release -p chimera-cli -- compare tsp    # against 23 real speakers (docs/speech-comparison.md)
bun tools/spectrogram.ts in.wav out.png
bun tools/musicxml-to-notes.ts score.mxl P1 --out p1.json   # a score's part → `render notes` melody

Docs

Contributing: see CONTRIBUTING.md. Agents: see AGENTS.md.

License

MIT. Bundled third-party files keep their own licenses: the CMU Pronouncing Dictionary (public/data/CMUDICT-LICENSE.txt) and the fonts (public/fonts/).

chimera-vocal-synth (jamesondh/chimera-vocal-synth)

正在搜索数据库…

这是什么?一个语音合成器,它通过模拟类人的呼吸道(肺、声带、分支状声道、嘴唇、鼻腔)来发声,而不是播放录制好的采样。它在浏览器中运行。
这是浏览器应用还是库?它是浏览器应用。Rust 引擎被编译为 WebAssembly,供 AudioWorklet 使用;同样的代码也可以原生运行,用于测试以及名为 'chimera' 的命令行工具。
我该怎么运行它?安装带有 wasm32-unknown-unknown 目标的 Rust 和 Bun,然后在 localhost 上打开应用。
有什么需要注意的吗?音频引擎需要安全上下文,因此应用必须通过 localhost 或 HTTPS 打开,例如使用 tailscale serve。README 中没有提供离线渲染和测量的命令。
它能朗读文字,而不只是唱歌吗?可以。它接受英文文本(使用 CMUdict,并以字母到读音的规则作为后备)或 IPA,并将其转换为动作和韵律,屏幕上会显示发音动作谱和辅音图表。
什么是“生物图鉴”?一组基于同一呼吸道模型构建的非人类声音:双声部的鸣禽鸣管、海豹、鳄鱼和大象。
什么是 Duet 视图?两个 3D 头像回放预先渲染好的歌曲,男性、女性和儿童的身形连续融合。屏幕上的一切动画都来自引擎的实时状态,例如气道压力、气流和共振峰。
作者
jamesondh
大小
18.8 MB
星标
2.7K
更新
提交Nov 18
时长
13天
提交 · 90 天