microsoftgraph / microsoftgraph/microsoft-graph-comms-samples

"Deliver Audio source media buffer" exception

Open
#525 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
253
Forks
275
Avg merge
1d 5h
Merged PRs (30d)
1

Description

Describe the issue
When trying to send an audiobuffer back on the audio socket, an exception of type "Microsoft.Skype.Bots.Media.SkypeMediaException" is thrown.
The inner exception contains "Deliver Audio source media buffer" string. It's not very helpful.

Code Snippet
public void SendAudio(AudioMediaBuffer buffer)
{
// Send the audio to our outgoing video stream
try
{
this.audioSocket.Send(buffer);
}
catch (Exception ex)
{
this.logger.Error(ex, $"[OnAudioReceived] Exception while calling audioSocket.Send()");
}
}

Expected behavior
I'm expecting a 16khz pcm audio file I'm sending down on the audio socket to be faithfully reproduced on the teams call.

Graph SDK (please complete the following information):

  • Version [e.g. 22]
image

Call ID
Provide the list call ids that encountered this issue. Include the time in UTC/GMT when these call have occurred.
The media session guid is, {79d7c8dc-9dca-467c-818a-0b061c804f39}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SendAudio method and the audioSocket.Send(buffer) call shown in the report. Reproduce the failure with the stated 16 kHz PCM input, then determine what additional media or call details are needed to explain the SkypeMediaException. Done means identifying a reproducible cause and a specific corrective change or diagnostic.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, audio-video-rtc
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.