JyutVoice reads Cantonese, with English words inside Cantonese sentences, in the voice of a short reference clip. It turns text into the speech features of
CosyVoice 2's flow decoder without CosyVoice 2's autoregressive language model: a small non-autoregressive model predicts the features,
and CosyVoice 2's frozen flow decoder and HiFT vocoder render 24 kHz audio.
Small: a 13 M-parameter acoustic model takes the place of the language model (112 M parameters with the flow decoder, vocoder and speaker model).
CPU only: about 450 MB of model files. On a 6-core desktop CPU (AMD Ryzen 5 5500, 10 decoder steps) it is faster than real time for sentences up to about 8 s (real-time factor typically 0.55–0.76) and about real time at 20 s (0.9–1.25).
Controllable: typed Jyutping, SSML pronunciation, pauses, rate and volume.
Model architecture
Only the three red blocks were trained for JyutVoice. The speaker vector is the only thing taken from the reference clip.
From text to tokens
The front end's real output for one sentence. The word boundaries decide how a character is read: 太 is taai2 in the word 陳太 and taai3 (“too”) on its own.
1. Voice cloning
A 3–10 s reference clip sets the voice; nothing is trained per speaker. Each voice reads one shared sentence and one of its own.
Reference voice
New text
Generated
Higher voice 1Reference clip有唔少都係涉恐,危害社會安全
各位早晨!今日大致天晴,下晝有幾陣驟雨,出門記得帶遮。
唔該晒你專登過嚟幫手,如果冇你,我哋今晚真係唔知要搞到幾點。
Lower voice 1Reference clip而家乜嘢鬥圖嘅,我都少用,語音用嘅就更加少
各位早晨!今日大致天晴,下晝有幾陣驟雨,出門記得帶遮。
港鐵宣布荃灣綫服務已經回復正常,乘客可以放心使用。
Higher voice 2Reference clip只要你捐錢夠多,就可以話晒事
各位早晨!今日大致天晴,下晝有幾陣驟雨,出門記得帶遮。
我細個嗰陣最鍾意去阿嫲屋企,因為佢成日整蘿蔔糕俾我食。
Lower voice 2Reference clip而家其實主要為到安卓版先有語音閱讀廣東話
各位早晨!今日大致天晴,下晝有幾陣驟雨,出門記得帶遮。
喺香港,一杯凍奶茶同一個菠蘿油,就係好多人嘅下午茶。
2. SSML with Jyutping
Many surnames are read differently from the everyday word. <phoneme alphabet="jyutping"> sets how the characters it wraps are read.
English words inside Cantonese sentences, as spoken in Hong Kong. The model targets Hong Kong code mixing, not native English.
Text
Reference voice
Generated
我今朝 send 咗個 email 俾你,記得 check 下。
Higher voice 1Reference clip
呢個 project 嘅 deadline 係下星期五,我哋要快啲 follow up。
Lower voice 1Reference clip
唔好意思,個 WiFi 有啲唔穩定,可唔可以再 share 多次個 screen?
Higher voice 2Reference clip
放工之後一齊去 happy hour,定係你要留喺 office 寫 report?
Lower voice 2Reference clip
你部 iPhone 要 update 咗個 app 先用到呢個新 function。
Higher voice 1Reference clip
5. Dramatic speech with the storyteller voice
The delivery follows the reference clip: it sets pace and expression as well as the voice. The same lines are read below with an everyday reference and with a dramatic line from
the zoengjyutgaai storytelling recordings. The lines are written in the style of Romance of the Three Kingdoms.
Every clip except those marked “Reference clip” is synthetic speech made by JyutVoice. The clips of sections 1–5 were made on a CPU with its default settings, and silence before their first sound is cut to 0.15 s.
The samples are selected: some sentences and random seeds were changed after an automatic check found a mistake.