Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- beacon$ curl -v -X POST -k "https://gateway.watsonplatform.net:8443/speech-to-text-beta/api/v1/recognize" \
- --header "Transfer-Encoding: chunked" \
- --header "Content-Type: audio/x-flac; rate=22050" \
- --data-binary @11.rec -o bluemix-speech -u e39e:Fl7Yo
- * About to connect() to gateway.watsonplatform.net port 8443 (#0)
- * Trying 23.246.237.54...
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
- * Connected to gateway.watsonplatform.net (23.246.237.54) port 8443 (#0)
- * successfully set certificate verify locations:
- * CAfile: /etc/ssl/certs/ca-certificates.crt
- CApath: none
- { [data not shown]
- * SSL connection using AES256-SHA
- * Server certificate:
- * subject: C=US; ST=New York; L=Armonk; O=International Business Machines Corporation; CN=gateway.watsonplatform.net
- * start date: 2014-09
- * expire date: 2017-09
- * subjectAltName: gateway.watsonplatform.net matched
- * issuer: C=US; O
- * SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
- * Server auth using Basic with user 'f38e'
- > POST /speech-to-text-beta/api/v1/recognize HTTP/1.1
- > Authorization: Basic ZTM5ZTA2ZTItZDM4Ny00MTBlLWE3MTctZDNiM2ZiM2VmMzhlOkJuam5wNGlGbDdZbw==
- > User-Agent: curl/7.28.1-DEV
- > Host: gateway.watsonplatform.net:8443
- > Accept: */*
- > Transfer-Encoding: chunked
- > Content-Type: audio/x-flac; rate=22050
- > Expect: 100-continue
- >
- < HTTP/1.1 100 Continue
- < X-Note: Gateway Ack
- } [data not shown]
- 100 362k 0 0 100 362k 0 50458 0:00:07 0:00:07 --:--:-- 34030< HTTP/1.1 200 OK
- < X-Backside-Transport: OK OK
- < Connection: Keep-Alive
- < Transfer-Encoding: chunked
- < Server: Apache-Coyote/1.1
- < Date: Fri, 06 Feb 2015 23:10:54 GMT
- < Content-Disposition: inline; filename="result.json"
- < X-Zuul: zuul
- < X-Zuul-instance: unknown
- < X-Zuul-Filter-Executions: Routing[SUCCESS][0ms], ParseHostFilter[SUCCESS][0ms], PreDecoration[SUCCESS][0ms], ZuulNFRequest[SUCCESS][7896ms]
- < X-Originating-URL: https://gateway.watsonplatform.net:8443/speech-to-text-beta/api/v1/recognize
- < Content-Type: application/json
- < X-Client-IP: 108.192.16.200
- < X-Global-Transaction-ID: 194934241
- <
- 100 362k 0 0 100 362k 0 44956 0:00:08 0:00:08 --:--:-- 13779{ [data not shown]
- 100 362k 0 324 100 362k 39 44945 0:00:08 0:00:08 --:--:-- 0
- * Connection #0 to host gateway.watsonplatform.net left intact
- * Closing connection #0
- ===RESPONSE===
- {
- "results": [
- {
- "alternatives": [
- {
- "transcript": "harley 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 "
- }
- ],
- "final": true
- }
- ],
- "result_index": 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement