Introduction
Salad Transcription API now offers integration with Large Language Models (LLMs) to provide advanced features such as summarization, translation, custom prompts, and sentiment analysis. By leveraging LLMs, you can gain richer insights and perform complex language processing tasks on your transcriptions. (Only available in Salad Transcription API) This guide covers the key LLM-related parameters you can use to enhance your transcription outputs:- Summarization:
summarize
- LLM-Based Translation:
llm_translationsrt_translation
- Custom Prompts:
custom_prompt
- Overall Classification and Sentiment Analysis:
overall_classificationoverall_sentiment_analysis
LLM Integration Parameters
1. summarize
Description
Thesummarize parameter enables you to generate a concise summary of your transcription using an LLM. You can specify
the maximum word count for the summary.
- Default:
0(No summarization) - Type:
integer
Usage
Set"summarize": word_limit in your request to receive a summary with the specified word limit.
Example:
summary field of the output.
2. llm_translation
Description
Use the"llm_translation" parameter to translate your transcription into one or more specified languages using an LLM.
- Type:
string(Comma-separated list of languages)
"llm_translation": "Language1, Language2" to translate the transcription into the specified languages.
Example:
llm_translation object.
3. srt_translation
Description
Translate the generated SRT subtitles into specified languages using an LLM.- Type:
string(Comma-separated list of languages)
"srt_translation": "Language1, Language2" to translate the transcription into the specified languages.
Example:
srt_translation object.
4. custom_prompt
Description
Provide acustom prompt to guide the LLM in performing specific tasks, such as generating a tailored summary,
extracting key information, improve result, or answering questions based on the transcription.
- Type:
string
"custom_prompt": "Your custom instruction here" to direct the LLM. As a result the LLM model will receive a prompt
in the following format: custom instruction:transcription
Example:
llm_result field.
json Copy code
5. classification_labels and overall_classification
Description
Use theclassification_labels parameter in conjunction with overall_classification to classify the entire
transcription into specified categories using an LLM.
classification_labels:- Type:
string(Comma-separated list of labels)
- Type:
overall_classification:- Default:
false - Type:
boolean
- Default:
Usage
Set"overall_classification": true and provide your labels in "classification_labels": "Label1, Label2" to classify
the entire transcription.
Example:
overall_classification field.
Custom Labels:: You can define any categories relevant to your use case.Multiple Labels:: The LLM will select the most appropriate label from the list provided
6. overall_sentiment_analysis
Description
Analyze the overall sentiment of the transcription using an LLM.- Default:
false - Type:
boolean
Usage
Set"overall_sentiment_analysis": true to perform sentiment analysis.
Example:
overall_sentiment field.
json Copy code
7. custom_vocabulary
Description
Improve transcription accuracy by providing a custom vocabulary of terms that are specific to your domain, such as industry jargon, acronyms, or proper nouns.- Type:
string(Comma-separated list of terms)
Usage
Set"custom_vocabulary": "Term1, Term2" to include custom terms in the transcription process.
Example:
- The custom vocabulary helps the LLM update domain-specific terms.
- Result will have both the original transcrioption and updated under
llm_custom_vocabulary.