public static WatsonCompleteSpeechToTextTraining CreateInstance(LexiconWorkspace workspace)
        {
            WatsonCompleteSpeechToTextTraining instance = CreateInstance <WatsonCompleteSpeechToTextTraining>();

            instance.workspace = workspace;
            return(instance);
        }
        public void MonitorWatsonSpeechToTextTraining(LexiconWorkspace workspace)
        {
            workspace.WatsonSpeechToTextManager.IsTraining = true;

            WatsonSyncQueue syncQueue = ScriptableObject.CreateInstance <WatsonSyncQueue>();

            syncQueue.workspace = workspace;

            syncQueue.Enqueue(WatsonCustomModelStatus.CreateInstance(workspace));
            syncQueue.Enqueue(WatsonCustomWordsGet.CreateInstance(workspace));

            syncQueue.OnCompleteAction = WatsonCompleteSpeechToTextTraining.CreateInstance(workspace);
            syncQueue.OnQueueFinished += CleanUp;

            syncQueue.Process();

            watsonSpeechToTextSyncQueues.Add(syncQueue);
        }