Code Monkey home page Code Monkey logo

python_modem's Introduction

Python Modem

Description

python modem is a tool for converting digital data into sound waves using various modulations. this tool also makes it possible to demodulate this data back into a binary form

in addition, it can also analyze modulated and demodulated sound waves and present them in a user-friendly graphic form

this program can also be used as a chatbot working via terminal or rest api

Info

Modulation Type implemented Max reliable baudrate
ASK ✅YES 2000bps
4-ASK ❌NO N/A
FSK ❌NO N/A
BPSK ❌NO N/A
QPSK ❌NO N/A

Installing

git clone [email protected]:wojlin/python_modem.git
cd python_modem
pip install -r requirements.txt

install PortAudio library before launching this project for the first time

sudo apt-get install libportaudio2 ; sudo apt-get install libasound-dev

Usage

modulate data given in parameters into sound wave using ASK modulation

python3 main.py modulate -m ASK --i "abcdefg" -o "<path>.wav"

modulate data given in parameters into sound wave using ASK modulation and play it

python3 main.py modulate -m ASK --i "abcdefg" -o "<path>.wav" -p

demodulate sound file using ASk demodulation and save its output to text file

python3 main.py demodulate -m ASK --i "<path>.wav" -o "<path>"

launch peer to peer communication program

python3 peer_to_peer.py

view all possible commands by using:

python3 main.py --help

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.