You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/readme.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,12 @@ Prerequisite
12
12
13
13
* IBM Watson Speech to Text service credentials - see [Service credentials for Watson services](https://www.ibm.com/watson/developercloud/doc/common/getting-started-credentials.html)
14
14
* Node.js OR Python
15
-
*[Bower](https://bower.io/) for installing client-side dependencies
16
15
17
16
18
17
Setup - Node.js
19
18
---------------
20
19
21
-
1.`cd` into the `examples/` directory and run `npm install` to grab dependencies (this automatically runs `bower install`)
20
+
1.`cd` into the `examples/` directory and run `npm install` to grab dependencies (this automatically runs `postinstall` that also puts the dependencies into place)
22
21
2. edit `tts-token.js` and `stt-token.js` to include your service credentials (or create a `.env` file)
23
22
3. run `npm start`
24
23
4. Open your browser to http://localhost:3000/ to see the examples.
@@ -28,7 +27,7 @@ Setup - Python
28
27
--------------
29
28
30
29
1.`cd` into the `examples/` directory and run `pip install watson_developer_cloud flask python-dotenv pyopenssl` (or `easy_install...`) to install python dependencies.
31
-
2. run `bower install` to install client-side dependencies
30
+
2. run `./scripts/postinstall.sh` to install client-side dependencies
32
31
3. edit `server.py` to include your service credentials (or create a `.env` file)
33
32
4. run `python server.py`
34
33
5. Open your browser to http://localhost:5000/ to see the examples.
@@ -39,7 +38,7 @@ Notes
39
38
40
39
* The examples all use [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) (a modern promise-based replacement for XMLHttpRequest) to retrieve auth tokens. Most supported browsers include a native fetch implementation, but a pollyfill is included in the top-level module for older browsers.
41
40
* The examples use a Node.js server to generate tokens. It doesn't have to be written in Node.js, but *some server-side token generator is required*. The SDK will not accept your service credentials directly, and you can not use them to generate a token client-side. SDKs are available for [Node.js](https://github.com/watson-developer-cloud/node-sdk#authorization), [Java](https://github.com/watson-developer-cloud/java-sdk), [Python](https://github.com/watson-developer-cloud/python-sdk/blob/master/examples/authorization_v1.py), and there is a [REST API](https://www.ibm.com/watson/developercloud/doc/common/getting-started-tokens.html) for use with other languages (or `curl`).
42
-
* The Speech SDK may be used in browserify, Webpack, or as a standalone library. Most of the examples use the standalone version either installed via bower or symlinked to the root directory when developing locally.
41
+
* The Speech SDK may be used in browserify, Webpack, or as a standalone library. Most of the examples use the standalone version either installed via NPM or symlinked to the root directory when developing locally.
0 commit comments