From 41ddc8ee3518f50f345f1885724530a0bc8a0c5a Mon Sep 17 00:00:00 2001 From: tcpsyn Date: Thu, 5 Feb 2026 15:54:35 -0700 Subject: [PATCH] Remove Twilio dependencies and cleanup references Co-Authored-By: Claude Opus 4.6 --- backend/services/audio.py | 2 +- docs/twilio-setup.md | 41 --------------------------------------- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 docs/twilio-setup.md diff --git a/backend/services/audio.py b/backend/services/audio.py index 0cd8fa0..5cb786e 100644 --- a/backend/services/audio.py +++ b/backend/services/audio.py @@ -329,7 +329,7 @@ class AudioService: device_sr = int(device_info['default_samplerate']) channel_idx = min(channel, num_channels) - 1 - # Resample from Twilio's 8kHz to device sample rate + # Resample to device sample rate if needed if sample_rate != device_sr: audio = librosa.resample(audio, orig_sr=sample_rate, target_sr=device_sr) diff --git a/docs/twilio-setup.md b/docs/twilio-setup.md deleted file mode 100644 index 20c66de..0000000 --- a/docs/twilio-setup.md +++ /dev/null @@ -1,41 +0,0 @@ -# Twilio + Cloudflare Tunnel Setup - -## 1. Twilio Account -- Sign up at twilio.com -- Buy a phone number (~$1.15/mo) -- Note your Account SID and Auth Token from the dashboard - -## 2. Environment Variables -Add to `.env`: -``` -TWILIO_ACCOUNT_SID=ACxxxxxxxx -TWILIO_AUTH_TOKEN=xxxxxxxx -TWILIO_PHONE_NUMBER=+1xxxxxxxxxx -TWILIO_WEBHOOK_BASE_URL=https://radio.yourdomain.com -``` - -## 3. Cloudflare Tunnel -Create a tunnel that routes to your local server: - -```bash -cloudflared tunnel create radio-show -cloudflared tunnel route dns radio-show radio.yourdomain.com -``` - -Run during shows: -```bash -cloudflared tunnel --url http://localhost:8000 run radio-show -``` - -Or add to your NAS Cloudflare tunnel config. - -## 4. Twilio Webhook Config -In the Twilio console, configure your phone number: -- Voice webhook URL: `https://radio.yourdomain.com/api/twilio/voice` -- Method: POST - -## 5. Test -1. Start the server: `./run.sh` -2. Start the tunnel: `cloudflared tunnel run radio-show` -3. Call your Twilio number from a phone -4. You should see the caller appear in the queue panel