Skip to content

add support for requesting parallel engines in a http batch job#95

Merged
giorgosHadji merged 6 commits intomainfrom
feature/add-http/requested_parallel
Mar 17, 2026
Merged

add support for requesting parallel engines in a http batch job#95
giorgosHadji merged 6 commits intomainfrom
feature/add-http/requested_parallel

Conversation

@giorgosHadji
Copy link
Contributor

@giorgosHadji giorgosHadji commented Mar 12, 2026

To specify the number of ASR engines a job on http batch worker(on Prem container) can use we added a new header called X-SM-Processing-Data. Inside the header we can have a json dictionary, with a key called parallel_engines where you can specify the number of engines you want to use.

Usage with:

from speechmatics.batch import AsyncClient

async def main():
    async with AsyncClient(url='http://localhost:9002/v2') as client:
        result = await client.transcribe(sys.argv[1],parallel_engines=2)
        print(result)

asyncio.run(main())

@giorgosHadji giorgosHadji requested review from TudorCRL and dumitrugutu and removed request for TudorCRL March 12, 2026 18:00
Copy link
Collaborator

@dumitrugutu dumitrugutu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@giorgosHadji giorgosHadji merged commit 4252b44 into main Mar 17, 2026
25 checks passed
@giorgosHadji giorgosHadji deleted the feature/add-http/requested_parallel branch March 17, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants