RunAnywhere.voice assembles speech-to-text, a language model, and text-to-speech into one
session that listens, thinks, and answers out loud. It owns the microphone while it runs.
Signature
React Native takes a single options object.VoiceSession
say speaks a line without waiting for the user, which is how you greet someone.
interrupt cuts off whatever is being spoken.
Always close() the session. It holds the microphone.
Turn handling
Raise
interruption.minDurationMs in a noisy room, or a cough cuts the model off.
Steering the replies
maxOutputTokens lower than for a chat interface.
A complete screen
Permission
Request the microphone permission beforestart(). A denied permission surfaces as
microphonePermissionDenied.