Giter VIP home page Giter VIP logo

intercom's Introduction

Welcome!

InterCom is a low-latency full-duplex intercom(municator) designed for the transmission of media (audio and video) between networked users.

Implementation

InterCom is written in Python and uses the python-soundevice package. InterCom implements the following steps:

  1. Read raw data from the audio ADC.
  2. Encode the raw data.
  3. Send the encoded data to the interlocutor.
  4. Receive encoded data from the interlocutor.
  5. Decode the encoded data.
  6. Write the raw data to the audio DAC.

The Steps 2 and 4 are CPU bound (the rest are IO bound). For this reason, Intercom runs two parallel tasks:

  1. CES (Capture Encode and Send), which samples, process and sends the media (currently only audio) towards an Internet end-point.
  2. RDP (Receive Decode and Play), that receives the media, decodes and plays it.

CES (Steps 1, 2 and 3) and RDP (Steps 4, 5, and 6) are run in two different processes, which share information about the data-flow control that CES must perform. A further multiprocessing decomposition could be performed in E (Encode) and D (Decode) steps.

Configurations

1. One-to-one intercommunication

   Host A           Host B
+---------+      +---------+
|   CES   |----->|   RDP   |
|---------|      |---------|
|   RDP   |<-----|   CES   |
+---------+      +---------+

Each host runs a instance of InterCom.

2. Many-to-many intercommunication

      Host A            Host B
   +---------+       +---------+
   |   CES   |------>|   RDP   |
   |---------|       |---------|
   |   RDP   |<------|   CES   |
   +---------+       +---------+
   +---------+       +---------+
+--|   CES   |    +->|   RDP   |
|  |---------|    |  |---------|
|  |   RDP   |<-+ |  |   CES   |--+
|  +---------+  | |  +---------+  |
|        +------+ +------+        |
|        |  +---------+  |        |
|        +--|   CES   |  |        |
|           |---------|  |        |
+---------->|   RDP   |  |        |
            +---------+  |        |
            +---------+  |        |
            |   CES   |--+        |
            |---------|           |
            |   RDP   |<----------+
            +---------+
               Host C          

Each host runs two instances of InterCom.

intercom's People

Contributors

vicente-gonzalez-ruiz avatar meoko97 avatar jarh57 avatar panteleevnikita avatar antoniojesu avatar gervillaesphoto avatar juanrdzbaeza avatar jmmateo14 avatar mohahnina avatar alcoiz avatar fga432 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.