Skip to content

voisona-talk-api


voisona-talk-api / RequestSpeechSynthesisParams

Interface: RequestSpeechSynthesisParams

Defined in: types.ts:182

Parameters for requesting speech synthesis.

Properties

analyzed_text?

optional analyzed_text?: string

Defined in: types.ts:194

TSML analyzed text. Max 50000 characters. If provided, 'text' is ignored.


can_overwrite_file?

optional can_overwrite_file?: boolean

Defined in: types.ts:200

Whether to overwrite the output file. Defaults to false.


destination?

optional destination?: Destination

Defined in: types.ts:196

Destination of the output sound. Defaults to 'audio_device'.


force_enqueue?

optional force_enqueue?: boolean

Defined in: types.ts:202

Whether to force enqueue by removing old requests. Defaults to false.


global_parameters?

optional global_parameters?: GlobalParameters

Defined in: types.ts:204

Global synthesis parameters.


language

language: string

Defined in: types.ts:184

Language code (e.g., "ja_JP"). Required.


output_file_path?

optional output_file_path?: string

Defined in: types.ts:198

Absolute path for output file. Required if destination is 'file'.


phoneme_durations?

optional phoneme_durations?: number[]

Defined in: types.ts:209

Requested phoneme durations in seconds. -1 means automatic.


text?

optional text?: string

Defined in: types.ts:189

Source text. Max 500 characters. Required if analyzed_text is not provided.


voice_name?

optional voice_name?: string

Defined in: types.ts:211

Specific voice name to use.


voice_version?

optional voice_version?: string

Defined in: types.ts:213

Specific voice version to use.