
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Create an API key
/ 20
Create synthetic speech from text
/ 20
Speech-to-Text transcription in French language
/ 20
Translate Text with the Cloud Translation API
/ 20
Detect language with the Cloud Translation API
/ 20
In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
You are starting your career as a junior cloud architect. In this role, you have been assigned to work on a team project that requires you to use the Cloud Speech API services in Google Cloud.
You are expected to have the skills and knowledge to complete the tasks that follow.
For this challenge, you are required to transcribe speech to text in different languages using the Cloud Speech API.
You need to:
For this challenge lab, a virtual machine (VM) instance named
Each task is described in detail below, good luck!
Click Check my progress to verify the objective.
For this task, connect to the VM instance
Activate the virtual environment using the source venv/bin/activate
command.
Using a text editor (such as nano
or vim
), create a file named synthesize-text.json
and paste the following into the file:
Call the Text-to-Speech API to synthesize the text of the synthesize-text.json
file, and store the result in a file named
Using a text editor (such as nano
or vim
), create a file named tts_decode.py
and paste the following code into that file:
This creates a new MP3 file named synthesize-text-audio.mp3
.
DOWNLOAD FILE
option of the VM instance's SSH session in order to listen to it.Click Check my progress to verify the objective.
gs://cloud-samples-data/speech/corbeau_renard.flac
. You can listen to this file.For this task, connect to the VM instance
Using a text editor (such as nano
or vim
), create a file named gs://cloud-samples-data/speech/corbeau_renard.flac
location to French.
Call
Click Check my progress to verify the objective.
For this task, connect to the VM instance
Translate the English
language by calling the Cloud Translation API and store the result in the
Click Check my progress to verify the objective.
For this task, connect to the VM instance
Detect the language of the
Click Check my progress to verify the objective.
You have successfully created synthetic speech from text using the Text-to-Speech API, transcribed speech to text using the Cloud Speech API, as well as translated text and detected a language with the Cloud Translation API.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated November 30, 2023
Lab Last Tested December 04, 2023
Copyright 2025 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one