Files
open-webui/backend/open_webui/routers/audio
Classic298 4fce9764f9 fix: text-to-speech and speech-to-text fail on Windows for text outside the system code page (#35096)
On Windows with a non-UTF-8 code page like cp1252, reading a message aloud or transcribing audio returned a 500 with "'charmap' codec can't encode character" whenever the text held characters the code page lacks, such as arrows, CJK or emoji. The audio or transcript had already come back from the provider, but saving its cache file failed because the file was written in the Windows code page. These cache files are now always written as UTF-8, so the request succeeds on any Windows language setting. Text-to-speech through an OpenAI connection had the same problem and is fixed too. It only showed up once ENABLE_ORJSON became the default.

Fixes #35087
2026-12-01 01:49:18 +04:00
..
2026-11-22 17:13:34 +04:00