ghua-ac/end-to-end-synthetic-speech-detection

Overflow issue due to floating error

roomo7time opened this issue · 0 comments

https://github.com/ghuawhu/end-to-end-synthetic-speech-detection/blob/fdd024db1da4ef0f1983366a35fe3d013688b822/data.py#L20

I use two pcs; they have different specs but use the exact same python libraries.

In one of the two pcs, the reading by soundfile library sf.read makes the floating issue for some audio files, ending up with extremely large number over a component of a sample.

I recommend using torchaudio.load instead of sf.read'; this fixes the issue.