Filter and censor messages with the adaptive chat filter
This AI-powered chat filter censors words in messages based on defined, configurable content types. This feature is currently server-enabled and needs to be enabled on your account before you can use it. For more information on how to enable this feature, contact your sales representative.
Once the Adaptive chat filter is added to your project you can customize how it works in your game.
Chat filter language handling per message
The chat filter handles messages based on the user’s set language. The chat filter expects the language to be set in each request on a per-message basis. This means that if a preferred language is set, the Vivox SDK must specify which language to use on the respective channel class or interface that sends messages to ensure that the proper chat filter is used.
The following is a code example for setting the language of a direct message. The same approach can be used on channel-based messages.
vx_req_account_send_msg *req;
vx_req_account_send_msg_create(&req);
req->connector_handle = vx_strdup("c1");
req->account_handle = vx_strdup(".issuer-w-dev.mytestaccountname.");
req->language = vx_strdup("en-us");
req->user_uri = vx_strdup("sip:theotheruser@vd1.vivox.com");
req->message_body = vx_strdup("Hey there buddy!");
vx_issue_request2(&req->base);
Speech-to-text
Messages produced through Speech-to-text can be filtered. Words are filtered out when the speech is converted to text. To enable this feature, contact your Vivox representative.