Initial commit: Doctor-Patient clinical transcription and structured summary pipeline

This commit is contained in:
Ayush
2026-11-16 19:22:04 +05:30
commit f451738732
60 changed files with 11321 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import asyncio
import httpx
import os
import base64
from dotenv import load_dotenv
load_dotenv()
SARVAM_API_KEY = os.getenv("SARVAM_API_KEY", "")
async def test_batch():
async with httpx.AsyncClient() as client:
# Step 1: create job
create_resp = await client.post(
"https://api.sarvam.ai/v1/speech-to-text",
headers={"api-subscription-key": SARVAM_API_KEY},
json={
"model": "saaras:v4",
"with_diarization": True
}
)
print("Create Job:")
print(create_resp.status_code)
print(create_resp.text)
asyncio.run(test_batch())