Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
log the speechtotext callback call
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Lavigne committed Mar 31, 2017
1 parent 51eae33 commit d82c984
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ if (argv.install) {
}

function registerCallback() {
WARN('Registering Speech to Text callback...');
const url = `${process.env.STT_URL}/v1/register_callback?callback_url=${encodeURIComponent(process.env.STT_CALLBACK_URL)}&user_secret=${encodeURIComponent(process.env.STT_CALLBACK_SECRET)}`;
WARN(`Registering Speech to Text callback with ${url}`);
waterfall([
(callback) => {
request({
Expand All @@ -114,7 +115,7 @@ function registerCallback() {
username: process.env.STT_USERNAME,
password: process.env.STT_PASSWORD,
},
url: `${process.env.STT_URL}/v1/register_callback?callback_url=${encodeURIComponent(process.env.STT_CALLBACK_URL)}&user_secret=${encodeURIComponent(process.env.STT_CALLBACK_SECRET)}`
url
}, (err, response, body) => {
if (!err) {
WARN(body);
Expand Down

0 comments on commit d82c984

Please sign in to comment.