mirror of
https://github.com/readest/readest.git
synced 2026-11-29 19:02:28 +00:00
|
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
Build with Nix / tests (push) Waiting to run
PR checks / koplugin_rust_lint (push) Waiting to run
PR checks / nix_flake_check (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_web_browser (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* feat(tts): preview voices and pick a default voice per language Settings > TTS gets a Voice Library page, and the player's voice list is rebuilt on the same component (VoiceList). Each row shows the voice's gender, its language and region, and a play button. - Opened from the library, the page lists every language that has voices, with a gender filter. Previews read a sample sentence in the voice's language (75 languages, gender-neutral wording). - With a book open, only the book language's voices are listed, and previews read whole sentences from the start of the current page: at least 5 s of estimated speech, at most 400 characters. - Choosing a voice in Settings makes it the default for that language only. Picking one in the player sets that language's default too, and TTSController switches to a language's engine when the reading language changes. - In the player, a preview pauses reading. Picking the voice just heard resumes reading with it; leaving the list keeps it paused. - Readest Voice previews need a signed-in reader; the other engines don't. /api/tts/readest/stream takes a `preview` lane: any signed-in plan, any offered voice, one segment of at most 400 characters, and a 6,000-character daily floor for plans without Readest Voice. The voice service sees an ordinary listening window under its own client id, so its contract is unchanged. - Gender comes from a generated map for Edge, from the voice id for Kokoro voices (Readest Voice and custom services), and from AVSpeechSynthesisVoice on iOS. Android and Web Speech report none, so those rows have no badge. - The Voice Library lists Linux Speech Dispatcher voices (#7314) as it does Android and iOS system voices. Tests that fail without the change (old file put back, new test run): - tts-readest-stream-route.test.ts: 6 preview tests, e.g. "expected 403 to be 200" and "expected { error: 'PLAN_REQUIRED' } to deeply equal { error: 'VOICE_TIER_REQUIRED' }". - tts-controller-readest.test.ts: 4 tests on the per-language engine, e.g. "expected Mock{ name: 'edge-tts', ... } to be Mock{ name: 'readest-tts', ... }". - edgeTTS.test.ts: "expected undefined to be 'female'"; readest-voice-catalog.test.ts: 2 gender tests. - useTTSControl.test.tsx: "reads on with the new voice when asked to, though reading is stopped" fails with "expected vi.fn() to be called at least once". - tts-voice-library.test.ts, Linux: "expected [] to deeply equal [ 'de' ]". Checks on this tree, rebased on origin/main |
||
|---|---|---|
| .. | ||
| tauri-plugin-native-bridge | ||
| tauri-plugin-native-tts | ||
| tauri-plugin-turso@3c4be4fd92 | ||
| tauri-plugin-webview-upgrade@c861233a93 | ||