Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created June 4, 2024 02:01
Show Gist options
  • Save xximjasonxx/a07a0503f7b7c2ac749b5263069d8184 to your computer and use it in GitHub Desktop.
Save xximjasonxx/a07a0503f7b7c2ac749b5263069d8184 to your computer and use it in GitHub Desktop.
var playSource = new TextSource($"You are connected - Id: {callConnected.CallConnectionId}")
{
SourceLocale = "en-US",
CustomVoiceEndpointId = _configuration["CustomVoiceEndpointId"],
VoiceName = _configuration["NeuralVoiceName"]
};
await callMedia.PlayToAllAsync(playSource);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment