[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
- [PATCH 0/8] Hussain Jasim's pitch range feature addition., Luke Yelavich, 2014/10/24
- [PATCH 1/8] added pitch_range to SPDMsgSettings, Luke Yelavich, 2014/10/24
- [PATCH 2/8] added pitch_range support to the msg_settings system, and defined macros in msg.h, Luke Yelavich, 2014/10/24
- [PATCH 3/8] defined pitch_range functions for the language apis, and added support for setting its value during configuration, Luke Yelavich, 2014/10/24
- [PATCH 4/8] added pitch_range options to spd-say, Luke Yelavich, 2014/10/24
- [PATCH 5/8] implemented pitch_range support for the generic and Espeak modules, Luke Yelavich, 2014/10/24
- [PATCH 6/8] included pitch_range testing for most of the tests (excepting ssml),
Luke Yelavich <=
- [PATCH 7/8] updated the documentation to reference pitch_change additions, Luke Yelavich, 2014/10/24
- [PATCH 8/8] added support for configuring DefaultPitchRange, Luke Yelavich, 2014/10/24
- [PATCH 0/8] Hussain Jasim's pitch range feature addition., Trevor Saunders, 2014/10/25