Skip to content

Instantly share code, notes, and snippets.

@mherwig
mherwig / VoiceControl.sh
Last active December 11, 2015 23:18 — forked from anonymous/gs_sp_to_txt.sh
Simple voice control demonstration using google's speech-api. For demonstration purpose I added the unix commands 'ls' and 'whoami' that map to the spoken phrases "List directory" and "Who am I?"
#!/bin/bash
#
# Author: Mike Herwig
# Description:
# Updated voice control demonstration using google's speech-api
# The main difference to the previous script I uploaded to my Gist is that it's using sox for recording now
# and only records your voice to the disc when sox detects sound
# Dependencies: sox, wget
LANG="en"