Ejemplo n.º 1
0
 private SpeechSession(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, DateTime now)
 {
     _context      = context;
     _pipeline     = pipeline;
     _creationTime = now;
     _jitter       = jitter;
 }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 internal static SpeechSession Create(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, IRemoteChannelProvider channels, DateTime now)
 {
     return(new SpeechSession(context, jitter, pipeline, channels, now));
 }
Ejemplo n.º 5
0
 public SynchronizerSampleSource(ISampleSource upstream, TimeSpan resetDesyncTime, IDecoderPipeline pipeline)
 {
     _upstream        = upstream;
     _resetDesyncTime = resetDesyncTime;
     _pipeline        = pipeline;
 }
Ejemplo n.º 6
0
 internal static SpeechSession Create(SessionContext context, IJitterEstimator jitter, IDecoderPipeline pipeline, DateTime now)
 {
     return(new SpeechSession(context, jitter, pipeline, now));
 }