Sample Applications

This page lists the code samples currently available for Cloud Speech-to-Text.

The Speech-to-Text v1 is officially released and is generally available from the https://speech.googleapis.com/v1/speech endpoint. The Client Libraries are released as Alpha and will likely be changed in backward-incompatible ways. The client libraries are currently not recommended for production use.

These samples require that you have set up gcloud and have created and activated a service account. For information about setting up gcloud, and also creating and activating a service account, see Quickstart.

Programming Language Examples

The following are links to complete samples that you can download that show how to send audio to Speech-to-Text and receive a text transcription for that audio. You can find more details about running the sample in the README file included with the download.

Mobile Platform Examples

Android Sample

This sample shows you how to use your microphone with the Cloud Speech RPC API to provide streaming speech recognition.

Documentation and Code

iOS Sample

This sample shows you how to use your microphone with the Cloud Speech RPC API to provide non-streaming and streaming speech recognition.

Documentation and Code

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Speech API Documentation