<br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 6:56 PM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 14/02/13 10:14, richard kappler wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have tried to run the Google speech recognition code found here:<br>
<a href="https://github.com/jeysonmc/python-google-speech-scripts/blob/master/stt_google.py" target="_blank">https://github.com/jeysonmc/<u></u>python-google-speech-scripts/<u></u>blob/master/stt_google.py</a><br>
<br>
I am getting the following traceback:<br>
Traceback (most recent call last):<br>
   File "<stdin>", line 1, in<module><br>
   File "GoogSTT.py", line 43, in listen_for_speech<br>
     data = stream.read(chunk)<br>
   File "/usr/lib/python2.7/dist-<u></u>packages/pyaudio.py", line 605, in read<br>
     return pa.read_stream(self._stream, num_frames)<br>
</blockquote>
<br>
<br></div>
Awesome!<br>
<br>
Richard, if you hang around this mailing list for a while, you will soon see that we tutors have a lot of trouble convincing newbies to post the entire traceback, not just the error message. But this is the first time that somebody has posted the traceback EXCEPT for the error message.<br>

<br>
Well done, you win the Internet :-)<br>
<br>
Please try again and post the entire traceback, including the error message at the end.<br>
<br>
Thank you.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br></font></span></blockquote><div>And now you see my dilemma. That's the error message, the whole bloody thing. But for ye unbelievers out there, here's my entire screen, from the call to the crash:</div><div><br>
</div><div><div>python GoogSTT.py</div><div>ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear</div><div>ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe</div><div>ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side</div>
<div>ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)</div><div>ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)</div>
<div>ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)</div><div>ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)</div>
<div>ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream</div><div>Cannot connect to server socket err = No such file or directory</div><div>Cannot connect to server request channel</div>
<div>jack server is not running or cannot be started</div><div>* listening. CTRL+C to finish.</div><div>starting record</div><div>^CTraceback (most recent call last):</div><div>  File "GoogSTT.py", line 108, in <module></div>
<div>    listen_for_speech()</div><div>  File "GoogSTT.py", line 43, in listen_for_speech</div><div>    data = stream.read(chunk)</div><div>  File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 605, in read</div>
<div>    return pa.read_stream(self._stream, num_frames)</div><div>KeyboardInterrupt</div></div><div><br></div><div>So I call the script, when it says *listening I speak into the microphone, then hit CTRL+C and everything after starting to record spits out. When I run the script that fails not, it provides EXACTLY the same ALSA and jackserver output, but records the wav.</div>
<div><br></div><div>regards, Richard</div></div><div><br></div>-- <br>
        
        
        <dl><dt>
        
        
        


<p style="margin-bottom:0in;line-height:0.18in" align="LEFT">
<font color="#333333"><font face="comic sans ms, sans-serif" size="4">quando om<font size="4">ni flunkus moritati</font><br></font></font></p></dt></dl>