{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments/69992828","id":69992828,"diff_hunk":"@@ -533,6 +571,63 @@ project.getMetadata(function(err, metadata) {\n ```\n \n \n+## Google Cloud Speech (Limited Preview)\n+\n+> **This is a Limited Preview release of Google Cloud Speech.** This feature is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.\n+\n+- [API Documentation][gcloud-speech-docs]\n+- [Official Documentation][cloud-speech-docs]\n+\n+```js\n+var gcloud = require('gcloud');\n+\n+// Authorizing on a per-API-basis. You don't need to do this if you auth on a\n+// global basis (see Authorization section above).\n+\n+var speech = gcloud.speech({\n+  projectId: 'my-project',\n+  keyFilename: '/path/to/keyfile.json'\n+});\n+\n+// Detect the speech in an audio file.\n+speech.detect('./audio.raw', {\n+  encoding: 'LINEAR16',\n+  sampleRate: 16000\n+}, function(err, result) {\n+  // result = {\n+  //   transcript: 'how old is the Brooklyn Bridge',\n+  //   confidence: 0.97234234234\n+  // ]\n+});\n+```\n+\n+```js\n+// Detect the speech in an audio file stream.\n+var initialRequest = {\n+  encoding: 'LINEAR16',\n+  sampleRate: 16000,\n+  continuous: true\n+};\n+\n+var stream = speech.recognize(initialRequest);\n+  .on('data', function (recognizeResponse) {\n+    console.log(recognizeResponse);\n+  });\n+\n+stream.write({\n+  audioRequest: {","path":"README.md","position":103,"original_position":107,"commit_id":"a6b53488be81fed9e394188ab301ab3f967d0e97","original_commit_id":"162b0683a27ae1f4f49eba986d1a19d13aedf526","user":{"login":"jmdobry","id":1213510,"avatar_url":"https://avatars.githubusercontent.com/u/1213510?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdobry","html_url":"https://github.com/jmdobry","followers_url":"https://api.github.com/users/jmdobry/followers","following_url":"https://api.github.com/users/jmdobry/following{/other_user}","gists_url":"https://api.github.com/users/jmdobry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdobry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdobry/subscriptions","organizations_url":"https://api.github.com/users/jmdobry/orgs","repos_url":"https://api.github.com/users/jmdobry/repos","events_url":"https://api.github.com/users/jmdobry/events{/privacy}","received_events_url":"https://api.github.com/users/jmdobry/received_events","type":"User","site_admin":false},"body":"Yes, my initial implementation of Speech support for gcloud-node uses the v1 proto. As soon as the v1beta1 proto is published to https://github.com/googleapis/googleapis (and thus available in the `google-proto-files` NPM package), I will update this PR to reflect the changes in the new proto.","created_at":"2016-07-07T21:41:38Z","updated_at":"2016-07-07T21:41:38Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1407#discussion_r69992828","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments/69992828"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1407#discussion_r69992828"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407","id":76055472,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1407","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1407.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1407.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1407","number":1407,"state":"open","locked":false,"title":"speech: initial support","user":{"login":"jmdobry","id":1213510,"avatar_url":"https://avatars.githubusercontent.com/u/1213510?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdobry","html_url":"https://github.com/jmdobry","followers_url":"https://api.github.com/users/jmdobry/followers","following_url":"https://api.github.com/users/jmdobry/following{/other_user}","gists_url":"https://api.github.com/users/jmdobry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdobry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdobry/subscriptions","organizations_url":"https://api.github.com/users/jmdobry/orgs","repos_url":"https://api.github.com/users/jmdobry/repos","events_url":"https://api.github.com/users/jmdobry/events{/privacy}","received_events_url":"https://api.github.com/users/jmdobry/received_events","type":"User","site_admin":false},"body":"Closes #1406\r\n\r\nAdd support for the Speech API!\r\n\r\nNote: I may have opened this PR too early, because it's branched off an un-merged PR (#1279). Unfortunately, GitHub doesn't have a \"diffbase\" feature, so this PR looks massive. Opening anyway for initial review.\r\n\r\n----\r\n\r\n- [x] Implementation\r\n  - [x] Speech service\r\n- [x] Docs\r\n- [x] Tests\r\n  - [x] e2e Tests\r\n  - [x] Unit Tests\r\n\r\nNew files:\r\n\r\n* lib/speech/index.js\r\n* test/speech/index.js\r\n* system-test/speech.js\r\n* system-test/data/bridge.raw\r\n* system-test/data/spain.raw\r\n* system-test/data/quit.raw\r\n\r\nModified:\r\n\r\n* lib/index.js\r\n* lib/common/grpc-service.js\r\n* docs/toc.json\r\n* README.md\r\n* package.json\r\n* CONTRIBUTORS","created_at":"2016-07-02T04:11:46Z","updated_at":"2016-07-07T21:41:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04c0f0710417179e8fd8ba8fd2d94d1a05bf7f4d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1407/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/a6b53488be81fed9e394188ab301ab3f967d0e97","head":{"label":"jmdobry:speech","ref":"speech","sha":"a6b53488be81fed9e394188ab301ab3f967d0e97","user":{"login":"jmdobry","id":1213510,"avatar_url":"https://avatars.githubusercontent.com/u/1213510?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdobry","html_url":"https://github.com/jmdobry","followers_url":"https://api.github.com/users/jmdobry/followers","following_url":"https://api.github.com/users/jmdobry/following{/other_user}","gists_url":"https://api.github.com/users/jmdobry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdobry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdobry/subscriptions","organizations_url":"https://api.github.com/users/jmdobry/orgs","repos_url":"https://api.github.com/users/jmdobry/repos","events_url":"https://api.github.com/users/jmdobry/events{/privacy}","received_events_url":"https://api.github.com/users/jmdobry/received_events","type":"User","site_admin":false},"repo":{"id":62340865,"name":"gcloud-node","full_name":"jmdobry/gcloud-node","owner":{"login":"jmdobry","id":1213510,"avatar_url":"https://avatars.githubusercontent.com/u/1213510?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdobry","html_url":"https://github.com/jmdobry","followers_url":"https://api.github.com/users/jmdobry/followers","following_url":"https://api.github.com/users/jmdobry/following{/other_user}","gists_url":"https://api.github.com/users/jmdobry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdobry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdobry/subscriptions","organizations_url":"https://api.github.com/users/jmdobry/orgs","repos_url":"https://api.github.com/users/jmdobry/repos","events_url":"https://api.github.com/users/jmdobry/events{/privacy}","received_events_url":"https://api.github.com/users/jmdobry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmdobry/gcloud-node","description":"Google Cloud Client Library for Node.js","fork":true,"url":"https://api.github.com/repos/jmdobry/gcloud-node","forks_url":"https://api.github.com/repos/jmdobry/gcloud-node/forks","keys_url":"https://api.github.com/repos/jmdobry/gcloud-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmdobry/gcloud-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmdobry/gcloud-node/teams","hooks_url":"https://api.github.com/repos/jmdobry/gcloud-node/hooks","issue_events_url":"https://api.github.com/repos/jmdobry/gcloud-node/issues/events{/number}","events_url":"https://api.github.com/repos/jmdobry/gcloud-node/events","assignees_url":"https://api.github.com/repos/jmdobry/gcloud-node/assignees{/user}","branches_url":"https://api.github.com/repos/jmdobry/gcloud-node/branches{/branch}","tags_url":"https://api.github.com/repos/jmdobry/gcloud-node/tags","blobs_url":"https://api.github.com/repos/jmdobry/gcloud-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmdobry/gcloud-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmdobry/gcloud-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmdobry/gcloud-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmdobry/gcloud-node/statuses/{sha}","languages_url":"https://api.github.com/repos/jmdobry/gcloud-node/languages","stargazers_url":"https://api.github.com/repos/jmdobry/gcloud-node/stargazers","contributors_url":"https://api.github.com/repos/jmdobry/gcloud-node/contributors","subscribers_url":"https://api.github.com/repos/jmdobry/gcloud-node/subscribers","subscription_url":"https://api.github.com/repos/jmdobry/gcloud-node/subscription","commits_url":"https://api.github.com/repos/jmdobry/gcloud-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmdobry/gcloud-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmdobry/gcloud-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmdobry/gcloud-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmdobry/gcloud-node/contents/{+path}","compare_url":"https://api.github.com/repos/jmdobry/gcloud-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmdobry/gcloud-node/merges","archive_url":"https://api.github.com/repos/jmdobry/gcloud-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmdobry/gcloud-node/downloads","issues_url":"https://api.github.com/repos/jmdobry/gcloud-node/issues{/number}","pulls_url":"https://api.github.com/repos/jmdobry/gcloud-node/pulls{/number}","milestones_url":"https://api.github.com/repos/jmdobry/gcloud-node/milestones{/number}","notifications_url":"https://api.github.com/repos/jmdobry/gcloud-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmdobry/gcloud-node/labels{/name}","releases_url":"https://api.github.com/repos/jmdobry/gcloud-node/releases{/id}","deployments_url":"https://api.github.com/repos/jmdobry/gcloud-node/deployments","created_at":"2016-06-30T20:38:57Z","updated_at":"2016-06-30T20:38:59Z","pushed_at":"2016-07-06T18:19:32Z","git_url":"git://github.com/jmdobry/gcloud-node.git","ssh_url":"git@github.com:jmdobry/gcloud-node.git","clone_url":"https://github.com/jmdobry/gcloud-node.git","svn_url":"https://github.com/jmdobry/gcloud-node","homepage":"https://googlecloudplatform.github.io/gcloud-node/","size":15294,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"0a6da605e283fcd563a3fe0653c4d7b0761996cf","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":19483273,"name":"gcloud-node","full_name":"GoogleCloudPlatform/gcloud-node","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-node","description":"Google Cloud Client Library for Node.js","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/deployments","created_at":"2014-05-06T06:18:00Z","updated_at":"2016-07-07T05:11:03Z","pushed_at":"2016-07-06T23:25:09Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-node.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-node.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-node.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-node","homepage":"https://googlecloudplatform.github.io/gcloud-node/","size":16673,"stargazers_count":834,"watchers_count":834,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":175,"mirror_url":null,"open_issues_count":45,"forks":175,"open_issues":45,"watchers":834,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1407"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1407"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1407/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1407/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/a6b53488be81fed9e394188ab301ab3f967d0e97"}}}}
{"actor":{"display_login":"jmdobry"}}