Skip to content

How to write a TTS plugin

bianchins edited this page May 16, 2015 · 3 revisions

It's very simple. Create a file named Yourplugin_tts.php inside the Speakers folder with the content:

namespace JarvisPHP\Speakers;

class Yourplugin_tts {
    
    public static function speak($sentence) {
        //Everything you want: exec a TTS application
    }
    
}
Clone this wiki locally