DevEmperor / WristAssist

A powerful ChatGPT and DALL-E app for all WearOS devices
https://play.google.com/store/apps/details?id=net.devemperor.wristassist
Apache License 2.0
93 stars 14 forks source link

There is a bug in the TTS function module. #5

Closed AnujMuth closed 11 months ago

AnujMuth commented 11 months ago

There is a bug in the TTS function module. The answer can only read the sentence before the punctuation mark, and sometimes it will crash. Also, can you add a voice conversation function?

DevEmperor commented 11 months ago

Thank you for bringing this problem to our attention. Could you give me more details about which watch you are using and which language is causing the error? I have just discovered that there can be problems if the correct language for TTS is not downloaded in the watch settings. Does your watch use the Samsung or Google text-to-speech engine?

DevEmperor commented 11 months ago

What do you mean by "voice conversation function"? I already have voice output built in and if you use the Google or Samsung keyboard, you can also dictate. Or do you have something else in mind? :)

AnujMuth commented 11 months ago

My watch is TICWATCH PRO 3. It uses the built-in keyboard of the watch. The voice will stop every time it reaches a punctuation mark.

DevEmperor commented 11 months ago

Hm, that sounds very strange. For voice input, try installing the official Google GBoard, which is much better than the pre-installed one: https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin

Unfortunately, I can't help you with the TTS, as I can't reproduce the error (which is obviously caused by the system). Please check the settings of the watch to see which languages you have downloaded for the TTS and which engine is used.

Here is an APK based on the latest commit. Try to see if the error still occurs there, so that we are at least on the same level. https://workupload.com/file/mXGeKgJm8MF

AnujMuth commented 11 months ago

Thank you for the new version. I encountered a new problem. When I clicked New chat, I exited directly.

DevEmperor commented 11 months ago

Hm, that shouldn't happen, of course. When you click on New chat, the keyboard is retrieved and the app crashes on you. Have you downloaded the GBoard and activated it as a keyboard in the settings? It's probably because the keyboard can't be extended and not because of the new app.

AnujMuth commented 11 months ago

I downloaded and installed the latest version of GBoard, and installed the latest GOOGLE TTS as you requested. This problem occurred when clicking NEW CHAT on the new version.

DevEmperor commented 11 months ago

Okay, thanks for your feedback. I have changed the function of how the keyboard opens in this Commit, as there were already problems with it before. Apparently the new version (which came after v2.0) only works on newer Wear OS versions. I wouldn't have found that out without your feedback. I'll see if I can improve the code to open the keyboard in the next few days. In the meantime, can you test if at least the TTS works again with the new version? (Maybe you have saved chats that you can use to test this).

AnujMuth commented 11 months ago

Thank you for your reply. My watch system is too old and is still stuck in the W OS2 version. TTS is still not working properly and can only play the sentence before the punctuation mark. Also, is it possible to add a switch in the settings to enable automatic voice playback?

DevEmperor commented 11 months ago

Hm, that's what I thought. The code to open the keyboard only seems to work for Wear OS 3. Unfortunately, Google's documentation is very very poor and since I have a lot to do in the next few days, it will probably take until next week to fix the bug. As for the TTS, I'll see if there's anything I can do. Thanks for the suggestion for the settings, I will implement that as well.

DevEmperor commented 11 months ago

Hey again, I just released WristAssist 2.1.0 which includes your feature request for Auto TTS. I also managed to update the code for the keyboard. On Versions < Wear OS 3.0 (Android 11) it uses the old code, on all newer version it uses the code that didn't work for your watch, but does regular. For the TTS system I cannot find a better approach. Please test whether this feature works now for you with Google TTS. Thanks again for pointing to all these issues. :)

AnujMuth commented 11 months ago

Thank you very much 😊