Up |
Speech from SAPI (Speech Application Programming Interface)
Based from the development made in Microsoft, allow the recognition and synthesis speech
(MS Windows system is required
)
- ObjRecognition : a recognition Scol object
- ObjSpeech : a synthesis Scol object
- _AddRecognitionWord
fun [ObjRecognition S S] I - _CBRecognitionEnd
fun [ObjRecognition fun [ObjRecognition u0] u1 u0] ObjRecognition - _CBRecognitionStart
fun [ObjRecognition fun [ObjRecognition u0] u1 u0] ObjRecognition - _CBRecognitionText
fun [ObjRecognition fun [ObjRecognition u0 S] u1 u0] ObjRecognition - _CBRecognitionTextsAlt
fun [ObjRecognition fun [ObjRecognition u0 [[S F] r1]] u1 u0] ObjRecognition - _CBSpeechEnd
fun [ObjSpeech fun [ObjSpeech u0] u1 u0] ObjSpeech - _CBSpeechPhoneme
fun [ObjSpeech fun [ObjSpeech u0 I] u1 u0] ObjSpeech - _CBSpeechStart
fun [ObjSpeech fun [ObjSpeech u0] u1 u0] ObjSpeechh - _CBSpeechText
fun [ObjSpeech fun [ObjSpeech u0 S] u1 u0] ObjSpeech - _CBSpeechViseme
fun [ObjSpeech fun [ObjSpeech u0 I] u1 u0] ObjSpeech - _CBSpeechWord
fun [ObjSpeech fun [ObjSpeech u0 S] u1 u0] ObjSpeech - _CRRecognition
fun [Chn] ObjRecognition - _CRSpeech
fun [Chn] ObjSpeech - _DSRecognition
fun [ObjRecognition] I - _DSSpeech
fun [ObjSpeech] I - _GetRecogntionVolume
fun [ObjRecognition] I - _GetSpeechRate
fun [ObjSpeech] I - _GetSpeechVoice
fun [ObjSpeech] S - _GetSpeechVoices
fun [ObjSpeech I] [S r1] - _GetSpeechVolume
fun [ObjSpeech] I - _PauseSpeech
fun [ObjSpeech] I - _PlaySpeech
fun [ObjSpeech] I - _ResumeSpeech
fun [ObjSpeech] I - _SetRecogntionVolume
fun [ObjRecognition I] I - _SetSpeechRate
fun [ObjSpeech I] I - _SetSpeechText
fun [ObjSpeech S] I - _SetSpeechVoice
fun [ObjSpeech S] I - _SetSpeechVolume
fun [ObjSpeech I] I - _StopSpeech
fun [ObjSpeech] I
StopSpeech
Example
typeof speech = ObjSpeech;;
fun main ()=
_showconsole;
set speech = _CRSpeech _channel;
if speech == nil then
(
_fooS "Speech object is nil = error ! Do something !";
0
)
else
(
_SetSpeechText speech "My taylor is rich !";
_SetSpeechVolume speech 100;
_PlaySpeech speech;
(...)
);
0;;
Note
See the doc in the development server too.