Skip to main content

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:
  1. Set up webhook registration (one-time setup)
  2. Install the SDK
  3. Implement authentication
  4. Upload audio files
  5. Process the webhook callback
  6. 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:

Available Template IDs

Eka Care supports multiple output templates for different medical documentation needs. Choose the appropriate template ID based on your requirements:

Available model types

Supported Input Languages

Eka Care supports transcription in multiple languages. Specify the appropriate language ID in the input_language parameter:

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

Troubleshooting

Common Errors

  1. Authentication Failed: Verify your client ID and secret are correct
  2. File Upload Failed: Ensure file paths are valid and files are readable
  3. Webhook Not Received: Check your endpoint is publicly accessible and correctly registered
  4. 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.