Forum Discussion
DAICHI_HADAMA
Jul 06, 2021Copper Contributor
Microphone permissions on desktop version Teams
Hello. I'm developing a Teams custom app that translates speech into text by speech recognition. I want to make a web app that converts voice into text available in Teams tabs. The problem i...
HunaidHanfee-MSFT
Jul 14, 2021Former Employee
Hello DAICHI_HADAMA ,
We tried to do it at our end and we didn't face any issue on Teams desktop application.
Following are the repro steps from our end -
- We hope that your app manifest's context for configurableTabs includes the following:
Please refer the following doc for further details about specific context :"context":[ "channelTab", "privateChatTab", "meetingChatTab", "meetingDetailsTab", "meetingSidePanel", "meetingStage" ] - Make sure that microphone is in Allowed state. (you can find the microphone icon at top-right corner of address bar as in below screenshot)
- Once you allow the permission to use microphone, the app instance remembers it until you are logged in the same session. To check if the microphone permission is granted you can use this:
navigator.permissions.query({name:'microphone'}).then(function(result) { alert(result.state); }); - We have used the following method for testing microphone functionality at our end:
navigator.mediaDevices.getUserMedia({ audio: true, video: true })
Thanks,
Hunaid Hanfee
--------------------------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.