Onsite audio recording

Hi all, I'm putting together a plugin that would allow for realtime audio recording and uploading as an elgg file.

I've got the framework going, and now moving onto the audio recording part. I've searched around and it seems that the best method would be to use Flash or Java (perhaps the only methods). I want to stay away from Flash because it's not smartphone friendly and requires another server (Red5) which I don't want to get involved in. Java seems to be able to do this with a standard server and php HTTP $POST.

I'm wondering if anyone has had any experience with Java and this kind of thing before and if they could give me some pointers. I've not looked at Java ever, so any help would be appreciated.