<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments for Fishtrap</title> <atom:link href="http://fishtrap.co.uk/comments/feed/" rel="self" type="application/rss+xml" /><link>http://fishtrap.co.uk</link> <description>php and other stuff I know</description> <lastBuildDate>Mon, 30 Jan 2012 21:09:23 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Comment on Compiling PHP to use mysqlnd on ubuntu by nat</title><link>http://fishtrap.co.uk/blog/2011/06/16/compiling-php-to-use-mysqlnd-on-ubuntu/comment-page-1/#comment-206</link> <dc:creator>nat</dc:creator> <pubDate>Mon, 30 Jan 2012 21:09:23 +0000</pubDate> <guid
isPermaLink="false">http://fishtrap.co.uk/?p=716#comment-206</guid> <description>Are these any good to you?
http://fishtrap.co.uk/php5-mysql_5.3.5-1ubuntu7.2_amd64.deb
http://fishtrap.co.uk/php5-common_5.3.5-1ubuntu7.2_amd64.deb</description> <content:encoded><![CDATA[<p>Are these any good to you?</p><p><a
href="http://fishtrap.co.uk/php5-mysql_5.3.5-1ubuntu7.2_amd64.deb" rel="nofollow">http://fishtrap.co.uk/php5-mysql_5.3.5-1ubuntu7.2_amd64.deb</a><br
/> <a
href="http://fishtrap.co.uk/php5-common_5.3.5-1ubuntu7.2_amd64.deb" rel="nofollow">http://fishtrap.co.uk/php5-common_5.3.5-1ubuntu7.2_amd64.deb</a></p> ]]></content:encoded> </item> <item><title>Comment on Compiling PHP to use mysqlnd on ubuntu by Marc Seiler</title><link>http://fishtrap.co.uk/blog/2011/06/16/compiling-php-to-use-mysqlnd-on-ubuntu/comment-page-1/#comment-205</link> <dc:creator>Marc Seiler</dc:creator> <pubDate>Mon, 30 Jan 2012 18:43:29 +0000</pubDate> <guid
isPermaLink="false">http://fishtrap.co.uk/?p=716#comment-205</guid> <description>@nat If you could post the debs that would be great :)</description> <content:encoded><![CDATA[<p>@nat If you could post the debs that would be great :)</p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by nat</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-177</link> <dc:creator>nat</dc:creator> <pubDate>Tue, 06 Dec 2011 15:11:11 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-177</guid> <description>This is probably the shaped quotation marks see here &lt;a href=&quot;http://www.giannistsakiris.com/index.php/2008/04/17/gcc-error-stray-%E2%80%98342%E2%80%99-in-program/&quot; rel=&quot;nofollow&quot;&gt;http://www.giannistsakiris.com/index.php/2008/04/17/gcc-error-stray-%E2%80%98342%E2%80%99-in-program/&lt;/a&gt;</description> <content:encoded><![CDATA[<p>This is probably the shaped quotation marks see here <a
href="http://www.giannistsakiris.com/index.php/2008/04/17/gcc-error-stray-%E2%80%98342%E2%80%99-in-program/" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.giannistsakiris.com/index.php/2008/04/17/gcc-error-stray-_E2_80_98342_E2_80_99-in-program/?referer=');">http://www.giannistsakiris.com/index.php/2008/04/17/gcc-error-stray-%E2%80%98342%E2%80%99-in-program/</a></p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by bayanaa</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-174</link> <dc:creator>bayanaa</dc:creator> <pubDate>Thu, 01 Dec 2011 03:11:58 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-174</guid> <description>Thank you for your reply. I followed your post in ubuntu 11.04
I get these errors.
~/Desktop/fest$ sudo g++ test.c -l Festival -I/usr/include/festival -I/usr/lib/speech_tools/include -leststring -lestools -lestbase -o test.out
test.c:12:1: error: stray ‘\342’ in program
test.c:12:1: error: stray ‘\200’ in program
test.c:12:1: error: stray ‘\234’ in program
test.c:12:1: error: stray ‘\342’ in program
test.c:12:1: error: stray ‘\200’ in program
test.c:12:1: error: stray ‘\235’ in program
test.c:14:1: error: stray ‘\342’ in program
test.c:14:1: error: stray ‘\200’ in program
test.c:14:1: error: stray ‘\234’ in program
test.c:14:1: error: stray ‘\342’ in program
test.c:14:1: error: stray ‘\200’ in program
test.c:14:1: error: stray ‘\235’ in program
test.c:15:1: error: stray ‘\342’ in program
test.c:15:1: error: stray ‘\200’ in program
test.c:15:1: error: stray ‘\234’ in program
test.c:15:1: error: stray ‘\342’ in program
test.c:15:1: error: stray ‘\200’ in program
test.c:15:1: error: stray ‘\235’ in program
test.c:15:1: error: stray ‘\342’ in program
test.c:15:1: error: stray ‘\200’ in program
test.c:15:1: error: stray ‘\235’ in program
test.c:15:1: error: stray ‘\342’ in program
test.c:15:1: error: stray ‘\200’ in program
test.c:15:1: error: stray ‘\235’ in program
test.c: In function ‘int main(int, char**)’:
test.c:12:22: error: ‘hello’ was not declared in this scope
test.c:14:32: error: expected ‘)’ before ‘world’
test.c:15:14: error: expected primary-expression before ‘/’ token
test.c:15:15: error: ‘tmp’ was not declared in this scope
test.c:15:24: error: ‘class EST_Wave’ has no member named ‘wav’
test.c:15:34: error: ‘riff’ was not declared in this scope</description> <content:encoded><![CDATA[<p>Thank you for your reply. I followed your post in ubuntu 11.04<br
/> I get these errors.</p><p>~/Desktop/fest$ sudo g++ test.c -l Festival -I/usr/include/festival -I/usr/lib/speech_tools/include -leststring -lestools -lestbase -o test.out<br
/> test.c:12:1: error: stray ‘\342’ in program<br
/> test.c:12:1: error: stray ‘\200’ in program<br
/> test.c:12:1: error: stray ‘\234’ in program<br
/> test.c:12:1: error: stray ‘\342’ in program<br
/> test.c:12:1: error: stray ‘\200’ in program<br
/> test.c:12:1: error: stray ‘\235’ in program<br
/> test.c:14:1: error: stray ‘\342’ in program<br
/> test.c:14:1: error: stray ‘\200’ in program<br
/> test.c:14:1: error: stray ‘\234’ in program<br
/> test.c:14:1: error: stray ‘\342’ in program<br
/> test.c:14:1: error: stray ‘\200’ in program<br
/> test.c:14:1: error: stray ‘\235’ in program<br
/> test.c:15:1: error: stray ‘\342’ in program<br
/> test.c:15:1: error: stray ‘\200’ in program<br
/> test.c:15:1: error: stray ‘\234’ in program<br
/> test.c:15:1: error: stray ‘\342’ in program<br
/> test.c:15:1: error: stray ‘\200’ in program<br
/> test.c:15:1: error: stray ‘\235’ in program<br
/> test.c:15:1: error: stray ‘\342’ in program<br
/> test.c:15:1: error: stray ‘\200’ in program<br
/> test.c:15:1: error: stray ‘\235’ in program<br
/> test.c:15:1: error: stray ‘\342’ in program<br
/> test.c:15:1: error: stray ‘\200’ in program<br
/> test.c:15:1: error: stray ‘\235’ in program<br
/> test.c: In function ‘int main(int, char**)’:<br
/> test.c:12:22: error: ‘hello’ was not declared in this scope<br
/> test.c:14:32: error: expected ‘)’ before ‘world’<br
/> test.c:15:14: error: expected primary-expression before ‘/’ token<br
/> test.c:15:15: error: ‘tmp’ was not declared in this scope<br
/> test.c:15:24: error: ‘class EST_Wave’ has no member named ‘wav’<br
/> test.c:15:34: error: ‘riff’ was not declared in this scope</p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by nat</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-171</link> <dc:creator>nat</dc:creator> <pubDate>Mon, 28 Nov 2011 11:12:38 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-171</guid> <description>ok so I managed to get the code you sent to compile and produce a wav etc.
Here&#039;s what I did from a completely clean version of Ubuntu 11.04
[bash]
$ sudo apt-get install festival-dev festvox-don build-essential g++
[/bash]
This will install a whole load of other packages too including festival
Then I editied the code you posted adding
[c]
#include&lt;stdio.h&gt;
#include&lt;festival.h&gt;
[/c]
at the top where where there was just #include (I assume these were stripped out as html tags when you posted). I also eddited the &quot; marks as these had been replaced with fancy ones probably by wordpress.
I then set the path for the wave file to be in /tmp. And I removed this line
[bash]
festival_eval_command(“(voice_ked_diphone)”);
[/bash]
As I didn&#039;t have that voice and hence that variable.
I saved the file as test.c
then
[bash]
sudo g++ test.c -l Festival -I/usr/include/festival  -I/usr/lib/speech_tools/include -leststring -lestools -lestbase -o test.out
[/bash]
I then ran test.out and it spoke! It also created a wav file in /tmp.</description> <content:encoded><![CDATA[<p>ok so I managed to get the code you sent to compile and produce a wav etc.</p><p>Here&#8217;s what I did from a completely clean version of Ubuntu 11.04</p><pre class="brush: bash; title: ;">
$ sudo apt-get install festival-dev festvox-don build-essential g++
</pre><p>This will install a whole load of other packages too including festival</p><p>Then I editied the code you posted adding</p><pre class="brush: cpp; title: ;">
#include&lt;stdio.h&gt;
#include&lt;festival.h&gt;
</pre><p>at the top where where there was just #include (I assume these were stripped out as html tags when you posted). I also eddited the &#8221; marks as these had been replaced with fancy ones probably by wordpress.</p><p>I then set the path for the wave file to be in /tmp. And I removed this line</p><pre class="brush: bash; title: ;">
festival_eval_command(“(voice_ked_diphone)”);
</pre><p>As I didn&#8217;t have that voice and hence that variable.</p><p>I saved the file as test.c</p><p>then</p><pre class="brush: bash; title: ;">
sudo g++ test.c -l Festival -I/usr/include/festival  -I/usr/lib/speech_tools/include -leststring -lestools -lestbase -o test.out
</pre><p>I then ran test.out and it spoke! It also created a wav file in /tmp.</p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by bayanaa</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-168</link> <dc:creator>bayanaa</dc:creator> <pubDate>Sat, 26 Nov 2011 04:13:09 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-168</guid> <description>full code is here
#include
#include
using namespace std;
int main(int argc, char **argv)
{
EST_Wave wave;
int heap_size = 210000;  // default scheme heap size
int load_init_files = 1; // we want the festival init files loaded
festival_initialize(load_init_files,heap_size);
// Say simple file
//festival_say_file(&quot;Home/hello.txt&quot;);
festival_eval_command(&quot;(voice_ked_diphone)&quot;);
// Say some text;
festival_say_text(&quot;hello world&quot;);
//Convert to a waveform
festival_text_to_wave(&quot;hello world&quot;,wave);
wave.save(&quot;Home/../wave.wav&quot;,&quot;riff&quot;);
//     festival_say_file puts the system in async mode so we better
//     wait for the spooler to reach the last waveform before exiting
//     This isn&#039;t necessary if only festival_say_text is being used (and
//     your own wave playing stuff)
festival_wait_for_spooler();
// cout &lt;&lt; &quot;hello &quot;;
return 0;
}</description> <content:encoded><![CDATA[<p>full code is here<br
/> #include<br
/> #include<br
/> using namespace std;<br
/> int main(int argc, char **argv)<br
/> {<br
/> EST_Wave wave;<br
/> int heap_size = 210000;  // default scheme heap size<br
/> int load_init_files = 1; // we want the festival init files loaded</p><p> festival_initialize(load_init_files,heap_size);</p><p> // Say simple file<br
/> //festival_say_file(&#8220;Home/hello.txt&#8221;);</p><p> festival_eval_command(&#8220;(voice_ked_diphone)&#8221;);<br
/> // Say some text;<br
/> festival_say_text(&#8220;hello world&#8221;);</p><p> //Convert to a waveform<br
/> festival_text_to_wave(&#8220;hello world&#8221;,wave);<br
/> wave.save(&#8220;Home/../wave.wav&#8221;,&#8221;riff&#8221;);</p><p>//     festival_say_file puts the system in async mode so we better<br
/> //     wait for the spooler to reach the last waveform before exiting<br
/> //     This isn&#8217;t necessary if only festival_say_text is being used (and<br
/> //     your own wave playing stuff)<br
/> festival_wait_for_spooler();<br
/> // cout &lt;&lt; &quot;hello &quot;;<br
/> return 0;<br
/> }</p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by bayanaa</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-167</link> <dc:creator>bayanaa</dc:creator> <pubDate>Sat, 26 Nov 2011 04:11:47 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-167</guid> <description>(.text+0x17b6): undefined reference to `est_val(EST_Item const*)&#039;
also this..</description> <content:encoded><![CDATA[<p>(.text+0x17b6): undefined reference to `est_val(EST_Item const*)&#8217;</p><p>also this..</p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by bayanaa</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-166</link> <dc:creator>bayanaa</dc:creator> <pubDate>Sat, 26 Nov 2011 04:08:53 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-166</guid> <description>I got these errors:
/usr/lib/libFestival.a(EST_TargetCost.o): In function `EST_TargetCost::stress_cost() const&#039;:v
/usr/lib/libFestival.a(EST_TargetCost.o): In function `EST_TargetCost::stress_cost() const&#039;:v
Do you have an idea?</description> <content:encoded><![CDATA[<p>I got these errors:<br
/> /usr/lib/libFestival.a(EST_TargetCost.o): In function `EST_TargetCost::stress_cost() const&#8217;:v<br
/> /usr/lib/libFestival.a(EST_TargetCost.o): In function `EST_TargetCost::stress_cost() const&#8217;:v</p><p>Do you have an idea?</p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by nat</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-164</link> <dc:creator>nat</dc:creator> <pubDate>Thu, 24 Nov 2011 09:42:04 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-164</guid> <description>If you are wanting to build festival from source rather than use the ubuntu deb package then the best guide is actually this shell script http://www.speech.cs.cmu.edu/15-492/homework/hw1/packed2009/build_them . As you will see it exports ESTDIR variable.
The code on this page is for compiling a small C ++ script which uses the festival C++ API to say some text. I was doing this as a precursor to building a PHP extension to interact directly with festival.</description> <content:encoded><![CDATA[<p>If you are wanting to build festival from source rather than use the ubuntu deb package then the best guide is actually this shell script <a
href="http://www.speech.cs.cmu.edu/15-492/homework/hw1/packed2009/build_them" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.speech.cs.cmu.edu/15-492/homework/hw1/packed2009/build_them?referer=');">http://www.speech.cs.cmu.edu/15-492/homework/hw1/packed2009/build_them</a> . As you will see it exports ESTDIR variable.</p><p>The code on this page is for compiling a small C ++ script which uses the festival C++ API to say some text. I was doing this as a precursor to building a PHP extension to interact directly with festival.</p> ]]></content:encoded> </item> <item><title>Comment on Compiling Festival C++ client on Ubuntu by bayanaa</title><link>http://fishtrap.co.uk/blog/2010/06/15/compiling-festival-c-client-on-ubuntu/comment-page-1/#comment-163</link> <dc:creator>bayanaa</dc:creator> <pubDate>Wed, 23 Nov 2011 12:10:38 +0000</pubDate> <guid
isPermaLink="false">http://www.fishtrap.co.uk/?p=415#comment-163</guid> <description>and there is not also include folder</description> <content:encoded><![CDATA[<p>and there is not also include folder</p> ]]></content:encoded> </item> </channel> </rss>
