Notes
poetry add pyaudio
- threw an error due to
src/_portaudiomodule.c:31:10: fatal error: 'portaudio.h' file not found
. Fix is to install the dependency:brew install portaudio
. - Truncated stacktrace (see below):
- threw an error due to
• Installing pyaudio (0.2.12): Failed
× Building wheel for PyAudio (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
building '_portaudio' extension
src/_portaudiomodule.c:31:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyAudio
-
poetry add SpeechRecognition
. Documentation https://pypi.org/project/SpeechRecognition/listen
function for a speech recognition instance has aphrase_time_limit
setting that is set in seconds. If this is not set, the user will need to hit the return key to stop listening.
-
The audio recognition might not be great although that might be because I am at Starbucks.
- Text I read: “black fish, blue fish, old fish, new fish”.
- Text result: “black fish blue fish oprah’s new fish”
Task Completed
- Use pyaudio interactions and speech to text with python
Future work
- Generate a datastructure that tracks speech (number of times each word is said on stream).
- Text to speech for python chatbot. Maybe we could announce followers?
- Try out Dialogflow again (TypeScript version? and/or Python version)
- Saving stuff into Firestore (revive this)
- Revive Discord bot