# Is there a way to listen to events such as Mouth Open through the SDK API?

**URL:** <https://forum.deepar.ai/t/is-there-a-way-to-listen-to-events-such-as-mouth-open-through-the-sdk-api/432>\
**Category:** Studio\
**Created:** [September 27, 2023, 1:48pm UTC](https://forum.deepar.ai/t/is-there-a-way-to-listen-to-events-such-as-mouth-open-through-the-sdk-api/432 "2023-09-27T13:48:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnmth](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/mnmth/32/634_2.png) [@mnmth](https://forum.deepar.ai/u/mnmth)\
**Post date:** [September 27, 2023, 1:48pm UTC](https://forum.deepar.ai/t/is-there-a-way-to-listen-to-events-such-as-mouth-open-through-the-sdk-api/432/1 "2023-09-27T13:48:14Z")

</div>

Hi 🙂  
I would like to know if the SDK API allows for listening to events such as Mouth Open, Mouth Closed etc. I can’t seem to find it. If it’s not there, is there any other way that would allow to dynamically inject some input/code into the effect from an app?  
Thanks

---

<div class="post-metadata">

**Author:** ![igor](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/igor/32/547_2.png) [@igor](https://forum.deepar.ai/u/igor)\
**Post date:** [September 28, 2023, 9:33am UTC](https://forum.deepar.ai/t/is-there-a-way-to-listen-to-events-such-as-mouth-open-through-the-sdk-api/432/2 "2023-09-28T09:33:12Z")

</div>

The closest there is to that is the [`AnimationTransitionedCallback`](https://docs.deepar.ai/deepar-sdk/deep-ar-sdk-for-android/api-reference/ai/deepar/ar/DeepAR.AnimationTransitionedCallback.html) callback. If used with an effect that has empty animations triggered when e.g. the mouth is opened, you can run some code when the mouth is open.

Otherwise, if you use [scripting](https://docs.deepar.ai/scripting/api-reference/index.html) in the Studio, you can set variables for scripting from your app using the [`set*Var`](https://docs.deepar.ai/deepar-sdk/deep-ar-sdk-for-android/api-reference/ai/deepar/ar/DeepAR.html#setBoolVar-java.lang.String-boolean-) functions.

---

<div class="post-metadata">

**Author:** ![mnmth](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/mnmth/32/634_2.png) [@mnmth](https://forum.deepar.ai/u/mnmth)\
**Post date:** [September 29, 2023, 9:29pm UTC](https://forum.deepar.ai/t/is-there-a-way-to-listen-to-events-such-as-mouth-open-through-the-sdk-api/432/3 "2023-09-29T21:29:31Z")

</div>

@igor  
I will try that and report back. Thanks a lot 🙂
