Skip to content

Loading sph audio files #868

@jiwidi

Description

@jiwidi

Can audio.load load NIST sphere format (SPH) files?

Hi!

So I have tried to load sph files from tedlium dataset with simply:

torchaudio.load("pathtofile")

The load was successful but when saving it to a .wav file to check if the torchaudio read correctly the audio then I realized it was not working.

My question then is if this type of audio files is currently supported by torchaudio and if so, could you provide some link/code that refers how to? I haven't been able to find anything about torchaudio and sph files (but I know sox supports sph and allows to conversion into wav)

In case someone needs sph files here there are some sample ones https://filesamples.com/formats/sph. I got mines from the TEDLIUM dataset.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions