Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RE: full-duplex : http://mikepultz.com/2013/07/google-speech-api-full-duplex-php-version/
- curl -v "https://www.google.com/speech-api/full-duplex/v1/down?pair=54321" & curl -v -X
- POST "https://www.google.com/speech-api/full-duplex/v1/up?lang=en-US&lm=dictation&client=chromium&continuous=true&interim=true&pair=54321&key=FPMU" --header "Transfer-Encoding: chunked" --header "Content-Type: audio/x-flac; rate=22050" --data-binary @11.rec
- [2] 29565
- * About to connect() to www.google.com port 443 (#0)
- * Trying 216.58.217.196...
- * About to connect() to www.google.com port 443 (#0)
- * Trying 216.58.216.4...
- * connected
- * Connected to www.google.com (216.58.217.196) port 443 (#0)
- * connected
- * Connected to www.google.com (216.58.216.4) port 443 (#0)
- * successfully set certificate verify locations:
- * CAfile: /etc/ssl/certs/ca-certificates.crt
- CApath: none
- * SSLv3, TLS handshake, Client hello (1):
- * successfully set certificate verify locations:
- * CAfile: /etc/ssl/certs/ca-certificates.crt
- CApath: none
- * SSLv3, TLS handshake, Client hello (1):
- ...
- * SSL connection using ECDHE-RSA-AES128-SHA
- * Server certificate:
- * subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
- * start date: 2015-01
- * expire date: 2015-04
- * subjectAltName: www.google.com matched
- * issuer: C=US; O
- * SSL certificate verify ok.
- > GET /speech-api/full-duplex/v1/down?pair=3456123487654321 HTTP/1.1
- > User-Agent: curl/7.28.1-DEV
- > Host: www.google.com
- > Accept: */*
- >
- * SSLv3, TLS change cipher, Client hello (1):
- * SSLv3, TLS handshake, Finished (20):
- * SSL connection using ECDHE-RSA-AES128-SHA
- * Server certificate:
- * subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
- * start date: 2015-01
- * expire date: 2015-04
- * subjectAltName: www.google.com matched
- * issuer: C=US; O
- * SSL certificate verify ok.
- > POST /speech-api/full-duplex/v1/up?lang=en-US&lm=dictation&client=chromium&continuous=true&interim=true&pair=54321&key=FPMU HTTP/1.1
- > User-Agent: curl/7.28.1-DEV
- > Host: www.google.com
- > Accept: */*
- > Transfer-Encoding: chunked
- > Content-Type: audio/x-flac; rate=22050
- > Expect: 100-continue
- >
- < HTTP/1.1 200 OK
- < Content-Type: application/json; charset=utf-8
- < Content-Disposition: attachment
- < Cache-Control: no-transform
- < X-Content-Type-Options: nosniff
- < Pragma: no-cache
- < Date: Wed, 18 Feb 2015 16:47:21 GMT
- < Server: S3 v1.0
- < X-XSS-Protection: 1; mode=block
- < X-Frame-Options: SAMEORIGIN
- < Alternate-Protocol: 443:quic,p=0.08
- < Accept-Ranges: none
- < Vary: Accept-Encoding
- < Transfer-Encoding: chunked
- <
- {"result":[]}
- * Done waiting for 100-continue
- {"result":[{"alternative":[{"transcript":"how"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hot"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"high"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"high power"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are"}],"stability":0.89999998},{"alternative":[{"transcript":" you"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we have"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we have to"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we have to go"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have"}],"stability":0.89999998},{"alternative":[{"transcript":" to go to"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have"}],"stability":0.89999998},{"alternative":[{"transcript":" to go down"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to"}],"stability":0.89999998},{"alternative":[{"transcript":" go down"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go"}],"stability":0.89999998},{"alternative":[{"transcript":" down"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go"}],"stability":0.89999998},{"alternative":[{"transcript":" down to"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go"}],"stability":0.89999998},{"alternative":[{"transcript":" down to the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down"}],"stability":0.89999998},{"alternative":[{"transcript":" to the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down"}],"stability":0.89999998},{"alternative":[{"transcript":" to the sea"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down"}],"stability":0.89999998},{"alternative":[{"transcript":" to the store"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to"}],"stability":0.89999998},{"alternative":[{"transcript":" the store"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the"}],"stability":0.89999998},{"alternative":[{"transcript":" store"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store"}],"stability":0.89999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store"}],"stability":0.89999998},{"alternative":[{"transcript":" in"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store"}],"stability":0.89999998},{"alternative":[{"transcript":" and"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store"}],"stability":0.89999998},{"alternative":[{"transcript":" and see"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store"}],"stability":0.89999998},{"alternative":[{"transcript":" and see if"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store"}],"stability":0.89999998},{"alternative":[{"transcript":" and seafood"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and"}],"stability":0.89999998},{"alternative":[{"transcript":" seafood"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and"}],"stability":0.89999998},{"alternative":[{"transcript":" see if we"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and"}],"stability":0.89999998},{"alternative":[{"transcript":" see if we can"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and"}],"stability":0.89999998},{"alternative":[{"transcript":" see if we can go"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and"}],"stability":0.89999998},{"alternative":[{"transcript":" see if we can get"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and"}],"stability":0.89999998},{"alternative":[{"transcript":" see if we can get the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we"}],"stability":0.89999998},{"alternative":[{"transcript":" can get the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can"}],"stability":0.89999998},{"alternative":[{"transcript":" get the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can"}],"stability":0.89999998},{"alternative":[{"transcript":" get the girl"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can"}],"stability":0.89999998},{"alternative":[{"transcript":" get the grow"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can"}],"stability":0.89999998},{"alternative":[{"transcript":" get the growth"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can"}],"stability":0.89999998},{"alternative":[{"transcript":" get the gross"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get"}],"stability":0.89999998},{"alternative":[{"transcript":" the gross"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the"}],"stability":0.89999998},{"alternative":[{"transcript":" grocery"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the"}],"stability":0.89999998},{"alternative":[{"transcript":" groceries"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the"}],"stability":0.89999998},{"alternative":[{"transcript":" groceries for"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the"}],"stability":0.89999998},{"alternative":[{"transcript":" groceries from"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the"}],"stability":0.89999998},{"alternative":[{"transcript":" groceries for the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the"}],"stability":0.89999998},{"alternative":[{"transcript":" groceries for this"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries"}],"stability":0.89999998},{"alternative":[{"transcript":" for this"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries"}],"stability":0.89999998},{"alternative":[{"transcript":" for this way"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries"}],"stability":0.89999998},{"alternative":[{"transcript":" for this week"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for"}],"stability":0.89999998},{"alternative":[{"transcript":" this week"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this"}],"stability":0.89999998},{"alternative":[{"transcript":" week"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this"}],"stability":0.89999998},{"alternative":[{"transcript":" week's"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this"}],"stability":0.89999998},{"alternative":[{"transcript":" week so"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this"}],"stability":0.89999998},{"alternative":[{"transcript":" week so we"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this"}],"stability":0.89999998},{"alternative":[{"transcript":" week so weak"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this"}],"stability":0.89999998},{"alternative":[{"transcript":" week so we can"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so"}],"stability":0.89999998},{"alternative":[{"transcript":" we can burn"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so"}],"stability":0.89999998},{"alternative":[{"transcript":" we can bring"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so"}],"stability":0.89999998},{"alternative":[{"transcript":" we can bring the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can"}],"stability":0.89999998},{"alternative":[{"transcript":" bring them"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can"}],"stability":0.89999998},{"alternative":[{"transcript":" bring them back"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring"}],"stability":0.89999998},{"alternative":[{"transcript":" them back"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them"}],"stability":0.89999998},{"alternative":[{"transcript":" back"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back"}],"stability":0.89999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back"}],"stability":0.89999998},{"alternative":[{"transcript":" in"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back"}],"stability":0.89999998},{"alternative":[{"transcript":" in the"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back"}],"stability":0.89999998},{"alternative":[{"transcript":" in the car"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back in"}],"stability":0.89999998},{"alternative":[{"transcript":" the car"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back in the"}],"stability":0.89999998},{"alternative":[{"transcript":" car"}],"stability":0.0099999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back in the car"}],"stability":0.89999998}],"result_index":0}
- {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store and see if we can get the groceries for this week so we can bring them back in the car","confidence":0.98327845}],"final":true}],"result_index":0}
- * Connection #0 to host www.google.com left intact
- * Closing connection #0
- * SSLv3, TLS alert, Client hello (1):
- < HTTP/1.1 200 OK
- < Date: Wed, 18 Feb 2015 16:47:33 GMT
- < Content-Type: text/html
- < Server: S3 v1.0
- < Content-Length: 0
- < X-XSS-Protection: 1; mode=block
- < X-Frame-Options: SAMEORIGIN
- < Alternate-Protocol: 443:quic,p=0.08
- <
- * Connection #0 to host www.google.com left intact
Add Comment
Please, Sign In to add comment