Java code for voice stream server