Adds a complete Hungarian (hu) locale alongside the existing catalogs, wired
through every seam a language has to pass so none of them silently serves
English to a Hungarian reader.
Frontend: the hu catalog covers all 6,584 English keys with matching
interpolation placeholders, registered in the locale registry, the lazy bundle
loader, Intl date/number formatting (hu-HU) and the reply-language picker.
`language.hungarian` ("Magyar") is added to every existing catalog so the
endonym is shown whatever the current interface language is.
Backend: "hu" is accepted by the launch, interface and reply-language
normalizers and offered in both settings choice lists, named in the prompt
language labels, and carries the Hungarian copy of the CLI-app, MCP and
sandbox messages, the quiz-judge prompt, the book export labels, the book
overview front page and the voice language list.
Scope: the CLI installer banner (`deeptutor/runtime/banner.py`) keeps its
English text for hu and falls back through `_pick_language`; it is terminal
setup copy unused in server deployments and is left for a follow-up.
Evidence:
- `python -m pytest tests/i18n/test_hungarian_locale.py` — 33 passed
- `npm run test:node` — 1353 passed (adds hungarian-locale-quality.test.ts)
- `npm run typecheck` — clean
- `node scripts/i18n_parity.mjs` — OK
- `node scripts/i18n_audit.mjs` — hu: 4529/4529 used keys (100.0%), strict
- `node scripts/generate-contracts.mjs --check` — no drift
- `ruff format --check` / `ruff check` on the touched Python files — clean
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
_drop_unknown_commands discarded both characters of "\%" because no
branch matched "%", so "$10\%$" spoke as " 10 " and dropped the percent.
Since a bare % starts a TeX comment, \% is the normal spelling of a
percentage; read it as "percent" instead of dropping it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A \circ written as a superscript is the degree sign (90^\circ), but the
math verbalizer mapped \circ to "compose" before handling the ^ script,
so "$90^\circ$" spoke as " 90 to the c ompose " instead of "90 degrees".
Rewrite a superscript \circ to "degrees" before the operator pass; a
composition operand (f \circ g) still speaks as "compose".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Read lower and upper bounds independently of their TeX order and consume the optional limits placement command before verbalizing them.
AI-assisted: implementation and regression tests prepared and validated with OpenAI Codex. Maintainer review is pending.
Earlier locales stopped at the settings lists, so these surfaces kept answering in English for them: the init wizard labels, quiz feedback, explicit book-language requests, book overview and export scaffolding, the partner and book language pickers, and the voice language list.
Edge's online voices need no account or API key, so they give read-aloud a
working default before anyone sets up a paid speech provider. The adapter
streams mp3 through the edge-tts package (a new optional extra), maps the
speed setting onto Edge's rate, and voice discovery lists Edge's public voices.
It is not an official API and may be rate limited; the settings note says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gemini connections offered under Settings > Voice fell back to the
OpenAI-compatible 'custom' binding because TTS_PROVIDERS had no gemini
entry, so synthesis failed with 'No endpoint URL configured for TTS.'
and previews returned 502. Gemini TTS only speaks the native
generateContent API, so register a gemini provider spec plus a
GeminiTTSAdapter that posts responseModalities AUDIO with a prebuilt
voice, decodes each returned PCM16 24 kHz inlineData part, and wraps
the audio in WAV. Issue #1951.
Ship the reading, listening, question-bank, parsing, and provider updates
summarized in assets/releases/ver1-6-13.md.
Make speech timeouts configurable, report actionable synthesis failures,
and keep chat attachments discoverable in their selected workspace while
preserving earlier uploads and URLs. Keep reply playback cancellation and
single-audio ownership intact.
Sync README prose and all eleven translations, update the stable install
note, and archive release notes older than one week. Repair stale reading
test fixtures and spawned test imports, and clear the Partner type error.
Validation: 9252 Python tests and 8 subtests passed (28 skipped); 518 web
unit tests, 1253 Node tests, and 62 browser audits passed. Pre-commit, ruff,
typecheck, contracts, architecture, i18n, production build, route budgets,
and the docs build passed.
The native DashScope STT adapter talks to the Paraformer real-time WebSocket
endpoint (`/api-ws/v1/inference`, `task_group=audio`, `function=recognition`),
which only accepts `paraformer-realtime-*` model ids. `paraformer-v2` is a
batch-transcription id, so the pre-filled default made every DashScope STT test
fail the handshake:
[failed] DashScope STT failed to start: Model not found (paraformer-v2)!
Point the provider default and the curated voice options at
`paraformer-realtime-v2` (and offer the 8 kHz variant), and update the tests
that pinned the old id.
Verified against the live endpoint with the real adapter: `paraformer-v2`
answers `task-failed/ModelNotFound`, `paraformer-realtime-v2` answers
`task-started` and returns a transcript.
Unwrap bold, italic, and strike before TTS so leftover asterisks are not spoken. Play aloud only plays that reply; auto-play stays a Settings preference. Failed synthesis shows an error toast, and stop cancels an in-flight request.
Always strip dollar-sign math delimiters so the voice model never says dollar. When Math speak is on (default), also convert fractions, powers, Greek, and common operators into spoken words. Settings > Voice exposes the toggle; the server applies it on every /tts call.
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.
Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.
Release notes: assets/releases/ver1-6-5.md
* fix(voice): strip MediaRecorder codec params from STT uploads
Chrome sends audio/webm;codecs=opus; OpenAI-compatible transcription APIs reject that as an unknown format.
Fixes#945
* refactor(voice): normalize the STT MIME once, at the wire boundary
The codec-parameter strip was applied at four layers: the recorder hook, the
route, the `transcribe_audio` facade, and `_post_multipart`. Only the last of
those decides what actually goes on the wire, and `openai_compat` is the sole
registered STT adapter, so the two middle copies were pure duplication —
and they made the route's contract ambiguous about who owns the value.
Keep the client-side strip (it sets the Blob type, which is what the browser
puts in the multipart part) and the adapter strip; drop the route and facade
copies along with the now-unused facade re-export. The adapter-level test
already pins the wire contract; the route test now asserts what the route
actually promises — verbatim forwarding.
---------
Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
Co-authored-by: Frank <bingxizhao@novix.science>