Skip to main content

Voice2Rx Android SDK

Table of Contents

  1. Overview
  2. Prerequisites
  3. Installation
  4. Initialization
  5. Basic Usage
  6. Working with Sessions
  7. Advanced Features
  8. Cleanup
  9. Links

Overview

Voice2Rx is an Android SDK that allows voice transcription and structured prescription data generation for healthcare applications.

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:

Set up logging callbacks for SDK events

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 Clinical Notes 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: