Forum Discussion

MaskedCucumber's avatar
MaskedCucumber
Copper Contributor
Apr 25, 2025

Custom announcement for teams compliance recording bot

Hello,

 

I’m trying to add custom announcement to compliance recording bot.

I tried first using powershell commands :

  • New-CsCustomPrompt
  • New-CsCustomPromptPackage
  • Set-CsTeamsComplianceRecordingPolicy -CustomPromptEnabled $True -CustomPromptsPackageId $PackageId

But all three commands raise the same exception stating there is a missing resource.

 

Then I tried using the bot itself, calling IAudioSocket.Send method, described here : https://microsoftgraph.github.io/microsoft-graph-comms-samples/docs/bot_media/Microsoft.Skype.Bots.Media.IAudioSocket.html

The announcement works, but every participant can hear the announce, which is not desired in our case.

 

Finally, I tried using audio routing groups, like described here : https://learn.microsoft.com/en-us/graph/api/call-post-audioroutinggroups?view=graph-rest-1.0&tabs=http

The call to the GRAPH API works, putting the bot as unique source, and one participant as receiver, but the announce is still broadcasted to all participants.

 

A few additions,

Retrieving all the audio routing groups failed, with the API described here : https://learn.microsoft.com/en-us/graph/api/call-list-audioroutinggroups?view=graph-rest-1.0&tabs=http

 

So my question : is there a way to change the default compliance recording bot announcement (“This call is being recorded”) by a custom one ?

 

Thank you for your answer !

3 Replies

  • Currently, there isn't a native way to change the default compliance recording bot announcement ("This call is being recorded") in Microsoft Teams. To achieve your requirements, we recommend you give your feedback in Teams Feedback Portal.

     

     

    Thanks, 

    Prasad Das 

    ------------------------------------------------------------------------------------------ 

    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. 

Resources