Text to speech settings

This commit is contained in:
Jakub Melka
2020-02-13 18:31:00 +01:00
parent d10f988019
commit 7df807470b
8 changed files with 429 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
<item>
<widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex">
<number>7</number>
<number>8</number>
</property>
<widget class="QWidget" name="enginePage">
<layout class="QVBoxLayout" name="enginePageLayout">
@@ -887,6 +887,136 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="speechPage">
<layout class="QVBoxLayout" name="speechPageLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="speechGroupBox">
<property name="title">
<string>Speech Settings</string>
</property>
<layout class="QVBoxLayout" name="speechGroupBoxLayout">
<item>
<layout class="QGridLayout" name="speechWidgetsLayout">
<item row="2" column="0">
<widget class="QLabel" name="speechVoiceLabel">
<property name="text">
<string>Voice</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="speechPitchLabel">
<property name="text">
<string>Pitch</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="speechVolumeLabe">
<property name="text">
<string>Volume</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="speechRateLabel">
<property name="text">
<string>Rate</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="speechSynthethiserLabel">
<property name="text">
<string>Voice synthetiser</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="speechLocaleLabel">
<property name="text">
<string>Locale</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="speechEnginesComboBox"/>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="speechLocaleComboBox"/>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="speechVoiceComboBox"/>
</item>
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="speechRateEdit">
<property name="minimum">
<double>-1.000000000000000</double>
</property>
<property name="maximum">
<double>1.000000000000000</double>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QDoubleSpinBox" name="speechVolumeEdit">
<property name="maximum">
<double>1.000000000000000</double>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="speechPitchEdit">
<property name="minimum">
<double>-1.000000000000000</double>
</property>
<property name="maximum">
<double>1.000000000000000</double>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="speechInfoLabel">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Set speech settings to enable document reading. These settings are default settings for text to speech functionality, but some can be changed later. Pitch can have values from -1.0 to 1.0 and 0.0 is default. Rate can also have values ranging from -1.0 to 1.0, while 0.0 is normal speech flow. Volume can have values from 0.0 to 1.0.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>288</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>