Re: [g-a-devel]GNOME Speech



Hi Marc,

	Again - compiling with warnings enabled CFLAGS=-Wall before configure,
is quite useful - viavoice_set_pitch doesn't return a value, neither
does viavoice_stop. [ also, quite why you want a value here I don't know
- if there is an exceptional condition you want to flag; it's often good
to use the 'exception' environment - the user has to check it anyway.

	Also - it seems that you've not namespaced the .server files correctly;
these are all installed into the same directory namespace - so it's
important to namespace them; the names should all be prefixed by
GNOME_Speech_ eg.

	GNOME_Speech_Driver_viavoice.server

	see /usr/lib/bonobo/servers to see who else is offending and complying
here :-) [ grief, mostly me it seems, in b-a ;-].

	And worse: it works for me: :-)

Name gotten is baseline pitch value is 0x80561e9.
parameter 1: baseline pitch.
   minimum value: 0.00.

	So ... quite what's going on for you is rather a mystery to me; can you
send a trace of the ORBIT2_DEBUG for me to see ? are you sure that you
didn't change the structure and fail to re-build / install some part of
the equation ? if both ends disagree about the structure layout there
can be acute problems :-)

	Here's a patch to cleanup the test a little;

	HTH,

		Michael.

diff -u -p -u -r1.2.2.2 test-speech.c
--- test-speech.c       11 Sep 2002 21:08:29 -0000      1.2.2.2
+++ test-speech.c       12 Sep 2002 09:44:40 -0000
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <glib/gmain.h>
 #include <libbonobo.h>
 #include <gnome-speech/gnome-speech.h>
@@ -162,7 +163,7 @@ do_test (GNOME_Speech_SynthesisDriver dr
   synth_name = GNOME_Speech_SynthesisDriver__get_synthesizerName
(driver, &ev);
   if (synth_name)
     {
-      printf ("Synthesizer naem: %s\n", synth_name);
+      printf ("Synthesizer name: %s\n", synth_name);
       CORBA_free (synth_name);
     }
   synth_version = GNOME_Speech_SynthesisDriver__get_synthesizerVersion
(driver, &ev);
@@ -174,7 +175,7 @@ do_test (GNOME_Speech_SynthesisDriver dr
 
   printf ("\nPlease select a test.\n\n");
   GNOME_Speech_SynthesisDriver_say (driver, "Please select a test.",
&ev);
-  printf ("2: Parameter test.\n");
+  printf ("1: Parameter test.\n");
   GNOME_Speech_SynthesisDriver_say (driver, "1. Parameter test.", &ev);
   printf ("0: Exit\n");
   GNOME_Speech_SynthesisDriver_say (driver, "0. exit.", &ev);
@@ -223,12 +224,14 @@ main (int argc, char **argv)
     {
       CORBA_free (o);
       printf ("Couldn't initialize synthesizer, exitting.\n");
-      exit (0);
     }
-  while (!done)
+  else
     {
-      if (do_test ((GNOME_Speech_SynthesisDriver)o))
-       done = 1;
+      while (!done)
+        {
+          if (do_test ((GNOME_Speech_SynthesisDriver)o))
+           done = 1;
+        }
     }
   CORBA_Object_release (o, &ev);
   return 0;


-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




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