Skip to content

Commit 680a5a5

Browse files
committed
basic styling and a back link
1 parent 0ff9ada commit 680a5a5

22 files changed

+164
-34
lines changed

examples/static/browserify.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Watson Speech to Text Browserify example</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h2>Transcribe from Microphone via Browserify bundle</h2>
@@ -22,5 +26,6 @@ <h2>Code for this demo:</h2>
2226

2327
<pre><code><embed type="text/plain" src="browserify-app.js" width="100%" height="600"></embed></code></pre>
2428

29+
</div>
2530
</body>
2631
</html>

examples/static/file-ajax.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>File AJAX Example - Watson Speech to Text</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h1>Transcribe File via AJAX</h1>
@@ -48,5 +52,6 @@ <h2>Code for this demo:</h2>
4852
});
4953
};
5054
</script></code></pre>
55+
</div>
5156
</body>
5257
</html>

examples/static/file-upload.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>File Upload Example - Watson Speech to Text</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h2>Transcribe and Play user-provided File</h2>
@@ -51,6 +55,7 @@ <h2>Code for this demo:</h2>
5155
}
5256
};
5357
</script></code></pre>
58+
</div>
5459
</body>
5560
</html>
5661

examples/static/file-url.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>File URL Example - Watson Speech to Text</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h1>Transcribe File via URL</h1>
@@ -47,5 +51,6 @@ <h2>Code for this demo:</h2>
4751
});
4852
}
4953
</script></code></pre>
54+
</div>
5055
</body>
5156
</html>

examples/static/index.html

Lines changed: 47 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,56 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>IBM Watson Speech JavaScript SDK Example</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
8-
<h1>IBM Watson Speech JavaScript SDK Examples</h1>
9-
<h2>Speech to Text</h2>
10-
<h3>Microphone Input</h3>
11-
<ul>
12-
<li><a href="microphone-streaming.html">Transcribe from Microphone</a></li>
13-
<li><a href="microphone-streaming-auto-stop.html">Transcribe from Microphone, automatically stop at first pause</a></li>
14-
<li><a href="microphone-alternatives.html">Transcribe from Microphone, with Alternatives</a></li>
15-
<li><a href="microphone-word-confidence.html">Transcribe from Microphone, with Word Confidence</a></li>
16-
<li><a href="microphone-streaming-text-to-console.html">Transcribe from Microphone, send text to console</a></li>
17-
<li><a href="microphone-streaming-model.html">Transcribe from Microphone, Streaming with chosen model</a></li>
18-
<li><a href="microphone-streaming-object-to-console.html">Transcribe from Microphone, send JSON to console (includes text and metadata; v0.22+ format)</a></li>
19-
<li><a href="browserify.html">Example bundled with browserify</a>*</li>
20-
<li><a href="webpack.html">Example bundled with Webpack</a>*</li>
21-
<li><strike><a href="microphone-streaming-object-extracted-to-console.html">Deprecated: Transcribe from Microphone, send JSON to console with results extracted (pre-v0.22 format)</a></strike></li>
22-
</ul>
23-
<h3>File Input</h3>
24-
<p>(user-provided or downloaded)</p>
25-
<ul>
26-
<li><a href="file-url.html">Transcribe and Play a file via URL, with pre-loaded token (compatible with Mobile Safari)</a></li>
27-
<li><a href="file-upload.html">Transcribe and Play a user-provided file</a></li>
28-
<li><a href="speaker-labels-file-console.html">Transcribe from URL with <code>{speaker_labels: true}</code>, output to console</a></li>
29-
<li><a href="speaker-stream-file-console.html">Transcribe from URL with <code>{resultsBySpeaker: true}</code>, output to console</a></li>
30-
<li><a href="speaker-stream-file-html.html">Transcribe from URL with <code>{resultsBySpeaker: true}</code>, output HTML</a></li>
31-
<li><a href="realtime-vs-no-realtime.html">Compare <code>realtime</code> and <code>TimingStream</code> options</a></li>
32-
<li><a href="url-promise.html">Transcribe from URL, return a Promise</a></li>
33-
<li><a href="file-ajax.html">Transcribe from file, pre-loaded over AJAX</a></li>
34-
<li><strike><a href="audio-video-deprecated/">Deprecated: Transcribe from HTML5 &lt;audio&gt; or &lt;video&gt; element</a></strike>*</li>
35-
</ul>
10+
<div class="container">
11+
<h1>IBM Watson Speech JavaScript SDK Examples</h1>
12+
<h2>Speech to Text</h2>
13+
<h3>Microphone Input</h3>
14+
<ul>
15+
<li><a href="microphone-streaming.html">Transcribe from Microphone</a></li>
16+
<li><a href="microphone-streaming-auto-stop.html">Transcribe from Microphone, automatically stop at first pause</a></li>
17+
<li><a href="microphone-alternatives.html">Transcribe from Microphone, with Alternatives</a></li>
18+
<li><a href="microphone-word-confidence.html">Transcribe from Microphone, with Word Confidence</a></li>
19+
<li><a href="microphone-streaming-text-to-console.html">Transcribe from Microphone, send text to console</a></li>
20+
<li><a href="microphone-streaming-model.html">Transcribe from Microphone, Streaming with chosen model</a></li>
21+
<li><a href="microphone-streaming-object-to-console.html">Transcribe from Microphone, send JSON to console (includes text and metadata; v0.22+ format)</a></li>
22+
<li><a href="browserify.html">Example bundled with browserify</a>*</li>
23+
<li><a href="webpack.html">Example bundled with Webpack</a>*</li>
24+
<li><strike><a href="microphone-streaming-object-extracted-to-console.html">Deprecated: Transcribe from Microphone, send JSON to console with results extracted (pre-v0.22 format)</a></strike></li>
25+
</ul>
26+
<h3>File Input</h3>
27+
<p>(user-provided or downloaded - several sample files available in static/ folder)</p>
28+
<ul>
29+
<li><a href="file-url.html">Transcribe and Play a file via URL, with pre-loaded token (compatible with Mobile Safari)</a></li>
30+
<li><a href="file-upload.html">Transcribe and Play a user-provided file</a></li>
31+
<li><a href="speaker-labels-file-console.html">Transcribe from URL with <code>{speaker_labels: true}</code>, output to console</a></li>
32+
<li><a href="speaker-stream-file-console.html">Transcribe from URL with <code>{resultsBySpeaker: true}</code>, output to console</a></li>
33+
<li><a href="speaker-stream-file-html.html">Transcribe from URL with <code>{resultsBySpeaker: true}</code>, output HTML</a></li>
34+
<li><a href="realtime-vs-no-realtime.html">Compare <code>realtime</code> and <code>TimingStream</code> options</a></li>
35+
<li><a href="url-promise.html">Transcribe from URL, return a Promise</a></li>
36+
<li><a href="file-ajax.html">Transcribe from file, pre-loaded over AJAX</a></li>
37+
<li><strike><a href="audio-video-deprecated/">Deprecated: Transcribe from HTML5 &lt;audio&gt; or &lt;video&gt; element</a></strike>*</li>
38+
</ul>
3639

37-
<p>* Examples that depend on browserify or webpack require Node.js and will not work with the example Python server.</p>
40+
<p>* Examples that depend on browserify or webpack require Node.js and will not work with the example Python server.</p>
3841

39-
<h2>Text to Speech</h2>
40-
<ul>
41-
<li><a href="text-to-speech-preload-token.html">Synthesize text, with pre-loaded token (compatible with Mobile Safari)</a></li>
42-
<li><a href="text-to-speech-custom-voice.html">Synthesize text w/ custom voice</a></li>
43-
</ul>
42+
<h2>Text to Speech</h2>
43+
<ul>
44+
<li><a href="text-to-speech-preload-token.html">Synthesize text, with pre-loaded token (compatible with Mobile Safari)</a></li>
45+
<li><a href="text-to-speech-custom-voice.html">Synthesize text w/ custom voice</a></li>
46+
</ul>
47+
48+
<h2>See Also</h2>
49+
50+
<ul>
51+
<li><a href="http://watson-developer-cloud.github.io/speech-javascript-sdk/">JSDoc</a></li>
52+
<li><a href="https://www.npmjs.com/package/watson-speech">npm</a></li>
53+
<li><a href="https://github.com/watson-developer-cloud/speech-javascript-sdk">GitHub</a></li>
54+
<li><a href="https://www.ibm.com/watson/developercloud/">Watson</a></li>
55+
</ul>
56+
</div>
4457
</body>
4558
</html>

examples/static/microphone-alternatives.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Microphone with Alternatives | IBM Watson Speech JavaScript SDK Example</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h2>Transcribe from Microphone, with Alternatives</h2>
@@ -70,5 +74,6 @@ <h2>Code for this demo:</h2>
7074

7175
</script></code></pre>
7276

77+
</div>
7378
</body>
7479
</html>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Watson Speech to Text client example</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h2>Transcribe from Microphone</h2>
@@ -44,5 +48,6 @@ <h2>Code for this demo:</h2>
4448
};
4549
</script></code></pre>
4650

51+
</div>
4752
</body>
4853
</html>

examples/static/microphone-streaming-model.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Watson Speech to Text client example - custom model</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h2>Transcribe from Microphone</h2>
@@ -72,5 +76,6 @@ <h2>Code for this demo:</h2>
7276

7377
</script></code></pre>
7478

79+
</div>
7580
</body>
7681
</html>

examples/static/microphone-streaming-object-extracted-to-console.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Watson Speech to Text client example</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h2>Transcribe from Microphone</h2>
@@ -53,5 +57,6 @@ <h2>Code for this demo:</h2>
5357

5458
</script></code></pre>
5559

60+
</div>
5661
</body>
5762
</html>

examples/static/microphone-streaming-object-to-console.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Watson Speech to Text client example</title>
6+
<link rel="stylesheet" href="style.css" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
68
</head>
79
<body>
10+
<div class="container">
11+
<a href="/">&laquo; Examples</a>
812

913
<section>
1014
<h2>Transcribe from Microphone</h2>
@@ -53,5 +57,6 @@ <h2>Code for this demo:</h2>
5357

5458
</script></code></pre>
5559

60+
</div>
5661
</body>
5762
</html>

0 commit comments

Comments
 (0)