Skip to content

Commit 9874e56

Browse files
committed
Fix example bug
1 parent 73b34da commit 9874e56

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

plugins/inworld/example/inworld_tts_example.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
66
This example creates an agent that uses:
77
- Inworld AI for text-to-speech (TTS)
8-
- GetStream for edge/real-time communication
8+
- Stream for edge/real-time communication
9+
- Deepgram for speech-to-text (STT)
910
- Smart Turn for turn detection
1011
1112
Requirements:
1213
- INWORLD_API_KEY environment variable
1314
- STREAM_API_KEY and STREAM_API_SECRET environment variables
15+
- DEEPGRAM_API_KEY environment variable
1416
"""
1517

1618
import asyncio
@@ -20,7 +22,7 @@
2022

2123
from vision_agents.core import User, Agent, cli
2224
from vision_agents.core.agents import AgentLauncher
23-
from vision_agents.plugins import inworld, getstream, smart_turn, gemini
25+
from vision_agents.plugins import inworld, getstream, smart_turn, gemini, deepgram
2426

2527

2628
logger = logging.getLogger(__name__)
@@ -34,9 +36,10 @@ async def create_agent(**kwargs) -> Agent:
3436
edge=getstream.Edge(),
3537
agent_user=User(name="Friendly AI", id="agent"),
3638
instructions="You're a helpful voice AI assistant. Keep your responses concise and friendly.",
37-
tts=inworld.TTS(), # Uses Inworld AI for text-to-speech
39+
tts=inworld.TTS(),
40+
stt=deepgram.STT(),
3841
llm=gemini.LLM("gemini-2.0-flash"),
39-
turn_detection=smart_turn.TurnDetection(buffer_in_seconds=2.0, confidence_threshold=0.5),
42+
turn_detection=smart_turn.TurnDetection(),
4043
)
4144
return agent
4245

plugins/inworld/example/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ dependencies = [
77
"vision-agents-plugins-inworld",
88
"vision-agents-plugins-getstream",
99
"vision-agents-plugins-smart-turn",
10-
"vision-agents-plugins-gemini",
10+
"vision-agents-plugins-gemini",
11+
"vision-agents-plugins-deepgram",
1112
"python-dotenv",
1213
]
1314

@@ -16,4 +17,5 @@ vision-agents-plugins-inworld = { workspace = true }
1617
vision-agents-plugins-getstream = { workspace = true }
1718
vision-agents-plugins-smart-turn = { workspace = true }
1819
vision-agents-plugins-gemini = { workspace = true }
20+
vision-agents-plugins-deepgram = { workspace = true }
1921

0 commit comments

Comments
 (0)