Example #1
0
        public async Task GetTranscription()
        {
            voSpeech vP = new voSpeech(lVideoSaveable.Mp3File);

            vP.Listminuteintervals = voSave.DeserializeObject <List <voSpeech.MinuteInterval> >(voSave.FileInSameFolder(vP.Filename, "Minutes.p"));
            Microsoft.CognitiveServices.Speech.SpeechConfig localspeechconfig = Microsoft.CognitiveServices.Speech.SpeechConfig.FromSubscription(apikey, region);
            await vP.TranscribeMinutes(localspeechconfig);
        }
Example #2
0
        public void CleanTranscription()
        {
            voSpeech vP = new voSpeech(lVideoSaveable.Mp3File);

            vP.Listminuteintervals = voSave.DeserializeObject <List <voSpeech.MinuteInterval> >(voSave.FileInSameFolder(vP.Filename, "Minutes.p"));
            vP.CleanSegments();

            try { System.IO.File.Delete(voSave.FileInSameFolder(vP.Filename, "Minutes.p")); }
            catch { }
            try { System.IO.File.Delete(vP.Filename); }
            catch { }
        }
Example #3
0
        public void GetMp3Segments()
        {
            voSpeech vP = new voSpeech(lVideoSaveable.Mp3File);

            vP.GetSegments();
        }