Author: randy
Date: 2005-10-18 12:41:54 -0600 (Tue, 18 Oct 2005)
New Revision: 5222

Added:
   trunk/patches/gnome-speech-0.3.8-freetts_fix-1.patch
Modified:
   trunk/BOOK/gnome/add/gnome-speech.xml
   trunk/BOOK/introduction/welcome/changelog.xml
Log:
Added a patch and an additional command to enable the streaming audio method in 
the GNOME Speech instructions

Modified: trunk/BOOK/gnome/add/gnome-speech.xml
===================================================================
--- trunk/BOOK/gnome/add/gnome-speech.xml       2005-10-18 04:55:40 UTC (rev 
5221)
+++ trunk/BOOK/gnome/add/gnome-speech.xml       2005-10-18 18:41:54 UTC (rev 
5222)
@@ -58,6 +58,14 @@
       </listitem>
     </itemizedlist>
 
+    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>Required patch: <ulink
+        
url="&patch-root;/gnome-speech-&gnome-speech-version;-freetts_fix-1.patch"/></para>
+      </listitem>
+    </itemizedlist>
+
     <bridgehead renderas="sect3">GNOME Speech Dependencies</bridgehead>
 
     <bridgehead renderas="sect4">Required</bridgehead>
@@ -88,7 +96,8 @@
     <para>Install <application>GNOME Speech</application> by
     running the following commands:</para>
 
-<screen><userinput>./configure --prefix=`pkg-config --variable=prefix 
ORBit-2.0` &amp;&amp;
+<screen><userinput>patch -Np1 -i 
../gnome-speech-&gnome-speech-version;-freetts_fix-1.patch &amp;&amp;
+./configure --prefix=`pkg-config --variable=prefix ORBit-2.0` &amp;&amp;
 make</userinput></screen>
 
     <para>This package does not come with a test suite.</para>
@@ -127,6 +136,14 @@
     a backend driver and the desired voice, then prompts you (with on-screen 
     prompts and text-to-speech audio) for additional information.</para>
 
+    <para>If you are using the <application>FreeTTS</application> backend and
+    you do not hear any audio, you may need to use the streaming audio method
+    instead of the clip audio method. As the
+    <systemitem class="username">root</systemitem> user, modify the
+    <command>freetts-synthesis-driver</command> script:</para>
+
+<screen role='root'><userinput>sed -i "s/clip/streaming/" 
$GNOME_PREFIX/bin/freetts-synthesis-driver</userinput></screen>
+
   </sect2>
 
   <sect2 role="content">

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       2005-10-18 04:55:40 UTC 
(rev 5221)
+++ trunk/BOOK/introduction/welcome/changelog.xml       2005-10-18 18:41:54 UTC 
(rev 5222)
@@ -45,6 +45,10 @@
       <para>October 18th, 2005</para>
       <itemizedlist>
         <listitem>
+          <para>[randy] - Added a patch and an additional command to enable the
+          streaming audio method in the GNOME Speech instructions.</para>
+        </listitem>
+        <listitem>
           <para>[randy] - Updated to GDM-2.8.0.5.</para>
         </listitem>
       </itemizedlist>

Added: trunk/patches/gnome-speech-0.3.8-freetts_fix-1.patch
===================================================================
--- trunk/patches/gnome-speech-0.3.8-freetts_fix-1.patch        2005-10-18 
04:55:40 UTC (rev 5221)
+++ trunk/patches/gnome-speech-0.3.8-freetts_fix-1.patch        2005-10-18 
18:41:54 UTC (rev 5222)
@@ -0,0 +1,35 @@
+Submitted By:            Randy McMurchy <randy_at_linuxfromscratch_dot_org>
+Date:                    2005-10-18
+Initial Package Version: 0.3.8
+Upstream Status:         Committed to GNOME CVS
+Origin:                  Will Walker
+                         
(http://bugzilla.gnome.org/attachment.cgi?id=53616&action=view)
+Description:             Fixes http://bugzilla.gnome.org/show_bug.cgi?id=319168
+                         Allows GNOME Speech to use the streaming audio method 
in
+                         the FreeTTS driver
+
+$LastChangedBy$
+$Date$
+
+
+diff -Naur 
gnome-speech-0.3.8-orig/drivers/freetts/java/org/GNOME/Speech/FreeTTSSynthesisDriver.java
 
gnome-speech-0.3.8/drivers/freetts/java/org/GNOME/Speech/FreeTTSSynthesisDriver.java
+--- 
gnome-speech-0.3.8-orig/drivers/freetts/java/org/GNOME/Speech/FreeTTSSynthesisDriver.java
  2005-09-29 14:40:31.000000000 +0000
++++ 
gnome-speech-0.3.8/drivers/freetts/java/org/GNOME/Speech/FreeTTSSynthesisDriver.java
       2005-10-18 16:07:16.000000000 +0000
+@@ -200,7 +200,7 @@
+               num_voices = voices.length;
+               for (i = 0; i < num_voices; i++)
+               {
+-                      if (voices[i].getDomain () != "general")
++                      if (!(voices[i].getDomain ()).equals("general"))
+                               continue;
+                       vi = getVoiceInfo (voices[i]);
+                       if (voice_spec.name.length () != 0 && 
!voice_spec.name.equals(vi.name))
+@@ -210,7 +210,7 @@
+                       
+                       if (!voices[i].isLoaded ())
+                       {
+-                              if (System.getProperty("ft_audio_player") == 
"streaming")
++                              if 
(System.getProperty("ft_audio_player").equals("streaming"))
+                                       voices[i].setAudioPlayer (new 
JavaStreamingAudioPlayer());
+                               else
+                                       voices[i].setAudioPlayer (new 
JavaClipAudioPlayer());


Property changes on: trunk/patches/gnome-speech-0.3.8-freetts_fix-1.patch
___________________________________________________________________
Name: svn:keywords
   + LastChangedBy Date

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to