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 M trying to use this repo for urdu language i have found some pretrained module on hugging face
but i m unable to use
i dont have any prior knowledge of python i m not familiar with tts
can some one pls help???????
_arabic or _latin would also work instead of _devanagari depending on your input text.
There is also a bug that you might encounter when loading fairseq models, which has been fixed in our Coqui fork, which you can install with pip install coqui-tts. This repository is not updated anymore.
and got error as
Exception has occurred: UnboundLocalError
local variable 'dataset' referenced before assignment
File "E:\PROJECTS\Quotes_urdu\t2.py", line 25, in
tts = TTS("tts_models/urd-script_devanagari/fairseq/vits")
UnboundLocalError: local variable 'dataset' referenced before assignment
Describe the bug
I M trying to use this repo for urdu language i have found some pretrained module on hugging face
but i m unable to use
i dont have any prior knowledge of python i m not familiar with tts
can some one pls help???????
To Reproduce
from TTS.api import TTS
Initialize TTS with a VITS model
model_name = "facebook/mms-tts-urd-script_devanagari"
tts = TTS(model_name=model_name)
Define your text input
text = "Kya kehna chahte ho?"
Generate and save speech
tts.tts_to_file(text=text, file_path="output.wav")
print("Audio saved at: output.wav")
Expected behavior
No response
Logs
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: