Lip Service
v0.2.1Speech, singing and choirs made on your own CPU: sixteen English voices, played or written as WAV.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
voices List the voices
The voices there are: each one's name, sex (F or M) and the recordings it was made from.
devices List the sound outputs
The sound outputs of the machine this server runs on: each one's id (what say and sing take as device), its name, and which is the system's default. Two outputs can share a name; the id tells them apart.
say Say a text
Says a text in one of the voices. Plain text is read as written, and paragraphs are said one at a time with a pause between. With ssml true the text is SSML and must be one <speak> element. It takes <p>, <s>, <break time="600ms"/>, <prosody rate pitch volume>, <emphasis level="strong|moderate|reduced|none">, <say-as interpret-as="characters|spell-out|cardinal|ordinal|digits|time">, <phoneme alphabet="arpabet" ph="T AH0 M AA1 T OW0"> and <sub alias="...">. Anything else is refused by name. The answer says what was made, how many seconds of sound it is, and where it went.
| Parameter | Type | Description |
|---|---|---|
text * | string | What to say. |
device | string | Play it through this output: an id from the devices tool. The call returns when it has played. |
out | string | Write a WAV file (24 kHz; mono, a choir's stereo) here. A full path, or a name inside the server's own folder if it has one. A file already there is replaced. May be given with device. |
quality | string | hifi sounds best; fast is quicker. |
rate | number | Speed, times: 1.15 is 15% faster. |
seed | integer | The same seed gives the same reading; another gives another take. |
shift | number | Semitones up or down from the voice's own register. |
ssml | boolean | The text is SSML. |
timing | boolean | Also write what each voice did when, as JSON beside the WAV file, under its name with .json: phones, words, sung notes, breaths, pitch and loudness by voice, in samples, and a song's tempo. A call tha… |
voice | string | Who: a name from the voices tool. ada, cora, eve, gwen, ivy, kate, mae, opal are female; ben, dev, finn, hal, jack, leo, ned, pete are male. |
sing Sing a score
Sings a score in one of the voices. The score is text, one word a line with the notes it is sung on: %bpm 100 twinkle C4:1 C4:1 twinkle G4:1 G4:1 little A4:1 A4:1 star G4:2 %rest 1 - A line that starts with % is an instruction. Every other line is a word to sing, so rest and bpm are words like any other. - `%bpm N`: the tempo, beats a minute, 20 to 400. Exactly once, before the first word. - `WORD GROUP GROUP ...`: one bare word (no punctuation, no hyphens), then one group for each syllable of it. - A group is NOTE:BEATS, or several joined by + to move one syllable through several notes: `B4…
| Parameter | Type | Description |
|---|---|---|
score * | string | The song, as text. |
breathiness | number | The breath in the sung vowels, times. |
device | string | Play it through this output: an id from the devices tool. The call returns when it has played. |
diction | array | Rules for how sounds are sung, a line each; none are needed. A song is sung with a singer's vowels: each stressed, a long held "eye" held open and closed late; `spoken` turns that off. A rule is [word… |
dynamics | number | How far loudness and brightness follow the melody. 0 is none. |
glide | integer | Hundredths of a second the pitch takes between notes. |
motion | string | A trained singer's pitch movement in place of the plain vibrato. The seed picks the singer. |
motion_scale | number | The size of that movement, times. |
out | string | Write a WAV file (24 kHz; mono, a choir's stereo) here. A full path, or a name inside the server's own folder if it has one. A file already there is replaced. May be given with device. |
quality | string | hifi sounds best; fast is quicker. |
seed | integer | The same seed gives the same reading; another gives another take. |
shift | number | Semitones, the whole song: -12 puts a song written around middle C in a man's range. |
tags | array | Names the singer goes by, for a rule that starts for=NAME. |
timing | boolean | Also write what each voice did when, as JSON beside the WAV file, under its name with .json: phones, words, sung notes, breaths, pitch and loudness by voice, in samples, and a song's tempo. A call tha… |
vibrato | number | The vibrato's peak, semitones. 0 for none anywhere. |
vibrato_delay | number | Seconds into a vowel before the vibrato starts. |
vibrato_hz | number | The vibrato's speed. |
voice | string | Who: a name from the voices tool. ada, cora, eve, gwen, ivy, kate, mae, opal are female; ben, dev, finn, hal, jack, leo, ned, pete are male. |
choir Sing a piece for several voices
Sings a piece for several voices at once: each singer performed as a person sings (a little off the beat and the pitch, breaths taken in the rests), seated left to right, and the whole put through a room, in stereo. `piece` is a choir you write, as JSON text: {"room": "card", "style": {"glide": 9, "dynamics": 1.0, "breathiness": 0.6, "breath": 0.8}, "parts": [ {"name": "High", "voice": "cora", "song": "%bpm 90 sing C5:1 with B4:1 me C5:2 %rest 1 "}, {"name": "Low", "voice": "ben", "song": "%bpm 90 sing E4:1 with G4:1 me E4:2 %rest 1 "}]} - `room`: card, drier, driest or bare, from mos…
| Parameter | Type | Description |
|---|---|---|
piece * | string | A choir as JSON text. |
breath | number | The chance of a breath in each rest, 0 to 1. |
breathiness | number | The breath in the sung vowels, times, 0 to 1.5. |
device | string | Play it through this output: an id from the devices tool. The call returns when it has played. |
dynamics | number | How far loudness and brightness follow the notes, 0 to 2.5. |
glide | integer | Hundredths of a second the pitch takes between notes, 1 to 30. |
loose | number | How far off the beat and the pitch each singer is, 0 to 2. 1 is the piece's own, 0 exactly together. |
motion | string | A trained singer's pitch movement for every part, or none for the plain vibrato, in place of the piece's own. |
out | string | Write a WAV file (24 kHz; mono, a choir's stereo) here. A full path, or a name inside the server's own folder if it has one. A file already there is replaced. May be given with device. |
quality | string | hifi sounds best; fast is quicker. |
room | string | The room it is sung in, in place of the piece's own. |
seed | integer | The singers' draws: the same seed gives the same performance; another gives another take. Left out, the piece's own. |
sway | number | The singers' vibrato and drift against their own size, 0 to 2. 1 is the piece's own. |
timing | boolean | Also write what each voice did when, as JSON beside the WAV file, under its name with .json: phones, words, sung notes, breaths, pitch and loudness by voice, in samples, and a song's tempo. A call tha… |
vibrato | number | The vibrato alone against its own size, 0 to 2. |