Microsoft Graph Communications APIs

K P, Ravi Kishore 1 Reputation point
2021-03-13T15:19:24.61+00:00

Hi. I am trying to build an IVR/Calling bot in MS Teams using Graph communications APIs.

  1. In some of the Graph Communication APIs, we need to send the field 'clientContext' like in the example below. I am not sure what the value is supposed to be.
    https://learn.microsoft.com/en-us/graph/api/call-playprompt?view=graph-rest-1.0
    Is it Just a random number that we can generate for each session? Please assist
  2. As mentioned in the documentation, IVR concepts would work if the call is initiated with ServiceHostedMediaConfig. What exactly is ServiceHostedMediaConfig and how is it different from ApplicationHostedMediaConfig ? How can we achieve both ? Please help me understand.
  3. I am trying to use the Speech Service SDK for Text-to-Speech and vice vera for my IVR bot. Please let me know which Audio format does Graph Communications API(say, playPrompt) expect from the below link of available formats.
    https://learn.microsoft.com/en-us/javascript/api/microsoft-cognitiveservices-speech-sdk/speechsynthesisoutputformat?view=azure-node-latest
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,582 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.
2,843 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sridevi-MSFT 261 Reputation points
    2021-04-02T11:24:51.317+00:00

    Posting the Answer for better knowledge.
    Copying from @Wajeed-MSFT comments.

    Did you look at Calling and Meeting bots documentation? I could see few samples here using callId being used as clientContext in sample code, check if that sample helps.

    0 comments No comments