texttospeech.* — TextToSpeech


Type Library


Overview

The TextToSpeech plugin enables your applications speak various text in various languages. You can control pitch, rate and volume.

Supported platforms: iOS 7+, Android 4.0.3+, tvOS 7+, macOS 10.3+. Some features require Android 4.0+ and Android 5.0+.

The latest version requires Corona 2016.2979 or later.

Syntax

local texttospeech = require('plugin.texttospeech')  

Functions

texttospeech.enableDebug()

texttospeech.init()

texttospeech.getLanguagesAndVoices()

texttospeech.speak()

texttospeech.isSpeaking()

texttospeech.stop()

texttospeech.pause()

texttospeech.continue()

Events

init

getLanguagesAndVoices

onStart

onProgress

onComplete

onPause

onContinue

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

	settings = {
		plugins = {
			['plugin.texttospeech'] = {
				publisherId = 'com.spiralcodestudio'
			}
		}
	}

Sample Project

A sample project can be found here.

https://github.com/Lerg/plugins-sample-texttospeech