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

Investigate using Sox #20

Open
Molkree opened this issue Jun 15, 2021 · 3 comments
Open

Investigate using Sox #20

Molkree opened this issue Jun 15, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@Molkree
Copy link
Member

Molkree commented Jun 15, 2021

@wetdog suggested using Sox to generate spectrograms.
What are (dis)advantages over obspy/scipy? If there is no processing we could just drop Python and use bash+Sox I guess (or even some light processing, see link above).

float32 spectrogram:
live000_float32_spectrogram

@Molkree Molkree added the enhancement New feature or request label Jun 15, 2021
@Molkree
Copy link
Member Author

Molkree commented Jun 21, 2021

So turns out that Sox is actually pretty fast

image

@wetdog
Copy link

wetdog commented Jun 21, 2021

That's great, I think that you can get rid of the colorbar and the axes labels with the flag -r

@Molkree
Copy link
Member Author

Molkree commented Jun 21, 2021

Yup, that's true, -r will create a raw spectrogram. But @valentina-s actually requested to add dB scale to the spectrograms generated using Python (#6) so we'll probably keep them. And as @yosoyjay correctly noted if we need raw spectrograms for later processing it's really easy to cut them out from the image.

But for now, we are sticking with Python because it is easier to use different tools operating on the raw data, rather than using Sox + something else on images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants