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

Kevin John 5 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
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,107 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,255 questions
{count} votes

8 answers

Sort by: Most helpful
  1. Prasad-MSFT 6,776 Reputation points Microsoft Vendor
    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.

    0 comments No comments

  2. Kevin John 5 Reputation points
    2023-09-12T08:32:17.4833333+00:00

    Hi Prasad,

    Thanks for the quick reply.
    I am trying to use the microphone from the mobile app, so the first 2 points are not relevant for my issue. In regards to allowing permissions for the Microsoft Teams Application on the mobile device, I have given it the same permission as the camera, as shown in the image

    WhatsApp Image 2023-09-12 at 1.53.26 PM

    I am also able to use the microphone for personal chats with other users in my organization.
    WhatsApp Image 2023-09-12 at 1.53.26 PM(1)

    Its only having issues with the Azure Bot.

    I have also gone through the permission policies in the Microsoft Teams Admin portal and there are no custom permissions other than the global org-wide default policy which allows all apps.

    Any idea how I could investigate this issue further?

    This is my manifest JSON. Can you add this to your Teams and check if you are able to reproduce the issue?

    {
      "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
      "manifestVersion": "1.5",
      "version": "1.0",
      "id": "bc25efc5-5b5b-4a97-8bbe-7d711cf44c5e",
      "packageName": "com.microsoft.teams.auth",
      "developer": {
        "name": "AutomationEdge",
        "websiteUrl": "https://automationedge.com/",
        "privacyUrl": "https://www.teams.com/privacy",
        "termsOfUseUrl": "https://www.teams.com/termsofuse"
      },
      "name": {
        "short": "AE-OAuth-Test-Bot",
        "full": "AE-OAuth-Test-Bot with OAuth"
      },
      "description": {
        "short": "AE-OAuth-Test-Bot for testing OAuth",
        "full": "AE-OAuth-Test-Bot for testing OAuth"
      },
      "icons": {
        "outline": "Untitled1.png",
        "color": "Untitled.png"
      },
      "accentColor": "#FFFFFF",
      "bots": [
        {
          "botId": "bc25efc5-5b5b-4a97-8bbe-7d711cf44c5e",
          "scopes": [
            "personal"
          ],
          "supportsFiles": true,
          "commandLists": [
            {
              "scopes": [
                "personal",
                "groupChat"
              ],
              "commands": [
                {
                  "title": "Book Conference Room",
                  "description": "Helps user book a conference room"
                }
              ]
            }
          ]
        }
      ],
      "devicePermissions": [
        "media"
      ],
      "validDomains": [
        "token.botframework.com",
        "*.azurewebsites.net",
        "*.botframework.com"
      ]
    }
    

  3. Kevin John 5 Reputation points
    2023-09-22T05:36:07.1566667+00:00

    Hi @Prasad-MSFT I think replies to older comments don't send out notifications. Re-iterating my previous reply

    Thanks a lot for the quick response and for raising the bug. Is there anyway I can track the bug? It would be great if you can share the link of the issue raised on GitHub or the same for the alternative, to track the status of the bug.

    Is there a timeline on when we can expect this bug to get fixed?

    Marking your previous comment as accepted since I cannot mark replies to comments as accepted answer.

    Thanks and Regards,

    Kevin

    0 comments No comments

  4. Alain Milliet 0 Reputation points
    2024-05-22T18:20:45.0466667+00:00

    Hi @Prasad-MSFT , would you have an update to share on this question?

    We are looking for a way to let our users record an audio file directly in the conversation with our bot and send it to it.
    Only the camera icon is showing with the following entry added to the manifest.

    "devicePermissions": ["media"]
    
    

    Thanks in advance!

    Regards.

    Alain

    0 comments No comments

  5. Cristian Dragos Fedotov 0 Reputation points
    2024-08-05T18:39:41.77+00:00

    I have the exact same problem with a bot in Teams. I have added all the devicePermissions and the microphone icon is still not showing in the chat conversation with the bot. Any updates on this? Thanks in advance.


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.