Skip to main content
Last Updated: February 12, 2025 Migrating from GCP Transcription (Google Cloud Speech to Text) to Salad Transcription API will require you to replace your GCP Python functions with Salad compatible ones. Whilst we do not offer an SDK, we do have example Python functions that you can use in replacement.

1. Get your Salad API Key.

  • Open up https://portal.salad.com and sign up/log into your account.
  • Navigate to your profile at the top right, and select API Access. Here you can find your API Key.

2. Updating job creation API calls.

The Salad Transcription API uses a Job Queue system for processing transcription requests, rather than a Python function that returns the data like GCP. With Salad Transcription API, you’ll use two steps. Submit the job, and then request the results.

GCP Transcription (Google Cloud Speech to Text)

Your existing Python code for GCP Transcription (Google Cloud Speech to Text) should look something like this:

Salad Transcription API Equivalent

When using Salad Transcription API, you’ll update that job creation function to instead look like this:
  • For this code snippet, you’ll need to insert your Salad Organization name into the API url field.
  • You will also need to insert your Salad API Key we obtained earlier lower down in the code snippet.
  • Put the URL to the file to be transcribed into the file string. Please note that Salad Transcription API can only process files up to 2.5 hours. Make sure the URL provided is to a direct download of the file. Header based security is not compatible with Salad Transcription API, so you’ll need to use a signed URL like that offered by Salad Simple Storage Service.
The response will look like this:

3. Obtaining job results

In the response from submitting your job with the above step, you’ll receive the Job ID which is required to obtain the results of your transcription. The Job status and transcription results are combined into a single API call. With this Python function, you’ll check the status, and once the job is completed it will also retrieve the transcription results.
  • Make sure to again update the organization name above to your organization name.
  • You will need to insert the Job ID that you obtained from the previous step as well.
  • And again make sure to include your Salad API Key.
Once the status of your job has reached succeeded, the output object will include the URL to the completed transcription via a directly downloadable URL.