Initial commit: Doctor-Patient clinical transcription and structured summary pipeline
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
const fs = require('fs');
|
||||
const dotenv = require('dotenv');
|
||||
dotenv.config();
|
||||
|
||||
async function test() {
|
||||
const ep = 'https://api.sarvam.ai/speech-to-text/job';
|
||||
|
||||
console.log("Testing POST empty JSON");
|
||||
let res = await fetch(ep, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'api-subscription-key': process.env.SARVAM_API_KEY,
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({})
|
||||
});
|
||||
console.log(res.status);
|
||||
console.log(await res.text());
|
||||
}
|
||||
test();
|
||||
Reference in New Issue
Block a user