Skip to content

Batching / Concurrent audio streams for different clients #20

@JamesDeAntonis

Description

@JamesDeAntonis

Is it possible to handle multiple audio streams at once? I think this comment is about how to finish one stream and then start another. I'm curious about whether it's possible to start processing a new stream while still processing existing ones. I think there's two levels two this:

Level 1. handle concurrent audio streams in a non-batching fashion, like be able to handle two different states and perhaps alternate inference calls to each in a round robin fashion
Level 2. handle concurrent audio streams in the same model call, optimized with batching, and dynamically push and pop different streams as they start and finish

It seems like the asr model itself isn't stateful (looks like KV caching happens outside the model). So, maybe a modest refactor could allow for sharing the same model instance across multiple active online asr instances. Unless I'm missing something, this would accomplish level 1 which would be good

Level 2 seems like a more significant lift

Have you guys thought about implementing either of these things?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions