speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Increase the range of eSpeak's volume.


From: Christopher Brannon
Subject: [PATCH] Increase the range of eSpeak's volume.
Date: Tue, 10 Aug 2010 21:16:11 -0500

To my ears, the espeak module was too quiet, even at the maximum volume.
Formerly, espeak_set_volume set the synthesizer's volume to a value in
the range 0 to 100.  Now, it uses a range of 0 to 200.
These values are consistent with those given in the help message for
the espeak command-line program, even though they contradict the ones
given in the library's header file.
---
 src/modules/espeak.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/espeak.c b/src/modules/espeak.c
index e0ac988..d2c1ea5 100644
--- a/src/modules/espeak.c
+++ b/src/modules/espeak.c
@@ -632,7 +632,7 @@ espeak_set_volume(signed int volume)
 {
     assert(volume >= -100 && volume <= +100);
     int vol;
-       vol = (volume + 100) / 2;
+       vol = volume + 100;
     espeak_ERROR ret = espeak_SetParameter(espeakVOLUME, vol, 0);
     if (ret != EE_OK) {
                DBG("Espeak: Error setting volume %i.", vol);
-- 
1.7.2.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]