rowntreerob

googl full-duplex speech api

Jul 9th, 2014
908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. $ curl -v "https://www.google.com/speech-api/full-duplex/v1/down?pair=3456123487654321" & curl -v -X POST \ "https://www.google.com/speech-api/full-duplex/v1/up?lang=en-US&lm=dictation&client=chromium&pair=3456123487654321&key=PMU" \
  2. --header "Transfer-Encoding: chunked" --header "Content-Type: audio/x-flac; rate=22050" --data-binary @11.rec
  3.  
  4.  
  5. [1] 16407
  6. * About to connect() to www.google.com port 443 (#0)
  7. * Trying 74.125.239.148...
  8. * About to connect() to www.google.com port 443 (#0)
  9. * Trying 74.125.239.51...
  10. * connected
  11. * Connected to www.google.com (74.125.239.148) port 443 (#0)
  12. * connected
  13. * Connected to www.google.com (74.125.239.51) port 443 (#0)
  14. * *successfully set certificate verify locations:
  15. * successfully set certificate verify locations:
  16. * CAfile: /etc/ssl/certs/ca-certificates.crt
  17. CApath: none
  18. CAfile: /etc/ssl/certs/ca-certificates.crt
  19. CApath: none
  20. ** SSLv3, TLS handshake, Client hello (1):
  21. SSLv3, TLS handshake, Client hello (1):
  22. * SSLv3, TLS handshake, Server hello (2):
  23. * SSLv3, TLS handshake, CERT (11):
  24. * SSLv3, TLS handshake, Server key exchange (12):
  25. * SSLv3, TLS handshake, Server finished (14):
  26. * SSLv3, TLS handshake, Server hello (2):
  27. * SSLv3, TLS handshake, CERT (11):
  28. * SSLv3, TLS handshake, Client key exchange (16):
  29. * SSLv3, TLS change cipher, Client hello (1):
  30. * SSLv3, TLS handshake, Finished (20):
  31. * SSLv3, TLS handshake, Server key exchange (12):
  32. * SSLv3, TLS handshake, Server finished (14):
  33. * SSLv3, TLS handshake, Client key exchange (16):
  34. * SSLv3, TLS change cipher, Client hello (1):
  35. * SSLv3, TLS handshake, Finished (20):
  36. * SSLv3, TLS change cipher, Client hello (1):
  37. * SSLv3, TLS handshake, Finished (20):
  38. * SSL connection using ECDHE-RSA-AES128-SHA
  39. * Server certificate:
  40. * subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
  41. * start date: 2014-06
  42. * expire date: 2014-09
  43. * subjectAltName: www.google.com matched
  44. * issuer: C=US; O
  45. * SSL certificate verify ok.
  46. > POST /speech-api/full-duplex/v1/up?lang=en-US&lm=dictation&client=chromium&pair=3456123487654321&key=AIzaSyCOz0RZ1o_gDftVHVhU1l8q7NKLuJAFPMU HTTP/1.1
  47. > User-Agent: curl/7.28.1-DEV
  48. > Host: www.google.com
  49. > Accept: */*
  50. > Transfer-Encoding: chunked
  51. > Content-Type: audio/x-flac; rate=22050
  52. > Expect: 100-continue
  53. >
  54. * SSLv3, TLS change cipher, Client hello (1):
  55. * SSLv3, TLS handshake, Finished (20):
  56. * SSL connection using ECDHE-RSA-AES128-SHA
  57. * Server certificate:
  58. * subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
  59. * start date: 2014-06
  60. * expire date: 2014-09
  61. * subjectAltName: www.google.com matched
  62. * issuer: C=US; O
  63. * SSL certificate verify ok.
  64. > GET /speech-api/full-duplex/v1/down?pair=3456123487654321 HTTP/1.1
  65. > User-Agent: curl/7.28.1-DEV
  66. > Host: www.google.com
  67. > Accept: */*
  68. >
  69. < HTTP/1.1 200 OK
  70. < Content-Type: application/json; charset=utf-8
  71. < Content-Disposition: attachment
  72. < Cache-Control: no-transform
  73. < X-Content-Type-Options: nosniff
  74. < Pragma: no-cache
  75. < Date: Wed, 09 Jul 2014 15:25:16 GMT
  76. < Server: S3 v1.0
  77. < X-XSS-Protection: 1; mode=block
  78. < X-Frame-Options: SAMEORIGIN
  79. < Alternate-Protocol: 443:quic
  80. < Transfer-Encoding: chunked
  81. <
  82. {"result":[]}
  83. * Done waiting for 100-continue
  84. < HTTP/1.1 200 OK
  85. < Date: Wed, 09 Jul 2014 15:25:21 GMT
  86. < Content-Type: text/html
  87. < Server: S3 v1.0
  88. < Content-Length: 0
  89. < X-XSS-Protection: 1; mode=block
  90. < X-Frame-Options: SAMEORIGIN
  91. < Alternate-Protocol: 443:quic
  92. <
  93. * Connection #0 to host www.google.com left intact
  94. * Closing connection #0
  95. * SSLv3, TLS alert, Client hello (1):
  96. rob@ beacon$ {"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.9560917},{"transcript":"hi how are you we have to go down to the store and see if we can get groceries for this week so we can bring them back in the car"},{"transcript":"hi how are you we have to go down to the store and see if we can give to groceries for this week so we can bring them back in the car"},{"transcript":"hi how are you we have to go down to the store and see if we can get to groceries for this week so we can bring them back in the car"}],"final":true}],"result_index":0}
  97. * Connection #0 to host www.google.com left intact
  98. * Closing connection #0
  99. * SSLv3, TLS alert, Client hello (1):
Advertisement
Add Comment
Please, Sign In to add comment