Open Petermarcu opened 6 years ago
@richlander
@jjgriff93 what are the scenarios where it is needed? What kind of apps would benefit from the APIs? I assume the API is System.Media.SoundPlayer
@karelz I wish to create a "digital assistent" in a windows console app (perhaps later hosted on a raspberry pi). That uses Azure services for text-to-speech for the responses. Currently I can't do this in netcore. So that is one scenario example.
is this going to be in .net core 3?
No, it is in Future milestone. Also note that there is fairly small interest from community (4 people so far).
Would be very helpfull to get something like the SoundPlayer provides for windows but universal for other platforms like linux using alsa. We use .NET Core on a embedded device which regulary has to play some short sounds. Bringing up a command line utlity like aplay is not that good in performance.
cc @joperezr since this has IOT implications.
in dotnet/iot repo we have this issue which has some overlap: https://github.com/dotnet/iot/issues/287
This issue is now almost 6 years old. As I've seen, there is now System.Media.SoundPlayer in dotnet 8 (don't know when it was introduced)... However it's Windows-only (System.Windows.Extensions). That's very sad.
Are there still plans, to create a cross-platform equivalent (or to make the namespaces with its classes truly cross-platform) or is the idea already dead?
It would be great to have sound support for some projects and the old mono framework had a working implementation based on Alsa(?), even with SystemSounds implementation.
Is there any replacement for System.Media.SoundPlayer?
@jjgriff93 commented on Thu Sep 20 2018
Cannot play sound files as part of .net core console apps in windows and running on windows IoT Core on Raspberry Pi due to lack of audio support. Third party libraries don't offer any simple solution for playing wav or mp3 streams like the .NET Framework SoundPlayer does.