Convert audio file (e.g. .wav) to tensor?

I am trying to implement one dimensional CNN (nn.Conv1D()). The input shape is (N,C,L), but my audio file’s shape is (L, C). How can I transform it to tensor?
When I worked with image I used ToTensor() built-in transform.

Thank you!

you can simply do input.transpose(0, 1).unsqueeze(0) which will make it (1, C, L)