dotnet / TorchSharp

A .NET library that provides access to the library that powers PyTorch.
MIT License
1.36k stars 176 forks source link

torchaudio support #1377

Open williamlzw opened 1 day ago

williamlzw commented 1 day ago

Are there any plans to support torchaudio, such as StreamReader and StreamWriter classes

yueyinqiu commented 1 day ago

Personally I think it won't be supported in the near future. NAudio might be a possible workaround?

GeorgeS2019 commented 1 day ago

https://github.com/dotnet/TorchSharp/tree/main/src/TorchAudio

I think we need to figure out how to connect NAudio to TorchSharp TorchAudio Audio I/O. There are .NET user controls for variety of spectrograms

TorchAudio feasibility

https://github.com/dotnet/TorchSharp/discussions/598

GeorgeS2019 commented 1 day ago

https://github.com/dotnet/TorchSharp/blob/main/test/TorchSharpTest/TestTorchAudio.cs

yueyinqiu commented 1 day ago

By the way, NAudio uses windows media player to support some audio formats, such as flac, which is not cross platform. (And even on Windows, some problems may happen, like the mis-calculation of audio length.) I think we need to deal with this carefully.

And @GeorgeS2019, it's really nice to find that you are still here. But it seems that @NiklasGustafsson isn't that active recently. Do you know what's going on?

NiklasGustafsson commented 1 day ago

But it seems that @NiklasGustafsson isn't that active recently. Do you know what's going on?

I am looking at the list every day...

There hasn't been a lot of issue activity at all since the release of v0.103.0, I've had some family things to deal with (a child's wedding, specifically), and I've had other projects to work on. TorchSharp is not my full-time job at Microsoft. That's what's going on. :-)

yueyinqiu commented 1 day ago

Wow! Congratulations!

GeorgeS2019 commented 1 day ago

@NiklasGustafsson @yueyinqiu

Many people are now going to be very curious about Torchsharp for Reinforcement Learning

https://github.com/dotnet/machinelearning/issues/181#issuecomment-2372238943

https://youtu.be/Aoyj7qzyung image