Voice to rx
Voice2Rx Android SDK
Voice2Rx is an Android SDK that allows voice transcription and structured prescription data generation for healthcare applications.
Table of Contents
- Prerequisites
- Installation
- Initialization
- Basic Usage
- Working with Sessions
- Advanced Features
- Cleanup
- Links
Prerequisites
Before integrating the Voice2Rx SDK, ensure that your Android project meets the following requirements:
-
Android API level 24 or higher
-
Kotlin 1.9.0 or higher
-
Microphone permission in your AndroidManifest.xml:
-
Runtime permission handling for microphone access
Installation
Add the following dependency to your app/build.gradle.kts
file:
Initialization
To initialize the SDK, you need to implement the IOkHttpSetup
interface and provide the necessary configuration:
Basic Usage
Starting a Voice Session
To start a voice recording session:
Stopping a Voice Session
To stop a voice recording session:
Checking Session Status
To check if a recording session is currently active:
Working with Sessions
Retrieving Session History
To access previous recording sessions:
Sample Structured Rx Data
The SDK returns structured prescription data in JSON format:
Sample Markdown Output
The SDK can also generate a formatted markdown output:
Advanced Features
Retrying a Session
To retry processing a session:
Cleanup
When you’re done using the SDK, free up resources: