<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mindtrove &#187; python</title>
	<atom:link href="http://mindtrove.info/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://mindtrove.info</link>
	<description>Collecting ideas since 1980</description>
	<lastBuildDate>Thu, 01 Jul 2010 01:58:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JSonic: Speech and sound using HTML5</title>
		<link>http://mindtrove.info/jsonic-speech-and-sound-using-html5/</link>
		<comments>http://mindtrove.info/jsonic-speech-and-sound-using-html5/#comments</comments>
		<pubDate>Tue, 11 May 2010 02:37:23 +0000</pubDate>
		<dc:creator>Peter Parente</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[jsonic]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[speech]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://mindtrove.info/?p=318</guid>
		<description><![CDATA[I've released a new library called JSonic for text-to-speech synthesis and sound playback in browsers supporting HTML5 &#60;audio&#62;. The code is on GitHub along with full documentation of the JS and REST APIs. The client API is implemented as a Dojo dijit._Widget subclass. Other client implementations are possible as long as they provide the same [...]]]></description>
			<content:encoded><![CDATA[<p>I've released a new library called JSonic for text-to-speech synthesis and sound playback in browsers supporting HTML5 &lt;audio&gt;. The code is on <a href="http://github.com/parente/jsonic">GitHub</a> along with <a href="http://parente.github.com/jsonic">full documentation</a> of the JS and REST APIs.</p>
<p>The client API is implemented as a Dojo dijit._Widget subclass. Other client implementations are possible as long as they provide the same JS interface. The TTS synthesis is implemented server-side using <a href="http://espeak.sourceforge.net/">espeak</a> and <a href="http://www.tornadoweb.org/">Tornado</a>. Other server implementations are possible as long as they adhere to the REST API, and other speech engines can be plugged in rather easily.</p>
<p>The <a href="http://sites.google.com/site/uncopenweb/">UNC Open Web group</a> is looking to use JSonic to build self-voicing web games for kids with disabilities. I've already ported my <a href="http://mindtrove.info/spaceship">Spaceship!</a> game (<a href="http://github.com/parente/spaceship">also available on GitHub</a>) to use it instead of Outfox, and hope deploy it somewhere in the near future.</p>
<p>Bug reports, bug fixes, comments, questions, uses, and so on are welcome. Please use the issue tracker on the GitHub project page when reporting bugs.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindtrove.info/jsonic-speech-and-sound-using-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pyttsx</title>
		<link>http://mindtrove.info/pyttsx/</link>
		<comments>http://mindtrove.info/pyttsx/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 21:45:20 +0000</pubDate>
		<dc:creator>Peter Parente</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[speech]]></category>

		<guid isPermaLink="false">http://mindtrove.info/?p=250</guid>
		<description><![CDATA[pyttsx is a cross-platform text-to-speech package for Python. It has a simple API for producing speech, setting some basic engine properties, and getting start/stop/word callbacks. pyttsx currently supports SAPI5, NSSpeechSynthesizer, and espeak, but it can be extended to support other engines and libraries. The project BSD licensed and hosted on Launchpad. PyPI tracks downloads for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pypi.python.org/pypi/pyttsx/1.0">pyttsx</a> is a cross-platform text-to-speech package for Python. It has a simple API for producing speech, setting some basic engine properties, and getting start/stop/word callbacks.  pyttsx currently supports SAPI5, NSSpeechSynthesizer, and espeak, but it can be extended to support other engines and libraries.</p>
<p>The project BSD licensed and hosted on <a href="https://launchpad.net/pyttsx">Launchpad</a>. PyPI tracks <a href="http://pypi.python.org/pypi/pyttsx">downloads</a> for the latest stable version and <a href="http://packages.python.org/pyttsx/">documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindtrove.info/pyttsx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GtkBuilder/Glade on IronPython</title>
		<link>http://mindtrove.info/gtkbuilderglade-on-ironpython/</link>
		<comments>http://mindtrove.info/gtkbuilderglade-on-ironpython/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 12:10:48 +0000</pubDate>
		<dc:creator>Peter Parente</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[pgo]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://mindtrove.info/?p=236</guid>
		<description><![CDATA[Thanks to Stephane for his answer to my query about using GtkBuilder in IronPython. It turns out his Gtk#Beans package provides the magic sauce that is currently missing from gtk# trunk the current stable release. For completeness, here's the code I sent him that accomplishes the same thing using the older Glade.XML object for those [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to Stephane for his answer to my query about <a href="http://blog.reblochon.org/2009/08/gtkbuilder-on-ironpython.html">using GtkBuilder in IronPython</a>. It turns out his <a href="http://gitorious.org/gtk-sharp-beans">Gtk#Beans</a> package provides the magic sauce that is currently missing from <del datetime="2009-08-28T15:37:36+00:00">gtk# trunk</del> the current stable release.</p>
<p>For completeness, here's the code I sent him that accomplishes the same thing using the older Glade.XML object for those that are interested. It answers a <a href="http://lists.ironpython.com/pipermail/users-ironpython.com/2005-August/000968.html">long standing mailing list question</a> about using Glade.XML.Autoconnect in IronPython.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> clr
clr.<span style="color: black;">AddReference</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'gtk-sharp'</span><span style="color: black;">&#41;</span>
clr.<span style="color: black;">AddReference</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'glade-sharp'</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">import</span> Gtk
<span style="color: #ff7700;font-weight:bold;">import</span> Glade
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> PyGladeAutoconnect<span style="color: black;">&#40;</span>gxml, target<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> _connect<span style="color: black;">&#40;</span>handler_name, event_obj, signal_name, <span style="color: #66cc66;">*</span>args<span style="color: black;">&#41;</span>:
        name = <span style="color: #483d8b;">''</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span>frag.<span style="color: black;">title</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> frag <span style="color: #ff7700;font-weight:bold;">in</span> signal_name.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'_'</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
        event = <span style="color: #008000;">getattr</span><span style="color: black;">&#40;</span>event_obj, name<span style="color: black;">&#41;</span>
        event += <span style="color: #008000;">getattr</span><span style="color: black;">&#40;</span>target, handler_name<span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;"># add all widgets</span>
    <span style="color: #ff7700;font-weight:bold;">for</span> widget <span style="color: #ff7700;font-weight:bold;">in</span> gxml.<span style="color: black;">GetWidgetPrefix</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">''</span><span style="color: black;">&#41;</span>:
        <span style="color: #008000;">setattr</span><span style="color: black;">&#40;</span>target, gxml.<span style="color: black;">GetWidgetName</span><span style="color: black;">&#40;</span>widget<span style="color: black;">&#41;</span>, widget<span style="color: black;">&#41;</span>
    <span style="color: #808080; font-style: italic;"># connect all signals</span>
    gxml.<span style="color: black;">SignalAutoconnectFull</span><span style="color: black;">&#40;</span>_connect<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> Application:
    <span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #0000cd;">__init__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
        gxml = Glade.<span style="color: black;">XML</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;test.glade&quot;</span>, <span style="color: #483d8b;">&quot;window1&quot;</span>, <span style="color: #008000;">None</span><span style="color: black;">&#41;</span>
        PyGladeAutoconnect<span style="color: black;">&#40;</span>gxml, <span style="color: #008000;">self</span><span style="color: black;">&#41;</span>
        <span style="color: #808080; font-style: italic;"># window1 comes from glade file</span>
        <span style="color: #008000;">self</span>.<span style="color: black;">window1</span>.<span style="color: black;">ShowAll</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">def</span> onWindowDelete<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, o, args<span style="color: black;">&#41;</span>:
        <span style="color: #808080; font-style: italic;"># connected via glade file definition</span>
        Gtk.<span style="color: black;">Application</span>.<span style="color: black;">Quit</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
Gtk.<span style="color: black;">Application</span>.<span style="color: black;">Init</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
app = Application<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
Gtk.<span style="color: black;">Application</span>.<span style="color: black;">Run</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mindtrove.info/gtkbuilderglade-on-ironpython/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
