Skip to main content
Classify a speech

Authorizations

X-Api-Key
string
header
required

Your API key.

Headers

Accept
enum<string>

Response content type. Supported: application/json, text/plain.

Available options:
application/json,
text/plain

Body

multipart/form-data
audio
file
required

The speech to be classified. Supported formats: MP3, WAV, OGG, FLAC, AAC, 3GP, M4A, M4B, M4P, M4R, MP4. MIME types: audio/mpeg, audio/wav, audio/ogg, audio/flac, audio/aac, audio/3gp, audio/m4a, audio/m4b, audio/m4p, audio/m4r, video/mp4. Maximum file size: 15MB.

ref_id
string

An optional reference ID to associate with the classification request.

webhook_url
string

If specified, the classification result will also be automatically sent to the entered URL. Otherwise, the result can be obtained by polling the relative endpoint. Please note that in order to use a webhook callback URL you need to request a specific enablement, otherwise the parameter is ignored. Moreover, the system may cache the analysis results of repeated submissions, i.e. submissions of the same file with the same options: in this case the webhook won't be called and the results would be accessible only by polling the relative endpoint.

deferred_webhook_url
string

If specified, the URL is notified once when the deferred results of the submission are complete (e.g. the textual explanations of the XAI maps and of the heatmap), after the main results sent to webhook_url. The notification carries the event submission.deferred.completed: see Deferred results for the payload. The same enablement, domain restrictions and authentication of webhook_url apply. Delivery is at least once: deduplicate by identifier, and note that an expired notification can be followed by a second one with the real outcome, which supersedes it. If omitted or empty, no deferred notification is sent.

no_cache
boolean

Set it to true to force the system to reprocess the image even if it has been previously submitted with the same options. This may result in additional charges.

prevent_c2pa_forces
boolean

If true, C2PA signature does not force the origin to artificial. If false or undefined, C2PA signature will force the origin to artificial (current behaviour).

audio_timestamps
string

[Plan feature] Specific moments of the speech to analyze. Comma-separated list of timecodes in HH:MM:SS.mmm format, measured from the beginning of the file (e.g. 00:00:05.000,00:01:12.500). When provided, instead of splitting the audio into chunks over its whole duration, the system analyzes one short audio chunk centred on each listed moment; moments close enough to fall within the same chunk are analyzed together in a single chunk. Duplicated moments are counted once. You can list up to 30 moments if your pricing plan lets you choose the number of audio chunks, otherwise up to 5. One audio chunk is charged for each distinct moment: chunks that are not produced (grouped moments, moments beyond the end of the audio) are refunded once the analysis is complete. If none of the moments falls within the audio, the classification ends with an error. You must be enabled in your pricing plan to use this option, otherwise the parameter is ignored.

Example:

"00:00:05.000,00:01:12.500"

Response

The classification identifier. The format depends on the Accept header.

identifier
string
Example:

"8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0"