JyutVoice TTS mascot

JyutVoice

Small, fast Cantonese text-to-speech with a Hong Kong accent

Research use only. For any other purpose, please contact joseph.cheng@hon9kon9ize.com.

Overview

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.

Model architecture

Architecture: a rule-based text front end, a 12.9 M parameter acoustic model (text encoder, duration sampler, ProsodyCFM), then CosyVoice 2's frozen flow decoder and HiFT vocoder, with a speaker vector from the reference clip.
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

How the sentence 陳太3點要開meeting。 is normalised, cut into words, read as Jyutping and split into phones
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 voiceNew textGenerated
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.

CaseSSML inputWithout the tagWith <phoneme>
仇 as a surnamevoice: Higher voice 2你好,<phoneme alphabet="jyutping" ph="kau4">仇</phoneme>小姐喺三樓等緊你。plain text: 仇 = with the tag: 仇 =
單 as a surnamevoice: Lower voice 1今日<phoneme alphabet="jyutping" ph="sin6">單</phoneme>先生請咗假。plain text: 單 = with the tag: 單 =
查 as a surnamevoice: Higher voice 1好耐冇見喇,<phoneme alphabet="jyutping" ph="zaa1">查</phoneme>太!plain text: 查 = with the tag: 查 =

The input can also be Jyutping from start to end.

Typed Jyutping inputIn charactersGenerated
nei5 hou2, ngo5 dei6 gam1 jat6 heoi3 sam1 seoi2 bou2 sik6 je5, hou2 m4 hou2 aa3?voice: Lower voice 2你好,我哋今日去深水埗食嘢,好唔好呀?

3. Pauses with the break tag

<break time="…"/> inserts silence of that length between two pieces of speech; any pause the model makes itself at the edge of a piece comes on top.

CaseSSML inputWithout <break>With <break>
A dramatic pause before a namevoice: Lower voice 1今屆最佳新人獎嘅得主係<break time="1.5s"/>陳大文!
Pauses between choicesvoice: Higher voice 1你可以揀三樣嘢:奶茶,<break time="700ms"/>咖啡,<break time="700ms"/>或者檸檬茶。
A countdownvoice: Higher voice 2準備好未?三,<break time="800ms"/>二,<break time="800ms"/>一,<break time="800ms"/>開始!

4. Cantonese–English code mixing

English words inside Cantonese sentences, as spoken in Hong Kong. The model targets Hong Kong code mixing, not native English.

TextReference voiceGenerated
我今朝 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.

Everyday referenceStoryteller reference
Lower voice 1Reference clip而家乜嘢鬥圖嘅,我都少用,語音用嘅就更加少Storyteller (zoengjyutgaai)Reference clip主席話:當然可以啦,咁大一個北京,唔通裝唔落我嘅半個小同鄉咩?
SceneTextEveryday referenceStoryteller reference
Opening the tale話說天下大勢,分久必合,合久必分。呢一場風雲變幻,就要由東漢末年講起!
A battle cry張飛一聽,登時圓睜環眼,大喝一聲:「我乃燕人張翼德是也!邊個敢嚟同我決一死戰?」
A villain laughs只見曹操仰天大笑:「天下英雄,得你同我咋!」劉備嚇到手上對筷子都跌咗落地。
A calm strategist諸葛亮輕輕搖住把羽扇,微微一笑:「主公唔使擔心,今晚,我自有妙計。」

6. Tongue twister

A long passage packed with look-alike syllables and made-up country names, read in one clip.

TextGenerated
我叫韓德能,喺呢條黃巷嘅巷口度有一隻狗,佢個名叫做黃汗寒狼。話說喺東方有一個叫做黃汗寒狼牛牙雅夏蝦嘅國家,呢個國家嘅人都好鍾意養狗。佢地係用黃汗寒狼焊汗糠嚟到養嘅。其中以壓乞黑國、很肯國、特突國、能單騰國、華滑挖國、心足縮學咢確國、等登燈等國嘅人最多。

About these samples