Git Product home page Git Product logo

acoustic-signal-communication's Introduction

README

本项目实现了基于声波的通讯系统,可以在两台设备之间传递任意长度 ASCII 字符串。

程序结构

  • sender.py:发送端代码,输入待发送的 ASCII 字符,输出名为output.wav的文件。
  • receiver.py:接收端代码,运行代码开始监听,在录制时间结束后自动停止,在命令行中输出解码的二进制结果与 ASCII 字符结果,并将解码的 ASCII 字符通过可视化弹窗进行弹出。
  • preamble.wav:是receiver.py的依赖文件,保存了 preamble 的波形数据,便于相关性计算。

使用方法

  • 首先在发送端设备上运行发送端代码,输入待发送字符串。当output.wav文件生成后,程序执行结束;
  • 在接收端设备上运行receiver.py代码进行监听;
  • 在发送端设备上播放output.wav
  • 监听结束,弹出解码结果。

acoustic-signal-communication's People

Contributors

exlinnn avatar

Stargazers

 avatar

Watchers

 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.