mugib_voice 0.7.2
mugib_voice: ^0.7.2 copied to clipboard
Voice SDK for Mugib — re-exports voice APIs from mugib_sdk. Prefer mugib_sdk for new projects.
0.7.2 #
- Depends on
mugib_sdk^1.0.4 (SSE streaming fix, Mugib Voice AI rebrand) - Docs synced to latest SDK versions
0.7.1 #
- Depends on
mugib_sdk^1.0.1; docs aligned with unified SDK scope.
0.7.0 #
- Re-exports voice APIs from unified
mugib_sdkpackage - New projects should depend on
mugib_sdkfor chat + voice
0.6.1 #
- Docs: README quick-start split (basic vs optional payload), API reference for
MugibVoiceCallOptions, updateddocs/voice-integration.md, example README, and PUBLISHING guide.
0.6.0 #
- Feat: user context / payload for voice calls — pass
MugibVoiceCallOptionstoMugibVoiceClient.start()withuserContext(inline map) and/orchatSessionId(reuse payload from chat REST API). The SDK sends a WebSocketcontextframe before audio and supportschat_sessionon the stream URL.
0.5.0 #
- Breaking: Removed VAPI support. The SDK now connects exclusively over
Mugib Voice AI. The
vapidependency,VapiVoiceSession, and the VAPI-specific token fields (MugibVoiceToken.vapiToken/.assistantId) andisVapigetters have been removed.providernow defaults to the Mugib Voice AI backend id.MugibVoiceClientalways uses the Mugib Voice AI session — no provider branching.
0.4.1 #
- Fix: Mugib Voice AI second call had no audio. The PCM engine was released on
every
end()/dispose(); re-setup()on the next call failed silently. The engine is now set up once (process-wide) and kept alive across calls — cleanup just stops feeding it instead of releasing.
0.4.0 #
- Feat: session resumption — Mugib Voice AI calls now preserve conversation
context across network drops. The SDK stores the resumption handle sent by
the Mugib server and reattaches automatically on reconnect.
No new API surface; existing
maxReconnectAttemptscontrols retry count. - Feat: proactive reconnect on
goAway— when the server signals an imminent disconnect, the SDK reconnects immediately using the latest handle. - Backend:
sessionResumptionis now enabled in the Mugib Voice AI setup message; the server relaysresumeandgoawayframes and skips the greeting on resumed connections.
0.3.1 #
- Fix: the
start()fallback path now carriesMugibVoiceErrorCode.unknownand emits onerrorEvents(previously only thrown without a code). - Docs: full README reference for all
MugibVoiceErrorCodevalues,MugibCallMetricsfields, and the Mugib Voice AI auto-reconnect behavior.
0.3.0 #
- Feat: structured errors — new
MugibVoiceErrorCodeenum anderrorEventsstream (Stream<MugibVoiceError>) alongside the existingerrorsstring stream.MugibVoiceExceptionnow carries acode. - Feat: latency metrics — new
metricsstream andcurrentMetrics(MugibCallMetrics) reporting time-to-first-audio and per-response latency (Mugib Voice AI) / connection latency (VAPI). - Feat: call timer —
callDurationgetter anddurationTicksstream. - Feat: automatic reconnect for Mugib Voice AI after an unexpected WebSocket drop
(configurable via
maxReconnectAttempts/reconnectBackoff). - Feat: tunable playback latency for Mugib Voice AI via
feedThresholdFrames(default lowered from ~333ms to ~166ms).
0.2.5 #
- Polish: avoid duplicate error events during Mugib Voice AI session setup failure.
0.2.4 #
- Fix:
start()resets toidlewhen token fetch or session setup fails (retry withoutend()). - Fix: Mugib Voice AI
start()now awaits serverready(parity with VAPIcall-startwait).
0.2.3 #
- README/docs: Mugib-centric integration guide;
provideris display-only.
0.2.2 #
- Same reliability fixes as 0.2.1 (republish with audit-complete code).
0.2.1 #
- Fix: reuse same
MugibVoiceClientafterend()(session cleanup). - Fix: rollback failed
start()so retry works. - Fix: VAPI awaits
call-start/ surfacescall-error; mic permission pre-check. - Fix: Mugib Voice AI
readysetup timeout (25s). - Fix: HTTP client request timeout (30s).
0.2.0 #
- Unified SDK: VAPI + Mugib Voice AI in one
MugibVoiceClient(fetches/tokenautomatically). - Bundled
vapipackage for VAPI agents — app only needsapiKey+agentId. MugibVoice.listAgents()— lists active agents withproviderfor picker UI.MugibAgentSummary/MugibVoiceTokenmodels.- Verified:
flutter analyze(0 issues),flutter test(10 passing).
0.1.0 #
- Initial release.
MugibVoiceClientwith real-time mic capture (PCM 16 kHz), playback (PCM 24 kHz), live transcripts, call-state stream, mute, and barge-in interruption handling.- Mugib Voice AI WebSocket stream via Mugib backend.
- Verified:
flutter analyze(0 issues),flutter test(5 passing). - Fixes: iOS
playAndRecordsession, mic gated untilready, cleanup race guard,AudioRecorder.dispose(), ambiguousIosAudioCategoryimport, async PCM feed.