Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This document provides instructions on how to leverage the Google Cloud Speech-to-Text transform plugin, to convert audio files to text.

Instructions

  1. Ensure that you have enabled the Speech-to-Text API.

  2. In this article, we will be using Google Cloud Storage source to pull data into the pipeline, so upload a speech file to a GCS bucket. Below is a sample file named hello.wav that you can use.

  3. Use the left navigation bar to enter the Studio view.

  4. From the list of plugins available on the left side, select Google Cloud Storage from the Source section, Google Cloud Speech-to-Text from the Transform section, and Google Cloud Storage from the Sink section. Note that you can use another source and sink, depending on where you want to get your audio data from and where you want to send your audio data to.

  5. Connect the three plugins on the canvas, from source to transform to sink:

  6. For the Google Cloud Storage source, configure the GCS Path and make sure that the Format is ‘blob’:

  7. For the transform, I’ve set specified the sampling rate to be 16000, and set the ‘parts’ and ‘text’ fields. Click “Get Schema” and then “Apply” to automatically apply the output schema.

  8. Configure the sink with the path of where you want the output data to go.

  9. Name the pipeline and click Deploy:

  10. Click on Run to run the pipeline. It will take a few minutes to complete:

  11. Once the pipeline succeeds, you can view your transcribed text data in GCS, or whichever sink you configure!

 

  • No labels