Open rhaenggi opened 8 years ago
Same issue for me http://181.135.63.86:3006/
It sounds like you are not using the correct credentials for the TTS (text-to-speech) and LT (language translation). How did you clone the SpeechToSpeech application ? Did you use
button to clone?
If not, please make sure that your credentials for the TTS (text-to-speech) and LT (language translation) services are correct and you are able to run their demos.
i have locally and im sure i put correct credentials pls help
I sent you the instructions how to preserve Spanish models only and hide others. It is not clear from your message if you followed the instructions. Did you?
The first steps (prior to anything else) are
Were you able to pass these 3 steps ?
On Wed, Jun 1, 2016 at 1:16 PM, felipe notifications@github.com wrote:
i have locally and im sure i put correct credentials pls help
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leonrch/SpeechToSpeech/issues/5#issuecomment-223062314, or mute the thread https://github.com/notifications/unsubscribe/ANB_cbhAU9VCFgG6oZaHoJe089z6hJN0ks5qHb5pgaJpZM4IROgA .
no, i clone this repo https://github.com/watson-developer-cloud/speech-to-text-nodejs.git, and point 3 is not avaible
Did you use "Deploy to Bluemix" magic button ?
On Wed, Jun 1, 2016 at 1:24 PM, felipe notifications@github.com wrote:
no, i clone this repo https://github.com/watson-developer-cloud/speech-to-text-nodejs.git, and point 3 is not avaible
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leonrch/SpeechToSpeech/issues/5#issuecomment-223064587, or mute the thread https://github.com/notifications/unsubscribe/ANB_cazjeGxx7FZsiELXg71jp7E7OKX8ks5qHcBGgaJpZM4IROgA .
no i need deploy locally do u help me with this and speechtospeech, pls give me a hand, is possible hangout with gmail or video chat in skype?
cf env
npm install npm run build
once the credentials (step 2) are retrieved.
Good luck!
PS: Unfortunately, I do not have time for Skype, hangout, etc
On Wed, Jun 1, 2016 at 1:27 PM, felipe notifications@github.com wrote:
no i need deploy locally do u help me with this and speechtospeech, pls give me a hand, is possible hangout with gmail or video chat in skype?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leonrch/SpeechToSpeech/issues/5#issuecomment-223065462, or mute the thread https://github.com/notifications/unsubscribe/ANB_cRyNSjNaOME5V76ttU5uI9d0YvScks5qHcECgaJpZM4IROgA .
this is my all steps
sudo apt-get update
sudo apt-get install curl git
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install nodejs
node --version
npm --version
uname -a
git clone https://github.com/leonrch/SpeechToSpeech.git
cd SpeechToSpeech/
sudo nano /home/felipe/SpeechToSpeech/app.js
##
var config = {
version: 'v1',
url: 'https://stream.watsonplatform.net/speech-to-text/api',
username: 'ee68d465-a36f-4ff1-8709-be4461328550',
password: 'correct password'
};
var mt_credentials = extend({
url: 'https://gateway.watsonplatform.net/language-translation/api',
username: '46a608ad-4ee8-48f7-92f6-85d4289cd82f',
password: 'correct password',
version: 'v2'
}, bluemix.getServiceCreds('language-translation')); // VCAP_SERVICES
var tts_credentials = extend({
url: 'https://stream.watsonplatform.net/text-to-speech/api',
version: 'v1',
username: 'd0898e8f-7eab-47f0-8b4d-f2270a61e262',
password: 'correct password',
}, bluemix.getServiceCreds('text_to_speech'));
##
npm install
npm run build
sudo npm install pm2 -g
pm2 start app.js
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u felipe --hp /home/felipe"
pm2 save
and not working
If you do not follow steps 1 and 2, I am not sure I can help you. Anyway, I do not feel I deserved the honour to debug your application WITH YOUR CHANGES.
http://181.135.63.86:3005/, LT http://181.135.63.86:3003/. TTS http://181.135.63.86:3002/, STT
if u see all is working individually
Good!
Now try to change app.js of your local copy (clone) with the credentials for TTS, STT, LT and try npm build
On Wed, Jun 1, 2016 at 2:16 PM, felipe notifications@github.com wrote:
http://181.135.63.86:3005/, LT http://181.135.63.86:3003/. TTS http://181.135.63.86:3002/, STT
[image: stt] https://cloud.githubusercontent.com/assets/428820/15720660/eb280302-27fa-11e6-8e5a-203f8cfaa575.png [image: tts] https://cloud.githubusercontent.com/assets/428820/15720661/eb293970-27fa-11e6-8f39-ad6d038ea2e4.png [image: lt] https://cloud.githubusercontent.com/assets/428820/15720662/eb2b909e-27fa-11e6-825c-e1ed27115671.png
if u see all is working individually
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leonrch/SpeechToSpeech/issues/5#issuecomment-223079480, or mute the thread https://github.com/notifications/unsubscribe/ANB_ccNJVe2uVDU99n6tEiz4ch4Rlyr4ks5qHcxngaJpZM4IROgA .
i change credentials with mine
felipe@felipeurrego:~/SpeechToSpeech$ npm install
npm WARN package.json SpeechToSpeechBrowserDemoApp@0.2.1 Normalized value of bugs field is an empty object. Deleted.
npm WARN optional dep failed, continuing fsevents@1.0.12
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
http-proxy@1.11.3 node_modules/http-proxy
├── eventemitter3@1.2.0
└── requires-port@0.0.1
connect@3.3.5 node_modules/connect
├── utils-merge@1.0.0
├── parseurl@1.3.1
├── debug@2.1.3 (ms@0.7.0)
└── finalhandler@0.3.4 (escape-html@1.0.1, on-finished@2.2.1)
errorhandler@1.2.4 node_modules/errorhandler
├── escape-html@1.0.1
└── accepts@1.1.4 (negotiator@0.4.9, mime-types@2.0.14)
body-parser@1.15.1 node_modules/body-parser
├── content-type@1.0.2
├── bytes@2.3.0
├── depd@1.1.0
├── qs@6.1.0
├── on-finished@2.3.0 (ee-first@1.1.1)
├── raw-body@2.1.6 (unpipe@1.0.0)
├── http-errors@1.4.0 (inherits@2.0.1, statuses@1.3.0)
├── debug@2.2.0 (ms@0.7.1)
├── iconv-lite@0.4.13
└── type-is@1.6.13 (media-typer@0.3.0, mime-types@2.1.11)
express@4.10.8 node_modules/express
├── merge-descriptors@0.0.2
├── cookie@0.1.2
├── utils-merge@1.0.0
├── media-typer@0.3.0
├── vary@1.0.1
├── fresh@0.2.4
├── methods@1.1.1
├── parseurl@1.3.1
├── range-parser@1.0.3
├── finalhandler@0.3.3
├── content-disposition@0.5.0
├── serve-static@1.7.2
├── escape-html@1.0.1
├── cookie-signature@1.0.5
├── path-to-regexp@0.1.3
├── depd@1.0.1
├── qs@2.3.3
├── on-finished@2.2.1 (ee-first@1.1.0)
├── debug@2.1.3 (ms@0.7.0)
├── proxy-addr@1.0.10 (forwarded@0.1.0, ipaddr.js@1.0.5)
├── etag@1.5.1 (crc@3.2.1)
├── type-is@1.5.7 (mime-types@2.0.14)
├── accepts@1.1.4 (negotiator@0.4.9, mime-types@2.0.14)
└── send@0.10.1 (ms@0.6.2, destroy@1.0.3, mime@1.2.11, on-finished@2.1.1)
transformer-proxy@0.3.3 node_modules/transformer-proxy
├── util@0.10.3 (inherits@2.0.1)
├── promise@7.1.1 (asap@2.0.4)
└── stream@0.0.1 (expect.js@0.3.1, mocha@2.5.3)
browserify-shim@3.8.12 node_modules/browserify-shim
├── through@2.3.8
├── mothership@0.2.0 (find-parent-dir@0.3.0)
├── resolve@0.6.3
├── rename-function-calls@0.1.1 (detective@3.1.0)
└── exposify@0.4.3 (map-obj@1.0.1, has-require@1.1.0, globo@1.0.2, through2@0.4.2, transformify@0.1.2, replace-requires@1.0.3)
harmon@1.3.1 node_modules/harmon
└── trumpet@1.7.0 (inherits@2.0.1, duplexer2@0.0.2, through2@1.1.1, readable-stream@1.1.14, html-tokenize@1.2.5, html-select@2.3.24)
watson-developer-cloud@0.9.30 node_modules/watson-developer-cloud
├── async@1.4.2
├── cookie@0.2.4
├── isstream@0.1.2
├── csv-stringify@0.0.8
├── extend@3.0.0
├── string@3.3.1
├── object.omit@2.0.0 (is-extendable@0.1.1, for-own@0.1.4)
├── object.pick@1.1.2 (isobject@2.1.0)
├── request@2.61.0 (tunnel-agent@0.4.3, aws-sign2@0.5.0, forever-agent@0.6.1, oauth-sign@0.8.2, caseless@0.11.0, stringstream@0.0.5, json-stringify-safe@5.0.1, tough-cookie@2.2.2, qs@4.0.0, node-uuid@1.4.7, combined-stream@1.0.5, mime-types@2.1.11, form-data@1.0.0-rc4, http-signature@0.11.0, bl@1.0.3, hawk@3.1.3, har-validator@1.8.0)
├── solr-client@0.5.0 (duplexer@0.1.1, httperror@0.2.3, JSONStream@0.9.0, request@2.49.0, json-bigint@0.1.4)
└── jshint@2.9.2 (strip-json-comments@1.0.4, exit@0.1.2, console-browserify@1.1.0, shelljs@0.3.0, minimatch@2.0.10, cli@0.6.6, htmlparser2@3.8.3, lodash@3.7.0)
browserify@10.2.6 node_modules/browserify
├── browser-resolve@1.11.2
├── https-browserify@0.0.1
├── tty-browserify@0.0.0
├── path-browserify@0.0.0
├── constants-browserify@0.0.1
├── punycode@1.4.1
├── builtins@0.0.7
├── string_decoder@0.10.31
├── through2@1.1.1
├── isarray@0.0.1
├── inherits@2.0.1
├── os-browserify@0.1.2
├── process@0.11.3
├── htmlescape@1.1.1
├── commondir@0.0.1
├── stream-browserify@1.0.0
├── defined@1.0.0
├── duplexer2@0.0.2
├── assert@1.3.0
├── shell-quote@0.0.1
├── domain-browser@1.1.7
├── xtend@4.0.1
├── querystring-es3@0.2.1
├── timers-browserify@1.4.2
├── deps-sort@1.3.9
├── util@0.10.3
├── events@1.0.2
├── concat-stream@1.4.10 (typedarray@0.0.6)
├── parents@1.0.1 (path-platform@0.11.15)
├── vm-browserify@0.0.4 (indexof@0.0.1)
├── has@1.0.1 (function-bind@1.1.0)
├── read-only-stream@1.1.1 (readable-wrap@1.0.0)
├── console-browserify@1.1.0 (date-now@0.1.4)
├── readable-stream@1.1.14 (core-util-is@1.0.2)
├── url@0.10.3 (punycode@1.3.2, querystring@0.2.0)
├── subarg@1.0.0 (minimist@1.2.0)
├── http-browserify@1.7.0 (Base64@0.2.1)
├── shasum@1.0.2 (sha.js@2.4.5, json-stable-stringify@0.0.1)
├── buffer@3.6.0 (ieee754@1.1.6, isarray@1.0.0, base64-js@0.0.8)
├── glob@4.5.3 (inflight@1.0.5, once@1.3.3, minimatch@2.0.10)
├── JSONStream@1.1.1 (through@2.3.8, jsonparse@1.2.0)
├── labeled-stream-splicer@1.0.2 (stream-splicer@1.3.2)
├── browserify-zlib@0.1.4 (pako@0.2.8)
├── resolve@1.1.7
├── syntax-error@1.1.6 (acorn@2.7.0)
├── browser-pack@5.0.1 (umd@3.0.1, combine-source-map@0.6.1)
├── insert-module-globals@6.6.3 (is-buffer@1.1.3, combine-source-map@0.6.1, lexical-scope@1.2.0)
├── crypto-browserify@3.11.0 (create-hmac@1.1.4, randombytes@2.0.3, pbkdf2@3.0.4, create-hash@1.1.2, diffie-hellman@5.0.2, create-ecdh@4.0.0, browserify-cipher@1.0.0, browserify-sign@4.0.0, public-encrypt@4.0.0)
└── module-deps@3.9.1 (stream-combiner2@1.0.2, detective@4.3.1)
watchify@3.7.0 node_modules/watchify
├── defined@1.0.0
├── xtend@4.0.1
├── through2@2.0.1 (readable-stream@2.0.6)
├── outpipe@1.1.1 (shell-quote@1.6.0)
├── chokidar@1.5.1 (path-is-absolute@1.0.0, inherits@2.0.1, glob-parent@2.0.0, async-each@1.0.0, is-glob@2.0.1, is-binary-path@1.0.1, readdirp@2.0.0)
├── anymatch@1.3.0 (arrify@1.0.1, micromatch@2.3.8)
└── browserify@13.0.1 (browser-resolve@1.11.2, https-browserify@0.0.1, tty-browserify@0.0.0, path-browserify@0.0.0, punycode@1.4.1, duplexer2@0.1.4, string_decoder@0.10.31, constants-browserify@1.0.0, inherits@2.0.1, os-browserify@0.1.2, htmlescape@1.1.1, process@0.11.3, stream-browserify@2.0.1, assert@1.3.0, domain-browser@1.1.7, read-only-stream@2.0.0, querystring-es3@0.2.1, timers-browserify@1.4.2, util@0.10.3, deps-sort@2.0.0, events@1.1.0, parents@1.0.1, vm-browserify@0.0.4, has@1.0.1, console-browserify@1.1.0, shell-quote@1.6.0, url@0.11.0, readable-stream@2.1.4, subarg@1.0.0, labeled-stream-splicer@2.0.0, shasum@1.0.2, stream-http@2.3.0, concat-stream@1.5.1, glob@5.0.15, JSONStream@1.1.1, buffer@4.6.0, syntax-error@1.1.6, browserify-zlib@0.1.4, resolve@1.1.7, browser-pack@6.0.1, insert-module-globals@7.0.1, crypto-browserify@3.11.0, module-deps@4.0.7)
felipe@felipeurrego:~/SpeechToSpeech$ npm run build
> SpeechToSpeechBrowserDemoApp@0.2.1 build /home/felipe/SpeechToSpeech
> browserify -o public/js/main.js src/index.js
felipe@felipeurrego:~/SpeechToSpeech$
Not working
DID YOU USE "DEPLOY ON BLUEMIX" BUTTON?
IF NOT -- PLEASE DO, PLEASE!
(I know you need a local version), but cloning using "DEPLOY ON BLUEMIX" BUTTON is the first step! Let me know if it works.
On Wed, Jun 1, 2016 at 2:43 PM, felipe notifications@github.com wrote:
i change credentials with mine
felipe@felipeurrego:~/SpeechToSpeech$ npm install npm WARN package.json SpeechToSpeechBrowserDemoApp@0.2.1 Normalized value of bugs field is an empty object. Deleted. npm WARN optional dep failed, continuing fsevents@1.0.12 npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade http-proxy@1.11.3 node_modules/http-proxy ├── eventemitter3@1.2.0 └── requires-port@0.0.1
connect@3.3.5 node_modules/connect ├── utils-merge@1.0.0 ├── parseurl@1.3.1 ├── debug@2.1.3 (ms@0.7.0) └── finalhandler@0.3.4 (escape-html@1.0.1, on-finished@2.2.1)
errorhandler@1.2.4 node_modules/errorhandler ├── escape-html@1.0.1 └── accepts@1.1.4 (negotiator@0.4.9, mime-types@2.0.14)
body-parser@1.15.1 node_modules/body-parser ├── content-type@1.0.2 ├── bytes@2.3.0 ├── depd@1.1.0 ├── qs@6.1.0 ├── on-finished@2.3.0 (ee-first@1.1.1) ├── raw-body@2.1.6 (unpipe@1.0.0) ├── http-errors@1.4.0 (inherits@2.0.1, statuses@1.3.0) ├── debug@2.2.0 (ms@0.7.1) ├── iconv-lite@0.4.13 └── type-is@1.6.13 (media-typer@0.3.0, mime-types@2.1.11)
express@4.10.8 node_modules/express ├── merge-descriptors@0.0.2 ├── cookie@0.1.2 ├── utils-merge@1.0.0 ├── media-typer@0.3.0 ├── vary@1.0.1 ├── fresh@0.2.4 ├── methods@1.1.1 ├── parseurl@1.3.1 ├── range-parser@1.0.3 ├── finalhandler@0.3.3 ├── content-disposition@0.5.0 ├── serve-static@1.7.2 ├── escape-html@1.0.1 ├── cookie-signature@1.0.5 ├── path-to-regexp@0.1.3 ├── depd@1.0.1 ├── qs@2.3.3 ├── on-finished@2.2.1 (ee-first@1.1.0) ├── debug@2.1.3 (ms@0.7.0) ├── proxy-addr@1.0.10 (forwarded@0.1.0, ipaddr.js@1.0.5) ├── etag@1.5.1 (crc@3.2.1) ├── type-is@1.5.7 (mime-types@2.0.14) ├── accepts@1.1.4 (negotiator@0.4.9, mime-types@2.0.14) └── send@0.10.1 (ms@0.6.2, destroy@1.0.3, mime@1.2.11, on-finished@2.1.1)
transformer-proxy@0.3.3 node_modules/transformer-proxy ├── util@0.10.3 (inherits@2.0.1) ├── promise@7.1.1 (asap@2.0.4) └── stream@0.0.1 (expect.js@0.3.1, mocha@2.5.3)
browserify-shim@3.8.12 node_modules/browserify-shim ├── through@2.3.8 ├── mothership@0.2.0 (find-parent-dir@0.3.0) ├── resolve@0.6.3 ├── rename-function-calls@0.1.1 (detective@3.1.0) └── exposify@0.4.3 (map-obj@1.0.1, has-require@1.1.0, globo@1.0.2, through2@0.4.2, transformify@0.1.2, replace-requires@1.0.3)
harmon@1.3.1 node_modules/harmon └── trumpet@1.7.0 (inherits@2.0.1, duplexer2@0.0.2, through2@1.1.1, readable-stream@1.1.14, html-tokenize@1.2.5, html-select@2.3.24)
watson-developer-cloud@0.9.30 node_modules/watson-developer-cloud ├── async@1.4.2 ├── cookie@0.2.4 ├── isstream@0.1.2 ├── csv-stringify@0.0.8 ├── extend@3.0.0 ├── string@3.3.1 ├── object.omit@2.0.0 (is-extendable@0.1.1, for-own@0.1.4) ├── object.pick@1.1.2 (isobject@2.1.0) ├── request@2.61.0 (tunnel-agent@0.4.3, aws-sign2@0.5.0, forever-agent@0.6.1, oauth-sign@0.8.2, caseless@0.11.0, stringstream@0.0.5, json-stringify-safe@5.0.1, tough-cookie@2.2.2, qs@4.0.0, node-uuid@1.4.7, combined-stream@1.0.5, mime-types@2.1.11, form-data@1.0.0-rc4, http-signature@0.11.0, bl@1.0.3, hawk@3.1.3, har-validator@1.8.0) ├── solr-client@0.5.0 (duplexer@0.1.1, httperror@0.2.3, JSONStream@0.9.0, request@2.49.0, json-bigint@0.1.4) └── jshint@2.9.2 (strip-json-comments@1.0.4, exit@0.1.2, console-browserify@1.1.0, shelljs@0.3.0, minimatch@2.0.10, cli@0.6.6, htmlparser2@3.8.3, lodash@3.7.0)
browserify@10.2.6 node_modules/browserify ├── browser-resolve@1.11.2 ├── https-browserify@0.0.1 ├── tty-browserify@0.0.0 ├── path-browserify@0.0.0 ├── constants-browserify@0.0.1 ├── punycode@1.4.1 ├── builtins@0.0.7 ├── string_decoder@0.10.31 ├── through2@1.1.1 ├── isarray@0.0.1 ├── inherits@2.0.1 ├── os-browserify@0.1.2 ├── process@0.11.3 ├── htmlescape@1.1.1 ├── commondir@0.0.1 ├── stream-browserify@1.0.0 ├── defined@1.0.0 ├── duplexer2@0.0.2 ├── assert@1.3.0 ├── shell-quote@0.0.1 ├── domain-browser@1.1.7 ├── xtend@4.0.1 ├── querystring-es3@0.2.1 ├── timers-browserify@1.4.2 ├── deps-sort@1.3.9 ├── util@0.10.3 ├── events@1.0.2 ├── concat-stream@1.4.10 (typedarray@0.0.6) ├── parents@1.0.1 (path-platform@0.11.15) ├── vm-browserify@0.0.4 (indexof@0.0.1) ├── has@1.0.1 (function-bind@1.1.0) ├── read-only-stream@1.1.1 (readable-wrap@1.0.0) ├── console-browserify@1.1.0 (date-now@0.1.4) ├── readable-stream@1.1.14 (core-util-is@1.0.2) ├── url@0.10.3 (punycode@1.3.2, querystring@0.2.0) ├── subarg@1.0.0 (minimist@1.2.0) ├── http-browserify@1.7.0 (Base64@0.2.1) ├── shasum@1.0.2 (sha.js@2.4.5, json-stable-stringify@0.0.1) ├── buffer@3.6.0 (ieee754@1.1.6, isarray@1.0.0, base64-js@0.0.8) ├── glob@4.5.3 (inflight@1.0.5, once@1.3.3, minimatch@2.0.10) ├── JSONStream@1.1.1 (through@2.3.8, jsonparse@1.2.0) ├── labeled-stream-splicer@1.0.2 (stream-splicer@1.3.2) ├── browserify-zlib@0.1.4 (pako@0.2.8) ├── resolve@1.1.7 ├── syntax-error@1.1.6 (acorn@2.7.0) ├── browser-pack@5.0.1 (umd@3.0.1, combine-source-map@0.6.1) ├── insert-module-globals@6.6.3 (is-buffer@1.1.3, combine-source-map@0.6.1, lexical-scope@1.2.0) ├── crypto-browserify@3.11.0 (create-hmac@1.1.4, randombytes@2.0.3, pbkdf2@3.0.4, create-hash@1.1.2, diffie-hellman@5.0.2, create-ecdh@4.0.0, browserify-cipher@1.0.0, browserify-sign@4.0.0, public-encrypt@4.0.0) └── module-deps@3.9.1 (stream-combiner2@1.0.2, detective@4.3.1)
watchify@3.7.0 node_modules/watchify ├── defined@1.0.0 ├── xtend@4.0.1 ├── through2@2.0.1 (readable-stream@2.0.6) ├── outpipe@1.1.1 (shell-quote@1.6.0) ├── chokidar@1.5.1 (path-is-absolute@1.0.0, inherits@2.0.1, glob-parent@2.0.0, async-each@1.0.0, is-glob@2.0.1, is-binary-path@1.0.1, readdirp@2.0.0) ├── anymatch@1.3.0 (arrify@1.0.1, micromatch@2.3.8) └── browserify@13.0.1 (browser-resolve@1.11.2, https-browserify@0.0.1, tty-browserify@0.0.0, path-browserify@0.0.0, punycode@1.4.1, duplexer2@0.1.4, string_decoder@0.10.31, constants-browserify@1.0.0, inherits@2.0.1, os-browserify@0.1.2, htmlescape@1.1.1, process@0.11.3, stream-browserify@2.0.1, assert@1.3.0, domain-browser@1.1.7, read-only-stream@2.0.0, querystring-es3@0.2.1, timers-browserify@1.4.2, util@0.10.3, deps-sort@2.0.0, events@1.1.0, parents@1.0.1, vm-browserify@0.0.4, has@1.0.1, console-browserify@1.1.0, shell-quote@1.6.0, url@0.11.0, readable-stream@2.1.4, subarg@1.0.0, labeled-stream-splicer@2.0.0, shasum@1.0.2, stream-http@2.3.0, concat-stream@1.5.1, glob@5.0.15, JSONStream@1.1.1, buffer@4.6.0, syntax-error@1.1.6, browserify-zlib@0.1.4, resolve@1.1.7, browser-pack@6.0.1, insert-module-globals@7.0.1, crypto-browserify@3.11.0, module-deps@4.0.7)
felipe@felipeurrego:~/SpeechToSpeech$ npm run build
SpeechToSpeechBrowserDemoApp@0.2.1 build /home/felipe/SpeechToSpeech browserify -o public/js/main.js src/index.js
felipe@felipeurrego:~/SpeechToSpeech$
Not working
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leonrch/SpeechToSpeech/issues/5#issuecomment-223087236, or mute the thread https://github.com/notifications/unsubscribe/ANB_cb8PZQotu51j3BW6wpodtG-FCsRaks5qHdLpgaJpZM4IROgA .
Yes, the application referenced link you sent, seems to be working. The way, the "DEPLOY ON BLUEMIX" button works is
The fact the cloned app works tells me that the source code is OK. The problem you are experiencing is likely related to wrong credentials. Please change app.js ONLY.
On Wed, Jun 1, 2016 at 2:57 PM, felipe notifications@github.com wrote:
http://speechtospeech-ingfelipeurrego-1353.mybluemix.net/
it works now?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leonrch/SpeechToSpeech/issues/5#issuecomment-223091168, or mute the thread https://github.com/notifications/unsubscribe/ANB_caoF7G8H6VXRQWMCOfUbboaNmPyRks5qHdYwgaJpZM4IROgA .
how can i binds services listed in manifest.yml
Hi again, how can i bind services listed in manifest.yml, i do all steps but not working locally... Only works with magic button
I do this:
/**
* Copyright 2014, 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var express = require('express'),
app = express(),
bodyParser = require("body-parser"), //L.R.
errorhandler = require('errorhandler'),
bluemix = require('./config/bluemix'),
watson = require('watson-developer-cloud'),
path = require('path'),
// environmental variable points to demo's json config file
extend = require('util')._extend;
// For local development, put username and password in config
// or store in your environment
var config = {
version: 'v1',
url: 'URL of STT service',
username: 'user name to access STT service',
password: 'password to access STT service'
};
// if bluemix credentials exists, then override local
var credentials = extend(config, bluemix.getServiceCreds('speech_to_text'));
var authorization = watson.authorization(credentials);
// Setup static public directory
app.use(express.static(path.join(__dirname , './public')));
// Get token from Watson using your credentials
app.get('/token', function(req, res) {
authorization.getToken({url: credentials.url}, function(err, token) {
if (err) {
console.log('error:', err);
res.status(err.code);
}
res.send(token);
});
});
// L.R.
// ------------------------------- MT ---------------------------------
app.use(bodyParser.urlencoded({ extended: false }));
var mt_credentials = extend({
url: '<URL of MT service>',
username: 'user name to access MT service',
password: 'password to access MT service',
version: 'v2'
}, bluemix.getServiceCreds('language-translation')); // VCAP_SERVICES
var language_translation = watson.language_translation(mt_credentials);
app.post('/api/translate', function(req, res, next) {
//console.log('/v2/translate');
var params = extend({ 'X-WDC-PL-OPT-OUT': req.header('X-WDC-PL-OPT-OUT')}, req.body);
//console.log(' ---> params == ' + JSON.stringify(params)); //L.R.
language_translation.translate(params, function(err, models) {
if (err)
return next(err);
else
res.json(models);
});
});
// ----------------------------------------------------------------------
// L.R.
// -------------------------------- TTS ---------------------------------
var tts_credentials = extend({
url: 'URL of TTS service',
version: 'v1',
username: 'user name to access TTS service',
password: 'password to access TTS service',
}, bluemix.getServiceCreds('text_to_speech'));
// Create the service wrappers
var textToSpeech = watson.text_to_speech(tts_credentials);
app.get('/synthesize', function(req, res) {
var transcript = textToSpeech.synthesize(req.query);
transcript.on('response', function(response) {
if (req.query.download) {
response.headers['content-disposition'] = 'attachment; filename=transcript.ogg';
}
});
transcript.on('error', function(error) {
console.log('Synthesize error: ', error)
});
transcript.pipe(res);
});
// ----------------------------------------------------------------------
// Add error handling in dev
if (!process.env.VCAP_SERVICES) {
app.use(errorhandler());
}
var port = process.env.VCAP_APP_PORT || 3006;
app.listen(port);
console.log('listening at:', port);
sudo nano /home/felipe/SpeechToSpeech/.env
##
{
"speech_to_text": [
{
"name": "speech-to-text-service-standard",
"label": "speech_to_text",
"plan": "standard",
"credentials": {
"url": "https://stream.watsonplatform.net/speech-to-text/api",
"password": "mypass",
"username": "265bdf48-47de-4bd0-8a9c-05194f2f29dd"
}
}
],
"language_translation": [
{
"name": "language-translation-service",
"label": "language_translation",
"plan": "standard",
"credentials": {
"url": "https://gateway.watsonplatform.net/language-translation/api",
"password": "mypass",
"username": "bf0d3db6-ceae-4d9a-8c99-f581d5a22dab"
}
}
],
"text_to_speech": [
{
"name": "text-to-speech-service",
"label": "text_to_speech",
"plan": "standard",
"credentials": {
"url": "https://stream.watsonplatform.net/text-to-speech/api",
"password": "mypass",
"username": "0ddf28b9-677b-4bb2-b6d3-51f8dfc547ff"
}
}
]
}
##
http://181.135.63.86:3006/ Not working
hi again sudo nano /home/felipe/SpeechToSpeech/.env
is good?
r u there, pls give me a little help
any suggestion?
are u bussy? Share me some little help
@rhaenggi pls download manually with git clone something happens
Having trouble with the SpeechToSpeech sample app only the SpeechToText part works the translate and text to speech doesen't. There is no speech_to_speech service so i use the services cf create-service speech_to_text standard speech-to-text-service-standard cf create-service language_translation standard language-translation-service cf create-service text_to_speech standard text-to-speech-service Please use my url http://pd-speech-to-speech-app.eu-gb.mybluemix.net/ Whats wrong here Regards Roland