Arabic End-of-Utterance detection plugin for LiveKit Agents - Saudi dialect optimized
Project description
Arabic End-of-Utterance Plugin for LiveKit Agents
This plugin provides Arabic end-of-utterance (EOU) detection for LiveKit Agents, optimized for Saudi Arabic dialect.
Installation
pip install saudi-dialect-eou
Usage
from livekit.agents import AgentSession
from saudi_dialect_eou import ArabicEOUModel
from livekit.plugins import deepgram, silero
session = AgentSession(
turn_detection=ArabicEOUModel(),
vad=silero.VAD.load(),
stt=deepgram.STT(language="ar"),
# ... other plugins
)
Download Model Files
Before running your agent, download the model files:
python your_agent.py download-files
Configuration
ArabicEOUModel(
model_path="hams-ai/arabic-turn-detector", # HuggingFace model path
unlikely_threshold=0.3, # Threshold for incomplete detection
device="cuda", # or "cpu"
)
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
model_path |
str | "hams-ai/arabic-turn-detector" |
HuggingFace model path |
unlikely_threshold |
float | 0.3 |
Probability below which user is still speaking |
device |
str | None |
Device for inference (auto-detected if None) |
How It Works
The model takes conversation context with [SEP] tokens and predicts:
- 1 (complete): User has finished speaking → Agent should respond
- 0 (incomplete): User is still speaking → Wait for more input
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saudi_dialect_eou-0.1.0.tar.gz.
File metadata
- Download URL: saudi_dialect_eou-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4526e4efb3a8d29cc1c1f70415ab3842e9f78187a3b6952fc8516850175d78ef
|
|
| MD5 |
7a2dfc15c568a1d3aad02ac12a416de8
|
|
| BLAKE2b-256 |
fd71849f94e0aea4ec7d47a2f840e55d5d436961bde6c2d878fe2d5a31545633
|
File details
Details for the file saudi_dialect_eou-0.1.0-py3-none-any.whl.
File metadata
- Download URL: saudi_dialect_eou-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb8b8487abc26f8392630e42a581343a17b78064b0ad20fb80759a3254c4947a
|
|
| MD5 |
064e25d462f6daf580c50e1a88aff648
|
|
| BLAKE2b-256 |
7ea30485f37da8a68e9ad8a36dcd3da5e95cf1802d5737cc979a000e9cb84944
|