# yar-malik/livekit-plugins-voho architecture

> Architecture diagram of the GitHub repository yar-malik/livekit-plugins-voho, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yar-malik/livekit-plugins-voho
- Repository: https://github.com/yar-malik/livekit-plugins-voho

## Overview

Voho is a LiveKit Agents plugin for Arabic and multilingual speech recognition and speech synthesis. The principal workflow connects a caller’s audio through LiveKit to Voho STT, then uses agent-generated text with Voho TTS to return audio. The plugin also supports streaming in both directions, configurable dialects and voices, and private or Saudi-hosted API deployments. Edges follow the excerpts or README; the service is external, and no unsampled implementation details are assumed.

Main entry points: [`livekit/plugins/voho/stt.py`](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/stt.py) (STT), [`livekit/plugins/voho/tts.py`](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/tts.py) (TTS), [`livekit/plugins/voho/__init__.py`](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/__init__.py) (Plugin registration), [`livekit/plugins/voho/models.py`](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/models.py) (Voices and formats)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integration["LiveKit integration"]
  node_agents["LiveKit Agents"]
  node_llm["Agent LLM"]
  node_plugin["Plugin registration<br/>[__init__.py]"]
end

subgraph group_recognition["Speech recognition"]
  node_stt["STT<br/>[stt.py]"]
  node_recognize_stream["Recognition stream<br/>[stt.py]"]
end

subgraph group_synthesis["Speech synthesis"]
  node_tts["TTS<br/>[tts.py]"]
  node_chunked_stream["Chunked synthesis<br/>[tts.py]"]
  node_synthesize_stream["Streaming synthesis<br/>[tts.py]"]
end

subgraph group_shared["Shared support"]
  node_api_config["API config and errors<br/>[_api.py]"]
  node_models["Voices and formats<br/>[models.py]"]
  node_logger["Plugin logger<br/>[log.py]"]
  node_version["Version metadata<br/>[version.py]"]
end

node_caller(("Caller"))
node_api["Voho API"]

node_caller -->|"sends audio"| node_agents
node_agents -->|"recognizes audio"| node_stt
node_stt -->|"creates stream"| node_recognize_stream
node_stt -->|"transcribes audio"| node_api
node_recognize_stream -->|"streams audio"| node_api
node_agents -.->|"requests text"| node_llm
node_llm -.->|"returns text"| node_agents
node_agents -->|"speaks text"| node_tts
node_tts -->|"creates stream"| node_chunked_stream
node_tts -->|"creates stream"| node_synthesize_stream
node_tts -->|"synthesizes speech"| node_api
node_chunked_stream -->|"posts text"| node_api
node_synthesize_stream -->|"streams text"| node_api
node_agents -->|"plays audio"| node_caller
node_plugin -->|"exports"| node_stt
node_plugin -->|"exports"| node_tts
node_plugin -->|"exports"| node_models
node_plugin -->|"imports"| node_version
node_plugin -->|"registers with"| node_logger
node_stt -->|"uses"| node_api_config
node_tts -->|"uses"| node_api_config
node_stt -->|"uses"| node_models
node_tts -->|"uses"| node_models
node_stt -->|"logs events"| node_logger
node_synthesize_stream -->|"logs events"| node_logger

click node_plugin "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/__init__.py"
click node_stt "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/stt.py"
click node_recognize_stream "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/stt.py"
click node_tts "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/tts.py"
click node_chunked_stream "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/tts.py"
click node_synthesize_stream "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/tts.py"
click node_api_config "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/_api.py"
click node_models "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/models.py"
click node_logger "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/log.py"
click node_version "https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/version.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_agents,node_llm,node_plugin toneBlue
class node_stt,node_recognize_stream toneAmber
class node_tts,node_chunked_stream,node_synthesize_stream,node_api toneMint
class node_api_config,node_models,node_logger,node_version toneRose
class node_caller toneIndigo
```

## Components

### LiveKit integration

- **LiveKit Agents**
- **Agent LLM**
- [Plugin registration](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/__init__.py): `livekit/plugins/voho/__init__.py`

### Speech recognition

- [STT](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/stt.py): `livekit/plugins/voho/stt.py`
- [Recognition stream](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/stt.py): `livekit/plugins/voho/stt.py`

### Speech synthesis

- [TTS](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/tts.py): `livekit/plugins/voho/tts.py`
- [Chunked synthesis](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/tts.py): `livekit/plugins/voho/tts.py`
- [Streaming synthesis](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/tts.py): `livekit/plugins/voho/tts.py`

### Shared support

- [API config and errors](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/_api.py): `livekit/plugins/voho/_api.py`
- [Voices and formats](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/models.py): `livekit/plugins/voho/models.py`
- [Plugin logger](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/log.py): `livekit/plugins/voho/log.py`
- [Version metadata](https://github.com/yar-malik/livekit-plugins-voho/blob/main/livekit/plugins/voho/version.py): `livekit/plugins/voho/version.py`

### Other components

- **Caller**
- **Voho API**

## Connections

- Caller → LiveKit Agents: sends audio (evidence: `README.md`)
- LiveKit Agents → STT: recognizes audio (evidence: `README.md`)
- STT → Recognition stream: creates stream (evidence: `livekit/plugins/voho/stt.py`)
- STT → Voho API: transcribes audio (evidence: `README.md`)
- Recognition stream → Voho API: streams audio (evidence: `README.md`)
- LiveKit Agents → Agent LLM: requests text (evidence: `README.md`)
- Agent LLM → LiveKit Agents: returns text (evidence: `README.md`)
- LiveKit Agents → TTS: speaks text (evidence: `README.md`)
- TTS → Chunked synthesis: creates stream (evidence: `livekit/plugins/voho/tts.py`)
- TTS → Streaming synthesis: creates stream (evidence: `livekit/plugins/voho/tts.py`)
- TTS → Voho API: synthesizes speech (evidence: `README.md`)
- Chunked synthesis → Voho API: posts text (evidence: `livekit/plugins/voho/tts.py`)
- Streaming synthesis → Voho API: streams text (evidence: `livekit/plugins/voho/tts.py`)
- LiveKit Agents → Caller: plays audio (evidence: `README.md`)
- Plugin registration → STT: exports (evidence: `livekit/plugins/voho/__init__.py`)
- Plugin registration → TTS: exports (evidence: `livekit/plugins/voho/__init__.py`)
- Plugin registration → Voices and formats: exports (evidence: `livekit/plugins/voho/__init__.py`)
- Plugin registration → Version metadata: imports (evidence: `livekit/plugins/voho/__init__.py`)
- Plugin registration → Plugin logger: registers with (evidence: `livekit/plugins/voho/__init__.py`)
- STT → API config and errors: uses (evidence: `livekit/plugins/voho/stt.py`)
- TTS → API config and errors: uses (evidence: `livekit/plugins/voho/tts.py`)
- STT → Voices and formats: uses (evidence: `livekit/plugins/voho/stt.py`)
- TTS → Voices and formats: uses (evidence: `livekit/plugins/voho/tts.py`)
- STT → Plugin logger: logs events (evidence: `livekit/plugins/voho/stt.py`)
- Streaming synthesis → Plugin logger: logs events (evidence: `livekit/plugins/voho/tts.py`)
