mobiler 0.19.0

Build mobile apps in Rust — one core, native UI on Android, iOS, and the web (CLI)
1
2
3
4
5
6
7
8
9
10
11
12
name = "speech"
summary = "Speech-to-text dictation → recognized text (free; Android now, iOS in the fast-follow)"

[android]
# Uses the system RecognizerIntent dialog (no RECORD_AUDIO permission — the recognizer UI
# handles the mic). A transparent helper Activity owns the ActivityResult.
sources = ["android/SpeechPlugin.kt", "android/SpeechActivity.kt"]
register = '"speech" to SpeechPlugin(application)'
manifest_application = ['<activity android:name=".SpeechActivity" android:exported="false" android:theme="@android:style/Theme.Translucent.NoTitleBar" />']

# iOS (SFSpeechRecognizer live-audio recognition) lands in the fast-follow release; until then
# `cx.plugin("speech",…)` degrades gracefully on iOS (no handler → "not available").