Python sdk
Eka Care Ekascribe Python SDK Integration
This guide explains how to integrate the Eka Care Ekascribe Python SDK.
Overview
Eka Care provides an Ekascribe service that allows you to transcribe audio files into structured medical data. The Python SDK simplifies this integration process.
Quick Start
The integration process follows these main steps:
- Set up webhook registration (one-time setup)
- Install the SDK
- Implement authentication
- Upload audio files
- Process the webhook callback
- Retrieve and parse the Ekascribe results
Prerequisites
- Python 3.6 or higher
- pip for dependency management
- Client credentials (client ID and secret) from Eka Care
Installation
You can add the Eka Care Python SDK to your project using pip:
Step 1: Register Webhook (One-time Setup)
Before using the Ekascribe service, register a webhook to receive notifications when transcription is complete:
Step 2: Authentication
Initialize the client with your credentials and obtain access tokens:
Step 3: Upload Audio Files
Upload audio files for transcription:
Step 4: Handle Webhook Callback
When the transcription is complete, Eka Care will send a webhook notification to your registered endpoint. Here’s a sample of what you’ll receive:
Step 5: Retrieve Ekascribe Results
After receiving the webhook notification, retrieve the transcription results:
Complete Example
Here’s a complete example integrating all the above steps:
The uploader automatically:
- Determines appropriate upload method based on file size
- Uses multipart upload for large files (>100MB)
- Detects content types from file extensions
- Groups related files with transaction IDs
Additional Resources
- Eka Care Python SDK Examples Repository
- Eka Care Developer Documentation
- API Reference for Webhooks
- API Reference for Ekascribe
Troubleshooting
Common Errors
- Authentication Failed: Verify your client ID and secret are correct
- File Upload Failed: Ensure file paths are valid and files are readable
- Webhook Not Received: Check your endpoint is publicly accessible and correctly registered
- Import Errors: Make sure you’ve installed all necessary dependencies
Support
For additional support, contact the Eka Care developer support team at support@eka.care.