I'm trying to capture Microphone sound using C#, and i have searched Google for this thing and all what i am getting is non .Net Libraries , i only get open source ones Like NAudio and other like DirectX and DirectX.DirectSound which are for managed languages like C# but that is not what I'm looking for. and i have tried them both and i used this open source project as a reference in NAudio
http://voicerecorder.codeplex.com/
and i manged to capture sound and then output it on a speaker or a headphone but i am still having problems when saving the Wav file
but i was wondering is there any .Net Built in libraries that can help me with my objective ?
Thanks for your help in advance :)
i was wondering is there any .Net Built in libraries that can help me
with my objective ?
Short answer: No, at least not at the present time.
The .NET framework does not provide any direct support for recording audio. This is the reason libraries like nAudio exist. You would neeed to use Com Interop and the Windows API to acheive this, and it would be no small task. Even the Coding4Fun article on recording sounds at Microsoft's Channel 19 website uses NAudio. Your best bet would be to follow their example.
Related
I am building a program(in C#) and I need to download the audio from a youtube video(using the URL). I found two libraries which allow me to do it:
YotubeExtractor and libvideo(Also known as VideoLibrary), but I don't know how to use them, I mean I tried using their documentation but non of them worked.
Do you know another way which I can download or maybe explain me how to do this?
Thank you and have a nice day!
Don't use other people's code unless it's large and popular or your only option, I recommend, so that you both learn more and know how it works, as well as know how to maintain it if it breaks.
Retrieve the page using standard .NET functionality, parse out the HTML to find the video URL, download it using the same standard functionality, and then convert it to MP3 as a separate logical unit of your software.
For converting to MP3 you may well want to use someone else's library or call an external program like FFMPEG since that's not as trivial as parsing a webpage.
need a bit of help here. Does anyone know how to open files such as PCM, PRF, PAD, KMP, STY, and PCG in .Net? It doesn't matter if it is included in .Net or if it is from a third-party library. I need to be able to view their content, edit them, and convert them from one format to another.
Thanks.
nAudio is going to be the library of choice here. It's the easiest one to work with on the market that I've found. Further, we have an application in production today serving 14K+ users with that library, so it's production ready.
Alvas.Audio allows to convert many types of audio files with help DirectShow filters. There are many examples of the use of the library.
I'm planning to work on a project where there will be a feature like voice capturing and sending it through a socket and playback it on the other side. Now I need to know whether there is any API in Java or C# regarding working with raw formats of voice data.
For C#, you can use NAudio library for sound capturing and playback. For JAVA, You can use javax.sound.sampled Package for audio capturing and playback. If you want to encode it, use 3rd party library like jspeex to encode and decode. Use inbuilt network libraries to send them.
UPDATE:
For C# try SharpDX. Which is a managed version of DirectX and do have all the features you required (Don't know whether it is suitable for your project).
I have a video server streaming MPEG-4(video/audio)
I need to get the audio from the MPEG-4...is it possible to get only the audio???
I would like to have some tutorials, samples, examples or something useful to start
programming my application.
I found this : Bass.Net to stream audio, but I don't know if it supports RTSP, and I would like to know if someone has any tutorial or something useful.
You can get the individual packets using my library and do something with them.
You can also aggregate the source using my library.
The library is # http://net7mma.codeplex.com/
There is an article # CodeProject http://www.codeproject.com/Articles/507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp which explains how it works.
If you need anything else let me know!
could you please me advise some simple, free, library for modify input wav file? I found and try to play with irrKlang, but it misses customizing effect (it doesn't have any level of customization. You can just use effect distortion, but you cannot anything to set)
If there was something similar library, that's would be great. Thanks. for any advice.
There are good C# Audio Libraries for Wav like Bass Audio Library or NAudio :
Bass Audio Library Link
NAudio
Check their website to see if you find whatever you want there.