-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Issue: #214481 Add Option to Ignore Code Blocks in Text-to-Speech #235697
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
Conversation
This comment was marked as spam.
This comment was marked as spam.
bpasero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach in principle makes sense to me but it does not work: the chunk from here:
const { chunk, offset } = this.parseNextChatResponseChunk(response, totalOffset);
No longer contains any backticks. They are removed when calling renderStringAsPlaintext I believe, can you check?
|
Thanks! |
|
@jaymroy can you agree to the CLA bot? |
@microsoft-github-policy-service agree |
fix #214481
Implementation of a requested feature
I introduced a new setting under the existing accessibility.voice.* namespace, modified the nextChatResponseChunk generator to track code block boundaries and stopped synthesizing text within the code blocks when the setting is enabled.