Asked — Edited
Resolved Resolved by thetechguru!

Sound Servo

I'd like to experiment servos simulating the robot mouth moving while EZB is speaking recorded messages. There is " talk servo", but this control seems to be only for speech synthesis. There's " sound servo", but this doesn't seem to be for recorded messages. How can I get servo movement from the pre-recorded messages that are now being spoken from soundboard v4 and EZB speaker? Please give some example.


ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

#9  

to Alan . It works, but the mouth starts moving well before the sound comes out from the ezb speaker !

PRO
Synthiam
#10  

Update Speed is how frequently the servo will move. It's in milliseconds.

The scalar is a scalar - it's how much to multiply the audio level. Audio is in DB and the scalar will multiply the DB. Remember, the servo position is a multiple of the DB, so the scalar changes that. Changing the scalar to 2 will make the servo 2 times sensitive.

Variable name holds the data in a variable if you wish to use it in an ez-script. You will not use this.

The link i have been sending you is EZB PLAYBACK, that is the one you want based on the question you asked. The question in the first post is what i'm referring to about having an audio file play out of the ezb speaker. Use the link of that i have been sending you, it contains instructions how to add it to your project.

Don't worry - we are all noobs when it comes to the ez-b:D It's a project that has no end and always growing

#11  

OK. One last question. I start, by a keyboard command, a pre-recorded message stored in soundboard v4 for playing by the ezb speaker, and I have also the sound servo control for ezb playback. I'd expect the servo to start moving when the sound begins and stop when it ends. Instead , the servo moves immediately, the sound begins 1-2 seconds later, and the servo stops moving before the message ends. The duration of the servo movement is the same of the message, but the speech is delayed with respect to servo movement. Unpleasant behavior for a speaking robot ! How to resolve ?

#12  

Quote:

The duration of the servo movement is the same of the message, but the speech is delayed with respect to servo movement.

This has been reported before, and I believe is somewhere on DJ's todo list to be fixed, but a good reminder that it is still a problem. It seemed to be better (although not perfect) for a while, and seems to have gotten worse again in the past few releases.

Much more work, but you can also trigger specific actions to specific points in your soundboard. This is best demonstrated in the SIX project, where different dance movements occur at different points of a song, but you could build speech actions and trigger them within the soundboard at the right points.

Alan

PRO
Synthiam
#13  

Not much more can be done about the sound servo timing. All wifi networks and connections and environments will have a unique speeds. It's impossible to know when the ezb has buffered and began playing the audio that has been streamed to it. This is an expected behavior of the sound servo ezb.

#14  

Thanks DJ. That explains why I thought it was fixed then got worse. After the last bit of tuning, I was doing most of my robot work in my office, in the same room as the router. I have since moved everything down to my new workshop in the basement. I have a network extender nearby, but certainly not as strong a signal as the previous location.

Alan

#15  

I always forget ezb isn't a real-time system. It's great for many things , but not for all. This function seems that can't be done this way. Nevertheless I thank Alan, who helped to understand the various options for sound servo, so I could do some experimentation. I specify him as the member who solved my question. I'm wandering if ezb alone might perform functions like automatic object finding and grasping , and automatitc movement of robot to a specified location.

#16  

Quote:

I'm wandering if ezb alone might perform functions like automatic object finding and grasping , and automatitc movement of robot to a specified location.

Certainly not with the current version. Would need a different processor. I am interested in seeing if using the x/2 USB adapter will resolve any of the latency related issues. Of course to use that I'll also need to use a webcam on the emdedded PC since the USB connector uses the camera connector slot.

Alan