From: Pieter Lenaerts <plenae@disroot.org>
Date: Sun, 28 Jun 2026 15:14:26 +0200
Subject: Disable tests using remote resources

The tests using remote resources require an account or give other
errors. Tests shouldn't access remote resources. Skipping them.

Forwarded: not-needed
---
 tests/test_audio_isolation.py | 3 +++
 tests/test_history.py         | 2 ++
 tests/test_models.py          | 2 ++
 tests/test_sts.py             | 3 +++
 tests/test_stt.py             | 1 +
 tests/test_tts.py             | 6 ++++++
 tests/test_ttsfx.py           | 2 ++
 tests/test_ttv.py             | 2 ++
 tests/test_voices.py          | 3 +++
 9 files changed, 24 insertions(+)

diff --git a/tests/test_audio_isolation.py b/tests/test_audio_isolation.py
index b002a71..be13c8c 100644
--- a/tests/test_audio_isolation.py
+++ b/tests/test_audio_isolation.py
@@ -1,9 +1,11 @@
+import pytest
 from elevenlabs.play import play
 from elevenlabs.client import ElevenLabs
 
 from .utils import IN_GITHUB, DEFAULT_VOICE_FILE
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_audio_isolation() -> None:
     """Test basic audio isolation."""
     client = ElevenLabs()
@@ -18,6 +20,7 @@ def test_audio_isolation() -> None:
         audio_file.close()
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_audio_isolation_as_stream():
     """Test audio isolation with streaming."""
     client = ElevenLabs()
diff --git a/tests/test_history.py b/tests/test_history.py
index a54ade7..231dd6c 100644
--- a/tests/test_history.py
+++ b/tests/test_history.py
@@ -1,6 +1,8 @@
+import pytest
 from elevenlabs import GetSpeechHistoryResponse, ElevenLabs
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_history():
     client = ElevenLabs()
     page_size = 5
diff --git a/tests/test_models.py b/tests/test_models.py
index e27de82..f03c11e 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -1,7 +1,9 @@
+import pytest
 from elevenlabs import Model
 from elevenlabs.client import ElevenLabs
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_models_get_all():
     client = ElevenLabs()
     models = client.models.list()
diff --git a/tests/test_sts.py b/tests/test_sts.py
index 935697a..3a5f07e 100644
--- a/tests/test_sts.py
+++ b/tests/test_sts.py
@@ -1,9 +1,11 @@
+import pytest
 from elevenlabs.play import play
 from elevenlabs.client import ElevenLabs
 
 from .utils import IN_GITHUB, DEFAULT_VOICE, DEFAULT_VOICE_FILE
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_sts() -> None:
     """Test basic speech-to-speech generation."""
     client = ElevenLabs()
@@ -18,6 +20,7 @@ def test_sts() -> None:
         audio_file.close()
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_sts_as_stream():
     client = ElevenLabs()
     audio_file = open(DEFAULT_VOICE_FILE, "rb")
diff --git a/tests/test_stt.py b/tests/test_stt.py
index d6e3eea..2343c68 100644
--- a/tests/test_stt.py
+++ b/tests/test_stt.py
@@ -8,6 +8,7 @@ DEFAULT_EXT_AUDIO = "https://storage.googleapis.com/eleven-public-cdn/audio/mark
 
 
 @pytest.mark.asyncio
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 async def test_stt_convert():
     """Test basic speech-to-text conversion."""
     client = ElevenLabs()
diff --git a/tests/test_tts.py b/tests/test_tts.py
index 4c7cd2e..343c7ef 100644
--- a/tests/test_tts.py
+++ b/tests/test_tts.py
@@ -1,4 +1,5 @@
 import asyncio
+import pytest
 
 from elevenlabs import VoiceSettings, Voice
 from elevenlabs.play import play
@@ -8,6 +9,7 @@ from .utils import IN_GITHUB, DEFAULT_TEXT, DEFAULT_VOICE, DEFAULT_MODEL
 import base64
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_tts_convert() -> None:
     """Test basic text-to-speech generation."""
     client = ElevenLabs()
@@ -18,6 +20,7 @@ def test_tts_convert() -> None:
         play(audio)
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_tts_convert_with_voice_settings() -> None:
     """Test TTS with custom voice settings."""
     client = ElevenLabs()
@@ -33,6 +36,7 @@ def test_tts_convert_with_voice_settings() -> None:
         play(audio)
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_tts_convert_as_stream():
     async def main():
         async_client = AsyncElevenLabs()
@@ -49,6 +53,7 @@ def test_tts_convert_as_stream():
     asyncio.run(main())
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_tts_convert_with_timestamps() -> None:
     """Test TTS generation with timestamps."""
     client = ElevenLabs()
@@ -70,6 +75,7 @@ def test_tts_convert_with_timestamps() -> None:
         play(audio_bytes)
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_tts_stream_with_timestamps():
     async def main():
         async_client = AsyncElevenLabs()
diff --git a/tests/test_ttsfx.py b/tests/test_ttsfx.py
index e190cfa..08e9aa6 100644
--- a/tests/test_ttsfx.py
+++ b/tests/test_ttsfx.py
@@ -1,9 +1,11 @@
+import pytest
 from elevenlabs.play import play
 from elevenlabs.client import ElevenLabs
 
 from .utils import IN_GITHUB
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_text_to_sound_effects_convert() -> None:
     """Test basic sound-effect generation."""
     client = ElevenLabs()
diff --git a/tests/test_ttv.py b/tests/test_ttv.py
index 5d08682..2f79ffb 100644
--- a/tests/test_ttv.py
+++ b/tests/test_ttv.py
@@ -1,6 +1,8 @@
+import pytest
 from elevenlabs.client import ElevenLabs
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_voice_preview_generation():
     """Test generating voice previews from description."""
     client = ElevenLabs()
diff --git a/tests/test_voices.py b/tests/test_voices.py
index 220fe6f..9e3080a 100644
--- a/tests/test_voices.py
+++ b/tests/test_voices.py
@@ -1,7 +1,9 @@
+import pytest
 from elevenlabs import Voice, VoiceSettings, ElevenLabs
 from .utils import DEFAULT_VOICE
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_get_voice():
     client = ElevenLabs()
     voice_id = DEFAULT_VOICE
@@ -14,6 +16,7 @@ def test_get_voice():
         assert isinstance(voice.settings, VoiceSettings)
 
 
+@pytest.mark.skip(reason="Skipped to avoid remote resource access during tests")
 def test_get_voices():
     client = ElevenLabs()
     response = client.voices.search()
