public virtual void Post(WaveStream stream, SpeechContexts contexts, SpeechVerifier.PostCallback callback) { if (IsSessionOpen) { if (Append(stream, contexts)) { Post(callback); } } }
public virtual void PostStereo(WaveStream stream, SpeechContexts contexts, SpeechAudioChannel channel, SpeechVerifier.PostCallback callback) { if (IsSessionOpen) { if (AppendStereo(stream, contexts, channel)) { Post(callback); } } }
public virtual void Post(string filename, SpeechContexts contexts, SpeechVerifier.PostCallback callback) { if (IsSessionOpen) { if (Append(filename, contexts)) { Post(callback); } } }
public virtual SpeechVerifier.Result PostStereo(WaveStream stream, SpeechContexts contexts, SpeechAudioChannel channel) { if (IsSessionOpen) { if (AppendStereo(stream, contexts, channel)) { return(Post()); } } return(SpeechVerifier.Result.Invalid); }
public virtual SpeechVerifier.Result Post(WaveStream stream, SpeechContexts contexts) { if (IsSessionOpen) { if (Append(stream, contexts)) { return(Post()); } } return(SpeechVerifier.Result.Invalid); }
public virtual SpeechVerifier.Result Post(string filename, SpeechContexts contexts) { if (IsSessionOpen) { if (Append(filename, contexts)) { return(Post()); } } return(SpeechVerifier.Result.Invalid); }
public virtual bool AppendStereo(WaveStream stream, SpeechContexts contexts, SpeechAudioChannel channel) { if (IsSessionOpen) { if (AppendStereo(stream, channel)) { return(AppendContexts(contexts)); } } return(false); }
public bool Append(WaveStream stream, SpeechContexts contexts) { if (IsSessionOpen) { if (Append(stream)) { return(AppendContexts(contexts)); } } return(false); }
public virtual Task <SpeechVerifier.Result> PostAsync(string filename, SpeechContexts contexts) { if (IsSessionOpen) { if (Append(filename, contexts)) { return(PostAsync()); } } return(Task.FromResult(SpeechVerifier.Result.Invalid)); }
public SpeechContexts Clone() { SpeechContexts contexts = new SpeechContexts(Count); foreach (var context in this) { contexts.Add(context.Clone()); } return(contexts); }
public virtual Task <SpeechVerifier.Result> PostStereoAsync(string filename, SpeechContexts contexts, SpeechAudioChannel channel) { if (IsSessionOpen) { if (AppendStereo(filename, contexts, channel)) { return(PostAsync()); } } return(Task.FromResult(SpeechVerifier.Result.Invalid)); }
public virtual Task <SpeechVerifier.Result> PostAsync(WaveStream stream, SpeechContexts contexts) { if (IsSessionOpen) { if (Append(stream, contexts)) { return(PostAsync()); } } return(Task.FromResult(SpeechVerifier.Result.Invalid)); }
public bool Append(string filename, SpeechContexts contexts) { if (IsSessionOpen) { var waveStream = new WaveFileReader(filename); if (Append(waveStream)) { return(AppendContexts(contexts)); } } return(false); }
public virtual bool AppendStereo(string filename, SpeechContexts contexts, SpeechAudioChannel channel) { if (IsSessionOpen) { var waveStream = new WaveFileReader(filename); if (AppendStereo(waveStream, channel)) { return(AppendContexts(contexts)); } } return(false); }
public virtual bool AppendContexts(SpeechContexts contexts) { if (IsSessionOpen) { if (contexts != null) { IsLivenessRequired = true; foreach (var ctx in contexts) { Content.Add("speech", ctx); } } return(true); } return(false); }
public Task <Result> PostAsync(WaveStream stream, SpeechContexts contexts) { return(mSpeechVerifier.PostAsync(stream, contexts)); }
public Task <Result> PostAsync(string filename, SpeechContexts contexts) { return(mSpeechVerifier.PostAsync(filename, contexts)); }
public void Post(WaveStream stream, SpeechContexts contexts, PostCallback callback) { mSpeechVerifier.Post(stream, contexts, callback); }
public void Post(string filename, SpeechContexts contexts, PostCallback callback) { mSpeechVerifier.Post(filename, contexts, callback); }
public Result Post(WaveStream stream, SpeechContexts contexts) { return(mSpeechVerifier.Post(stream, contexts)); }
public Result Post(string filename, SpeechContexts contexts) { return(mSpeechVerifier.Post(filename, contexts)); }
public bool AppendStereo(WaveStream stream, SpeechContexts contexts, SpeechAudioChannel channel) { return(mSpeechVerifier.AppendStereo(stream, contexts, channel)); }
public bool AppendStereo(string filename, SpeechContexts contexts, SpeechAudioChannel channel) { return(mSpeechVerifier.AppendStereo(filename, contexts, channel)); }
public bool Append(WaveStream stream, SpeechContexts contexts) { return(mSpeechVerifier.Append(stream, contexts)); }
public bool Append(string filename, SpeechContexts contexts) { return(mSpeechVerifier.Append(filename, contexts)); }