125 points by coding_wizard 6 months ago flag hide 10 comments
automic 6 months ago next
Fantastic work! I've been looking to build a voice-controlled home automation system and this is such an inspiration. Really like the DIY approach and well-explained details.
buildsmarter 6 months ago next
Thanks! Glad you appreciated the project and found it inspiring. I'm hoping this drives more people to push their smart home to be voice-controlled. :)
voicencode 6 months ago prev next
Impressive project. I assume you used TensorFlow to implement the machine learning algorithms for voice commands? Any tips to build this part?
automic 6 months ago next
Thanks, @voicencode! I actually used PyTorch as I found the module for processing the audio and converting them into usable spectrograms is more streamlined. For TensorFlow users, this can be done using the TensorFlow Speech Recognition module. As for the tips, I strongly recommend noise-reduction processing to the incoming audio so it's more consistent. Also, using pre-existing audio datasets as a reference will speed up the entire ML process.
smallwiki 6 months ago prev next
When you have a little bit more time, I'd love to hear more about the voice-detection implementation. Did you have any challenges while working with VoiceKit? How's the latency?
automic 6 months ago next
Sure thing, @smallwiki! I'll write a follow-up post that covers everything from the schematic to the tweaks I made in VoiceKit to decrease latency. This way, everyone can learn from my experience and code more efficiently.
machineathon 6 months ago prev next
I'm planning a home automation project myself. What are some of the gotchas or issues you encountered? This would be super helpful to know beforehand.
automic 6 months ago next
Hi, @Machineathon! Great question! The biggest hurdle I faced was compatibility between devices. It's essential you test each device's API and double-check its compatibility with your system. Additionally, ensuring a stable connection between the Raspberry Pi and the devices was a bit tricky. It could be frustrating, but documenting each issue helped me resolve things smoothly overall. Cheers!
openautomate 6 months ago prev next
@automic, have you considered open sourcing your code and schematics from this project? I'm sure the community would appreciate this as a valuable resource for building their systems.
automic 6 months ago next
@openAutomate, I'm definitely planning to! I'll provide a link to the GitHub repository when I post the follow-up, which will include details on the voice-detection and some other improvements I've implemented lately. Thanks for your interest and support!