summaryrefslogtreecommitdiff
path: root/api2.sh
diff options
context:
space:
mode:
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'
+
+