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.mp3with the URL of your audio file. - Replace
YOUR_SALAD_API_KEYwith your Salad API key. - Replace
YOUR_ORGANIZATION_NAMEwith your organization name. - Modify the questions in the
custom_promptparameter 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: