Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import ExpoTwoWayAudioModule from './ExpoTwoWayAudioModule'
export interface MicrophoneDataEvent {
data: Uint8Array
}
export interface VolumeLevelEvent {
data: number
}
export interface RecordingChangeEvent {
data: boolean
}
export interface AudioInterruptionEvent {
data: string
}
export interface ExpoTwoWayAudioEventMap {
onMicrophoneData: MicrophoneDataEvent
onInputVolumeLevelData: VolumeLevelEvent
onOutputVolumeLevelData: VolumeLevelEvent
onRecordingChange: RecordingChangeEvent
onAudioInterruption: AudioInterruptionEvent
}
export type MicrophoneDataCallback = (event: MicrophoneDataEvent) => void
export type VolumeLevelCallback = (event: VolumeLevelEvent) => void
export type RecordingChangeCallback = (event: RecordingChangeEvent) => void
export type AudioInterruptionCallback = (event: AudioInterruptionEvent) => void
export function addExpoTwoWayAudioEventListener<K extends keyof ExpoTwoWayAudioEventMap>(
eventName: K,
handler: (ev: ExpoTwoWayAudioEventMap[K]) => void
) {
return ExpoTwoWayAudioModule.addListener(eventName, handler)
}