mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
886ba135b5
commit
877a43d85e
@ -18,7 +18,10 @@ class VoicesModel(QAbstractTableModel):
|
|||||||
def __init__(self, voice_data, default_output_module, parent=None):
|
def __init__(self, voice_data, default_output_module, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.voice_data = voice_data
|
self.voice_data = voice_data
|
||||||
|
try:
|
||||||
self.current_voices = voice_data[default_output_module]
|
self.current_voices = voice_data[default_output_module]
|
||||||
|
except KeyError as e:
|
||||||
|
raise ValueError(_('Speech dispatcher on this system is not configured with any available voices. Install some voices first.')) from e
|
||||||
self.column_headers = (_('Name'), _('Language'), _('Variant'))
|
self.column_headers = (_('Name'), _('Language'), _('Variant'))
|
||||||
|
|
||||||
def rowCount(self, parent=None):
|
def rowCount(self, parent=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user