[PATCH 1/2] fix API usage for the data mode in say.c

Andrei Kholodnyi andrei.kholodnyi at gmail.com
Wed Nov 10 20:37:09 CET 2010


use proper API call (spd_set_data_mode) in say.c
---
 src/clients/say/say.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/clients/say/say.c b/src/clients/say/say.c
index f199c78..188981b 100644
--- a/src/clients/say/say.c
+++ b/src/clients/say/say.c
@@ -192,7 +192,7 @@ int main(int argc, char **argv) {
             printf("Failed to set synthesis voice!\n");
 
     if (ssml_mode == SPD_DATA_SSML)
-        if(spd_execute_command(conn, "SET SELF SSML_MODE ON"))
+        if (spd_set_data_mode(conn, ssml_mode))
             printf("Failed to set SSML mode.\n");
 
     if (rate != -101)
-- 
1.6.0.4




More information about the Speechd mailing list