Skip to main content

NusaPlaceholder Interface

Declares settings of a placeholder in the Nuance SpeechKit.

Declaration

export interface NusaPlaceholder

Remarks

A Nuance SpeechKit command can include placeholders in the phrase. Use the NusaPlaceholder interface to declare custom placeholders.

Properties

description Property

Specifies the placeholder description.

Declaration

description: string

Property Value

Type Description
string

The description text.

id Property

Specifies the unique identifier of the placeholder.

Declaration

id: NusaRichEditPlaceholderId

Property Value

Type Description

The placeholder identifier.

Remarks

A placeholder identifier must not contain spaces or numbers.

values Property

Contains the placeholder’s available values.

Declaration

values: ({
    spokenForm: string;
    value: string;
} | string[])[]

Property Value

Type Description
string[] | {spokenForm: string, value: string}[]

An array of objects that contain spoken forms and corresponding values for the placeholder or an array of stings if spoken forms match the values.