Project

General

Profile

Template
Recognition

Functions

int _CRRecognition (mmachine m)
 _CRRecognition : create recognition instance
 
int _CRRecognition2 (mmachine m)
 _CRRecognition2 : create recognition instance
 
int _FillRecognitionBuffer (mmachine m)
 _FillRecognitionBuffer : fill recognition audio buffer
 
int _DSRecognition (mmachine m)
 n_DSRecognition : destroy recognition instance
 
int _CBRecognitionEnd (mmachine m)
 _CBRecognitionEnd : set callback end of recognition
 
int _CBRecognitionStart (mmachine m)
 _CBRecognitionStart : set callback start of recognition
 
int _CBRecognitionText (mmachine m)
 _CBRecognitionText : Set callback on recognition text
 
int _CBRecognitionTextsAlt (mmachine m)
 _CBRecognitionTextsAlt : Set callback on recognition texts alternates
 
int _SetRecogntionVolume (mmachine m)
 _CBRecognitionWords : Set callback on recognition words
 
int _GetRecogntionVolume (mmachine m)
 _GetRecogntionVolume : Get recognition volume
 
int _AddRecognitionWord (mmachine m)
 _AddRecognitionWord : add recogntion word to dictionary
 

Detailed Description

Scol functions definition

Function Documentation

◆ _AddRecognitionWord()

int _AddRecognitionWord ( mmachine  m)

_AddRecognitionWord : add recogntion word to dictionary

  <b>Prototype:</b>  fun [ObjRecognition S] I
Parameters
ObjRecognition: recogntion object to set
S: recogntion word
S: recogntion rule
Returns
I : 1 on success or NIL on fail

Definition at line 1853 of file plugin.cpp.

◆ _CBRecognitionEnd()

int _CBRecognitionEnd ( mmachine  m)

_CBRecognitionEnd : set callback end of recognition

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

Definition at line 1465 of file plugin.cpp.

◆ _CBRecognitionStart()

int _CBRecognitionStart ( mmachine  m)

_CBRecognitionStart : set callback start of recognition

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

Definition at line 1512 of file plugin.cpp.

◆ _CBRecognitionText()

int _CBRecognitionText ( mmachine  m)

_CBRecognitionText : Set callback on recognition text

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

Definition at line 1560 of file plugin.cpp.

◆ _CBRecognitionTextsAlt()

int _CBRecognitionTextsAlt ( mmachine  m)

_CBRecognitionTextsAlt : Set callback on recognition texts alternates

  <b>Prototype:</b> fun [ObjRecognition fun [ObjRecognition u0 [[S F]r1] u1 u0] ObjRecognition
Parameters
ObjRecognition: recognition object
fun[ObjRecognition u0 [[S F]r1]] u1 : Callback function
  • ObjRecognition : recognition object
  • u0 : user parameter
  • [[S F]r1] : list text alt
u0: user parameter
Returns
: the same scol object

Definition at line 1615 of file plugin.cpp.

◆ _CRRecognition()

int _CRRecognition ( mmachine  m)

_CRRecognition : create recognition instance

 <b>Prototype:</b> fun [Chn] ObjRecognition
Parameters
Chn: channel
Returns
ObjRecognition: recognition object

Definition at line 1235 of file plugin.cpp.

◆ _CRRecognition2()

int _CRRecognition2 ( mmachine  m)

_CRRecognition2 : create recognition instance

  <b>Prototype:</b> fun [Chn P S] ObjRecognition
Parameters
Chn: channel
P: path to cmu sphinx bin file
S: language
Chn: channel
Returns
ObjRecognition: recognition object

Definition at line 1287 of file plugin.cpp.

◆ _DSRecognition()

int _DSRecognition ( mmachine  m)

n_DSRecognition : destroy recognition instance

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

Definition at line 1429 of file plugin.cpp.

◆ _FillRecognitionBuffer()

int _FillRecognitionBuffer ( mmachine  m)

_FillRecognitionBuffer : fill recognition audio buffer

  <b>Prototype:</b> fun [ObjRecognition S] I
Parameters
Chn: channel
P: path to Vosk bin file
S: language
Chn: channel
Returns
I: 1 on success, nil otherwise

Definition at line 1348 of file plugin.cpp.

◆ _GetRecogntionVolume()

int _GetRecogntionVolume ( mmachine  m)

_GetRecogntionVolume : Get recognition volume

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

Definition at line 1811 of file plugin.cpp.

◆ _SetRecogntionVolume()

int _SetRecogntionVolume ( mmachine  m)

_CBRecognitionWords : Set callback on recognition words

  <b>Prototype:</b> fun [ObjRecognition fun [ObjRecognition u0 [[S F] r1]] u1 u0] ObjRecognition
Parameters
ObjRecognition: recognition object
fun[ObjRecognition u0 [S r1]] u1 : Callback function
  • ObjRecognition : recognition object
  • u0 : user parameter
  • [[S F] r1] : list word
u0: user parameter
Returns
: 0 on success or -1 on fail

_SetRecogntionVolume : Set recogntion volume

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

Definition at line 1766 of file plugin.cpp.