<?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 don&#039;t_panic</title>
	<atom:link href="http://mikepultz.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikepultz.com</link>
	<description>personal and professional blog of mike pultz, technology specialist and serial entrepreneur.</description>
	<lastBuildDate>Sun, 05 Feb 2012 22:38:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Accessing Google Speech API / Chrome 11 by Rob</title>
		<link>http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/comment-page-2/#comment-1045</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sun, 05 Feb 2012 22:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=570#comment-1045</guid>
		<description>I have no idea what I&#039;m doing wrong or what this output means when I do wget.  I&#039;ve tried everyone&#039;s statements here for wget and none seem to work for me.

wget http://www.google.com/speech-api/v1/recognize?lang=en-us -header &quot;Content-Type: audio/x-flac; rate=16000? -post-file=rec1.flac -output-file=output.txt

SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc 
--2012-02-05 17:34:11--  http://www.google.com/speech-api/v1/recognize?lang=en-us
Resolving www.google.com... 74.125.113.104, 74.125.113.105, 74.125.113.106, ...
Connecting to www.google.com&#124;74.125.113.104&#124;:80... connected.
HTTP request sent, awaiting response... 405 HTTP method GET is not supported by this URL
2012-02-05 17:34:12 ERROR 405: HTTP method GET is not supported by this URL.

--2012-02-05 17:34:12--  http://%96header/
Resolving \226header... failed: No data record of requested type.
wget: unable to resolve host address `-header&#039;
--2012-02-05 17:34:14--  ftp://%93content-type/
           =&gt; `.listing&#039;
Resolving \223content-type... failed: No data record of requested type.
wget: unable to resolve host address `&quot;content-type&#039;
unlink: No such file or directory
--2012-02-05 17:34:16--  http://audio/x-flac;
Resolving audio... failed: No data record of requested type.
wget: unable to resolve host address `audio&#039;
--2012-02-05 17:34:18--  http://rate=16000/?
Resolving rate=16000... failed: No data record of requested type.
wget: unable to resolve host address `rate=16000&#039;
--2012-02-05 17:34:21--  http://%96post-file=rec1.flac/
Resolving \226post-file=rec1.flac... failed: No data record of requested type.
wget: unable to resolve host address `-post-file=rec1.flac&#039;
--2012-02-05 17:34:21--  http://%96output-file=output.txt/
Resolving \226output-file=output.txt... failed: No data record of requested type.

wget: unable to resolve host address `-output-file=output.txt&#039;</description>
		<content:encoded><![CDATA[<p>I have no idea what I&#8217;m doing wrong or what this output means when I do wget.  I&#8217;ve tried everyone&#8217;s statements here for wget and none seem to work for me.</p>
<p>wget <a href="http://www.google.com/speech-api/v1/recognize?lang=en-us" rel="nofollow">http://www.google.com/speech-api/v1/recognize?lang=en-us</a> -header &#8220;Content-Type: audio/x-flac; rate=16000? -post-file=rec1.flac -output-file=output.txt</p>
<p>SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc<br />
syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc<br />
&#8211;2012-02-05 17:34:11&#8211;  <a href="http://www.google.com/speech-api/v1/recognize?lang=en-us" rel="nofollow">http://www.google.com/speech-api/v1/recognize?lang=en-us</a><br />
Resolving <a href="http://www.google.com.." rel="nofollow">http://www.google.com..</a>. 74.125.113.104, 74.125.113.105, 74.125.113.106, &#8230;<br />
Connecting to <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>|74.125.113.104|:80&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 405 HTTP method GET is not supported by this URL<br />
2012-02-05 17:34:12 ERROR 405: HTTP method GET is not supported by this URL.</p>
<p>&#8211;2012-02-05 17:34:12&#8211;  <a href="http://%96header/" rel="nofollow">http://%96header/</a><br />
Resolving \226header&#8230; failed: No data record of requested type.<br />
wget: unable to resolve host address `-header&#8217;<br />
&#8211;2012-02-05 17:34:14&#8211;  <a href="ftp://%93content-type/" rel="nofollow">ftp://%93content-type/</a><br />
           =&gt; `.listing&#8217;<br />
Resolving \223content-type&#8230; failed: No data record of requested type.<br />
wget: unable to resolve host address `&#8221;content-type&#8217;<br />
unlink: No such file or directory<br />
&#8211;2012-02-05 17:34:16&#8211;  <a href="http://audio/x-flac" rel="nofollow">http://audio/x-flac</a>;<br />
Resolving audio&#8230; failed: No data record of requested type.<br />
wget: unable to resolve host address `audio&#8217;<br />
&#8211;2012-02-05 17:34:18&#8211;  <a href="http://rate=16000/?" rel="nofollow">http://rate=16000/?</a><br />
Resolving rate=16000&#8230; failed: No data record of requested type.<br />
wget: unable to resolve host address `rate=16000&#8242;<br />
&#8211;2012-02-05 17:34:21&#8211;  <a href="http://%96post-file=rec1.flac/" rel="nofollow">http://%96post-file=rec1.flac/</a><br />
Resolving \226post-file=rec1.flac&#8230; failed: No data record of requested type.<br />
wget: unable to resolve host address `-post-file=rec1.flac&#8217;<br />
&#8211;2012-02-05 17:34:21&#8211;  <a href="http://%96output-file=output.txt/" rel="nofollow">http://%96output-file=output.txt/</a><br />
Resolving \226output-file=output.txt&#8230; failed: No data record of requested type.</p>
<p>wget: unable to resolve host address `-output-file=output.txt&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing Google Speech API / Chrome 11 by Asiri: Let Siri Speak Your Language &#124; Abdulrahman Alotaiba&#039;s Blog</title>
		<link>http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/comment-page-2/#comment-1044</link>
		<dc:creator>Asiri: Let Siri Speak Your Language &#124; Abdulrahman Alotaiba&#039;s Blog</dc:creator>
		<pubDate>Mon, 30 Jan 2012 04:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=570#comment-1044</guid>
		<description>[...] draft papers, I came across the speech API. It was proposed by Google. Further research led me to an actual implementation and usage of Google [...]</description>
		<content:encoded><![CDATA[<p>[...] draft papers, I came across the speech API. It was proposed by Google. Further research led me to an actual implementation and usage of Google [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing Google Speech API / Chrome 11 by gluxon</title>
		<link>http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/comment-page-2/#comment-1043</link>
		<dc:creator>gluxon</dc:creator>
		<pubDate>Sun, 29 Jan 2012 03:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=570#comment-1043</guid>
		<description>This is the command that worked for me on Ubuntu 11.10

wget http://www.google.com/speech-api/v1/recognize?lang=en-us --header &quot;Content-Type: audio/x-flac; rate=16000&quot; --post-file=NameOfFile.flac --output-file=output.txt

Hope this helped! :)</description>
		<content:encoded><![CDATA[<p>This is the command that worked for me on Ubuntu 11.10</p>
<p>wget <a href="http://www.google.com/speech-api/v1/recognize?lang=en-us" rel="nofollow">http://www.google.com/speech-api/v1/recognize?lang=en-us</a> &#8211;header &#8220;Content-Type: audio/x-flac; rate=16000&#8243; &#8211;post-file=NameOfFile.flac &#8211;output-file=output.txt</p>
<p>Hope this helped! <img src='http://mikepultz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing Google Speech API / Chrome 11 by TrkHefner_</title>
		<link>http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/comment-page-2/#comment-1041</link>
		<dc:creator>TrkHefner_</dc:creator>
		<pubDate>Fri, 27 Jan 2012 16:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=570#comment-1041</guid>
		<description>Okay, I finally got it working.
I&#039;m sorry for the blob comments I placed in the process.
Since I figure I won&#039;t be the last person to walk in on the troubles I experienced, I&#039;ll try to make up my blobbing by explaining how I resolved the matter. I hope that by doing so I can help others googling into this thread. 

First of all, I must point out that I have been trying to make this work on a windows machine. So in order to successfully make a wget call I had to install GnuWin Wget (http://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/). The problems I experienced earlier were due to the fact that I was using the wrong release. Make sure you download and run the setup program with all dependency files included.

Second of all, the win32 version of wget seems to accept its parameters slightly different than explained in this article and the comments underneath.
The command I issue is now &quot;wget --post-file=&quot;out.flac&quot; --header=&quot;Content-Type: audio/x-flac; rate=16000&quot; --output-file=&quot;result.txt&quot; --no-check-certificate https://www.google.com/speech-api/v1/recognize?lang=en&quot;. 
Unlike I expected this didn&#039;t write the actual desired google JSON response to result.txt. 
Instead it writes the wget log to the file. This log contained &quot;HTTP request sent, awaiting response... 200 OK Length: unspecified [application/json] Saving to: &#039;recognize@lang=en&#039;&quot;. Why on earth it writes the JSON obj to a file called &#039;recognize@lang=en&#039; is a riddle to me, but sure enough, the file (saved in the wget executable dir) contains the text I desired.

Strangely, the accuracy is pretty low and thus the result/recognition level is quite bad. The api recognizes only half of the words the example at html5rocks and google translate do. I figure they use a higher bitrate or something or there&#039;s something else I am not taking into account.

Anyway, thanks for this article and the comments that helped my on my way, I hope I was able to contribute.</description>
		<content:encoded><![CDATA[<p>Okay, I finally got it working.<br />
I&#8217;m sorry for the blob comments I placed in the process.<br />
Since I figure I won&#8217;t be the last person to walk in on the troubles I experienced, I&#8217;ll try to make up my blobbing by explaining how I resolved the matter. I hope that by doing so I can help others googling into this thread. </p>
<p>First of all, I must point out that I have been trying to make this work on a windows machine. So in order to successfully make a wget call I had to install GnuWin Wget (<a href="http://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/" rel="nofollow">http://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/</a>). The problems I experienced earlier were due to the fact that I was using the wrong release. Make sure you download and run the setup program with all dependency files included.</p>
<p>Second of all, the win32 version of wget seems to accept its parameters slightly different than explained in this article and the comments underneath.<br />
The command I issue is now &#8220;wget &#8211;post-file=&#8221;out.flac&#8221; &#8211;header=&#8221;Content-Type: audio/x-flac; rate=16000&#8243; &#8211;output-file=&#8221;result.txt&#8221; &#8211;no-check-certificate <a href="https://www.google.com/speech-api/v1/recognize?lang=en" rel="nofollow">https://www.google.com/speech-api/v1/recognize?lang=en</a>&#8220;.<br />
Unlike I expected this didn&#8217;t write the actual desired google JSON response to result.txt.<br />
Instead it writes the wget log to the file. This log contained &#8220;HTTP request sent, awaiting response&#8230; 200 OK Length: unspecified [application/json] Saving to: &#8216;recognize@lang=en&#8217;&#8221;. Why on earth it writes the JSON obj to a file called &#8216;recognize@lang=en&#8217; is a riddle to me, but sure enough, the file (saved in the wget executable dir) contains the text I desired.</p>
<p>Strangely, the accuracy is pretty low and thus the result/recognition level is quite bad. The api recognizes only half of the words the example at html5rocks and google translate do. I figure they use a higher bitrate or something or there&#8217;s something else I am not taking into account.</p>
<p>Anyway, thanks for this article and the comments that helped my on my way, I hope I was able to contribute.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing Google Speech API / Chrome 11 by TrkHefner_</title>
		<link>http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/comment-page-2/#comment-1024</link>
		<dc:creator>TrkHefner_</dc:creator>
		<pubDate>Wed, 25 Jan 2012 20:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://mikepultz.com/?p=570#comment-1024</guid>
		<description>Okay, I did the wget call working in the end, but I&#039;m still not there.

I am calling the API from a php file with an exec command with the api call.
Strangely, the addressbar changes from &quot;speech.php&quot; (my file) to &quot;main?url=out.flac&amp;tid=0&amp;w=1440&amp;h=809&quot; and my result file contains some weird html containing an iframe (with main?url=out.flac&amp;tid=0&amp;w=1440&amp;h=809 as its src).

Here&#039;s my code:

$cmd = &#039;wget –post-file out.flac -header=&quot;Content-Type: audio/x-flac; rate=16000&quot; -O resultaat.html https://www.google.com/speech-api/v1/recognize?xjerr=1&amp;client=chromium&amp;lang=en-US&#039;;
exec($cmd);
echo file_get_contents(&quot;resultaat.html&quot;);

It seems like instead of returning the JSON object I desire, the API tries to redirect the call.
I hardly doubt the Google people have just now restricted the use of their speech-to-text, so I figure it&#039;s me who fails.

Any pointers would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>Okay, I did the wget call working in the end, but I&#8217;m still not there.</p>
<p>I am calling the API from a php file with an exec command with the api call.<br />
Strangely, the addressbar changes from &#8220;speech.php&#8221; (my file) to &#8220;main?url=out.flac&amp;tid=0&amp;w=1440&amp;h=809&#8243; and my result file contains some weird html containing an iframe (with main?url=out.flac&amp;tid=0&amp;w=1440&amp;h=809 as its src).</p>
<p>Here&#8217;s my code:</p>
<p>$cmd = &#8216;wget –post-file out.flac -header=&#8221;Content-Type: audio/x-flac; rate=16000&#8243; -O resultaat.html <a href="https://www.google.com/speech-api/v1/recognize?xjerr=1&#038;client=chromium&#038;lang=en-US&#039;" rel="nofollow">https://www.google.com/speech-api/v1/recognize?xjerr=1&#038;client=chromium&#038;lang=en-US&#039;</a>;<br />
exec($cmd);<br />
echo file_get_contents(&#8220;resultaat.html&#8221;);</p>
<p>It seems like instead of returning the JSON object I desire, the API tries to redirect the call.<br />
I hardly doubt the Google people have just now restricted the use of their speech-to-text, so I figure it&#8217;s me who fails.</p>
<p>Any pointers would be greatly appreciated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

