-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add api for easy use #186
add api for easy use #186
Conversation
sorry by mistake i close , i try to see little later and i tell you |
Hi @lpscr |
@SWivid great thank you only one think it;s not useful to change this values
like this you can't change this values it's static its not useful change this values ? i mean i see also when you have free time check the api here how i use it i think good to use all you make limits like this and you have make amazing app thank you very much for the great work ! i love this repo |
@lpscr yes, we may just separate these parameter setting for gradio and cli Just change it the way that feels good to you 👌. |
i'm about to rest as it's quite approching dawn here lol. |
yes understand me too i am all day in this repo :) happy to help |
@lpscr hey man thanks for the api script, thats fantastic!! so while i tried to run this script its notthrowing error but the audio is not being generated the spectrogram is blank!! can you tell me what could be the issue?? (coqui-tts) E:\ML\ml_projects\project_folder\F5-TTS> |
hi @SWivid i just update api and utils_infer to pass all value can tell me why get update infer limits X ? i am new in github ... when i make new git clone for test update working fine what wrong ? |
try
|
sorry @SWivid
i don't understand i do this get all pass what wrong |
Hi @lpscr , thought you just got it right. |
i think i fix can you please check it sos: |
@lpscr there's some pre-commit-bots to do it automatically I think, but i'm also new to this, lol |
@lpscr as you said i created a new folder and cloned the repo and ran api.py script still its generating empty audio!! any possible wat to debug and know what is the actual cause of it?? vocab : Emilia_ZH_EN gen_text 0 I don't really care what you call me. I've been a silent spectator, watching species evolve, empires rise and fall. But always remember, I am mighty and enduring. Respect me and I'll nurture you; ignore me and you shall face the consequences. |
Hello, I'm testing the API, and I'm loving it, specially because I can disable ema with the pt model, not sure how to get a safetensors without ema though. But when I try "fix_duration" I always get a 0 seconds audio, any ideas? Thanks! |
@juangea when you reduse the model take only ema dict you can see here part in code F5-TTS/src/f5_tts/train/finetune_gradio.py Lines 999 to 1016 in ac77a76
|
AWesome, thanks @lpscr . About the "fix_duration" does someone knows something? Each time i try to use it from python/api it delivers 0 seconds audio, no matter the other parameters, I change it from "None" to "3.5" for example, and I get no audio. Thanks! |
@juangea This happened because the reference audio you used has a shorter duration , it needs to be the same length or longer. |
Ok! I’ll test it, great to know :) thanks! |
it's not working for me, I gave a 9 seconds audio file, and I tried with the exact same duration, using soundfile to measure it, and it delivered 0 seconds audio, also I tried to manually set 8 seconds and the same, 0 seconds audio. It's like with the API I cannot get any result if I enable the "fix_duration" parameter, is there any other thing I should check? I see no error in the terminal at all, just the resulting wav audio has 0 seconds duration |
if provide a 9 second reference audio file, and want to generate an audio of 6 seconds. |
thanks! gonna try right now. |
It's working, however if the phrase is too long, with the API I get an strange error: Traceback (most recent call last): I think it has no relation to the fix_duration, because with a shorter phrase it wored, the weird thing is that with a try with that long phrase it worked fine, so I'm not sure why am I getting this error. |
it's literally passing a invalid ref_text format, check if the ref_text is correctly passed in with str format |
I'm sorry!!! You are right, in the variable at the end I had a semi colon, but python was not giving an error at definition time, so it was passing it as a tuple even when it had only one value. thanks and sorry for that, delete this messages if you want, because it's not related to the API |
lol no worry, if working just fine |
hi @SWivid i create api to easy use . and now you can use anywhere you like and simple call
only i notice something the cpu it's not working with last update fp16 can you check it
i know the cpu for interface slow but from me it's immortal because when i do train and i want to check checkpoit i call infer with cpu to don't crash memory
from api import F5TTS
in jupyter
review