TTS encoders: allow volume range between 0.0 and 2.0.

SAPI only allowed values from 1.0 to 10.0, making it impossible to turn down
the volume of the voice. Increasing the volume by a factor of 10.0 is nothing
that is likely to be useful, so change the upper limit to 2.0 and decrease the
lower limit to 0.0.

Lame allowed values from 0.0 to 1.0, making it impossible to increase the
volume of the voice. Change the upper limit to 2.0 as well.

Change-Id: I8add103f6e4b3c8f1b11ee2c0ea478727bdc99c1
This commit is contained in:
Dominik Riebeling 2013-03-07 20:38:31 +01:00
parent dfd54d5295
commit 6aeecf5e2c
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ void EncoderLame::generateSettings()
insertSetting(VOLUME, new EncTtsSetting(this, EncTtsSetting::eDOUBLE,
tr("Volume"),
RbSettings::subValue("lame", RbSettings::EncoderVolume).toDouble(),
0.0, 1.0));
0.0, 2.0));
insertSetting(QUALITY, new EncTtsSetting(this, EncTtsSetting::eDOUBLE,
tr("Quality"), quality, 0.0, 1.0));
}

View file

@ -30,7 +30,7 @@ void EncoderRbSpeex::generateSettings()
{
loadSettings();
insertSetting(eVOLUME, new EncTtsSetting(this, EncTtsSetting::eDOUBLE,
tr("Volume:"), volume, 1.0, 10.0));
tr("Volume:"), volume, 0.0, 2.0));
insertSetting(eQUALITY, new EncTtsSetting(this, EncTtsSetting::eDOUBLE,
tr("Quality:"), quality, 0, 10.0));
insertSetting(eCOMPLEXITY, new EncTtsSetting(this, EncTtsSetting::eINT,