{"id":4244,"date":"2021-11-12T18:25:42","date_gmt":"2021-11-12T10:25:42","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4244"},"modified":"2022-04-08T13:42:34","modified_gmt":"2022-04-08T05:42:34","slug":"talker-noise-notification","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/android-toolkit\/talker-noise-notification\/","title":{"rendered":"Talker &#038; Noise Notification: Android SDK &#8211; Video API"},"content":{"rendered":"\n<p><em>Android SDK v1.9.5+<\/em><\/p>\n\n\n\n<p>The <code>subscribeForTalkerNotification()<\/code> method allows you to receive notification for the talkers in the Room or the participants acting as a source of the noise. You can utilize this method for UI display or for debugging. Note that the list of talkers received could be longer than the Active Talkers list, because Active Talkers list received with <code>onActiveTalkersUpdated<\/code> callback is limited to the  <code>max_active_talkers<\/code> setting of the Room.   <\/p>\n\n\n\n<p><strong>Class<\/strong>:&nbsp;<code>EnxRoom<\/code><\/p>\n\n\n\n<p><strong>Observer:<\/strong> <code>public void setEnxTalkerNotificationObserver(Talker-Observer-Instance)<\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>public void subscribeForTalkerNotification(Boolean isEnabled, EnxTalkerNotificationObserver e)<\/code><\/p>\n\n\n\n<p><strong>Parameters: <\/strong><\/p>\n\n\n\n<ul><li>isE<code>nabled<\/code>: Boolean. Set to <em>true<\/em> to subscribe to Talker Notification and <em>false<\/em> to unsubscribe. <\/li><li><code>EnxTalkerNotificationObserver<\/code>  <\/li><\/ul>\n\n\n\n<p><strong>Callbacks<\/strong>: <\/p>\n\n\n\n<ul><li><code>onAckSubscribeTalkerNotification <\/code>&#8211; Acknowledgment to the subscriber when Talker Notification subscribed successfully.<\/li><li><code>onAckUnsubscribeTalkerNotification <\/code>&#8211; Acknowledgment to the subscriber when Talker Notification unsubscribed successfully.<\/li><li><code>onTalkerNotification<\/code> &#8211; Notification to the subscriber received with JSON Object carrying the details of users from whom speech or sound is detected. <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">room.subscribeForTalkerNotification(true, this); \/\/ To subscribe\nroom.subscribeForTalkerNotification(false, this); \/\/ To unsubscribe\n\n\/\/ Acknowledgement on Talker Subscription\npublic void onAckSubscribeTalkerNotification(JSONObject jsonObject) {\n\t\/\/ JSON Object example\n\t\/* \n\t{\t\"result\": { \n\t\t\t\"result\": 0, \n\t\t\t\"msg\": \"Success\"\n\t\t},\n\t\t\"id\": \"talker-notification\u201d\n\t}\n\t*\/\n}\n\n\/\/ Acknowledgement on Talker Unsubscription\npublic void onAckUnsubscribeTalkerNotification(JSONObject jsonObject) {\n\t\/\/ JSON Object example\n\t\/* \n\t{\t\"result\": { \n\t\t\t\"result\": 0, \n\t\t\t\"msg\": \"Success\"\n\t\t},\n\t\t\"id\": \"talker-notification\u201d\n\t}\n\t*\/\n}\n\n\/\/ Receive Talker Notification on Subscription\npublic void onTalkerNotification(JSONObject jsonObject) {\n\t\/\/ JSON Object example given later in the document\n}<\/pre>\n\n\n\n<p><strong>onTalkerNotification<\/strong> <strong>JSON Payload:  <\/strong><\/p>\n\n\n\n<ul><li><code>data<\/code>: An array of objects. Each object consists of an array of users who are talking and an array of users who are merely a source of noise.  <ul><li><code>speech<\/code>: It contains <code>users<\/code>, an array of client information who are talking with their <code>clientId<\/code> and <code>speechType<\/code> (Intensity) as <code>low<\/code>, <code>media high <\/code><\/li><\/ul><ul><li><code>noise<\/code>: An array of <code>clientIds<\/code> producing noise. <\/li><\/ul><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n  \"type\": \"talker-notification\",\n  \"data\": [\n    {\n      \"speech\": true,\n      \"users\": [\n        {\n          \"speechType\": \"high\"\n          \"clientId\": \"xxxxx\"\n        },\n        {\n          \"speechType\": \"medium\"\n\t  \"clientId\": \"yyyyy\"\n        },\n        {\n          \"speechType\": \"low\"\n\t  \"clientId\": \"zzz\"\n        }\n      ]\n    },\n    {\n      \"noise\": true,\n      \"users\": [\n        {\n          \"clientId\": \"sssss\"\n        },\n        {\n          \"clientId\": \"uuuuu\"\n        }\n      ]\n    }\n  ]\n}<\/pre>\n\n\n\n<p><strong>Error Codes \/ Exceptions:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Code<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>5128<\/td><td>Repeated subscription request call while a previous request is in process.<\/td><\/tr><tr><td>5129<\/td><td>Repeated unsubscription request call while a previous request is in process.<\/td><\/tr><tr><td>5130<\/td><td>Talker Notification already subscribed.<\/td><\/tr><tr><td>5131<\/td><td>Illegible attempt to unsubscribe Talker Notification without subscribing first.<\/td><\/tr><\/tbody><\/table><\/figure>\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=\"..\/live-media-statistics\/\">Live Media Statistics<\/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=\"..\/adjust-layout\/\"><\/a><a href=\"..\/adjust-layout\/\">Adjust Layout<\/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>Android SDK v1.9.5+ The subscribeForTalkerNotification() method allows you to receive notification for the talkers in the Room or the participants acting as a source of the noise. You can utilize this method for UI display or for debugging. Note that the list of talkers received could be longer than the Active Talkers list, because Active Talkers list received with onActiveTalkersUpdated callback is limited to the max_active_talkers setting of the Room.&hellip; <\/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":"Android SDK v1.9.5+ The subscribeForTalkerNotification() method allows you to receive notification for the talkers in the Room or the participants acting as a source of the noise. You can utilize this method for UI display or for debugging. Note that the list of talkers received could be longer than the Active Talkers list, because Active&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4244"}],"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=4244"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4244\/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=4244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}