File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Beginner considering EchoFilter - is this code okay? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Beginner considering EchoFilter - is this code okay?" Watch "Beginner considering EchoFilter - is this code okay?" New topic

Beginner considering EchoFilter - is this code okay?

Paul Carter
Ranch Hand

Joined: Sep 20, 2006
Posts: 57
Not sure if this is the right forum but I'm wanting to create a small Java app to change voices in realtime i.e. take input from the mic and push it through the speaker.

Ultimately I'd like to create a Vocoder (Cylon) style effect, and later convert it to J2ME for mobile phone use, but ATM want to start crawling before I attempt to run.

I've used a little java before, but when it comes to anything sound/media based I'm clueless, so when I came across the following code it all seemed rather 'complicated' and wondered what do you guys thought of it - should I use it as a basis for what I'm attempting, or is there a simpler way?

EchoScript sample

Many thanks in advance

Eric Daly
Ranch Hand

Joined: Jul 11, 2006
Posts: 143
I don't fully understand the echofilter code, but basically it looks like it plays back a .wav file with an echo effect. You'd have to do a little research however to find out how to use the real-time input from a microphone instead of using a .wav file. Here is a good place to start. If I get motivated and have time, I will try to find out more about processing real-time input with Java. I would actually start with something simpler than echofilter if you can find sample code. Right now I'd focus on understanding how to capture input from a mic or line-in and spit it back out through the speakers. Then from there I'd assume you can almost just insert your algorithm to process the sound signal. Let us know if you make any progress on that, and I will also let you know if I find anything new.

Studying for SCJP 6
I agree. Here's the link:
subject: Beginner considering EchoFilter - is this code okay?
jQuery in Action, 3rd edition