Lip Service

v0.2.1
dev.lipservice/lipservice Checked 4 days ago Published 7 days ago

Speech, 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.

ParameterTypeDescription
text *stringWhat to say.
devicestringPlay it through this output: an id from the devices tool. The call returns when it has played.
outstringWrite 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.
qualitystringhifi sounds best; fast is quicker.
ratenumberSpeed, times: 1.15 is 15% faster.
seedintegerThe same seed gives the same reading; another gives another take.
shiftnumberSemitones up or down from the voice's own register.
ssmlbooleanThe text is SSML.
timingbooleanAlso 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…
voicestringWho: 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…

ParameterTypeDescription
score *stringThe song, as text.
breathinessnumberThe breath in the sung vowels, times.
devicestringPlay it through this output: an id from the devices tool. The call returns when it has played.
dictionarrayRules 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…
dynamicsnumberHow far loudness and brightness follow the melody. 0 is none.
glideintegerHundredths of a second the pitch takes between notes.
motionstringA trained singer's pitch movement in place of the plain vibrato. The seed picks the singer.
motion_scalenumberThe size of that movement, times.
outstringWrite 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.
qualitystringhifi sounds best; fast is quicker.
seedintegerThe same seed gives the same reading; another gives another take.
shiftnumberSemitones, the whole song: -12 puts a song written around middle C in a man's range.
tagsarrayNames the singer goes by, for a rule that starts for=NAME.
timingbooleanAlso 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…
vibratonumberThe vibrato's peak, semitones. 0 for none anywhere.
vibrato_delaynumberSeconds into a vowel before the vibrato starts.
vibrato_hznumberThe vibrato's speed.
voicestringWho: 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…

ParameterTypeDescription
piece *stringA choir as JSON text.
breathnumberThe chance of a breath in each rest, 0 to 1.
breathinessnumberThe breath in the sung vowels, times, 0 to 1.5.
devicestringPlay it through this output: an id from the devices tool. The call returns when it has played.
dynamicsnumberHow far loudness and brightness follow the notes, 0 to 2.5.
glideintegerHundredths of a second the pitch takes between notes, 1 to 30.
loosenumberHow far off the beat and the pitch each singer is, 0 to 2. 1 is the piece's own, 0 exactly together.
motionstringA trained singer's pitch movement for every part, or none for the plain vibrato, in place of the piece's own.
outstringWrite 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.
qualitystringhifi sounds best; fast is quicker.
roomstringThe room it is sung in, in place of the piece's own.
seedintegerThe singers' draws: the same seed gives the same performance; another gives another take. Left out, the piece's own.
swaynumberThe singers' vibrato and drift against their own size, 0 to 2. 1 is the piece's own.
timingbooleanAlso 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…
vibratonumberThe vibrato alone against its own size, 0 to 2.