SDKs and tools
SDKs and tools
Official Python and JavaScript SDKs, the CLI, OpenAPI and Postman.
Install
pip install shihab-asr
# until the package is live on PyPI:
pip install https://voice.shihab.co.uk/sdk/shihab_asr-1.1.0-py3-none-any.whlPython
shihab-asr for Python 3.9+, sync and asyncio.
JavaScript / TypeScript
@shihab/asr for Node 18+ and browsers.
Command line
shihab-asr transcribe and stream from a terminal.
HTTP API
Any language: plain HTTPS and WebSocket.
What the SDKs do for you
- Upload files from paths, bytes, streams or URLs, with the right content type.
- Retry 429, 503 and connection failures with backoff, honouring Retry-After, without ever billing a sync request twice.
- Idempotency keys on async job creation, and wait() to poll until a job finishes.
- Streaming clients with automatic KeepAlive, typed events and a browser microphone helper.
- Webhook signature verification and typed errors.
OpenAPI and Postman
The full HTTP API is described in OpenAPI 3.1 at https://api.shihab.co.uk/v1/openapi.json; generate a client in any language from it. A ready Postman collection is at shihab-asr.postman_collection.json.
Need help? Email [email protected] or message us on WhatsApp.