Run this model with HF Jobs

Run lseanlon/suaradee-v0.2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/lseanlon/suaradee-v0.2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/lseanlon/suaradee-v0.2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
File size: 518 Bytes
55bb263
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
"""pip install onnxruntime numpy huggingface_hub soundfile

   pip install https://huggingface.co/lseanlon/suaradee-v0.2/resolve/main/dist/suaradee-0.2.0-py3-none-any.whl"""
import soundfile as sf

from suaradee import SAMPLE_RATE, Suaradee

tts = Suaradee.from_pretrained('lseanlon/suaradee-v0.2')      # downloads the 8.5 MB int8 model once
audio = tts('Selamat pagi, boleh saya bantu encik hari ini?')
sf.write('hello.wav', audio, SAMPLE_RATE)
print(tts.phonemize('Jumlah bayaran anda ialah RM1,250.50.'))