Skip to main content
POST
/
api
/
audioplayback
/
uploadAudioText
Upload text to synthesize audio
curl --request POST \
  --url https://api2.rhombussystems.com/api/audioplayback/uploadAudioText \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-scheme: <x-auth-scheme>' \
  --data '
{
  "audioPlaintext": "Welcome to our facility",
  "audioSSML": "<speak>Welcome to our facility</speak>",
  "description": "A welcome message for visitors",
  "displayName": "Welcome Message",
  "voiceId": "en-US-Neural2-F"
}
'
{
  "encodingFailure": false,
  "error": true,
  "errorMsg": "<string>",
  "invalidSSML": false,
  "synthesisFailure": false,
  "uuid": "AAAAAAAAAAAAAAAAAAAAAA",
  "warningMsg": "<string>"
}

Authorizations

x-auth-apikey
string
header
required

Your API key for Rhombus.

Headers

x-auth-scheme
string
default:api-token
required

Authentication scheme indicator ("api-token").

Required string length: 9

Body

application/json

Request to upload text for audio synthesis.

audioPlaintext
string | null

Plain text to synthesize into audio

Example:

"Welcome to our facility"

audioSSML
string | null

SSML markup for audio synthesis

Example:

"<speak>Welcome to our facility</speak>"

description
string | null

Description of the audio clip

Example:

"A welcome message for visitors"

displayName
string | null

Display name for the audio clip

Example:

"Welcome Message"

voiceId
string | null

Voice ID for text-to-speech synthesis

Example:

"en-US-Neural2-F"

Response

200 - application/json

OK

Response from uploading text for audio synthesis.

encodingFailure
boolean | null

Indicates if audio encoding failed

Example:

false

error
boolean | null
errorMsg
string | null
invalidSSML
boolean | null

Indicates if SSML markup is invalid

Example:

false

synthesisFailure
boolean | null

Indicates if text-to-speech synthesis failed

Example:

false

uuid
string<RUUID> | null

base 64 (url-safe) uuid string

Example:

"AAAAAAAAAAAAAAAAAAAAAA"

warningMsg
string | null