> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cassidyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Text to speech

> Generate speech from text in a Workflow using static or dynamic content, with control over input limits, file naming, and generated audio.

Generate speech from text directly within a [Workflow](/workflows/overview). Use the generated audio in later Workflow actions, attach it to an email, or download it from the run results.

<Steps>
  <Step title="Add the action">
    In the Workflow builder, click **+** between blocks and select **Text to Speech** from the action library.

    <Frame>
      <img src="https://mintcdn.com/cassidy/8gkAfwjZ0eBfoBjo/images/reference/text-to-speech-img-0.png?fit=max&auto=format&n=8gkAfwjZ0eBfoBjo&q=85&s=a387f5b1643a353ee44ebca1c01cd604" alt="Workflow builder with the Text to Speech action selected" width="1236" height="770" data-path="images/reference/text-to-speech-img-0.png" />
    </Frame>
  </Step>

  <Step title="Enter the text">
    In the **Text** field, enter the content you want Cassidy to read aloud. You can [reference variables](/workflows/building#variables) from the trigger or previous actions to generate audio from dynamic content.

    Text to Speech accepts up to 4,096 characters. Some text may exceed the supported length even below that character count. If the final text is too long, the action stops and asks you to shorten it. Cassidy does not truncate the text or create a partial audio file.

    <Frame>
      <img src="https://mintcdn.com/cassidy/8gkAfwjZ0eBfoBjo/images/reference/text-to-speech-img-1.png?fit=max&auto=format&n=8gkAfwjZ0eBfoBjo&q=85&s=7388fbab7fe410d1b75342ffcf0a553d" alt="Text field showing the Text to Speech character limit" width="1345" height="1170" data-path="images/reference/text-to-speech-img-1.png" />
    </Frame>
  </Step>

  <Step title="Choose a file name">
    In the **File Name** field, enter a name for the generated audio file. Cassidy
    adds the `.mp3` extension automatically when needed. If you leave this field
    blank, Cassidy creates a timestamped file name.
  </Step>

  <Step title="Test the action">
    Run a test of your Workflow. When the action succeeds, the result contains an MP3 file that you can play or download. Click the generated output to listen to the audio.

    <Frame>
      <img src="https://mintcdn.com/cassidy/8gkAfwjZ0eBfoBjo/images/reference/text-to-speech-img-2.png?fit=max&auto=format&n=8gkAfwjZ0eBfoBjo&q=85&s=1438b5e972e498dfafde2f6bb6fa3427" alt="Successful Text to Speech Workflow result with a downloadable MP3 file" width="1000" height="250" data-path="images/reference/text-to-speech-img-2.png" />
    </Frame>
  </Step>

  <Step title="Use the audio in another action (optional)">
    Reference the Text to Speech output anywhere a later action accepts a file. For example, attach the MP3 to a [Send Email](/reference/actions/send-email) action.
  </Step>
</Steps>

## Related

* [Build a Workflow](/workflows/building)
* [Run and test Workflows](/workflows/running-and-testing)
* [Generate Image action](/reference/actions/generate-image)
