{"action":"created","issue":{"url":"https://api.github.com/repos/Uberi/speech_recognition/issues/105","repository_url":"https://api.github.com/repos/Uberi/speech_recognition","labels_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/105/comments","events_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/105/events","html_url":"https://github.com/Uberi/speech_recognition/issues/105","id":146223610,"number":105,"title":" Is there any way to use older version of port audio with speech_recognition?","user":{"login":"obayhan","id":1385736,"avatar_url":"https://avatars.githubusercontent.com/u/1385736?v=3","gravatar_id":"","url":"https://api.github.com/users/obayhan","html_url":"https://github.com/obayhan","followers_url":"https://api.github.com/users/obayhan/followers","following_url":"https://api.github.com/users/obayhan/following{/other_user}","gists_url":"https://api.github.com/users/obayhan/gists{/gist_id}","starred_url":"https://api.github.com/users/obayhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obayhan/subscriptions","organizations_url":"https://api.github.com/users/obayhan/orgs","repos_url":"https://api.github.com/users/obayhan/repos","events_url":"https://api.github.com/users/obayhan/events{/privacy}","received_events_url":"https://api.github.com/users/obayhan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-06T07:58:41Z","updated_at":"2016-04-19T06:55:27Z","closed_at":"2016-04-07T06:33:35Z","body":"when i am trying to use :\r\n\r\n`audio = r.listen(sr.Microphone(device_index=i))`\r\n\r\ngives me \r\n\r\n> \r\n> ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave\r\n> ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear\r\n> ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe\r\n> ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side\r\n> bt_audio_service_open: connect() failed: Connection refused (111)\r\n> bt_audio_service_open: connect() failed: Connection refused (111)\r\n> bt_audio_service_open: connect() failed: Connection refused (111)\r\n> bt_audio_service_open: connect() failed: Connection refused (111)\r\n> ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave\r\n> Cannot connect to server socket err = No such file or directory\r\n> Cannot connect to server request channel\r\n> jack server is not running or cannot be started\r\n\r\nand then\r\n\r\n> Audio source must be opened before recording - see documentation for `AudioSource`\r\n\r\nI found that is about the  pyaudio and portaudio.\r\n\r\nMy system is Ubuntu 14.04. Is there any way to use older version of port audio with speech_recognition?\r\n"},"comment":{"url":"https://api.github.com/repos/Uberi/speech_recognition/issues/comments/211760465","html_url":"https://github.com/Uberi/speech_recognition/issues/105#issuecomment-211760465","issue_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/105","id":211760465,"user":{"login":"obayhan","id":1385736,"avatar_url":"https://avatars.githubusercontent.com/u/1385736?v=3","gravatar_id":"","url":"https://api.github.com/users/obayhan","html_url":"https://github.com/obayhan","followers_url":"https://api.github.com/users/obayhan/followers","following_url":"https://api.github.com/users/obayhan/following{/other_user}","gists_url":"https://api.github.com/users/obayhan/gists{/gist_id}","starred_url":"https://api.github.com/users/obayhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obayhan/subscriptions","organizations_url":"https://api.github.com/users/obayhan/orgs","repos_url":"https://api.github.com/users/obayhan/repos","events_url":"https://api.github.com/users/obayhan/events{/privacy}","received_events_url":"https://api.github.com/users/obayhan/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T06:55:27Z","updated_at":"2016-04-19T06:55:27Z","body":"I tried \r\n\r\n`with Microphone(device_index=i) as source:`\r\n\r\nfirst. Then i tried \r\n\r\n`audio = r.listen(sr.Microphone(device_index=i))`\r\n\r\nSo sorry but my code is correct but Port Audio has problems. Because i got the same result with your example >> [https://github.com/Uberi/speech_recognition/blob/master/examples/microphone_recognition.py](https://github.com/Uberi/speech_recognition/blob/master/examples/microphone_recognition.py)"}}