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); }
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 { } }
public void GetMp3Segments() { voSpeech vP = new voSpeech(lVideoSaveable.Mp3File); vP.GetSegments(); }