Skip to content

batch/v0.4.7

Latest

Choose a tag to compare

@giorgosHadji giorgosHadji released this 19 Mar 13:51
· 5 commits to main since this release
2e67e0c

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