{"id":4180,"date":"2021-11-10T17:14:55","date_gmt":"2021-11-10T09:14:55","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4180"},"modified":"2025-04-05T02:36:40","modified_gmt":"2025-04-04T18:36:40","slug":"talker-noise-notification","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/web-toolkit\/talker-noise-notification\/","title":{"rendered":"Talker &#038; Noise Notification: Web SDK &#8211; Video API"},"content":{"rendered":"\n<p>Availability: <em>Web SDK v1.9.4+<\/em><\/p>\n\n\n\n<p>The&nbsp;<code>subscribeForTalkerNotification()<\/code>&nbsp;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&nbsp;<code>active-talkers-updated<\/code>&nbsp;event is limited to the&nbsp;<code>max_active_talkers<\/code>&nbsp;setting of the Room. <\/p>\n\n\n\n<p>The subscribed Client Endpoint keeps receiving notifications with an event until unsubscribed. <\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>EnxRoom.subscribeForTalkerNotification(enabled, callback)<\/code><\/p>\n\n\n\n<p><strong>Parameters: <\/strong><\/p>\n\n\n\n<ul><li><code>enabled<\/code> &#8211; Boolean. Set to <em>true<\/em> to subscribe to Talker Notification, false to unsubscribe. <\/li><li><code>callback<\/code> &#8211; Callback returns with response information on Talker Subscription\/Unsubscription. <\/li><\/ul>\n\n\n\n<p><strong>Event Listener:<\/strong> <\/p>\n\n\n\n<p><code>talker-notification<\/code> &#8211; Notification to the subscriber received with JSON Object carrying the details of users from whom speech or sound is detected.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">room.subscribeForTalkerNotification(true, function(resp) {\n\t\/\/ response is a JSON, e.g.\n\t\/*\n\t{\u202f\t\"result\": 0,\u202f \n\t\t\"msg\": \"Success\"\u202f \n\t}\n\t*\/\u202f \n}); \n\nroom.addEventListener(\"talker-notification \", function(evt) {\n\t\/\/ evt is JSON with Talkers. Refer a sample given below \n\t\n});<\/pre>\n\n\n\n<p><code>talker-notification<\/code> <strong>JSON<\/strong> <strong>Payload<\/strong><\/p>\n\n\n\n<ul><li><code>message<\/code> &#8211; Array of two types of objects. The object type is distinguished as speech and noise depending on the sound produced at the Talker&#8217;s Endpoint. <ul><li><code>speech<\/code>: An array of&nbsp;<code>clientIds<\/code>&nbsp;who are are talking.<\/li><li><code>noise<\/code>: An array of&nbsp;<code>clientIds<\/code>&nbsp;producing noise.<\/li><\/ul><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n  \"type\": \"talker-notification\",\n  \"message\": [\n    {\n      \"speech\": true,\n      \"users\": [\n        {\n          \"clientId\": \"xxxxx\"\n        },\n        {\n          \"clientId\": \"yyyyy\"\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<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\/\"><\/a><a href=\"..\/live-media-statistics\/\">Get 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=\"..\/audio-only-mode\/\">Audio Only Mode<\/a> \u2192 <\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Availability: Web SDK v1.9.4+ The&nbsp;subscribeForTalkerNotification()&nbsp;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&nbsp;active-talkers-updated&nbsp;event is limited to the&nbsp;max_active_talkers&nbsp;setting of the Room. The subscribed Client Endpoint keeps&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3724,"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":"Availability: Web SDK v1.9.4+ The&nbsp;subscribeForTalkerNotification()&nbsp;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&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4180"}],"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=4180"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4180\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3724"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}