Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/libs/AssemblyAI/Generated/AssemblyAI.FilesClient.Upload.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ partial void ProcessUploadResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// from assemblyai.prerecorded.v2 import Transcriber<br/>
/// transcriber = Transcriber(api_key=os.environ["ASSEMBLYAI_API_KEY"])<br/>
/// upload_url = transcriber.upload_file("./audio.mp3")<br/>
/// print(upload_url)
/// </remarks>
public async global::System.Threading.Tasks.Task<global::AssemblyAI.UploadedFile> UploadAsync(

byte[] request,
Expand All @@ -76,6 +83,13 @@ partial void ProcessUploadResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// from assemblyai.prerecorded.v2 import Transcriber<br/>
/// transcriber = Transcriber(api_key=os.environ["ASSEMBLYAI_API_KEY"])<br/>
/// upload_url = transcriber.upload_file("./audio.mp3")<br/>
/// print(upload_url)
/// </remarks>
public async global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.UploadedFile>> UploadAsResponseAsync(

byte[] request,
Expand Down
14 changes: 14 additions & 0 deletions src/libs/AssemblyAI/Generated/AssemblyAI.IFilesClient.Upload.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ public partial interface IFilesClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// from assemblyai.prerecorded.v2 import Transcriber<br/>
/// transcriber = Transcriber(api_key=os.environ["ASSEMBLYAI_API_KEY"])<br/>
/// upload_url = transcriber.upload_file("./audio.mp3")<br/>
/// print(upload_url)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.UploadedFile> UploadAsync(

byte[] request,
Expand All @@ -29,6 +36,13 @@ public partial interface IFilesClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// from assemblyai.prerecorded.v2 import Transcriber<br/>
/// transcriber = Transcriber(api_key=os.environ["ASSEMBLYAI_API_KEY"])<br/>
/// upload_url = transcriber.upload_file("./audio.mp3")<br/>
/// print(upload_url)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.UploadedFile>> UploadAsResponseAsync(

byte[] request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.delete_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.delete_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// print(transcript.status)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.Transcript> DeleteAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -28,6 +37,15 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.delete_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.delete_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// print(transcript.status)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.Transcript>> DeleteAsResponseAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// print(transcript.status, transcript.text)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.Transcript> GetAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -26,6 +35,15 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// print(transcript.status, transcript.text)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.Transcript>> GetAsResponseAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// paragraphs = transcript.get_paragraphs()<br/>
/// print(len(paragraphs), paragraphs[0].text)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.ParagraphsResponse> GetParagraphsAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -26,6 +36,16 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// paragraphs = transcript.get_paragraphs()<br/>
/// print(len(paragraphs), paragraphs[0].text)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.ParagraphsResponse>> GetParagraphsAsResponseAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// print(transcript.get_redacted_audio_url())
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.RedactedAudioResponse> GetRedactedAudioAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -28,6 +37,15 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// print(transcript.get_redacted_audio_url())
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.RedactedAudioResponse>> GetRedactedAudioAsResponseAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// sentences = transcript.get_sentences()<br/>
/// print(len(sentences), sentences[0].text)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.SentencesResponse> GetSentencesAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -26,6 +36,16 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// sentences = transcript.get_sentences()<br/>
/// print(len(sentences), sentences[0].text)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.SentencesResponse>> GetSentencesAsResponseAsync(
string transcriptId,
global::AssemblyAI.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// srt = transcript.export_subtitles_srt(chars_per_caption=32)<br/>
/// # vtt = transcript.export_subtitles_vtt(chars_per_caption=32)<br/>
/// print(srt)
/// </remarks>
global::System.Threading.Tasks.Task<string> GetSubtitlesAsync(
string transcriptId,
global::AssemblyAI.SubtitleFormat subtitleFormat,
Expand All @@ -36,6 +47,17 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// import assemblyai<br/>
/// from assemblyai.prerecorded.v2 import Transcript<br/>
/// # `Transcript.get_by_id()` uses the default client, which reads the global settings.<br/>
/// assemblyai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]<br/>
/// transcript = Transcript.get_by_id("&lt;TRANSCRIPT_ID&gt;")<br/>
/// srt = transcript.export_subtitles_srt(chars_per_caption=32)<br/>
/// # vtt = transcript.export_subtitles_vtt(chars_per_caption=32)<br/>
/// print(srt)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<string>> GetSubtitlesAsResponseAsync(
string transcriptId,
global::AssemblyAI.SubtitleFormat subtitleFormat,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// from assemblyai import ListTranscriptParameters<br/>
/// from assemblyai.prerecorded.v2 import Transcriber<br/>
/// transcriber = Transcriber(api_key=os.environ["ASSEMBLYAI_API_KEY"])<br/>
/// page = transcriber.list_transcripts(<br/>
/// ListTranscriptParameters(limit=5, status="completed")<br/>
/// )<br/>
/// for item in page.transcripts:<br/>
/// print(item.id, item.status)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.TranscriptList> ListAsync(
int? limit = default,
global::AssemblyAI.TranscriptStatus? status = default,
Expand Down Expand Up @@ -71,6 +82,17 @@ public partial interface ITranscriptsClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AssemblyAI.ApiException"></exception>
/// <remarks>
/// import os<br/>
/// from assemblyai import ListTranscriptParameters<br/>
/// from assemblyai.prerecorded.v2 import Transcriber<br/>
/// transcriber = Transcriber(api_key=os.environ["ASSEMBLYAI_API_KEY"])<br/>
/// page = transcriber.list_transcripts(<br/>
/// ListTranscriptParameters(limit=5, status="completed")<br/>
/// )<br/>
/// for item in page.transcripts:<br/>
/// print(item.id, item.status)
/// </remarks>
global::System.Threading.Tasks.Task<global::AssemblyAI.AutoSDKHttpResponse<global::AssemblyAI.TranscriptList>> ListAsResponseAsync(
int? limit = default,
global::AssemblyAI.TranscriptStatus? status = default,
Expand Down
Loading