Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace TtsOracleSpeechSettings

Settings to use for generating speech with a model from ORACLE family.

Properties

Optional outputFormat

outputFormat: OutputFormat

The format of audio in which the user wants the audio to be in. The supported output formats are:

  • MP3
  • OGG
  • PCM
  • JSON

Optional sampleRateInHz

sampleRateInHz: undefined | number

The sample rate of the generated audio. By default, the audio will be generated with speaker voice sample rate. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional speechMarkTypes

speechMarkTypes: Array<SpeechMarkTypes>

The kind of time stamp markings the user wants for the audio. This property should be provided if outputFormat is json, otherwise it will be ignored. null value (i.e. no value is not specified) indicates no speech marking. The supported speech mark types are:

  • SENTENCE
  • WORD

Optional textType

textType: TextType

The format in which the input text has been supplied i.e., Text or SSML. The supported text types are:

  • TEXT
  • SSML : This is only supported for en-US language.

Functions

getDeserializedJsonObj

getJsonObj