Skip to content

Conversation

@jaymroy
Copy link
Contributor

@jaymroy jaymroy commented Dec 10, 2024

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.

@HarshPatel2010

This comment was marked as spam.

Copy link
Member

@bpasero bpasero left a 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?

bpasero
bpasero previously approved these changes Dec 11, 2024
@bpasero bpasero added this to the January 2025 milestone Dec 11, 2024
@bpasero
Copy link
Member

bpasero commented Dec 11, 2024

Thanks!

@bpasero bpasero enabled auto-merge (squash) December 11, 2024 06:25
dbaeumer
dbaeumer previously approved these changes Dec 11, 2024
@bpasero bpasero dismissed stale reviews from dbaeumer and themself via 6f1dbd9 December 11, 2024 20:06
@bpasero
Copy link
Member

bpasero commented Dec 11, 2024

@jaymroy can you agree to the CLA bot?

@jaymroy
Copy link
Contributor Author

jaymroy commented Dec 11, 2024

License

@microsoft-github-policy-service agree

@bpasero bpasero merged commit 6a5c8cf into microsoft:main Dec 12, 2024
7 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to ignore code blocks in text-to-speech

7 participants