Skip to content

Conversation

@lgavincrl
Copy link

TTS async client

@lgavincrl lgavincrl requested a review from dumitrugutu October 21, 2025 14:31
@@ -0,0 +1,274 @@
# Speechmatics Batch API Client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This README needs rewriting to reflect the TTS client rather than batch

from speechmatics.tts import AsyncClient

@pytest.mark.asyncio
async def test_async_http():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Love to have tests in place. One thing to raise is that the tests will always fail in the pipeline if we don't have an API key (e.g. it's not configured or we're on a fork). We probably want something which first checks we have an API key and then runs the test if we do. We can talk about that offline if you want

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my voice sdk tests, I add in the following at the top (see tests/voice/test_02_transcriber.py):

# Skip for CI testing
pytestmark = pytest.mark.skipif(os.getenv("CI") == "true", reason="Skipping transcriber tests in CI")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants