A simple image to sound conversion python script.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

28 lignes
1.3 KiB

il y a 5 ans
  1. # Simtsou
  2. A simple image to sound conversion python script. For now, this script only support output to .wav audio format only (which is lossless audio format). More lossless audio format will coming soon in future version. Its recommended to use lossless picture format for better quality output :)
  3. Usage help:
  4. usage: simtsou.py [-h] [-r] [-i] [-o OUTPUT] [-b BOTTOM] [-t TOP] [-p PIXELS]
  5. [-s SAMPLING]
  6. INPUT_FILE
  7. positional arguments:
  8. INPUT_FILE Name of the image to be converted.
  9. optional arguments:
  10. -h, --help show this help message and exit.
  11. -r, --rotate Rotate image 90 degrees for more sexy spectograph looks and sound.
  12. -i, --invert Invert image colors.
  13. -o OUTPUT, --output OUTPUT Name of the output wav file. Default value: out.wav.
  14. -b BOTTOM, --bottom BOTTOM Bottom frequency range. Default value: 200.
  15. -t TOP, --top TOP Top frequency range. Default value: 20000.
  16. -p PIXELS, --pixels PIXELS Pixels per second. Default value: 30.
  17. -s SAMPLING, --sampling SAMPLING Sample rate. Default value: 44100.