This is a serverless React Native (Expo)-based translation app that uses the Gemini 2.0 experimental model with Google Cloud. It allows you to create universal native apps for Android, iOS, and the web using JavaScript and React. It utilizes three APIs: the Generative Language API, Cloud Speech-to-Text API, and Cloud Text-to-Speech API. You can enable these APIs on Google Cloud.
- Speech-to-text transcription.
- Translate text to English, Japanese, and Chinese using Gemini 2.0 exp.
- Text-to-speech audio playback.
-
Install dependencies
npm install
-
Start the app
npm start
-
Select 'w' to launch in web mode or select 'a' to launch in android mode or select 'i' to launch in iOS mode.
To help you experience the application, I have provided the entire application on the blog below:
- Demo: Enter the blog and click "语言翻译" to try.