---
schema_version: "1"
id: 36174ae2bbb40ce582b7edc0acd92c9f3dd9240ecff973d0f34797aee83863c6
title: Convert Text to Speech Action (Beta)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_text_to_speech.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_text_to_speech.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2fd73ba68c7631a52e1ac4d518434757beaa878f24a5efa98aaf5f6315fd3de7
description: Add the Convert Text to Speech action to a flow to convert text to spoken audio.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Convert Text to Speech Action (Beta)

Add the Convert Text to Speech action to a flow to convert text to spoken audio.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. In the Action field, search for Convert Text to Speech, and select **Convert Text To Speech**.

## Set Input Values

 
| Field | Description |
| --- | --- |
| **Input Text** | Required. The text to convert to spoken audio. |
| **Voice Speed** | Optional. The playback speed of the generated speech. |
| **Voice Stability** | Optional. The steadiness and consistency of the generated voice. Lower values can produce more expressive speech, while higher values produce more stable speech output. |
| **Voice ID** | Optional. The identifier of the voice used to generate the spoken audio. |
| **File Output** | Optional. Specifies whether the response returns audio as a file output instead of Base64-encoded audio. The default is false. |

## Store Output Values

 
| Field | Description |
| --- | --- |
| **Converted Audio** | The spoken audio generated from the input text, returned as Base64-encoded output. |

Use this action in a Flow to convert text into spoken audio. By default, the output is returned in Base64-encoded format. You can optionally return audio as a file output by setting File Output to true, and use the generated audio in subsequent Flow elements or custom playback components.

## Considerations

- The action consumes Flex Credits through the Digital Wallet based on the applicable rate card.
- The action is subject to invocation limits per minute. Requests that exceed the limit fail.
- The invocation limit is 100 requests per minute.
- The action returns a Base64-encoded audio string and doesn’t automatically play or store the generated audio.
- When file output is set to true, ensure that downstream elements handle file output appropriately.
- Processing time can vary based on input size and system load.