RTranslator icon indicating copy to clipboard operation
RTranslator copied to clipboard

tts initialization failed

Open khimaros opened this issue 1 year ago • 36 comments

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

khimaros avatar Jun 19 '24 04:06 khimaros

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

the4anoni avatar Jun 19 '24 05:06 the4anoni

Same issue on GrapheneOS, Pixel 6a

zanovis avatar Jun 19 '24 05:06 zanovis

@zanovis which tts engine is giving you problems?

niedev avatar Jun 19 '24 07:06 niedev

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

niedev avatar Jun 19 '24 07:06 niedev

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

basings avatar Jun 19 '24 11:06 basings

@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.

niedev avatar Jun 19 '24 11:06 niedev

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

Screenshot_20240619-141226

basings avatar Jun 19 '24 12:06 basings

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.

niedev avatar Jun 19 '24 12:06 niedev

Unfortunately no success either Screenshot_20240619-143347

basings avatar Jun 19 '24 12:06 basings

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.

niedev avatar Jun 19 '24 12:06 niedev

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.

khimaros avatar Jun 19 '24 14:06 khimaros

same error on Xiaomi13

mintisan avatar Jun 20 '24 02:06 mintisan

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

Byte1122 avatar Jun 20 '24 09:06 Byte1122

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.

niedev avatar Jun 20 '24 09:06 niedev

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.

Byte1122 avatar Jun 20 '24 12:06 Byte1122

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 avatar Jun 20 '24 12:06 niedev

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.

niedev avatar Jun 20 '24 12:06 niedev

it is working beautifully now. thank you!

khimaros avatar Jun 20 '24 13:06 khimaros

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

Byte1122 avatar Jun 20 '24 13:06 Byte1122

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

sadtler avatar Jun 21 '24 03:06 sadtler

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.

a1649702136 avatar Jun 24 '24 14:06 a1649702136

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).

niedev avatar Jun 24 '24 14:06 niedev

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

AoThen avatar Jun 25 '24 01:06 AoThen

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.

niedev avatar Jun 25 '24 08:06 niedev

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.

kingdq avatar Jun 25 '24 21:06 kingdq

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 avatar Jun 26 '24 13:06 niedev

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

niedev avatar Jun 28 '24 22:06 niedev

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

For me It fixed issue :)

the4anoni avatar Jun 29 '24 09:06 the4anoni

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

shafiev avatar Jun 30 '24 12:06 shafiev

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

niedev avatar Jun 30 '24 12:06 niedev