Skip to main content
Remote TTS (Text-to-Speech) node for audio synthesis. You can either use a pre-configured TTS component that could be reused across multiple nodes or provide synthesis configuration, and the node will create a new component for you. Input: String | GraphTypes.TextStream | GraphTypes.TTSRequest - The data type that RemoteTTSNode accepts as input Output: GraphTypes.Audio - The data type that RemoteTTSNode outputs Example:
// Using provider configuration
const ttsNode = new RemoteTTSNode({
  modelId: 'inworld-voice-v1',
  temperature: 1.1,
  speakingRate: 1.1,
  sampleRate: 22050
});

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

Constructor

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

Parameters

props (RemoteTTSNodeProps | RemoteTTSNodeWithTTSComponentProps) = {} Optional configuration for the TTS node. Can specify either TTS provider settings or reference an existing TTS component, but not both. If not provided, uses default settings.

Returns

RemoteTTSNode Overrides AbstractNode.constructor