Skip to main content
Version: Next

Function: parseVoiceStyle()

parseVoiceStyle(json): SupertonicVoiceStyle

Defined in: extensions/speech/utils/supertonicUtils.ts:196

Parses raw JSON voice style object data into Float32Arrays.

Parameters

json

any

The parsed JSON voice style object.

Returns

SupertonicVoiceStyle

Parsed SupertonicVoiceStyle containing styleTtl and styleDp Float32Arrays.

Throws

With code LOAD_FAILED if the voice style JSON format is invalid or missing required tensor data.

We are Software Mansion.