From: GitHub issues - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: [alsa-devel] TypeError: 'device' is an invalid keyword argument for this function
Date: Mon, 14 Oct 2019 17:04:01 +0200 (CEST) [thread overview]
Message-ID: <20191014150401.87179F80362@alsa1.perex.cz> (raw)
In-Reply-To: <1571065438473402977-webhooks-bot@alsa-project.org>
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
next parent reply other threads:[~2019-10-14 15:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1571065438473402977-webhooks-bot@alsa-project.org>
2019-10-14 15:04 ` GitHub issues - opened [this message]
[not found] <1571065513405306101-webhooks-bot@alsa-project.org>
2019-10-14 15:05 ` [alsa-devel] TypeError: 'device' is an invalid keyword argument for this function GitHub issues - edited
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191014150401.87179F80362@alsa1.perex.cz \
--to=github@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox