Method: projects.locations.apps.testPersonaVoice

Tests the voice of a persona. Also accepts a default persona.

HTTP request

POST https://ces.googleapis.com/v1beta/{app=projects/*/locations/*/apps/*}:testPersonaVoice

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
app

string

Required. the resource name of the app to test the persona voice for. Format: projects/{project}/locations/{location}/apps/{app}

Request body

The request body contains data with the following structure:

JSON representation
{
  "personaId": string,
  "text": string
}
Fields
personaId

string

Required. The persona ID to test the voice for. Also accepts "default".

text

string

Required. The text to test the voice for.

Response body

Response message for EvaluationService.TestPersonaVoice.

If successful, the response body contains data with the following structure:

JSON representation
{
  "audio": string
}
Fields
audio

string (bytes format)

The audio data bytes of the synthesized voice.

A base64-encoded string.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the app resource:

  • ces.apps.get

For more information, see the IAM documentation.