This is a simple Ruby command-line tool that allows dropping in an AI buddy to your podcast.
Install the gem and add to the application's Gemfile by executing:
$ bundle add podcast-buddy
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install podcast-buddy
Run your buddy from the command-line:
podcast-buddy
This will install a couple dependencies, if they don't exist:
git
(for cloning whisper.cpp locally)sdl2
- Simple DirectMedia Layer; for cross-platform audio input access- whipser.cpp with streaming – For transcribing audio in near-real-time
Other requirements:
- OpenAI token stored in your environment as
OPENAI_ACCESS_TOKEN
- MacOS
At any time, you can press the return
key and ask your buddy a question.
Once you see the question show up in the output, press return
key again and
your Buddy will answer using the system output (via afplay
).
Once you're done, simply ctrl-c
to wrap things up.
- Your full transcript is stored in
tmp/transcript-%Y-%m-%d.log
. - A summarization of the discussion is stored in
tmp/summary-%Y-%m-%d.log
. - A list of topics extracted from the discussion is stored in
tmp/topics-%Y-%m-%d.log
. - The Show Notes are stored in
tmp/show-notes-%Y-%m-%d.log
. - The raw whisper logs are stored in
tmp/whisper.log
.
debug mode: podcast_buddy --debug
– shows verbose logging
custom whisper model: podcast_buddy --whisper base.en
– use any of these available models.
custom session: podcast_buddy --name "Ruby Rogues 08-15-2024"
– saves files to a new tmp/Ruby Rogues 08-15-2024/
directory.
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/codenamev/podcast-buddy. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the PodcastBuddy project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.