Ruby SDK

  1. 1.Install Ruby 2.7 or higher
  2. 2.Add to Gemfile: gem "wubble" or install directly: gem install wubble
  3. 3.Run bundle install if using Bundler
  4. 4.Require the gem: require "wubble"
  5. 5.Initialize the client with your API key
  6. 6.Use the SDK to generate music, voice, or sound effects
  7. 7.Integrate with Rails, Sinatra, or other Ruby frameworks

Use Wubble in your Ruby and Rails applications with our official Ruby SDK. The gem provides an idiomatic Ruby interface for generating audio with automatic retries and error handling.

Notes

  • Idiomatic Ruby interface, automatic retries, comprehensive error handling, Rails integration, thread-safe client, and block-based configuration.
  • The SDK works seamlessly with Rails. Store your API key in credentials.yml.enc and access it with Rails.application.credentials.wubble_api_key.
  • Use the SDK in Active Job background workers for async audio generation. See our Rails example app for complete integration patterns.

How would you rate the help you received from this article?

Still need help?

Can't find what you're looking for? Our team is here to help you get the most out of Wubble.

?