native/dart_bridge_voice_agent library
DartBridge+VoiceAgent
VoiceAgent component bridge - manages C++ VoiceAgent lifecycle. Mirrors Swift's CppBridge+VoiceAgent.swift pattern.
Classes
- DartBridgeVoiceAgent
- VoiceAgent component bridge for C++ interop.
- RacVoiceAgentResultStruct
- FFI struct for voice agent result (matches rac_voice_agent_result_t). MUST match exact layout of C struct: typedef struct rac_voice_agent_result { rac_bool_t speech_detected; char* transcription; char* response; void* synthesized_audio; size_t synthesized_audio_size; } rac_voice_agent_result_t;
- VoiceAgentErrorEvent
- Voice agent error.
- VoiceAgentEvent
- Voice agent event base.
- VoiceAgentInitializedEvent
- Voice agent initialized.
- VoiceAgentModelLoadedEvent
- Voice agent model loaded.
- VoiceAgentTurnCompletedEvent
- Voice agent turn completed.
- VoiceAgentTurnStartedEvent
- Voice agent turn started.
- VoiceTurnResult
- Result from a complete voice turn. Audio is in WAV format (C++ voice agent converts Float32 TTS output to WAV).
Typedefs
-
RacVoiceAgentHandle
= Pointer<
Void> - Voice agent handle type (opaque pointer to rac_voice_agent struct).