Skip to content

Rework TTS subsystem: sync UI template with Google Translate engine, fix audio, add live controls. - #1674

Open
MoncefDrew wants to merge 1 commit into
johnfactotum:gtk4from
MoncefDrew:gtk4
Open

Rework TTS subsystem: sync UI template with Google Translate engine, fix audio, add live controls.#1674
MoncefDrew wants to merge 1 commit into
johnfactotum:gtk4from
MoncefDrew:gtk4

Conversation

@MoncefDrew

@MoncefDrew MoncefDrew commented May 12, 2026

Copy link
Copy Markdown

Replaces the speech-dispatcher (SSIP) backend with Google Translate audio for text-to-speech. This removes the dependency on speech-dispatcher and works out of the box on any system with network access.

What changed:

  • speech.js — New GoogleTranslateTTS engine that fetches MP3 audio from Google Translate, with playback via mpv (recommended, with JSON IPC for word highlighting), ffplay, or GtkMediaFile as fallback.
  • tts-box.ui — Rebuilt the UI template with language/region dropdowns, speed (0.25×–3×), and volume controls.
  • tts.js — Updated to wire the new UI controls to the engine. Volume and speed adjust live via mpv IPC — no audio interruption.

Optional dependencies: mpv (best experience), curl, ffmpeg/ffprobe.

@MoncefDrew
MoncefDrew marked this pull request as draft May 12, 2026 21:50
@MoncefDrew MoncefDrew changed the title Fix TTS: Google Translate audio, live volume/speed controls Rework TTS subsystem: sync UI template with Google Translate engine, fix audio, add live controls. May 12, 2026
@MoncefDrew
MoncefDrew marked this pull request as ready for review May 12, 2026 22:01
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.

2 participants