Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: add web voice input and optional auto-send #12893

ClosedDwite(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/12893/headopened View on GitHub

Showing 22 changed files with 34 additions and 16 deletions (loading 18).

x
0 of 22 viewed, 22 left
15 additions and 1 deletionapps/mobile/src/features/settings/SettingsKeyboardRouteScreen.tsxModified
View file
@@ -13,6 +13,7 @@
type ComposerEnterBehavior,
} from "../../lib/composerEnterBehavior";
import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
+import { SettingsSwitchRow } from "./components/SettingsSwitchRow";
import { SettingsSection } from "./components/SettingsSection";
​
const ENTER_BEHAVIOR_OPTIONS: ReadonlyArray<{
@@ -47,7 +48,7 @@
{Platform.OS === "android" ? (
<>
<NativeStackScreenOptions options={{ headerShown: false }} />
- <AndroidScreenHeader title="Keyboard" onBack={() => navigation.goBack()} />
+ <AndroidScreenHeader title="Keyboard & voice" onBack={() => navigation.goBack()} />
</>
) : null}
<ScrollView
@@ -57,6 +58,19 @@
contentContainerClassName="gap-3 px-5 pt-4"
contentContainerStyle={{ paddingBottom: Math.max(insets.bottom, 18) + 18 }}
+ <SettingsSection title="Voice input">
+ <SettingsSwitchRow
+ icon="mic"
+ label="Send immediately"
+ subtitle="Send the full composer message when transcription finishes. Off by default, so you can review the text first."
+ value={
+ AsyncResult.isSuccess(preferencesResult) &&