Skip to content

Commit be91071

Browse files
committed
Improves About page documentation with support link and website.
1 parent c03952b commit be91071

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

gui.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ def get_app_version() -> str:
5757

5858

5959
class PodcastGeneratorApp:
60+
DEFAULT_APP_SETTINGS = {
61+
"tts_provider": "elevenlabs",
62+
"speaker_voices": {"John": "Schedar - Even", "Samantha": "Zephyr - Bright"},
63+
"speaker_voices_elevenlabs": {
64+
"John": {"id": "TX3LPaxmHKxFdv7VOQHJ", "display_name": "Liam - Male, Young, american"},
65+
"Samantha": {"id": "cgSgspJ2msm6clMCkdW9", "display_name": "Jessica - Female, Young, american"}
66+
},
67+
"elevenlabs_quota_cache": None
68+
}
6069

6170
def __init__(self, root: tk.Tk, generate_func, logger, api_key: str, default_script: str = ""):
6271
self.root = root
@@ -890,6 +899,20 @@ def _wait_for_cache():
890899
# If not using ElevenLabs or cache is ready, open immediately.
891900
self._show_settings_window()
892901

902+
def _show_settings_window(self):
903+
"""Creates and displays the actual settings window."""
904+
from settings_window import VoiceSettingsWindow
905+
VoiceSettingsWindow(
906+
self.root,
907+
current_settings=self.app_settings,
908+
save_callback=self.save_settings,
909+
close_callback=self.on_settings_window_close,
910+
default_settings=self.DEFAULT_APP_SETTINGS,
911+
preloaded_elevenlabs_voices=self.elevenlabs_voices_cache,
912+
play_gemini_sample_callback=self.play_gemini_voice_sample,
913+
play_elevenlabs_sample_callback=self.play_elevenlabs_voice_sample
914+
)
915+
893916
def show_about_window(self):
894917
"""Displays the 'About' window."""
895918
AboutWindow(self.root, version=get_app_version())

templates/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,8 @@ <h2>Generate HTML Demo</h2>
442442
<h2>About Podcast Generator</h2>
443443
<p>Version: <span id="app-version"></span></p>
444444
<p>This application is an open-source project designed to simplify the creation of audio podcasts from text scripts.</p>
445+
<p>If this application is useful to you, you can support its development:</p>
446+
<p><a href="https://buymeacoffee.com/laurentftech" target="_blank">❤️ Buy Me a Coffee</a></p>
445447
<hr>
446448
<h3>Core Technologies</h3>
447449
<ul style="text-align: left;">
@@ -455,7 +457,7 @@ <h3>Asset Credits</h3>
455457
<hr>
456458
<p>MIT License</p>
457459
<p>Copyright (c) 2025 Laurent FRANCOISE<br>
458-
Contact: <a href="mailto:[email protected]">[email protected]</a></p>
460+
Website: <a href="https://laurentftech.github.io" target="_blank">laurentftech.github.io</a></p>
459461
</div>
460462
</div>
461463

0 commit comments

Comments
 (0)