espeak-ng-mbrola-generic: Fix missing sound at the end of messages #978
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At least espeak-ng 1.51 from Debian and Ubuntu eat the last character from stdin, so we need to pad with a safe dummy for the whole expected input to be processed.
All is good with espeak (non-ng) 1.48.15:
But not so much with espeak-ng 1.51:
Notice the missing
R
.Now, if we pad the input with a single space:
So, do so in espeak-ng-mbrola-generic not to stumble on the issue. Adding one trailing space is likely safe enough that it will not start causing issues with future fixed version, and testing showed it doesn't affect the tested version: adding one or more spaces yielded the exact same results for both espeak and espeak-ng with the tested versions.