Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Home/Knowledge Base/Happy, the AI hardware robot – talking – text to speech
Knowledge Base

Happy, the AI hardware robot – talking – text to speech

By Laszlo Pinter
November 13, 2026 3 Min Read
0

These are the steps to set up the text to speech to text converter process for the Building Happy, the AI hardware robot project to hear Happy’s answer.

More details are in text-to-speech\README.md

Install Kokoro

  • Open a PowerShell terminal and execute
    py -3.12 -m pip install kokoro soundfile
  • Check if Kokoro is installed
    py -3.12 -c “import kokoro, soundfile; print(‘kokoro ok’)”

    Expected response: kokoro ok

Check the running servers

  • In a PowerShell terminal execute
    curl.exe http://localhost:8000/health

    Example success result: {“ok”: true, “model”: “small”, “cuda”: true, “llm”: “google/gemma-4-26b-a4b-qat”, “voice”: “af_heart”}

Check Happy’s voice on the computer

  • Open a PowerShell terminal where you can save files
    cd $env:TEMP
  • Generate a short audio file and play it
    '{"text":"Hello, I am Happy! Nice to meet you."}' | curl.exe -X POST http://localhost:8000/say -H "Content-Type: application/json" --data-binary "@-" -o say.wav

    start say.wav
  • You should hear a female voice

Hear the AI generated answer on the PC

  • This command with the “chat”: true option passess the prompt to Gemma, and we will hear the AI’s answer through the computer speakers
    '{"text":"What is your favorite color?", "chat": true}' | curl.exe -X POST http://localhost:8000/say -H "Content-Type: application/json" --data-binary "@-" -o answer.wav

    start answer.wav
  • You should hear a randomly generated real answer

Test the whole loop that the robot uses

We will use the /talk option

  • Copy the test.waw file or any other audio file with speech into the folder where the PowerShell terminal is open
  • Execute the command:
    curl.exe -X POST -H "Content-Type: audio/wav" --data-binary "@test.wav" -D - -o reply.pcm http://localhost:8000/talk
  • The terminal should display the text transcription of the audio file and the robot and the answer of the AI model

Check the robot’s speaker

Test the amp and the speaker to make sure the electronic circuit is in working order

  • Upload the firmware/tests/amp_test/amp_test.ino file to the ESP32 board with the Arduino IDE, as we did it during the audio test earlier
  • You should hear the rising tone

Hear Happy speak

  • Upload the speech-to-text/firmware/stt_client/stt_client.in file to the ESP32 board
  • When you say the word “happy” the robot starts to listen and answers you.
  • Within 8 seconds of her answer you don’t have to say “happy” again to continue the conversation, just keep talking to her.
  • You should see Happy’s answer in the serial monitor and hear her in the robot’s speaker

If Happy does not answer

  • Press and hold the BOOT button, ask a question and release the button
  • You should see Happy’s answer in the serial monitor and hear her in the robot’s speaker

Troubleshooting

Issue

If the robot does not connect to the computer after computer restart

Reason

Most likely the IP address of the computer changed.

Solution

On your computer

Check Windows “random hardware addresses”. That setting makes the PC show a different MAC address to the router, so the reservation wouldn’t match.

  • Go to Settings → Network & internet → Wi-Fi → Manage known networks → (your network)
  • Set Random hardware addresses to Off.
In the Wi-Fi router

Turn on the IP address reservation in your Wi-Fi router settings.

Deco Mesh Network
  • Open the Deco app
  • Tap More in the bottom-right corner, then Advanced.
  • Tap Address Reservation, then the + button.
  • Choose your PC from the list. If it’s not listed, enter its MAC address by hand.
  • Set the IP address and save.
Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Happy, the AI hardware robot – understanding – speech to text

Next

Happy, the AI hardware robot – Configuration

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • How to convert STL file to solid in FreeCAD November 16, 2026
  • FreeCAD installation issue November 15, 2026
  • Happy, the AI hardware robot - understanding - speech to text November 15, 2026
  • Building Happy, the AI hardware robot November 14, 2026
  • Happy, the AI hardware robot – Configuration November 14, 2026

Tags

.NET .NETcore 3Dprinting AI AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC MySql Node.js Packer Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Laszlo Pinter on Turn off the built in touchpad when a mouse is attached
  • Kenneth Bush on Turn off the built in touchpad when a mouse is attached
  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.