dealing with voice in java
does any one know how to capture voice and send it th开发者_开发问答rough a network then play it on another computer in java
I did some research on this about 10 years ago at a research lab so I might be a bit out of date! At the time there was no standard for the whole process. You have to use the Java sound API to record and playback, then any network protocol you want to send it.
If it is just for a person to listen to, then use something with good compression - something like the media streaming in the Java Media Framework. If you want to use speech recognition on the data you'll probably need something higher quality and closer to the raw data, and it might be worth looking at the Java Speech API.
精彩评论