Add speech-to-text input and demo mode for mobile#250
Merged
kubaflo merged 1 commit intoPureWeen:mainfrom Mar 1, 2026
Merged
Conversation
- Add mic button in chat input row using CommunityToolkit.Maui ISpeechToText - Compact floating popover shows pulsing red mic, live transcript, and send button - Toggle to start/stop recording; send button submits recognized text immediately - Accumulate partial results (word-by-word on Apple platforms) - Add platform permissions: RECORD_AUDIO (Android), NSMicrophoneUsageDescription + NSSpeechRecognitionUsageDescription (iOS/MacCatalyst), microphone (Windows), audio-input entitlement (MacCatalyst) - Post-build MSBuild targets inject privacy plist keys for iOS and Mac Catalyst (MAUI build strips NS*UsageDescription keys) with re-signing for iOS - Add TrimmerRootAssembly for CommunityToolkit.Maui to prevent IL linker stripping - Expose Demo connection mode on mobile in debug builds for testing chat UI without needing a remote server connection - Add Demo mode icon and description in Settings page Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PureWeen
added a commit
that referenced
this pull request
Mar 3, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds voice input support via a mic button in the chat input row, and exposes Demo mode on mobile (debug builds only) for testing without a remote connection.
Speech-to-Text
ISpeechToTextRECORD_AUDIO(Android),NSMicrophoneUsageDescription+NSSpeechRecognitionUsageDescription(iOS/MacCatalyst), microphone capability (Windows),com.apple.security.device.audio-inputentitlement (MacCatalyst)Build Fixes
NS*UsageDescriptionkeys from compiled plists)TrimmerRootAssemblyforCommunityToolkit.Maui+CommunityToolkit.Maui.Coreto prevent IL linker from stripping speech implementation typesDemo Mode
ConnectionMode.Demoon mobile in#if DEBUGbuildsFiles Changed
ExpandedSessionView.razor/.razor.css— mic button, popover UI, STT logicSettings.razor— Demo mode icon, description, visibility guardMauiProgram.cs— CommunityToolkit.Maui + ISpeechToText registrationPlatformHelper.cs— Demo in mobile AvailableModes (DEBUG only)PolyPilot.csproj— package, trimmer roots, plist injection targetsindex.html—appendSpeechTextJS helper