# Speech Recognizer Causes app to freeze

**URL:** <https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485>\
**Category:** Questions about Thunkable X\
**Created:** [April 7, 2021, 9:46am UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485 "2021-04-07T09:46:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![coinpedia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/coinpedia/32/99189_2.png) [@coinpedia](https://community.thunkable.com/u/coinpedia)\
**Post date:** [April 7, 2021, 9:46am UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/1 "2021-04-07T09:46:08Z")

</div>

The speech recognizer causes my app to crash on Thunkable Live and downloaded to my iOS device. It freezes before it says what the error was.

---

<div class="post-metadata">

**Author:** ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)\
**Post date:** [April 7, 2021, 12:32pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/2 "2021-04-07T12:32:37Z")

</div>

due to a lot of sceens?

---

<div class="post-metadata">

**Author:** ![coinpedia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/coinpedia/32/99189_2.png) [@coinpedia](https://community.thunkable.com/u/coinpedia)\
**Post date:** [April 7, 2021, 12:43pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/3 "2021-04-07T12:43:36Z")

</div>

I do have a lot of screens. Is there a known cap to how many screens I can have while having a working speech recognizer? Does it depend on the device?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 7, 2021, 2:54pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/4 "2021-04-07T14:54:40Z")

</div>

An app can freeze/crash for a variety of reasons. Can you post a screenshot of the blocks you’re using for speech recognition?

---

<div class="post-metadata">

**Author:** ![k1ng](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@k1ng](https://community.thunkable.com/u/k1ng)\
**Post date:** [September 27, 2021, 3:06pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/5 "2021-09-27T15:06:30Z")

</div>

Hi, I am.also facing the same issue. My app works on Android but on iPhone, it crashes the moment I click on speech… it crashes with this message

 ![Screenshot_20210927-203550_WhatsApp](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a6b04bfec1dcc17757306ce9c1a3a6363dc4897.jpeg)

Can someone please advice?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 27, 2021, 3:09pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/6 "2021-09-27T15:09:26Z")

</div>

When you ask for help on the forums, make sure to include screenshots of the blocks you’re using and/or a link to the project.

---

<div class="post-metadata">

**Author:** ![k1ng](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@k1ng](https://community.thunkable.com/u/k1ng)\
**Post date:** [September 28, 2021, 3:41pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/7 "2021-09-28T15:41:23Z")

</div>

Hi,  
Following to my post,sharing the screenshot  
The speech recognizer works well on android device but crashes the moment i click on button 4 in iOS.

(I tried on my uncle’s iPhone 12 pro max)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e2c107ff13c5f5de0c755f706f7c37f813bbdc21.png)

I am a Grade 4 student from India, please let me know if i am not sharing enough information on my post.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 28, 2021, 5:19pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/8 "2021-09-28T17:19:52Z")

</div>

As a good coding practice, avoid assigning values to variables / labels before actually checking the **error** value. If there is an error then show it to the user and avoid running the rest of the codes.

See this example  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aa2e47f7bd912cef8d150c672319652d7bc427c1.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/speech-recognizer-causes-app-to-freeze/1210485/9 "2024-11-08T13:25:30Z")

</div>


