Skip to main content

Text to Speech Node

The Text to Speech node converts text into speech using a selected AI model and outputs the audio. This powerful node enables you to create audio content from written text, making it ideal for accessibility features, language learning applications, audio content generation, and interactive voice experiences.

Text to Speech node


Basic Usage

Use the Text, Text Input, Text to Speech, and Play Sound for your process.


Inputs

The Text to Speech node accepts the following input:

  • Input: The text content to be converted into speech audio.

Outputs

  • Output: The generated audio file containing the synthesized speech.

Configuration

Voice Model Selection

Select the AI voice model to use for speech synthesis:

  • OpenAI Alloy: Neutral and balanced voice suitable for general-purpose applications
  • OpenAI Echo: Clear and articulate voice ideal for educational content
  • OpenAI Fable: Warm and expressive voice perfect for storytelling
  • OpenAI Onyx: Deep and authoritative voice for professional content
  • OpenAI Nova: Energetic and engaging voice for dynamic presentations
  • OpenAI Shimmer: Soft and gentle voice suitable for calm narration
  • ElevenLabs Models: Premium voice models with advanced naturalness and emotion (if available in your instance)
  • Other supported models: Additional voice models available in your LearningFlow instance

Usage

Setting Up Text to Speech

  1. Add the node to your flow canvas.
  2. Select Voice Model: Choose the AI voice model that best fits your content and audience.
  3. Connect Input: Link from upstream nodes (e.g., Text Input, Form Node, Display Text, AI General Prompt) to provide the text content.
  4. Connect Output: Link to downstream nodes (e.g., Play Sound, Document Download) to use the generated audio.

Example Workflows

Story Narration

Scenario: Create an interactive story narration tool that converts written stories into audio for an immersive listening experience.

Text to Speech Example

Steps to Create the Flow:

  1. Add a Start Node.

  2. Add and connect a Text Input field for the story text.

    • Example for Text Input:
    Once upon a time, in a kingdom where the flowers bloomed all year round and the rivers sparkled 
    under the gentle sun, there lived a fairy named Rosalind
  3. Add and connect a Text to Speech Node.

    • Connect the Text Input's Output to Text to Speech's Input
  4. Add and connect a Play Sound node.

    • Connect the Text to Speech's Output to Play Sound's Input

Result: Users can input any story text and hear it narrated in a natural voice, creating an engaging audio storytelling experience.