niedev / RTranslator

Open source real-time translation app for Android that runs locally
Apache License 2.0
6.56k stars 494 forks source link

tts initialization failed #8

Closed khimaros closed 2 months ago

khimaros commented 3 months ago

this is on CalyxOS with eSpeak as the configured TTS engine. let me know if i can provide any other information

the4anoni commented 3 months ago

I have same issue on LineageOS 21 with RHvoice installed and set up properly. Other apps can use RHvoice properly.

zanovis commented 3 months ago

Same issue on GrapheneOS, Pixel 6a

niedev commented 3 months ago

@zanovis which tts engine is giving you problems?

niedev commented 3 months ago

I will investigate the compatibility with all the TTS cited here.

basings commented 3 months ago

Same for me on GrapheneOS with installed google TTS from play store.

niedev commented 3 months ago

@basings go to the RTranslator settings -> Text to speech and click on it, if the preferred engine is not the Google one, select it, if it is Google's TTS try to reinstall it, I had the same issue in the past and reinstall solved the problem, let me know if it works.

basings commented 3 months ago

@niedev unfoortunately no success after reinstalling. I can't get into the settings. Right after model download it errors.

Screenshot_20240619-141226

niedev commented 3 months ago

Right 😅, I definitely need to move the error reporting to WalkieTalkie and Conversation modes only and make some adjustments. For now you can access the setting directly from the settings of the phone (the setting in my app is just a link to that setting), to find the tts settings try to search "Text-to-speech" (in my phone is in Accessibility, but the location can vary, so the search is better), from there you can choose Google TTS as TTS Engine.

basings commented 3 months ago

Unfortunately no success either Screenshot_20240619-143347

niedev commented 3 months ago

Ok, so maybe it's a compatibility issue with that Custom ROM.

These days I'll manage the error better so that it doesn't block the rest of the use of the app, and then I'll try to solve the compatibility issues too (that will take more time), I'll update you here as soon as I have news.

khimaros commented 3 months ago

thank you! @niedev personally i would be fine using it with TTS disabled. my use case is to follow continuously a conversation in another language . text only is sufficient.

mintisan commented 3 months ago

same error on Xiaomi13

Byte1122 commented 3 months ago

same error on GrapheneOS. Can't use the app. Looking forward to use this app!

niedev commented 3 months ago

I'm working right now on handling the error better so that you can at least use the app (even if without TTS), an update should be out today.

Byte1122 commented 3 months ago

I'm working right now on handling the error better so that you can at least use the app (even if without TTS), an update should be out today.

Great! Also: please add a btc/crypto donation address. Love to donate if you keep supporting GrapheneOS and other altenative OS without or limited Google services.

niedev commented 3 months ago

The update has been released 🚀, now the app should work without TTS, just click on "continue" when you display the error on the initial loading, let me know if it works properly now.

niedev commented 3 months ago

Great! Also: please add a btc/crypto donation address. Love to donate if you keep supporting GrapheneOS and other altenative OS without or limited Google services.

Thank you for wanting to help! I don't have a crypto wallet so for now I'll just leave PayPal, but I don't rule it out for the future.

khimaros commented 3 months ago

it is working beautifully now. thank you!

Byte1122 commented 3 months ago

Also works great ! offline without any connection. Love it! and many thanks. Will surely donate !

sadtler commented 3 months ago

There was an error with the tts initialization, do you want to continue without tts?

a1649702136 commented 3 months ago

First, "There was an error with the tts initialization, do you want to continue without tts?" click "continue" then show that "There was an error loading the files of the models for translation and speech recognition, try restarting thle app, if the problem persists then reset it." So I can't start it.

niedev commented 3 months ago

Sometimes there can be errors with the download of files (in the future I will improve the detection and management of these errors), for now the only way to resolve is to uninstall and reinstall the application, and make sure to keep the phone with the screen turned on and with RTranslator open during the download (the download also works in the background, but doing so minimizes the possibility of errors).

AoThen commented 3 months ago

Or APP can set a local directory option and download these offline voice packages in advance, which can eliminate network factors.

niedev commented 3 months ago

Or APP can set a local directory option and download these offline voice packages in advance, which can eliminate network factors.

Someone already suggested it here, I added it to the list of things to do.

kingdq commented 3 months ago

please provide download address of google tts engine or download link in the google store, because what i have found is "Speech Recognition and Synthesis from Google",but it doesn't work.

niedev commented 3 months ago

please provide download address of google tts engine or download link in the google store, because what i have found is "Speech Recognition and Synthesis from Google",but it doesn't work.

That is the correct one, have you tried to restart the app? (by restart I mean close it from recent apps) If this doesn't work can you tell me if you use a custom ROM and which one?

niedev commented 3 months ago

There is a new release that should fix the TTS issues! 😁 Let me know if it works correctly.

the4anoni commented 3 months ago

There is a new release that should fix the TTS issues! 😁 Let me know if it works correctly.

For me It fixed issue :)

shafiev commented 3 months ago

problem too even with new release on reno oppo 11 ( android 14 )

niedev commented 3 months ago

@shafiev could you tell me what the problem is exactly? And with which TTS?

shafiev commented 3 months ago

@niedev i cannot start application at all permamently give this error at start

There was an error loading the files of the models for translation and speech recognition, try restarting the app, if the problem persists then reset it. ΕΧΙΤ

niedev commented 3 months ago

Ok @shafiev, this error is not due to TTS but it happens when there was an error with the initial download, I'm working on it at the moment, but for now the only solution is to reinstall the app and re-download keeping the app always open in the foreground.

shafiev commented 3 months ago

Unfortunately this solution doesn't work on my phone ( @niedev

niedev commented 3 months ago

I'm sorry @shafiev, anyway today or tomorrow the update that will improve the download should be released, I'll let you know as soon as it comes out.

niedev commented 2 months ago

@shafiev the update that improves the download is out! If you install it now it should give you the option to fix the problem by re-downloading only the corrupted files. Let me know how it works.

shafiev commented 2 months ago

Now works,thank you @niedev Some offtop question is there possible to add another languages like in this model https://translate.wmcloud.org/ ?

niedev commented 2 months ago

Now works,thank you @niedev Some offtop question is there possible to add another languages like in this model https://translate.wmcloud.org/ ?

In the future I will separate the languages supported by Whisper and the ones supported by NLLB, so for the text translation mode a lot more languages will be added.