{"id":4263,"date":"2021-11-12T20:32:13","date_gmt":"2021-11-12T12:32:13","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4263"},"modified":"2022-04-08T18:46:10","modified_gmt":"2022-04-08T10:46:10","slug":"detect-local-audio","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/android-toolkit\/detect-local-audio\/","title":{"rendered":"Detect Local Audio and Noise Energy: Android SDK &#8211; Video API"},"content":{"rendered":"\n<p>To detect Local Audio speech and noise, set the setVadObserver Observer and add the Callbacks to receive notifications.<\/p>\n\n\n\n<p><strong>Class:&nbsp;<\/strong><code>EnxRoom<\/code><\/p>\n\n\n\n<p><strong>Observer<\/strong>:<\/p>\n\n\n\n<p><code>public void setVadObserver(EnxVadObserver enxVadObserver)<\/code><\/p>\n\n\n\n<p><strong>Callbacks:&nbsp;<\/strong><\/p>\n\n\n\n<ul><li><code>public void onSpeechDetected(JSONObject jsonObject)<\/code> &#8211; Notification to the user when speech is detected at their endpoint.<\/li><li><code>public void onNoiseDetected(JSONObject jsonObject)<\/code> &#8211; Notification to the user when noise is detected at their endpoint.<\/li><\/ul>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>\u2190 <a href=\"..\/handle-application-switch\/\">Handle Application Switch<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"..\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"><a href=\"..\/enable-proximity-sensor\/\"><\/a><a href=\"..\/enable-proximity-sensor\/\">Enable Proximity Sensor<\/a> \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To detect Local Audio speech and noise, set the setVadObserver Observer and add the Callbacks to receive notifications. Class:&nbsp;EnxRoom Observer: public void setVadObserver(EnxVadObserver enxVadObserver) Callbacks:&nbsp; public void onSpeechDetected(JSONObject jsonObject) &#8211; Notification to the user when speech is detected at their endpoint. public void onNoiseDetected(JSONObject jsonObject) &#8211; Notification to the user when noise is detected at their endpoint. \u2190 Handle Application Switch Index Enable Proximity Sensor \u2192<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3740,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"To detect Local Audio speech and noise, set the setVadObserver Observer and add the Callbacks to receive notifications. Class:&nbsp;EnxRoom Observer: public void setVadObserver(EnxVadObserver enxVadObserver) Callbacks:&nbsp; public void onSpeechDetected(JSONObject jsonObject) &#8211; Notification to the user when speech is detected at their endpoint. public void onNoiseDetected(JSONObject jsonObject) &#8211; Notification to the user when noise is detected at&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4263"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=4263"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4263\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3740"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}