# bhargavramanamarchi/sentinel-voice-ai-murf-ai architecture

> Architecture diagram of the GitHub repository bhargavramanamarchi/sentinel-voice-ai-murf-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai
- Repository: https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai

## Overview

Sentinel Voice AI is a Gradio assistant that accepts speech or typed scam concerns and returns a safety tip, spoken response, and escape score. Its main workflow transcribes audio when needed, asks Gemini to analyze the situation, parses the tip and score, generates speech with Murf, and downloads the resulting audio for display. The implementation is concentrated in app.py; README capabilities and the excerpt show the UI and service integrations. The diagram does not imply separate unsampled subsystems.

Main entry points: [`app.py`](https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py) (sentinel_logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_dashboard["Gradio dashboard<br/>[app.py]"]
  node_workflow["sentinel_logic<br/>[app.py]"]
end

subgraph group_analysis["Scam analysis"]
  node_transcription["Audio transcription<br/>[app.py]"]
  node_speech_service["Google speech recognition"]
  node_gemini["Gemini analysis"]
  node_score["Tip and score parsing<br/>[app.py]"]
end

subgraph group_voice["Voice response"]
  node_murf["Murf voice generation"]
  node_audio_fetch["Audio download<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"enters input"| node_dashboard
node_dashboard -->|"submits input"| node_workflow
node_workflow -->|"transcribes audio"| node_transcription
node_transcription -->|"recognizes speech"| node_speech_service
node_workflow -->|"requests analysis"| node_gemini
node_workflow -->|"parses response"| node_score
node_workflow -->|"generates speech"| node_murf
node_workflow -->|"downloads audio"| node_audio_fetch
node_workflow -->|"returns results"| node_dashboard
node_dashboard -->|"presents results"| node_user

click node_dashboard "https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py"
click node_workflow "https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py"
click node_transcription "https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py"
click node_score "https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py"
click node_audio_fetch "https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.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_dashboard,node_workflow,node_user toneBlue
class node_transcription,node_speech_service,node_gemini,node_score toneAmber
class node_murf,node_audio_fetch toneMint
```

## Components

### User interaction

- [Gradio dashboard](https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py): `app.py`
- [sentinel_logic](https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py): `app.py`

### Scam analysis

- [Audio transcription](https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py): `app.py`
- **Google speech recognition**
- **Gemini analysis**
- [Tip and score parsing](https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py): `app.py`

### Voice response

- **Murf voice generation**
- [Audio download](https://github.com/bhargavramanamarchi/sentinel-voice-ai-murf-ai/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Gradio dashboard: enters input (evidence: `README.md`)
- Gradio dashboard → sentinel_logic: submits input (evidence: `app.py`)
- sentinel_logic → Audio transcription: transcribes audio (evidence: `app.py`)
- Audio transcription → Google speech recognition: recognizes speech (evidence: `app.py`)
- sentinel_logic → Gemini analysis: requests analysis (evidence: `app.py`)
- sentinel_logic → Tip and score parsing: parses response (evidence: `app.py`)
- sentinel_logic → Murf voice generation: generates speech (evidence: `app.py`)
- sentinel_logic → Audio download: downloads audio (evidence: `app.py`)
- sentinel_logic → Gradio dashboard: returns results (evidence: `app.py`)
- Gradio dashboard → User: presents results (evidence: `README.md`)
