# burntcookiedough/bodhan-ai-cookbook architecture

> Architecture diagram of the GitHub repository burntcookiedough/bodhan-ai-cookbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/burntcookiedough/bodhan-ai-cookbook
- Repository: https://github.com/burntcookiedough/bodhan-ai-cookbook

## Overview

Bodhan AI Cookbook is a collection of tutorials, integrations, and complete example projects for using Bodhan’s HTTP API. The principal workflow is to choose a recipe, provide an API key, run its notebook or app, and send requests to Bodhan; the tutorials cover speech transcription, translation, transliteration, speech synthesis, and document OCR. The Voice Notice Translator combines transcription, five-language translation, and spoken output. Relationships below rely on README statements; notebook and app internals were not sampled, so finer implementation links are omitted.

Main entry points: [`getting-started/speech-to-text/speech_to_text.ipynb`](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/speech-to-text/speech_to_text.ipynb) (Speech to text), [`getting-started/translate/translate.ipynb`](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/translate/translate.ipynb) (Translation), [`getting-started/transliterate/transliterate.ipynb`](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/transliterate/transliterate.ipynb) (Transliteration), [`getting-started/text-to-speech/text_to_speech.ipynb`](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/text-to-speech/text_to_speech.ipynb) (Text to speech)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tutorials["API tutorials"]
  node_stt["Speech to text"]
  node_translate["Translation<br/>[translate.ipynb]"]
  node_transliterate["Transliteration"]
  node_tts["Text to speech"]
  node_ocr["Document OCR<br/>[document_ocr.ipynb]"]
end

subgraph group_projects["Example projects"]
  node_voice_project["Voice Notice Translator"]
  node_android_app["Android Speak<br/>[MainActivity.kt]"]
end

subgraph group_integrations["SDK integrations"]
  node_openai_guide["OpenAI SDK guide<br/>[openai_sdk.ipynb]"]
end

node_developer(("Recipe user"))
node_bodhan_api{{"Bodhan API"}}

node_developer -->|"runs recipe"| node_stt
node_developer -->|"runs recipe"| node_translate
node_developer -->|"runs recipe"| node_transliterate
node_developer -->|"runs recipe"| node_tts
node_developer -->|"runs recipe"| node_ocr
node_developer -->|"runs project"| node_voice_project
node_developer -->|"uses guide"| node_openai_guide
node_stt -->|"calls API"| node_bodhan_api
node_translate -->|"calls API"| node_bodhan_api
node_transliterate -->|"calls API"| node_bodhan_api
node_tts -->|"calls API"| node_bodhan_api
node_ocr -->|"calls API"| node_bodhan_api
node_voice_project -->|"uses API"| node_bodhan_api
node_android_app -.->|"uses API"| node_bodhan_api
node_openai_guide -->|"uses routes"| node_bodhan_api

click node_stt "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/speech-to-text/speech_to_text.ipynb"
click node_translate "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/translate/translate.ipynb"
click node_transliterate "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/transliterate/transliterate.ipynb"
click node_tts "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/text-to-speech/text_to_speech.ipynb"
click node_ocr "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/document-ocr/document_ocr.ipynb"
click node_voice_project "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/examples/voice_notice_translator/voice_notice_translator.ipynb"
click node_android_app "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/examples/AndroidSpeak/app/src/main/java/ai/bodhan/saathi/MainActivity.kt"
click node_openai_guide "https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/integrations/openai_sdk/openai_sdk.ipynb"

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_stt,node_translate,node_transliterate,node_tts,node_ocr,node_developer toneBlue
class node_voice_project,node_android_app toneAmber
class node_openai_guide,node_bodhan_api toneMint
```

## Components

### API tutorials

- [Speech to text](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/speech-to-text/speech_to_text.ipynb): `getting-started/speech-to-text/speech_to_text.ipynb`
- [Translation](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/translate/translate.ipynb): `getting-started/translate/translate.ipynb`
- [Transliteration](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/transliterate/transliterate.ipynb): `getting-started/transliterate/transliterate.ipynb`
- [Text to speech](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/text-to-speech/text_to_speech.ipynb): `getting-started/text-to-speech/text_to_speech.ipynb`
- [Document OCR](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/getting-started/document-ocr/document_ocr.ipynb): `getting-started/document-ocr/document_ocr.ipynb`

### Example projects

- [Voice Notice Translator](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/examples/voice_notice_translator/voice_notice_translator.ipynb): `examples/voice_notice_translator/voice_notice_translator.ipynb`
- [Android Speak](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/examples/AndroidSpeak/app/src/main/java/ai/bodhan/saathi/MainActivity.kt): `examples/AndroidSpeak/app/src/main/java/ai/bodhan/saathi/MainActivity.kt`

### SDK integrations

- [OpenAI SDK guide](https://github.com/burntcookiedough/bodhan-ai-cookbook/blob/main/integrations/openai_sdk/openai_sdk.ipynb): `integrations/openai_sdk/openai_sdk.ipynb`

### Other components

- **Recipe user**
- **Bodhan API**

## Connections

- Recipe user → Speech to text: runs recipe (evidence: `README.md`)
- Recipe user → Translation: runs recipe (evidence: `README.md`)
- Recipe user → Transliteration: runs recipe (evidence: `README.md`)
- Recipe user → Text to speech: runs recipe (evidence: `README.md`)
- Recipe user → Document OCR: runs recipe (evidence: `README.md`)
- Recipe user → Voice Notice Translator: runs project (evidence: `README.md`)
- Recipe user → OpenAI SDK guide: uses guide (evidence: `README.md`)
- Speech to text → Bodhan API: calls API (evidence: `README.md`)
- Translation → Bodhan API: calls API (evidence: `README.md`)
- Transliteration → Bodhan API: calls API (evidence: `README.md`)
- Text to speech → Bodhan API: calls API (evidence: `README.md`)
- Document OCR → Bodhan API: calls API (evidence: `README.md`)
- Voice Notice Translator → Bodhan API: uses API (evidence: `README.md`)
- Android Speak → Bodhan API: uses API
- OpenAI SDK guide → Bodhan API: uses routes (evidence: `README.md`)
