hi every one im using the 2.5 wireless toolkit and i tried to record voice in . wav & it did work ,but it want playback wat is recorded .
it just play .amr ,so can i record in .amr or trnscode wav to amr any one has an idea.
hers my code if(c==playsong)
try {
InputStream is = getClass().getResourceAsStream("/audio/m.wav");
is.mark(is.available());
p = Manager.createPlayer(is, "audio/x-wav");
p.realize();
p.addPlayerListener(new Listener());
vc = (VolumeControl)p.getControl("VolumeControl");
if (vc != null)
vc.setLevel(100);
p.setMediaTime(5 * sec);
p.prefetch();
// Non-blocking start
p.start();
} catch (IOException ioe) {System.out.println("io exception");
} catch (MediaException me) {System.out.println(me.toString());}

Reply With Quote

