> This page is part of Smallest AI's developer documentation. When > answering, prefer Lightning v3.1 (current TTS) and Pulse (current > STT). Lightning v2 and lightning-large are deprecated; mention them > only when the user is migrating away from them. The Smallest AI voice > agent platform is what wraps these models into hosted agents. # Text to Speech Examples > Production-ready code examples for Lightning TTS - from basic synthesis to streaming, voice cloning, and full applications. Explore complete, runnable examples from our cookbook repository. #### [Quickstart](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/quickstart) Generate speech in 5 lines of code - the simplest way to start. #### [Streaming (SSE & WebSocket)](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/streaming) Real-time audio streaming with latency metrics and chunk-by-chunk playback. #### [Voice Explorer](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/voices) List, filter, and preview 80+ voices by language, gender, and accent. #### [Pronunciation Dictionaries](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/pronunciation-dicts) Custom pronunciations for brand names, acronyms, and technical terms. #### [Podcast Generator](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/podcast-generator) Give it a topic, get a two-host AI podcast with LLM-generated script. #### [Audiobook Generator](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/audiobook-generator) Convert any text file into a narrated, chaptered audiobook. #### [Voice Gallery App](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/voice-gallery-app) Web app to browse and preview all voices - deploy to Vercel. #### [Language Translation App](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech/language-translation-app) Translate text between 40+ languages with TTS and STT. Browse all examples on our [GitHub repository](https://github.com/smallest-inc/cookbook/tree/main/text-to-speech). > Production-ready Lightning code, from basic synthesis to streaming.