Skip to content

Commit dffe1d3

Browse files
committed
cleaned up examples a bit, docs
1 parent 4c6db73 commit dffe1d3

15 files changed

+130
-106
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ For use with `.recognizeBlob({play: true})` - slows the results down to match th
136136

137137
## Changelog
138138

139+
### v0.9
140+
* Added basic text to speech support
141+
139142
### v0.8
140143
* deprecated `result` events in favor of `objectMode`.
141144
* renamed the `autoplay` option to `autoPlay` on `recognizeElement()` (capital P)

examples/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
"name": "watson-speech-examples",
33
"version": "1.0.0",
44
"description": "Examples showing the IBM Watson Speech Javascript SDK in action.",
5-
"main": "token-server.js",
65
"scripts": {
7-
"start": "node token-server.js"
6+
"start": "node server.js"
87
},
98
"dependencies": {
109
"express": "^4.13.3",
Binary file not shown.
Binary file not shown.

examples/public/audio-element-programmatic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2>Code for this demo:</h2>
2525
var $output = $('#output');
2626

2727
$('#button').click(function () {
28-
$.get('/token').then(function (token) {
28+
$.get('/api/speech-to-text/token').then(function (token) {
2929
$output.html('');
3030

3131
var audioElement = new Audio(); // document.createElement('video'); also works here

examples/public/audio-element.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h2>Code for this demo:</h2>
2727
var $output = $('#output');
2828

2929
$('#button').click(function () {
30-
$.get('/token').then(function (token) {
30+
$.get('/api/speech-to-text/token').then(function (token) {
3131
$output.html('');
3232

3333
var stream = WatsonSpeech.SpeechToText.recognizeElement({

examples/public/blob-realtime-vs-no-realtime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2>Code for this demo:</h2>
5656
var stream;
5757

5858
$('#button').click(function () {
59-
$.get('/token').then(function (token) {
59+
$.get('/api/speech-to-text/token').then(function (token) {
6060

6161
stream = WatsonSpeech.SpeechToText.recognizeBlob({
6262
token: token,

examples/public/file-promise.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2>Code for this demo:</h2>
2424
var $output = $('#output');
2525

2626
$('#button').click(function () {
27-
$.get('/token').then(function (token) {
27+
$.get('/api/speech-to-text/token').then(function (token) {
2828
$output.html('Processing...');
2929

3030
WatsonSpeech.SpeechToText.recognizeBlob({

examples/public/file-streaming.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h2>Code for this demo:</h2>
2727
$('#button').click(function () {
2828
$output.html('');
2929

30-
$.get('/token').then(function (token) {
30+
$.get('/api/speech-to-text/token').then(function (token) {
3131

3232
stream = WatsonSpeech.SpeechToText.recognizeBlob({
3333
token: token,

examples/public/microphone-streaming-auto-stop.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h2>Code for this demo:</h2>
2626
$('#button').click(function () {
2727
$output.html('');
2828

29-
$.get('/token').then(function (token) {
29+
$.get('/api/speech-to-text/token').then(function (token) {
3030
var stream = WatsonSpeech.SpeechToText.recognizeMicrophone({
3131
token: token,
3232
continuous: false, // false = automatically stop transcription the first time a pause is detected

0 commit comments

Comments
 (0)