TTS-WebUI icon indicating copy to clipboard operation
TTS-WebUI copied to clipboard

RVC Audio Conversion on the new UI does not accept .mp3 files

Open RustoMCSpit opened this issue 11 months ago • 8 comments

RustoMCSpit avatar Feb 04 '25 15:02 RustoMCSpit

Is this for the react UI or gradio? Either should be able to do mp3s though

rsxdalv avatar Feb 04 '25 16:02 rsxdalv

react

RustoMCSpit avatar Feb 04 '25 16:02 RustoMCSpit

i have the same problem yes, the ReactUI seems to not accept any audio when you upload them. the normal gradio UI works just fine, you upload the file and appears. the react ui doesn't work. not only mp3 files, any audio file, they just don't upload

i'm talking about the "Audio Conversion" tab

it works if you try to upload a.. "fake" file

for example.

if you create a .txt file, rename it to.. "somerandomshit.mp3" or any supported type of audio file, and try to upload that, you can upload it. but obviously doesn't work when you use it.

but, if you try to upload a "real" song, in any supported format, doesn't work.

SuperFurias avatar Feb 10 '25 20:02 SuperFurias

Ok found the problem. it seems that in the ReactUI, Audio Conversion tab, you can't upload ANY file that's bigger than 4000 kb

i tried a bunch of files that are less or equal than 3735 kb, (don't have time to test the real exact limit in kb, i will approx. to 4000) they work, they upload without any problem. but if i try ANY file that's more than 4000, like, for example (in my case), 4176, it doesn't work. @rsxdalv

SuperFurias avatar Feb 10 '25 20:02 SuperFurias

i will wait for a fix, because i really like the react ui, its so clean and simple, for now i will use the gradio ui

SuperFurias avatar Feb 10 '25 20:02 SuperFurias

and also, in the Audio Conversion tab, RVC, in the Pitch Collection Method you can select fcpe but it doesn't work because the package torchfcpe is not installed, i had to install it manually, can you also fix this?

SuperFurias avatar Feb 10 '25 21:02 SuperFurias

why was there a swap from gradio to react, i thought radio was the de facto ai standard

RustoMCSpit avatar Feb 10 '25 21:02 RustoMCSpit

Ok found the problem. it seems that in the ReactUI, Audio Conversion tab, you can't upload ANY file that's bigger than 4000 kb

i tried a bunch of files that are less or equal than 3735 kb, (don't have time to test the real exact limit in kb, i will approx. to 4000) they work, they upload without any problem. but if i try ANY file that's more than 4000, like, for example (in my case), 4176, it doesn't work. @rsxdalv

Thanks I will have to test it. I will modify this issue to include that info.

and also, in the Audio Conversion tab, RVC, in the Pitch Collection Method you can select fcpe but it doesn't work because the package torchfcpe is not installed, i had to install it manually, can you also fix this?

Thanks! Fixed. I would like to switch everything to being a plugin so that I can better fix issues like these. Right now the whole system has to work for the installation to succeed, and partially failed installations are even more confusing to users than if it was a plugin that 'was broken' (in worst case scenarios).

why was there a swap from gradio to react, i thought radio was the de facto ai standard

Because every time gradio updates, let's say, from 3.40 to 3.44, they break stuff. When they updated from 3.48 to 4.0 they broke a lot of stuff, and then upgrading to 5.0 broke some more stuff. Finally, updating to 5.5 made the tabs look different, completely breaking the original UX of the UI. Also developing advanced features on Gradio is a pain.

rsxdalv avatar Mar 17 '25 23:03 rsxdalv

Ok found the problem. it seems that in the ReactUI, Audio Conversion tab, you can't upload ANY file that's bigger than 4000 kb

i tried a bunch of files that are less or equal than 3735 kb, (don't have time to test the real exact limit in kb, i will approx. to 4000) they work, they upload without any problem. but if i try ANY file that's more than 4000, like, for example (in my case), 4176, it doesn't work. @rsxdalv

Thank you, this helped me a lot. Sorry it took so long. The good news is that it's fixed, though I would not recommend 50mb files since they will end up in some temp folder, browser cache etc, but I can definitely see the need to.

    maxSize: 1024 * 1024 * 4,

The bad news is that it really should not have been this slow, but finally it's done.

Also, it was supposed to show an error but I do not know why it did not. Added some better logging to at least improve the situation.

rsxdalv avatar Jun 26 '25 14:06 rsxdalv