How to Ensure Accessibility for Streamed Content?

0
0
Asked By TechieWizard42 On

I'm curious about how to make streamed content accessible, especially in the context of LLMs (Large Language Models). What strategies are people using for accessibility in this new content format? Is there a possibility of introducing a new ARIA role for this?

One idea I've had is to use aria-live="polite" for individual chunks or blocks of content, so they can be queued for screen readers. However, I'm concerned because if the output takes a while, users may hear bits of information too quickly. For example, I was thinking about displaying a loading message like `

Thinking…

` until the whole response has streamed in.

From what I understand, setting aria-atomic="false" would cause each streamed section to be announced again, unless it's properly chunked. But I'm not exactly sure how this would work with markdown.

I have some suggestions for a potential aria-text-stream attribute:
- **whole**: Wait until the complete response is available before reading it.
- **sliced**: Break the response into segments based on a customizable character or word count.
- **bits**: Read out each word as it comes in, or use a short delay to group words together.

What do you all think? Any best practices or thoughts to share?

2 Answers

Answered By CodeNinja88 On

One approach could be to detect if the user is utilizing a screen reader, then integrate OpenAI's voice functionality with your content stream. You can even adjust the reading speed in your configuration.

For instance:
```json
{
"model": "tts-1",
"input": "Your Text Here",
"voice": "shimmer",
"voice_settings": {
"speed": 0.9 // Here
}
}
```
This could give readers more control and make for a smoother experience.

Answered By AccessibilityGuru77 On

I'm wondering if there's a need to cluster sections for reading them back to users? It seems like using a voice mode could work better for delivering content this way.

But my concern is about the rapid reading speeds of screen readers. If the content updates, do we make the screen reader reread everything? It could create inconsistencies for users, making it a frustrating experience. Each time new content appears, it should be addressed thoughtfully to avoid breaking the flow.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.