An open API service indexing awesome lists of open source software.

https://github.com/bholmesdev/simple-streaming


https://github.com/bholmesdev/simple-streaming

Last synced: about 1 month ago
JSON representation

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.