toverainc / willow

Open source, local, and self-hosted Amazon Echo/Google Home competitive Voice Assistant alternative
https://heywillow.io/
Apache License 2.0
2.61k stars 96 forks source link

Font size is too large for display, text cut off on ESP S3 Box 3 #331

Open sammcj opened 1 year ago

sammcj commented 1 year ago

https://github.com/toverainc/willow/assets/862951/1a8e61bc-3894-437c-859c-5e7e7045cc91

I went to change the font in the configuration but found that it's hard coded to use a binary file that doesn't seem to have any source / build config:

   lv_font_willow = lv_font_load("A/spiffs/user/font/tonnelier.bin");

Ideally I'd like to make sure the font doesn't render outside the display, but also make it quite a bit smaller.

stintel commented 11 months ago

We've made a change in Willow Application Server to sanitize the response from command endpoints: toverainc/willow-application-server@5f3fe38aa7afc0ecea31dd606bcd60e0f2162be2. If you run WAS with this change included, and enable WAS Command Endpoint in WAS > Configuration > Advanced, this should solve the issue in the video.

stintel commented 11 months ago

We have just released WAS 0.2.0-rc.2 which includes the aforementioned change. Please test and close this issue if that solves the problem for you.

Thanks!

sammcj commented 11 months ago

Howdy @stintel, Thanks for looking into this.

Just tested out WAS 0.2.0-rc.2 with both current stable and 0.3.0-rc2 firmware and unfortunately it's no different - the font size is still quite large and scrolls off the screen (very laggy scrolling too?).

I'm just rushing out but I'll take some photos tomorrow.

sammcj commented 11 months ago

Actually - to correct myself after another reboot it did update!

It is better at least for short response but if you're getting it to tell you a few sentences the text is still so large it has to scroll for a very long time.

IMG_2251

sammcj commented 11 months ago

Is the font, typeface size, background colour and basic text layout configurable by the user somewhere?

In a perfect would I'd like to get rid of the 'welcome to willow' and 'i heard:' and simply have what it heard at the top in small text, then the response (without the word response:) across 2-4 lines

stintel commented 10 months ago

We're an audio device first. We keep the UI very simple because we don't want to spend a lot of time on it. For the same reason, we don't support customizing it, and it's not planned either.