# \[SOLVED\] Speech recognition for app

**URL:** <https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694>\
**Category:** Issues / Bugs\
**Tags:** solved, beginner, help\
**Created:** [April 8, 2023, 4:28pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694 "2023-04-08T16:28:39Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 8, 2023, 4:28pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/1 "2023-04-08T16:28:39Z")

</div>

Hello 🥰 I try to make a speech practice app and used Speech recognition but It has some ploblem. when I try to speak my app always say “no”

Please Help me …

---

<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 8, 2023, 5:55pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/2 "2023-04-08T17:55:36Z")

</div>

The `[gear] list` block is causing the problem. You set the variable to a list but then are comparing it to a string (the green `value` block). You can’t really do that. Remove the `[gear] list` block.

🤪 I think that block should come with a warning message: “Are you SURE you want to use this block?” So many people misuse it. I would say I use it in less than 1% of the programming I do with Thunkable.

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 8, 2023, 6:24pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/3 "2023-04-08T18:24:15Z")

</div>

Here is the code … Is it correct ?

when I speak the sentence “ัyoure welcome” the app will show yes if I has correct pronounciation and “no” when I has wrong pronounciation  
please give me advice how to do the right code and thankyou so much for you help ❤ ❤

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 8, 2023, 6:27pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/4 "2023-04-08T18:27:08Z")

</div>

I’m really sorry. English is my 2nd language. 🥲

---

<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 8, 2023, 6:37pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/5 "2023-04-08T18:37:59Z")

</div>

That’s okay. You are setting the variable value to null. Do not do that. You erase its value when you set it to null.

You are also trying to use if/else conditions before you know if the speech to text is working.

Please try **only** a block that says set label’s text to [value]. When you do that, what is displayed?

---

<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 8, 2023, 8:08pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/7 "2023-04-08T20:08:15Z")

</div>

You’re welcome. What does Label Word’s text display when you say “you’re welcome”?

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 9, 2023, 4:30am UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/9 "2023-04-09T04:30:40Z")

</div>

I’ve read your advice again and again…  
Is it cerrect code for effective work?

( 🥲 🥲)

---

<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 9, 2023, 5:00am UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/10 "2023-04-09T05:00:57Z")

</div>

When you preview your app and say “you’re welcome” does it display “you’re welcom” (without the “e”)?

Can you share a link to your project?

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 9, 2023, 5:14am UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/11 "2023-04-09T05:14:10Z")

</div>

Of cause,  
[https://x.thunkable.com/copy/dc6106ce645e8ddaa1a4b1300e2b257a](https://x.thunkable.com/copy/dc6106ce645e8ddaa1a4b1300e2b257a)  
Here is my project 🥰  
(thank you so much ❤ ❤ ❤)

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 9, 2023, 7:34am UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/12 "2023-04-09T07:34:19Z")

</div>

Excuse me, How my project going on,Sir?  
and Is it correct? Sorry for asked you too much but I really confuse 🥲

---

<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 9, 2023, 7:40am UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/13 "2023-04-09T07:40:19Z")

</div>

When I say “May I help you”, your project displays “May I help you” but you are checking to see if it equals “may I help you” which is a different string. I would recommend converting the `green` value block to lowercase before comparing it.

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 9, 2023, 7:59am UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/14 "2023-04-09T07:59:00Z")

</div>

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

It is correct follow your recomanded,Sir?

---

<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 9, 2023, 8:43am UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/15 "2023-04-09T08:43:16Z")

</div>

Yes. But I would also put the `if app variable say = Label word's Text` blocks inside of the Recognize function.

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 9, 2023, 12:07pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/16 "2023-04-09T12:07:57Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/09fe45af59ef6c93a2859a583516e06aaff300c0.png)

Here is new… and Is it totally for good work,Sir?

P.S. Thank you for your recommanded so much that’s help me a lot!!!

---

<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 9, 2023, 4:11pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/17 "2023-04-09T16:11:15Z")

</div>

When you post a screenshot or a new question, you should tell us what works and what doesn’t work instead of asking us to figure that out.

Please try this:

Modified project link: [Thunkable](https://x.thunkable.com/copy/86830c017addbc4054e873fcd6c1b4e0)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/4/f4048fd75122de4a981d48ac47bc0caf551e6acd.png)

---

<div class="post-metadata">

**Author:** ![64309010041xm](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/64309010041xm/32/147292_2.png) [@64309010041xm](https://community.thunkable.com/u/64309010041xm)\
**Post date:** [April 9, 2023, 4:59pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/18 "2023-04-09T16:59:32Z")

</div>

Thank you for your suggestion, I will take it to make it better next time. I know the project has problems but I don’t know how to explain it clearly. 🥲 🥲 However, I respect you very much. and you really saved me ❤ 🙏

---

<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:** [April 10, 2023, 3:54pm UTC](https://community.thunkable.com/t/solved-speech-recognition-for-app/2363694/19 "2023-04-10T15:54:38Z")

</div>


