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

https://github.com/unitygamestudio/gemini-translator

A plugin that allows Gemini to be used inside Unity. In this case, Gemini is used as a Translator. Gemini is a free tool and a alternative to ChatGPT paid API.
https://github.com/unitygamestudio/gemini-translator

Last synced: 5 months ago
JSON representation

A plugin that allows Gemini to be used inside Unity. In this case, Gemini is used as a Translator. Gemini is a free tool and a alternative to ChatGPT paid API.

Awesome Lists containing this project

README

          

# Gemini-Translator

A Unity plugin that integrates **Gemini** with **Google Cloud Services** (Text-to-Speech and Speech-to-Text). This plugin enables the creation of a translator that can respond to user voice inputs, and transform them into a desired language. Ideal for traveling.

> **Note**: This package supports **Unity 2022.x** and above.

---

# Installation

To use the **Gemini Unity Translator**, follow these steps:

### Step 1: Install Dependencies

Before importing the Gemini Unity Translator package, you'll need to download and install the following dependencies:

1. **Unity Text-to-Speech using Google Cloud**
- This package provides necessary functions for **Text to Speech**.
- [Download from GitHub](https://github.com/anomalisfree/Unity-Text-to-Speech-using-Google-Cloud)

### Step 2: Import Gemini-Translator Package

Once the dependencies are set up, **open** the example scene inside the package. The scene provides a User Interface with some languages to translate.

You activate the function by pressing the space bar and releasing it. Then, Unity processes the audio through Speech-To-Text. Later, Gemini translates the sentences to the desired language. And finally, Unity process the audio through a Text-To-Speech. Both services of audio processing are done through Google Cloud Services. Therefore, you will need certain API keys from [Google Cloud](https://console.cloud.google.com/apis/).

You also need an API key from [Google AI Studio](https://aistudio.google.com/apikey).

# Setup

Here's a quick guide to setting up the latest release: [Watch the YouTube tutorial](https://www.youtube.com/watch?v=MYUxPMOZRcU&ab_channel=UnityGameStudio)

### Work in Progress ⚙️

This README is a work in progress, and additional information will be added soon. I'll be continuing to refine the documentation. Feel free to check back for the latest changes, and thank you for your patience!

---