Resource:TextSpeech: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 39: Line 39:
{| class="wikitable" border="0"
{| class="wikitable" border="0"
|-
|-
|width="80pt"|<syntaxhighlight lang="lua">int</syntaxhighlight>
|width="80pt"|<syntaxhighlight lang="lua">boolean</syntaxhighlight>
|width="110pt"|'''speak'''
|width="110pt"|'''speak'''
|<syntaxhighlight lang="lua">string text, string language, element triggerFor</syntaxhighlight>
|<syntaxhighlight lang="lua">string text, string language, element triggerFor</syntaxhighlight>
Line 49: Line 49:
{| class="wikitable" border="0"
{| class="wikitable" border="0"
|-
|-
|width="80pt"|<syntaxhighlight lang="lua">int</syntaxhighlight>
|width="80pt"|<syntaxhighlight lang="lua">element</syntaxhighlight>
|width="110pt"|'''speak'''
|width="110pt"|'''speak'''
|<syntaxhighlight lang="lua">string text, string language</syntaxhighlight>
|<syntaxhighlight lang="lua">string text, string language</syntaxhighlight>
|-
|-
|width="80pt"|<syntaxhighlight lang="lua">element</syntaxhighlight>
|width="110pt"|'''speak3D'''
|<syntaxhighlight lang="lua">string text, string language, float x, float y, float z</syntaxhighlight>
|-
|-
|}
|}

Latest revision as of 01:18, 19 February 2012

TextSpeech gives you the ability to get spoken text by Google's TextToSpeech.

Events

Note: You may have to add the events in your script using addEvent() if you want to use them.

Server

Name Source Parameters
onSpeech triggerFor
string text, string language

Client

onClientSpeech root
string text, string language

Exported functions

Server

boolean
speak
string text, string language, element triggerFor

Client

element
speak
string text, string language
element
speak3D
string text, string language, float x, float y, float z