You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already search the issues and the docs. but can't find any message.
What is question?
Some language in China or Vietnam have tones,the tone of each character is different, different tones make the words have different meanings.
for example chinese Hakka language have six tones. I use https://hf-mirror.com/facebook/mms-tts-cnh to generate wav, but don't know how to set tones of my text, I can not find any document about tones of mms-tts
this code can generate wav file, but tones is strange, i don't know how to change it
Code
from transformers import VitsModel, AutoTokenizer
import torch
model = VitsModel.from_pretrained("facebook/mms-tts-hak")
tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-hak")
text = "ngi shit fan liau mo" # hakka text
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
output = model(**inputs).waveform
from IPython.display import Audio
au = Audio(output, rate=model.config.sampling_rate)
with open('test_hak.wav', 'wb') as f:
f.write(au.data)
The text was updated successfully, but these errors were encountered:
Questions
I already search the issues and the docs. but can't find any message.
What is question?
Some language in China or Vietnam have tones,the tone of each character is different, different tones make the words have different meanings.
for example chinese Hakka language have six tones. I use https://hf-mirror.com/facebook/mms-tts-cnh to generate wav, but don't know how to set tones of my text, I can not find any document about tones of mms-tts
this code can generate wav file, but tones is strange, i don't know how to change it
Code
The text was updated successfully, but these errors were encountered: