https://github.com/bholmesdev/simple-streaming
https://github.com/bholmesdev/simple-streaming
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bholmesdev/simple-streaming
- Owner: bholmesdev
- Created: 2025-05-12T13:50:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-05-21T02:17:30.000Z (9 months ago)
- Last Synced: 2025-05-21T03:28:16.086Z (9 months ago)
- Language: HTML
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple streaming example
This project shows a simple example of websockets to stream audio in real time.
## Technology Stack
* **[Google Gemini Live:](https://ai.google.dev/gemini-api/docs/live)** Used to interpret audio with an LLM and respond like a real conversation.
* **Golang:** A nice simple language for building servers. It's especially good at multi-threaded processing, which is useful for reading and writing messages over a web socket.
## Prerequisites
* Ensure [Go installed on your system.](https://go.dev/doc/install)
* [Create a Google API Key](https://ai.google.dev/gemini-api/docs) to access the Gemini API.
## Getting Started
1. **Set up your Google API Key:**
You need to set the `GOOGLE_API_KEY` environment variable. You can [get a Gemini API key for free](https://ai.google.dev/gemini-api/docs/api-key) and place it in a `.env` file. Follow the `.env.example`.
2. **Run the Development Server:**
```bash
go run server.go
```
The server will start on `http://localhost:8080`. Open in your browser for a simple debug view.
## License
This project is MIT licensed.