Skip to content

Commit 7cad6ba

Browse files
committed
chore: reduce test asset size
1 parent aa1df7e commit 7cad6ba

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

getstream/plugins/moonshine/tests/test_stt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def on_error(error):
719719

720720
# Content validation - check for key words from the expected transcript
721721
# We'll be lenient since STT accuracy can vary
722-
key_words = ["mia", "village", "map", "treasure", "cat", "whiskers"]
722+
key_words = ["mia", "village", "brushes", "map", "treasure", "fields", "hues", "discovered"]
723723
found_key_words = [
724724
word for word in key_words if word in combined_text.lower()
725725
]

tests/assets/mia.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
{
22
"audio_file": "mia.mp3",
33
"language": "English",
4-
"duration": 21,
4+
"duration": 10,
55
"segments": [
66
{
77
"start_time": 0.0,
88
"end_time": 10.0,
99
"speaker": "Speaker 0",
1010
"text": "In a quiet village where the sky brushes the fields in hues of gold, young Mia discovered a map leading to forgotten treasures."
11-
},
12-
{
13-
"start_time": 10.0,
14-
"end_time": 21.0,
15-
"speaker": "Speaker 0",
16-
"text": "Little did she know her cat, Whiskers, had a secret. He was the guardian of the map, tasked with guiding Mia to not only the treasure but also to her destiny."
1711
}
1812
],
1913
"metadata": {
2014
"sample_rate": 16000,
2115
"channels": 1,
22-
"word_count": 51,
16+
"word_count": 24,
2317
"speakers": ["Speaker 0"]
2418
}
2519
}

tests/assets/mia.mp3

-189 KB
Binary file not shown.

0 commit comments

Comments
 (0)