Comments (8)
i am having the same problem...did you find a fix?
from dejavu.
I'm afraid I've never run into this issue before. Are you by chance using a virtual machine?
If so, I can't really help you other than to suggest you don't do that or that you pipe the output into a file first.
from dejavu.
Nope, I ran it on my real linux workstation than a virtual machine. And I think my microphone input is OK since I could get sound recorded via alsa- arecord. 👍 :)
Is there any more method could be check of this issue? I think I have proves that the issue occurs during calling pyaudio.PyAudio()
def __init__(self, dejavu):
super(MicrophoneRecognizer, self).__init__(dejavu)
# Add logging by me
print "logged here"
self.audio = pyaudio.PyAudio()
self.stream = None
self.data = []
self.channels = MicrophoneRecognizer.default_channels
self.chunksize = MicrophoneRecognizer.default_chunksize
self.samplerate = MicrophoneRecognizer.default_samplerate
self.recorded = False
from dejavu.
A pyaudio issue could be a couple of things:
- check you have
ffmpeg
installed correctly - make sure proper codecs are installed
There's of course a host of other issues that it could be, but those are my only experience in troubleshooting pyaudio.
At this point, probably asking around is a good idea. Stack Overflow is always a good resource:
- [http://stackoverflow.com/questions/7088672/pyaudio-working-but-spits-out-error-messages-each-time](PyAudio working, but spits out error messages each time)
Further, make sure you aren't doing anything silly when setting the input and output: https://github.com/bastibe/PyAudio/issues/3.
from dejavu.
Thank you pal, I will have more try and let you updated.
I think alsa record works for me, so I think I am not that silly. 😄
from dejavu.
Best of luck. If you find a fix, do post here and others may benefit.
from dejavu.
Hello,
I have the same problem.
Did someone find a solution ?
There is the details :
- This problem occurs on my 2 OS on the same computer : Ubuntu 14.04 and Kali Linux
- The sound works properly with YouTube
- Micro is activated and works in the parameters
- The error message is this one :
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
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Thank you
from dejavu.
Same problem. Except I'm on Linux Mint.
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
I do have a setup where I pipe my default speaker into my mic. Maybe I should disable it..?
P.S.: if I set the recording seconds to more than 5 I completely freeze my computer. Maybe it has something to do with memory usage? I do notice that I don't get the same error when running pyaudio.PyAudio()
on python3. I'm trying to see if dejavu can be ported to python3 easily.
from dejavu.
Related Issues (20)
- A directory of potentially duplicate audio files?
- it works well with python3.6 ~
- Not working for recordings
- Some errors when I use python3.7
- multiple concurrency
- Fingerprinting Audio With Differing Sample Rates HOT 1
- Jscght
- figerprinting file HOT 1
- Any way to generate the result image of the plots? HOT 1
- Does this package supports Python 3 HOT 4
- does this project work well on recognizing human speak? HOT 5
- Problem running the sample project HOT 1
- erors using fingerprint_file HOT 1
- Audio file
- Recognize TV shows using an HLS playlist HOT 6
- psycopg2.OperationalError
- Implementing Dejavu System with Individual Fingerprint Tables for Audio Files
- 代码可读性太差了,为了炫技而炫技,屎一样
- Alternative implementations HOT 2
- is this package has support for python3 ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dejavu.