Repository navigation
docs Singing
Status: Partial
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against 5f40af2d9 (pool layout and host-role options; detailed routing, setup, performance, license, and gateway claims not rechecked)
Code: src/Martlet.Desktop/Pages/Singing/SingingPage.cs, src/Martlet.Desktop/Pages/Singing/SingingPageModel.cs, workers/singing/martlet_singing/host.py, deploy/host/roles/singing/role.conf
Martlet can write a song and sing it in a voice from the owner's voice library (Companion > Voice > Voices). The singing host role runs the pipeline on an NVIDIA graphics card, on this PC or another of the owner's computers:
-
Write the music: ACE-Step 1.5 turns the lyrics (with section tags such
as
[verse]and[chorus]), a style caption and a length into a full song with a singer and backing music. -
Separate the voice: the vocals model of Demucs
htdemucs_ftsplits the song into vocals and backing. - Match the voice: SoulX-Singer-SVC converts the vocals to the chosen voice from its recording alone (zero-shot: no training, a few seconds of speech are enough), keeping the tune and the words. VevoSing (Amphion Vevo1.5) is an optional second voice match.
- Mix and time: the matched vocals (only the sung phrases, so no backing bleed) go back over the backing; the song gets a beat grid and the time of every lyric line and every sung word.
The result is three sample-aligned 48 kHz tracks (the mix, the dry vocals and the backing), the lyric lines with their sections and sung starts, the sung words (for lip sync), the beat grid, and the time each stage took. Songs are only ever performed by Martlet itself in conversation; the owner's "Creations" library keeps and shares them. Songs are made ahead of time, not in real time.
Measured (MCP singing_check with the 6.1 s Jane Doe speech clip, turbo + SoulX-Singer, tempo and key in the request
so the planner is skipped; RTX 4070 12 GB, a PC short of system memory; seconds):
| Song | Total | Loading | Music | Lyric timestamps | Separating | Voice match | Mixing + aligning | Peak VRAM |
|---|---|---|---|---|---|---|---|---|
| 30 s, cold | 273 | 123 | 16 | 7.6 | 4.6 | 102 (50 loading SoulX-Singer) | 5.3 | 6.0 GB |
| 30 s, warm | 20 | 0 | 6.7 | 0.1 | 2.3 | 9.7 | 0.6 | 7.2 GB |
| 60 s, cold | 332 | 141 | 38 | 13.5 | 9.8 | 115 (53 loading) | 5.9 | 6.0 GB |
| 60 s, warm | 30 | 0 | 6.9 | 0.2 | 1.9 | 18.8 | 1.0 | 7.2 GB |
Warm means the worker's models are still loaded from the previous song (until five idle minutes pass). A cold start is mostly loading from disk; on this PC it is slow because system memory is short. The first real song, before these changes (planner on the PyTorch backend, full-precision model spilling into shared memory beside 5.6 GB of other roles), took 705 s for 30 s.
In the host role, set up through Martlet (Docker Desktop on the same RTX 4070 PC, its WSL VM 15.6 GB of memory shared
with the speaking, listening and lip-sync roles, which hold about 7 GB of the card; MCP singing_check through the host's
own gateway with the Jane Doe voice from the shared voice list; seconds):
| Song | Total | Loading | Music | Lyric timestamps | Separating | Voice match (loading, pitch, converting) | Mixing + aligning | Worker peak VRAM |
|---|---|---|---|---|---|---|---|---|
| SoulX-Singer, 30 s, new worker | 110 | 23.6 | 11.4 | 5.6 | 3.3 | 45.9 (18.0, 14.2, 9.2) | 15.0 | 5.1 GB |
| SoulX-Singer, 30 s, next song, new worker | 95 | 26.1 | 18.3 | 5.5 | 2.2 | 35.2 (17.8, 3.2, 9.5) | 2.5 | 5.1 GB |
| SoulX-Singer, 30 s, music model kept, Chatterbox speaking meanwhile | 60 | 0 | 11.5 | 3.7 | 1.6 | 40.2 (18.3, 2.6, 14.0) | 0.8 | 5.2 GB |
| VevoSing, 30 s, new worker | 109 | 27.1 | 17.4 | 5.6 | 2.3 | 49.0 (21.5 loading, 11.9 converting) | 2.6 | 6.8 GB |
| VevoSing, 30 s, next song | 104 | 28.0 | 15.4 | 2.2 | 2.4 | 46.0 (19.6, 10.3) | 3.0 | 6.8 GB |
The music model loads with int8 weights there (the card never has 11 GB free beside the other roles). The VM is too short of
memory to keep the models between songs, so the worker usually ends after each song and the next one loads again (about
25 s plus 18-21 s for the voice match). When the card had room for the music model to stay (the other roles were holding
4.4 GB rather than 7 GB), the next song took 60 s. Setting the role up there through Companion › Singing took
25 minutes for the first attempt, which stopped at Whisper base (fixed since: the image left a root-owned folder in the
models volume), then 9 minutes to finish (it rebuilt the image and checked the files already downloaded). Add VevoSing
there took 14 minutes, including about 4 minutes rebuilding the image. Downloads ran at about 15 MB/s. The models volume
holds 15.9 GB (SoulX-Singer) or 20.3 GB (with VevoSing), and the image 14.7 GB. On Windows, Docker Desktop's disk image
(on C: by default) only grows, so leave room: each image rebuild added about 4 GB of build cache there, and a rebuild
after docker builder prune downloads PyTorch again (22 minutes).
The default role needs an NVIDIA card with 6 GB or more. Optional models can need
more memory; see the current choices in
role.conf. The measurements below are
from one RTX 4070 setup. They are not hardware qualification results.
Measured on the RTX 4070 (12 GB) beside Chatterbox, Whisper large-v3-turbo and Audio2Face:
- Nothing failed. With the other roles holding 7.0 GB, a song took the card to 11.7 GB of 12.3 GB. Windows spilled 0.2-0.36 GB into shared system memory, which is slower than the card's own memory. With them holding 4.4-5.3 GB, the card peaked at 10.3 GB and the spill stayed under 0.1 GB.
- Chatterbox speaking while a song was made (a reply of about 5 s of audio every 5 s: 11 while the song was being made, 11 after): time to the first audio stayed 0.42-0.80 s (0.48-0.80 s with no song). Whole replies took 2.5-4.6 s instead of 2.3-3.3 s: up to 1.5 s longer when a reply overlapped the voice match. The song's voice conversion took 14.0 s instead of 9.3 s. Spoken replies stay prompt; a song is a little slower.
- A local Thinking model on the same card makes this tighter. With a few GB less free, more spills into shared memory and everything slows. A second computer's card (pick it in the card's pills) is best when this one is busy, and Singing can run on a computer that does nothing else.
A feasibility spike on 2026-10-03 (RTX 4070 12 GB, shared with other running models) compared the options before the role was built:
- ACE-Step does not copy an arbitrary voice from a short clip (its LoRA needs about eight songs), so a separate singing voice conversion matches the voice afterwards. RVC needs minutes of training audio per voice and Seed-VC is GPL-3.0 and archived (Voice Studio).
- With a 6.1 s speech recording as the only reference, the speaker-embedding similarity (SpeechBrain ECAPA cosine) of the singing to the voice rose from about 0.1 (ACE-Step's own singer) to 0.34-0.48 with SoulX-Singer-SVC (cfg 3) and 0.40-0.46 with VevoSing, above ECAPA's same-speaker threshold (0.25) and discriminative (converting the same song to other voices scored high for those voices and near zero for this one). That is "a singer with that voice's timbre", not certainly the person; listen before relying on it.
- SoulX-Singer kept the melody (0.81-0.82 of frames within half a semitone) and the words best; VevoSing was a little closer to the voice on two of three songs and cleaner, but drifted off-key more (0.66-0.75) and its weights are non-commercial. So SoulX-Singer is the default and VevoSing a choice.
- ACE-Step's SFT model (50 steps) sang the words much more clearly than turbo (8 steps) for a few more seconds of generation: the High quality choice.
This table records the base stack and VevoSing terms checked for the earlier
implementation. Current optional model choices and terms are in
role.conf.
| Part | Source | Licence |
|---|---|---|
| Music model code |
ace-step/ACE-Step-1.5 at commit ca1e85f (with its nano-vllm), fetched by the image build and checked by commit |
MIT |
| Music models |
ACE-Step/Ace-Step1.5 revision 19671f4 (turbo DiT, VAE, Qwen3-Embedding-0.6B text encoder), ACE-Step/acestep-5Hz-lm-0.6B 148d8ea (planner), ACE-Step/acestep-v15-sft c410d24
|
MIT |
| Separator |
Demucs 4.0.1 and the htdemucs_ft vocals model 04573f0d-f3cf25b2.th (84 MB) from dl.fbaipublicfiles.com |
MIT |
| Voice match |
Soul-AILab/SoulX-Singer at commit 81aeb3a; Soul-AILab/SoulX-Singer model-svc.pt (2.8 GB) and the RMVPE pitch model from Soul-AILab/SoulX-Singer-Preprocess; openai/whisper-base (its content encoder) |
Apache-2.0 |
| VevoSing (optional) |
open-mmlab/Amphion at commit 26f6883 (code); amphion/Vevo1.5 f4053ca (tokenizer, flow-matching transformer, vocoder); OpenAI Whisper medium |
code MIT; weights CC-BY-NC-ND-4.0 (personal, non-commercial use only; nothing made from them may be shared as a derivative); Whisper MIT |
Every model file is pinned by size and SHA-256 in workers/singing/martlet_singing/pins.py (about 16 GB without
VevoSing). Nothing is downloaded until the owner sets the role up: its terms (shown by Martlet before Set up, whose
click confirms them, and by martlet-host add singing) name every download, source and licence, VevoSing's only when it
is chosen. The voice-rights confirmation each recording already carries is the owner's assertion, not legal clearance:
do not use singing to imitate people without their permission or to deceive. ACE-Step asks that songs be checked for
originality and disclosed as AI-generated. SoulX-Singer's preprocessing bundle also carries a karaoke separator whose own
model card states no licence and a GPL-3.0 dereverb model; Martlet uses neither (Demucs separates instead).
The singing host role uses port 50085 and requires an NVIDIA GPU. Its service
supports song, music, match, and separate jobs. It provides status,
job, input, track, and cancellation routes. The worker's provision command
downloads the selected model files; provision --fixture sets up a deterministic
non-AI engine for plumbing checks.
The default self-hosted choices are ACE-Step 1.5 and SoulX-Singer. The role also
offers ACE-Step 1.5 XL, HeartMuLa, DiffRhythm, and YuE for music, and VevoSing,
Vevo2, and Seed-VC for voice matching. The choices and their setup requirements
are in role.conf. The worker API and
configuration are in workers/singing/README.md.
The desktop supports cloud members in its music and voice-match pools. It shows the provider's status, consent, model, and key state.
The implementation thresholds and measured behavior below describe an earlier worker version. Do not use them as current limits or performance guarantees.
-
Host role
singing(deploy/host/roles/singing, port 50085, NVIDIA GPU with 6 GB+). The image is built on the host fromworkers/singing/host/Dockerfile:python:3.11with hash-locked PyTorch 2.10 CUDA 12.8 and ACE-Step's own locked dependencies (host/requirements.lock, from ACE-Step'suv.lockplus SoulX-Singer's, Demucs' and VevoSing's modules), then the pinned sources. SoulX-Singer and VevoSing were written for Transformers 4.4x, while ACE-Step needs 4.57 (whose Llama attention requires rotary embeddings SoulX-Singer does not pass), so the voice-match stage runs in its own process with a hash-locked Transformers 4.46.3 overlay (host/requirements-match.lock,MARTLET_SINGING_MATCH_SITE;MARTLET_SINGING_MATCH_PYTHONnames another interpreter instead). Its own container and volume (martlet-singing-models). It is not a voice engine (exclusive=voiceis not set): it runs beside the speaking role. -
Provisioning (
martlet-singing provision) downloads and verifies the pinned files. Nothing is downloaded at run time:HF_HUB_OFFLINE, ACE-Step's downloader is replaced by a refusal, Whisper base sits in the Hugging Face cache layout and Whisper medium wherewhisper.load_modellooks. -
Service
martlet_singing.hostlistens on 127.0.0.1:50085 only. A song is a job:POST /jobsstarts one,GET /jobs/<id>reports its stage and progress,GET /jobs/<id>/tracks/<track>pages a finished track's PCM out, andPOST /jobs/<id>/cancelstops it. A job'skindissong(the default: the request and the voice's recording, the whole pipeline),music(no voice: the music, separated and timed against the separated vocals; tracksmix,vocalsandbacking) ormatch(the voice's recording andinput_frames: the job waits in statereceivinguntilPOST /jobs/<id>/input?offset=<frame>pages of 48 kHz mono PCM have sent that many frames, then converts them; its only track isvocals, as long as the input). One job is made at a time and up to four more wait (or receive) in order (singing.busybeyond that); a job that receives no complete input within 300 s fails; finished jobs are kept for 30 minutes.GET /statusreports the state, engine, pinned models, voice matches set up, the job kinds it makes (kinds), the queue and the graphics card's memory. -
Worker process
martlet_singing.workerstarts with the first song and runs the stages one at a time. The graphics card's free memory is read from nvidia-smi (every process; on Windows CUDA's own figure ignores the others and spills into shared memory instead of failing):- The music model loads with int8 weights unless the card has 11 GB free (a full-precision song peaked at 9.6-10.7 GB,
int8 at 6-7.2 GB;
MARTLET_SINGING_QUANTIZATION: auto, none, int8_weight_only). - It stays on the card from the music through the lyric timestamps when the card has room for it plus 4.5 GB, instead of moving there and back for each; otherwise ACE-Step's CPU offload moves it per call.
- After the music it stays warm on the card while 3 GB remain free for separating and matching; otherwise it waits in system memory when more than 8 GB is available, or is released.
- The voice match runs in
martlet_singing.match, a child process with its own Transformers that keeps SoulX-Singer in system memory (on the card only while converting) for the next song while more than 4 GB of system memory is available; VevoSing's process ends after each song. -
MARTLET_SINGING_KEEP_MODELS(auto, keep, release) overrides the system-memory rules. The worker is restarted for the next song if it dies (the song it was making fails with that reason), and exits after five idle minutes (MARTLET_SINGING_IDLE_SECONDS), which frees the card and system memory for the speaking and listening roles. When system memory was too short to keep the music model after a song, the worker ends right after that song (a released model doesn't always give its memory back, and loading it again beside it once ran the system out of memory), so the next song starts a new worker; the worker and voice-match processes end without the interpreter's teardown, which could abort and leave a 4 GB core dump (WSL keeps them under%TEMP%\wsl-crasheson Windows). ACE-Step's own fallback to a CPU decode when the card looks full is not used.
- The music model loads with int8 weights unless the card has 11 GB free (a full-precision song peaked at 9.6-10.7 GB,
int8 at 6-7.2 GB;
-
Stages (reported as progress): loading, writing the music (ACE-Step 1.5 turbo, 8 steps, or SFT, 50 steps for High
quality; its 0.6B planner, which rewrites the caption and plans tempo, key and audio codes, runs only for a request with
neither a tempo nor a key, since Martlet's own model writes them and the planner took 35-320 s on the PyTorch backend:
MARTLET_SINGING_PLANNERauto, none or lm), separating (Demucs vocals; backing = song minus vocals), matching the voice (RMVPE pitch, SoulX-Singer-SVC cfg 3 and 32 steps in fp16, shifted only by whole octaves so the backing never needs re-pitching, toward about four semitones above the voice's speaking pitch, so a singer already in the voice's range is not moved: an octave too high costs most of the likeness), mixing (the matched vocals, silenced outside the phrases the separated original sings (with 20 ms fades) so no backing bleed or conversion noise reaches the vocals track, levelled to the original's loudness over the backing), aligning (below). -
Aligning: ACE-Step's own lyric timestamps (LRC, one decoder pass over the same generation, timed separately as
lyric_timestamps) are matched to the request's lines in order and each start is snapped to the matched vocals' onset; without usable LRC, or when its words sit more than a second from any vocal onset (as when a short song crams its lines), the vocals' phrases (energy above a threshold) are used. librosa's beat tracker on the backing gives the tempo, which is halved or doubled toward the planned or requested tempo, then a straight grid is fitted and extended over the whole song; the downbeat is the beat in the bar with the most low-frequency onset strength, and the bar length is ACE-Step's time signature. Words come from ACE-Step's own alignment of the same generation (its token and sentence timestamps behind the LRC): a word starts with its first token and ends with its last, and each start is snapped to a vocal onset within 120 ms. The result says which source timed the words (ace-step-alignment, orvocal-phrases, the line spread evenly, when the alignment is unavailable) and the host reports the median distance from word starts to vocal onsets as a sanity check. -
FIXTURE - NOT AI engine (
martlet-singing provision --fixture): a deterministic sine melody over chord pads with a click on every beat, lines on downbeats, for plumbing checks without a GPU.
The table below records an earlier gateway contract. It does not list every operation or model supported by the current host service. The gateway contract was not rechecked in this audit.
Martlet.Gateway.Singing.SongRelayWorker relays route martlet.gateway.song.v1 at /martlet/v1/inference/song
(contract martlet.song-relay 1.0, role voice, model ace-step-v15-soulx-svc pinned to ACE-Step's revision and turbo
weights) to the loopback service. Each request is one operation, answered with JSON text events:
| Operation | Payload | Answer |
|---|---|---|
start |
kind (optional: song, the default, music or match). song: lyrics, style, duration_seconds (15-180), language, quality (fast, high_quality), voice_match (soulx, vevosing), voice_id, optional bpm, key, seed, reference_audio_base64. music: the same without voice_match, voice_id and the recording. match: voice_match, voice_id, input_frames (1 to 9,600,000) and optional reference_audio_base64
|
{job_id, state, queue_position} (a match job: state receiving) or {error: {code, summary}}
|
input |
job_id, offset_frames (the frames already sent), pcm_base64 (48 kHz mono signed 16-bit PCM, at most 3,840,000 bytes: 40 s) |
the job's view with received_frames; the last page queues it |
status |
job_id (without it: the service's status) |
{state, stage, fraction, queue_position, error?, result?} |
result |
job_id, track (mix, vocals, backing), offset_frames, maximum_frames
|
one page (at most 4.8 MB of PCM) as events of {track, sample_rate, channels, total_frames, offset_frames, frames, pcm_base64}
|
cancel |
job_id |
{job_id, state} |
The voice is named by its ID in the shared speaking-voice list (SpeakingVoice.Id); the gateway hands the service that
voice's recording from its own copy (voice.missing for a voice the list lacks, reference.missing when the host has
no copy yet, after which the client sends it once with reference_audio_base64, checked against the voice's SHA-256).
No path or URL is ever accepted. Host configuration kind: singing.
The pool layout and model selectors were checked. The detailed setup, migration, and routing claims below were not rechecked.
Companion > Singing (an optional extra, on its own page) has the standard page order:
- Now: whether Martlet sings, where it writes the music and in which quality, where it matches the voice and with which model (or that the voice match is off), and any problem (no voice to sing with).
-
Music: where Martlet writes songs: the singing pool list (
singing, below), the shared list control of every pooled area. It holds the computers that write a song's music with ACE-Step 1.5 and its own singer, in order: this PC, your paired computers (not hosts friends share, and only those that can run Singing) and single graphics cards. There is no separate Off: with no computer in the list on, Martlet doesn't sing, and the role stays set up on your computers. Each computer's Settings say where Singing stands there (not set up, setting up, ready with the voice matches set up there, failed with the reason, why that computer can't sing, or that its Martlet is too old to make the music apart), offer Set up Singing here (after a confirmation naming the downloads, licences and terms), and choose that computer's own Quality: High quality (ACE-Step 1.5 SFT, 50 steps, the default: the clearest words) or Fast (turbo, 8 steps). -
Voice match: where Martlet matches the singing to its voice: the voice match pool list (
voice-match). It holds the computers that match a song's vocals to the voice Martlet speaks with, in order; they can be other computers than the music's. With no computer in it on, songs keep the music model's own singer. Each computer's Settings say where Singing stands there, offer Set up Singing here or Add VevoSing here, and choose that computer's own Model: SoulX-Singer (the default; Apache-2.0, any use; keeps the tune and the words) or VevoSing (closer to the voice but may drift off-key; CC-BY-NC-ND-4.0, personal, non-commercial use only). A computer that chose VevoSing but doesn't have it yet matches with SoulX-Singer until it is added. - What Singing is: the role's facts compared with the catalog's numbers: an NVIDIA graphics card, about 5.1 GB of graphics memory and up to 7.2 GB (a 6 GB+ card), the download (about 31 GB with the image), about 1 to 2 minutes for a 30-second song, free, the licences, and that the lyrics, the style and the voice's recording go to the computer that sings; and whether Singing needs a graphics card of its own (historical hardware notes).
- Voice match models: an option picker that compares SoulX-Singer and VevoSing (their footprint and licence); in use is the first voice match computer's model.
A computer added to either list that doesn't sing yet opens its Settings. Both lists, with each computer's quality and
model, are pools.json, shared with your other computers.
The first time the page opens, it makes the music list once from the older choice (the computer Martlet sang on, then
your other computers that run Singing; all off when singing was off), so nothing chosen is lost. It does this only when
this PC sang on one of your computers: an empty list made here would turn singing off on your other computers. When
there is a music list and no voice match list, the page makes the voice match list once from the music list (the same
computers, on and off alike), each with the voice match the page chose before (voiceMatch in singing.json).
Until then, songs use the music list for their voice match too.
There is no play button: Martlet performs its songs itself in conversation. The Devices map lists the role as "Singing"
("Ready. Martlet makes its songs here when you ask it to sing.").
Singing installs like every other role, through martlet-host add singing:
- Set up Singing here (this PC) opens the same run window as a voice engine: Docker Desktop and the host service first when this PC has none, then the role. Its status line follows the role's own progress: building the singing image (its steps), starting the service, then each pinned model file's download ("Singing: downloading model-svc.pt, 45% of 2730 MiB..."). On another computer the run goes through Martlet there or SSH, as for any role. The computer's Settings say Setting Singing up here... until the gateway offers the song route and the singing service answers set up, then Singing is ready here with SoulX-Singer.; a failed run says why and Set up tries again (downloads already verified are kept).
- A plain Set up installs ACE-Step, Demucs and SoulX-Singer only (
SINGING_VOICE_MATCHES=soulx, about 16 GB). The page reads the voice matches set up on each computer in the list from its singing service, through the gateway. -
VevoSing is optional. A voice match computer that chose VevoSing without it says so ("SoulX-Singer until you
add it"). Its Settings offer Add VevoSing here, with its own confirmation naming CC-BY-NC-ND-4.0
(personal, non-commercial use only) and its downloads (Vevo1.5 and Whisper medium, about 4.5 GB), which happen only
then (
martlet-host add singingagain withsoulx-vevosing; SoulX-Singer's files are kept). - The Devices map's Install Singing and the Martlet hosts window's role cards run the same
martlet-host add singingwith the role's install dialog (martlet-host describe singing: its terms, the model and voice-match choices with SoulX-Singer preselected, and VevoSing's terms only when it is chosen). Remove Singing stops it and keeps the downloads. - The host image carries the singing sources (
/opt/martlet/source/workers/singing) the role's image is built from, like every role that builds on the host; the role's image tag (martlet-singing:3) is bumped whenever those sources change, somartlet-host update(Martlet updating its hosts) rebuilds it.
For other code (the conversation's sing_song tool), Martlet.Core.Singing holds the contract: ISongMaker
(GetAvailabilityAsync, GenerateAsync(request, progress, cancellationToken)), SongRequest, SongProgress,
SongResult (mix, vocals and backing tracks, LyricTimestamps with sections, Words with WordTimingSource, Bpm,
BeatsPerBar, Beats, Downbeats, StageTimings), SongLyrics.Parse, SongException codes and the FIXTURE - NOT AI
FixtureSongMaker. The desktop's implementation is SongClient (SongClient.For(dataDirectory), also
MainWindow.SongMaker); MARTLET_SINGING_FIXTURE=1 makes it the fixture. SongClient.IsSetUp(dataDirectory) answers
without the network whether singing is set up (the fixture is on, or the music list has a member on that is paired
here, or, without a list yet, a computer still paired with this PC ran Singing when
the desktop last checked its computers: host in singing.json, kept while that computer is unreachable and cleared once
it answers without Singing), SongClient.VoiceMatchOff(dataDirectory) says whether the voice match list has nothing
on, SongClient.SpeakingVoiceId(dataDirectory) is the voice Martlet speaks with, and
SingingPreferences.Load(dataDirectory) holds the page's older choices. SongVoice.WithVoice puts a song's music and its
voice match (SongVoiceMatchResult) together.
A song is made in two jobs, each on its own pool of the owner's own computers that run the singing role
(SingingPool in Martlet.Core.Singing, used by SongClient). Hosts that friends share are never in them.
-
The music (the
singingpool, lanesinging): amusicjob writes the music with the music model's own singer, separates it into vocals and backing, and times the lyric lines, words and beats against the separated vocals. The computer's own quality (qualityin its settings,SingingPool.Quality:fast, or high quality without one) is the job's quality. -
The voice match (the
voice-matchpool, lanevoice-match): amatchjob converts those vocals to the voice. This PC sends the vocals in pages of at most 40 s (input), and the computer's own model (modelin its settings,SingingPool.VoiceMatch:vevosing, or SoulX-Singer without one; SoulX-Singer where VevoSing isn't set up,SingingPool.MatchWith) matches them; the matched vocals are gated to the original's sung phrases and levelled to its loudness there, and keep its timing. -
Put together on this PC (
SongVoice.WithVoice): mix = backing + matched vocals; when the mix would clip, the mix, vocals and backing are scaled together to 0.98 of full scale, so they stay in step. The lines, words and beats are the music's.
With nothing on in the voice match list, the song is the music job's result: the music model's own singer. With a voice
match list that has members on but none paired with this PC, the song fails and says so. A music computer whose Martlet
is too old to make the music apart (its status has no kinds) makes the whole song there instead, with SoulX-Singer;
such a computer is passed over for a voice match ("update Martlet there").
In each pool:
-
Members. With the pool's list (its area of
pools.json, Pools), its members that are on, kept for this PC and paired here, in the owner's order:this-pcis this PC's own host service, a card is its computer. The voice match pool without a list yet uses the music list. Without a list at all, the older choices: the computer Martlet sings on (hostinsinging.json) first, then the computers the shared plan says run Singing (fewest plan jobs first), then the other paired computers (SongClient.Members). -
Choosing. The job goes through
WorkQueue.Shared(the pool's lane, background priority; the member key is the computer). Each member in order is asked for its singing status. The first that makes nothing now and can make the job takes it; while the first member is free, nothing else is asked. - Passed over. A member that makes another job, doesn't answer, doesn't sing, isn't set up, or (for a voice match) can't make it apart is passed over for the next.
-
All busy. The job waits in line on the member with the fewest jobs before it (the first of those in order).
The singing host keeps the line, so this PC doesn't ask again and again. A full line (
singing.busy) passes the job to the next; when every line is full the song fails withsinging.busy. -
During the job. A member that stops answering is replaced by the next, and the job is made again there. A job
that fails on its computer (
song.failed) is not made again elsewhere. The voice recording goes to whichever member takes the voice match, when it lacks it. -
Availability.
GetAvailabilityAsyncreads every music member's status at once. Its host is where the next song's music would go (SingingPool.Pick).
The song job holds the member that makes each part from background thinks (it starts with the computer Martlet sings on
and moves when SongProgress.Host names another). The desktop log says where each part went
(Singing: m4-host writes the music (number 2 of 3 in its list)., Singing: m3-host matches the voice (number 1 of 1 in its list)., and Sharing work: singing went to host:m4-host (1 busy). when the first member was passed over). Every
member of both lists is kept from background thinks (BackgroundDuties).
Each list can hold more than ACE-Step 1.5 and SoulX-Singer or VevoSing:
| List | Option | What it is | Where it runs |
|---|---|---|---|
| Music | ACE-Step 1.5 XL | ACE-Step's 4B SFT music model (acestep-v15-xl-sft, MIT), always 50 steps. Clearer words and richer music than the 2B model. |
A singing computer: Add ACE-Step 1.5 XL here in the member's settings (about 20 GB more; host choice SINGING_MUSIC_MODELS=standard-xl). Then pick it in the member's Music model box (model setting ace-step-v15-xl). It needs 22 GB free on the card for full precision, else int8. A computer without XL uses ACE-Step 1.5. |
| Music | HeartMuLa | HeartMuLa-oss-3B with HeartCodec (Apache-2.0): a song language model. 48 kHz. One of its two models is on the card at a time. | A singing computer: Add HeartMuLa here (about 22 GB more; SINGING_HEARTMULA=yes), a 16 GB+ card. Music model heartmula. |
| Music | DiffRhythm | DiffRhythm 1.2 full (Apache-2.0), its style from the caption through MuQ-MuLan (CC-BY-NC-4.0), lyrics timed by Martlet as LRC (extras.lrc). Fast. A song under 96 s is made at 96 s and cut with a fade. |
A singing computer: Add DiffRhythm here (about 9 GB more, with espeak-ng; SINGING_DIFFRHYTHM=yes), an 8 GB+ card. Music model diffrhythm. |
| Music | YuE | YuE2-3B with its VAE (CC-BY-NC-4.0). Strong singing, slow; the lyrics set the length. Under 22 GB of card memory it uses fp8 weights and offloads. | A singing computer: Add YuE here (about 8 GB more; SINGING_YUE=yes), a 16 GB+ card. Music model yue. |
| Music | ElevenLabs Music |
music_v1 from a composition plan: each lyric section with its lines, the style, the length. |
Cloud (POST /v1/music, 48 kHz PCM). |
| Music | Mureka | Mureka's song model (auto), lyrics and a style prompt. Its lyric line times are kept. With Sing in Martlet's voice on, Mureka sings in a vocal clone made once from the voice Martlet speaks with, and the song skips the voice match. |
Cloud (api.mureka.ai). |
| Music | fal.ai | MiniMax Music v1.5 (fal-ai/minimax-music/v1.5, the default) or ACE-Step (fal-ai/ace-step) through fal's queue. |
Cloud (queue.fal.run). |
| Voice match | Vevo2 | Amphion's Vevo2 flow matching (timbre only, CC-BY-NC-ND-4.0), piece by piece between the sung phrases, moved by whole octaves as VevoSing is. | A singing computer: Add Vevo2 here (about 3 GB more, and Whisper medium; SINGING_VEVO2=yes). Model vevo2. |
| Voice match | Seed-VC | Seed-VC's 44.1 kHz singing model with pitch (GPL-3.0, no longer maintained): Whisper small, CAMPPlus, RMVPE and BigVGAN, 30 steps. | A singing computer: Add Seed-VC here (about 2.5 GB more; SINGING_SEEDVC=yes). Model seedvc. |
| Voice match | ElevenLabs Voice Changer |
eleven_multilingual_sts_v2 speech to speech, in an instant voice clone made once from the voice Martlet speaks with. The result is gated to the song's sung phrases and levelled as a computer's is (SongVoice.Gate). |
Cloud (/v1/speech-to-speech). |
Cloud members. Add one with A cloud provider under a list (Pool-singing-AddCloud, Pool-voice-match-AddCloud).
The form names the provider, the model, the key and what goes to the provider; adding it needs the owner's agreement
(PoolConsent), as every cloud member does. A member without its key on this PC is passed over. Each song may cost money;
Martlet never adds credit. Rate limits (429) count as busy, refused keys, missing models and server errors as unavailable,
so the next member takes the song (SingingCloudClient).
Keys. Singing has one key per provider (SingingKeys, singing-keys.json: the credential ID of each; the key itself
is in Windows Credential Manager). The keys travel to the owner's other computers in the shared singing-keys section,
as the Thinking pool's keys do. ElevenLabs can use Speaking's ElevenLabs key; a Singing key of its own replaces it.
Finishing a cloud song. A cloud provider gives only the mixed song. When a computer in the music list (or the voice
match list) is set up for it, a separate job there separates the song with Demucs and times the lines, words and beats
as for a music job. Without one, the song is not separated: the vocals are the mix's middle and the backing its sides
(SongVoice.Unseparated), the lines are spread over the sung phrases (SongVoice.SpreadLines, or Mureka's own line
times), and the voice match is skipped, because it needs separated vocals.
How the added host models run. Each runs in its own process (martlet_singing.extras, one song per process), with
its own packages over the image's (host/requirements-<name>.lock, installed only when chosen, in
/opt/martlet-singing/extras/<name>) and its source at a pinned commit (pins.py). An added music model gives no lyric
timestamps: its song is separated by Demucs and timed from the vocals' phrases, as a cloud song is. Every file is pinned by
size and SHA-256, and nothing is downloaded at run time. None of these five models has run on a real card in Martlet
yet: the fixture checks the plumbing only.
Not added, and why (2026-10-15):
- YingMusic-SVC: its configuration needs an OpenVoice timbre-shifter checkpoint that is not published, and it pins PyTorch 2.4.
- RVC: needs minutes of training audio per voice.
- Suno and Udio: no official public API.
These are recorded verification results, not checks run during this audit.
-
python -m unittest discover -s tests -t .inworkers/singing(withPYTHONPATH=workers/singing) runs the service with the fixture: every stage, aligned paged tracks, sections and beat grid, refusals, cancel, queue, the idle release, the restart of a killed worker, and themusicandmatchkinds (a match job's input pages, a wrong offset refused, its vocals-only track, a receiving job canceled). -
tests/Martlet.Gateway.Tests/SongRelayTests.csmakes a song through a real gateway and paired client against a controlled service: voice resolution (and the one-time recording upload), progress, paging, failures, cancellation, the loopback-only relay, and a song's music and voice match as two jobs (the vocals sent in pages).tests/Martlet.Core.Tests/SongContractsTests.cschecks the contract and the fixture. - MCP
singing_checkmakes a song through the production path (fixture service, or a live one on loopback, or withdataDirectorya real paired host through its own gateway, as the desktop does;splitmakes it as two jobs, as the two pools do);singing_statusreads a live service, and with a paired data directory each host's singing through its gateway, the two singing pools (poolandpool.voiceMatch: the lists or the older choices, each member's quality or model, its verdict now and where the next job goes) and this PC's Docker side of the role (a setup in progress included).singing_pool_checkrehearses the two pools with simulated computers. See MCP. -
tests/Martlet.Core.Tests/SingingPoolTests.csandtests/Martlet.Desktop.Tests/SingingPoolMembersTests.cscheck the pools' order, lists, qualities and models, lines, failures and how the music and voice match are put together. Songs whose music and voice match are made on two different real hosts are NOT RUN. -
tests/Martlet.Core.Tests/SingingCloudTests.cschecks cloud members (agreement, key), the XL choice, the shared keys, an unseparated mix and the gated cloud voice match. MCPsinging_cloud_checkdrives each cloud provider's client against a loopback fake of its API, andsinging_checkwithqualityxlandsplitmakes an XL music job and aseparatejob with the fixture. Real cloud songs (they cost money) and real ACE-Step 1.5 XL and Demucs on a card are NOT RUN. -
tests/Martlet.Core.Tests/SingingCloudTests.cs(SingingModelsTests) and the PythonAddedModelTestscheck the model catalog, the role choices, the pins and the image build agree. MCPsinging_checkwithmodel(heartmula,diffrhythm,yue) andvoiceMatch(vevo2,seedvc, withSINGING_VEVO2/SINGING_SEEDVC=yesset for the fixture) makes those jobs through the gateway with the fixture. Building those images and running those models on a card are NOT RUN.
"Martlet, sing me a song": Martlet says it'll work on it, makes the song in the background while the conversation goes on, brings it up when it's ready and sings it when you say yes. The full behaviour (tools, lead-ins, stops, resuming, lip sync, latency) is in Conversation › Singing in conversation; in short:
- Replies get
sing_song,play_songandstop_singingwhileSongClient.IsSetUpsays singing is set up (and the Thinking route does function calling). A song job (song-1, one at a time, 4 an hour) writes the lyrics on Deep thinking when there is no lyrics argument, then callsSongClient.For(dataDirectory)with the voice Martlet speaks with (SongClient.SpeakingVoiceId) and the card's quality and voice match (SingingPreferences.Load), times the mouth to the vocals and keeps the song as asongcreation (Creations): FLAC mix, vocals and backing, its map (lines, words, beat grid) and mouth track. - Only Martlet performs songs (
play_song, orperform_creationwith the samefrom): start, resume, a section,line:Nor a time. Anywhere but the top, the band comes in on a downbeat a bar or two before the line with an equal-power fade-in and the vocals wait for the line; while Martlet still talks, the band vamps on that bar. -
stop_singing, "stop singing" (with Martlet's name or a song word), Stop singing and the talk button stop musically (the word ends, the band rings to the next beat); Esc in 300 ms. Where it stopped and why goes at the end of the conversation, andresumerestarts that line. - The mouth follows the vocals only, from a track made once per song: Audio2Face over the vocals when it answers, else
visemes from
SongResult.Words, else loudness, played on the song's own clock. Captions follow word by word. - MCP:
songs_statusandsong_playback_check(MCP). -
Without tools. Where the Thinking route does no function calling (a paired computer's gateway, or a model that
rejected tools), replies write
[sing: …],[play_song: ID from …]and[stop_singing]tags in place of the tools, with the Singing without tools prompt. The tags are never shown or spoken; Martlet does what they ask after the reply (Conversation › Singing in conversation). -
After the reply. While the After each exchange check-in ticks the Songs, pictures and creations
tool set (
songs-pictures) and the Thinking pool has a member that calls tools, the reply gets onlystop_singingand a short line instead ofsing_song,play_songand the Singing prompt: it says in a few words that it will sing. The check-in then callssing_songorplay_songon the Thinking pool, with the same arguments, limits and gates. Its lyrics continue the reply's request, as the reply's own call does. A song that can't start (singing off, busy, the hourly limit) is brought up by Martlet on its own.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine