From 23c612505648cf4a0e580fbc844cadfd499822b8 Mon Sep 17 00:00:00 2001 From: raster Date: Tue, 23 Aug 2011 09:11:33 +0000 Subject: [PATCH] 1. adjust voice to be slower and more clear 2. show how to set custom access text on a widget. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62716 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/test_button.c | 1 + src/modules/access_output/mod.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/test_button.c b/src/bin/test_button.c index 42ee646..b8bebe1 100644 --- a/src/bin/test_button.c +++ b/src/bin/test_button.c @@ -160,6 +160,7 @@ test_button(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info elm_icon_file_set(ic, buf, NULL); evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); bt = elm_button_add(win); + elm_widget_access_info_set(bt, "This is some custom text describing this widget"); elm_object_style_set(bt, "anchor"); elm_button_icon_set(bt, ic); elm_object_disabled_set(bt, 1); diff --git a/src/modules/access_output/mod.c b/src/modules/access_output/mod.c index 024cce9..084bbc8 100644 --- a/src/modules/access_output/mod.c +++ b/src/modules/access_output/mod.c @@ -84,8 +84,10 @@ out_read_done(void) } if (tmpf) { + // FIXME: espeak supporets -v XX for voice locale. should provide this + // based on actual lang/locale close(tmpfd); - snprintf(buf, sizeof(buf), "espeak -m -a 20 -f %s", tmpf); + snprintf(buf, sizeof(buf), "espeak -p 2 -s 120 -k 10 -m -f %s", tmpf); espeak = ecore_exe_pipe_run(buf, ECORE_EXE_NOT_LEADER, NULL); -- 2.7.4