Skip to content

Instantly share code, notes, and snippets.

@xaxxontech
Last active October 2, 2015 01:28
Show Gist options
  • Save xaxxontech/82308eca7595e735c448 to your computer and use it in GitHub Desktop.
Save xaxxontech/82308eca7595e735c448 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import oculusprimesocket
oculusprimesocket.reconnect = True
oculusprimesocket.connect()
while True: # loop forever
# wait for non-null streamactivity state value
oculusprimesocket.waitForReplySearch("<state> streamactivity (?!null)")
# synth voice
oculusprimesocket.sendString("speech intruder alert")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment