This document provides instructions on how to leverage use the Google Cloud Speech-to-Text transform plugin , to convert audio files to into text files.
...
Before you begin
Ensure that you have enabled the Speech-to-Text API.
In this article, we will be using guide, you build a pipeline that reads data from 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.
Use the left navigation bar to enter the Studio view.
From the list of plugins available on the left side, select Google Cloud Storage from the Source section, . Upload the following speech file (hello.wav) to a Cloud Storage bucket.
View file | ||
---|---|---|
|
Instructions
In the left navigation panel, navigate to the Pipeline Studio.
In the left panel, under the Source section,select a source.In this example, Google Cloud Storage.
Under the Transform section, select Google Cloud Speech-to-Text from .
Under the Transform Sink section, and select a sink. In this example, 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.
Connect the three plugins on the canvas, from source to transform to sink:
For the Google Cloud Storage source, configure the GCS Path and make sure that the Format is ‘blob’:
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” .
On the canvas, connect the three items.
Hover over the source, Google Cloud Storage. Click on the Properties button that appears.
In the Google Cloud Storage Properties window, set Path to your Cloud Storage bucket path, and make sure the Format is “blob”.
Click the X at the top right.
Hover over the transform, Google Cloud Speech-to-Text. Click on the Properties button that appears.
Specify the Sampling Rate, Parts, and Text fields.
Click Get Schema, and then Apply, to automatically apply the output schema.
Configure Hover over the sink with the path of where you want the output data to go, Google Cloud Storage. Click on the Properties button that appears. Set the Path to an output bucket.
Name the your pipeline and click Deploy: .
Click on Run to run the pipeline. It will take takes a few minutes to complete:
for the pipeline to run.
Once the pipeline succeeds, you can view your transcribed text data in GCS, Cloud Storage or whichever sink you configure!
View file | ||
---|---|---|
|
...
chose.
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...