예제 #1
0
        private SpeechSession(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, IRemoteChannelProvider channels, DateTime now)
        {
            _context      = context;
            _pipeline     = pipeline;
            _channels     = channels;
            _creationTime = now;
            _jitter       = jitter;

            _minimumDelay = (float)(MinimumDelayFactor * _pipeline.InputFrameTime.TotalSeconds);

            Log.Debug("Created speech session with min delay={0}s", _minimumDelay);
        }
예제 #2
0
 internal static SpeechSession Create(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, IRemoteChannelProvider channels, DateTime now)
 {
     return(new SpeechSession(context, jitter, pipeline, channels, now));
 }
예제 #3
0
        private SpeechSession(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, IRemoteChannelProvider channels, DateTime now)
        {
            _context      = context;
            _pipeline     = pipeline;
            _channels     = channels;
            _creationTime = now;
            _jitter       = jitter;

            _startTime = now;
        }