Opening Sound Files In .Net - c#

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.

Related

Extracting mp3 audio file from youtube video in C#

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.

Capture Sound in C# using .Net Own libraries nothing else

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.

How to extract the comments part of a ppt\pptx file to a data base

I'm building an Android app that's reads comments from an MS Power Point file.
As i get it ill have to use some API, or build a program in C#.
The problem is that i can't find a way of doing that.
I would like to hear some suggestions or to hear from programmers that accomplish
that, or something similar.
If you can use the power point api that would be the best way however I don't know if that available on android. This is a link to the binary file specification for ppt files.

.net API for managing pst files

I have an old PC on which i have a large pst file , and i have the idea to write a small C# program to spilt it into smaller files so that i can better manage them if needed ( i know that sounds weird and that there are also available tools in google but i thought it will be fun to play with it ).The problem is that i can't find good article or API info which functions are best suited ( if there are any at all ) for managing those files , Ideas ?
Thanks in advance
Take a look at Redemption API. This API does not require Outlook to be installed (only stand-alone MAPI) and does not require outlook to run.
First just a clarification by PST file you mean you outlook information?
Running on that I know of no API to manipulate it but you can get the documentation for it at http://msdn.microsoft.com/en-us/library/ff385210(v=office.12).aspx this is a large and complex specification for a binary format. Always play with a copy of it not the real thing.
One approach that might be better is using the ActiveX/COM interface provided by outlook to interact with this file abstractly, so instead of dealing with the physical layout of the file work with contacts, folder and email messages.
It may be worth your while finding out how open source mail clients (Like thunderbird) import from outlook. You may be able to pull there code out into an API, as long as you follow the licence conditions.
Not the easier answer, but it is the one I have.

Create Autocad file with C#

I am expoloring currently an AutoCAD .NET API to create a dwg files from winform.
Is this possible or should I look for another library?
Are there any new tutorials of doing so?
thanks
Thanks for all your answers .... I will stick with my old DXF implementation, since this is personal project.
Here you have exacly how to do it. AutoCad includes an API for doing that. The problem is that you need to have AutoCad in the computer where your application remains.
I think your only choice if you want DWG is to use OpenDesign. If you don't want to pay what that costs, you can write DXF instead. I have used VectorDraw, which does give a reasonable object model, and can export DXF without any extra component (I think), or use OpenDesign to write DWG.
Autodesk sell a library called RealDWG which allow you to read and write dwg file with C# without AutoCAD installed. ~ 2500 € / year.
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=770257
You can also use DXF, which is easier to read and write (text file). The reference can be found here : http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12272454&linkID=10809853
As mentioned by others, OpenDesign is one possibility. It is, however, prohibitively expensive for small companies; we have started using CadLib, which is far cheaper and seems to do the trick so far. It writes to DXF or DWG, and has fairly good documentation.
If you're planning to create the file without having autocad running, then you CANNOT use the .net API. The use of the .net API basically requires AutoCAD (or the CoreConsole) to be running for it to work. (You can open other databases but you'd be doing it in process from Autocad.
If you don't want it running in process you can use the Interop API.
Or the other alternative is to is to write to a DXF format which can then be imported into AutoCAD (or any other CAD program) which is capable of reading the format.

Categories