Read more about the project in the actual blogpost: https://www.modern-rails.com/posts/using-the-openai-text-to-speech-api-with-rails/
- Run
bin/setup
. - Run
rails credentials:edit --environment development
and provide your own OpenAI API tokenopen_ai_access_token: <yourtokengoeshere>
- Run
rails server
- Visit /articles
Have fun!
- Run
bin/setup
. - Run
rails credentials:edit --environment test
and addopen_ai_access_token: test
- Run
rails test