capabilities/voice/models/voice_session library

Voice Session Models

Matches iOS VoiceSession.swift from Capabilities/Voice/Models/ and RunAnywhere+VoiceSession.swift from Public/Extensions/

Classes

STTOutput
Output from Speech-to-Text transcription Matches Swift STTOutput from Public/Extensions/STT/STTTypes.swift
VoiceSession
Voice session state tracking (for internal use)
VoiceSessionConfig
Configuration for voice session behavior Matches iOS VoiceSessionConfig from RunAnywhere+VoiceSession.swift
VoiceSessionError
Error occurred
VoiceSessionEvent
Events emitted during a voice session Matches iOS VoiceSessionEvent from RunAnywhere+VoiceSession.swift
VoiceSessionListening
Listening for speech with current audio level (0.0 - 1.0)
VoiceSessionProcessing
Speech ended, processing audio
VoiceSessionResponded
Got response from LLM
VoiceSessionSpeaking
Playing TTS audio
VoiceSessionSpeechStarted
Speech detected, started accumulating audio
VoiceSessionStarted
Session started and ready
VoiceSessionStopped
Session stopped
VoiceSessionTranscribed
Got transcription from STT
VoiceSessionTurnCompleted
Complete turn result

Enums

VoiceSessionErrorType
VoiceSessionState
Voice session state (for internal tracking) Matches iOS VoiceSessionState from VoiceSession.swift

Exceptions / Errors

VoiceSessionException
Voice session errors Matches iOS VoiceSessionError from RunAnywhere+VoiceSession.swift