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 1 commit into
base: compose
Choose a base branch
from
Open

Fix EdgeTts xml escaping #186

wants to merge 1 commit 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.

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.

None yet

1 participant