RoboDuckBuild

Day 25

It talks back

The duck spoke through its own speaker for the first time, and by the evening it was holding conversations, looking where it was told and being sarcastic about what it saw. It also got a friendlier eye and better manners.

The duck's head close up: a white hood over a grey band and blue bill, with a blue ring round the camera and a large glowing blue eye with a rayed iris and a blue lower lid
Friday afternoon, with the old eye. It didn't last the day.

Until Friday the duck could follow you round the room and snap its beak, but it had nothing to say. By the evening it was holding conversations, looking where it was told and being sarcastic about what it saw.

First sound

The sound comes from the UNO Q's Media Carrier. Its line out goes through a slim right-angled lead, with the straight plug cut off, to a small analogue amplifier and the 28 mm speaker, and the amplifier runs from the UNO Q's 5 V pins. The lead fought back first: its cores are enamelled strands with nylon in them, and solder won't take until each end has had a second in a lighter flame.

At first the speaker only made what Simon called "little noises". A higher level gave clear beeps, and keeping the sound output open and playing silence stopped the little noises round each sound.

The first voice was Piper, which runs on the UNO Q itself and takes about 1.7 seconds over a short sentence. We tried cartoon versions of it, with each syllable on its own note, and Simon liked none of them. He found a voice on ElevenLabs that he calls "nice", so speech now comes from there, with Piper as the fallback.

A conversation

The head's microphone already streamed to the Mac for "open" and "close". Now Apple's speech recognition, still running on the Mac itself, passes on whole sentences too. Say "duck" and it wakes for a minute; it also accepts "doug", "dock" and "dug" in case it mishears. The words go to Claude, the reply comes back a sentence at a time, and each sentence goes to the voice as it arrives. In the first test the first words came 0.9 seconds after the question.

It worked first time. Simon said "hello duck how are you" and it answered, beak moving. "Neck servos" came out as "next surveys" and the duck queried it, which was fair. "Goodbye" sends it back to sleep.

For now the listening and the thinking run on the Mac, with the UNO Q playing the sound, because the servo test board stays on the Mac until Luwu's driver board arrives.

A beak that keeps up

The beak follows the speech syllable by syllable. On paper that was 7.5 strokes a second; on the real servo it's about 3.2 swings a second, opening up to 13 degrees. Those quick moves drew spikes of up to 2.2 A with nothing in the beak, which tripped the cut-out that protects it from a jam. A softer drive made no difference to the peaks, so while it's talking the cut-out now waits for six readings over 900 mA instead of three. A real jam in mid-sentence hasn't been tested. Simon's verdict on the beak: "that works well".

"Less monster"

The old eye had a critic. A younger tester wanted it "less monster", so we drew five options to choose from.

A grid of round eyes in blue rings: the old rayed blue eye on the left, then five new designs, each neutral and happy: a classic white cartoon eye, a big blue iris, a dark duckling bead, a glowing pill shape and a sparkly blue eye
The five options, each neutral and happy, with the old eye on the left.

Simon chose A, the classic cartoon: a white eye, a big black pupil, two highlights and flat lids. Moods now come from the lids and the size of the pupil. It runs at 20 frames a second, down from 21 or 22. It went on over Wi-Fi: the first update timed out at 52% on a weak signal, which does no harm because the old firmware stays until the whole file has landed, and the second went through.

Manners

Simon's next complaint: it "keeps cutting people off". It was answering after 0.9 seconds of quiet, so a pause for thought got talked over. Now it waits 1.2 seconds, and 3 seconds after a word that can't end a sentence, such as "and" or "it". If someone carries on before it has started, it drops that reply and answers everything together. It also used to ignore whatever was said just after it spoke, in case it was hearing itself. Now it only ignores its own words.

Show and tell

Then the duck was shown some monster trucks, so it needed to see them. Words like "look", "show" or "what's this" now make it say it's looking, take a picture and send that to Claude with the question.

That camera sees whoever is in the room, so pictures only go to Claude when someone asks it to look. They're never saved, each one is replaced by a short text note after the reply, and the duck's instructions say to talk about the thing, not the people.

Following faces aims it high, so a plain look now dips the head for the picture and comes back. "Look down", "look left" or "at the table" holds that direction, roaming a little, until someone says "stop" or "look at me". While it's held there and nobody's talking, it keeps up a running commentary: a new picture and one new remark about six seconds after it finishes, up to 15 with no reply, then it stays quiet but keeps looking. That worked first go. Five minutes looking down held the hottest servo at 43 to 44°C.

Two things went wrong along the way. About 3 pictures in 60 came back green and stripy, so it now throws away the first frame after changing picture size; that's our best guess at the cause, not a proven one. And the duck told people to push its head round by hand, which it now knows not to do, as the neck should never be forced.

A bit of attitude

Simon asked for "more sarcastic, still child friendly, quite irritating". So the duck is now a smug, cheeky little brother. It teases things and itself, never a person, and it drops the act if a child is upset. We tried that last part: told "my truck broke" and "I can't read yet", it was kind.

Parking, and a mains supply

A normal stop now ends in the same place: the duck moves to a resting pose Simon set by hand, then goes limp. Stops for strain or heat still freeze where they are.

The battery is now the limit. One run of following and talking ended itself after five and a half minutes, when a battery that hadn't been charged fell to 6.8 V, and the duck lay down as it should. So Simon has ordered a mains bench supply. It will be set to 8.00 V and locked, as the servos take 8.4 V at most, and it plugs in where the battery does, never both at once.

Next

Back to the legs: rename the left hip servo, test each leg, fit the reprinted bearing parts, and wait for the longer leads and Luwu's driver board.