Skip to content

Commit f9dcfb9

Browse files
committed
- updating docs
1 parent 76c518b commit f9dcfb9

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

Changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-11-06 s-n-g
2+
* version 0.9.3.11.21 - 0.9.3.12-beta21
3+
* fixing #312 - VLC crashes PyRadio after the radio station starts playing
4+
* fixing several minor bugs
5+
* adding basic TTS support (enabled from config or the toggle option \T)
6+
17
2025-10-23 s-n-g
28
* version 0.9.3.11.20 - 0.9.3.12-beta20
39
* adding error messages for charset-normalizer module not found (#305)

docs/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
197197
<h2 id="changelog">Changelog <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
198198
<pre style="height: 200px;">
199199

200+
2025-11-06 s-n-g
201+
* version 0.9.3.11.21 - 0.9.3.12-beta21
202+
* fixing #312 - VLC crashes PyRadio after the radio station starts playing
203+
* fixing several minor bugs
204+
* adding basic TTS support (enabled from config or the toggle option \T)
205+
200206
2025-10-23 s-n-g
201207
* version 0.9.3.11.20 - 0.9.3.12-beta20
202208
* adding error messages for charset-normalizer module not found (#305)

docs/tts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h3 id="temporary-activation">Temporary Activation</h3>
9191
<p>Toggle TTS during runtime by pressing <strong>\T</strong> (backslash + T). This setting is session-only and resets when restarting PyRadio.</p>
9292
<h2 id="platform-implementation">Platform Implementation <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
9393
<h3 id="linux">Linux</h3>
94-
<p>Utilizes <strong>speech-dispatcher</strong> configured for English language by default. Provides robust, interruptible speech synthesis with priority-based queue management.</p>
94+
<p>Utilizes <a target="_blank" href="https://freebsoft.org/speechd">speech-dispatcher</a> configured for English language by default. Provides robust, interruptible speech synthesis with priority-based queue management.</p>
9595
<h3 id="windows">Windows</h3>
9696
<p>Leverages <strong>Windows SAPI (Speech API)</strong> with automatic selection of English voices when available. Features immediate speech interruption and consistent volume control.</p>
9797
<h3 id="macos">macOS</h3>

docs/tts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Toggle TTS during runtime by pressing **\\T** (backslash + T). This setting is s
5454
## Platform Implementation
5555

5656
### Linux
57-
Utilizes **speech-dispatcher** configured for English language by default. Provides robust, interruptible speech synthesis with priority-based queue management.
57+
Utilizes [speech-dispatcher](https://freebsoft.org/speechd) configured for English language by default. Provides robust, interruptible speech synthesis with priority-based queue management.
5858

5959
### Windows
6060
Leverages **Windows SAPI (Speech API)** with automatic selection of English voices when available. Features immediate speech interruption and consistent volume control.

pyradio/radio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ def __init__(self, pyradio_config,
512512
in log.write, if _current_player_id != _active_player_id
513513
do not display any message
514514
'''
515+
515516
self._enable_tts = pyradio_config.enable_tts
516517
self.ws = Window_Stack(self._speak_selection)
517518
self.player = None
@@ -6767,9 +6768,8 @@ def _speak_normal(self, msg):
67676768
self.tts.queue_speech(msg, Priority.NORMAL)
67686769

67696770
def _speak_selection(self):
6770-
if self.ws.operation_mode == self.ws.NORMAL_MODE:
6771-
self.tts.queue_speech(f'{self.selection+1}, {self.stations[self.selection][0]}', Priority.NORMAL)
6772-
elif self.ws.operation_mode == self.ws.PLAYLIST_MODE:
6771+
if self._enable_tts and \
6772+
self.ws.operation_mode in (self.ws.NORMAL_MODE, self.ws.PLAYLIST_MODE):
67736773
self.tts.queue_speech(f'{self.selection+1}, {self.stations[self.selection][0]}', Priority.NORMAL)
67746774

67756775
def keypress(self, char):

0 commit comments

Comments
 (0)