CosmicAC Logo

Transcribe audio with a Parakeet endpoint

Transcribe audio with a Parakeet endpoint using the CosmicAC CLI or curl.

Get a transcription from a Parakeet endpoint. Use the CosmicAC CLI with an audio URL, or curl with a local file or a URL.

Prerequisites

You need the following before you start:

  • A running Parakeet Managed Inference Job with a serving endpoint. See Create a Parakeet Managed Inference Job.
  • Your API key, if the endpoint requires an authorization header. See Create an API key.
  • Audio to transcribe. The CLI accepts a hosted URL, and curl accepts a local file or a URL.

Steps

Find your endpoint name

List your endpoints:

cosmicac models healthcheck

Each endpoint appears as Endpoint: <endpoint-name>. Copy the name of your Parakeet endpoint.

Send the transcription

If you enabled Require Authorization header when you created the job, you need an API key. If you didn't, answer no to the CLI's API key prompt and omit the Authorization header from the curl request.

Start an interactive transcription session:

cosmicac inference transcribe

Answer these prompts:

  • Use an API key: whether to authenticate. Answer yes to be prompted for the key. The CLI masks it as you type.
  • Endpoint ID: the endpoint name from the previous step.
  • Audio file URL: the URL of the audio file.

After each transcription, the command asks for the next audio file URL. Press Ctrl+C to exit.

Next steps

On this page