From eb85682d39a109708fe6893e993ed376a4dbc0f7 Mon Sep 17 00:00:00 2001 From: EmerickH Date: Sat, 17 Jun 2017 14:20:13 +0200 Subject: [PATCH 1/3] Add listdevices.sh for Pyaudio --- listdevices.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 listdevices.sh 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 From 664f296f23f72d898035cd37811d5f023cc59cd3 Mon Sep 17 00:00:00 2001 From: EmerickH Date: Sat, 17 Jun 2017 14:25:47 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b969160..6f55be0 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# 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 From 14db00d0fefe0cf386f78712b63584b54cbf5279 Mon Sep 17 00:00:00 2001 From: EmerickH Date: Sat, 17 Jun 2017 14:28:21 +0200 Subject: [PATCH 3/3] Minor changes --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6f55be0..638eec4 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,11 @@ ## 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