> For the complete documentation index, see [llms.txt](https://docs.febucci.com/text-animator-unreal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.febucci.com/text-animator-unreal/typewriter/play-sounds-when-a-letter-is-shown.md).

# Play sounds when a letter is shown

To implement typewriter sounds in your game, you can subscribe to the Typewriter’s “`FOnCharacter`” delegate and play sounds based on it.

The delegate passes a "FString" as a parameter, so you can play different sounds based on different letters as well.

*P.S. The delegate is also triggered with spaces, so be sure to play sounds based on the type of character you prefer.*

***

### Example Plugin <a href="#example-package" id="example-package"></a>

As an example, you can download and enable the “TextAnimatorFebucciExtras” plugin from our website and check its implementation. Once downloaded, make sure the engine is closed and extract the contents of the .zip in this path of your project:&#x20;

**\<your\_project\_root>/Content/Plugins/TextAnimatorFebucciExtras**

Then open up Unreal again and it should detect the plugin in the plugin's list.

Inside the extras, you will find the Extra\_TypewriterSound level, some audio clips and a Widget Blueprint. By opening and playing the level, you'll see some typewritten text which produces typewriting SFX. Finally, by opening the blueprint you can see how the example was implemented.

![Blueprint implementation of typewriting SFX](/files/ajeWK5P1nHwbuDVlMDgh)

<table><thead><tr><th width="221">Variable</th><th>Explanation</th></tr></thead><tbody><tr><td><code>MinSoundDelay</code></td><td>Minimum time that has to pass before playing another sound</td></tr><tr><td><code>RandomSequence</code></td><td>If true, the next audio clip to play will be chosen randomly from the “Sounds” array. If false, sounds will be played subsequently</td></tr><tr><td><code>Sounds</code></td><td>Typewriter sounds to play</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.febucci.com/text-animator-unreal/typewriter/play-sounds-when-a-letter-is-shown.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
