Torchaudio.load() in C++

I want to convert ogg-file to torch.Tensor using torchaudio.load function, but in deployment I need to do it in C++ (I converted original model to TorchScript). Can I use it from C++? Or what can I do as alternative?

torchaudio does not yet have a C++ interface. However, torchaudio.load is a wrapper around https://github.com/pytorch/audio/blob/master/torchaudio/torch_sox.cpp which you could use.