Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EdgeTts xml escaping #186

Open
wants to merge 934 commits into
base: compose
Choose a base branch
from
Open

Fix EdgeTts xml escaping #186

wants to merge 934 commits into from

Conversation

mobad
Copy link

@mobad mobad commented Apr 18, 2024

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.

@jing332 jing332 force-pushed the compose branch 3 times, most recently from 07217a8 to 875dff5 Compare August 11, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants