Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ jobs:
python-version: '3.11'

- name: Bootstrap poetry
working-directory: ./sdk
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install system dependencies for audio
run: |
sudo apt-get --yes update
sudo apt-get --yes install libportaudio2

- name: Install uv
run: |
Expand Down Expand Up @@ -123,25 +128,30 @@ jobs:
echo "SDK version: $SDK_VERSION"
echo "SDK path: $SDK_PATH"
echo "===================="

cd ../examples/tts/tts-python-quickstart

# Install SDK in editable mode from local path

# Create venv that uv run will use
# Use python -m venv to ensure pip is included
python -m venv .venv

# Install SDK in editable mode from local path into the venv
# This creates a link to the SDK source code
uv pip install -e "$SDK_PATH"

# Use the venv's Python with -m pip to avoid uv's PEP 621 parsing issues with Poetry projects
.venv/bin/python -m pip install -e "$SDK_PATH"

echo ""
echo "=== Verifying Linked SDK ==="
INSTALLED_VERSION=$(python -c "from importlib.metadata import version; print(version('hume'))")
INSTALLED_VERSION=$(uv run python -c "from importlib.metadata import version; print(version('hume'))")
echo "Installed hume version: $INSTALLED_VERSION"
if [ "$INSTALLED_VERSION" != "$SDK_VERSION" ]; then
echo "✗ WARNING: Version mismatch! Expected $SDK_VERSION, got $INSTALLED_VERSION"
else
echo "✓ Version matches: $INSTALLED_VERSION"
fi

# Verify it's using local SDK (editable install)
SDK_LOCATION=$(python -c "import hume; import os; print(os.path.dirname(hume.__file__))")
SDK_LOCATION=$(uv run python -c "import hume; import os; print(os.path.dirname(hume.__file__))")
echo "SDK location: $SDK_LOCATION"
if [[ "$SDK_LOCATION" == *"$SDK_PATH"* ]]; then
echo "✓ Using local SDK (editable install)"
Expand All @@ -157,7 +167,6 @@ jobs:
run: uv run pytest test_app.py -v
env:
TEST_HUME_API_KEY: ${{ secrets.TEST_HUME_API_KEY }}
TEST_HUME_SECRET_KEY: ${{ secrets.TEST_HUME_SECRET_KEY }}

publish:
needs: [compile-without-audio, compile-with-audio, test]
Expand Down
1 change: 1 addition & 0 deletions src/hume/tts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ def voices(self):
def stream_input(self):
if self._stream_input is None:
from .stream_input.client import StreamInputClient # noqa: E402

self._stream_input = StreamInputClient(client_wrapper=self._client_wrapper)
return self._stream_input

Expand Down