A simple image to sound conversion python script.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
kira1752 2c739d64cc Change the name of sampling_rate variable to sample_rate for better clarity and update readme file to include usage help and usage recommendation 6 年前
LICENSE Initial commit 6 年前
README.md Change the name of sampling_rate variable to sample_rate for better clarity and update readme file to include usage help and usage recommendation 6 年前
simtsou.py Change the name of sampling_rate variable to sample_rate for better clarity and update readme file to include usage help and usage recommendation 6 年前

README.md

Simtsou

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 :)

Usage help: usage: simtsou.py [-h] [-r] [-i] [-o OUTPUT] [-b BOTTOM] [-t TOP] [-p PIXELS] [-s SAMPLING] INPUT_FILE

positional arguments:
    INPUT_FILE                              Name of the image to be converted.

optional arguments:
    -h, --help                              show this help message and exit

    -r, --rotate                            Rotate image 90 degrees.

    -i, --invert                            Invert image colors.

    -o OUTPUT, --output OUTPUT              Name of the output wav file. Default value: out.wav).

    -b BOTTOM, --bottom BOTTOM              Bottom frequency range. Default value: 200.

    -t TOP, --top TOP                       Top frequency range. Default value: 20000.

    -p PIXELS, --pixels PIXELS              Pixels per second. Default value: 30.

    -s SAMPLING, --sampling SAMPLING        Sample rate. Default value: 44100.