Install and configure the Model Studio Ruby SDK for speech models.
Prerequisites
- Install Ruby 3.0 or later.
- Get an API key.
Install the SDK
Download dashscope-1.2.0.gem and run the following commands from its directory. The SDK has no third-party gem dependencies.
Configure your API key
DASHSCOPE_API_KEY. Set url to the full endpoint when you create the client. For a workspace-specific domain, use an API key, workspace, and endpoint from the same region.
Open the Ruby SDK guide for your model, such as Qwen-Audio-Live Ruby SDK.