Skip to content

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

Open
giorgosHadji wants to merge 3 commits intomainfrom
feature/add-http/requested_parallel
Open

add support for requesting parallel engines in a http batch job#95
giorgosHadji wants to merge 3 commits intomainfrom
feature/add-http/requested_parallel

Conversation

@giorgosHadji
Copy link

@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 requested_parallel 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],requested_parallel=2)
print(result)

asyncio.run(main())`

@giorgosHadji giorgosHadji requested review from TudorCRL and dumitrugutu and removed request for TudorCRL March 12, 2026 18:00
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.

1 participant