Project

General

Profile

Template
Text to Speech

Functions

int _CRSpeech (mmachine m)
 _CRSpeech : create speech instance
 
int _DSSpeech (mmachine m)
 _DSSpeech : destroy speech instance
 
int _SetSpeechText (mmachine m)
 _SetSpeechText : Set speech Text
 
int _SetSpeechVolume (mmachine m)
 _SetSpeechVolume : Set speech volume
 
int _GetSpeechVolume (mmachine m)
 _GetSpeechVolume : Get speech volume
 
int _SetSpeechRate (mmachine m)
 _SetSpeechRate : set speech rate
 
int _GetSpeechRate (mmachine m)
 _GetSpeechRate : get speech rate
 
int _PlaySpeech (mmachine m)
 _PlaySpeech : play speech
 
int _PauseSpeech (mmachine m)
 _PauseSpeech : pause speech
 
int _ResumeSpeech (mmachine m)
 _ResumeSpeech : resume speech
 
int _StopSpeech (mmachine m)
 _StopSpeech : Stop speech
 
int _CBSpeechStart (mmachine m)
 n_CBSpeechStart : set callback 'start of speech'
 
int _CBSpeechEnd (mmachine m)
 n_CBSpeechEnd : set callback end of speech
 
int _GetSpeechVoices (mmachine m)
 _GetSpeechVoices : get speech voices
 
int _SetSpeechVoice (mmachine m)
 _SetSpeechVoice : set speech voice
 
int _GetSpeechVoice (mmachine m)
 _GetSpeechVoice : get speech voice
 
int _CBSpeechWord (mmachine m)
 _CBSpeechWord : Set callback on speech word
 
int _CBSpeechText (mmachine m)
 _CBSpeechText : Set callback on speech text
 
int _CBSpeechPhoneme (mmachine m)
 _CBSpeechPhoneme : set callback on speech phoneme
 
int _CBSpeechViseme (mmachine m)
 _CBSpeechViseme : set callback on speech viseme
 

Detailed Description

Scol functions definition

Function Documentation

◆ _CBSpeechEnd()

int _CBSpeechEnd ( mmachine  m)

n_CBSpeechEnd : set callback end of speech

  <b>Prototype:</b> fun [ObjSpeech fun [ObjSpeech u0] u1 u0] ObjSpeech
Parameters
ObjSpeech: speech object
fun[ObjSpeech u0] : callback function
  • ObjSpeech : speech object
  • u0 : user parameter
u0: user parameter
Returns
: the same scol object

Definition at line 705 of file plugin.cpp.

◆ _CBSpeechPhoneme()

int _CBSpeechPhoneme ( mmachine  m)

_CBSpeechPhoneme : set callback on speech phoneme

  <b>Prototype:</b> fun [ObjSpeech fun [ObjSpeech u0 I] u1 u0] ObjSpeech
Parameters
ObjSpeech: speech object
fun[ObjSpeech u0 I] u1 : Callback function
  • ObjSpeech : speech object
  • u0 : user parameter
  • I : phoneme
u0: user parameter
Returns
: the same scol object

Definition at line 1130 of file plugin.cpp.

◆ _CBSpeechStart()

int _CBSpeechStart ( mmachine  m)

n_CBSpeechStart : set callback 'start of speech'

  <b>Prototype:</b> fun [ObjSpeech fun [ObjSpeech u0] u1 u0] ObjSpeech
Parameters
ObjSpeech: speech object
fun[ObjSpeech u0] : callback function
  • ObjSpeech : speech object
  • u0 : user parameter
u0: user parameter
Returns
: the same scol object

Definition at line 686 of file plugin.cpp.

◆ _CBSpeechText()

int _CBSpeechText ( mmachine  m)

_CBSpeechText : Set callback on speech text

  <b>Prototype:</b> fun [ObjSpeech fun [ObjSpeech u0 S] u1 u0] ObjSpeech
Parameters
ObjSpeech: speech object
fun[ObjSpeech u0 S] u1 : Callback function
  • ObjSpeech : speech object
  • u0 : user parameter
  • S : text
u0: user parameter
Returns
: the same scol object

Definition at line 1072 of file plugin.cpp.

◆ _CBSpeechViseme()

int _CBSpeechViseme ( mmachine  m)

_CBSpeechViseme : set callback on speech viseme

  <b>Prototype:</b> fun [ObjSpeech fun [ObjSpeech u0 I] u1 u0] ObjSpeech
Parameters
ObjSpeech: speech object
fun[ObjSpeech u0 I] u1 : Callback function
  • ObjSpeech : speech object
  • u0 : user parameter
  • I : viseme
u0: user parameter
Returns
: the same scol object

Definition at line 1181 of file plugin.cpp.

◆ _CBSpeechWord()

int _CBSpeechWord ( mmachine  m)

_CBSpeechWord : Set callback on speech word

  <b>Prototype:</b> fun [ObjSpeech fun [ObjSpeech u0 S] u1 u0] ObjSpeech
Parameters
ObjSpeech: speech object
fun[ObjSpeech u0 S] u1 : Callback function
  • ObjSpeech : speech object
  • u0 : user parameter
  • S : word
u0: user parameter
Returns
: the same scol object

Definition at line 1014 of file plugin.cpp.

◆ _CRSpeech()

int _CRSpeech ( mmachine  m)

_CRSpeech : create speech instance

  <b>Prototype:</b> fun [Chn] ObjSpeech
Parameters
Chn: channel
Returns
ObjSpeech: speech object

Definition at line 170 of file plugin.cpp.

◆ _DSSpeech()

int _DSSpeech ( mmachine  m)

_DSSpeech : destroy speech instance

  <b>Prototype:</b>  fun [ObjSpeech] I
Parameters
ObjSpeech: speech object to destroy
Returns
I : 1 on success or NIL on fail

Definition at line 216 of file plugin.cpp.

◆ _GetSpeechRate()

int _GetSpeechRate ( mmachine  m)

_GetSpeechRate : get speech rate

  <b>Prototype:</b>  fun [ObjSpeech] I
Parameters
ObjSpeech: speech object to set
Returns
I : speech rate

Definition at line 448 of file plugin.cpp.

◆ _GetSpeechVoice()

int _GetSpeechVoice ( mmachine  m)

_GetSpeechVoice : get speech voice

  <b>Prototype:</b> fun [ObjSpeech] S
Parameters
ObjSpeech: speech object
Returns
S : voice name

Definition at line 954 of file plugin.cpp.

◆ _GetSpeechVoices()

int _GetSpeechVoices ( mmachine  m)

_GetSpeechVoices : get speech voices

  <b>Prototype:</b> fun [ObjSpeech I] [S r1]
Parameters
ObjSpeech: speech object
I: voice type 0 for all, 1 for male, 2 for female.
Returns
[S r1] : list voices name

Definition at line 782 of file plugin.cpp.

◆ _GetSpeechVolume()

int _GetSpeechVolume ( mmachine  m)

_GetSpeechVolume : Get speech volume

  <b>Prototype:</b>  fun [ObjSpeech] I
Parameters
ObjSpeech: speech object to set
Returns
I : speech volume

Definition at line 354 of file plugin.cpp.

◆ _PauseSpeech()

int _PauseSpeech ( mmachine  m)

_PauseSpeech : pause speech

  <b>Prototype:</b>  fun [ObjSpeech] I
Parameters
ObjSpeech: speech object to set
Returns
I : 1 on success or NIL on fail

Definition at line 541 of file plugin.cpp.

◆ _PlaySpeech()

int _PlaySpeech ( mmachine  m)

_PlaySpeech : play speech

  <b>Prototype:</b>  fun [ObjSpeech] I
Parameters
ObjSpeech: speech object to set
Returns
I : 1 on success or NIL on fail

Definition at line 494 of file plugin.cpp.

◆ _ResumeSpeech()

int _ResumeSpeech ( mmachine  m)

_ResumeSpeech : resume speech

  <b>Prototype:</b>  fun [ObjSpeech] I
Parameters
ObjSpeech: speech object to set
Returns
I : 1 on success or NIL on fail

Definition at line 588 of file plugin.cpp.

◆ _SetSpeechRate()

int _SetSpeechRate ( mmachine  m)

_SetSpeechRate : set speech rate

  <b>Prototype:</b>  fun [ObjSpeech I] I
Parameters
ObjSpeech: speech object to set
I: speech rate
Returns
I : 1 on success or NIL on fail

Definition at line 400 of file plugin.cpp.

◆ _SetSpeechText()

int _SetSpeechText ( mmachine  m)

_SetSpeechText : Set speech Text

  <b>Prototype:</b>  fun [ObjSpeech S] I
Parameters
ObjSpeech: speech object to set
S: speech text
Returns
I : 1 on success or NIL on fail

Definition at line 250 of file plugin.cpp.

◆ _SetSpeechVoice()

int _SetSpeechVoice ( mmachine  m)

_SetSpeechVoice : set speech voice

  <b>Prototype:</b>  fun [ObjSpeech S] I
Parameters
ObjSpeech: speech object to set
S: speech voice
Returns
I : 1 on success or NIL on fail

Definition at line 900 of file plugin.cpp.

◆ _SetSpeechVolume()

int _SetSpeechVolume ( mmachine  m)

_SetSpeechVolume : Set speech volume

  <b>Prototype:</b>  fun [ObjSpeech I] I
Parameters
ObjSpeech: speech object to set
I: speech volume
Returns
I : 1 on success or NIL on fail

Definition at line 302 of file plugin.cpp.

◆ _StopSpeech()

int _StopSpeech ( mmachine  m)

_StopSpeech : Stop speech

  <b>Prototype:</b>  fun [ObjSpeech] I
Parameters
ObjSpeech: speech object to set
Returns
I : 1 on success or NIL on fail

Definition at line 635 of file plugin.cpp.