Provide a live audio streaming source, can be a video or an audio bitstream, or a static file from a cloud storage provider.

POST https://api.chatsight.ai/stream/moderate

HEADER x-chatsight-api-auth: <API-TOKEN>
HEADER x-chatsight-api: chatsightvoice

curl --location --request POST 'https://api.chatsight.ai/stream/moderate' \
--header 'x-chatsight-api-auth: <YOUR_API_KEY>' \
--header 'x-chatsight-api: chatsightvoice' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url":"https://pizzastream.com/stream.m3u8",
    "authorKey":"...",
    "longRunning":false,
    "convoId":"pizzaChatRoom"
}'

Payload Properties

KeyValueDescription
urlSTRINGA URL that represents a streaming audio or video resource, or a static resource.
authorKeySTRINGA Base64 representation of a 32-Byte secret key that you will use to decrypt the job results. You can use different keys for any job, but please be aware we cannot recover moderation resources if you lose this key. The underlying encryption method is AES-CBC-256.
longRunningBOOLEANIf the media provided by the URL submitted is not a live stream, ensure this key is set to true. (i.e. you provide a S3 URL)
convoIdSTRINGAssign a unique name to the audio resource. We recommend you name the resource in a way that is not predictable, and allows you to easily reference it within your own database. A minimum of 10 characters is required. You will need to reference this value to access the moderation results.