{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-lex-browser-audio-capture/issues/7","repository_url":"https://api.github.com/repos/awslabs/aws-lex-browser-audio-capture","labels_url":"https://api.github.com/repos/awslabs/aws-lex-browser-audio-capture/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-lex-browser-audio-capture/issues/7/comments","events_url":"https://api.github.com/repos/awslabs/aws-lex-browser-audio-capture/issues/7/events","html_url":"https://github.com/awslabs/aws-lex-browser-audio-capture/issues/7","id":319220331,"number":7,"title":"Apparent duplication of spoken content after the first submission","user":{"login":"colingoldberg","id":2991417,"avatar_url":"https://avatars3.githubusercontent.com/u/2991417?v=4","gravatar_id":"","url":"https://api.github.com/users/colingoldberg","html_url":"https://github.com/colingoldberg","followers_url":"https://api.github.com/users/colingoldberg/followers","following_url":"https://api.github.com/users/colingoldberg/following{/other_user}","gists_url":"https://api.github.com/users/colingoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/colingoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colingoldberg/subscriptions","organizations_url":"https://api.github.com/users/colingoldberg/orgs","repos_url":"https://api.github.com/users/colingoldberg/repos","events_url":"https://api.github.com/users/colingoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/colingoldberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-01T14:53:06Z","updated_at":"2018-05-23T13:42:20Z","closed_at":null,"author_association":"NONE","body":"Hi Andrew,\r\n\r\nAs suggested, here is a copy of my posting in the discussion on the blog page.\r\n\r\nIn my recent testing I have noticed what appears to be a bug. I am not sure if this is in the aws-lex-audio.js file or in Lex.\r\n\r\nIf the problem  is in the aws-lex-audio.js file - ie. that it does not appear to be initializing the recorder buffer in each cycle, it is a guess based on my seeing that Lex is passing uninitialized slot and transcript text to my Lambda function on subsequent tests.\r\n\r\nSo for example: I might say \"give me the summary\". \"give\" is (correctly) put in a slot named actionVerb. In the first cycle the Lambda function gets:\r\n\r\ntranscript = \"give me the summary\"\r\nactionVerb = \"give\"\r\n\r\nIf I click on the (mic) image and repeat \"give me the summary\", the Lambda function shows:\r\n\r\ntranscript = \"give me the summary give me the summary\"\r\nactionVerb = \"give give\"\r\n\r\nNow this may be a Lex problem, so please let me know if my guess - that the recorder buffer is not being initialized each time - is wrong. I looked at the \"startRecording\" function and it looks ok.\r\n\r\nI did originally take the code from github, and made only one addition for sessionAttributes (plus some console.logs).\r\n\r\nI have just compared aws-lex-audio.js on github with what I have and this shows as:\r\n`\r\n231c231\r\n< var DEFAULT_USER_ID = 'LexTester';\r\n---\r\n> var DEFAULT_USER_ID = 'userId';\r\n353,354d346\r\n< console.log('Sending:');\r\n< console.log(state.lexConfig);\r\n357d348\r\n< //console.log(data);\r\n402d392\r\n< lexConfig.sessionAttributes = lexConfig.hasOwnProperty('sessionAttributes') ? lexConfig.sessionAttributes : {};\r\n`\r\n\r\nWhen I restart the client (in chrome), it does not show duplicates.\r\n\r\nOS: macosx 10.13.4\r\nBrowser: chrome\r\n\r\nAny help is appreciated.\r\n\r\nColin Goldberg"},"comment":{"url":"https://api.github.com/repos/awslabs/aws-lex-browser-audio-capture/issues/comments/391351028","html_url":"https://github.com/awslabs/aws-lex-browser-audio-capture/issues/7#issuecomment-391351028","issue_url":"https://api.github.com/repos/awslabs/aws-lex-browser-audio-capture/issues/7","id":391351028,"user":{"login":"colingoldberg","id":2991417,"avatar_url":"https://avatars3.githubusercontent.com/u/2991417?v=4","gravatar_id":"","url":"https://api.github.com/users/colingoldberg","html_url":"https://github.com/colingoldberg","followers_url":"https://api.github.com/users/colingoldberg/followers","following_url":"https://api.github.com/users/colingoldberg/following{/other_user}","gists_url":"https://api.github.com/users/colingoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/colingoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colingoldberg/subscriptions","organizations_url":"https://api.github.com/users/colingoldberg/orgs","repos_url":"https://api.github.com/users/colingoldberg/repos","events_url":"https://api.github.com/users/colingoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/colingoldberg/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T13:42:20Z","updated_at":"2018-05-23T13:42:20Z","author_association":"NONE","body":"I have been testing using a local file - maybe that's the answer - or part of it. \r\n\r\nI will test it from my website to make sure - give me a little time as I am refactoring the site. I will be happy to communicate by email shortly to set up a call if necessary."}}
{"actor":{"display_login":"colingoldberg"}}