tts-server-android icon indicating copy to clipboard operation
tts-server-android copied to clipboard

Fix EdgeTts xml escaping

Open mobad opened this issue 10 months ago • 0 comments

I am hearing the TTS saying &apos when it tries to read a ' I took a look at https://github.com/rany2/edge-tts/blob/master/src/edge_tts/communicate.py#L375 and I see that it's using https://github.com/python/cpython/blob/3.12/Lib/xml/sax/saxutils.py#L27 which only escapes &<> I changed it to only escape those and it seems to work fine now.

mobad avatar Apr 18 '24 23:04 mobad