Files
DeepTutor/deeptutor
Amar Tinawi 32372c7916 feat(video_lesson): narrate with the Settings TTS provider
Video Lesson narration only ever used edge-tts, whatever TTS provider the
user configured. When the Settings provider is not Edge, speak each
sentence through synthesize_speech (so every catalog provider works:
OpenAI, a local OpenAI-compatible Kokoro/Piper server, MiniMax, ...),
decode it to PCM with ffmpeg for exact per-sentence caption offsets, join
the sentences with a short pause and encode the mp3 the player expects.
Any failure falls back to Edge for that line, then to silent captions.
Needs ffmpeg on PATH; without it the Settings path is skipped.
2026-10-30 15:29:17 +04:00
..
2026-10-28 22:12:36 +08:00