Skip to content

feat: Voice Suite — TTS v1, Assistant mode, Language Tutor#19

Merged
master5d merged 6 commits into
mainfrom
feat/voice-suite
Jun 15, 2026
Merged

feat: Voice Suite — TTS v1, Assistant mode, Language Tutor#19
master5d merged 6 commits into
mainfrom
feat/voice-suite

Conversation

@master5d

Copy link
Copy Markdown
Owner

Summary

One stack delivering three voice/AI features toward "Echo > Wispr Flow" — a speech engine, a personal assistant, and a language tutor.

  • TTS v1 (feat/tts-v1): Echo speaks. WinRT SpeakingRate (clamped 0.5–6.0), language-aware voice auto-selection (Cyrillic ≥30% → ru voice, else en), settings (tts_enabled / tts_voice_id / tts_rate), a Voice settings card (toggle · voice picker · rate slider · test button). The Agent Bridge sink now respects these settings.
  • Assistant mode (feat/assistant-mode): a personal assistant that round-trips through the already-configured post-processing OpenAI-compatible provider (llm_client::send_chat_completion_with_schema) with an Echo voice-assistant system prompt. assistant_ask command, settings (assistant_enabled / assistant_system_prompt), and an Assistant card (toggle · system-prompt editor · try-it box · speak-reply via TTS).
  • Language Tutor (feat/tutor): text-level pronunciation/fluency scoring. Word-level alignment with Levenshtein tolerance + Cyrillic-aware normalization → ScoreReport (overall %, per-word matched/unmatched, feedback note). tutor_score command, tutor_enabled setting, and a Tutor practice card.

All three add en + ru i18n and Sidebar entries.

Test Plan

  • cargo test --lib164 passed, 0 failed (incl. tts::voice_pick_tests ×3, assistant::tests, tutor::tests ×5)
  • npx tsc --noEmit — clean
  • npm run lint (eslint + i18n) — clean
  • npm run format (prettier + cargo fmt) — clean
  • Live smoke on Windows: install build, toggle each card, hear TTS, ask the assistant, score a phrase

🤖 Generated with Claude Code

master5d and others added 6 commits June 15, 2026 06:56
Word-level alignment with Levenshtein tolerance + Cyrillic-aware
normalization. Recovered from a Serena-MCP cross-write during a parallel
Gemini delegation run; 5/5 unit tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- speak/synthesize gain a `rate` param (WinRT SpeakingRate, clamped 0.5–6.0)
- pick_voice_for_text: Cyrillic≥30% → ru voice, else en (auto when no
  explicit voice); 3 unit tests
- AppSettings: tts_enabled / tts_voice_id / tts_rate; agent-bridge sink now
  respects them (only speaks when enabled, uses chosen voice + rate)
- new Voice settings card (toggle, voice picker, rate slider, test button),
  Sidebar entry, en/ru i18n
- tts_speak command + bindings gain optional rate

Verified: cargo check + cargo test --lib tts (3/3 voice tests) + tsc + eslint, all green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…provider

Reuses the configured post-processing OpenAI-compatible provider/model/key
(llm_client::send_chat_completion_with_schema) with an Echo voice-assistant
system prompt. New assistant module + assistant_ask command, settings
(assistant_enabled / assistant_system_prompt), and an Assistant settings card
(toggle, system-prompt editor, try-it box with speak-reply via TTS). en/ru i18n.

Stacked on feat/tts-v1. Verified: cargo check + cargo test --lib assistant + tsc + eslint green.
Built by Gemini CLI (Serena disabled) + integration fixes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…g UI

Tutor settings card (enable toggle, reference + spoken inputs, Score button)
rendering the ScoreReport: overall %, note, and per-word matched/unmatched
chips. Wires the tutor_score command + ScoreReport/WordScore types into
bindings; Sidebar entry + en/ru i18n. Completes feat/tutor (backend was e46b661).

Built by Gemini CLI (Serena disabled) + integration fixes (Result-shape, types).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	src-tauri/src/lib.rs
#	src-tauri/src/settings.rs
#	src/bindings.ts
#	src/components/Sidebar.tsx
#	src/i18n/locales/en/translation.json
#	src/i18n/locales/ru/translation.json
check:translations (CI code-quality) requires all 19 languages to carry every
en key. TTS/Assistant/Tutor added 28 new keys (en+ru localized); the other 17
locales now carry English fallback values (i18next falls back to en at runtime
anyway). Includes the one-shot fill script used to generate them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@master5d master5d merged commit ba02d80 into main Jun 15, 2026
4 checks passed
@master5d master5d deleted the feat/voice-suite branch June 15, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant