# bodhan-ai/bodhan-ai-cookbook architecture

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

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

## Overview

Bodhan AI Cookbook is a collection of API tutorials, integrations, and example applications—not a runtime service. Its principal workflow is a developer running a recipe with an API key, sending a capability-specific request to Bodhan, and using the result in a tutorial or project. The README documents the Voice Notice Translator’s transcription, five-language translation, and spoken-output stages. Notebook internals and the Android app’s runtime wiring were not sampled, so their internal calls are not inferred.

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

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tutorials["API Tutorials"]
  node_stt["Speech to Text"]
  node_tts["Text to Speech"]
  node_translate["Translation<br/>[translate.ipynb]"]
  node_transliterate["Transliteration"]
  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 App"]
  node_template["Recipe Template"]
end

subgraph group_integrations["SDK Integrations"]
  node_openai["OpenAI SDK Guide<br/>[openai_sdk.ipynb]"]
end

subgraph group_shared["Shared Inputs"]
  node_sample_audio["Sample Audio<br/>[sample_hindi.wav]"]
end

node_developer(("Developer"))
node_bodhan_api{{"Bodhan AI API"}}

node_developer -->|"runs tutorial"| node_stt
node_developer -->|"runs tutorial"| node_tts
node_developer -->|"runs tutorial"| node_translate
node_developer -->|"runs tutorial"| node_transliterate
node_developer -->|"runs tutorial"| node_ocr
node_developer -->|"runs project"| node_voice_project
node_developer -->|"uses guide"| node_openai
node_stt -->|"requests transcription"| node_bodhan_api
node_tts -->|"requests speech"| node_bodhan_api
node_translate -->|"requests translation"| node_bodhan_api
node_transliterate -->|"requests transliteration"| node_bodhan_api
node_ocr -->|"requests OCR"| node_bodhan_api
node_voice_project -->|"uses API"| node_bodhan_api
node_voice_project -->|"transcribes speech"| node_stt
node_voice_project -->|"translates announcement"| node_translate
node_voice_project -->|"reads translations"| node_tts
node_openai -->|"uses compatible routes"| node_bodhan_api
node_stt -.->|"uses sample input"| node_sample_audio

click node_stt "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/speech-to-text/speech_to_text.ipynb"
click node_tts "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/text-to-speech/text_to_speech.ipynb"
click node_translate "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/translate/translate.ipynb"
click node_transliterate "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/transliterate/transliterate.ipynb"
click node_ocr "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/document-ocr/document_ocr.ipynb"
click node_voice_project "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/examples/voice_notice_translator/voice_notice_translator.ipynb"
click node_android_app "https://github.com/bodhan-ai/bodhan-ai-cookbook/tree/main/examples/AndroidSpeak/app/src/main/java/ai/bodhan/saathi"
click node_template "https://github.com/bodhan-ai/bodhan-ai-cookbook/tree/main/examples/TEMPLATE"
click node_openai "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/integrations/openai_sdk/openai_sdk.ipynb"
click node_sample_audio "https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/sample_data/sample_hindi.wav"

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_tts,node_translate,node_transliterate,node_ocr toneBlue
class node_voice_project,node_android_app,node_template toneAmber
class node_openai,node_bodhan_api toneMint
class node_sample_audio toneRose
class node_developer toneIndigo
```

## Components

### API Tutorials

- [Speech to Text](https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/speech-to-text/speech_to_text.ipynb): `getting-started/speech-to-text/speech_to_text.ipynb`
- [Text to Speech](https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/text-to-speech/text_to_speech.ipynb): `getting-started/text-to-speech/text_to_speech.ipynb`
- [Translation](https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/translate/translate.ipynb): `getting-started/translate/translate.ipynb`
- [Transliteration](https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/getting-started/transliterate/transliterate.ipynb): `getting-started/transliterate/transliterate.ipynb`
- [Document OCR](https://github.com/bodhan-ai/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/bodhan-ai/bodhan-ai-cookbook/blob/main/examples/voice_notice_translator/voice_notice_translator.ipynb): `examples/voice_notice_translator/voice_notice_translator.ipynb`
- [Android Speak App](https://github.com/bodhan-ai/bodhan-ai-cookbook/tree/main/examples/AndroidSpeak/app/src/main/java/ai/bodhan/saathi): `examples/AndroidSpeak/app/src/main/java/ai/bodhan/saathi`
- [Recipe Template](https://github.com/bodhan-ai/bodhan-ai-cookbook/tree/main/examples/TEMPLATE): `examples/TEMPLATE`

### SDK Integrations

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

### Shared Inputs

- [Sample Audio](https://github.com/bodhan-ai/bodhan-ai-cookbook/blob/main/sample_data/sample_hindi.wav): `sample_data/sample_hindi.wav`

### Other components

- **Developer**
- **Bodhan AI API**

## Connections

- Developer → Speech to Text: runs tutorial (evidence: `README.md`)
- Developer → Text to Speech: runs tutorial (evidence: `README.md`)
- Developer → Translation: runs tutorial (evidence: `README.md`)
- Developer → Transliteration: runs tutorial (evidence: `README.md`)
- Developer → Document OCR: runs tutorial (evidence: `README.md`)
- Developer → Voice Notice Translator: runs project (evidence: `README.md`)
- Developer → OpenAI SDK Guide: uses guide (evidence: `README.md`)
- Speech to Text → Bodhan AI API: requests transcription (evidence: `README.md`)
- Text to Speech → Bodhan AI API: requests speech (evidence: `README.md`)
- Translation → Bodhan AI API: requests translation (evidence: `README.md`)
- Transliteration → Bodhan AI API: requests transliteration (evidence: `README.md`)
- Document OCR → Bodhan AI API: requests OCR (evidence: `README.md`)
- Voice Notice Translator → Bodhan AI API: uses API (evidence: `README.md`)
- Voice Notice Translator → Speech to Text: transcribes speech (evidence: `README.md`)
- Voice Notice Translator → Translation: translates announcement (evidence: `README.md`)
- Voice Notice Translator → Text to Speech: reads translations (evidence: `README.md`)
- OpenAI SDK Guide → Bodhan AI API: uses compatible routes (evidence: `README.md`)
- Speech to Text → Sample Audio: uses sample input
