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.4.tar.gz (13.0 MB 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.4-py3-none-any.whl (13.0 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spectoconvo-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e54c62ee236578cc180e1f37c142efac022e6eb76da036e59b9049c2fe37882b
MD5 35d454eb5a5d9b13b25f46ee009a0df0
BLAKE2b-256 c3e181f79f38abcab336bee1f5cade235413d41e279f6cbc3097a4535a865d66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spectoconvo-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 13.0 MB
  • 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5ccf906e94d3b8555419817080715d042a63aac300ac162dfd460ac10d81b857
MD5 49ba395b408a316308c2efc03bb49f62
BLAKE2b-256 9c71348e1a25941d32c9b13b8ebdf5a55b0d2eb601bed556b01604876de33c06

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