Give some personality to your Xiaomi vacuum by creating your own funny TikTok lady voice pack.
The script reads the text from the csv file in the funny TikTok ladys' voice and packages it for upload to your vacuum. It's been tested with a gen1 running Valetudo but should also work with other generations and with other ways of installing the voice pack.
You're doing a great job of disappointing me. Go on, go to the releases page and download a pre-created pack.
- curl to call the the funny TikTok lady voice generator API.
- ffmpeg and ffmpeg-normalize (
pip install ffmpeg-normalize
) to normalize the volume of the voice files. - ccrypt to package the wav files.
- jq to parse the json response from the funny TikTok lady voice generator API.
- base64 to decode the response data.
git clone
this repo- Change the lines in the csv file from the xiaomi default to something you want the funny TikTok lady to say.
- Run
./01-speak.sh
to generate the speech. - Run
./02-process.sh
to normalize the volume. - Run
./03-package.sh
to package the wav files. - Visit Valetudo in your browser (the IP of your vacuum) and go to Settings -> Sound and voice. Upload the generated .pkg file from the output/result directory and press 'Upload Voice Pack'.
- Done!
If you created a custom csv file, please be so kind to share it back so others can benefit from it.
Now we have this great voice installed, wouldn't it be great if the funny TikTok lady would speak a bit more? How about a custom voice pack and configuration for this: roborock-oucher?
If you are using Home Assistant, you can combine the control of your vacuum with other automations. How about a soundtrack or some light effects? The only limit is your willingness to release your inner geek - you know you want to ;).
- Thanks to the folks over at DustCloud for freeing our vacuums (and transcribing the default voice).
- Valetudo for the great ux.
- weilbyte for researching the API to the funny TikTok lady voice generator.