简体   繁体   中英

How to capture and work with voice in java and C#?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM