Skip to main content

Input

Type: String | TextStream | TTSRequest The data type that TTSNode accepts as input. See TextStream and TTSRequest for more details.

Output

Type: GraphTypes.TTSOutputStream The data type that TTSNode outputs

Examples

// Using provider configuration
const ttsNode = new RemoteTTSNode({
modelId: 'inworld-voice-v1',
temperature: 1.0,
speakingRate: 1.1,
sampleRate: 22050
});

// Using existing TTS component
const ttsNodeWithComponent = new RemoteTTSNode({
ttsComponent: existingTTSComponent
});

Constructors

Interfaces


Constructors

constructor

new RemoteTTSNode(props?: RemoteTTSNodeProps): RemoteTTSNode
Creates a new RemoteTTSNode instance.

Parameters

props
RemoteTTSNodeProps
Configuration for the TTS node.

Returns

RemoteTTSNode

Interfaces

RemoteTTSNodeProps

Configuration for RemoteTTSNode using provider settings.

Properties

speakerId?: string Voice configuration for synthesis languageCode?: string Voice configuration for synthesis modelId?: string Voice configuration for synthesis temperature?: number Voice configuration for synthesis speakingRate?: number Voice configuration for synthesis sampleRate?: number Voice configuration for synthesis ttsComponent?: AbstractComponent | RemoteTTSComponent Voice configuration for synthesis