Views
No views yet
| Input | Myna-Hokkien | GPT Audio | Qwen3.5-Omni-Plus | Gemini Live | GLM-4-Voice |
|---|---|---|---|---|---|
| How is the weather today? | |||||
| 我今天心情有点不好。 |
1pip install --upgrade huggingface_hub
2
3MODEL_DIR="$(hf download iNLP-Lab/Myna-Hokkien --quiet)"
4pip install "$MODEL_DIR"1import torch
2import soundfile as sf
3from mynahokkien import MynaHokkien
4
5model = MynaHokkien.from_pretrained(
6 "iNLP-Lab/Myna-Hokkien",
7 device_map="cuda:0",
8 dtype=torch.float16,
9)
10
11output = model.generate(
12 audio="question.wav",
13 language="nan",
14 return_text=True,
15 return_audio=True,
16)
17
18print(output.text)
19sf.write("output.wav", output.audio, output.sampling_rate)1output = model.generate(
2 text="講一個新加坡福建話的笑話。",
3 language="nan",
4)
5sf.write("output.wav", output.audio, output.sampling_rate)
6print(output.text)audio= and text= must be supplied. This release currently supports
language="nan" and the Ethan voice.1text_only = model.generate(text="你會曉講福建話無?", return_text=True, return_audio=False)
2audio_only = model.generate(text="講一句歡迎詞。", return_text=False, return_audio=True)prompt= is omitted for audio input, Myna-Hokkien uses this built-in prompt:Listen to the spoken Hokkien and reply naturally in concise Singapore Hokkien. Always answer in colloquial Singapore Hokkien written in Hanji. Never answer in Mandarin or English. Do not repeat or transcribe the input; respond to it directly.prompt=:1output = model.generate(
2 audio="question.wav",
3 prompt="Listen to this audio and reply naturally in Singaporean Hokkien.",
4 language="nan",
5)text=.@misc{myna-hokkien-2026,
title = {Myna-Hokkien: An Open-Source End-to-End Hokkien Spoken Dialogue Model},
author = {Matthew Christopher Pohadi and Ryner Tan and Wenxuan Zhang},
year = {2026},
howpublished = {\url{https://huggingface.co/iNLP-Lab/Myna-Hokkien}}