Closed Jellevanderwerff closed 6 months ago
Also happens without thebeat:
from parselmouth import Sound
from scipy.io import wavfile
sound = Sound("u.wav")
fs = sound.sampling_frequency
samples = sound.values[0]
wavfile.write("u_out.wav", fs, samples)
results in:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/jellevanderwerff/ssf_presentation/venv/lib/python3.9/site-packages/scipy/io/wavfile.py", line 797, in write
fmt_chunk_data = struct.pack('<HHIIHH', format_tag, channels, fs,
struct.error: required argument is not an integer
Was due to the sampling frequency in Praat being a floating-point number which scipy couldn't handle. Fixed in 3948729.
After f63e405 the following code raises an error: