Go Audio Transcription Web App
The following environment variables are expected.
$BASE_URL
MUST be a publicly accessible URL, not something onlocalhost
if you intend to test callbacks through the app itself.- You can use ngrok or Runscope Passageway to make a localhost server public.
- Alternatively, you can set callbacks to use Runscope Request Capture or RequestBin if you just want to ensure that a callback is made and to inspect its data.
- For testing, you may also set
$TELAPI_BASE_HOST
to override the default (api.telapi.com
). This is useful if you want to use Runscope to proxy and capture outgoing requests. Requests will always be built with thehttps://
scheme.
export BASE_URL=”http://<public_server_location>”
export TELAPI_ACCOUNT_SID=”<your_telapi_account_sid>”
export TELAPI_AUTH_TOKEN=”<your_telapi_auth_token>”
export AUTH_USER=”<http_basic_auth_user>”
export AUTH_PASS=”<http_basic_auth_pass>”
export AWS_ACCESS_KEY_ID=”<your_aws_key_id>”
export AWS_SECRET_ACCESS_KEY=”<your_aws_secret_key>”
export AWS_S3_BUCKET_NAME=”<your_s3_bucket_name>”
export AWS_S3_BASE_URL=”http://<your_s3_base_url>”
For deployment on Heroku, in addition to setting the environment variables, the Go buildpack has to be set.
heroku config:add BUILDPACK_URL=https://github.com/kr/heroku-buildpack-go.git