Submit a job

POST /batch-processor

This endpoint is used to submit jobs to the batch processor.

A job request includes three components: a preset (preset), an input configuration (inParams), an output configuration (outParams).

The preset defines the type of job to run. This is a required attribute and available presets are: transcript, soap-notes, summarize.

The inParams defines where the inputs for the job are coming from. An existing recordingId or a URL to a video/audio file are the two possible configurations.

The outParams defines how the outputs for the job are configured like the filename of the output.

Depending on the preset type, an optional transformParams object may contain configuration that describes the transformation applied to the data. Currently only the transcript preset supports these transform configuration options.

Request Template (json)

Top-level configuration

Attribute NameTypeDescriptionDefaultExampleRequired?
presetstringThe type of job to runnull[transcript, soap-notes, summarize]Yes
inParamsobjectThe input configurationnull{...}Yes
outParamsobjectThe output configurationnull{...}Yes
transformParamsobjectThe output configurationnull{...}No

Input configuration (inParams)

Attribute NameTypeDescriptionDefaultExampleRequired?
sourceTypestringThe type of the input media: [uri, recordingId]nullOne of [uri, recordingId]Yes
uristringThe actual URL when using "uri" as sourceTypenull"https://direct-url-to/file.mp4"When using uri as sourceType
recordingIdstringThe recording ID when using recordingId as sourceTypenull"uuiasdfe-8ba2-4ee6-bd15-003a92c18245"When using recordingId as sourceType
languagestringThe BCP-47 language-tag of spoken the audio for the transcriptionen"fr"No

Note: language in inParams is only supported for the transcript preset. Additional options are available for transcriptions, see below.

Transform configuration (transformParams)

Attribute NameTypeDescriptionDefaultExampleRequired?
transcriptobjectConfiguration specific to transcriptionnull{...}No

Transcription configuration (transformParams.transcript)

The following parameters can be passed in the transformParams.transcript object. None of the parameters are required. See the documentation for each parameter for more information on their default values.

Note that you can include more parameters using the extra object.

If you pass a value for language both using inParams and this configuration object, the value provided here will be used.

NameTypeDescription
languagestringSee Deepgram's documentation for language
modelstringSee Deepgram's documentation for model
tierstringThis field is deprecated, use model instead
profanity_filterbooleanSee Deepgram's documentation for profanity_filter
punctuatebooleanSee Deepgram's documentation for punctuate
endpointingnumber or booleanSee Deepgram's documentation for endpointing
redactboolean or arraySee Deepgram's documentation for redact
extraobjectSpecify additional parameters. See Deepgram's documentation for available streaming options

Language Support

The exact list of supported languages may depend on the model parameter in transcription configuration (see above).

In the default configuration, the supported languages using the language parameter are:

LanguageBCP-47 tag
Danishda
Dutchnl
Englishen
English Australiaen-AU
English UKen-GB
English Indiaen-IN
English NewZealanden-NZ
English USAen-US
Frenchfr
French Canadafr-CA
German (DE)de
Hindihi
Hindi Romanhi-Latn
Indonedianid
Italianit
Japaneseja
Koreanko
Norwegianno
Polishpl
Portuguesept
Portuguese Brazilpt-BR
Portuguese Portugalpt-PT
Russianru
Spanishes
Spanish Latin Americaes-419
Swedishsv
Turkishtr
Ukrainianuk

Output configuration (outParams)

Attribute NameTypeDescriptionDefaultExampleRequired?
s3config.s3KeyTemplatestringThe filename of the outputnull"my-soap-note"Yes
s3config.useReplacementbooleanwhether to use template replacement in s3KeyTemplatenulltrueNo

s3KeyReplacement

The default output path for transcript, soap and summary jobs are domain_name/jobId/transcript/s3Config.s3KeyTemplate domain_name/jobId/soap/s3Config.s3KeyTemplate domain_name/jobId/summary/s3Config.s3KeyTemplate respectively.

s3KeyReplacement with useReplacement can be used to customize the S3 path of the generated output, template replacements are made up of a replacement string with prefixes, suffixes, or both. The currently supported replacements are:

epoch_time: The epoch time in seconds (optional)

domain_name: Your Daily domain (optional)

job_id: The job ID assigned to the job (optional)

The restrictions for defining a recording template are as follows:

The maximum size of the template is 1024 characters

Each replacement parameter should be placed within a curly bracket (e.g., {domain*name})

Only alphanumeric characters (0-9, A-Z, a-z) and ., /, -, * are valid within the template .mp4 is the only valid extension

Examples

Example domain: "myDomain"

Template: myprefix-{domain_name}-{epoch_time}

Resulting transcripts names:

myprefix-myDomain-1675842936274.vtt myprefix-myDomain-1675842936274.json myprefix-myDomain-1675842936274.txt

Transcript example requests

SOAP note example requests

Summary example requests

Example responses