unispeech / unimrcp

Open source cross-platform implementation of MRCP protocol
http://www.unimrcp.org
Apache License 2.0
379 stars 167 forks source link

Is thread or process exit when called recog_channel_destory()? #251

Closed wujsy closed 5 years ago

wujsy commented 5 years ago

Do anyone know, when called recog_channel_destory(), is a thread or process exit? In other words, when a new recog channel created , is it in a new thread or a new process?

achaloyan commented 5 years ago

I think you refer to the function in app_unimrcp module for Asterisk. If so, then the recognition is initiated from the same thread Asterisk channel functions are executed. The UniMRCP client library does not create or terminate threads per recognition. As for Asterisk itself, then yes, a new thread is launched per call.

wujsy commented 5 years ago

@achaloyan thanks , got it