Skip to content

Commit 2c72c30

Browse files
authored
feat(tts): finish audio export with atomic temp-file pipeline (#18)
* feat(tts): finish audio export with atomic temp-file pipeline * fix(tts): address audio export review findings
1 parent d2618c5 commit 2c72c30

4 files changed

Lines changed: 756 additions & 15 deletions

File tree

app/i18n.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@
9494
"tts.button.pause": "Pause",
9595
"tts.button.resume": "Fortsetzen",
9696
"tts.button.speak": "Vorlesen",
97+
"tts.button.export": "Exportieren",
9798
"tts.button.stop": "Stopp",
99+
"tts.export.dialog_title": "Audiodatei exportieren",
100+
"tts.export.default_filename_prefix": "Blitztext-Audio_",
98101
"tts.error.piper_not_found": "Piper nicht gefunden. Installieren: pip install piper-tts und Stimmen nach ~/.local/share/piper-voices legen.",
99102
"tts.error.openai_not_available": "OpenAI Cloud-TTS ist nicht verfuegbar. Bitte OPENAI_API_KEY in ~/.config/blitztext-linux/secrets.env setzen.",
100103
"tts.consent.title": "OpenAI Cloud-TTS aktivieren?",
@@ -108,6 +111,11 @@
108111
"tts.status.synthesis": "Synthese…",
109112
"tts.status.openai_not_confirmed": "OpenAI Cloud-TTS wurde nicht bestaetigt.",
110113
"tts.status.cloud_synthesis": "Cloud-Synthese…",
114+
"tts.status.exporting": "Exportiere Audiodatei…",
115+
"tts.status.export_done": "Audiodatei exportiert.",
116+
"tts.status.export_ffmpeg_missing": "ffmpeg nicht gefunden. Audio-Export ist nicht verfuegbar.",
117+
"tts.status.export_format_unsupported": "Exportformat nicht unterstuetzt.",
118+
"tts.status.missing_wav_output": "WAV-Ausgabe fehlt.",
111119
"tts.status.cancelled": "Abgebrochen.",
112120
"tts.status.error": "Fehler: {message}",
113121
"tts.status.done": "Fertig.",
@@ -245,7 +253,10 @@
245253
"tts.button.pause": "Pause",
246254
"tts.button.resume": "Resume",
247255
"tts.button.speak": "Read Aloud",
256+
"tts.button.export": "Export",
248257
"tts.button.stop": "Stop",
258+
"tts.export.dialog_title": "Export audio file",
259+
"tts.export.default_filename_prefix": "blitztext-audio_",
249260
"tts.error.piper_not_found": "Piper not found. Install with: pip install piper-tts and place voices in ~/.local/share/piper-voices.",
250261
"tts.error.openai_not_available": "OpenAI Cloud-TTS is not available. Please set OPENAI_API_KEY in ~/.config/blitztext-linux/secrets.env.",
251262
"tts.consent.title": "Enable OpenAI Cloud-TTS?",
@@ -259,6 +270,11 @@
259270
"tts.status.synthesis": "Synthesizing…",
260271
"tts.status.openai_not_confirmed": "OpenAI Cloud-TTS was not confirmed.",
261272
"tts.status.cloud_synthesis": "Cloud synthesis…",
273+
"tts.status.exporting": "Exporting audio file…",
274+
"tts.status.export_done": "Audio file exported.",
275+
"tts.status.export_ffmpeg_missing": "ffmpeg not found. Audio export is not available.",
276+
"tts.status.export_format_unsupported": "Export format is not supported.",
277+
"tts.status.missing_wav_output": "WAV output is missing.",
262278
"tts.status.cancelled": "Cancelled.",
263279
"tts.status.error": "Error: {message}",
264280
"tts.status.done": "Done.",

0 commit comments

Comments
 (0)