All posts

Remembering Cloud To Butt

Kevin Lewis August 11, 2022 in Tutorials

Remembering Cloud To Butt

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łowski. Here 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!

More with these tags:

Share your feedback

Thank you! Can you tell us what you liked about it? (Optional)

Thank you. What could we have done better? (Optional)

We may also want to contact you with updates or questions related to your feedback and our product. If don't mind, you can optionally leave your email address along with your comments.

Thank you!

We appreciate your response.