From db49ba8953c2a058eec68f6ac1080125df530a1c Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Sun, 1 Sep 2024 22:48:58 -0400 Subject: [PATCH] . --- ElevenLabs-DotNet/Dubbing/DubbingEndpoint.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/ElevenLabs-DotNet/Dubbing/DubbingEndpoint.cs b/ElevenLabs-DotNet/Dubbing/DubbingEndpoint.cs index 5e252ca..6a9292e 100644 --- a/ElevenLabs-DotNet/Dubbing/DubbingEndpoint.cs +++ b/ElevenLabs-DotNet/Dubbing/DubbingEndpoint.cs @@ -33,14 +33,12 @@ public sealed class DubbingEndpoint(ElevenLabsClient client) : ElevenLabsBaseEnd protected override string Root => "dubbing"; /// - /// Initiates a dubbing operation asynchronously based on the provided . + /// Dubs provided audio or video file into given language. /// /// The containing dubbing configuration and files. /// Optional, . - /// - /// A task representing the asynchronous dubbing operation. The task completes with the dubbing ID and expected duration in seconds if the operation succeeds. - /// - public async Task StartDubbingAsync(DubbingRequest request, CancellationToken cancellationToken = default) + /// . + public async Task DubAsync(DubbingRequest request, CancellationToken cancellationToken = default) { ArgumentNullException.ThrowIfNull(request); using var payload = new MultipartFormDataContent(); @@ -153,11 +151,11 @@ public async Task WaitForDubbingCompletionAsync(string dubbingId, int? max } /// - /// + /// Returns metadata about a dubbing project, including whether it’s still in progress or not. /// /// /// Optional, . - /// + /// . public async Task GetDubbingProjectMetadataAsync(string dubbingId, CancellationToken cancellationToken = default) { var response = await client.Client.GetAsync(GetUrl($"/{dubbingId}"), cancellationToken).ConfigureAwait(false); @@ -167,7 +165,7 @@ public async Task GetDubbingProjectMetadataAsync(string } /// - /// Retrieves the transcript for the dub asynchronously in the specified format (SRT or WebVTT). + /// Returns transcript for the dub in the specified format (SRT or WebVTT). /// /// The ID of the dubbing project. /// The language code of the transcript. @@ -189,7 +187,7 @@ public async Task GetTranscriptForDubAsync(string dubbingId, string lang } /// - /// Retrieves the dubbed file asynchronously as a sequence of byte arrays. + /// Returns dubbed file as a streamed file. /// /// The ID of the dubbing project. /// The language code of the dubbed content.