Skip to main content

A package to embed messages into spectrograms

Project description

Spectoconvo

Spectoconvo is a Python package to embed messages into spectrograms.

Installation

You can install the package using pip:

pip install spectoconvo

Usage

Here's an example of how to encode a message using spectoconvo package:

from spectoconvo import add_message_to_spectrogram

sound_file = 'audio.wav'

message = 'Hello, Spectrogram!'

output_file = 'output_spectrogram.png'

output_sound_file = 'output_with_message.wav'

output_spectrogram_file = 'output_with_message_spectrogram.png'

changes_spectrogram_file = 'changes_spectrogram.png'

image_path = 'output_image.png'

scale_freq,scale_time=add_message_to_spectrogram(sound_file, message, output_file, output_sound_file, output_spectrogram_file, changes_spectrogram_file, image_path,scale_freq,scale_time)

Edit scale_freq and scale_time to scale the message in the spectrum after running the drfult setting, the defult is to the largest message possibe with the at 20 kHz.

Here's an example of how to decode a message using spectoconvo package:

from spectoconvo import add_message_to_spectrogram


sound_file_to_decode = 'output_with_message.wav'


image_path = 'output_image_decode.png'

decode( sound_file_to_decode, image_path)

Multiple languages are suported and would like to suport as many as possible so please make an issue for more languages.

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

spectoconvo-0.1.3.tar.gz (303.0 kB view details)

Uploaded Source

Built Distribution

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

spectoconvo-0.1.3-py3-none-any.whl (302.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spectoconvo-0.1.3.tar.gz
  • Upload date:
  • Size: 303.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for spectoconvo-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dbdc67963587ab5f65b2010475a09eb334a16f1aa7434571a8a74bda14fb83e1
MD5 93bc89ac4f6824d550e66e204973a404
BLAKE2b-256 46cfdf44cfd262d4d2b804c90cc813c40444ce594bc1113a075f5299e3e400db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spectoconvo-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 302.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for spectoconvo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 31f99db7fce7dfb51a37cf640b72c728aa021f6f29815d94aad10de509231531
MD5 3a6f511db0aed8ba7814a4be97500a1b
BLAKE2b-256 2e931400cf231cc32708157a50a8f3ae6bbe43bb3e657bb53aff81f8aa3f2105

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