42 Commits

Author SHA1 Message Date
Andrew Chen
da9f65b6b3 fix(voice): speak \top and \intercal superscripts as transpose (#2828) 2026-12-01 14:08:38 +08:00
Mohammad Hijjawi
50976926cc fix(voice): decode Mistral TTS audio_data instead of returning the JSON body (#2793) 2026-11-30 15:48:30 +08:00
gezakepek-tech
adc80e5038 feat(i18n): add Hungarian as an interface and reply language
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>
2026-11-07 14:20:07 +01:00
Bingxi Zhao (Frank)
ca5acd0b86 Merge #2342 from rudycelekli 2026-11-06 01:56:24 +08:00
Rudy Celekli
604c835cc3 fix(voice): read an escaped percent in math as "percent"
_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>
2026-11-01 23:50:24 -05:00
Rudy Celekli
d4a051bded fix(voice): speak a \circ superscript as degrees
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>
2026-11-01 23:45:09 -05:00
Bingxi Zhao (Frank)
8a981afb0f Merge commit '1d21aebfbc47453592fa78fb3b787bc414ebb0b1' into codex/validate-reviewed-integration 2026-10-31 18:52:54 +08:00
Bingxi Zhao (Frank)
4d7090447e Integrate Turkish across complete locale chain, runtime messages and desktop shell 2026-10-31 18:14:34 +08:00
Bingxi Zhao (Frank)
1d21aebfbc Merge dev while preserving xAI video paths and polling deadlines 2026-10-31 17:28:44 +08:00
Bingxi Zhao (Frank)
7a79c79b66 fix(voice): transcribe Mistral recordings without persistent uploads 2026-10-31 16:53:54 +08:00
Bingxi Zhao
24d73e2061 Merge pull request #2226 from rudycelekli/fix/voice-tex-limit-order-20261030
fix(voice): preserve TeX limit meaning in either script order
2026-10-31 16:47:44 +08:00
Bingxi Zhao
ab6853b380 Merge pull request #2198 from rudycelekli/codex/fix-stt-finite-timestamps-20261030
fix(voice): reject non-finite transcription timestamps
2026-10-31 16:43:13 +08:00
Rudy Celekli
c0d7366aa6 fix(voice): decode Gemini WAV containers before PCM output
AI assistance: implemented and validated with OpenAI Codex; offline protocol fixtures, no live provider acceptance claimed.
2026-10-30 23:47:27 -04:00
Rudy Celekli
0a62b3b97c fix(voice): preserve TeX limit meaning in either script order
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.
2026-10-30 23:18:20 -04:00
Antonio-Faure
b4cb6615d0 feat(providers): add xAI model coverage and Mistral embeddings/voice
- register xAI as an OpenAI-compatible Grok provider (dynamic /v1/models)\n- add Mistral embeddings (mistral-embed / codestral-embed)\n- add xAI Grok Imagine image and video generation\n- add xAI Grok Voice and Mistral Voxtral TTS/STT adapters\n- expose provider/voice hints and add mocked contract tests
2026-10-30 14:57:35 +01:00
Rudy Celekli
0285134d11 fix(voice): reject non-finite provider cue timestamps 2026-10-30 07:52:13 -04:00
Erhan ÜRGÜN
ff15bf084d feat(i18n): carry Turkish into the CLI, quiz judge, books, partners and voice
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.
2026-10-29 01:05:43 +03:00
SeleiXi
6e047d9054 feat(voice): add Microsoft Edge read-aloud as a free TTS provider
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>
2026-10-21 21:00:39 +08:00
你的名字
1cf108e07b fix(voice): add native Gemini TTS adapter for generateContent speech
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.
2026-10-13 21:55:28 +08:00
Bingxi Zhao (Frank)
f8be756906 Integrate saved user workspace changes with reviewed dev updates 2026-10-07 20:37:55 +08:00
Bingxi Zhao (Frank)
f07029cfcf release: v1.6.13
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.
2026-10-04 21:35:00 +08:00
Bingxi Zhao (Frank)
a3c76c9d27 fix(voice): preserve math and isolate reply playback lifecycle 2026-10-04 15:13:14 +08:00
Bingxi Zhao (Frank)
b83592a107 Merge dev into PR #1557 and preserve integrated behavior 2026-10-04 15:09:24 +08:00
Bingxi Zhao (Frank)
a5ad88c95f Merge dev into PR #1679 and preserve integrated behavior 2026-10-04 15:08:13 +08:00
octo-patch
8ae821e41d feat: add native MiniMax speech synthesis 2026-10-01 17:51:29 +08:00
helloqhq
40182fcbab fix: support Xiaomi MiMo v2.5 preset speech 2026-09-30 22:53:31 +08:00
Bingxi Zhao (Frank)
2757302fee fix(voice): explain browser STT conversion failures (#1554) 2026-09-27 04:52:21 +08:00
Bingxi Zhao
06a5a8443b Merge pull request #1563 from wumajiehechuan-lab/fix/dashscope-stt-realtime-model
fix(voice): use realtime DashScope STT model ids
2026-09-27 03:22:03 +08:00
Bingxi Zhao (Frank)
7adef0b607 fix(voice): hide unsupported DashScope 8k STT option 2026-09-27 02:58:17 +08:00
wumajiehechuan-lab
cdc36c31d3 fix(voice): use realtime DashScope STT model ids
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.
2026-09-22 21:21:22 -07:00
Bingxi Zhao (Frank)
55e96e429e style: satisfy repository lint and format gates 2026-09-23 11:28:41 +08:00
Bingxi Zhao (Frank)
706699eca6 Format merged voice and settings modules 2026-09-23 11:01:26 +08:00
Anthony
52d050cdaa fix(voice): drop repeated quad key and sort a reading test import
Ruff F601 rejected the second quad entry in the TTS spacing map. Ruff I001 wanted the reading media-note imports in one block.
2026-09-22 19:41:38 -07:00
Bingxi Zhao (Frank)
46cd815392 Fix TTS math prose handling around Windows paths 2026-09-23 10:41:33 +08:00
Anthony
4b1bcba8a9 fix(voice): stop speaking asterisks and drop the play-aloud auto-play prompt
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.
2026-09-22 19:41:20 -07:00
Anthony
044c0e7598 feat(voice): verbalize LaTeX in TTS with a Math speak setting
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.
2026-09-20 11:57:05 -07:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
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.
2026-09-21 02:30:40 +08:00
Bingxi Zhao (Frank)
04040a2c06 release: v1.6.5
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
2026-09-06 13:46:29 +08:00
XZH
d9538192d2 feat(media): add DashScope providers (#1016) 2026-08-27 10:25:41 -07:00
ZQR1101
ac25a5c868 fix(voice): strip MediaRecorder codec params from STT uploads (#948)
* 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>
2026-08-24 16:51:49 +08:00
Bingxi Zhao (Frank)
1bf11d13e7 prepare 1.4.7 2026-06-18 00:22:48 +08:00
Bingxi Zhao (Frank)
c9d387e2b6 super super great great update 2026-06-17 00:56:27 +08:00