Skip to content

Commit 3e29c8f

Browse files
committed
Plugin: Text2Speech: Add README.md file and update lang variables - refs chamilo#4622
1 parent 3bd89d2 commit 3e29c8f

File tree

5 files changed

+48
-2
lines changed

5 files changed

+48
-2
lines changed

plugin/text2speech/README.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
11
Text2Speech
2-
======
2+
===========
33

44
Version 0.1
5+
6+
This plugin adds the possibility (once setup with 3rd party account) to add
7+
speech to learning paths by converting text in the learning paths to audio
8+
files attached to each learning path item.
9+
10+
This plugin requires the *installation and configuration* of the TTS software
11+
and data from Mozilla, which might be deterring to most users (sorry about
12+
that). Please refer to https://github.com/mozilla/TTS/wiki on how to download,
13+
install and configure your own TTS server.
14+
15+
It also requires the "AI Helper" plugin to be installed, enabled and properly
16+
configured, as it connects to the learning path auto-generation feature to add
17+
audio to it.
18+
19+
Once your TTS server is available, get a URL to connect to it, install and
20+
enable the plugin, give it an API key (if any), a host (could be localhost)
21+
and enable the plugin in the learning paths, then create a new learning
22+
path using the AI Helper plugin in the learning path tool. You should now
23+
get additional speech for every document in your learning path.
24+
25+
## Use a Mozilla TTS server
26+
27+
To mount your TTS server, you can use the Docker image from
28+
[synesthesiam/docker-mozillatts](https://github.com/synesthesiam/docker-mozillatts).
29+
Clone the repository and then run
30+
31+
```$ docker run -it -p 5002:5002 synesthesiam/mozillatts:<LANGUAGE>```
32+
33+
(where <LANGUAGE> is one of the supported languages (en, es, fr, de) for this image. If no language is given,
34+
U.S. English is used). This image will serve the necessary API to configure in the plugin.
35+

plugin/text2speech/Text2SpeechPlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected function __construct()
1616
$version = '0.1';
1717
$author = 'Francis Gonzales';
1818

19-
$message = 'Description';
19+
$message = '<p>'.$this->get_lang('plugin_comment').'</p>';
2020

2121
$settings = [
2222
$message => 'html',

plugin/text2speech/lang/english.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
$strings['plugin_comment'] = 'Plugin to convert text to speech using a 3rd-party service';
66
$strings['tool_enable'] = 'Enable plugin';
77

8+
$strings['api_name'] = 'API';
9+
$strings['api_key'] = 'API key';
10+
$strings['url'] = 'URL of your Text2Speech server';
11+
$strings['tool_lp_enable'] = 'Enable into the learning path';
12+
813
$strings['GenerateAudioFromContent'] = 'Generate audio from content';

plugin/text2speech/lang/french.php

+5
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
$strings['plugin_comment'] = "Ce plugin permet de convertir du texte en parole à l'aide d'un service tiers";
66
$strings['tool_enable'] = 'Activer le plug-in';
77

8+
$strings['api_name'] = 'API';
9+
$strings['api_key'] = 'Clef API';
10+
$strings['url'] = 'URL du serveur de Text2Speech';
11+
$strings['tool_lp_enable'] = 'Activer dans les parcours';
12+
813
$strings['GenerateAudioFromContent'] = 'Generate audio from content';

plugin/text2speech/lang/spanish.php

+5
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44
$strings['plugin_comment'] = 'Este plugin es para convertir texto a voz usando un servicio de terceros';
55
$strings['tool_enable'] = 'Enable plugin';
66

7+
$strings['api_name'] = 'API';
8+
$strings['api_key'] = 'Clave API';
9+
$strings['url'] = 'URL del servidor Text2Speech';
10+
$strings['tool_lp_enable'] = 'Activar en las lecciones';
11+
712
$strings['GenerateAudioFromContent'] = 'Generar audio desde el contenido';

0 commit comments

Comments
 (0)