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

sapi5 throwing exceptions when encountering xml character #222

Open
jdude08221 opened this issue Feb 16, 2022 · 1 comment
Open

sapi5 throwing exceptions when encountering xml character #222

jdude08221 opened this issue Feb 16, 2022 · 1 comment
Assignees

Comments

@jdude08221
Copy link

when writing text starting with <, the sapi5 returns an exception if there is not valid xml following that character.

from
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms720892(v=vs.85)

it seems like there are some flags that can be passed to the Speak function. It might make sense to just default the Speak function flags for _tts in sapi5.py to be SVSFIsNotXML (16) as the way it is now, it basically breaks on xml

self._tts.Speak(fromUtf8(toUtf8(text)), 16)

@jdude08221 jdude08221 changed the title sapi5 crashing throwing exceptions when encountering xml character sapi5 throwing exceptions when encountering xml character Feb 16, 2022
@willwade willwade self-assigned this Oct 17, 2024
@willwade
Copy link
Collaborator

willwade commented Oct 17, 2024

See also #287

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

No branches or pull requests

2 participants