speechd-discuss
[Top][All Lists]
Advanced

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

[PATCH 6/8] included pitch_range testing for most of the tests (exceptin


From: Luke Yelavich
Subject: [PATCH 6/8] included pitch_range testing for most of the tests (excepting ssml)
Date: Fri, 24 Oct 2014 14:44:43 -0400

From: Hussain Jasim <address@hidden>
To: address@hidden

---
 src/tests/basic.test |  8 ++++++++
 src/tests/clibrary.c | 29 +++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/src/tests/basic.test b/src/tests/basic.test
index e9f68a1..c615e5f 100644
--- a/src/tests/basic.test
+++ b/src/tests/basic.test
@@ -52,6 +52,14 @@ Do not believe in miracles -- rely on them.
 .
 $8
 
+@ We will keep the pitch at this level and try to increase the pitch range.
+$4
+!SET SELF PITCH_RANGE 75
+!SPEAK
+War has always been the grand sagacity of every spirit which has grown too 
inward and too profound; its curative power lies even in the wounds one 
receives.
+.
+$8
+
 @ This time, we will return to normal speed, but decrease the pitch.
 @ Some distortion is probably unavoidable.
 $4
diff --git a/src/tests/clibrary.c b/src/tests/clibrary.c
index eaefbc2..0609d06 100644
--- a/src/tests/clibrary.c
+++ b/src/tests/clibrary.c
@@ -81,6 +81,35 @@ int main()
 
        sleep(4);
 
+       printf("\n");
+       printf("Try to lower pitch and raise pitch range and rate...\n");
+       ret = spd_set_voice_pitch(conn, -20);
+       if (ret == -1) {
+               printf("spd_set_voice_pitch failed");
+               exit(1);
+       }
+
+       ret = spd_set_voice_pitch_range(conn, +20);
+       if (ret == -1) {
+               printf("spd_set_voice_pitch_range failed");
+               exit(1);
+       }
+
+       ret = spd_set_voice_rate(conn, +20);
+       if (ret == -1) {
+               printf("spd_set_voice_rate failed");
+               exit(1);
+       }
+
+       printf("...and say something\n");
+       ret = spd_say(conn, SPD_MESSAGE, "Do you like this voice more?");
+       if (ret == -1) {
+               printf("spd_say failed");
+               exit(1);
+       }
+
+       sleep(4);
+ 
        printf("Switch punctuation mode to `all'.");
        printf("\n");
 
-- 
2.1.0




reply via email to

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