Table of Contents
Share this guide

Every morning I cycle through the same few apps on my phone before I get up, and one of my stops is Facebook. While it isn't really a platform I actively use, I take a moment to go into today's 'memories' - all of the posts I posted on this date in previous years - and scrub old, embarrassing entries.

On the day I'm writing this, I was made to remember the Cloud to Butt Chrome Extension - which replaces instances of "cloud" with "butt". I'm all for slapping the wrists of those who lean into buzzwords, which in 2014, "the cloud" definitely was.

Chrome Extensions are so last month (cough cough here's a blog post I wrote on them), so I thought it'd be fun to use the new Deepgram Find and Replace feature to get my nostalgia trip in 2022.

I recorded some words based on this 2014 talk from Maciej CegłowskiHere is the audio file we're going to use.

Using cURL

Open your terminal, copy and paste the following (remembering to replace YOUR_DEEPGRAM_API_KEY with a real API Key generated in the Deepgram Console), and hit enter.

curl \
  --request POST \
  --header 'Authorization: Token YOUR_DEEPGRAM_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"url":"http://lws.io/static/the-cloud.mp3"}' \
  --url 'https://api.deepgram.com/v1/listen?replace=the%20cloud:my%20butt'

The replace query parameter accepts the following format original:new. The value %20 is a URL-encoded space. So the%20cloud:my%20butt replaces the cloud with my butt.

Adding jq

jq is an excellent command-line utility that allows you to display and manipulate json data. Once installed, try running this command to display just the transcript:

curl \
  --request POST \
  --header 'Authorization: Token YOUR_DEEPGRAM_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"url":"http://lws.io/static/the-cloud.mp3"}' \
  --url 'https://api.deepgram.com/v1/listen?replace=the%20cloud:my%20butt' | jq '.results.channels[0].alternatives[0].transcript'

"and then there's my butt my butt fascinates me because of the distance between what it promises and what it actually is my butt promises us complete liberation from the mundane world of hardware and infrastructure it invites us to soar into a plane of pure computation freed from the weary bonds of earth what my butt is is a big collection of buildings and computers that we actually know very little about run by a large American company notorious for being pretty terrible to its workers but who knows what angry admin looks inside my butt"

I hope you found this... insightful? And remember, if I can get paid to write posts like this for my job then anything's possible. Have a fantastic rest of your day!

If you have any feedback about this post, or anything else around Deepgram, we'd love to hear from you. Please let us know in our GitHub discussions .

Unlock language AI at scale with an API call.

Get conversational intelligence with transcription and understanding on the world's best speech AI platform.

Sign Up FreeBook a Demo