public Task <Uri> PostTranscriptionAsync(string name, string description, string locale, Uri recordingsUrl) { var path = $"{this.speechToTextBasePath}Transcriptions/"; var transcriptionDefinition = TranscriptionDefinition.Create(name, description, locale, recordingsUrl); return(this.PostAsJsonAsync <TranscriptionDefinition>(path, transcriptionDefinition)); }
public Task <Uri> PostTranscriptionAsync(string name, string description, string locale, Uri recordingsUrl, IEnumerable <Guid> modelIds) { var models = modelIds.Select(m => ModelIdentity.Create(m)).ToList(); var path = $"{this.speechToTextBasePath}Transcriptions/"; var transcriptionDefinition = TranscriptionDefinition.Create(name, description, locale, recordingsUrl, models); return(this.PostAsJsonAsync <TranscriptionDefinition>(path, transcriptionDefinition)); }