mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-27 06:05:54 +08:00
* feat(voice): add optional speech-to-text input and read-aloud TTS Adds a push-to-talk mic button in the composer and a read-aloud button on assistant messages. Both are opt-in and hidden unless a voice backend is configured via VOICE_SIDECAR_URL. The auth-gated /api/voice proxy forwards to a configurable backend exposing /transcribe and /tts (provider-agnostic); the frontend probes /api/voice/health and hides the controls when disabled. Adds i18n keys and docs/voice.md. Includes a local, no-API-key reference backend in voice-sidecar/ (faster-whisper for STT, Kokoro-82M for TTS, both CPU-capable). * refactor(voice): provider-agnostic backend and in-app config Switches the voice proxy to the OpenAI audio API (/v1/audio/transcriptions and /v1/audio/speech) so it works with OpenAI, Groq, or a local server. Adds a Settings -> Voice tab (base URL, API key, models, voice) plus a Quick Settings toggle, and removes the bundled Python sidecar. Review fixes: stop mic tracks on unmount, clear the global TTS stop handler and revoke leaked blob URLs, add fetch timeouts in the proxy, surface mic errors in the button, trim before appending transcripts, and drop the repo-wide wav ignore. * fix(voice): relax backend timeout and surface timeout errors Bumps the proxy timeout to 5 minutes (VOICE_TIMEOUT_MS) since local TTS can synthesize long messages at roughly real-time, and returns a clear timed-out message (504) instead of failing silently. The read-aloud button now shows backend errors. * fix(voice): play read-aloud through an app-level player to stop cutoffs Read-aloud now runs in a single module-level player outside the React tree instead of per-message component state. Switching chats or re-rendering a message no longer revokes the blob URL mid-play (the 'Invalid URI' cutoff). Adds content-keyed caching so re-listening doesn't regenerate, and reuses one audio element (also unlocks iOS once). * fix(voice): address review (SSRF guard, auth mapping, client timeout) Validates the user-supplied backend URL (http/https only, blocks the link-local metadata range) to prevent SSRF; remaps upstream 401/403 so a bad voice API key isn't read as the app's own auth failing; adds a client-side AbortController timeout on the read-aloud request so the button can't sit in loading if a request stalls. * docs(voice): provider-agnostic wording and jsdoc on proxy functions drop leftover sidecar/faster-whisper references now that the backend is any openai-compatible voice api, and add jsdoc to the voice-proxy functions so the docstring coverage check passes. * fix(voice): harden timeout parsing, tts input check, and player abort - fall back to the default when VOICE_TIMEOUT_MS is non-numeric or <= 0, so a bad override can't make the abort fire immediately - type-check the tts `text` before calling .trim() so a non-string body returns 400 instead of throwing - abort the in-flight TTS fetch on stop() and on a superseding play, so tapping read-aloud repeatedly doesn't leave orphaned requests generating audio * feat(voice): send transcript with the main send button while recording while dictating, the main send button stops recording, transcribes, and sends in one tap, matching the codex-style flow. the mic button still stops and drops the transcript into the input box to edit before sending. voice recording state is lifted into the composer so both buttons share it, and the send button is enabled (not grayed) while recording. also fix a pre-existing type error: the quick-settings preferences map was missing voiceEnabled. * fix(voice): make stop() idempotent so a double tap can't throw guard on the recorder's own state instead of react state, so a double tap or the mic and send buttons both firing won't call stop() on an already-inactive MediaRecorder. * fix(voice): expose TTS format in user settings * fix(voice): harden recording and backend behavior Redirects could bypass the backend URL guard, and TTS playback waited for full buffering. Recording could overlap or finish after teardown. Controls also ignored backend readiness. Explicit formats and config-aware cache keys prevent stale audio after settings change. * fix(voice): validate config and request boundaries Malformed stored settings could break voice requests instead of using safe defaults. Health results could outlive auth changes. URL checks also did not guard the fetch sink. Remove constant recorder branches so lifecycle cancellation stays clear. * fix(voice): separate client and server backends User-selected backend URLs must remain usable without letting clients control server requests. Call custom providers from the browser while keeping the server proxy bound to its configured host. This restores voice controls for frontend settings without reopening the SSRF path. * fix: hide voice options until enabled --------- Co-authored-by: newsbubbles <nathaniel.gibson@gmail.com> Co-authored-by: Simos Mikelatos <simosmik@gmail.com>
251 lines
8.7 KiB
JSON
251 lines
8.7 KiB
JSON
{
|
|
"codeBlock": {
|
|
"copy": "Copy",
|
|
"copied": "Copied",
|
|
"copyCode": "Copy code"
|
|
},
|
|
"copyMessage": {
|
|
"copy": "Copy message",
|
|
"copied": "Message copied",
|
|
"selectFormat": "Select copy format",
|
|
"copyAsMarkdown": "Copy as markdown",
|
|
"copyAsText": "Copy as text"
|
|
},
|
|
"messageTypes": {
|
|
"user": "U",
|
|
"error": "Error",
|
|
"tool": "Tool",
|
|
"claude": "Claude",
|
|
"cursor": "Cursor",
|
|
"codex": "Codex",
|
|
"gemini": "Gemini",
|
|
"opencode": "OpenCode"
|
|
},
|
|
"tools": {
|
|
"settings": "Tool Settings",
|
|
"error": "Tool Error",
|
|
"result": "Tool Result",
|
|
"viewParams": "View input parameters",
|
|
"viewRawParams": "View raw parameters",
|
|
"viewDiff": "View edit diff for",
|
|
"creatingFile": "Creating new file:",
|
|
"updatingTodo": "Updating Todo List",
|
|
"read": "Read",
|
|
"readFile": "Read file",
|
|
"updateTodo": "Update todo list",
|
|
"readTodo": "Read todo list",
|
|
"searchResults": "results"
|
|
},
|
|
"search": {
|
|
"found": "Found {{count}} {{type}}",
|
|
"file": "file",
|
|
"files": "files",
|
|
"pattern": "pattern:",
|
|
"in": "in:"
|
|
},
|
|
"fileOperations": {
|
|
"updated": "File updated successfully",
|
|
"created": "File created successfully",
|
|
"written": "File written successfully",
|
|
"diff": "Diff",
|
|
"newFile": "New File",
|
|
"viewContent": "View file content",
|
|
"viewFullOutput": "View full output ({{count}} chars)",
|
|
"contentDisplayed": "The file content is displayed in the diff view above"
|
|
},
|
|
"interactive": {
|
|
"title": "Interactive Prompt",
|
|
"waiting": "Waiting for your response in the CLI",
|
|
"instruction": "Please select an option in your terminal where Claude is running.",
|
|
"selectedOption": "✓ Claude selected option {{number}}",
|
|
"instructionDetail": "In the CLI, you would select this option interactively using arrow keys or by typing the number."
|
|
},
|
|
"thinking": {
|
|
"title": "Thinking...",
|
|
"emoji": "💭 Thinking..."
|
|
},
|
|
"json": {
|
|
"response": "JSON Response"
|
|
},
|
|
"permissions": {
|
|
"grant": "Grant permission for {{tool}}",
|
|
"added": "Permission added",
|
|
"addTo": "Adds {{entry}} to Allowed Tools.",
|
|
"retry": "Permission saved. Retry the request to use the tool.",
|
|
"error": "Unable to update permissions. Please try again.",
|
|
"openSettings": "Open settings"
|
|
},
|
|
"todo": {
|
|
"updated": "Todo list has been updated successfully",
|
|
"current": "Current Todo List"
|
|
},
|
|
"plan": {
|
|
"viewPlan": "📋 View implementation plan",
|
|
"title": "Implementation Plan"
|
|
},
|
|
"usageLimit": {
|
|
"resetAt": "Claude usage limit reached. Your limit will reset at **{{time}} {{timezone}}** - {{date}}"
|
|
},
|
|
"codex": {
|
|
"permissionMode": "Permission Mode",
|
|
"modes": {
|
|
"default": "Default Mode",
|
|
"auto": "Auto Mode",
|
|
"acceptEdits": "Accept Edits",
|
|
"bypassPermissions": "Bypass Permissions",
|
|
"plan": "Plan Mode"
|
|
},
|
|
"descriptions": {
|
|
"default": "Only trusted commands (ls, cat, grep, git status, etc.) run automatically. Other commands are skipped. Can write to workspace.",
|
|
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
"acceptEdits": "All commands run automatically within the workspace. Full auto mode with sandboxed execution.",
|
|
"bypassPermissions": "Full system access with no restrictions. All commands run automatically with full disk and network access. Use with caution.",
|
|
"plan": "Planning mode - no commands are executed"
|
|
},
|
|
"technicalDetails": "Technical details"
|
|
},
|
|
"gemini": {
|
|
"permissionMode": "Gemini Permission Mode",
|
|
"description": "Control how Gemini CLI handles operation approvals.",
|
|
"modes": {
|
|
"default": {
|
|
"title": "Standard (Ask for Approval)",
|
|
"description": "Gemini will prompt for approval before executing commands, writing files, and fetching web resources."
|
|
},
|
|
"autoEdit": {
|
|
"title": "Auto Edit (Skip File Approvals)",
|
|
"description": "Gemini will automatically approve file edits and web fetches, but will still prompt for shell commands."
|
|
},
|
|
"yolo": {
|
|
"title": "YOLO (Bypass All Permissions)",
|
|
"description": "Gemini will execute all operations without asking for approval. Exercise caution."
|
|
}
|
|
}
|
|
},
|
|
"voice": {
|
|
"input": "Voice input",
|
|
"stopRecording": "Stop recording",
|
|
"transcribing": "Transcribing…",
|
|
"speak": "Read aloud",
|
|
"stopSpeaking": "Stop",
|
|
"loading": "Loading…"
|
|
},
|
|
"input": {
|
|
"placeholder": "Type / for commands, @ for files, or ask {{provider}} anything...",
|
|
"placeholderDefault": "Type your message...",
|
|
"disabled": "Input disabled",
|
|
"attachFiles": "Attach files",
|
|
"attachImages": "Attach images",
|
|
"send": "Send",
|
|
"stop": "Stop",
|
|
"hintText": {
|
|
"ctrlEnter": "Ctrl+Enter to send • Shift+Enter for new line • Tab to change modes • / for slash commands",
|
|
"enter": "Enter to send • Shift+Enter for new line • Tab to change modes • / for slash commands"
|
|
},
|
|
"clickToChangeMode": "Click to change permission mode (or press Tab in input)",
|
|
"showAllCommands": "Show all commands",
|
|
"clearInput": "Clear input",
|
|
"scrollToBottom": "Scroll to bottom"
|
|
},
|
|
"providerSelection": {
|
|
"title": "Choose Your AI Assistant",
|
|
"description": "Select a provider to start a new conversation",
|
|
"selectModel": "Select Model",
|
|
"providerInfo": {
|
|
"anthropic": "by Anthropic",
|
|
"openai": "by OpenAI",
|
|
"cursorEditor": "AI Code Editor",
|
|
"google": "by Google"
|
|
},
|
|
"readyPrompt": {
|
|
"claude": "Ready to use Claude with {{model}}. Start typing your message below.",
|
|
"cursor": "Ready to use Cursor with {{model}}. Start typing your message below.",
|
|
"codex": "Ready to use Codex with {{model}}. Start typing your message below.",
|
|
"gemini": "Ready to use Gemini with {{model}}. Start typing your message below.",
|
|
"opencode": "Ready to use OpenCode with {{model}}. Start typing your message below.",
|
|
"default": "Select a provider above to begin"
|
|
},
|
|
"pressToSearch": "Press <kbd>{{shortcut}}</kbd> to search sessions, files, and commits"
|
|
},
|
|
"session": {
|
|
"continue": {
|
|
"title": "Continue your conversation",
|
|
"description": "Ask questions about your code, request changes, or get help with development tasks"
|
|
},
|
|
"loading": {
|
|
"olderMessages": "Loading older messages...",
|
|
"sessionMessages": "Loading session messages..."
|
|
},
|
|
"messages": {
|
|
"showingOf": "Showing {{shown}} of {{total}} messages",
|
|
"scrollToLoad": "Scroll up to load more",
|
|
"showingLast": "Showing last {{count}} messages ({{total}} total)",
|
|
"loadEarlier": "Load earlier messages",
|
|
"loadAll": "Load all messages",
|
|
"loadingAll": "Loading all messages...",
|
|
"allLoaded": "All messages loaded",
|
|
"perfWarning": "All messages loaded — scrolling may be slower. Click \"Scroll to bottom\" to restore performance."
|
|
}
|
|
},
|
|
"shell": {
|
|
"selectProject": {
|
|
"title": "Select a Project",
|
|
"description": "Choose a project to open an interactive shell in that directory"
|
|
},
|
|
"status": {
|
|
"newSession": "New Session",
|
|
"initializing": "Initializing...",
|
|
"restarting": "Restarting..."
|
|
},
|
|
"actions": {
|
|
"disconnect": "Disconnect",
|
|
"disconnectTitle": "Disconnect from shell",
|
|
"restart": "Restart",
|
|
"restartTitle": "Restart Shell",
|
|
"connect": "Continue in Shell",
|
|
"connectTitle": "Connect to shell"
|
|
},
|
|
"loading": "Loading terminal...",
|
|
"connecting": "Connecting to shell...",
|
|
"startSession": "Start a new Claude session",
|
|
"resumeSession": "Resume session: {{displayName}}...",
|
|
"runCommand": "Run {{command}} in {{projectName}}",
|
|
"startCli": "Starting Claude CLI in {{projectName}}",
|
|
"defaultCommand": "command"
|
|
},
|
|
"claudeStatus": {
|
|
"actions": {
|
|
"thinking": "Thinking",
|
|
"processing": "Processing",
|
|
"analyzing": "Analyzing",
|
|
"working": "Working",
|
|
"computing": "Computing",
|
|
"reasoning": "Reasoning"
|
|
},
|
|
"state": {
|
|
"live": "Live",
|
|
"paused": "Paused"
|
|
},
|
|
"elapsed": {
|
|
"seconds": "{{count}}s",
|
|
"minutesSeconds": "{{minutes}}m {{seconds}}s",
|
|
"label": "{{time}} elapsed",
|
|
"startingNow": "Starting now"
|
|
},
|
|
"stop": "Stop",
|
|
"controls": {
|
|
"stopGeneration": "Stop Generation",
|
|
"pressEscToStop": "Press Esc anytime to stop"
|
|
},
|
|
"providers": {
|
|
"assistant": "Assistant"
|
|
}
|
|
},
|
|
"projectSelection": {
|
|
"startChatWithProvider": "Select a project to start chatting with {{provider}}"
|
|
},
|
|
"tasks": {
|
|
"nextTaskPrompt": "Start the next task"
|
|
}
|
|
}
|