This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Beginner considering EchoFilter - is this code okay?" Watch "Beginner considering EchoFilter - is this code okay?" New topic
Author

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

Paul.
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: http://aspose.com/file-tools
 
subject: Beginner considering EchoFilter - is this code okay?
 
Similar Threads
What does ?false:true do/mean?
Any JIntegra users out there?
Method parameter question
Jboss XADataSourceLoader configuration
I need help - basic stuff (I think)