# buriburisuri/speech-to-text-wavenet architecture

> Architecture diagram of the GitHub repository buriburisuri/speech-to-text-wavenet, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/buriburisuri/speech-to-text-wavenet
- Repository: https://github.com/buriburisuri/speech-to-text-wavenet

## Overview

This repository is an end-to-end English speech-recognition system: it prepares speech corpora as MFCC features and character labels, trains a dilated-convolution model with CTC loss, evaluates checkpoints, and transcribes individual audio files. The graph preserves preprocessing, batching, model, training/evaluation, and recognition as distinct stages. Source excerpts show the main calls and data transfers; evaluation behavior and checkpoint outputs are additionally supported by the README.

Main entry points: [`recognize.py`](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/recognize.py) (Audio recognition), [`preprocess.py`](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/preprocess.py) (Feature preprocessing), [`train.py`](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/train.py) (CTC training), [`data.py`](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/data.py) (Corpus batching)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Corpus preparation"]
  node_preprocess["Feature preprocessing<br/>[preprocess.py]"]
  node_features["MFCC and labels"]
end

subgraph group_input["Data pipeline"]
  node_corpus_loader["Corpus batching<br/>[data.py]"]
end

subgraph group_learning["Model and training"]
  node_model["Dilated WaveNet<br/>[model.py]"]
  node_trainer["CTC training<br/>[train.py]"]
  node_checkpoints["Model checkpoints"]
end

subgraph group_inference["Evaluation and recognition"]
  node_evaluator["Checkpoint evaluation<br/>[test.py]"]
  node_recognizer["Audio recognition<br/>[recognize.py]"]
  node_transcript["Text transcript"]
end

node_corpora(("Speech corpora"))
node_user(("Speech user"))

node_corpora -->|"provides audio"| node_preprocess
node_preprocess -->|"encodes labels"| node_corpus_loader
node_preprocess -->|"writes features"| node_features
node_features -->|"loads batches"| node_corpus_loader
node_corpus_loader -->|"supplies batches"| node_trainer
node_trainer -->|"computes logits"| node_model
node_trainer -->|"saves checkpoints"| node_checkpoints
node_checkpoints -.->|"evaluates loss"| node_evaluator
node_user -->|"provides audio"| node_recognizer
node_recognizer -->|"computes logits"| node_model
node_recognizer -->|"restores parameters"| node_checkpoints
node_recognizer -->|"prints text"| node_transcript

click node_preprocess "https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/preprocess.py"
click node_corpus_loader "https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/data.py"
click node_model "https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/model.py"
click node_trainer "https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/train.py"
click node_evaluator "https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/test.py"
click node_recognizer "https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/recognize.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_preprocess,node_features,node_user toneBlue
class node_corpus_loader toneAmber
class node_model,node_trainer,node_checkpoints toneMint
class node_evaluator,node_recognizer,node_transcript toneRose
class node_corpora toneIndigo
```

## Components

### Corpus preparation

- [Feature preprocessing](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/preprocess.py): `preprocess.py`
- **MFCC and labels**

### Data pipeline

- [Corpus batching](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/data.py): `data.py`

### Model and training

- [Dilated WaveNet](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/model.py): `model.py`
- [CTC training](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/train.py): `train.py`
- **Model checkpoints**

### Evaluation and recognition

- [Checkpoint evaluation](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/test.py): `test.py`
- [Audio recognition](https://github.com/buriburisuri/speech-to-text-wavenet/blob/master/recognize.py): `recognize.py`
- **Text transcript**

### Other components

- **Speech corpora**
- **Speech user**

## Connections

- Speech corpora → Feature preprocessing: provides audio (evidence: `README.md`)
- Feature preprocessing → Corpus batching: encodes labels (evidence: `preprocess.py`)
- Feature preprocessing → MFCC and labels: writes features (evidence: `preprocess.py`)
- MFCC and labels → Corpus batching: loads batches (evidence: `data.py`)
- Corpus batching → CTC training: supplies batches (evidence: `train.py`)
- CTC training → Dilated WaveNet: computes logits (evidence: `train.py`)
- CTC training → Model checkpoints: saves checkpoints (evidence: `README.md`)
- Model checkpoints → Checkpoint evaluation: evaluates loss
- Speech user → Audio recognition: provides audio (evidence: `README.md`)
- Audio recognition → Dilated WaveNet: computes logits (evidence: `recognize.py`)
- Audio recognition → Model checkpoints: restores parameters (evidence: `recognize.py`)
- Audio recognition → Text transcript: prints text (evidence: `recognize.py`)
