// Start a voice session in DICTATION or CONSULTATION modeVoice2Rx.startVoice2Rx( mode = Voice2RxType.DICTATION, onError = {})// The onStart callback (defined in init) will be triggered when the session begins
// Get all recording sessionsval sessions = Voice2Rx.getSessions()// Access a specific session (example using the first session)val session = sessions.firstOrNull()val sessionProcessingStatus = Voice2Rx.getVoice2RxSessionStatus(sessionId = session.sessionId)val sessionOutput = Voice2Rx.getVoiceSessionData(sessionId = session.sessionId)
The SDK can also generate a formatted markdown output:
Copy
Ask AI
**Chief Complaints**- Fever- Headache- Leg pain- Neck pain**Assessment**- Symptomatic fever with multiple body pains**Plan**- Medications: - Mdolo 650 tablet - TID for 3 days- Investigations advised: - Blood test - Blood sugar test - Liver function test - X-ray- Physiotherapy referral**Patient Instructions**- Take complete bed rest for 7 days- Follow up after 15 days with all investigation reports- Continue physiotherapy sessions- Take prescribed medications as directed