Skip to content

Commit 4a6c23d

Browse files
PR Batch Testerclaude
andcommitted
fix(mobile): explain unavailable voice input in Microphone settings
On iOS devices where Apple's on-device transcription isn't available, the composer hides its microphone, but Settings > Microphone still offered microphone access and the input order, which suggested voice input would work. Show that voice input isn't available on this device instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 82b10d5 commit 4a6c23d

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

‎apps/mobile/src/features/settings/SettingsMicrophoneRouteScreen.tsx‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
microphoneEntryKey,
1919
microphoneOrder,
2020
} from "../../lib/microphonePriority";
21+
import { getLocalVoiceTranscriber } from "../../native/voiceTranscription";
2122
import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
2223
import { ListRowLayout } from "../../components/ui/ListRowLayout";
2324
import { ThreadSwipeable } from "../home/thread-swipe-actions";
@@ -89,6 +90,35 @@ const KINDS: Record<
8990
};
9091

9192
export function SettingsMicrophoneRouteScreen() {
93+
return getLocalVoiceTranscriber() === null ? <VoiceInputUnavailable /> : <MicrophoneSettings />;
94+
}
95+
96+
function VoiceInputUnavailable() {
97+
const insets = useSafeAreaInsets();
98+
return (
99+
<View collapsable={false} className="flex-1 bg-sheet">
100+
<ScrollView
101+
contentInsetAdjustmentBehavior="automatic"
102+
showsVerticalScrollIndicator={false}
103+
className="flex-1"
104+
contentContainerClassName="gap-3 px-5 pt-4"
105+
contentContainerStyle={{ paddingBottom: Math.max(insets.bottom, 18) + 18 }}
106+
>
107+
<SettingsSection title="Voice input">
108+
<ListRowLayout icon="mic" label="Not available on this device" />
109+
</SettingsSection>
110+
<Text className="px-2 text-sm text-foreground-muted">
111+
T3 Code's voice input uses Apple's on-device speech transcription, which needs iOS 26 or
112+
later on a device that supports it. Without it, the composer has no microphone button, and
113+
allowing microphone access won't add one. Apple keyboard dictation is separate and isn't
114+
affected.
115+
</Text>
116+
</ScrollView>
117+
</View>
118+
);
119+
}
120+
121+
function MicrophoneSettings() {
92122
const insets = useSafeAreaInsets();
93123
const preferencesResult = useAtomValue(mobilePreferencesAtom);
94124
const savePreferences = useAtomSet(updateMobilePreferencesAtom);

‎docs/user/composer.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ On supported iPhones with iOS 26 or later, use the composer's microphone to reco
182182
then confirm to transcribe. Text is inserted where your selection was when
183183
recording started, ready for you to review and edit before sending.
184184

185+
Voice input depends on Apple's on-device speech transcription. On a device without
186+
it, the composer has no microphone button and **Settings → Microphone** says voice
187+
input isn't available.
188+
185189
The first use may download Apple's speech model and needs a network connection.
186190
Later transcription works offline for that language. Recordings can be up to five
187191
minutes long. Canceling, leaving the screen, or an audio interruption discards the

0 commit comments

Comments
 (0)