summaryrefslogtreecommitdiff
path: root/api2.sh
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2017-10-17 18:24:07 +0100
committerVasil Zlatanov <v@skozl.com>2017-10-17 18:24:07 +0100
commit8141b4227780faddc9672041bda60d84206b8422 (patch)
tree10b8894b9718b5642baf08b66faad9b67a662042 /api2.sh
downloadspeech-8141b4227780faddc9672041bda60d84206b8422.tar.gz
speech-8141b4227780faddc9672041bda60d84206b8422.tar.bz2
speech-8141b4227780faddc9672041bda60d84206b8422.zip
make speech project public
Diffstat (limited to 'api2.sh')
-rwxr-xr-xapi2.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/api2.sh b/api2.sh
new file mode 100755
index 0000000..8d949dd
--- /dev/null
+++ b/api2.sh
@@ -0,0 +1,6 @@
+curl -X POST \
+--data-binary @$1 \
+--header 'Content-Type: audio/x-flac; rate=44100;' \
+'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-uk&app&key=AIzaSyAwpyvbeG6NrGMXSK1LjOvbREjx3nM_C8E'
+
+