vocra_flutter 0.2.2
vocra_flutter: ^0.2.2 copied to clipboard
The voice layer for Flutter: talk to an AI that talks back — natural turn-taking, lifelike speech, streaming replies. On-device, your own keys. vocra.cloud
Changelog #
0.2.2 #
Packaging and metadata only — no Dart API or behavior changes.
Added #
- Swift Package Manager support on iOS:
ios/vocra_flutter/Package.swift, with the native AEC sources moved toios/vocra_flutter/Sources/vocra_flutter/. The CocoaPods podspec is still maintained, so apps that have not enabled SPM build unchanged. - A funding link (GitHub Sponsors) and
https://www.vocra.cloudin the package metadata.
Fixed #
repositoryandissue_trackerpointed at the demo app repository, which broke pub.dev's repository verification. Both now resolve to this package's directory in the SDK repository.
Changed #
- Licensed under MIT (the 0.2.1 release was published as MIT; an interim proprietary relicense never shipped to pub.dev).
- Depends on
vocra_core: ^0.2.2.
0.2.1 #
Updates the published 0.2.0 release with the accumulated app-facing API.
Added #
VocraSession(renamed fromVoiceSession), built onVocraConfig.observe({onState, onMessages, onTranscript, onError, onMetrics})— one-call stream wiring returning a cancelableVocraSubscription.messages— a live aggregated conversation stream (interims collapsed).conversation,endSession(),sessionEnded,lastReport— full conversation retrieval and aSessionReporton every end path.mute()/unmute()/isMutedand a surfacedinterrupt().- Surfaces the new
vocra_core0.2.1 features (provider facades, typed model/ voice catalogs, xAI + Z.ai LLMs, structured prompts, greeting, natural speech, session policies) through the app API.
Fixed #
- Mic capture falls back to the hardware sample rate (48/44.1 kHz) with on-device downsampling to 16 kHz when the platform refuses direct 16 kHz capture — fixes "Format conversion is not possible" on the iOS simulator.
- A mic-resume failure after a turn now surfaces on
errorsinstead of crashing. - Ending a session mid-turn no longer leaves a restarted session's microphone permanently unable to reach speech recognition.
Changed #
- Breaking:
VoiceSession→VocraSession,VoiceConfig→VocraConfig. - Depends on
vocra_core: ^0.2.1.
Docs #
- iOS setup now documents the required
PERMISSION_MICROPHONE=1Podfile macro — without itpermission_handlernever shows the mic prompt andstart()fails. - Branded README with the Vocra logo, badges, and a vocra.cloud website link.
0.2.0 #
Initial pub.dev release: VoiceSession app-facing API, mic capture (record),
ordered playback (just_audio), microphone permissions, audio-session
interruption/becoming-noisy handling, SecureKeyStore, an optional native
echo-cancellation full-duplex module, and a runnable example app.