Google Cloud Speech
With the Google Cloud Speech modules in Make, you can retrieve the status of asynchronous speech recognition, and start asynchronous and synchronous speech recognitions.
Getting Started with Google Cloud Speech
Prerequisites:
A Google Cloud Platform account
Google Cloud Credentials (OAuth Client ID and Client Secret)
To get started with Google Cloud Platform, create an account at Google Cloud Speech-to-text.
Note
Make's use and transfer of information received from Google APIs to any other app will adhere to Google API Services User Data Policy.
Connect Google Cloud Speech to Make
To connect Google Cloud Speech to Make:
Log in to your Make account, add a Google Cloud Speech module to your scenario, and click Create a connection.
Optional: In the Connection name field, enter a name for the connection.
In the Client ID and Client Secret fields, enter the client credentials of your custom app.
Click the Sign in with Google button and select your Google account.
Review the access information and click Allow.
You have successfully established the connection. You can now edit your scenario and add more Google Cloud Speech modules. If your connection needs reauthorization at any point, follow the connection renewal steps here.
Obtain client credentials for your custom app
To obtain the client credentials, you must have access to Google Cloud Console and be able to create or edit the project.
Sign in to Google Cloud console using your Google credentials.
Click Select a project > NEW PROJECT. Enter the desired project name, and click the CREATE button.
Select the project you have created.
Go to APIs & Services > Library.
Search and enable the following required APIs:
Cloud Resource Manager API
The desired service option should display as you type. Select the API/service you want to connect to Make.
Click the ENABLE button to enable the selected API.
Navigate to APIs & Services > OAuth consent screen.
Choose the External option, and click the CREATE button.
Note
You will not be charged when selecting this option! For more details, please refer to Google's Exceptions to verification requirements.
Fill in the required fields as follows, and then click Save and Continue:
App name
Enter the name of the app asking for consent. For example,
Make.
Authorized domains
make.com
integromat.com
You don't have to set anything in the Scopes and Optional info sections. Click Save and Continue.
In the Test Users section, click ADD USERS and enter the testing user email address to access the app.
Navigate to Credentials. Click the +CREATE CREDENTIALS and select the OAuth Client ID option.
Fill in the required fields as follows, and then click the CREATE button to create the application:
Application type
web application
Name
Name of the application. For example,
Make.
Authorized redirect URIs
https://www.integromat.com/oauth/cb/google-restricted
For Google Cloud Speech, add
https://www.integromat.com/oauth/cb/google-cloud-speech
A dialog containing the app's Client ID and Client Secret is displayed. Save them in a safe place for later use.
You have successfully created the client credentials.
Note
If you are using custom apps with publishing state, Testing, then you must set up the access token NOT TO be forced to re-authenticate every week after expiration.
For more information, see on setting up OAuth consent screen.
To set up app token and authentication, see using OAuth 2.0 for Web Server applications.
Enable the Cloud Speech to Text Service
In order to start using the Google Cloud Speech module, it is necessary to enable the Cloud Speech-to-Text service.
Go to APIs & Services > Library.
Search for Cloud Speech-to-Text API.
Enable Cloud Speech-to-Text API.
Actions
Transcribes long audio files (longer than 1 minute) to text using asynchronous speech recognition. The name of the recognized file is provided. The module Google Cloud Speech > Operation: Get is then needed to retrieve the recognized text.
Note
The maximum file size for recognition is 10 485 760 bytes.
Connection | Establish a connection to your Google Cloud account. | ||||||||||||||||||
Source file | Map the audio file you want to convert to text. If left empty the File URI must be provided. This field is mandatory. | ||||||||||||||||||
File URI | URI that points to the file that contains audio data. The file must not be compressed (for example, gzip). Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format: | ||||||||||||||||||
Audio Channels Count | Enter the number of the audio file channels. ONLY set this for MULTI-CHANNEL recognition. Valid values for LINEAR16 and FLAC are NoteThe module only recognizes the first channel by default. To perform independent recognition on each channel, enable the Enable separate recognition per channel option. | ||||||||||||||||||
Enable separate recognition per channel | Enable this option and set the Audio Channels Count to more than 1 to get each channel recognized separately. The recognition result will contain a channelTagfield to state which channel that result belongs to. If this option is disabled, the module will only recognize the first channel. WarningThe request is also billed cumulatively for all channels recognized: (Audio Channels Count times the audio length) | ||||||||||||||||||
Language Code (BCP-47) | Enter the language code. The language of the supplied audio as a BCP-47 language tag. Example: "en-US". See Language Support for a list of the currently supported language codes. You can use BCP-47 validator. This field is mandatory. | ||||||||||||||||||
Additional language tags | Add more language codes if needed. See Language Support for a list of the currently supported language codes. If alternative languages are listed, recognition result will contain recognition in the most likely language detected including the main Language Code. The recognition result will include the language tag of the language detected in the audio. NoteThis feature is only supported for Voice Command and Voice Search use cases and performance may vary for other use cases (e.g., phone call transcription). | ||||||||||||||||||
Audio Encoding | Select the encoding of the audio file/data. For best results, the audio source should be captured and transmitted using a lossless encoding (
| ||||||||||||||||||
Sample rate in Hertz | Enter the sample rate in Hertz of the audio data. Valid values are 8000-48000. 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that's not possible, use the native sample rate of the audio source (instead of re-sampling). This field is optional for | ||||||||||||||||||
Number of alternatives | The maximum number of recognition hypotheses to be returned. Valid values are | ||||||||||||||||||
Profanity filter | If this option is enabled, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g. "f***". If this option is disabled, profanities won't be filtered out. This field is optional. | ||||||||||||||||||
Array of SpeechContexts | Enter "hints" to speech recognizer to favor specific words and phrases in the results. A list of strings containing word and phrase "hints" allows the speech recognition to more likely recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits. | ||||||||||||||||||
Enable word time offsets | If this option is enabled, the top result includes a list of words and the start and end time offsets (timestamps) for those words. If this option is disabled, no word-level time offset information is returned. The option is disabled by default. This field is optional. | ||||||||||||||||||
Enable word confidence | If this option is enabled, the top result includes a list of words and the confidence for those words. If this option is disabled, no word-level confidence information is returned. The option is disabled by default. This field is optional. | ||||||||||||||||||
Enable automatic punctuation | If this option is enabled, it adds punctuation to recognition result hypotheses. This feature is only available in selected languages. Setting this for requests in other languages has no effect at all. The option is disabled by default. This field is optional. NoteThis is currently offered as an experimental service, complimentary to all users. In the future, this may be exclusively available as a premium feature. | ||||||||||||||||||
Enable speaker diarization | This option enables speaker detection for each recognized word in the top alternative of the recognition result using a speakerTag provided in the WordInfo. | ||||||||||||||||||
Diarization speaker count | Enter the estimated number of speakers in the conversation. If not set, defaults to '2'. Ignored unless Enable speaker diarization is enabled. | ||||||||||||||||||
Metadata | Description of audio data to be recognized.
| ||||||||||||||||||
Model | Select the model best suited to your domain to get the best results.
| ||||||||||||||||||
Enhanced | Enable this option to use an enhanced model for speech recognition. You must also set the You must opt-in to the audio logging using the instructions in the data logging documentation. NoteIf you enable this option and you have not enabled audio logging, then you will receive an error. |
Retrieves the latest state or the result of a long-running operationlong-running operation. You can then use the result (text) in the following modules of your choice.
Connection | |
Name | Enter the name of the operation. The name can be retrieved using the Speech: Long Running Recognize module. ![]() ![]() |
Searches
This module returns the recognized text for short audio (less than ~1 minute). To process a speech recognition request for long audio, use the Speech: Long Running Recognize module.
The module Speech: Recognize contains the same options as the use the Speech: Long Running Recognize module.
The only difference is, that the recognition is done immediately. You do not need to use the Operations: Get module.
![61f26f513ee74.gif](./../image/uuid-8b34b8c3-6984-855d-863d-ff9525a39dcf.gif)