Skip to content

Commit aea7b65

Browse files
committed
restructure plugins and create separate packages
1 parent 17a2404 commit aea7b65

File tree

59 files changed

+1264
-557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1264
-557
lines changed

examples/llm_audio_conversation/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
from openai import OpenAI
2929

3030
from examples.utils import create_user, open_browser
31-
from getstream.plugins.deepgram import DeepgramSTT
32-
from getstream.plugins.elevenlabs import ElevenLabsTTS
33-
from getstream.plugins.silero import SileroVAD
31+
from getstream_deepgram import DeepgramSTT
32+
from getstream_elevenlabs import ElevenLabsTTS
33+
from getstream_silero import SileroVAD
3434
from getstream.stream import Stream
3535
from getstream.video import rtc
3636
from getstream.video.rtc import audio_track

examples/mcp/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from getstream.stream import Stream
55
from getstream.video import rtc
66
from getstream.video.call import Call
7-
from getstream.plugins.deepgram import DeepgramSTT
8-
from getstream.plugins.elevenlabs import ElevenLabsTTS
7+
from getstream_deepgram import DeepgramSTT
8+
from getstream_elevenlabs import ElevenLabsTTS
99
from getstream.video.rtc import audio_track
1010
from getstream.video.rtc.track_util import PcmData
1111
from examples.mcp.agent import chat_with_tools

examples/openai_realtime_speech_to_speech/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from examples.utils import create_user, open_browser
77
from getstream import Stream
88
from getstream.models import StartClosedCaptionsResponse
9-
from getstream.plugins.openai import OpenAIRealtime
9+
from getstream_openai import OpenAIRealtime
1010

1111

1212
logging.basicConfig(
@@ -16,7 +16,7 @@
1616
)
1717

1818
# Enable verbose logging for the OpenAI Realtime plugin
19-
logging.getLogger("getstream.plugins.sts.openai_realtime.sts").setLevel(logging.INFO)
19+
logging.getLogger("getstream_openai.sts").setLevel(logging.INFO)
2020

2121

2222
async def main():

examples/stt_deepgram_transcription/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from getstream.stream import Stream
2525
from getstream.video import rtc
2626
from getstream.video.rtc.track_util import PcmData
27-
from getstream.plugins.deepgram import DeepgramSTT
27+
from getstream_deepgram import DeepgramSTT
2828
from examples.utils import create_user, open_browser
2929

3030
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")

examples/stt_moonshine_transcription/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
import uuid
2424
from dotenv import load_dotenv
2525

26-
from getstream.plugins.silero import SileroVAD
26+
from getstream_silero import SileroVAD
2727
from getstream.stream import Stream
2828
from getstream.video import rtc
2929
from getstream.video.rtc.track_util import PcmData
30-
from getstream.plugins.moonshine import MoonshineSTT
30+
from getstream_moonshine import MoonshineSTT
3131
from examples.utils import create_user, open_browser
3232

3333

examples/tts_cartesia/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from getstream.stream import Stream
3030
from getstream.video import rtc
3131
from getstream.video.rtc import audio_track
32-
from getstream.plugins.cartesia import CartesiaTTS
32+
from getstream_cartesia import CartesiaTTS
3333

3434

3535
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")

examples/tts_elevenlabs/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from getstream.stream import Stream
3030
from getstream.video import rtc
3131
from getstream.video.rtc import audio_track
32-
from getstream.plugins.elevenlabs import ElevenLabsTTS
32+
from getstream_elevenlabs import ElevenLabsTTS
3333

3434

3535
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")

examples/vad_silero/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Example: Voice-Activity-Detection bot (Silero VAD)
44
55
The script joins a Stream video call with a bot that detects when anyone
6-
speaks, using the Silero VAD plugin (`getstream.plugins.vad.silero`).
6+
speaks, using the Silero VAD plugin (`getstream_silero`).
77
Each complete speech turn is logged with a timestamp and duration.
88
99
Run:
@@ -28,11 +28,9 @@
2828
from getstream.stream import Stream
2929
from getstream.video import rtc
3030
from getstream.video.rtc.track_util import PcmData
31-
from getstream.plugins.silero import SileroVAD
31+
from getstream_silero import SileroVAD
3232

33-
# ---------------------------------------------------------------------------
3433
# Logging setup – INFO level so we see joins / leaves, etc.
35-
# ---------------------------------------------------------------------------
3634
logging.basicConfig(
3735
level=logging.INFO,
3836
format="%(asctime)s %(levelname)s %(message)s",

getstream/plugins/cartesia/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[build-system]
2-
requires = ["setuptools>=42", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "getstream-plugins-cartesia"
77
version = "0.1.0"
8-
description = "Cartesia plugin for Stream"
8+
description = "Cartesia plugin for GetStream"
99
readme = "README.md"
1010
requires-python = ">=3.10"
11-
license = {text = "MIT"}
11+
license = "MIT"
1212
dependencies = [
13-
"getstream[webrtc]",
1413
"cartesia>=2.0.5",
14+
"getstream[webrtc]",
1515
]
1616

1717
[project.optional-dependencies]
@@ -20,5 +20,8 @@ test = [
2020
"pytest-asyncio>=0.18.0",
2121
]
2222

23+
[tool.hatch.build.targets.wheel]
24+
packages = ["src/getstream_cartesia"]
25+
2326
[tool.uv.sources]
2427
getstream = { workspace = true }

0 commit comments

Comments
 (0)