Skip to content

Commit 4802051

Browse files
busunkim96telpirion
authored andcommitted
chore: delete duplicate generated samples
1 parent 8fcac18 commit 4802051

File tree

49 files changed

+49
-2017
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+49
-2017
lines changed

speech/resources/brooklyn_bridge.flac

-51.2 KB
Binary file not shown.

speech/resources/brooklyn_bridge.mp3

-29.2 KB
Binary file not shown.

speech/resources/brooklyn_bridge.raw

-56.6 KB
Binary file not shown.

speech/resources/brooklyn_bridge.wav

-312 KB
Binary file not shown.

speech/resources/commercial_mono.wav

-708 KB
Binary file not shown.

speech/resources/hello.raw

-15.7 KB
Binary file not shown.

speech/resources/hello.wav

-43.5 KB
Binary file not shown.

speech/resources/multi.flac

-223 KB
Binary file not shown.

speech/resources/multi.wav

-888 KB
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2020 Google LLC
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
import os
15+
import re
16+
17+
import speech_adaptation_beta
18+
19+
20+
def test_adaptation_beta():
21+
response = speech_adaptation_beta.sample_recognize(
22+
"gs://cloud-samples-data/speech/brooklyn_bridge.mp3", "Brooklyn Bridge"
23+
)
24+
assert "brooklyn" in response.results[0].alternatives[0].transcript.lower()

speech/v1p1beta1/speech_quickstart_beta.py renamed to speech/snippets/speech_quickstart_beta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def sample_recognize(storage_uri):
6363
alternative = result.alternatives[0]
6464
print(u"Transcript: {}".format(alternative.transcript))
6565

66-
6766
# [END speech_quickstart_beta]
67+
return response
6868

6969

7070
def main():
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2020 Google LLC
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
import os
15+
import re
16+
17+
import speech_quickstart_beta
18+
19+
20+
def test_quickstart_beta():
21+
response = speech_quickstart_beta.sample_recognize(
22+
"gs://cloud-samples-data/speech/brooklyn_bridge.mp3"
23+
)
24+
assert "brooklyn" in response.results[0].alternatives[0].transcript.lower()

speech/v1/speech_transcribe_async.py

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

speech/v1/speech_transcribe_async_gcs.py

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

speech/v1/speech_transcribe_async_word_time_offsets_gcs.py

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

0 commit comments

Comments
 (0)