GithubHelp home page GithubHelp logo

kuber144 / melotts-and-gemini Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

Demo of using Melotts with Gemini

Python 100.00%
api gemini-api gemini-pro google-gemini-pro multilingual text-to-speech tts melotts

melotts-and-gemini's Introduction

Melotts and Gemini

This is a demo showing how Melotts and Gemini can be used together to create a chatbot that talks to you.

MeloTTS is a high-quality multi-lingual text-to-speech library by MyShell.ai. You can read more about it here.

In this demo, I used melotts to convert the response recieved from Google's Gemini API to convert the response into an audio file and then used playsound to play the file to make it seem as though the LLM is talking to us.

The model of Melotts was installed locally on my machine and was running locally. (See installation instructions here) Google Gemini was called using the code provided in gemini_main.py file. It waits for the text to be entered by the user and creates a chat with the LLM model. As soon as a response is recieved, it calls the melo_api.py file and function in it to convert the text to speech.

Melotts is a fast tts model and has several configuration options and the user can choose them and modify the code as needed. (As this is only a demonstration more information about the options can be found here)

A video showing how the model is running

2024-03-07.19-31-36.mp4

This demo can be taken further by using the nodejs implimentation of Gemini to further improve the functionality.

melotts-and-gemini's People

Contributors

kuber144 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.