Skip to content

A serverless React Native (Expo)-based translation app that uses the Gemini 2.0 exp 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.

License

Notifications You must be signed in to change notification settings

duruipeng/voice-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to your translation app 👋

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.

Features

  • Speech-to-text transcription.
  • Translate text to English, Japanese, and Chinese using Gemini 2.0 exp.
  • Text-to-speech audio playback.

Get started

  1. Install dependencies

    npm install
  2. Start the app

     npm start
  3. Select 'w' to launch in web mode or select 'a' to launch in android mode or select 'i' to launch in iOS mode.

Demo

To help you experience the application, I have provided the entire application on the blog below:

  • Demo: Enter the blog and click "语言翻译" to try.

About

A serverless React Native (Expo)-based translation app that uses the Gemini 2.0 exp 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published