- Create Google Cloud Project, and active Speech API
- Create service account, and download json config file, placing it in same directory as executable
- run -> export GOOGLE_APPLICATION_CREDENTIALS=googleconfig.json
- or export GOOGLE_APPLICATION_CREDENTIALS=/opt/vmspeech/googleconfig.json
TODOs
- Integrate asterisk/FreePBX mailmcd to call built app, w/ cli Flags
- locate logic for asterisk's temp WAV storage and pass to cli call
- delete WAV file after transmission
build on mac for linux env GOOS=linux GOARCH=amd64 go build
sample mailmcd trigger
/opt/vmspeech/./main-linux --callerID=${VM_CALLERID} --extension=${VM_MAILBOX}