SDK reference / Models / Ai

RunSpeechRequest

Kind: class

Namespace: Egulu.Sdk.Models.Ai

Runs one speech operation.

Properties

NameTypeJSON nameDescription
AudioBase64string?audioBase64For `transcribe`: a WAV file, base64: 16-bit PCM, mono or stereo, 8 to 48 kHz, at most 16 MiB and 600 seconds. A longer file or an object of a bucket goes through a batch job.
ContentTypestring?contentTypeFor `transcribe`: audio/wav (the default); must match the bytes.
OptionsModels.Ai.RunSpeechRequest_options?optionsFor `transcribe`: `language` (`auto` or a code, default auto) and `timestamps` (`word`, `segment` or `none`, default `word`). For `synthesize`: `voice` (an ID of `voices`) and `speed` (0.5 to 2.0, default 1.0).
RequestIdstring?requestIdThe request ID charged once per project.
Textstring?textFor `synthesize`: the text to read, at most 5,000 characters.