Closed chippey5 closed 2 years ago
What version of python are you using? This was built and tested using the Anaconda bundle.
I am running Python version 3.3.4-1, from the AUR repository.
You need use python 2.7.
I also have Python2 version 2.7.6, but after changin raw_input to just "input", the script worked! Or at least, it now recognizes the string. Instead I get this now:
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Welcome to quietnet. Use ctrl-c to exit hello Traceback (most recent call last): File "send.py", line 55, in
play_buffer(buffer) File "send.py", line 42, in play_buffer output = ''.join(buffer) TypeError: sequence item 0: expected str instance, bytes found
Additionally I get this on the listen.py script:
File "listen.py", line 71 print '' ^ SyntaxError: invalid syntax
Thanks for helping me out! ^^
Didn't solve the problem, sorry =(
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Welcome to quietnet. Use ctrl-c to exit Traceback (most recent call last): File "send.py", line 51, in
if sys.version_info[0] < 3: NameError: name 'sys' is not defined
I installed this package in hope for it to work, but unfortunately no luck: https://aur.archlinux.org/packages/python34/
Use the second commit too. https://github.com/construidor/quietnet/commit/13b0be704eb4e5cd705c7bd5c7b6b0e90c7dd881
The send.py seems to work!
[chippey5@chippey5manjaro quietnet-master]$ python send.py ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Welcome to quietnet. Use ctrl-c to exit Hello GitHub Second Message ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred ^Cexited cleanly
Though the listen.py says this:
Quietnet listening at 19100HzALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
and keeps loading until I abort it:
^CTraceback (most recent call last): File "listen.py", line 113, in
start_analysing_stream() File "listen.py", line 109, in start_analysing_stream time.sleep(wait_for_sample_timeout) KeyboardInterrupt
Edit: listen.py does work, I think my laptop's microphone is bad and just too close to the speaker. Thanks a bunch for your help! Will be fun following this project and learning from it! =)
Hello there, as a github newbie I encounter some problems on my machine running Manjaro Linux. Any help will be appreciated
I have the requirements installed and when running send.py I get the following messages:
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave Welcome to quietnet. Use ctrl-c to exit Traceback (most recent call last): File "send.py", line 51, in
message = raw_input("> ")
NameError: name 'raw_input' is not defined
Is anyone else getting this?