diff --git a/README.md b/README.md index b969160..638eec4 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ -# AlexaPi-misc \ No newline at end of file +# AlexaPi-misc + +## alsa-info.sh + +From http://www.alsa-project.org/alsa-info.sh + +`wget -O - https://raw.githubusercontent.com/alexa-pi/AlexaPi-misc/master/alsa-info.sh | bash` + +## listdevices.sh + +List all PyAudio available devices + +`wget -O - https://raw.githubusercontent.com/alexa-pi/AlexaPi-misc/master/listdevices.sh | bash` \ No newline at end of file diff --git a/listdevices.sh b/listdevices.sh new file mode 100644 index 0000000..b6b00c2 --- /dev/null +++ b/listdevices.sh @@ -0,0 +1,9 @@ +#!/bin/bash +echo "Audio devices:" +python << END +import pyaudio + +p = pyaudio.PyAudio() +for i in range(p.get_device_count()): + print(p.get_device_info_by_index(i).get('name')) +END