LOVE this - finally got it working.. (I'm new to GIT and for some reason the checkout I did din't have the latest code).
Now I'm working, there are two niggles:
1/ I don't get the beep every time I press the button. I always get it the first time, but almost never from then on.
2/ If you don't say anything & end up writing a blank recording, you get an error:
Traceback (most recent call last):
File "main.py", line 119, in <module>
alexa()
File "main.py", line 99, in alexa
data = r.content.split(boundary.encode('utf-8'))
UnboundLocalError: local variable 'boundary' referenced before assignment
It'd be great to catch this error & handle it seamlessly, though from my reading of other's attempts, echoing this out to say "no audio" to the terminal might be good too, as it'd indicate MIC problems.
I really ought to be able to fix these myself & contribute - time to learn Python!!