Giter VIP home page Giter VIP logo

text_and_speech's Introduction

Text <-> Speech Experiments

Installation

Installation provided for a Linux env. To install on Windows, use the WSL.

Create a venv and install the required modules

alexandre:~$ python3 -m venv venv_Seamless
alexandre:~$ source venv_Seamless/bin/activate
(venv_Seamless) alexandre:~$pip install torchaudio gradio sentencepiece protobuf scipy

For text to speech example:

Other python libs are required

pip install scipy ffmpeg

You might also need ffmepg:

sudo apt update
sudo apt install ffmpeg

Alternative is to install all Python libs using the provided requirement file.

pip install -r requirements.txt

Runnning

Speech to translated text

To run the speech to translated text

python3 Speech_to_translated_text.py

Open a browser and copy paste the link that you get when executing the previous command (likely http://127.0.0.1:7860/)

Then you can use the Gradio user interface to record your speech in any language and then click Submit to generate the translated text into english.

Speech_to_text_with_audio.mp4

Text to speech

Open Text_to_speech.py file and edit the text and the timings

python3 Text_to_speech.py

Then different wav files are generated containing the text.

text_and_speech's People

Contributors

alexandrepoisson 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.