hands-on lab

Transcribing Audio Files with Google Cloud Speech-to-Text

Up to 1h
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Google Cloud Speech-to-Text allows you to transcribe audio files to text using speech recognition. Audio can be transcribed within the Google Cloud Platform console, or by calling the Speech-to-Text API using Cloud Functions. Speech-to-Text can be used to enable voice control and searching, add subtitles to streaming content in real-time, and also improve the customer experience by adding interactive voice response (IVR) to your applications.

In this lab, you will work with Google Cloud Speech-to-Text in the GCP console, as well as through the Speech-to-Text API to transcribe an audio file stored in a Cloud Storage bucket.

Learning Objectives

Upon completion of this beginner level lab, you will be able to:

  • Transcribe an audio file into text using Google Cloud Speech-to-Text
  • Incorporate the Speech-to-Text API into a Google Cloud Function

Intended Audience

  • Cloud Architects
  • Software Engineers
  • Machine Learning Engineers


Familiarity with the following will be beneficial but is not required:

  • Google Cloud Functions

The following content can be used to fulfill the prerequisite:


February 21st, 2024 - Resolved deployment issue

Environment before

Environment after

About the author

Jun Fritz, opens in a new tab
Cloud Labs Developer
Learning paths

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

Covered topics

Lab steps

Signing In to the Google Cloud Console
Transcribing an Audio File Using Google Cloud Speech-to-Text
Creating a Speech Recognition Cloud Function using the Google Cloud Speech-to-Text API