AXERA-TECH / MeloTTS

huggingface.co
Total runs: 26
24-hour runs: 0
7-day runs: 0
30-day runs: 14
Model's Last Updated: November 02 2025
text-to-speech

Introduction of MeloTTS

Model Details of MeloTTS

melotts.axera

Support Platform
Chips output wav cost time RTF
AX650 12s 1.5s 0.125
AX630C 12s
Requirements
添加中文输入支持

执行以下命令,正确安装中文输入法之后,重启终端登录

locale-gen C.utf8
update-locale LANG=C.utf8
Python Requirements
Requirements
cp -rf nltk_data ~/
apt-get install libsndfile1-dev libmecab-dev
mkdir /opt/site-packages
cd python
pip3 install -r requirements.txt
pyaxengine

pyaxengine 是 npu 的 python api,详细安装请参考

How to use
root@ax650:/mnt/qtang/melotts.axera/python# python3 melotts.py --help
[INFO] Available providers:  ['AxEngineExecutionProvider']
usage: melotts [-h] [--sentence SENTENCE] [--wav WAV] [--encoder ENCODER] [--decoder DECODER] [--dec_len DEC_LEN] [--sample_rate SAMPLE_RATE] [--speed SPEED]
               [--language {ZH,ZH_MIX_EN,JP,EN,KR,ES,SP,FR}]

Run TTS on input sentence

options:
  -h, --help            show this help message and exit
  --sentence SENTENCE, -s SENTENCE
  --wav WAV, -w WAV
  --encoder ENCODER, -e ENCODER
  --decoder DECODER, -d DECODER
  --dec_len DEC_LEN
  --sample_rate SAMPLE_RATE, -sr SAMPLE_RATE
  --speed SPEED
  --language {ZH,ZH_MIX_EN,JP,EN,KR,ES,SP,FR}, -l {ZH,ZH_MIX_EN,JP,EN,KR,ES,SP,FR}

输入命令

python3 melotts.py -s 爱芯元智半导体股份有限公司,致力于打造世界领先的人工智能感知与边缘计算芯片。服务智慧城市、智能驾驶、机器人的海量普惠的应用 \
                   -e encoder-onnx/encoder-zh.onnx \
                   -d decoder-ax650/decoder-zh.axmodel \
root@ax650:/mnt/qtang/melotts.axera/python# python3 melotts.py \
                      --wav output.wav \
                      --encoder ../models/encoder-onnx/encoder-zh.onnx \
                      --decoder ../models/ax650/decoder-zh.axmodel \
                      --language ZH \
                      --speed 0.9

[INFO] Available providers:  ['AxEngineExecutionProvider']
sentence: 爱芯元智半导体股份有限公司,致力于打造世界领先的人工智能感知与边缘计算芯片。服务智慧城市、智能驾驶、机器人的海量普惠的应用
sample_rate: 44100
encoder: ../models/encoder-onnx/encoder-zh.onnx
decoder: ../models/ax650/decoder-zh.axmodel
language: ZH_MIX_EN
 > Text split to sentences.
爱芯元智半导体股份有限公司,
致力于打造世界领先的人工智能感知与边缘计算芯片.
服务智慧城市、智能驾驶、机器人的海量普惠的应用
 > ===========================
split_sentences_into_pieces take 3.1397342681884766ms
[INFO] Using provider: AxEngineExecutionProvider
[INFO] Chip type: ChipType.MC50
[INFO] VNPU type: VNPUType.DISABLED
[INFO] Engine version: 2.10.1s
[INFO] Model type: 0 (single core)
[INFO] Compiler version: 3.3 3251425d
load models take 7986.6042137146ms

Sentence[0]: 爱芯元智半导体股份有限公司,
Load language module take 33348.33884239197ms
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Loading model cost 3.227 seconds.
Prefix dict has been built successfully.
encoder run take 89.70ms
Decode slice[0]: decoder run take 108.08ms
Decode slice[1]: decoder run take 92.15ms
Decode slice[2]: decoder run take 92.17ms

Sentence[1]: 致力于打造世界领先的人工智能感知与边缘计算芯片.
Load language module take 0.042438507080078125ms
encoder run take 122.83ms
Decode slice[0]: decoder run take 92.24ms
Decode slice[1]: decoder run take 92.34ms
Decode slice[2]: decoder run take 92.16ms
Decode slice[3]: decoder run take 92.16ms
Decode slice[4]: decoder run take 92.22ms

Sentence[2]: 服务智慧城市、智能驾驶、机器人的海量普惠的应用
Load language module take 0.046253204345703125ms
encoder run take 112.59ms
Decode slice[0]: decoder run take 92.26ms
Decode slice[1]: decoder run take 92.16ms
Decode slice[2]: decoder run take 92.13ms
Decode slice[3]: decoder run take 92.13ms
Decode slice[4]: decoder run take 92.10ms
Save to output.wav
root@ax650:/mnt/qtang/melotts.axera/python# 

输出音频

https://github.com/user-attachments/assets/eda5c10c-7d30-46e5-a56a-f6edcf7813af

详细的运行参数:

参数名称 说明 默认值
-s/--sentence 输入句子
-w/--wav 输出音频路径,wav格式 output.wav
-e/--encoder encoder模型路径 ../models/encoder.onnx
-d/--decoder decoder模型路径 ../models/decoder.axmodel
-sr/--sample_rate 采样率 44100
--speed 语速,越大表示越快 0.8
--language 从"ZH", "ZH_MIX_EN", "JP", "EN", 'KR', "SP", "FR"选择,分别对应中文、中英混合、日语、英语、韩语、西班牙语,法语 ZH_MIX_EN

Runs of AXERA-TECH MeloTTS on huggingface.co

26
Total runs
0
24-hour runs
-1
3-day runs
0
7-day runs
14
30-day runs

More Information About MeloTTS huggingface.co Model

MeloTTS huggingface.co

MeloTTS huggingface.co is an AI model on huggingface.co that provides MeloTTS's model effect (), which can be used instantly with this AXERA-TECH MeloTTS model. huggingface.co supports a free trial of the MeloTTS model, and also provides paid use of the MeloTTS. Support call MeloTTS model through api, including Node.js, Python, http.

AXERA-TECH MeloTTS online free

MeloTTS huggingface.co is an online trial and call api platform, which integrates MeloTTS's modeling effects, including api services, and provides a free online trial of MeloTTS, you can try MeloTTS online for free by clicking the link below.

AXERA-TECH MeloTTS online free url in huggingface.co:

https://huggingface.co/AXERA-TECH/MeloTTS

MeloTTS install

MeloTTS is an open source model from GitHub that offers a free installation service, and any user can find MeloTTS on GitHub to install. At the same time, huggingface.co provides the effect of MeloTTS install, users can directly use MeloTTS installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

MeloTTS install url in huggingface.co:

https://huggingface.co/AXERA-TECH/MeloTTS

Url of MeloTTS

Provider of MeloTTS huggingface.co

AXERA-TECH
ORGANIZATIONS

Other API from AXERA-TECH

huggingface.co

Total runs: 902
Run Growth: 889
Growth Rate: 100.00%
Updated:September 24 2026
huggingface.co

Total runs: 122
Run Growth: 60
Growth Rate: 48.39%
Updated:October 08 2026
huggingface.co

Total runs: 62
Run Growth: 52
Growth Rate: 85.25%
Updated:January 08 2026
huggingface.co

Total runs: 56
Run Growth: 20
Growth Rate: 34.48%
Updated:October 12 2026
huggingface.co

Total runs: 50
Run Growth: 25
Growth Rate: 50.00%
Updated:October 12 2026
huggingface.co

Total runs: 47
Run Growth: 17
Growth Rate: 34.69%
Updated:October 12 2026
huggingface.co

Total runs: 41
Run Growth: 14
Growth Rate: 34.15%
Updated:May 07 2026
huggingface.co

Total runs: 39
Run Growth: -88
Growth Rate: -251.43%
Updated:August 14 2026
huggingface.co

Total runs: 30
Run Growth: 9
Growth Rate: 31.03%
Updated:July 31 2026
huggingface.co

Total runs: 29
Run Growth: -3
Growth Rate: -10.34%
Updated:January 30 2026
huggingface.co

Total runs: 28
Run Growth: 1
Growth Rate: 3.57%
Updated:October 12 2026
huggingface.co

Total runs: 27
Run Growth: 1
Growth Rate: 3.57%
Updated:January 15 2026
huggingface.co

Total runs: 26
Run Growth: -39
Growth Rate: -150.00%
Updated:September 08 2026
huggingface.co

Total runs: 25
Run Growth: 18
Growth Rate: 72.00%
Updated:October 03 2026
huggingface.co

Total runs: 24
Run Growth: 14
Growth Rate: 66.67%
Updated:May 15 2026
huggingface.co

Total runs: 24
Run Growth: 6
Growth Rate: 25.00%
Updated:May 22 2026