This repo shows you how to take Phone Calls on Twitch
Requirements:
- Node version 10.19.0 or later (check version in your terminal with
node -v
). - A Twilio account.
- A Twilio Number
- A Twilio API Key & Secret Create an API Key & Secret in the Console.
- The Twilio CLI. Install the CLI for your operating system and login with your Twilio account credentials using twilio login.
- NGROK installed (For local testing)
After cloning this repository, install dependencies with npm
:
npm install
Copy and rename the .env config example and fill in the ACCOUNT_SID
,API_KEY
, and API_SECRET
cp serverless/.env.sample .env
npm start
ngrok http 3000
twilio phone-numbers:update [YOUR_NUMBER_HERE] --voice-url https://xxxxxxxx.ngrok.io/twilio
Start OBS from Command Line with flag 'enable-media-stream'
Windows cmd:
C:\Program Files\obs-studio\bin\64bit>obs64.exe --enable-media-stream
macOS terminal:
/Applications/OBS.app/Contents/MacOS/OBS --enable-media-stream
Create a new browser source and give it your ngrok url. Set the width and height to equal your streaming resolution.
Open a new browser window and navigate to your https://[[your-url]/dialpad
Give your Twilio number a call. You should hear the phone ringing on OBS. Answer it from the control page and start talking!!
- [ ]...
This project adheres to the Twilio Labs Code of Conduct.
This project welcomes contributions. Please check out our contributing guide to learn more on how to get started.