Search code examples
twiliotwilio-api

Twilio configure video peer to peer, no recording and recording audio with low sample rate?


I want to configure Twilio to record audio only, but with:

  • mono
  • Sample rate: 8Khz
  • Bitrate: 24 KBps

I know that I can define a RecordFilter to include or exclude audio/video ( for instance:

"rules": [
    {
      "type": "include",
      "kind": "audio"
    }

But how I can configure that video be managed as "peer to peer" ?

And also, How I can configure sample rate, mono and bitrate for the audio track?

Thanks in advance!


Solution

  • When you make a connection with Twilio Video, you can choose to connect peer to peer or via a group room. You cannot mix the two.

    Twilio can only record when you are using a room, it can't when you are using peer to peer because the media doesn't go through Twilio's servers. Twilio can only record when you connect through a group room.