Skip to content

Commit

Permalink
Merge pull request #21 from facn6/setup-travis-ci
Browse files Browse the repository at this point in the history
added travis yml file
  • Loading branch information
ameerkas authored Jul 31, 2019
2 parents 4738d50 + 50c1f5b commit 4bbf5ff
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ typings/
.next

# apikeys
authFiles/
authFiles/
app-env
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- node
env:
global:
- secure: U5lGsJZCxfwKLsXE7XNDjuvfnUC1Aw5S/AfFqDS0sPpoVxC6zbhDGd+PbS/EpLmdwiIu2xTpZqLcksx5zFteyAcwsv1bbBBIyfpEPFsS5GprPvseIaHYeqPpelXJwF8hJmFhlwTpubr654pcHEXlrWqSjGTW4U4teq4LFPbQh5yttAZsITIiG3re5mheEuPpQpau9suS+KLGzNJVsDU77O81ij+G5vSiGzmuXwHNr4MIA3HHNXqU03A3czTfP5j4Uc/h6txkqitlttd6Uv61NGuhbG3RmkW9EGk3icxC4FxpqtCtJlSN5cUxpC4WO6OK3honDfdp9nQHucQSp44++lqdtTh/jwvsU5DCzSbr623mTomZtQKfFApqLjGbPaoFCXCPgG/h/pEmvfqcr5LRDjnvBCi0hgrXGDMonh9jYiQB1C/FDHaRiYwIz595HRoM0eH64bDi4gGUeCaAoNcj+lUOoAJYwJyADjc0YJMyvPZPX7hJe/taadQTTzKvHLBY0DvBij4IGhJg6zPL9EOKL4nQFdT64HhGUaY8T/O6dzwf/P0qEeMkYAlYVZigJK1V34H0dJvNMkZjq+WPnOTTryaNQeMjxcGI3mf/wvsBYcFyBSWyiys4W4m57UiKk5prul9v7N5+on3GhMV2JbOfMAAy98rTrz9Q/bNQP4uS5P8=
- secure: T5Vkd+mvYb2Uv5ijrKZLbPTrXehmIBKWM2J8tdOt4D9o8bGgb9pjdukN68I5ss+ncsDO49JufMVkHJVyv4S/4IsEPElHNsiqHejQDCs3weZpWTTJaFYCfueo2st4nvPPbvH4OonKNVP9YEqXoBTtMlNQaDHExdVf3Vd+b8nF2YARFAaEJWsLHJS+/I6Hh0Ahb5DBbaSp/KJAVEjaarjHkj4IZn4aA6cfeQlM7ZGHwz4QWPKqly7TTc6LSTfWBdPcusyNZ5X8llqFVimtyiUSP4rACqvY2ziz/SgDTNoLkdzBUzx8RXIE3pFvYuHY0B4hyGd8mzSDP2wup/vsAmZeriGiHv67e4XkIIc8TOPAF8CuAkO+6Vbf6mw7JlaFoZ1iD7DVyZkQ2cDHJcHhljYCfHjk1294+iP2/F7JOLFJX49kdbz7NwndXOw+8Z6s9esaNS3w4xDC/z6v5Z0gtCJTCslKEj8j7tguWi0RQXJ5ykepz0EIqyDhQc77QooBqNne1osrUB93S8oL4OaN/xg18KUHaMMLRoenFfvf6eweH2/TX3WaMA5cbofA1Ftjso/cGRbsL+1LCdVPBh0ws1PNd+lZPWsEYbdvb2RvpT1bVOlEyzSBgcTtnmJ9ct0aa5vzJtFKVu5MB1Foi25ibPaYsiVV/wB9jcxGQO3xa49QCXA=
3 changes: 2 additions & 1 deletion public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ fetch(`${window.location.href}api/assets`)
const transcribe = (filename) => {
fetch(`${window.location.href}api/transcribe?file=${filename}`)
.then(data => data.json()).then(({ files }) => {
// console.log('front end transcription result = ', files);
console.log('front end transcription result = ', files);
});
};
// transcribe('ameer-test.wav');

function search_audio() {
console.log('here1');
Expand Down
1 change: 0 additions & 1 deletion src/handlers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs');
const path = require('path');
const querystring = require('querystring');
const url = require('url');
const utils = require('./utils');

Expand Down
5 changes: 3 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const fs = require('fs');
const path = require('path');

const request = require('request');
const apikey = require('../authFiles/keys.js');

const apikey = process.env.API_KEY;

const googleUrl = 'https://speech.googleapis.com/v1p1beta1/speech:recognize?key=';

Expand Down Expand Up @@ -31,7 +32,7 @@ const transcribeAudio = (filename, cb) => {

const req = {
method: 'POST',
url: googleUrl + apikey.GOOGLE,
url: googleUrl + apikey,
body: JSON.stringify({
config,
audio,
Expand Down

0 comments on commit 4bbf5ff

Please sign in to comment.