Skip to content

humaniq/speech_to_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speech to text service

Install

Clone the repository:

$ git clone git@github.com:humaniq/speech_to_text.git
$ cd speech_to_text

Install dependencies:

$ brew install protobuf
$ go get -u github.com/golang/protobuf/protoc-gen-go
$ go get -u github.com/kardianos/govendor
$ govendor sync

Compile a .proto file:

$ protoc -I audio/ audio/audio.proto --go_out=plugins=grpc:audio

Run the server:

$ go run server/main.go

Run the client (Only for test):

$ go run client/main.go audio.raw

Environment variables

  • GOOGLE_CREDENTIALS - Path to json file with credentials.