rowntreerob

google speech-api full duplex

Feb 18th, 2015
1,748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.43 KB | None | 0 0
  1. RE: full-duplex : http://mikepultz.com/2013/07/google-speech-api-full-duplex-php-version/
  2.  
  3. curl -v "https://www.google.com/speech-api/full-duplex/v1/down?pair=54321" & curl -v -X
  4. 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
  5.  
  6.  
  7. [2] 29565
  8. * About to connect() to www.google.com port 443 (#0)
  9. * Trying 216.58.217.196...
  10. * About to connect() to www.google.com port 443 (#0)
  11. * Trying 216.58.216.4...
  12. * connected
  13. * Connected to www.google.com (216.58.217.196) port 443 (#0)
  14. * connected
  15. * Connected to www.google.com (216.58.216.4) port 443 (#0)
  16. * successfully set certificate verify locations:
  17. * CAfile: /etc/ssl/certs/ca-certificates.crt
  18. CApath: none
  19. * SSLv3, TLS handshake, Client hello (1):
  20. * successfully set certificate verify locations:
  21. * CAfile: /etc/ssl/certs/ca-certificates.crt
  22. CApath: none
  23. * SSLv3, TLS handshake, Client hello (1):
  24. ...
  25. * SSL connection using ECDHE-RSA-AES128-SHA
  26. * Server certificate:
  27. * subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
  28. * start date: 2015-01
  29. * expire date: 2015-04
  30. * subjectAltName: www.google.com matched
  31. * issuer: C=US; O
  32. * SSL certificate verify ok.
  33. > GET /speech-api/full-duplex/v1/down?pair=3456123487654321 HTTP/1.1
  34. > User-Agent: curl/7.28.1-DEV
  35. > Host: www.google.com
  36. > Accept: */*
  37. >
  38. * SSLv3, TLS change cipher, Client hello (1):
  39. * SSLv3, TLS handshake, Finished (20):
  40. * SSL connection using ECDHE-RSA-AES128-SHA
  41. * Server certificate:
  42. * subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
  43. * start date: 2015-01
  44. * expire date: 2015-04
  45. * subjectAltName: www.google.com matched
  46. * issuer: C=US; O
  47. * SSL certificate verify ok.
  48. > 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
  49. > User-Agent: curl/7.28.1-DEV
  50. > Host: www.google.com
  51. > Accept: */*
  52. > Transfer-Encoding: chunked
  53. > Content-Type: audio/x-flac; rate=22050
  54. > Expect: 100-continue
  55. >
  56. < HTTP/1.1 200 OK
  57. < Content-Type: application/json; charset=utf-8
  58. < Content-Disposition: attachment
  59. < Cache-Control: no-transform
  60. < X-Content-Type-Options: nosniff
  61. < Pragma: no-cache
  62. < Date: Wed, 18 Feb 2015 16:47:21 GMT
  63. < Server: S3 v1.0
  64. < X-XSS-Protection: 1; mode=block
  65. < X-Frame-Options: SAMEORIGIN
  66. < Alternate-Protocol: 443:quic,p=0.08
  67. < Accept-Ranges: none
  68. < Vary: Accept-Encoding
  69. < Transfer-Encoding: chunked
  70. <
  71. {"result":[]}
  72. * Done waiting for 100-continue
  73. {"result":[{"alternative":[{"transcript":"how"}],"stability":0.0099999998}],"result_index":0}
  74. {"result":[{"alternative":[{"transcript":"hot"}],"stability":0.0099999998}],"result_index":0}
  75. {"result":[{"alternative":[{"transcript":"high"}],"stability":0.0099999998}],"result_index":0}
  76. {"result":[{"alternative":[{"transcript":"hi"}],"stability":0.0099999998}],"result_index":0}
  77. {"result":[{"alternative":[{"transcript":"high power"}],"stability":0.0099999998}],"result_index":0}
  78. {"result":[{"alternative":[{"transcript":"hi how are"}],"stability":0.0099999998}],"result_index":0}
  79. {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.0099999998}],"result_index":0}
  80. {"result":[{"alternative":[{"transcript":"hi how are"}],"stability":0.89999998},{"alternative":[{"transcript":" you"}],"stability":0.0099999998}],"result_index":0}
  81. {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998}],"result_index":0}
  82. {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we"}],"stability":0.0099999998}],"result_index":0}
  83. {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998}],"result_index":0}
  84. {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we have"}],"stability":0.0099999998}],"result_index":0}
  85. {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we have to"}],"stability":0.0099999998}],"result_index":0}
  86. {"result":[{"alternative":[{"transcript":"hi how are you"}],"stability":0.89999998},{"alternative":[{"transcript":" we have to go"}],"stability":0.0099999998}],"result_index":0}
  87. {"result":[{"alternative":[{"transcript":"hi how are you we have"}],"stability":0.89999998},{"alternative":[{"transcript":" to go to"}],"stability":0.0099999998}],"result_index":0}
  88. {"result":[{"alternative":[{"transcript":"hi how are you we have"}],"stability":0.89999998},{"alternative":[{"transcript":" to go down"}],"stability":0.0099999998}],"result_index":0}
  89. {"result":[{"alternative":[{"transcript":"hi how are you we have to"}],"stability":0.89999998},{"alternative":[{"transcript":" go down"}],"stability":0.0099999998}],"result_index":0}
  90. {"result":[{"alternative":[{"transcript":"hi how are you we have to go"}],"stability":0.89999998},{"alternative":[{"transcript":" down"}],"stability":0.0099999998}],"result_index":0}
  91. {"result":[{"alternative":[{"transcript":"hi how are you we have to go"}],"stability":0.89999998},{"alternative":[{"transcript":" down to"}],"stability":0.0099999998}],"result_index":0}
  92. {"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}
  93. {"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}
  94. {"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}
  95. {"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}
  96. {"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}
  97. {"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}
  98. {"result":[{"alternative":[{"transcript":"hi how are you we have to go down to the store"}],"stability":0.89999998}],"result_index":0}
  99. {"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}
  100. {"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}
  101. {"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}
  102. {"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}
  103. {"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}
  104. {"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}
  105. {"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}
  106. {"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}
  107. {"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}
  108. {"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}
  109. {"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}
  110. {"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}
  111. {"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}
  112. {"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}
  113. {"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}
  114. {"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}
  115. {"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}
  116. {"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}
  117. {"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}
  118. {"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}
  119. {"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}
  120. {"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}
  121. {"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}
  122. {"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}
  123. {"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}
  124. {"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}
  125. {"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}
  126. {"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}
  127. {"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}
  128. {"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}
  129. {"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}
  130. {"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}
  131. {"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}
  132. {"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}
  133. {"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}
  134. {"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}
  135. {"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}
  136. {"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}
  137. {"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}
  138. {"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}
  139. {"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}
  140. {"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}
  141. {"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}
  142. {"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}
  143. {"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}
  144. {"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}
  145. {"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}
  146. {"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}
  147. {"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}
  148. * Connection #0 to host www.google.com left intact
  149. * Closing connection #0
  150. * SSLv3, TLS alert, Client hello (1):
  151. < HTTP/1.1 200 OK
  152. < Date: Wed, 18 Feb 2015 16:47:33 GMT
  153. < Content-Type: text/html
  154. < Server: S3 v1.0
  155. < Content-Length: 0
  156. < X-XSS-Protection: 1; mode=block
  157. < X-Frame-Options: SAMEORIGIN
  158. < Alternate-Protocol: 443:quic,p=0.08
  159. <
  160. * Connection #0 to host www.google.com left intact
Add Comment
Please, Sign In to add comment