Skip to content

Chunk large portions of incoming text to avoid hangs? #110

@ultrasound1372

Description

@ultrasound1372

I'm not entirely sure where all the latency is coming from, and some of it might very well be NVDA. But if you send large blobs of text, thousands of characters, a delay is introduced. Under 6k characters or so it simply manifests as a short delay before speech, which while undesirable isn't that big of a deal. But going beyond that starts going into downright hang territory rather quickly. I've seen this hang truly lock up NVDA as a whole not just the speech thread, and in some circumstances actually hanging the text editor the large blob on one line came from. How much of it is due to the rather expensive transforms we're performing on the data and how much is the synthesizer itself I don't know. Would it be possible to institute some kind of chunking algorithm similar to what say all does for strings beyond a few thousand characters? And then perhaps only apply the complex transforms on the pieces, which cuts down on the search space?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions