{"action":"created","issue":{"url":"https://api.github.com/repos/mmig/speech-to-flac/issues/3","repository_url":"https://api.github.com/repos/mmig/speech-to-flac","labels_url":"https://api.github.com/repos/mmig/speech-to-flac/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mmig/speech-to-flac/issues/3/comments","events_url":"https://api.github.com/repos/mmig/speech-to-flac/issues/3/events","html_url":"https://github.com/mmig/speech-to-flac/issues/3","id":296342642,"number":3,"title":"Error upon submitting FLAC to Google Cloud Speech API","user":{"login":"dansoloway","id":31379655,"avatar_url":"https://avatars0.githubusercontent.com/u/31379655?v=4","gravatar_id":"","url":"https://api.github.com/users/dansoloway","html_url":"https://github.com/dansoloway","followers_url":"https://api.github.com/users/dansoloway/followers","following_url":"https://api.github.com/users/dansoloway/following{/other_user}","gists_url":"https://api.github.com/users/dansoloway/gists{/gist_id}","starred_url":"https://api.github.com/users/dansoloway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansoloway/subscriptions","organizations_url":"https://api.github.com/users/dansoloway/orgs","repos_url":"https://api.github.com/users/dansoloway/repos","events_url":"https://api.github.com/users/dansoloway/events{/privacy}","received_events_url":"https://api.github.com/users/dansoloway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-12T11:28:53Z","updated_at":"2018-02-20T14:30:27Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nThanks for this amazing code! I am trying to get it to work with Google Cloud API. I added the API key, but am getting this error:\r\n\r\nResponse to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.\r\n\r\nAny ideas? \r\nThanks!\r\nDaniel"},"comment":{"url":"https://api.github.com/repos/mmig/speech-to-flac/issues/comments/366994530","html_url":"https://github.com/mmig/speech-to-flac/issues/3#issuecomment-366994530","issue_url":"https://api.github.com/repos/mmig/speech-to-flac/issues/3","id":366994530,"user":{"login":"russaa","id":3603062,"avatar_url":"https://avatars3.githubusercontent.com/u/3603062?v=4","gravatar_id":"","url":"https://api.github.com/users/russaa","html_url":"https://github.com/russaa","followers_url":"https://api.github.com/users/russaa/followers","following_url":"https://api.github.com/users/russaa/following{/other_user}","gists_url":"https://api.github.com/users/russaa/gists{/gist_id}","starred_url":"https://api.github.com/users/russaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russaa/subscriptions","organizations_url":"https://api.github.com/users/russaa/orgs","repos_url":"https://api.github.com/users/russaa/repos","events_url":"https://api.github.com/users/russaa/events{/privacy}","received_events_url":"https://api.github.com/users/russaa/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T14:30:27Z","updated_at":"2018-02-20T14:30:27Z","author_association":"CONTRIBUTOR","body":"hmm, I am not sure -- I am not expert in this, but it seems to me, the process described in the link is for granting an app access to Google user's private account/data (or parts thereof).\r\n\r\nWhat would be needed here, is kind of the reverse scenario: it is not the user allowing access, but the web app/server/etc allowing access to the recognition service.\r\n\r\nSo you would need to know which users you want to grant access to this service -- if it's all users who have a Google account, then you could use the process that you linked to.\r\n\r\nBasically, you need some process to decide which users should be allowed to use your service (whatever that process that might be) and then generate `access_token`s for the allowed users.\r\n\r\nFor generating the `access_token`s on your server, I included a simple sample script [create_access_token.js](../blob/master/create_access_token.js) in the repo. This would needed to be wrapped in service, and the service should only be accessible by allowed users.  \r\nE.g. if you use apache and have a fixed list of users, you could simply use `.htaccess` with basic-auth for the web site."}}
{"actor":{"display_login":"russaa"}}