Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-platform replacement for SoundPlayer for playing audio across devices/paltforms #27450

Open
Petermarcu opened this issue Sep 22, 2018 · 10 comments
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-Meta
Milestone

Comments

@Petermarcu
Copy link
Member

@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.

@Petermarcu
Copy link
Member Author

@richlander

@karelz
Copy link
Member

karelz commented Oct 1, 2018

@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

@synercoder
Copy link

@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.

@keithn
Copy link

keithn commented May 19, 2019

is this going to be in .net core 3?

@karelz
Copy link
Member

karelz commented May 21, 2019

No, it is in Future milestone. Also note that there is fairly small interest from community (4 people so far).

@mdisg
Copy link

mdisg commented Jun 27, 2019

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.

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 5.0 milestone Jan 31, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Feb 23, 2020
@ericstj
Copy link
Member

ericstj commented Jun 26, 2020

cc @joperezr since this has IOT implications.

@ericstj ericstj removed the untriaged New issue has not been triaged by the area owner label Jun 26, 2020
@ericstj ericstj modified the milestones: 5.0.0, Future Jun 26, 2020
@joperezr
Copy link
Member

in dotnet/iot repo we have this issue which has some overlap: dotnet/iot#287

@davidbitterlich
Copy link

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.

@a6754z
Copy link

a6754z commented Nov 22, 2024

Is there any replacement for System.Media.SoundPlayer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-Meta
Projects
No open projects
Development

No branches or pull requests