Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not get it to successfully output a wav file - issue at line 119 #5

Open
bdorr1105 opened this issue Aug 1, 2022 · 1 comment

Comments

@bdorr1105
Copy link

The command I ran

sudo python /opt/spectrology/spectrology.py secret-text.bmp -b 16000 -t 25000 -p 120
Input file: secret-text.bmp.
Frequency range: 16000 - 25000.
Pixels per second: 120.
Sampling rate: 44100.
Rotate Image: no.

the error:

Traceback (most recent call last):
File "/opt/spectrology/spectrology.py", line 119, in
convert(*inpt)
File "/opt/spectrology/spectrology.py", line 101, in convert
output.writeframes(data.tostring())
AttributeError: 'array.array' object has no attribute 'tostring'

@arkelops
Copy link

Simply removing the .tostring() in line 102 will do the trick

uNaMEdUsER-BmTH added a commit to uNaMEdUsER-BmTH/spectrogram-creator that referenced this issue Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants