Forum Discussion

esgaurav's avatar
esgaurav
Copper Contributor
Feb 14, 2024

Sample Code for a Bot Framework Bot making an outbound call and playing an audio stream?

Most of the samples for calling bots are for handling inbound calls, where the bot terminates a inbound call and responds to the user.

 

In our use case, we would like the bot to make an outbound Teams call to a user and play

(1) Stored media  - sound file
(2) Steaming media  - i.e an audio stream we get from someplace else such as a internet radio station (as an example to illustrate) or even the bot acting as a relay between two calls.

Are there any code samples or snippets available that illustrate a new outbound audio call to another teams user,  and attaching a stored or streaming media to the call. 

Resources