> For the complete documentation index, see [llms.txt](https://docs.myshell.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myshell.ai/create/pro-config-mode/api-reference/module/anywidget-module/tts-widget.md).

# TTS Widget

Widget in Workshop

![Untitled](/files/ke8vwBJgz2jFLw4yIrhd)

Config

Fields besides `widget_id` and `output_name`

| Field's Name | JSON Type (Required/Optional) | Description                                           | Example  |
| ------------ | ----------------------------- | ----------------------------------------------------- | -------- |
| content      | string (Required)             | User input message processed by language models.      | ‘Hello.’ |
| speed        | number (Optional)             | Speed of audio. The number should be between 0 and 2. | '1.5'    |

Example

```json
{
  "id": "test",
  "initial": "home_state",
  "states": {
    "home_state": {
      "inputs": {
        "read_text": {
          "type": "text",
          "user_input": true
        }
      },
      "tasks": [
        {
          "name": "any_module_test_task",
          "module_type": "AnyWidgetModule",
          "module_config": {
            "widget_id": "1743159010695057408",
            "content": "{{read_text}}",
            "speed": 1,
            "output_name": "result"
          }
        }
      ],
      "render": {
        "text": "{{read_text}}",
        "audio": "{{result}}",
        "buttons": [
          {
            "content":"Listen Again",
            "description":"",
            "on_click":"listen"
          }
        ]
      },
      "transitions": {
        "listen": "home_state"
      }
    }
  }
}
```
