{"action":"created","issue":{"url":"https://api.github.com/repos/eouia/MMM-Assistant/issues/35","repository_url":"https://api.github.com/repos/eouia/MMM-Assistant","labels_url":"https://api.github.com/repos/eouia/MMM-Assistant/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/eouia/MMM-Assistant/issues/35/comments","events_url":"https://api.github.com/repos/eouia/MMM-Assistant/issues/35/events","html_url":"https://github.com/eouia/MMM-Assistant/issues/35","id":308723829,"number":35,"title":"TypeError: Speech is not a function","user":{"login":"E3V3A","id":194392,"avatar_url":"https://avatars1.githubusercontent.com/u/194392?v=4","gravatar_id":"","url":"https://api.github.com/users/E3V3A","html_url":"https://github.com/E3V3A","followers_url":"https://api.github.com/users/E3V3A/followers","following_url":"https://api.github.com/users/E3V3A/following{/other_user}","gists_url":"https://api.github.com/users/E3V3A/gists{/gist_id}","starred_url":"https://api.github.com/users/E3V3A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/E3V3A/subscriptions","organizations_url":"https://api.github.com/users/E3V3A/orgs","repos_url":"https://api.github.com/users/E3V3A/repos","events_url":"https://api.github.com/users/E3V3A/events{/privacy}","received_events_url":"https://api.github.com/users/E3V3A/received_events","type":"User","site_admin":false},"labels":[{"id":880459949,"url":"https://api.github.com/repos/eouia/MMM-Assistant/labels/branch:%20dev","name":"branch: dev","color":"d4c5f9","default":false},{"id":685196477,"url":"https://api.github.com/repos/eouia/MMM-Assistant/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-26T20:30:02Z","updated_at":"2018-03-28T05:08:21Z","closed_at":null,"author_association":"COLLABORATOR","body":"Relevant Branch: `dev`\r\n\r\nBy chance I failed to give a command after saying `smart-mirror`. Then it froze with the following \r\nerror in the logs:\r\n\r\n```\r\nTypeError: Speech is not a function\r\n    at Class.activateCommand (/home/pi/MagicMirror/modules/MMM-Assistant/node_helper.js:355:20)\r\n    at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Assistant/node_helper.js:88:43)\r\n    at Socket.<anonymous> (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:113:11)\r\n    at emitTwo (events.js:106:13)\r\n    at Socket.emit (events.js:191:7)\r\n    at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:513:12\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)\r\n```\r\n\r\nLooking at the code line, we have:\r\n```js\r\n...\r\n  activateCommand: function() {\r\n    this.sendSocketNotification('MODE', {mode:'COMMAND_STARTED'})\r\n    const speech = Speech(this.config.stt.auth[this.commandAuthIndex++])    // ERROR LINE!!\r\n    if (this.commandAuthIndex >= this.commandAuthMax) this.commandAuthIndex = 0\r\n...\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eouia/MMM-Assistant/issues/comments/376763031","html_url":"https://github.com/eouia/MMM-Assistant/issues/35#issuecomment-376763031","issue_url":"https://api.github.com/repos/eouia/MMM-Assistant/issues/35","id":376763031,"user":{"login":"E3V3A","id":194392,"avatar_url":"https://avatars1.githubusercontent.com/u/194392?v=4","gravatar_id":"","url":"https://api.github.com/users/E3V3A","html_url":"https://github.com/E3V3A","followers_url":"https://api.github.com/users/E3V3A/followers","following_url":"https://api.github.com/users/E3V3A/following{/other_user}","gists_url":"https://api.github.com/users/E3V3A/gists{/gist_id}","starred_url":"https://api.github.com/users/E3V3A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/E3V3A/subscriptions","organizations_url":"https://api.github.com/users/E3V3A/orgs","repos_url":"https://api.github.com/users/E3V3A/repos","events_url":"https://api.github.com/users/E3V3A/events{/privacy}","received_events_url":"https://api.github.com/users/E3V3A/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T05:08:21Z","updated_at":"2018-03-28T05:08:21Z","author_association":"COLLABORATOR","body":"There are also a lot of ocmments in this file:\r\n```bash\r\ncd ~/MagicMirror/modules/MMM-Assistant\r\nnano ./node_modules/@google-cloud/speech/src/v1p1beta1/doc/google/cloud/speech/v1p1beta1/doc_cloud_speech.js\r\n```\r\n"}}
{"actor":{"display_login":"E3V3A"}}