This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SETUP | |
# 1) This requires having SoX (http://sox.sourceforge.net/) installed. On a Mac, you can do this with `brew install sox --with-flac` | |
# 2) You'll also need an API key for your Google Cloud Platform project: https://support.google.com/cloud/answer/6158862 | |
# Create a request file with our JSON request in the current directory | |
FILENAME="request-"`date +"%s".json` | |
cat <<EOF > $FILENAME | |
{ |