Speech Recognition Clean Up

Stream Notes This was a short stream. Next time we will start earlier. Task Completed Split the repo into twitch-bot-py and twitch-bot-ts repos Renamed the hugo markdown files to have dates and to use hypens over underscores Fixed the _find_word_pair and _remove_word_pair redundancy. Future work Use GitHub integrations to run Python test with Poetry. Create blog post of cloud storage and load balancer experience for a static website. Move dev blog from cloud storage -> firebase....

August 6, 2022

Speech Recognition to Count Words

Notes Using enumerate(some_list) over a list provides the index and value. Updated the pyproject.toml file for black configuration of 80 character line lengths. Added absl for testing because of the named_parameterized unit testing. Updated poetry lock file with poetry lock --no-update Looked at trying to create scripts in poetry based on https://gist.github.com/CarlosDomingues/b88df15749af23a463148bd2c2b9b3fb. It did not work well and it was not well documented. I think we need to do something with packages and include on the pyproject....

August 4, 2022

Prep Speech Recognition to Count Words

Notes Installed black as a dev dependency with poetry add black --dev (see https://python-poetry.org/docs/cli/#options-3) Formatted Python with black . when in the current working directory. Discussed using .keys for dictionaries and how set_default would be better to not access the keys for an insert to a dictionary. Task Completed Used black to format Python Created a plan to track word counting including the potential data structure and algorithm strategy Not stream related but fixed typing layout on HotDox v2 Added some Python typing Future work Implment the data structure and algorithm to track words Create blog post of cloud storage and load balancer experience....

August 4, 2022

Twitch Chat Speech to Text

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): • 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....

July 23, 2022

Deploying my blog with Google Cloud

Notes tl;dr: Follow documentation for hosting a static website doc Previously created a Cloud Storage bucket. Set the Cloud Storage bucket acls for allUsers to “Storage Object Viewer”. Set the auth gcloud auth application-default login. Ran hugo deploy and verified that they appeared in the Cloud Storage bucket. Enabled the Compute Engine API. Created a Global HTTPS load balancer and set that to the Cloud Storage bucket. This is where I ran into some problems with the deployment....

July 17, 2022

Twitch Python Chatbot

Compared two twitch chatbot libraries https://pypi.org/project/PythonTwitchBotFramework/ and https://github.com/TwitchIO/TwitchIO and we decided on twitchIO because of the cool logo. Virtual Environment setup We tried the old school way with venv to set up a virtual environment. python3 -m venv . source bin/activate pip3 install twitchio pip3 install python-dotenv pip3 freeze requirements.txt python3 main.py New way is to use poetry. poetry init # for our existing folder poetry add twitchio poetry add python-dotenv poetry install # running stuff with: poetry shell python main....

July 5, 2022

Theming Hugo

Selected the PaperMod theme because it is responsive and there is a dark theme. Removing a theme git rm themes/ananke/ git config --remove-section submodule.themes/ananke Adding a theme git submodule add https://github.com/adityatelange/hugo-PaperMod themes/PaperMod Changing theme in config.toml After removing the theme and adding a new theme, edit the config.toml file. Edit the following line to update the theme theme = 'papermod'. Task completed Fix Hugo theming Research Hugo multiple directories: ‘posts’ and ‘journal’ Future work Save Twitch chat code to a private repo on Github Research what to save on GitHub for a Hugo site Save Hugo site to a private repo on GitHub Figure out where to stage Hugo site Useful links Hugo themes PaperMod hugo theme and demo menu and homeInfoParams in yaml convert yaml to toml

June 26, 2022

Twitch Chat: I Am the Bot - Part II

A quick update: Craig was trying to create a new account “bedtimebear_bot” and it turns out that it already existed. Could it be that past-Craig created an account for current-Craig to use? It looks like it. Task completed Create a new Twitch account for the chat bot Future work Save Twitch chat code to a private repo on Github Research what to save on GitHub for a Hugo site Save Hugo site to a private repo on GitHub Fix Hugo theming Research Hugo multiple directories: ‘posts’ and ‘journal’ Figure out where to stage Hugo site

June 20, 2022

Twitch Chat: I Am the Bot - Part I

TL;DR: Craig had issues connecting to twitch with a oauth token. Tasks completed Updated node to the latest LTS which is node 16 with nvm Created an application on the Twitch developer console Obtained a Twitch access token Tried out Twitch chat bot API Installed Hugo with brew Tried out Hugo to start our dev journal using markdown Details Following along in the Twitch authentication, we should read the instructions. It clearly said to replace <OAUTH_TOKEN> using the string format is oauth:token where token is a user access token....

June 20, 2022