
waldes
Hey Ez-B community! Newbie question here. I want to build a talking robot that will deliver speeches. Basically the idea is just to use my own voice and make mouth open and close when I speek like a Ventriloquist. The straight forward approach would just be to manually control the mouth with the computer or joy stick and try to make the lip-sync good. But is there a more elegant solution? For instance can the mouth move only when there is sound coming into a mic plugged in the computer? Are there these capabilities built into the SDK? Can somebody point me in the right dirrection. Thanks!
Jonny
Using the SDK, you can do that. To capture audio from the Mic, I would recommend NAudio C# audio library... Get NAudio here
It's quite simple to capture the audio. Also, there is an event on "Audio Received" but I think it is called Data Received. Anyway, the event is triggered when ever there is audio in the buffer.
You can foreach through the byte array of audio and determine the volume of the sound. The data i think is PCM Wav by default, so that is pretty easy. There are plenty of source codes demonstrating how to determine the dB of a PCM. If you have trouble, we can help you out.
Maybe i'll add a control to the ARC (after I'm done with the automation control) to do this. I can see benefits.
Progress:
Do you have any pics of how you attached teh mouth to the servo? And its neck too? Looks like there is a lot of motion there. Big project! you've been busy
Sure thing DJ. Pretty inelegant hack job, gobs of hot glue shored up with twist ties. 18 gauge steel wire pulls the bottom lip through a hole I drilled. This is an early gen Teddy Ruxpin than your v1.0 project. The hardest part was finding a Teddy Ruxpin without a broken mouth mechanism on fleabay. This is my third. Certainly kids abused the crap out of these. The rest of the project was EZ! Trying to decide how to do the arms. More servos are on order. I am leaning towards metal coat hangers. This guy will eventually host a comedic youtube channel, possibly political rants, definitely a sweet teddy bear voice and inappropriate subject matter. I'll keep you posted.
I haven't slept in a few days. I have a big treat for everyone coming up very shortly.
http://www.youtube.com/watch?v=oGFGv-JFlHc
I FELL OFF MY CHAIR!