Need help with twilio active call real time voice transcription with Twilio and .net C# #955
Unanswered
ashish0218groot
asked this question in
General help
Replies: 1 comment 4 replies
-
Can you enable logging and then paste the trace here? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to transcribe real-time audio from Twilio and transcribe it using Deepgram.
While using ngrok I can get hit on my API and while my API key with owner key is being authenticated it is sending an error as the server returned status code 401 when 101 was expected. Help is much appreciated regarding this. Thanks
using Microsoft.AspNetCore.Mvc;
using Twilio.TwiML; // For VoiceResponse and TwiML elements
using Twilio; // For TwilioClient
using System.Net.Http.Headers;
using Microsoft.Extensions.Configuration;
using Twilio.TwiML.Voice;
using System.Net.WebSockets; // For WebSocket
using System.Text;
using System.Threading;
using System;
using System.Threading.Tasks; // Ensure this is included for System.Threading.Tasks.Task
using Newtonsoft.Json; // For JSON serialization
namespace TwilioDeepgramIntegration.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class TwilioController : ControllerBase
{
private readonly IConfiguration _configuration;
private readonly HttpClient _httpClient;
private ClientWebSocket _webSocket; // WebSocket connection to Deepgram
}
Beta Was this translation helpful? Give feedback.
All reactions