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 answer questions in our mock playbook. We’ll use the following input parameters:
Python script
We’re going to create a file and name itplaybook.py
. We’re then going to use the above parameters in the following
Python script:
- Make sure to replace
https://your-storage.com/path/to/audio.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. - Modify the questions in the
custom_prompt
parameter to match your playbook. - Run the script using
python playbook.py
.
llm_result
field of the response. We’re then printing the result of this field to the console. Your console will look
something like this once it finishes: