Quantcast
Channel: Dialogic PowerMedia HMP GlobalCall and R4 API - Recent Threads
Viewing all articles
Browse latest Browse all 336

TF_SETINIT initial silence detection not working

$
0
0

Thank you so much in advance if you can lend a hand on this. Should be simple, but...

Centos, HMP V4. Code in C  All code in this app runs great async mode - just not this piece.

The DX_MAXSIL takes effect and kills the record when it hits the parm even if it's less than the value of tp_data and the tp_flags are or'd with TF_SETINIT.

Code Snippet:

(this is the only tpt set in this case. I'm not allowing any digits. I just want to give the caller up to 4 seconds to start recording and then stop their recording if I see 2 seconds of silence after they speak.

int idx=0;  // So here sometimes this codes adds other tpt conditions, but not in this case so the index = 0 and the IO_EOT is set on index 0 also.

tpt[ch][idx].tp_termno = DX_MAXSIL;
tpt[ch][idx].tp_length = 20;  // so this should be 2 seconds of silence after speech - I always get a MAXSIL in 2 seconds.
tpt[ch][idx].tp_data = 40; // this so allow up to 4 seconds of silence before speech or I assume get a MAXSIL event.
tpt[ch][idx++].tp_flags = TF_CLRBEG | TF_MAXSIL | TF_SETINIT;

tpt[ch][--idx].tp_type = IO_EOT;


Viewing all articles
Browse latest Browse all 336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>