# Speech Recognizer - Android DnD Issue

**URL:** https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042
**Category:** Questions about Thunkable X
**Created:** [February 26, 2022, 5:07am UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042 "2022-02-26T05:07:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![collabor8te.projectq](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@collabor8te.projectq](https://community.thunkable.com/u/collabor8te.projectq)
#### Post date: [February 26, 2022, 5:07am UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042/1 "2022-02-26T05:07:01Z")

</div>

Hi,

For me (Android) downloaded apk, the speech recognizer doesn’t request the user authorize the app to use the permission:

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

Just a button and a label. All I get is the error ‘…requires permission…’

The same code for StP **does** ask the user on first hitting the button.

---

<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: [February 26, 2022, 5:20am UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042/2 "2022-02-26T05:20:36Z")

</div>

Here are my results in Thunkable Live. I haven’t tested a downloaded apk file yet.

On my Android phone (OnePlus Nord N10 5G), I get the following alert when I tap the button using your blocks:

 ![image000000](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/d/fd7375fb9637f53d1ff90398ff67b67eb61d6fa4.jpeg)

On my iPhone 11, I get two alerts asking for permission.

After allowing the permissions on each phone, it works to display the spoken words in the Label.

I also found the permissions setting on my Android phone in **Settings** → **Apps & notifications** → **App Permissions** → **Microphone** → **Thunkable**.

---

<div class="post-metadata">

### Author: ![collabor8te.projectq](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@collabor8te.projectq](https://community.thunkable.com/u/collabor8te.projectq)
#### Post date: [February 26, 2022, 6:07am UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042/3 "2022-02-26T06:07:46Z")

</div>

Thanks but I have never tried the Live App - always do an apk. I’d not rely on something which isn’t representative of the actual end state.

I confirm that I did the above test and the one from the other thread and in both cases, on DnD the permission was **not** requested whereas it was from Stp.

Of course I did look at the settings for each app. The StP one has a microphone permission in the list **but** the DnD version (code above) has **only** ‘Files and Media’ and ‘Phone’ listed on the permissions for the app (denied but available to turn on). Therefore for the exact same blocks’ intent, for me on my Android device (very new), DnD does not think it needs the Microphone permission…

---

<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: [February 26, 2022, 7:00am UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042/4 "2022-02-26T07:00:03Z")

</div>

You’re right. In the downloaded .apk file on my Android device, there is no way to allow microphone permissions. The app itself does not appear in the list of Microphone apps. And I get the same error message you’re seeing “Speech to text requires permission to record audio.”

I’ve reported the bug here:

> <https://github.com/thunkable/thunkable-issues/issues/1123>
>
> \### Platform
> Downloaded .apk files (Drag & Drop interface)
> 
> \### Steps to Repr…oduce
> 1. Add a speech recognition block
> 2. Download as .apk
> 3. Test the speech recognition.
> 
> \### Expected Behavior
> The speech should be recognized and displayed.
> 
> \### Actual Behavior
> An error message appears "Speech to text requires permission to record audio." In Thunkable Live, the app prompts for permission and then works correctly after permission is granted. The microphone permission can be enabled on the mobile device in Settings → Apps & notifications → App Permissions → Microphone → Thunkable. But the downloaded .apk app does not appear in Settings → Apps & notifications → App Permissions → Microphone. So there is no way to enable that permission. 
> 
> \### Project Link
> See the first screen of this project: https://x.thunkable.com/copy/71b5362c3da8a4272758a11de5006baf
> 
> \###Community Link
> \[If there's an ongoing discussion about this behavior in the Community, please link to it here
> \](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042)
> \`\`\`
> STACK TRACE AND/OR SCREENSHOTS
> \`\`\`

---

<div class="post-metadata">

### Author: ![collabor8te.projectq](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@collabor8te.projectq](https://community.thunkable.com/u/collabor8te.projectq)
#### Post date: [February 26, 2022, 10:17am UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042/5 "2022-02-26T10:17:24Z")

</div>

Thanks vm @tatiang

Is DnD labelled as Beta as it should be IMNSHO.

---

<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: [February 26, 2022, 4:55pm UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042/6 "2022-02-26T16:55:54Z")

</div>

It had been but I don’t see that designation now.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [May 27, 2022, 4:56pm UTC](https://community.thunkable.com/t/speech-recognizer-android-dnd-issue/1756042/7 "2022-05-27T16:56:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
