Skip to main content
Last Updated: March 05, 2025

Introduction

By following this guide, you’ll learn how to transcribe a file you have locally on your PC by uploading it to S4 (Salad Simple Storage Service), transcribing using Salad Transcription API, and saving the transcription to a file.

Prerequisites

Before you begin, make sure you have:
  1. Python Installed: Ensure you have Python 3.8 or higher. _ Python 3.11.6 was used for the creation of this script_
  2. Salad API Key: Ensure you have a valid Salad API key.

Last Updated: March 05, 2025

Uploading and Transcribing

Now, we’ll start by uploading the file to the S4 service and generating a signed access URL to keep the data secure. Next, we’ll send that file to the Salad Transcription API, and after that we will save the results to a local file in the same directory as the audio file.

Uploading to S4

If you were to run your script now, it would upload your audio to S4 and return a signed URL to access the file. Next, we’ll send that URL to Salad Transcription API to transcribe.

Transcribing the Audio

If you were to run your script now, it would send the transcription request using the signed S4 URL to the Salad Transcription API and return the job ID. Next, we’ll save the transcription to a file.

Saving the Transcription to a File

If you were to run your script now with this added, it would retrieve the transcription result from the Salad Transcription API and save it to a file named transcription_result.txt in the directory you run the script if complete. It will also print the transcription result to the console. If the job is still processing, it will print the current job status. A JSON file will also be logged containing the entire output of the transcription API response to the same directory named output.json.

Full Script

Here is the full script combining all the steps: