# Setting up triggers for specific words (sounds) in an audio file

**URL:** <https://qa.fmod.com/t/setting-up-triggers-for-specific-words-sounds-in-an-audio-file/19896>\
**Category:** FMOD Engine\
**Tags:** android, cpp\
**Created:** [February 21, 2023, 11:54am UTC](https://qa.fmod.com/t/setting-up-triggers-for-specific-words-sounds-in-an-audio-file/19896 "2023-02-21T11:54:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_intelligent\_bein](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@the\_intelligent\_bein](https://qa.fmod.com/u/the_intelligent_bein)\
**Post date:** [February 21, 2023, 11:54am UTC](https://qa.fmod.com/t/setting-up-triggers-for-specific-words-sounds-in-an-audio-file/19896/1 "2023-02-21T11:54:58Z")

</div>

Hi, everybody. I have a wav file with me. I want to display subtitles for this file. But the problem is I want to display each word one by one. Also, the tempo of this file (as well as pitch) can be dynamically changed by the user. So, in this situation, I want to apply (sort of) triggers at each sound(word) from this audio file in Fmod Studio which can somehow tell my code to display that particular word at perfect sync with the audio file.

Please help me with implementing these triggers in Fmod Studio and also how to use them in the code.  
Thanx in advance

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [February 22, 2023, 8:29am UTC](https://qa.fmod.com/t/setting-up-triggers-for-specific-words-sounds-in-an-audio-file/19896/2 "2023-02-22T08:29:43Z")

</div>

You should probably put markers in the logic track at places you want a word to appear, and retrieve those markers in the code with callbacks.

---

<div class="post-metadata">

**Author:** ![the\_intelligent\_bein](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@the\_intelligent\_bein](https://qa.fmod.com/u/the_intelligent_bein)\
**Post date:** [February 22, 2023, 1:00pm UTC](https://qa.fmod.com/t/setting-up-triggers-for-specific-words-sounds-in-an-audio-file/19896/3 "2023-02-22T13:00:02Z")

</div>

But do they adjust automatically while changing the tempo and/or pitch ? And also which markers specifically? Like tempo marker ? Destination marker?

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [February 22, 2023, 1:17pm UTC](https://qa.fmod.com/t/setting-up-triggers-for-specific-words-sounds-in-an-audio-file/19896/4 "2023-02-22T13:17:52Z")

</div>

Destination markers. Yes, they will stay in sync with the playhead, so they will always match the same part of the audio, as long as you’re using sync instruments. How do you modify the tempo/pitch exactly? With the “pitch” event macro?

---

<div class="post-metadata">

**Author:** ![the\_intelligent\_bein](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@the\_intelligent\_bein](https://qa.fmod.com/u/the_intelligent_bein)\
**Post date:** [February 22, 2023, 2:18pm UTC](https://qa.fmod.com/t/setting-up-triggers-for-specific-words-sounds-in-an-audio-file/19896/5 "2023-02-22T14:18:00Z")

</div>

I would use “Channel::setPitch” and “Sound::setMusicSpeed” to change tempo and pitch. However, if I change the tempo I don’t want the pitch to be changed and vice versa so I may use these more than a single time on the same audio
