An open API service indexing awesome lists of open source software.

https://github.com/tmc/speechtotext

streaming stdin to speech recognition tool via Google Cloud Speech API
https://github.com/tmc/speechtotext

Last synced: 11 months ago
JSON representation

streaming stdin to speech recognition tool via Google Cloud Speech API

Awesome Lists containing this project

README

          

speechtotext
============

This project is a basic example of streaming stdin to [Google Cloud Speech API](https://cloud.google.com/speech/) via [gRPC](http://www.grpc.io/).

basic usage:
```sh
$ uname
Darwin
$ cat sample.wav | speechtotext -key (path to serviceaccount json key)
Alpha Beta gamma
$
$ ffmpeg -nostats -loglevel 0 -f avfoundation -i ":Built-in Microphone" -ar 16000 -acodec pcm_s16le -ac 1 -f wav - |tee out.wav | speechtotext -key (path to serviceaccount json key)
```