Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 681 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 681 Bytes

Cordova Mosalingua Text-to-Speech Plugin

Platforms

iOS 7+

Installation

cordova plugin add cordova-mosalingua-plugin-tts

Usage

// make sure your the code gets executed only after `deviceready`.

    // basic usage
    TTS
        .speak('hello, world!',function () {
            alert('success');
        }, function (error) {
            alert(error);
        });

    // or with more options
    TTS
        .speak('hello, world!', {locale: 'en-GB',rate: 0.75, volume: 1.0},
            function () {
            alert('success');
        }, function (error) {
            alert(error);
        });