What's Changed
- add support for requesting parallel engines in a http batch job by @giorgosHadji in #95
- add user_id as input to header for http batch V2 API by @giorgosHadji in #97
Usage with:
from speechmatics.batch import AsyncClient
async def main():
async with AsyncClient(url='http://localhost:PORT/v2') as client:
result = await client.transcribe(audio_file_path, parallel_engines=2, user_id="MY_USER_ID")
print(result)
asyncio.run(main())
which will flow into the headers being sent as part of the POST request to the server.
These features are available for use for on Prem scenarios only, given the transcriber version supports them. If it doesn't support them, they will be ignored.
The need for user_id is specific for the speaker_id feature as its a requirement to be able to use it - https://docs.speechmatics.com/speech-to-text/features/speaker-identification
New Contributors
- @giorgosHadji made their first contribution in #95