コード例 #1
0
ファイル: TranscriptionTask.cs プロジェクト: rbhttchr/WebAPI
 public TranscriptionTask(RabbitMQConnection rabbitMQ, MSTranscriptionService msTranscriptionService,
                          GenerateVTTFileTask generateVTTFileTask, SceneDetectionTask sceneDetectionTask, ILogger <TranscriptionTask> logger, CaptionQueries captionQueries)
     : base(rabbitMQ, TaskType.TranscribeVideo, logger)
 {
     _msTranscriptionService = msTranscriptionService;
     _generateVTTFileTask    = generateVTTFileTask;
     _sceneDetectionTask     = sceneDetectionTask;
     _captionQueries         = captionQueries;
 }
コード例 #2
0
 public QueueAwakerTask(RabbitMQConnection rabbitMQ, DownloadPlaylistInfoTask downloadPlaylistInfoTask,
                        DownloadMediaTask downloadMediaTask,
                        TranscriptionTask transcriptionTask, ProcessVideoTask processVideoTask,
                        GenerateVTTFileTask generateVTTFileTask, SceneDetectionTask scenedDetectionTask,
                        CreateBoxTokenTask createBoxTokenTask, UpdateBoxTokenTask updateBoxTokenTask, ExampleTask exampleTask,
                        ILogger <QueueAwakerTask> logger, SlackLogger slackLogger)
     : base(rabbitMQ, TaskType.QueueAwaker, logger)
 {
     _downloadPlaylistInfoTask = downloadPlaylistInfoTask;
     _downloadMediaTask        = downloadMediaTask;
     //_convertVideoToWavTask = convertVideoToWavTask;
     _transcriptionTask   = transcriptionTask;
     _generateVTTFileTask = generateVTTFileTask;
     _processVideoTask    = processVideoTask;
     _scenedDetectionTask = scenedDetectionTask;
     _createBoxTokenTask  = createBoxTokenTask;
     _updateBoxTokenTask  = updateBoxTokenTask;
     _exampleTask         = exampleTask;
     _slackLogger         = slackLogger;
 }