mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Read aloud: Fix read aloud not working when using legacy engines and changing the audio output device
This commit is contained in:
parent
3c28eca641
commit
5963a2f6b9
@ -58,7 +58,7 @@ class QtTTSBackend(TTSBackend):
|
|||||||
settings = EngineSpecificSettings.create_from_config(engine_name)
|
settings = EngineSpecificSettings.create_from_config(engine_name)
|
||||||
if settings.audio_device_id:
|
if settings.audio_device_id:
|
||||||
for x in QMediaDevices.audioOutputs():
|
for x in QMediaDevices.audioOutputs():
|
||||||
if bytes(x.id) == settings.audio_device_id.id:
|
if bytes(x.id()) == settings.audio_device_id.id:
|
||||||
s['audioDevice'] = x
|
s['audioDevice'] = x
|
||||||
break
|
break
|
||||||
if new_backend:
|
if new_backend:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user