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)

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spectoconvo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e557efdc8562fd26ef7094d5067045358d13b9f62f9063640c4075610d9c038d
MD5 6e16624a56af4987a21ab7e60c2c9a89
BLAKE2b-256 d8f9664ff706c736b29d6b5ec425497762f3cb604ffecec4ceea0af75754c988

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spectoconvo-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for spectoconvo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6827e7229cbf69607825816b802afd65c6740cac10696cf25e022276ecbbac7c
MD5 410bd252eb885b2129ca086a8e175a32
BLAKE2b-256 a3313fcf41e1765d51b4af5d09fa94a38bcb0ee856fade0027df23a1284358a7

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