diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index 9cacfb10e395..1616e71c697f 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -149,8 +149,13 @@ import { import { attachmentUploadBlockReason } from "../../lib/attachmentUploadState"; import { useDictationShortcut } from "../../speech/useDictationShortcut"; import { useDictationSubmissionShortcut } from "../../speech/useDictationSubmissionShortcut"; -import { useEnvironmentSpeechInput } from "../../speech/useEnvironmentSpeechInput"; -import { ComposerSpeechButton, ComposerSpeechRecordingPill } from "./ComposerSpeechButton"; +import { + useEnvironmentSpeechInput, + useSpeechUnavailableReason, +} from "../../speech/useEnvironmentSpeechInput"; +import { ComposerSpeechButton, ComposerSpeechCancelButton } from "./ComposerSpeechButton"; +import { VoiceInputErrorPill } from "./VoiceInputErrorPill"; +import { COMPOSER_PILL_SLOT_BUTTON_CLASS_NAME } from "./ComposerPrimaryActions"; import type { AssistantCitationSourceAnchor } from "~/lib/assistantTextSelection"; import { shortcutLabelForCommand, type ShortcutMatchContext } from "../../keybindings"; import { @@ -1084,7 +1089,6 @@ export function ChatComposer(props: ChatComposerProps) { null, ); const [isDragOverComposer, setIsDragOverComposer] = useState(false); - const [isComposerFooterCompact, setIsComposerFooterCompact] = useState(false); const [isComposerPrimaryActionsCompact, setIsComposerPrimaryActionsCompact] = useState(false); const [isComposerModelPickerOpen, setIsComposerModelPickerOpen] = useState(false); const isMobileViewport = useMediaQuery("max-sm"); @@ -1650,7 +1654,6 @@ export function ChatComposer(props: ChatComposerProps) { const measureCompactLayouts = () => { const composerFormWidth = composerForm.clientWidth; const options = { hasWideActions: false }; - setIsComposerFooterCompact(shouldUseCompactComposerFooter(composerFormWidth)); setIsComposerPrimaryActionsCompact( shouldUseCompactComposerFooter(composerFormWidth, options) && shouldUseCompactComposerPrimaryActions(composerFormWidth, options), @@ -2010,8 +2013,6 @@ export function ChatComposer(props: ChatComposerProps) { }, }); const { blocksSubmission: voiceInputActive, submitAfterDictation } = speechInput; - // A compact footer gives the dictation capsule the whole row beside the send button. - const dictationTakesFooter = isComposerFooterCompact && speechInput.state.phase !== "idle"; const submissionTarget = activePendingProgress ? "pending-user-input" : "provider-turn"; const submissionBlocked = isComposerSubmissionBlocked({ submissionTarget, @@ -2039,6 +2040,13 @@ export function ChatComposer(props: ChatComposerProps) { modelPickerOpen: isComposerModelPickerOpen, ...(backgroundThread ? { targetRef: composerFormRef } : {}), }); + // The editor freezes while dictation runs and drops focus; collapsing then would hide the recording pill. + const dictationActiveRef = useRef(false); + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- publishes dictation activity to the asynchronous blur check + useEffect(() => { + dictationActiveRef.current = speechInput.state.phase !== "idle"; + }); + const speechUnavailableReason = useSpeechUnavailableReason(speechInput); const resolveActiveComposerTrigger = (): { snapshot: { value: string; cursor: number; expandedCursor: number }; @@ -2535,6 +2543,29 @@ export function ChatComposer(props: ChatComposerProps) { }); }; const expandMobileComposerStable = useStableCallback(expandMobileComposer); + const showsSpeechAction = speechInput.available || speechUnavailableReason !== null; + const renderSpeechAction = (inPill: boolean) => + showsSpeechAction ? ( + { + if (isComposerCollapsedMobile) expandMobileComposerStable(); + void speechInput.start(); + }} + dictation={{ + level: speechInput.level, + onStop: () => void speechInput.stop(), + onSkipPostProcessing: () => speechInput.skipPostProcessing(), + }} + /> + ) : null; + // While recording, the send slot becomes Stop and finishes the recording. + const stopDictationStable = useStableCallback(() => void speechInput.stop()); + const onStopDictation = speechInput.state.phase === "recording" ? stopDictationStable : undefined; // Escape dismisses the suggestion so Tab moves focus again. const { suggestion: promptSuggestion, dismiss: dismissPromptSuggestion } = usePromptSuggestion( @@ -3228,7 +3259,7 @@ export function ChatComposer(props: ChatComposerProps) { } composerBlurFrameRef.current = window.requestAnimationFrame(() => { composerBlurFrameRef.current = null; - if (mobileComposerExpandInFlightRef.current) { + if (mobileComposerExpandInFlightRef.current || dictationActiveRef.current) { return; } const composerSurface = composerSurfaceRef.current; @@ -3831,44 +3862,63 @@ export function ChatComposer(props: ChatComposerProps) { isEditingQueuedMessage={isEditingQueuedMessage} onInterrupt={handleInterruptPrimaryActionStable} > - + {onStopDictation ? ( + + ) : null} @@ -4068,8 +4118,9 @@ export function ChatComposer(props: ChatComposerProps) { data-chat-composer-transition-actions="true" className="z-1 flex w-max max-w-full items-center justify-end gap-1.5 self-start justify-self-end [grid-area:prompt]" > - {dictationTakesFooter ? null : composerAttachButton} + {composerAttachButton} - {speechInput.available ? ( - <> - void speechInput.start()} - onStop={() => void speechInput.stop()} - onCancel={() => speechInput.cancel()} - onSkipPostProcessing={() => speechInput.skipPostProcessing()} - /> - void speechInput.start()} - /> - + {speechInput.available && speechInput.state.phase === "error" ? ( + void speechInput.start()} + onDismiss={() => speechInput.cancel()} + /> + ) : null} + {speechInput.available && + speechInput.state.phase !== "idle" && + speechInput.state.phase !== "error" ? ( + speechInput.cancel()} + /> ) : null}
{speechInput.preview.committed} diff --git a/apps/web/src/components/chat/ComposerFooterControls.tsx b/apps/web/src/components/chat/ComposerFooterControls.tsx index 32361ade2428..56cff05e39aa 100644 --- a/apps/web/src/components/chat/ComposerFooterControls.tsx +++ b/apps/web/src/components/chat/ComposerFooterControls.tsx @@ -191,6 +191,7 @@ export function ComposerPermissionsSection(props: { export const ComposerFooterPrimaryActions = memo(function ComposerFooterPrimaryActions(props: { children?: React.ReactNode; + renderSpeechAction?: ((inPill: boolean) => React.ReactNode) | undefined; compact: boolean; canOperateThread: boolean; isPreparingWorktree: boolean; @@ -220,8 +221,9 @@ export const ComposerFooterPrimaryActions = memo(function ComposerFooterPrimaryA onResume: () => void; onPreviousPendingQuestion: () => void; onInterrupt: () => void; + onStopDictation?: (() => void) | undefined; + stopDictationShortcutLabel?: string | null; compactBeforeSendTokens: number | null; - hideCompactToggle: boolean; keepFullHistory: boolean; onToggleKeepFullHistory: () => void; }) { @@ -247,12 +249,14 @@ export const ComposerFooterPrimaryActions = memo(function ComposerFooterPrimaryA canResume={props.canResume} preserveComposerFocusOnPointerDown={props.preserveComposerFocusOnPointerDown ?? false} isEditingQueuedMessage={props.isEditingQueuedMessage} + renderSpeechAction={props.renderSpeechAction} onSubmitMessage={props.onSubmitMessage} onResume={props.onResume} onPreviousPendingQuestion={props.onPreviousPendingQuestion} onInterrupt={props.onInterrupt} + onStopDictation={props.onStopDictation} + stopDictationShortcutLabel={props.stopDictationShortcutLabel ?? null} compactBeforeSendTokens={props.compactBeforeSendTokens} - hideCompactToggle={props.hideCompactToggle} keepFullHistory={props.keepFullHistory} onToggleKeepFullHistory={props.onToggleKeepFullHistory} > diff --git a/apps/web/src/components/chat/ComposerPrimaryActions.tsx b/apps/web/src/components/chat/ComposerPrimaryActions.tsx index 1fae486c3ceb..30b569c90c5f 100644 --- a/apps/web/src/components/chat/ComposerPrimaryActions.tsx +++ b/apps/web/src/components/chat/ComposerPrimaryActions.tsx @@ -61,12 +61,16 @@ interface ComposerPrimaryActionsProps { canResume?: boolean; preserveComposerFocusOnPointerDown?: boolean; isEditingQueuedMessage?: boolean; + /** The dictation mic: a slot in the send and stop pill, a quiet icon before the other actions. */ + renderSpeechAction?: ((inPill: boolean) => ReactNode) | undefined; onSubmitMessage?: MouseEventHandler; onResume?: () => void; onPreviousPendingQuestion: () => void; onInterrupt: () => void; + /** Set while dictation records: the stop slot finishes it instead of sending. */ + onStopDictation?: (() => void) | undefined; + stopDictationShortcutLabel?: string | null; compactBeforeSendTokens?: number | null; - hideCompactToggle?: boolean; keepFullHistory?: boolean; onToggleKeepFullHistory?: () => void; } @@ -161,6 +165,9 @@ function StopGenerationButton({ preserveComposerFocusOnPointerDown, onStopRequested, onInterrupt, + leading = null, + onStopDictation, + stopDictationShortcutLabel = null, }: { stopPhase: StopPhase; canOperateThread: boolean; @@ -168,11 +175,22 @@ function StopGenerationButton({ preserveComposerFocusOnPointerDown: boolean; onStopRequested: () => void; onInterrupt: () => void; + /** The dictation mic slot that shares the pill. */ + leading?: ReactNode; + /** Set while dictation records: the stop slot finishes it instead of interrupting. */ + onStopDictation?: (() => void) | undefined; + stopDictationShortcutLabel?: string | null; }) { const gt = useGT(); const isStopDisabled = stopPhase === "pending"; + const stopLabel = onStopDictation + ? gt("Stop voice input") + : stopPhase === "pending" + ? gt("Stopping") + : gt("Stop generation"); return ( + {leading} { + if (onStopDictation) { + onStopDictation(); + return; + } if (!canOperateThread || isStopDisabled) return; onStopRequested(); onInterrupt(); }} - aria-label={stopPhase === "pending" ? gt("Stopping") : gt("Stop generation")} + aria-label={stopLabel} /> } > - {stopPhase === "pending" - ? gt("Stopping…") - : gt("Interrupt", { $context: "verb, stops the running agent" })} + {onStopDictation + ? stopDictationShortcutLabel + ? gt("Stop voice input ({shortcut})", { shortcut: stopDictationShortcutLabel }) + : stopLabel + : stopPhase === "pending" + ? gt("Stopping…") + : gt("Interrupt", { $context: "verb, stops the running agent" })} @@ -271,12 +297,14 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({ canResume = false, preserveComposerFocusOnPointerDown = false, isEditingQueuedMessage = false, + renderSpeechAction, onSubmitMessage, onResume, onPreviousPendingQuestion, onInterrupt, + onStopDictation, + stopDictationShortcutLabel = null, compactBeforeSendTokens = null, - hideCompactToggle = false, keepFullHistory = false, onToggleKeepFullHistory, }: ComposerPrimaryActionsProps) { @@ -299,6 +327,8 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({ const isSendDisabled = !canOperateThread || sendDisabledReason !== null; // The stop square sits in the same pill as send, so the pill never changes shape. + // While dictating it ends the recording; a running turn's stop returns after. + const stopsDictation = onStopDictation !== undefined && !pendingAction; const renderStopGenerationButton = (insidePendingAction: boolean) => ( setStopPhase("pending")} onInterrupt={onInterrupt} + leading={insidePendingAction ? null : renderSpeechAction?.(true)} + {...(stopsDictation ? { onStopDictation } : {})} + stopDictationShortcutLabel={stopDictationShortcutLabel} /> ); @@ -324,6 +357,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({ if (pendingAction) { return (
+ {renderSpeechAction?.(false)} {pendingAction.questionIndex > 0 ? ( compact ? ( ); } +// Each bar reads the level a sample apart, so the three never move in lockstep, and the +// middle bar reaches highest so loud speech reads as a wave rather than a flat block. +const SPEECH_BAR_SAMPLE_OFFSETS = [1, 0, 2] as const; +const SPEECH_BAR_GAINS = [0.7, 1, 0.85] as const; +const SPEECH_BAR_RESTING_SCALE = 0.25; +const SPEECH_BAR_STATIC_SCALE = 0.6; + +/** The mic glyph while recording: three bars whose heights follow the microphone level. */ +function ComposerSpeechBars(props: { level: number; inPill: boolean }) { + const prefersReducedMotion = useMediaQuery("(prefers-reduced-motion: reduce)"); + const barsRef = useRef>([]); + const historyRef = useRef([0, 0, 0]); + + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- writes microphone levels to the bar transforms; mounted only while recording + useEffect(() => { + const history = historyRef.current; + history.copyWithin(0, 1); + history[2] = props.level; + barsRef.current.forEach((bar, index) => { + if (!bar) return; + const value = Math.min(1, history[2 - SPEECH_BAR_SAMPLE_OFFSETS[index]!] ?? 0); + // The curve spreads the loud end, where speech levels bunch up. + const scale = prefersReducedMotion + ? SPEECH_BAR_STATIC_SCALE + : SPEECH_BAR_RESTING_SCALE + + (1 - SPEECH_BAR_RESTING_SCALE) * value ** 1.5 * SPEECH_BAR_GAINS[index]!; + bar.style.transform = `scaleY(${scale})`; + }); + }, [prefersReducedMotion, props.level]); + + return ( + + {SPEECH_BAR_SAMPLE_OFFSETS.map((offset, index) => ( + { + barsRef.current[index] = bar; + }} + className="h-full w-0.5 origin-center rounded-full bg-current transition-transform duration-100 ease-out motion-reduce:transition-none" + style={{ + transform: `scaleY(${prefersReducedMotion ? SPEECH_BAR_STATIC_SCALE : SPEECH_BAR_RESTING_SCALE})`, + }} + /> + ))} + + ); +} + +// In the send pill the mic is one of its 32px slots; elsewhere it is a quiet icon button. +export function ComposerSpeechButton(props: { + inPill?: boolean; + state: VoiceInputState; + shortcutLabel?: string | null; + disabled?: boolean; + /** Compact matches the `xs` buttons beside text-field editors. */ + size?: "default" | "compact"; + /** Set when voice input cannot start here yet: the mic shows dimmed and the tooltip says why. */ + unavailableReason?: string | null | undefined; + /** + * Keeps the mic in place while dictation runs: level bars while recording (click finishes), + * a spinner while busy (click skips post-processing). Without it the mic hides and the + * recording pill takes over. + */ + dictation?: { level: number; onStop(): void; onSkipPostProcessing(): void } | undefined; + onStart(): void; +}) { + const gt = useGT(); + const inPill = props.inPill ?? false; + const { phase } = props.state; + const { dictation } = props; + if (phase === "error" || (phase !== "idle" && !dictation)) return null; + + const unavailable = phase === "idle" ? (props.unavailableReason ?? null) : null; + const isRecording = phase === "recording"; + const isBusy = phase === "preparing" || phase === "transcribing"; + const label = isRecording + ? gt("Finish voice input") + : phase === "preparing" + ? gt("Preparing voice input") + : phase === "transcribing" + ? gt("Transcribing") + : phase === "post-processing" + ? gt("Skip post-processing") + : gt("Start voice input"); + const showsShortcut = (phase === "idle" || isRecording) && !unavailable; + + const glyph = isRecording ? ( + + ) : phase === "idle" ? ( + + ) : ( + // The spinner draws in currentColor, so the wrapper gives it the mic glyph's colour. + + + + ); + const accessibilityProps = unavailable + ? ({ "aria-disabled": true, "aria-label": unavailable } as const) + : isBusy + ? ({ "aria-disabled": true, "aria-label": label } as const) + : { "aria-label": label }; + const onClick = () => { + if (isRecording) dictation?.onStop(); + else if (phase === "post-processing") dictation?.onSkipPostProcessing(); + else if (phase === "idle" && !props.disabled && !unavailable) props.onStart(); + }; + + return ( + + + ) : ( +
diff --git a/apps/web/src/components/chat/VoiceInputErrorPill.tsx b/apps/web/src/components/chat/VoiceInputErrorPill.tsx index 3b744d8a76bd..311c4c112cff 100644 --- a/apps/web/src/components/chat/VoiceInputErrorPill.tsx +++ b/apps/web/src/components/chat/VoiceInputErrorPill.tsx @@ -80,7 +80,7 @@ export function VoiceInputErrorPill(props: { tabIndex={0} role="status" aria-label={message} - className="flex min-w-0 items-center gap-1.5 rounded-sm text-sm font-medium outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset" + className="flex min-w-0 items-center gap-1.5 rounded-sm text-label outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset" /> } > diff --git a/apps/web/src/components/chat/VoiceInputPill.tsx b/apps/web/src/components/chat/VoiceInputPill.tsx index 1aa238a8c4b2..0971d31cbd2f 100644 --- a/apps/web/src/components/chat/VoiceInputPill.tsx +++ b/apps/web/src/components/chat/VoiceInputPill.tsx @@ -66,7 +66,7 @@ export function VoiceInputPill({ "h-7 rounded-md max-sm:order-first max-sm:basis-full sm:h-6" : "h-9 max-w-fit grow-[1.5] basis-0 rounded-full p-0.5 sm:h-8", tone === "error" - ? "bg-destructive/6 text-destructive ring-destructive/24" + ? "bg-destructive/6 text-destructive-foreground ring-destructive/24" : "bg-muted/48 ring-border", )} > diff --git a/apps/web/src/components/chat/VoiceInputSetup.tsx b/apps/web/src/components/chat/VoiceInputSetup.tsx index 7eeef19c5b5f..9d0f5910ada2 100644 --- a/apps/web/src/components/chat/VoiceInputSetup.tsx +++ b/apps/web/src/components/chat/VoiceInputSetup.tsx @@ -117,16 +117,16 @@ export function VoiceInputSetup(props: { /> {props.step === 0 ? ( -
+
{model ? ( -
+
-

{model.name}

- +

{model.name}

+ {gt("{size} MB", { size: Math.round(model.size / 1024 / 1024) })}
-

+

{model.recommended && props.language ? ( Recommended for {languageName}. Includes a 1.2 MB silence @@ -151,7 +151,7 @@ export function VoiceInputSetup(props: { style={{ width: `${progress ?? 0}%` }} />

-

+

{model.state === "verifying" ? gt("Verifying…") : progress === null @@ -167,14 +167,14 @@ export function VoiceInputSetup(props: {

) : null} {props.error ? ( -

+

{props.error}

) : null}
) : ( -
+
@@ -234,12 +234,12 @@ export function VoiceInputSetup(props: {
{selectedIsUnavailable ? ( -

+

That microphone is unplugged. Pick another one.

) : null} {microphoneError ? ( -

+

{microphoneError}

) : null} diff --git a/apps/web/src/components/settings/MicrophoneOrderList.tsx b/apps/web/src/components/settings/MicrophoneOrderList.tsx index 724c776dfd35..7cf63ea87223 100644 --- a/apps/web/src/components/settings/MicrophoneOrderList.tsx +++ b/apps/web/src/components/settings/MicrophoneOrderList.tsx @@ -114,17 +114,17 @@ function MicrophoneRow(props: { isDragging && "relative z-10 rounded-lg bg-background shadow-md", )} > - {props.position} - + {props.position} + {name} {props.inUse ? ( - + In use ) : props.notConnected ? ( - + Not connected ) : null} diff --git a/apps/web/src/components/settings/MicrophoneTest.tsx b/apps/web/src/components/settings/MicrophoneTest.tsx index 3ca54471fd2a..57ce589024a9 100644 --- a/apps/web/src/components/settings/MicrophoneTest.tsx +++ b/apps/web/src/components/settings/MicrophoneTest.tsx @@ -9,6 +9,7 @@ import { useStableCallback } from "~/hooks/useStableCallback"; import { requestMicrophone } from "../../speech/requestMicrophone"; import workletUrl from "../../speech/pcmWorklet.ts?worker&url"; import { VoiceWaveform } from "../chat/VoiceInputPill"; +import { MediaScrubber } from "../media/MediaTransport"; import { cn } from "../../lib/utils"; import { Button } from "../ui/button"; import { SettingsRow } from "./settingsLayout"; @@ -220,11 +221,11 @@ export function MicrophoneTest({ ); const panel = error ? ( -

+

{error}

) : phase === "starting" ? ( - + Opening microphone… ) : phase === "recording" ? ( @@ -234,7 +235,7 @@ export function MicrophoneTest({ {formatTime(elapsed)} / {formatTime(LOOPBACK_SECONDS)} @@ -261,7 +262,7 @@ export function MicrophoneTest({ {panel ? (
@@ -286,7 +287,6 @@ function MicrophonePlayback({ src, duration }: { src: string; duration: number } const [playing, setPlaying] = useState(false); const [position, setPosition] = useState(0); const [failed, setFailed] = useState(false); - const progress = duration > 0 ? Math.min(position / duration, 1) * 100 : 0; const togglePlayback = async () => { const player = audio.current; @@ -325,27 +325,24 @@ function MicrophonePlayback({ src, duration }: { src: string; duration: number } {playing ? : } {failed ? ( -

+

Could not play this recording. Try recording again.

) : ( - { - const next = Number(event.target.value); + label={gt("Recording playback position")} + trackClassName="bg-muted" + playedClassName="bg-primary" + onSeek={(next) => { if (audio.current) audio.current.currentTime = next; setPosition(next); }} - className="h-1 min-w-0 flex-1 cursor-pointer appearance-none rounded-full bg-muted accent-primary focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring [&::-webkit-slider-thumb]:size-2.5 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-thumb]:size-2.5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary" /> )} diff --git a/apps/web/src/components/settings/SpeechModelComparison.tsx b/apps/web/src/components/settings/SpeechModelComparison.tsx index 889eff9bc3f0..e634723e6268 100644 --- a/apps/web/src/components/settings/SpeechModelComparison.tsx +++ b/apps/web/src/components/settings/SpeechModelComparison.tsx @@ -1,6 +1,7 @@ import type { EnvironmentSpeechModel, SpeechBenchmarkTier } from "@t3tools/contracts"; import { T, useLocale, Var } from "gt-react"; +import { Text } from "../ui/text"; import { languageLabel } from "./SpeechLanguageSelect"; const commonLanguages = [ @@ -71,7 +72,7 @@ export function ModelBenchmarks({ (code): code is string => code !== undefined, ); return ( -
+
{visible.map((code) => { const score = data?.accuracy[code]; return ( @@ -79,9 +80,9 @@ export function ModelBenchmarks({ {score ? ( {languageLabel(code, locale)}:{" "} - + {score.grade} - {" "} + {" "} ({score.errorPercent}% error) ) : ( @@ -101,9 +102,9 @@ export function ModelBenchmarks({ ) : ( Speed:{" "} - + {Number(seconds.toFixed(2))} s - {" "} + {" "} / 30 s )} diff --git a/apps/web/src/components/settings/VoiceSettingsPanel.tsx b/apps/web/src/components/settings/VoiceSettingsPanel.tsx index 58d645b43799..f8a3d79494ab 100644 --- a/apps/web/src/components/settings/VoiceSettingsPanel.tsx +++ b/apps/web/src/components/settings/VoiceSettingsPanel.tsx @@ -213,7 +213,7 @@ type ModelCardProps = { function ModelBadge(props: { icon: ReactNode; label: string; tooltip: string }) { return ( - }> + }> {props.icon} {props.label} @@ -239,10 +239,10 @@ function ModelCard(props: ModelCardProps) { >
- {model.name} + {model.name} {props.recommendation ? ( } + icon={} label={ props.recommendation === "recommended" ? gt("Recommended") @@ -265,7 +265,7 @@ function ModelCard(props: ModelCardProps) { ) : null} {model.supportsStreaming ? ( } + icon={} label={gt("Live preview")} tooltip={gt( "Shows words in your draft as you speak, before the recording finishes.", @@ -274,7 +274,7 @@ function ModelCard(props: ModelCardProps) { ) : null} {model.supportsTranslation ? ( } + icon={} label={gt("Translate")} tooltip={gt( "Can write English text from speech in another language. Turn on Translate to English to use it.", @@ -283,12 +283,10 @@ function ModelCard(props: ModelCardProps) { ) : null}
{model.description ? ( -

- {model.description} -

+

{model.description}

) : null} {model.linkedFrom ? ( -

+

Using your file at {model.linkedFrom} @@ -326,7 +324,7 @@ function ModelCard(props: ModelCardProps) { style={{ width: `${progress}%` }} />

-

+

{model.state === "verifying" ? gt("Verifying download…") : gt("{percent}% downloaded", { percent: Math.round(progress) })} @@ -344,7 +342,7 @@ function ModelCard(props: ModelCardProps) { disabled={!props.canCancel} onClick={props.onCancel} > - + ) : model.state === "downloadable" ? ( ) : null ) : ( - + {speech.status?.supported === false ? speech.status.reason : gt("Waiting for the environment to connect")} @@ -1261,7 +1259,7 @@ function TranscriptionTest(props: {

{speech.preview || transcript !== null ? null : ( -

+

Say a sentence. Cleanup is skipped, so you see exactly what the model heard. @@ -1271,7 +1269,7 @@ function TranscriptionTest(props: {

{speech.preview ? ( <> @@ -1490,7 +1488,7 @@ export function VoiceSettingsPanel() { {messages(SHORTCUT_MODES[mode].label)} - + {messages(SHORTCUT_MODES[mode].hint)} diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index ba2692b23e24..9fb22f0289c4 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -3045,6 +3045,15 @@ "d83d0a88ac8cee3e": "Das Modell ist nicht bereit. Lade es erneut herunter.", "cdbfc38872d59c77": "Das Modell konnte nicht heruntergeladen werden. Prüfe die Verbindung dieser Umgebung und versuche es erneut.", "6f85f14f35b3f547": "{provider} über {environment}", + "5b668fa7b8d12d07": "Spracheingabe wird geprüft.", + "7f635fa898362865": "Spracheinstellungen werden geladen.", + "36989a3dee519c80": "Die Spracheingabe ist aus. Schalte sie unter Einstellungen > Spracheingabe ein.", + "cc3ea67d9a0ed8b7": "{destination} ist nicht verbunden. Prüfe Einstellungen > Spracheingabe.", + "db050f5a936c17f8": "Das Sprachziel ist nicht verbunden. Prüfe Einstellungen > Spracheingabe.", + "6d3ee853fcfae4c8": "{destination} kann keine Sprache transkribieren. Wähle unter Einstellungen > Spracheingabe ein anderes Ziel.", + "09cf4905f8d0dcb3": "Das Sprachziel kann keine Sprache transkribieren. Wähle unter Einstellungen > Spracheingabe ein anderes Ziel.", + "2772ed6829f4bcda": "Die Spracheingabe ist auf {destination} nicht bereit. Prüfe Einstellungen > Spracheingabe.", + "12570e22bfd43595": "Die Spracheingabe ist auf dem Sprachziel nicht bereit. Prüfe Einstellungen > Spracheingabe.", "7c59a888a062a8bd": "Die Spracheingabe hat keinen Entwurf, in den sie aufnehmen kann.", "62450481c00d2ef3": "Die Umgebung des Entwurfs ist für die Transkriptbereinigung nicht verfügbar.", "0674544195fcdc39": "Das ursprüngliche Transkript wurde eingefügt.", @@ -3334,6 +3343,7 @@ "da13069e7a3a8ffd": "Eingabefeld vergrößern", "d3356b4524173b25": "Aktiviere einen Anbieter in den Einstellungen", "3d3f30f1a1c4fc52": "Frag einfach...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "Pull Request wird gesucht...", "cf855794f7b8ddb5": "Skills im Arbeitsbereich werden durchsucht...", "e159e35b83a86404": "Dateien im Arbeitsbereich werden durchsucht...", @@ -3527,6 +3537,7 @@ "a19cd00a1a71c5f2": "Antwort senden", "5bb216598e523c66": "Wird gestoppt", "7565ea16d7bb9212": "Generierung stoppen", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "Wird gestoppt…", "219dc4cdefa6b76a": "Unterbrechen", "5b2152f9b4c82ea6": "Vorherige Frage", @@ -3560,10 +3571,14 @@ "5c05b24be2880672": "Aufnahme", "8e8acd5aa22b46c6": "Wird transkribiert…", "87f97f19123b51bc": "Wird bereinigt…", - "ad63d228b2f3491e": "Spracheingabe starten", + "d2bf6b6ea7fab036": "Fehler der Spracheingabe schließen", "cae195de360a3d75": "Spracheingabe abbrechen", - "74a1fcdf9eaedd86": "Überspringen", "5c572579e2230b4e": "Spracheingabe beenden", + "ac1a3f94891b603c": "Wird transkribiert", + "3735ea7aef8fc116": "Nachbearbeitung überspringen", + "ad63d228b2f3491e": "Spracheingabe starten", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "Überspringen", "8d8fe0fdaaf7742f": "Abgelegte Prompts: {count}. Ablage öffnen.", "09732910721eb302": "Ablage", "972bb2cab0b74c7b": "(leer)", @@ -4783,7 +4798,6 @@ "ea3eb171ecbc8888": "Transkription wiederholen", "7c60a3309c252304": "Wiederholen", "8b8bc3983a34c5fe": "Erneut aufnehmen", - "d2bf6b6ea7fab036": "Fehler der Spracheingabe schließen", "b9249c0c16e582ea": "Schließen ({shortcut})", "4d9569bd7cc6b2e7": "Mikrofone konnten nicht aufgelistet werden. Der Systemstandard funktioniert weiterhin.", "d47a36d9869a6a91": "Ausgewähltes Mikrofon (nicht verfügbar)", diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json index 84b056d59a7d..e63bf95b8835 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -3044,6 +3044,15 @@ "d83d0a88ac8cee3e": "The model is not ready. Try downloading it again.", "cdbfc38872d59c77": "Could not download the model. Check this environment's connection and try again.", "6f85f14f35b3f547": "{provider} via {environment}", + "5b668fa7b8d12d07": "Checking voice input.", + "7f635fa898362865": "Loading voice settings.", + "36989a3dee519c80": "Voice input is off. Turn it on in Settings > Voice.", + "cc3ea67d9a0ed8b7": "{destination} is not connected. Check Settings > Voice.", + "db050f5a936c17f8": "The voice destination is not connected. Check Settings > Voice.", + "6d3ee853fcfae4c8": "{destination} can't transcribe voice. Pick another destination in Settings > Voice.", + "09cf4905f8d0dcb3": "The voice destination can't transcribe voice. Pick another destination in Settings > Voice.", + "2772ed6829f4bcda": "Voice input is not ready on {destination}. Check Settings > Voice.", + "12570e22bfd43595": "Voice input is not ready on the voice destination. Check Settings > Voice.", "7c59a888a062a8bd": "Voice input has no draft to record into.", "62450481c00d2ef3": "The draft's environment is unavailable for transcript cleanup.", "0674544195fcdc39": "The original transcript was added.", @@ -3333,6 +3342,7 @@ "da13069e7a3a8ffd": "Expand composer", "d3356b4524173b25": "Enable a provider in Settings", "3d3f30f1a1c4fc52": "Ask anything...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "Finding pull request...", "cf855794f7b8ddb5": "Searching workspace skills...", "e159e35b83a86404": "Searching workspace files...", @@ -3526,6 +3536,7 @@ "a19cd00a1a71c5f2": "Submit answer", "5bb216598e523c66": "Stopping", "7565ea16d7bb9212": "Stop generation", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "Stopping…", "219dc4cdefa6b76a": "Interrupt", "5b2152f9b4c82ea6": "Previous question", @@ -3559,10 +3570,14 @@ "5c05b24be2880672": "Recording", "8e8acd5aa22b46c6": "Transcribing…", "87f97f19123b51bc": "Cleaning up…", - "ad63d228b2f3491e": "Start voice input", + "d2bf6b6ea7fab036": "Dismiss voice input error", "cae195de360a3d75": "Cancel voice input", - "74a1fcdf9eaedd86": "Skip", "5c572579e2230b4e": "Finish voice input", + "ac1a3f94891b603c": "Transcribing", + "3735ea7aef8fc116": "Skip post-processing", + "ad63d228b2f3491e": "Start voice input", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "Skip", "8d8fe0fdaaf7742f": "Stashed prompts: {count}. Open stash.", "09732910721eb302": "Stash", "972bb2cab0b74c7b": "(empty)", @@ -4782,7 +4797,6 @@ "ea3eb171ecbc8888": "Retry transcription", "7c60a3309c252304": "Retry", "8b8bc3983a34c5fe": "Record again", - "d2bf6b6ea7fab036": "Dismiss voice input error", "b9249c0c16e582ea": "Dismiss ({shortcut})", "4d9569bd7cc6b2e7": "Couldn’t list microphones. The system default still works.", "d47a36d9869a6a91": "Selected microphone (Unavailable)", @@ -11474,7 +11488,7 @@ ":", " ", { - "t": "strong", + "t": "Text", "i": 2, "c": { "i": 3, @@ -11505,7 +11519,7 @@ "Speed:", " ", { - "t": "strong", + "t": "Text", "i": 1, "c": [ { diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json index 30767837a7ad..c7c7fe035a75 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -3044,6 +3044,15 @@ "d83d0a88ac8cee3e": "El modelo no está listo. Prueba a descargarlo de nuevo.", "cdbfc38872d59c77": "No se pudo descargar el modelo. Comprueba la conexión de este entorno y vuelve a intentarlo.", "6f85f14f35b3f547": "{provider} a través de {environment}", + "5b668fa7b8d12d07": "Comprobando la entrada de voz.", + "7f635fa898362865": "Cargando los ajustes de voz.", + "36989a3dee519c80": "La entrada de voz está desactivada. Actívala en Ajustes > Voz.", + "cc3ea67d9a0ed8b7": "{destination} no está conectado. Revisa Ajustes > Voz.", + "db050f5a936c17f8": "El destino de voz no está conectado. Revisa Ajustes > Voz.", + "6d3ee853fcfae4c8": "{destination} no puede transcribir voz. Elige otro destino en Ajustes > Voz.", + "09cf4905f8d0dcb3": "El destino de voz no puede transcribir voz. Elige otro destino en Ajustes > Voz.", + "2772ed6829f4bcda": "La entrada de voz no está lista en {destination}. Revisa Ajustes > Voz.", + "12570e22bfd43595": "La entrada de voz no está lista en el destino de voz. Revisa Ajustes > Voz.", "7c59a888a062a8bd": "La entrada de voz no tiene ningún borrador en el que grabar.", "62450481c00d2ef3": "El entorno del borrador no está disponible para limpiar la transcripción.", "0674544195fcdc39": "Se añadió la transcripción original.", @@ -3333,6 +3342,7 @@ "da13069e7a3a8ffd": "Expandir el cuadro de mensaje", "d3356b4524173b25": "Activa un proveedor en Ajustes", "3d3f30f1a1c4fc52": "Pregunta lo que quieras...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "Buscando la pull request...", "cf855794f7b8ddb5": "Buscando skills del espacio de trabajo...", "e159e35b83a86404": "Buscando archivos del espacio de trabajo...", @@ -3526,6 +3536,7 @@ "a19cd00a1a71c5f2": "Enviar respuesta", "5bb216598e523c66": "Deteniendo", "7565ea16d7bb9212": "Detener la generación", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "Deteniendo…", "219dc4cdefa6b76a": "Interrumpir", "5b2152f9b4c82ea6": "Pregunta anterior", @@ -3559,10 +3570,14 @@ "5c05b24be2880672": "Grabando", "8e8acd5aa22b46c6": "Transcribiendo…", "87f97f19123b51bc": "Limpiando…", - "ad63d228b2f3491e": "Iniciar entrada de voz", + "d2bf6b6ea7fab036": "Descartar el error de entrada de voz", "cae195de360a3d75": "Cancelar entrada de voz", - "74a1fcdf9eaedd86": "Omitir", "5c572579e2230b4e": "Terminar entrada de voz", + "ac1a3f94891b603c": "Transcribiendo", + "3735ea7aef8fc116": "Omitir el posprocesado", + "ad63d228b2f3491e": "Iniciar entrada de voz", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "Omitir", "8d8fe0fdaaf7742f": "Prompts en el stash: {count}. Abrir stash.", "09732910721eb302": "Stash", "972bb2cab0b74c7b": "(vacío)", @@ -4780,7 +4795,6 @@ "ea3eb171ecbc8888": "Reintentar transcripción", "7c60a3309c252304": "Reintentar", "8b8bc3983a34c5fe": "Grabar de nuevo", - "d2bf6b6ea7fab036": "Descartar el error de entrada de voz", "b9249c0c16e582ea": "Descartar ({shortcut})", "4d9569bd7cc6b2e7": "No se pudieron listar los micrófonos. El predeterminado del sistema sigue funcionando.", "d47a36d9869a6a91": "Micrófono seleccionado (no disponible)", diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json index 44fefa3dbcb6..80c99b3785fb 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -3044,6 +3044,15 @@ "d83d0a88ac8cee3e": "Le modèle n’est pas prêt. Essayez de le télécharger à nouveau.", "cdbfc38872d59c77": "Impossible de télécharger le modèle. Vérifiez la connexion de cet environnement et réessayez.", "6f85f14f35b3f547": "{provider} via {environment}", + "5b668fa7b8d12d07": "Vérification de la saisie vocale.", + "7f635fa898362865": "Chargement des paramètres vocaux.", + "36989a3dee519c80": "La saisie vocale est désactivée. Activez-la dans Paramètres > Voix.", + "cc3ea67d9a0ed8b7": "{destination} n’est pas connecté. Vérifiez Paramètres > Voix.", + "db050f5a936c17f8": "La destination vocale n’est pas connectée. Vérifiez Paramètres > Voix.", + "6d3ee853fcfae4c8": "{destination} ne peut pas transcrire la voix. Choisissez une autre destination dans Paramètres > Voix.", + "09cf4905f8d0dcb3": "La destination vocale ne peut pas transcrire la voix. Choisissez une autre destination dans Paramètres > Voix.", + "2772ed6829f4bcda": "La saisie vocale n’est pas prête sur {destination}. Vérifiez Paramètres > Voix.", + "12570e22bfd43595": "La saisie vocale n’est pas prête sur la destination vocale. Vérifiez Paramètres > Voix.", "7c59a888a062a8bd": "La saisie vocale n’a aucun brouillon dans lequel enregistrer.", "62450481c00d2ef3": "L’environnement du brouillon n’est pas disponible pour nettoyer la transcription.", "0674544195fcdc39": "La transcription d’origine a été ajoutée.", @@ -3333,6 +3342,7 @@ "da13069e7a3a8ffd": "Agrandir la zone de saisie", "d3356b4524173b25": "Activez un fournisseur dans les Paramètres", "3d3f30f1a1c4fc52": "Demandez ce que vous voulez...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "Recherche de la pull request...", "cf855794f7b8ddb5": "Recherche des skills de l’espace de travail...", "e159e35b83a86404": "Recherche des fichiers de l’espace de travail...", @@ -3526,6 +3536,7 @@ "a19cd00a1a71c5f2": "Envoyer la réponse", "5bb216598e523c66": "Arrêt", "7565ea16d7bb9212": "Arrêter la génération", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "Arrêt…", "219dc4cdefa6b76a": "Interrompre", "5b2152f9b4c82ea6": "Question précédente", @@ -3559,10 +3570,14 @@ "5c05b24be2880672": "Enregistrement", "8e8acd5aa22b46c6": "Transcription…", "87f97f19123b51bc": "Nettoyage…", - "ad63d228b2f3491e": "Démarrer la saisie vocale", + "d2bf6b6ea7fab036": "Ignorer l’erreur de saisie vocale", "cae195de360a3d75": "Annuler la saisie vocale", - "74a1fcdf9eaedd86": "Ignorer", "5c572579e2230b4e": "Terminer la saisie vocale", + "ac1a3f94891b603c": "Transcription", + "3735ea7aef8fc116": "Ignorer le post-traitement", + "ad63d228b2f3491e": "Démarrer la saisie vocale", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "Ignorer", "8d8fe0fdaaf7742f": "Prompts mis de côté : {count}. Ouvrir la réserve.", "09732910721eb302": "Réserve", "972bb2cab0b74c7b": "(vide)", @@ -4781,7 +4796,6 @@ "ea3eb171ecbc8888": "Relancer la transcription", "7c60a3309c252304": "Réessayer", "8b8bc3983a34c5fe": "Enregistrer à nouveau", - "d2bf6b6ea7fab036": "Ignorer l’erreur de saisie vocale", "b9249c0c16e582ea": "Ignorer ({shortcut})", "4d9569bd7cc6b2e7": "Impossible de lister les micros. Le micro par défaut du système fonctionne toujours.", "d47a36d9869a6a91": "Micro sélectionné (indisponible)", diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json index 9c8e64b23fc6..eeb279b3ceba 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -3042,6 +3042,15 @@ "d83d0a88ac8cee3e": "モデルの準備ができていません。もう一度ダウンロードしてみてください。", "cdbfc38872d59c77": "モデルをダウンロードできませんでした。この環境の接続を確認して、もう一度お試しください。", "6f85f14f35b3f547": "{provider} ({environment} 経由)", + "5b668fa7b8d12d07": "音声入力を確認しています。", + "7f635fa898362865": "音声設定を読み込んでいます。", + "36989a3dee519c80": "音声入力はオフです。設定 > 音声でオンにしてください。", + "cc3ea67d9a0ed8b7": "{destination} が接続されていません。設定 > 音声を確認してください。", + "db050f5a936c17f8": "音声の送信先が接続されていません。設定 > 音声を確認してください。", + "6d3ee853fcfae4c8": "{destination} は音声を文字起こしできません。設定 > 音声で別の送信先を選んでください。", + "09cf4905f8d0dcb3": "音声の送信先は音声を文字起こしできません。設定 > 音声で別の送信先を選んでください。", + "2772ed6829f4bcda": "{destination} で音声入力の準備ができていません。設定 > 音声を確認してください。", + "12570e22bfd43595": "音声の送信先で音声入力の準備ができていません。設定 > 音声を確認してください。", "7c59a888a062a8bd": "音声入力を記録する下書きがありません。", "62450481c00d2ef3": "下書きの環境を利用できないため、文字起こしを整形できません。", "0674544195fcdc39": "元の文字起こしを追加しました。", @@ -3331,6 +3340,7 @@ "da13069e7a3a8ffd": "入力欄を展開", "d3356b4524173b25": "設定でプロバイダーを有効にしてください", "3d3f30f1a1c4fc52": "何でも聞いてください...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "プルリクエストを検索しています...", "cf855794f7b8ddb5": "ワークスペースのスキルを検索しています...", "e159e35b83a86404": "ワークスペースのファイルを検索しています...", @@ -3522,6 +3532,7 @@ "a19cd00a1a71c5f2": "回答を送信", "5bb216598e523c66": "停止中", "7565ea16d7bb9212": "生成を停止", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "停止しています…", "219dc4cdefa6b76a": "中断", "5b2152f9b4c82ea6": "前の質問", @@ -3555,10 +3566,14 @@ "5c05b24be2880672": "録音中", "8e8acd5aa22b46c6": "文字起こししています…", "87f97f19123b51bc": "整形しています…", - "ad63d228b2f3491e": "音声入力を開始", + "d2bf6b6ea7fab036": "音声入力のエラーを閉じる", "cae195de360a3d75": "音声入力をキャンセル", - "74a1fcdf9eaedd86": "スキップ", "5c572579e2230b4e": "音声入力を終了", + "ac1a3f94891b603c": "文字起こし中", + "3735ea7aef8fc116": "後処理をスキップ", + "ad63d228b2f3491e": "音声入力を開始", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "スキップ", "8d8fe0fdaaf7742f": "退避したプロンプト: {count}。退避一覧を開きます。", "09732910721eb302": "退避", "972bb2cab0b74c7b": "(空)", @@ -4770,7 +4785,6 @@ "ea3eb171ecbc8888": "文字起こしを再試行", "7c60a3309c252304": "再試行", "8b8bc3983a34c5fe": "もう一度録音", - "d2bf6b6ea7fab036": "音声入力のエラーを閉じる", "b9249c0c16e582ea": "閉じる ({shortcut})", "4d9569bd7cc6b2e7": "マイクを一覧表示できませんでした。システムのデフォルトのマイクは引き続き使用できます。", "d47a36d9869a6a91": "選択したマイク (利用不可)", diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json index de5daf10daf3..f118882b9ad8 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -3044,6 +3044,15 @@ "d83d0a88ac8cee3e": "모델이 준비되지 않았습니다. 다시 다운로드해 보세요.", "cdbfc38872d59c77": "모델을 다운로드할 수 없습니다. 이 환경의 연결을 확인하고 다시 시도하세요.", "6f85f14f35b3f547": "{environment}을(를) 통한 {provider}", + "5b668fa7b8d12d07": "음성 입력을 확인하는 중입니다.", + "7f635fa898362865": "음성 설정을 불러오는 중입니다.", + "36989a3dee519c80": "음성 입력이 꺼져 있습니다. 설정 > 음성에서 켜세요.", + "cc3ea67d9a0ed8b7": "{destination}이(가) 연결되지 않았습니다. 설정 > 음성을 확인하세요.", + "db050f5a936c17f8": "음성 대상이 연결되지 않았습니다. 설정 > 음성을 확인하세요.", + "6d3ee853fcfae4c8": "{destination}은(는) 음성을 받아쓸 수 없습니다. 설정 > 음성에서 다른 대상을 선택하세요.", + "09cf4905f8d0dcb3": "음성 대상이 음성을 받아쓸 수 없습니다. 설정 > 음성에서 다른 대상을 선택하세요.", + "2772ed6829f4bcda": "{destination}에서 음성 입력이 준비되지 않았습니다. 설정 > 음성을 확인하세요.", + "12570e22bfd43595": "음성 대상에서 음성 입력이 준비되지 않았습니다. 설정 > 음성을 확인하세요.", "7c59a888a062a8bd": "음성 입력을 기록할 초안이 없습니다.", "62450481c00d2ef3": "초안의 환경을 사용할 수 없어 받아쓴 내용을 정리할 수 없습니다.", "0674544195fcdc39": "원본 받아쓰기 내용이 추가되었습니다.", @@ -3333,6 +3342,7 @@ "da13069e7a3a8ffd": "입력창 펼치기", "d3356b4524173b25": "설정에서 제공자를 사용하도록 설정하세요", "3d3f30f1a1c4fc52": "무엇이든 물어보세요...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "풀 리퀘스트를 찾는 중...", "cf855794f7b8ddb5": "작업 영역 스킬을 검색하는 중...", "e159e35b83a86404": "작업 영역 파일을 검색하는 중...", @@ -3523,6 +3533,7 @@ "a19cd00a1a71c5f2": "답변 제출", "5bb216598e523c66": "중지하는 중", "7565ea16d7bb9212": "생성 중지", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "중지하는 중…", "219dc4cdefa6b76a": "중단", "5b2152f9b4c82ea6": "이전 질문", @@ -3556,10 +3567,14 @@ "5c05b24be2880672": "녹음 중", "8e8acd5aa22b46c6": "받아쓰는 중…", "87f97f19123b51bc": "정리하는 중…", - "ad63d228b2f3491e": "음성 입력 시작", + "d2bf6b6ea7fab036": "음성 입력 오류 닫기", "cae195de360a3d75": "음성 입력 취소", - "74a1fcdf9eaedd86": "건너뛰기", "5c572579e2230b4e": "음성 입력 완료", + "ac1a3f94891b603c": "받아쓰는 중", + "3735ea7aef8fc116": "후처리 건너뛰기", + "ad63d228b2f3491e": "음성 입력 시작", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "건너뛰기", "8d8fe0fdaaf7742f": "임시 저장한 프롬프트: {count}개. 임시 저장함 열기.", "09732910721eb302": "임시 저장함", "972bb2cab0b74c7b": "(비어 있음)", @@ -4768,7 +4783,6 @@ "ea3eb171ecbc8888": "받아쓰기 다시 시도", "7c60a3309c252304": "다시 시도", "8b8bc3983a34c5fe": "다시 녹음", - "d2bf6b6ea7fab036": "음성 입력 오류 닫기", "b9249c0c16e582ea": "닫기({shortcut})", "4d9569bd7cc6b2e7": "마이크 목록을 가져올 수 없습니다. 시스템 기본값은 계속 사용할 수 있습니다.", "d47a36d9869a6a91": "선택한 마이크(사용할 수 없음)", diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json index 8445a9d8894f..d3dbd7093b19 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -3044,6 +3044,15 @@ "d83d0a88ac8cee3e": "O modelo não está pronto. Tente baixá-lo novamente.", "cdbfc38872d59c77": "Não foi possível baixar o modelo. Verifique a conexão deste ambiente e tente novamente.", "6f85f14f35b3f547": "{provider} via {environment}", + "5b668fa7b8d12d07": "Verificando a entrada de voz.", + "7f635fa898362865": "Carregando as configurações de voz.", + "36989a3dee519c80": "A entrada de voz está desativada. Ative em Configurações > Voz.", + "cc3ea67d9a0ed8b7": "{destination} não está conectado. Verifique Configurações > Voz.", + "db050f5a936c17f8": "O destino de voz não está conectado. Verifique Configurações > Voz.", + "6d3ee853fcfae4c8": "{destination} não consegue transcrever voz. Escolha outro destino em Configurações > Voz.", + "09cf4905f8d0dcb3": "O destino de voz não consegue transcrever voz. Escolha outro destino em Configurações > Voz.", + "2772ed6829f4bcda": "A entrada de voz não está pronta em {destination}. Verifique Configurações > Voz.", + "12570e22bfd43595": "A entrada de voz não está pronta no destino de voz. Verifique Configurações > Voz.", "7c59a888a062a8bd": "A entrada de voz não tem um rascunho onde gravar.", "62450481c00d2ef3": "O ambiente do rascunho não está disponível para limpar a transcrição.", "0674544195fcdc39": "A transcrição original foi adicionada.", @@ -3333,6 +3342,7 @@ "da13069e7a3a8ffd": "Expandir o editor de mensagens", "d3356b4524173b25": "Ative um provedor nas Configurações", "3d3f30f1a1c4fc52": "Pergunte qualquer coisa...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "Procurando o pull request...", "cf855794f7b8ddb5": "Pesquisando skills do workspace...", "e159e35b83a86404": "Pesquisando arquivos do workspace...", @@ -3526,6 +3536,7 @@ "a19cd00a1a71c5f2": "Enviar resposta", "5bb216598e523c66": "Parando", "7565ea16d7bb9212": "Parar a geração", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "Parando…", "219dc4cdefa6b76a": "Interromper", "5b2152f9b4c82ea6": "Pergunta anterior", @@ -3559,10 +3570,14 @@ "5c05b24be2880672": "Gravando", "8e8acd5aa22b46c6": "Transcrevendo…", "87f97f19123b51bc": "Limpando…", - "ad63d228b2f3491e": "Iniciar entrada de voz", + "d2bf6b6ea7fab036": "Dispensar erro da entrada de voz", "cae195de360a3d75": "Cancelar entrada de voz", - "74a1fcdf9eaedd86": "Pular", "5c572579e2230b4e": "Concluir entrada de voz", + "ac1a3f94891b603c": "Transcrevendo", + "3735ea7aef8fc116": "Pular pós-processamento", + "ad63d228b2f3491e": "Iniciar entrada de voz", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "Pular", "8d8fe0fdaaf7742f": "Prompts guardados: {count}. Abrir guardados.", "09732910721eb302": "Guardados", "972bb2cab0b74c7b": "(vazio)", @@ -4780,7 +4795,6 @@ "ea3eb171ecbc8888": "Tentar transcrever novamente", "7c60a3309c252304": "Tentar novamente", "8b8bc3983a34c5fe": "Gravar novamente", - "d2bf6b6ea7fab036": "Dispensar erro da entrada de voz", "b9249c0c16e582ea": "Dispensar ({shortcut})", "4d9569bd7cc6b2e7": "Não foi possível listar os microfones. O padrão do sistema continua funcionando.", "d47a36d9869a6a91": "Microfone selecionado (indisponível)", diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json index d5bd7f1179ad..ef59ad74ca5d 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -3044,6 +3044,15 @@ "d83d0a88ac8cee3e": "Модель не готова. Попробуйте скачать её снова.", "cdbfc38872d59c77": "Не удалось скачать модель. Проверьте подключение окружения и повторите попытку.", "6f85f14f35b3f547": "{provider} через {environment}", + "5b668fa7b8d12d07": "Проверка голосового ввода.", + "7f635fa898362865": "Загрузка настроек голоса.", + "36989a3dee519c80": "Голосовой ввод выключен. Включите его в «Настройки > Голос».", + "cc3ea67d9a0ed8b7": "{destination} не подключено. Проверьте «Настройки > Голос».", + "db050f5a936c17f8": "Назначение для голоса не подключено. Проверьте «Настройки > Голос».", + "6d3ee853fcfae4c8": "{destination} не умеет расшифровывать голос. Выберите другое назначение в «Настройки > Голос».", + "09cf4905f8d0dcb3": "Назначение для голоса не умеет расшифровывать голос. Выберите другое назначение в «Настройки > Голос».", + "2772ed6829f4bcda": "Голосовой ввод не готов на {destination}. Проверьте «Настройки > Голос».", + "12570e22bfd43595": "Голосовой ввод не готов на назначении для голоса. Проверьте «Настройки > Голос».", "7c59a888a062a8bd": "Нет черновика для записи голосового ввода.", "62450481c00d2ef3": "Окружение черновика недоступно для очистки расшифровки.", "0674544195fcdc39": "Добавлена исходная расшифровка.", @@ -3333,6 +3342,7 @@ "da13069e7a3a8ffd": "Развернуть поле ввода", "d3356b4524173b25": "Включите провайдера в настройках", "3d3f30f1a1c4fc52": "Спросите что угодно...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "Поиск пул-реквеста...", "cf855794f7b8ddb5": "Поиск навыков рабочей области...", "e159e35b83a86404": "Поиск файлов рабочей области...", @@ -3526,6 +3536,7 @@ "a19cd00a1a71c5f2": "Отправить ответ", "5bb216598e523c66": "Остановка", "7565ea16d7bb9212": "Остановить генерацию", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "Остановка…", "219dc4cdefa6b76a": "Прервать", "5b2152f9b4c82ea6": "Предыдущий вопрос", @@ -3559,10 +3570,14 @@ "5c05b24be2880672": "Запись", "8e8acd5aa22b46c6": "Расшифровка…", "87f97f19123b51bc": "Очистка…", - "ad63d228b2f3491e": "Начать голосовой ввод", + "d2bf6b6ea7fab036": "Закрыть ошибку голосового ввода", "cae195de360a3d75": "Отменить голосовой ввод", - "74a1fcdf9eaedd86": "Пропустить", "5c572579e2230b4e": "Завершить голосовой ввод", + "ac1a3f94891b603c": "Расшифровка", + "3735ea7aef8fc116": "Пропустить постобработку", + "ad63d228b2f3491e": "Начать голосовой ввод", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "Пропустить", "8d8fe0fdaaf7742f": "Спрятанные промпты: {count}. Открыть тайник.", "09732910721eb302": "Тайник", "972bb2cab0b74c7b": "(пусто)", @@ -4780,7 +4795,6 @@ "ea3eb171ecbc8888": "Повторить расшифровку", "7c60a3309c252304": "Повторить", "8b8bc3983a34c5fe": "Записать снова", - "d2bf6b6ea7fab036": "Закрыть ошибку голосового ввода", "b9249c0c16e582ea": "Закрыть ({shortcut})", "4d9569bd7cc6b2e7": "Не удалось получить список микрофонов. Системный по умолчанию по-прежнему работает.", "d47a36d9869a6a91": "Выбранный микрофон (недоступен)", diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json index 930f7bff48ae..20c577b16202 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -3044,6 +3044,15 @@ "d83d0a88ac8cee3e": "Modellen är inte redo. Försök ladda ned den igen.", "cdbfc38872d59c77": "Kunde inte ladda ned modellen. Kontrollera den här miljöns anslutning och försök igen.", "6f85f14f35b3f547": "{provider} via {environment}", + "5b668fa7b8d12d07": "Kontrollerar röstinmatning.", + "7f635fa898362865": "Läser in röstinställningar.", + "36989a3dee519c80": "Röstinmatning är av. Slå på den i Inställningar > Röst.", + "cc3ea67d9a0ed8b7": "{destination} är inte ansluten. Kontrollera Inställningar > Röst.", + "db050f5a936c17f8": "Röstmålet är inte anslutet. Kontrollera Inställningar > Röst.", + "6d3ee853fcfae4c8": "{destination} kan inte transkribera röst. Välj ett annat mål i Inställningar > Röst.", + "09cf4905f8d0dcb3": "Röstmålet kan inte transkribera röst. Välj ett annat mål i Inställningar > Röst.", + "2772ed6829f4bcda": "Röstinmatning är inte redo på {destination}. Kontrollera Inställningar > Röst.", + "12570e22bfd43595": "Röstinmatning är inte redo på röstmålet. Kontrollera Inställningar > Röst.", "7c59a888a062a8bd": "Röstinmatningen har inget utkast att spela in i.", "62450481c00d2ef3": "Utkastets miljö är inte tillgänglig för att städa transkriptionen.", "0674544195fcdc39": "Den ursprungliga transkriptionen lades till.", @@ -3333,6 +3342,7 @@ "da13069e7a3a8ffd": "Expandera inmatningsfältet", "d3356b4524173b25": "Aktivera en leverantör i Inställningar", "3d3f30f1a1c4fc52": "Fråga vad som helst...", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "Hittar pull request...", "cf855794f7b8ddb5": "Söker färdigheter i arbetsytan...", "e159e35b83a86404": "Söker filer i arbetsytan...", @@ -3526,6 +3536,7 @@ "a19cd00a1a71c5f2": "Skicka svar", "5bb216598e523c66": "Stoppar", "7565ea16d7bb9212": "Stoppa generering", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "Stoppar…", "219dc4cdefa6b76a": "Avbryt", "5b2152f9b4c82ea6": "Föregående fråga", @@ -3559,10 +3570,14 @@ "5c05b24be2880672": "Spelar in", "8e8acd5aa22b46c6": "Transkriberar…", "87f97f19123b51bc": "Städar upp…", - "ad63d228b2f3491e": "Starta röstinmatning", + "d2bf6b6ea7fab036": "Stäng felet för röstinmatning", "cae195de360a3d75": "Avbryt röstinmatning", - "74a1fcdf9eaedd86": "Hoppa över", "5c572579e2230b4e": "Avsluta röstinmatning", + "ac1a3f94891b603c": "Transkriberar", + "3735ea7aef8fc116": "Hoppa över efterbearbetning", + "ad63d228b2f3491e": "Starta röstinmatning", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "Hoppa över", "8d8fe0fdaaf7742f": "Undanlagda promptar: {count}. Öppna listan.", "09732910721eb302": "Undanlagt", "972bb2cab0b74c7b": "(tom)", @@ -4781,7 +4796,6 @@ "ea3eb171ecbc8888": "Försök transkribera igen", "7c60a3309c252304": "Försök igen", "8b8bc3983a34c5fe": "Spela in igen", - "d2bf6b6ea7fab036": "Stäng felet för röstinmatning", "b9249c0c16e582ea": "Stäng ({shortcut})", "4d9569bd7cc6b2e7": "Kunde inte lista mikrofoner. Systemets standard fungerar fortfarande.", "d47a36d9869a6a91": "Vald mikrofon (inte tillgänglig)", diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json index c50f5dcd4fb5..39742fa374f3 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -3048,6 +3048,15 @@ "d83d0a88ac8cee3e": "模型尚未就绪。请重新下载。", "cdbfc38872d59c77": "无法下载模型。请检查此环境的连接后重试。", "6f85f14f35b3f547": "{provider}(经由 {environment})", + "5b668fa7b8d12d07": "正在检查语音输入。", + "7f635fa898362865": "正在加载语音设置。", + "36989a3dee519c80": "语音输入已关闭。请在“设置 → 语音”中开启。", + "cc3ea67d9a0ed8b7": "{destination} 未连接。请检查“设置 → 语音”。", + "db050f5a936c17f8": "语音目标未连接。请检查“设置 → 语音”。", + "6d3ee853fcfae4c8": "{destination} 无法转写语音。请在“设置 → 语音”中选择其他目标。", + "09cf4905f8d0dcb3": "语音目标无法转写语音。请在“设置 → 语音”中选择其他目标。", + "2772ed6829f4bcda": "{destination} 上的语音输入尚未就绪。请检查“设置 → 语音”。", + "12570e22bfd43595": "语音目标上的语音输入尚未就绪。请检查“设置 → 语音”。", "7c59a888a062a8bd": "语音输入没有可录入的草稿。", "62450481c00d2ef3": "草稿所在环境不可用,无法整理转写内容。", "0674544195fcdc39": "已添加原始转写文本。", @@ -3337,6 +3346,7 @@ "da13069e7a3a8ffd": "展开输入框", "d3356b4524173b25": "请在设置中启用一个提供方", "3d3f30f1a1c4fc52": "随便问点什么…", + "4d7e5c66d3523b28": "Stop voice input", "305d6d72f1220d98": "正在查找 pull request…", "cf855794f7b8ddb5": "正在搜索工作区技能…", "e159e35b83a86404": "正在搜索工作区文件…", @@ -3531,6 +3541,7 @@ "a19cd00a1a71c5f2": "提交答案", "5bb216598e523c66": "正在停止", "7565ea16d7bb9212": "停止生成", + "6c8afa6536fa00f2": "Stop voice input ({shortcut})", "7161c775bd96511c": "正在停止…", "219dc4cdefa6b76a": "中断", "5b2152f9b4c82ea6": "上一题", @@ -3564,10 +3575,14 @@ "5c05b24be2880672": "正在录音", "8e8acd5aa22b46c6": "正在转写…", "87f97f19123b51bc": "正在整理…", - "ad63d228b2f3491e": "开始语音输入", + "d2bf6b6ea7fab036": "关闭语音输入错误提示", "cae195de360a3d75": "取消语音输入", - "74a1fcdf9eaedd86": "跳过", "5c572579e2230b4e": "完成语音输入", + "ac1a3f94891b603c": "正在转写", + "3735ea7aef8fc116": "跳过后处理", + "ad63d228b2f3491e": "开始语音输入", + "9d3b583dc68fbf02": "(Esc cancels)", + "74a1fcdf9eaedd86": "跳过", "8d8fe0fdaaf7742f": "暂存的提示词:{count} 条。打开暂存。", "09732910721eb302": "暂存", "972bb2cab0b74c7b": "(空)", @@ -4786,7 +4801,6 @@ "ea3eb171ecbc8888": "重试转写", "7c60a3309c252304": "重试", "8b8bc3983a34c5fe": "重新录音", - "d2bf6b6ea7fab036": "关闭语音输入错误提示", "b9249c0c16e582ea": "关闭 ({shortcut})", "4d9569bd7cc6b2e7": "无法列出麦克风,仍可使用系统默认麦克风。", "d47a36d9869a6a91": "所选麦克风(不可用)", diff --git a/apps/web/src/speech/useEnvironmentSpeechInput.ts b/apps/web/src/speech/useEnvironmentSpeechInput.ts index c7915685727b..24ac53bd3ce1 100644 --- a/apps/web/src/speech/useEnvironmentSpeechInput.ts +++ b/apps/web/src/speech/useEnvironmentSpeechInput.ts @@ -160,6 +160,53 @@ export function useVoiceTranscriptionDestination() { }; } +/** + * Why the composer mic cannot start yet, or null when it can or should not show at all + * (a browser that cannot capture audio has nothing to turn on). + */ +export function useSpeechUnavailableReason(speech: { + readonly available: boolean; + readonly status: EnvironmentSpeechStatus | null; +}) { + const gt = useGT(); + const hydrated = useClientSettingsHydrated(); + const choice = useAudioChoice(); + const grant = choice === "off" ? null : choice; + const destination = useVoiceTranscriptionDestination(); + const environment = useEnvironment(destination.environmentId); + const connection = Option.getOrNull(usePreparedConnection(destination.environmentId)); + const canCapture = + typeof navigator !== "undefined" && + Boolean(navigator.mediaDevices?.getUserMedia) && + typeof AudioWorkletNode !== "undefined"; + if (!canCapture || speech.available) return null; + const where = destination.label; + if (destination.prepared) { + return speech.status?.supported === false ? speech.status.reason : gt("Checking voice input."); + } + if (!hydrated) return gt("Loading voice settings."); + if (!grant) return gt("Voice input is off. Turn it on in Settings > Voice."); + if (!connection || !environment?.serverConfig) { + return where + ? gt("{destination} is not connected. Check Settings > Voice.", { destination: where }) + : gt("The voice destination is not connected. Check Settings > Voice."); + } + if (environment.serverConfig.environment.capabilities.voiceTranscription !== true) { + return where + ? gt("{destination} can't transcribe voice. Pick another destination in Settings > Voice.", { + destination: where, + }) + : gt( + "The voice destination can't transcribe voice. Pick another destination in Settings > Voice.", + ); + } + return where + ? gt("Voice input is not ready on {destination}. Check Settings > Voice.", { + destination: where, + }) + : gt("Voice input is not ready on the voice destination. Check Settings > Voice."); +} + export function useEnvironmentSpeechInput(input: HookInput) { const navigate = useNavigate(); const destination = useVoiceTranscriptionDestination(); diff --git a/apps/web/src/speech/useTextFieldSpeech.tsx b/apps/web/src/speech/useTextFieldSpeech.tsx index b8ccad995fa0..5ee484fd0350 100644 --- a/apps/web/src/speech/useTextFieldSpeech.tsx +++ b/apps/web/src/speech/useTextFieldSpeech.tsx @@ -76,7 +76,7 @@ export function TextFieldSpeechControls({ {speech.preview ? (

{speech.preview.committed} {speech.preview.tentative} diff --git a/docs/user/voice-input.md b/docs/user/voice-input.md index 9831eeafd49f..c01cc67a1a4b 100644 --- a/docs/user/voice-input.md +++ b/docs/user/voice-input.md @@ -91,7 +91,8 @@ while you record; models with built-in long-form support transcribe when you sto ## Dictate Press the microphone in the composer, or `mod+shift+d` (`mod` is Command on -macOS and Ctrl elsewhere). Press again, or the check mark, to finish; `Esc` +macOS and Ctrl elsewhere). While you record, the microphone shows live bars and +Send becomes Stop. Press the shortcut again, the bars, or Stop to finish; `Esc` discards the recording and leaves your draft unchanged. Recordings last up to five minutes. Text is inserted at the cursor or replaces the selection you had when recording started, and the editor is read-only while dictation runs. @@ -100,8 +101,8 @@ the text then goes after your selection instead of replacing it. A file or thread you paste or drop in meanwhile can be removed by focusing its chip and pressing Backspace or Delete. -Pressing Send while dictating finishes the recording and sends the draft once -the transcript has been inserted. Cancelling also cancels that queued send. In +Using your send shortcut while dictating finishes the recording and sends the +draft once the transcript has been inserted. Cancelling also cancels that queued send. In the other editors, Save, Comment, Reply, Submit review, or Attach works the same way, and the shortcut targets the editor that has focus, or the composer when none does. In the desktop browser's annotation editor, the microphone and diff --git a/vite.config.ts b/vite.config.ts index e8030f5b230a..81d931a9c6be 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -786,8 +786,6 @@ export default defineConfig({ "apps/web/src/components/sidebar/SidebarUpdateReleaseNotes.tsx": 1, "apps/web/src/components/ThreadStatusIndicators.tsx": 1, "apps/web/src/components/usage/UsageLimitsPooled.tsx": 1, - "apps/web/src/components/settings/MicrophoneTest.tsx": 1, - "apps/web/src/components/settings/SpeechModelComparison.tsx": 1, "apps/web/src/components/settings/TextGeneratorsSettings.tsx": 2, }).map(([file, maxOccurrences]) => { const rule: ["error", { maxOccurrences: number }] = ["error", { maxOccurrences }]; @@ -1023,16 +1021,8 @@ export default defineConfig({ "apps/web/src/components/sidebar/SidebarChrome.tsx": 1, "apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx": 1, "apps/web/src/components/ThreadCommandSubtitle.tsx": 1, - "apps/web/src/components/chat/ComposerSpeechButton.tsx": 2, - "apps/web/src/components/chat/VoiceInputErrorPill.tsx": 1, - "apps/web/src/components/chat/VoiceInputSetup.tsx": 8, - "apps/web/src/components/settings/MicrophoneTest.tsx": 4, "apps/web/src/components/settings/SecretsSettings.tsx": 1, - "apps/web/src/components/settings/SpeechModelComparison.tsx": 3, "apps/web/src/components/settings/CloudVoiceConfiguration.tsx": 8, - "apps/web/src/components/settings/MicrophoneOrderList.tsx": 4, - "apps/web/src/components/settings/VoiceSettingsPanel.tsx": 14, - "apps/web/src/speech/useTextFieldSpeech.tsx": 1, }).map(([file, maxOccurrences]) => { const rule: ["error", { maxOccurrences: number }] = ["error", { maxOccurrences }]; return { files: [file], rules: { "t3code/no-raw-type-classes": rule } };