Use case · Pipecat
Arabic voice for Pipecat, dropped in.
HakimSTTService and HakimTTSService are official, open-source Pipecat services built and maintained by the Hakim team. Add them to your Pipecat pipeline and your voice agent understands and speaks 15 Arabic dialects plus 30+ other languages, streaming at sub-120 ms first-byte latency.
Three steps to a bilingual pipeline
Install the plugin
Clone github.com/tryHakimAI/hakim-pipecat and install its requirements. Only your Hakim API key is required; there's no other vendor dependency.
Add it to your Pipeline
Instantiate HakimSTTService and HakimTTSService like any other Pipecat service and slot them into your Pipeline([...]) alongside your transport, LLM, and aggregators.
Pick a region, go live
Pin a region (UAE, KSA, Qatar, or Frankfurt) or let the service auto-route to the closest healthy one. Same latency SLA everywhere.
Built the way Pipecat services are supposed to be built
Realtime streaming, not request/response
One persistent WebSocket per session for both STT and TTS. HakimSTTService relies on Pipecat's own VAD to signal end-of-turn, matching how other continuous-streaming Pipecat services (AssemblyAI, Deepgram) are structured.
Interruption handled the Pipecat way
HakimTTSService subclasses InterruptibleTTSService and reconnects on interruption rather than needing a bespoke cancel message, the standard pattern for providers without a mid-utterance cancel frame.
No dependency on an unpublished SDK
The services speak Hakim's public REST/WebSocket API directly over the websockets library Pipecat already depends on. Nothing else to install.
MIT licensed, source available
Read, fork, or extend the services at github.com/tryHakimAI/hakim-pipecat. Built and maintained by the Hakim team, not a third party.
agent.py
A few lines to a bilingual pipeline
from hakim_pipecat import HakimSTTService, HakimTTSService
stt = HakimSTTService(api_key=os.environ["HAKIM_API_KEY"])
tts = HakimTTSService(api_key=os.environ["HAKIM_API_KEY"], voice="your-voice-id")
pipeline = Pipeline([
transport.input(), stt, user_aggregator,
llm, tts, transport.output(), assistant_aggregator,
])Built for these Pipecat pipeline workflows
Customer support voice agents
Front a support line with an agent that understands the caller's actual dialect instead of forcing MSA. Hand off to a human the moment the LLM hits its limits.
Local-audio voice assistants
Build a microphone-in, speaker-out assistant that runs entirely on local audio transport, the same pattern the plugin's own foundational example uses.
Telephony voice agents
Combine with Pipecat's telephony transports and serializers for phone-based Arabic voice agents; the audio side is the same WebSocket pattern regardless of transport.
Multilingual contact centers
One pipeline, 15 Arabic dialects plus 30+ other languages. Language and voice are just constructor arguments, not separate deployments.

