Skip to content

Commit 499e595

Browse files
committed
test(speech to text v1): Updated test files
1 parent f8d2228 commit 499e595

File tree

16 files changed

+111
-15
lines changed

16 files changed

+111
-15
lines changed

Assistant.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assistant/v2.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/Editor/Help.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/Editor/Help/Working.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/ServiceExamples/Scripts/ExampleSpeechToText.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public class ExampleSpeechToText : MonoBehaviour
9797
void Start()
9898
{
9999
LogSystem.InstallDefaultReactors();
100-
_customCorpusFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/theJabberwocky-utf8.txt";
101-
_customWordsFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/test-stt-words.json";
100+
_customCorpusFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/speech-to-text/theJabberwocky-utf8.txt";
101+
_customWordsFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/speech-to-text/test-stt-words.json";
102102
_acousticResourceMimeType = Utility.GetMimeType(Path.GetExtension(_acousticResourceUrl));
103103
_oggResourceMimeType = Utility.GetMimeType(Path.GetExtension(_oggResourceUrl));
104104
Runnable.Run(CreateService());
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
| US English default stopword list
2+
3+
a
4+
an
5+
and
6+
are
7+
as
8+
at
9+
be
10+
but
11+
by
12+
for
13+
if
14+
in
15+
into
16+
is
17+
it
18+
no
19+
not
20+
of
21+
on
22+
or
23+
such
24+
that
25+
the
26+
their
27+
then
28+
there
29+
these
30+
they
31+
this
32+
to
33+
was
34+
will
35+
with

Examples/ServiceExamples/TestData/speech-to-text.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ABNF 1.0 ISO-8859-1;
2+
language en-US;
3+
mode voice;
4+
root $yesno;
5+
6+
$yesno = affirmative | nah | no | nope | yeah | yep | yes | yup | fine
7+
| negative | OK | sure ;

Examples/ServiceExamples/TestData/speech-to-text/confirm.abnf.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/ServiceExamples/TestData/test-stt-words.json.meta renamed to Examples/ServiceExamples/TestData/speech-to-text/test-stt-words.json.meta

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/ServiceExamples/TestData/theJabberwocky-utf8.txt.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Scripts/UnitTests/TestSpeechToText.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public override IEnumerator RunTest()
130130
yield return null;
131131

132132
_speechToText = new SpeechToText(credentials);
133-
_customCorpusFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/theJabberwocky-utf8.txt";
134-
_customWordsFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/test-stt-words.json";
133+
_customCorpusFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/speech-to-text/theJabberwocky-utf8.txt";
134+
_customWordsFilePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/speech-to-text/test-stt-words.json";
135135
_acousticResourceMimeType = Utility.GetMimeType(Path.GetExtension(_acousticResourceUrl));
136136

137137
Runnable.Run(DownloadAcousticResource());

0 commit comments

Comments
 (0)