Assets
Generative AI
Generate Speech Asset
Changed onGenerates 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
Request
- Base URLhttps://apis.roblox.com
- URLhttps://apis.roblox.com/cloud/v2/universes/{universe_id}:generateSpeechAsset
- Auth
- API key in header x-api-key
- or OAuth 2Authorization code: https://apis.roblox.com/oauth/v1/authorizeToken URL: https://apis.roblox.com/oauth/v1/token scopes: universe:write, asset:read, asset:write
Path parameters
universe_idstring required
The universe ID.
Request body
Example request
{
"text": "Hello",
"speechStyle": {
"voiceId": "1"
}
}Response
OK
Example response
{
"done": true
}Changes
- info
the security scope
asset:readwas added to the endpoint's security schemeroblox-oauth2 - info
the security scope
asset:writewas added to the endpoint's security schemeroblox-oauth2 - info
the security scope
universe:writewas added to the endpoint's security schemeroblox-oauth2
- info