* [alsa-devel] TypeError: 'device' is an invalid keyword argument for this function [not found] <1571065438473402977-webhooks-bot@alsa-project.org> @ 2019-10-14 15:04 ` GitHub issues - opened 0 siblings, 0 replies; 2+ messages in thread From: GitHub issues - opened @ 2019-10-14 15:04 UTC (permalink / raw) To: alsa-devel alsa-project/alsa-lib issue #13 was opened from paddygoat: Hello again! I upgraded Alsa lib to 1.1.7 and tested ok. A small error as below when running in Jupyter Notebook, Python 3.6:: ` #inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NONBLOCK) # UltraMic384K 16bit r0, USB Audio inp = alsaaudio.PCM(type = alsaaudio.PCM_CAPTURE, mode=alsaaudio.PCM_NORMAL, device='UltraMic384K 16bit r0') # class alsaaudio.PCM(type=PCM_PLAYBACK, mode=PCM_NORMAL, device='default', cardindex=-1)` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-947bfb637aff> in <module> 16 modelName="randomforestPaddyFalse" 17 modelType="randomforest" ---> 18 recordAnalyzeAudio(10, outputWavFile, 2.0, modelName, modelType) <ipython-input-5-8ddddfa5b724> in recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType) 87 # UltraMic384K 16bit r0, USB Audio 88 ---> 89 inp = alsaaudio.PCM(type = alsaaudio.PCM_CAPTURE, mode=alsaaudio.PCM_NORMAL, device='UltraMic384K 16bit r0') 90 # class alsaaudio.PCM(type=PCM_PLAYBACK, mode=PCM_NORMAL, device='default', cardindex=-1) 91 inp.setchannels(2) TypeError: 'device' is an invalid keyword argument for this function Thanks! Issue URL : https://github.com/alsa-project/alsa-lib/issues/13 Repository URL: https://github.com/alsa-project/alsa-lib _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <1571065513405306101-webhooks-bot@alsa-project.org>]
* [alsa-devel] TypeError: 'device' is an invalid keyword argument for this function [not found] <1571065513405306101-webhooks-bot@alsa-project.org> @ 2019-10-14 15:05 ` GitHub issues - edited 0 siblings, 0 replies; 2+ messages in thread From: GitHub issues - edited @ 2019-10-14 15:05 UTC (permalink / raw) To: alsa-devel alsa-project/alsa-lib issue #13 was edited from paddygoat: Hello again! I upgraded Alsa lib to 1.1.7 and tested ok. A small error as below when running in Jupyter Notebook, Python 3.6:: `#inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NONBLOCK) # UltraMic384K 16bit r0, USB Audio inp = alsaaudio.PCM(type = alsaaudio.PCM_CAPTURE, mode=alsaaudio.PCM_NORMAL, device='UltraMic384K 16bit r0') # class alsaaudio.PCM(type=PCM_PLAYBACK, mode=PCM_NORMAL, device='default', cardindex=-1)` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-947bfb637aff> in <module> 16 modelName="randomforestPaddyFalse" 17 modelType="randomforest" ---> 18 recordAnalyzeAudio(10, outputWavFile, 2.0, modelName, modelType) <ipython-input-5-8ddddfa5b724> in recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType) 87 # UltraMic384K 16bit r0, USB Audio 88 ---> 89 inp = alsaaudio.PCM(type = alsaaudio.PCM_CAPTURE, mode=alsaaudio.PCM_NORMAL, device='UltraMic384K 16bit r0') 90 # class alsaaudio.PCM(type=PCM_PLAYBACK, mode=PCM_NORMAL, device='default', cardindex=-1) 91 inp.setchannels(2) TypeError: 'device' is an invalid keyword argument for this function Thanks! Issue URL : https://github.com/alsa-project/alsa-lib/issues/13 Repository URL: https://github.com/alsa-project/alsa-lib _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-14 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1571065438473402977-webhooks-bot@alsa-project.org>
2019-10-14 15:04 ` [alsa-devel] TypeError: 'device' is an invalid keyword argument for this function GitHub issues - opened
[not found] <1571065513405306101-webhooks-bot@alsa-project.org>
2019-10-14 15:05 ` GitHub issues - edited
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox