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
+23
View File
@@ -0,0 +1,23 @@
const fs = require('fs');
const dotenv = require('dotenv');
dotenv.config();
async function test() {
const job_id = '20260901_ab0c2cab-1810-4448-b1af-b3e6785e3987';
const eps = [
`https://api.sarvam.ai/speech-to-text/job/v1/status?job_id=${job_id}`
];
for (let ep of eps) {
console.log("Testing GET", ep);
let res = await fetch(ep, {
method: 'GET',
headers: {
'api-subscription-key': process.env.SARVAM_API_KEY
}
});
console.log(res.status);
console.log(await res.text());
}
}
test();