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
+27
View File
@@ -0,0 +1,27 @@
const fs = require('fs');
const dotenv = require('dotenv');
dotenv.config();
async function test() {
const ep = 'https://api.sarvam.ai/speech-to-text/job/v1';
console.log("Creating Job...");
let res = await fetch(ep, {
method: 'POST',
headers: {
'api-subscription-key': process.env.SARVAM_API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
files: ["test.wav"],
job_parameters: {
model: "saaras:v4",
with_diarization: true
}
})
});
console.log(res.status);
let data = await res.json();
console.log(JSON.stringify(data, null, 2));
}
test();