How to propose marriage with a puppy, a phone, and a Web Socket.
- Teach your pup to go to your partner on command.
- Give your laptop a static IP. On OS X go to the TCP/IP tab in advanced network settings, choose DHCP with manual address, and pick an IP. This address should match the one in
server.py
. - Get your phone on the same wifi network as your laptop.
- Run the Flask app:
python server.py
. - Navigate to
prop.html
on your phone. Chrome worked well for me. - Choose your voice in the dropdown menu. My puppy is a girl, so I chose a female voice.
- Attach the phone to your puppy, making sure she's comfortable and the phone is secure.
- Tell your puppy to go to your partner then sit in front of your laptop. Stay in a nearby room so you can hear their conversation.
- Type a sentence into
text_goes_here.txt
. It will be sent down the Web Socket to the browser on your phone, which will speak it out loud. - Listen for your partner's reaction. Encourage your partner to talk to your puppy. Have a conversation that flows toward the topic of engagement.
- Leave your laptop, find your partner, and propose.
- Give your puppy a treat. She deserves it :-)