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

Callback gets confused over word-boundaries. #27

Open
Julian-O opened this issue Nov 7, 2014 · 0 comments
Open

Callback gets confused over word-boundaries. #27

Julian-O opened this issue Nov 7, 2014 · 0 comments

Comments

@Julian-O
Copy link

Julian-O commented Nov 7, 2014

[Tested only on Windows. Low severity.]

A call to say with non-words, such as:

say('/////')
say('/?.!@")

will, quite reasonably, result in the engine pronouncing each of the punctuation characters separately rather than as a word.

For each of the punctuation characters, the started-word callback is called - again this is reasonable.

However, the location and length parameters do not indicate the individual character being pronounced, but the whole non-word.

That is, the callback is called repeatedly, once for every letter, with exactly the same parameters.

I would expect either: the callback is only made once, for the whole non-word, or that the callback is made for each character, with a location than increments by one each time, and a length of 1.

Note: I haven't eliminated that this might be a bug in SAPI rather than pyttsx.

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

1 participant