custom_prompt
input parameter to your transcription request.
Custom input parameters
In this example, we’ll use a Python script to transcribe an audio file and tell it to use thecustom_prompt
input
parameter to create a list of chapters, with titles, and a brief outline of what is contained. We’ll use the following
input parameters:
Python script
We’ll use it in the following Python script:- Make sure to replace
url/to/audio/file.mp3
with the URL of your audio file. - Replace
YOUR_SALAD_API_KEY
with your Salad API key. - Replace
YOUR_ORGANIZATION_NAME
with your organization name.
custom_prompt
LLM feature to create the list of chapters. The output
will be returned in the llm_result
field of the response. We’re then printing the result of this field to the console.
It’ll look something like this once it finishes:
Output
llm_prompt
only views the “text”
field response from the transcription completion, and so currently is unable to see the timestamps of the quotes.