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); }
internal static SpeechSession Create(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, IRemoteChannelProvider channels, DateTime now) { return(new SpeechSession(context, jitter, pipeline, channels, now)); }
private SpeechSession(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, IRemoteChannelProvider channels, DateTime now) { _context = context; _pipeline = pipeline; _channels = channels; _creationTime = now; _jitter = jitter; _startTime = now; }