Initial commit: Doctor-Patient clinical transcription and structured summary pipeline
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user