Code Monkey home page Code Monkey logo

festival-tts-arabic-voices-docker's Introduction

festival-tts-arabic-voices-docker

A Docker image for a relatively light-weight full Arabic speech synthesis system

Running the server

  1. Launch the server
$ git clone https://github.com/nawarhalabi/festival-tts-arabic-voices-docker
$ cd festival-tts-arabic-voices-docker
$ docker kill festival
$ docker rm festival
$ docker build -t festival-arabic:latest .
$ docker run -p 8080:8080 -v <wav files dir>:/tts --name festival festival-arabic:latest

This will take about 20 mins to finish. Bare in mind the <wav files dir> will contain the generated the wav files after sending the http request based on certain config below

  1. Configure Apache or any webserver to serve the static file directory <wav files dir> through http://<hostname or ip>/tts/
  2. Use the following JS and HTML as a template for creating a web interface for using the voice:
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<textarea id="input-text" dir="rtl" name="arabic-text" rows="5" placeholder="Please enter Arabic text"></textarea>
<input id="tts-btn-mishkal" type="button" name="synthesise-mishkal" value="Synthesise (Mishkal as diacritiser)">
<input id="tts-btn-shakkala" type="button" name="synthesise-shakkala" value="Synthesise (Shakkala as diacritiser)">
<audio controls="">
       <source id="source" src="" type="audio/wav">
       Browser does not support this
</audio>
<script>
tts_server = 'http://<hostname or ip>/tts/';

$('#tts-btn-mishkal').on('click', function(e) {
        $.getJSON({
                url: 'http://<hostname or ip>:8080/mishkal/synth/url/' + $('#input-text').val(),
                data: '',
                success: function( data ) {
                        $('audio #source').attr('src', tts_server + data['url']);
                        $('audio').get(0).load();
                        $('audio').get(0).play();
                }
        });
});

$('#tts-btn-shakkala').on('click', function(e) {
        $.getJSON({
                url: 'http://<hostname or ip>:8080/shakkala/synth/url/' + $('#input-text').val(),
                data: '',
                success: function( data ) {
                        $('audio #source').attr('src', tts_server + data['url']);
                        $('audio').get(0).load();
                        $('audio').get(0).play();
                }
        });
});
</script>

Accessing the server

festival-tts-arabic-voices-docker's People

Contributors

nawarhalabi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

festival-tts-arabic-voices-docker's Issues

requesting attention for blind people

Could you please compile a festival voice on major oss(windows, linux) for use by tts applications? So we can use them on windows as a sapi5 voice, or compile a version for the festival nvda addon so blind people on windows can use it. Thanks and regards from algeria

The project's requirements

Hello
When I tried to run the project, I encountered errors because some packages are available in keras=2.3.1, while others require higher versions of the framework.
Could you please let me know what the actual requirements are for this project?

docker.sh doesn't work

Hello,

When trying to run the commands in docker.sh on Ubuntu 20.04, first of all the kill and rm commands don't work of course because there is nothing running, but also the docker build command doesn't work and stops at the FROM debian command in the Dockerfile configuration file.

I am very new to docker so I don't understand the source of the problem or either it is something wrong with the docker image itself.

terminal output:

Error response from daemon: Cannot kill container: festival: No such container: festival
Error: No such container: festival
Sending build context to Docker daemon  23.64MB
Step 1/36 : FROM debian
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Unable to find image 'festival-arabic:latest' locally
docker: Error response from daemon: Head https://registry-1.docker.io/v2/library/festival-arabic/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Ffestival-arabic%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

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.