acoustic-lunch-30313
11/21/2025, 12:03 AMreturn AgentSession(
stt=assemblyai.STT(),
llm=openai.LLM(model="gpt-4.1-mini"),
tts=cartesia.TTS(
model="sonic-3", voice="9626c31c-bec5-4cca-baa8-f8ba9e84c8bc"
),
vad=silero.VAD.load(),
turn_detection=MultilingualModel(),
)tall-airline-16756
11/21/2025, 12:03 AMtall-airline-16756
11/21/2025, 12:04 AMassemblyai.STT() and cartesia.TTS() with provider keys, which means you are a direct customer of those vendors and send data to them.
• LiveKit’s BAA covers HIPAA-eligible use only when those models are used via LiveKit Inference (where LiveKit manages the inference provider relationships).
• If you send PHI directly to third-party providers, you must have a BAA with each provider that processes PHI on your behalf.
What you can do next:
• Ask AssemblyAI and Cartesia whether they will sign a BAA and offer HIPAA-compliant processing.
• If they do not, switch to using those models via LiveKit Inference (e.g., assemblyai/universal-streaming, cartesia/sonic-3) so the usage falls under LiveKit’s HIPAA coverage.
Would you like wording to request a BAA from those vendors or steps to switch your code to use LiveKit Inference?
Sources: Cartesia TTS plugin guide | LiveKit docs | Cartesia STT plugin guide | LiveKit Docs | HIPAA Eligible Products and Services | LiveKit | LiveKit | AssemblyAI STT | LiveKit Docsacoustic-lunch-30313
11/21/2025, 12:07 AMtall-airline-16756
11/21/2025, 12:07 AM# Example: LiveKit Inference in Python (async)
from livekit.agents import AgentSession, Agent
async def run_agent(room_name, livekit_api_key, livekit_api_secret):
# Configure models by model-id strings (LiveKit will handle provider access)
session = AgentSession(
stt="assemblyai/universal-streaming:en", # speech-to-text via LiveKit Inference
llm="openai/gpt-4.1-mini", # LLM via LiveKit Inference
tts="cartesia/sonic-3:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc", # TTS via LiveKit Inference
vad="silero-vad", # VAD model identifier
)
agent = Agent(instructions="You are a helpful voice AI assistant.")
# Start the agent in a room (provide your room context as appropriate)
await session.start(room=room_name, agent=agent)
# session runs and handles audio <-> models until stopped
# To stop:
# await session.stop()
Notes:
• Using model strings like "assemblyai/universal-streaming:en" and "cartesia/sonic-3:..." routes inference through LiveKit so the LiveKit BAA covers the sub-processor relationships.
• Replace room_name, and provide your LiveKit auth/context according to your integration (token/credentials) when creating/joining the room in your app.
• Ask if you want a version showing explicit room token generation, sync/async examples, or options for custom parameters to the models. Sources: Building voice agents | LiveKit Docs | Speech-to-text (STT) models | LiveKit Docsacoustic-lunch-30313
11/21/2025, 7:45 PMtall-airline-16756
11/21/2025, 7:45 PM