Skip to content

Commit 16d5141

Browse files
Update audio transcriptions tests with a smaller, reliable audio file source (#351)
1 parent dd483b2 commit 16d5141

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

tests/integration/resources/test_transcriptions.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def test_basic_transcription_url(self, sync_together_client):
2222
"""
2323
Test basic transcription with URL audio file
2424
"""
25-
audio_url = "https://ia801605.us.archive.org/28/items/jfks19630626/jfk_1963_0626_berliner.wav"
25+
audio_url = (
26+
"https://voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav"
27+
)
2628

2729
response = sync_together_client.audio.transcriptions.create(
2830
file=audio_url, model="openai/whisper-large-v3"
@@ -36,7 +38,9 @@ def test_transcription_with_language(self, sync_together_client):
3638
"""
3739
Test transcription with language parameter
3840
"""
39-
audio_url = "https://ia801605.us.archive.org/28/items/jfks19630626/jfk_1963_0626_berliner.wav"
41+
audio_url = (
42+
"https://voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav"
43+
)
4044

4145
response = sync_together_client.audio.transcriptions.create(
4246
file=audio_url, model="openai/whisper-large-v3", language="en"
@@ -50,7 +54,9 @@ def test_transcription_verbose_json(self, sync_together_client):
5054
"""
5155
Test transcription with verbose JSON format and timestamps
5256
"""
53-
audio_url = "https://ia801605.us.archive.org/28/items/jfks19630626/jfk_1963_0626_berliner.wav"
57+
audio_url = (
58+
"https://voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav"
59+
)
5460

5561
response = sync_together_client.audio.transcriptions.create(
5662
file=audio_url,
@@ -68,7 +74,9 @@ def test_transcription_with_temperature(self, sync_together_client):
6874
"""
6975
Test transcription with temperature parameter
7076
"""
71-
audio_url = "https://ia801605.us.archive.org/28/items/jfks19630626/jfk_1963_0626_berliner.wav"
77+
audio_url = (
78+
"https://voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav"
79+
)
7280

7381
response = sync_together_client.audio.transcriptions.create(
7482
file=audio_url, model="openai/whisper-large-v3", temperature=0.2
@@ -91,7 +99,9 @@ def test_transcription_missing_model(self, sync_together_client):
9199
"""
92100
Test transcription with missing model parameter - should use default model
93101
"""
94-
audio_url = "https://ia801605.us.archive.org/28/items/jfks19630626/jfk_1963_0626_berliner.wav"
102+
audio_url = (
103+
"https://voiptroubleshooter.com/open_speech/american/OSR_us_000_0010_8k.wav"
104+
)
95105

96106
response = sync_together_client.audio.transcriptions.create(file=audio_url)
97107

0 commit comments

Comments
 (0)