Skip to main content

Acoustic communication library for audio-based data transfer

Project description

SonicMesh

Acoustic Ultrasonic Data Transfer Library (Research Project)

SonicMesh is a Python library designed for high-frequency ultrasonic communication, enabling data transfer over audio. This project is part of ongoing research into ultrasonic FSK (frequency shift keying) communication and aims to push the limits of audio based data transmission particularly for file transfer tht includes images.

Features

  • Send text and files over sound using ultrasonic frequencies
  • 64-FSK encoder for efficient data transmission
  • FFT-based ultrasonic decoder for accurate reception.
  • WAV utils to save and read transmissions
  • Exoposes high-level APIs for quick experimentation

Goals

  • Enable high speed audio-based transfer of data (images and text for now).
  • Explore novel encoding strategies for ultrasonic communication.
  • provides a flexible library for research and experimentation

Installation

pip install sonicmesh

Quick Example

from sonicmesh import encode_message, transmit, decode_signal


#Encoding a message
signal = encode_message("Hello World!!")

# Transmit over speaker
transmit(signal)

# Decoding received signal (from WAV file for now - microphones later)
decoded = decode_signal("received.wav")
print(decoded)

Research Focus

SonicMesh is serious research project aiming to pushing the limits of acoustic communication where users can:

  • Experiment with ultrasonic-FSK transmissionn
  • Test basic audio-based file transfer, including images (altho its still underdeveloped since the FSK decoding is still not optimized).
  • Contribute to development of high-frequency data transmission techniques

Architecture Overview

SonicMesh internally consists of three major components:

  1. Encoder
  • Convert raw bytes/text into symbols
  • Maps each symbol to one of 64 frequencies (64-FSK)
  • Generates the final audio waveform for transmission
  1. Decoder
  • Performs FFT based frequency detection
  • extracts symbol sequences from the spectrogram
  • converts them back into bytes, text, or file data
  1. Acoustic Configuration Defines:
  • Sample Rate
  • Symbol Duration
  • Frequency Table
  • Bit depth per symbol (64-FSK -> 6 bits/ sybmol)

Roadmap

Planned areas of development:

  • High speed FSK enhancemeents for faster JPEG (and other file) transmission
  • Better noise robustness using windowing and adaptive thresholding
  • Microphone live decoding (real-time RX path)
  • Spectrogram visualization tools for debugging
  • Higher-order modulation (128-FSK or chirp based systems)
  • Erorr correction codes (Hamming, BCH, or even Reed-Solomon)

Current Limitations

To set the correct expectations:

  • File transfer works but is slow at the moment
  • FFT decoding still needs a lot of optimization and noise filtration
  • Microphone live receive is still in experimental / "in-progress" stage.

Contributing

Contributions are welcome especially inL

  • Audio signal processing
  • optimizing fsk encoding/decoding
  • increasing data transfer speed

All contributions should maintain the research oriented and experiment nature of the project.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonicmesh-0.1.3.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonicmesh-0.1.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file sonicmesh-0.1.3.tar.gz.

File metadata

  • Download URL: sonicmesh-0.1.3.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for sonicmesh-0.1.3.tar.gz
Algorithm Hash digest
SHA256 113d9b821e71a968c46d606bcfbe8ef9552dfed3be606f54930056cf8d48e0cb
MD5 efa5c65b91a872454acffdeb08529bcf
BLAKE2b-256 e4b582810b24bcb704908f796f13aa870a990deee29be193e136a5766dd64a09

See more details on using hashes here.

File details

Details for the file sonicmesh-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sonicmesh-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for sonicmesh-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d2839f070e4a8d8db3489cedc0aa0f4f9d209b4714e216e004bc14d3daf73a7
MD5 a69b45e153e4405d2b03fb15738054ff
BLAKE2b-256 466ad326682a1b1b0d69b285597009672b0377240538d403673626e83f7ca17d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page