How to enable microphone icon on my Azure bot on MS Teams Mobile App

Kevin John 15 Reputation points
2023-09-11T14:41:34.45+00:00

Hi I am trying to get speech input from users in my Azure Bot.

following the documentation, I have added devicePermission media to my Azure Bot manifest and uploaded it to teams. This has enabled the camera icon but the microphone icon is still disabled/not visible.

PFA screenshots

without media permissions -without_media

with media permission -with_media

Please let me know if I am missing anything. It is a client requirement to be able to send speech messages to the Azure Bot

Microsoft Teams | Development
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 8,981 Reputation points Microsoft External Staff Moderator
    2023-09-12T06:22:58.2666667+00:00

    To enable the microphone icon and allow users to provide speech input, you need to add the media device permission to your app manifest.

    "devicePermissions": [
      "media"
    ],
    

    As you have already done this as mentioned above and the microphone icon is still disabled or not visible after updating the app manifest, there could be a few reasons for this:

    1.Browser limitations: The microphone icon may be disabled or not visible due to browser limitations. Make sure you are using a supported browser for Teams, such as Microsoft Edge or Google Chrome.

    2.User permissions: Users may need to manually grant microphone access permissions in their browser settings. In some cases, users may need to explicitly allow microphone access for Teams.

    As you are using mobile devices, you can manage device permissions in Teams settings by selecting Allow or Deny permissions to specific apps.
    https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/device-capabilities/native-device-permissions?tabs=mobile%2Cteamsjs-v2%2Cmobile1#manage-permissions

    You can also refer this below sample to check the functionality:
    https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/tab-device-permissions/nodejs

    If you are still having any issue, do let us know so that we can investigate further.

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.