# kanishk-k-u/gender-recognition-using-matlab architecture

> Architecture diagram of the GitHub repository kanishk-k-u/gender-recognition-using-matlab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kanishk-k-u/gender-recognition-using-matlab
- Repository: https://github.com/kanishk-k-u/gender-recognition-using-matlab

## Overview

This MATLAB project recognizes voice gender through two documented approaches: a GUI workflow that estimates pitch and compares it with 165 Hz, and a Simulink workflow using audio input and energy-based classification. The README also describes an FFT-to-power-spectrum feature path for energy thresholding. Source excerpts were unavailable, so relationships are limited to those documented in the README; file-to-capability mappings are based on the filenames and tree.

Main entry points: [`Male_female.slx`](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_female.slx) (Simulink model), [`gender_recognition_app.mlapp`](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/gender_recognition_app.mlapp) (Recognition app), [`Male_Female_inbuilt_pitch.m`](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_inbuilt_pitch.m) (Built-in pitch), [`Male_Female_Voice Recognizer.m`](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_Voice%20Recognizer.m) (FFT features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_gui["Recognition app"]
end

subgraph group_pitch["Pitch method"]
  node_pitch_impl["Built-in pitch"]
  node_pitch_result["165 Hz decision"]
end

subgraph group_energy["Energy method"]
  node_simulink["Simulink model<br/>[Male_female.slx]"]
  node_audio_input["Audio input<br/>[Male_female.slx]"]
  node_fft["FFT features"]
  node_energy_decision["Energy threshold"]
end

node_speaker(("User"))
node_examples["Sample voices"]

node_speaker -->|"submits voice"| node_gui
node_gui -->|"uses pitch method"| node_pitch_impl
node_pitch_impl -->|"compares frequency"| node_pitch_result
node_speaker -->|"provides voice"| node_simulink
node_simulink -->|"reads audio"| node_audio_input
node_audio_input -->|"feeds samples"| node_fft
node_fft -->|"estimates energy"| node_energy_decision
node_examples -.->|"sample input"| node_simulink

click node_gui "https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/gender_recognition_app.mlapp"
click node_pitch_impl "https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_inbuilt_pitch.m"
click node_pitch_result "https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_inbuilt_pitch.m"
click node_simulink "https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_female.slx"
click node_audio_input "https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_female.slx"
click node_fft "https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_Voice%20Recognizer.m"
click node_energy_decision "https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_Voice%20Recognizer.m"
click node_examples "https://github.com/kanishk-k-u/gender-recognition-using-matlab/tree/master/sample"

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_gui,node_speaker toneBlue
class node_pitch_impl,node_pitch_result toneAmber
class node_simulink,node_audio_input,node_fft,node_energy_decision toneMint
class node_examples toneTeal
```

## Components

### User interface

- [Recognition app](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/gender_recognition_app.mlapp): `gender_recognition_app.mlapp`

### Pitch method

- [Built-in pitch](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_inbuilt_pitch.m): `Male_Female_inbuilt_pitch.m`
- [165 Hz decision](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_inbuilt_pitch.m): `Male_Female_inbuilt_pitch.m`

### Energy method

- [Simulink model](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_female.slx): `Male_female.slx`
- [Audio input](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_female.slx): `Male_female.slx`
- [FFT features](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_Voice%20Recognizer.m): `Male_Female_Voice Recognizer.m`
- [Energy threshold](https://github.com/kanishk-k-u/gender-recognition-using-matlab/blob/master/Male_Female_Voice%20Recognizer.m): `Male_Female_Voice Recognizer.m`

### Other components

- **User**
- [Sample voices](https://github.com/kanishk-k-u/gender-recognition-using-matlab/tree/master/sample): `sample`

## Connections

- User → Recognition app: submits voice (evidence: `README.md`)
- Recognition app → Built-in pitch: uses pitch method (evidence: `README.md`)
- Built-in pitch → 165 Hz decision: compares frequency (evidence: `README.md`)
- User → Simulink model: provides voice (evidence: `README.md`)
- Simulink model → Audio input: reads audio (evidence: `README.md`)
- Audio input → FFT features: feeds samples (evidence: `README.md`)
- FFT features → Energy threshold: estimates energy (evidence: `README.md`)
- Sample voices → Simulink model: sample input
