{"id":160,"date":"2023-03-17T16:45:11","date_gmt":"2023-03-17T20:45:11","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/?p=160"},"modified":"2023-03-17T16:46:57","modified_gmt":"2023-03-17T20:46:57","slug":"nina-duans-status-report-for-3-18-2023","status":"publish","type":"post","link":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/2023\/03\/17\/nina-duans-status-report-for-3-18-2023\/","title":{"rendered":"Nina Duan\u2019s Status Report For 3\/18\/2023"},"content":{"rendered":"<h6><b>Personal Accomplishment<\/b><\/h6>\n<p><span style=\"font-weight: 400\">In addition to completing the ethics assignment, I integrated our database module and preliminary NLP module with Lisa and modified the microphone &amp; speech recognition system provided by Python\u2019s SpeechRecognition library.<\/span><\/p>\n<p><span style=\"font-weight: 400\">After integration, our system is now able to extract menu items and quantities from simple sentences, add them to an Order object, and upload that object to the database. However, there are still flaws with this simple system because we have yet to implement the checkout portion of the NLP module.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The open-source SpeechRecognition library provides a basic real-time speech recognition functionality that can be used with an external microphone. This process, however, doesn\u2019t allow room for noise reduction. Therefore, I explored the source code of the library, determined where the microphone\u2019s input is read, and extended it to utilize a noise reduction algorithm. For now, it uses a simple, deterministic noise cancellation algorithm that attempts to cancel out low amplitudes by mixing with the signal\u2019s inversion. By slightly altering <\/span><a href=\"https:\/\/gist.github.com\/denisb411\/cbe1dce9bc01e770fa8718e4f0dc7367\"><span style=\"font-weight: 400\">this visualization tool<\/span><\/a><span style=\"font-weight: 400\">, I was able to visualize the difference. This is what it looks like when I speak at conversational volume from a distance of ~0.7m, with a restaurant\u00a0<\/span><span style=\"font-weight: 400\">ambience noise YouTube video playing in the background (graphs are in time domain; top = raw microphone input, bottom = filtered input):<\/span><\/p>\n<figure id=\"attachment_161\" aria-describedby=\"caption-attachment-161\" style=\"width: 840px\" class=\"wp-caption alignleft\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-161 size-large\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-content\/uploads\/sites\/248\/2023\/03\/Screenshot-2023-03-17-at-16.39.28-1024x787.png\" alt=\"\" width=\"840\" height=\"646\" \/><figcaption id=\"caption-attachment-161\" class=\"wp-caption-text\">No speech, only noise.<\/figcaption><\/figure>\n<figure id=\"attachment_163\" aria-describedby=\"caption-attachment-163\" style=\"width: 840px\" class=\"wp-caption alignleft\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-163 size-large\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-content\/uploads\/sites\/248\/2023\/03\/Screenshot-2023-03-17-at-16.42.29-1024x808.png\" alt=\"\" width=\"840\" height=\"663\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-content\/uploads\/sites\/248\/2023\/03\/Screenshot-2023-03-17-at-16.42.29-1024x808.png 1024w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-content\/uploads\/sites\/248\/2023\/03\/Screenshot-2023-03-17-at-16.42.29-300x237.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-content\/uploads\/sites\/248\/2023\/03\/Screenshot-2023-03-17-at-16.42.29-768x606.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-content\/uploads\/sites\/248\/2023\/03\/Screenshot-2023-03-17-at-16.42.29-1200x947.png 1200w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-content\/uploads\/sites\/248\/2023\/03\/Screenshot-2023-03-17-at-16.42.29.png 1890w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption id=\"caption-attachment-163\" class=\"wp-caption-text\">Speech with noise, with amplitude decreased.<\/figcaption><\/figure>\n<h6><b>About Schedule<\/b><\/h6>\n<p><span style=\"font-weight: 400\">I have caught up to the schedule. The microphone has been set up, and preliminary signal processing code has been written.<\/span><\/p>\n<h6><b>Plans for Next Week<\/b><\/h6>\n<p><span style=\"font-weight: 400\">I will continue to work with Lisa to improve our NLP &amp; database modules, as this is the core part of our system. In addition, I will start installing necessary dependencies on and transferring our code to the microcontroller (RPi 4). <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Personal Accomplishment In addition to completing the ethics assignment, I integrated our database module and preliminary NLP module with Lisa and modified the microphone &amp; speech recognition system provided by Python\u2019s SpeechRecognition library. After integration, our system is now able to extract menu items and quantities from simple sentences, add them to an Order object, &hellip; <a href=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/2023\/03\/17\/nina-duans-status-report-for-3-18-2023\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Nina Duan\u2019s Status Report For 3\/18\/2023&#8221;<\/span><\/a><\/p>\n","protected":false},"author":687,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/posts\/160"}],"collection":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/users\/687"}],"replies":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":4,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":166,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/posts\/160\/revisions\/166"}],"wp:attachment":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd3\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}