v1

latestOpenAPI 3.0.42026-08-068161,1253.1 MB
Assets
Generative AI

Generate Speech Asset

Generates an English speech audio asset from the specified text.

This endpoint requires the asset:read and asset:write scopes in addition to the universe:write scope.

The response returns an Operation object that must be prefixed with /assets/v1. For example, the URL to discover the result of the operation could be https://apis.roblox.com/assets/v1/operations/8b42ef30-9c17-4526-b8cf-2ff0136ca94d.

post/cloud/v2/universes/{universe_id}:generateSpeechAsset

Path parameters

universe_idstring required

The universe ID.

Request body

textstring required

The text to be translated.

Example request

{
  "text": "Hello",
  "speechStyle": {
    "voiceId": "1"
  }
}

Response

OK

pathstring

The server-assigned path, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the path should be a resource path ending with operations/{unique_id}.

doneboolean

If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

Example response

{
  "done": true
}