Skip to main content
Rime Partner Service is available from CLI version 1.39.0 and greater
The Rime Partner Service is in beta. It’s available to all users and ready for production workloads, but expect occasional rough edges while the integration matures. Reach out to support if you hit any issues.
Cerebrium’s partnership with Rime enables text-to-speech (TTS) deployment with low latency and region selection for data privacy compliance.

Setup

  1. Create a Rime account and get an API key. Add the key as a secret in Cerebrium with the name “RIME_API_KEY”.
  2. Create a Cerebrium app with the CLI:
  1. Rime services use a simplified TOML configuration with the [cerebrium.runtime.rime] section. Create a cerebrium.toml file with the following:
Disable auth because the Rime API key in the header handles authentication. The Rime Server validates the API key directly.
  1. Run cerebrium deploy to deploy the Rime service - the output of which should appear as follows:
  1. Send requests to the HTTP Rime service using the deployment URL from the output:
For Websockets, send the following

Runtime Configuration

The [cerebrium.runtime.rime] section supports the following parameters: Example with optional parameters:

Scaling and Concurrency

Rime services support independent scaling configurations:
  • min_replicas: Minimum instances to maintain (0 for scale-to-zero). Recommended: 1.
  • max_replicas: Maximum instances during high load.
  • replica_concurrency: Concurrent requests per instance. Recommended: 3.
  • cooldown: Time window (in seconds) that must pass at reduced concurrency before scaling down. Recommended: 50.
  • compute: Instance type. Recommended: AMPERE_A10.
Adjust these parameters based on traffic patterns and latency requirements. Consult the Rime team for concurrency and scalability guidance. For further documentation on Rime, see the Rime documentation.