Skip to content

Conversation

@gexgd0419
Copy link
Contributor

XML tags <voice> are used to change the voice, but the output audio format is affected by the current selected voice, which is the system default voice. If the system default voice only support a lower audio quality (for example, 16kHz sample rate), the entire speech audio will be output at this quality, which can make higher quality voices sound worse.

This change attempts to fix the problem by forcing the output audio format to be 48kHz 16-bit stereo, the highest quality preset in SAPI, no matter what format the voice and the audio device support. SAPI will convert the audio format when necessary.

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.

1 participant