diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/Azure.AI.Speech.BatchTranscription.sln b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/Azure.AI.Speech.BatchTranscription.sln
new file mode 100644
index 000000000000..cfcc5ac1f026
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/Azure.AI.Speech.BatchTranscription.sln
@@ -0,0 +1,56 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Speech.BatchTranscription", "src\Azure.AI.Speech.BatchTranscription.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Speech.BatchTranscription.Tests", "tests\Azure.AI.Speech.BatchTranscription.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/CHANGELOG.md b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/CHANGELOG.md
new file mode 100644
index 000000000000..8b33f0fedccc
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
\ No newline at end of file
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/Directory.Build.props b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/README.md b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/README.md
new file mode 100644
index 000000000000..a4a397067207
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/README.md
@@ -0,0 +1,107 @@
+# Azure.AI.Speech.BatchTranscription client library for .NET
+
+Azure.AI.Speech.BatchTranscription is a managed service that helps developers get secret simply and securely.
+
+Use the client library for to:
+
+* [Get secret](https://docs.microsoft.com/azure)
+
+[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples]
+
+ [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure)
+
+## Getting started
+
+This section should include everything a developer needs to do to install and create their first client connection *very quickly*.
+
+### Install the package
+
+First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository.
+
+Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
+
+```dotnetcli
+dotnet add package Azure.AI.Speech.BatchTranscription --prerelease
+```
+
+### Prerequisites
+
+Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB:
+
+> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`.
+
+### Authenticate the client
+
+If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating.
+
+For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object.
+
+### Service API versions
+
+The client library targets the latest service API version by default. A client instance accepts an optional service API version parameter from its options to specify which API version service to communicate.
+
+#### Select a service API version
+
+You have the flexibility to explicitly select a supported service API version when instantiating a client by configuring its associated options. This ensures that the client can communicate with services using the specified API version.
+
+For example,
+
+```C# Snippet:CreateClientForSpecificApiVersion
+Uri endpoint = new Uri("");
+DefaultAzureCredential credential = new DefaultAzureCredential();
+ClientOptions options = new ClientOptions(ClientOptions.ServiceVersion.)
+var client = new Client(endpoint, credential, options);
+```
+
+When selecting an API version, it's important to verify that there are no breaking changes compared to the latest API version. If there are significant differences, API calls may fail due to incompatibility.
+
+Always ensure that the chosen API version is fully supported and operational for your specific use case and that it aligns with the service's versioning policy.
+
+## Key concepts
+
+The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity.
+
+Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of:
+
+### Thread safety
+
+We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads.
+
+### Additional concepts
+
+[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) |
+[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) |
+[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) |
+[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) |
+[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) |
+[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) |
+[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/)
+
+
+## Examples
+
+You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/samples).
+
+## Troubleshooting
+
+Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery.
+
+Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API.
+
+If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code.
+
+## Next steps
+
+* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory.
+* If appropriate, point users to other packages that might be useful.
+* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for.
+
+## Contributing
+
+This is a template, but your SDK readme should include details on how to contribute code to the repo/package.
+
+
+[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization
+[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide
+
+
\ No newline at end of file
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/api/Azure.AI.Speech.BatchTranscription.net8.0.cs b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/api/Azure.AI.Speech.BatchTranscription.net8.0.cs
new file mode 100644
index 000000000000..985baddd2c33
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/api/Azure.AI.Speech.BatchTranscription.net8.0.cs
@@ -0,0 +1,303 @@
+namespace Azure.AI.Speech.BatchTranscription
+{
+ public static partial class AISpeechBatchTranscriptionModelFactory
+ {
+ public static Azure.AI.Speech.BatchTranscription.EntityError EntityError(string code = null, string message = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.FileLinks FileLinks(System.Uri content = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.FileProperties FileProperties(int durationMilliseconds = 0, int size = 0) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionFile TranscriptionFile(System.DateTimeOffset created = default(System.DateTimeOffset), Azure.AI.Speech.BatchTranscription.FileKind kind = default(Azure.AI.Speech.BatchTranscription.FileKind), Azure.AI.Speech.BatchTranscription.FileLinks links = null, string displayName = null, Azure.AI.Speech.BatchTranscription.FileProperties properties = null, System.Uri self = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionJob TranscriptionJob(Azure.AI.Speech.BatchTranscription.TranscriptionLinks links = null, Azure.AI.Speech.BatchTranscription.TranscriptionProperties properties = null, string id = null, System.Uri self = null, Azure.AI.Speech.BatchTranscription.EntityReference model = null, Azure.AI.Speech.BatchTranscription.EntityReference dataset = null, System.Collections.Generic.IEnumerable contents = null, System.Uri sourceContainer = null, string locale = null, string displayName = null, string description = null, System.Collections.Generic.IDictionary customProperties = null, System.DateTimeOffset? lastActionDateTime = default(System.DateTimeOffset?), Azure.AI.Speech.BatchTranscription.TranscriptionStatus status = default(Azure.AI.Speech.BatchTranscription.TranscriptionStatus), System.DateTimeOffset? created = default(System.DateTimeOffset?)) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionLinks TranscriptionLinks(System.Uri files = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionProperties TranscriptionProperties(bool? wordLevelTimestampsEnabled = default(bool?), bool? displayFormWordLevelTimestampsEnabled = default(bool?), int? durationMilliseconds = default(int?), System.Collections.Generic.IEnumerable channels = null, System.Uri destinationContainer = null, Azure.AI.Speech.BatchTranscription.PunctuationMode? punctuationMode = default(Azure.AI.Speech.BatchTranscription.PunctuationMode?), Azure.AI.Speech.BatchTranscription.ProfanityFilterMode? profanityFilterMode = default(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode?), int timeToLiveHours = 0, Azure.AI.Speech.BatchTranscription.EntityError error = null, Azure.AI.Speech.BatchTranscription.DiarizationProperties diarization = null, Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties languageIdentificationProperties = null) { throw null; }
+ }
+ public partial class BatchTranscriptionClient
+ {
+ protected BatchTranscriptionClient() { }
+ public BatchTranscriptionClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { }
+ public BatchTranscriptionClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Speech.BatchTranscription.BatchTranscriptionClientOptions options) { }
+ public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
+ public virtual Azure.Response DeleteTranscription(string id, Azure.RequestContext context = null) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteTranscriptionAsync(string id, Azure.RequestContext context = null) { throw null; }
+ public virtual Azure.Response GetTranscription(string id, Azure.RequestContext context) { throw null; }
+ public virtual Azure.Response GetTranscription(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task GetTranscriptionAsync(string id, Azure.RequestContext context) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetTranscriptionAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetTranscriptionFiles(string id, int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.Pageable GetTranscriptionFiles(string id, int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionFilesAsync(string id, int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionFilesAsync(string id, int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetTranscriptions(int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.Pageable GetTranscriptions(int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionsAsync(int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionsAsync(int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response StartTranscription(Azure.AI.Speech.BatchTranscription.TranscriptionJob resource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response StartTranscription(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
+ public virtual System.Threading.Tasks.Task> StartTranscriptionAsync(Azure.AI.Speech.BatchTranscription.TranscriptionJob resource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task StartTranscriptionAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
+ }
+ public partial class BatchTranscriptionClientOptions : Azure.Core.ClientOptions
+ {
+ public BatchTranscriptionClientOptions(Azure.AI.Speech.BatchTranscription.BatchTranscriptionClientOptions.ServiceVersion version = Azure.AI.Speech.BatchTranscription.BatchTranscriptionClientOptions.ServiceVersion.V2024_11_15) { }
+ public enum ServiceVersion
+ {
+ V2024_11_15 = 1,
+ }
+ }
+ public partial class DiarizationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public DiarizationProperties(bool enabled, int maxSpeakers) { }
+ public bool Enabled { get { throw null; } set { } }
+ public int MaxSpeakers { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.DiarizationProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.DiarizationProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class EntityError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public EntityError() { }
+ public string Code { get { throw null; } }
+ public string Message { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class EntityReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public EntityReference(System.Uri self) { }
+ public System.Uri Self { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct FileKind : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public FileKind(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.FileKind AcousticDataArchive { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind AcousticDataTranscriptionV2 { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind Audio { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind DatasetReport { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind EvaluationDetails { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind LanguageData { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind ModelReport { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind OutputFormattingData { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind PronunciationData { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind Transcription { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind TranscriptionReport { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.FileKind other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.FileKind left, Azure.AI.Speech.BatchTranscription.FileKind right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.FileKind (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.FileKind left, Azure.AI.Speech.BatchTranscription.FileKind right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class FileLinks : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal FileLinks() { }
+ public System.Uri Content { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileLinks System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileLinks System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class FileProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal FileProperties() { }
+ public int DurationMilliseconds { get { throw null; } }
+ public int Size { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct LanguageIdentificationMode : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public LanguageIdentificationMode(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode Continuous { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode Single { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode left, Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode left, Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class LanguageIdentificationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public LanguageIdentificationProperties(System.Collections.Generic.IEnumerable candidateLocales) { }
+ public System.Collections.Generic.IList CandidateLocales { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode? Mode { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary SpeechModelMapping { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ProfanityFilterMode : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ProfanityFilterMode(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode Masked { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode None { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode Removed { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode Tags { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode left, Azure.AI.Speech.BatchTranscription.ProfanityFilterMode right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.ProfanityFilterMode (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode left, Azure.AI.Speech.BatchTranscription.ProfanityFilterMode right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct PunctuationMode : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public PunctuationMode(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode Automatic { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode Dictated { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode DictatedAndAutomatic { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode None { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.PunctuationMode other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.PunctuationMode left, Azure.AI.Speech.BatchTranscription.PunctuationMode right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.PunctuationMode (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.PunctuationMode left, Azure.AI.Speech.BatchTranscription.PunctuationMode right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class TranscriptionFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal TranscriptionFile() { }
+ public System.DateTimeOffset Created { get { throw null; } }
+ public string DisplayName { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.FileKind Kind { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.FileLinks Links { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.FileProperties Properties { get { throw null; } }
+ public System.Uri Self { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TranscriptionJob : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TranscriptionJob(Azure.AI.Speech.BatchTranscription.TranscriptionProperties properties, string locale, string displayName) { }
+ public System.Collections.Generic.IList Contents { get { throw null; } }
+ public System.DateTimeOffset? Created { get { throw null; } }
+ public System.Collections.Generic.IDictionary CustomProperties { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.EntityReference Dataset { get { throw null; } set { } }
+ public string Description { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public string Id { get { throw null; } }
+ public System.DateTimeOffset? LastActionDateTime { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.TranscriptionLinks Links { get { throw null; } set { } }
+ public string Locale { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.EntityReference Model { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.TranscriptionProperties Properties { get { throw null; } set { } }
+ public System.Uri Self { get { throw null; } }
+ public System.Uri SourceContainer { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.TranscriptionStatus Status { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionJob System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionJob System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TranscriptionLinks : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TranscriptionLinks() { }
+ public System.Uri Files { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionLinks System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionLinks System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TranscriptionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TranscriptionProperties(int timeToLiveHours) { }
+ public System.Collections.Generic.IList Channels { get { throw null; } }
+ public System.Uri DestinationContainer { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.DiarizationProperties Diarization { get { throw null; } set { } }
+ public bool? DisplayFormWordLevelTimestampsEnabled { get { throw null; } set { } }
+ public int? DurationMilliseconds { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.EntityError Error { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties LanguageIdentificationProperties { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.ProfanityFilterMode? ProfanityFilterMode { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.PunctuationMode? PunctuationMode { get { throw null; } set { } }
+ public int TimeToLiveHours { get { throw null; } set { } }
+ public bool? WordLevelTimestampsEnabled { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct TranscriptionStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public TranscriptionStatus(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus Failed { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus NotStarted { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus Running { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus Succeeded { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.TranscriptionStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.TranscriptionStatus left, Azure.AI.Speech.BatchTranscription.TranscriptionStatus right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.TranscriptionStatus (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.TranscriptionStatus left, Azure.AI.Speech.BatchTranscription.TranscriptionStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+}
+namespace Microsoft.Extensions.Azure
+{
+ public static partial class AISpeechBatchTranscriptionClientBuilderExtensions
+ {
+ public static Azure.Core.Extensions.IAzureClientBuilder AddBatchTranscriptionClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; }
+ public static Azure.Core.Extensions.IAzureClientBuilder AddBatchTranscriptionClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; }
+ }
+}
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/api/Azure.AI.Speech.BatchTranscription.netstandard2.0.cs b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/api/Azure.AI.Speech.BatchTranscription.netstandard2.0.cs
new file mode 100644
index 000000000000..985baddd2c33
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/api/Azure.AI.Speech.BatchTranscription.netstandard2.0.cs
@@ -0,0 +1,303 @@
+namespace Azure.AI.Speech.BatchTranscription
+{
+ public static partial class AISpeechBatchTranscriptionModelFactory
+ {
+ public static Azure.AI.Speech.BatchTranscription.EntityError EntityError(string code = null, string message = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.FileLinks FileLinks(System.Uri content = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.FileProperties FileProperties(int durationMilliseconds = 0, int size = 0) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionFile TranscriptionFile(System.DateTimeOffset created = default(System.DateTimeOffset), Azure.AI.Speech.BatchTranscription.FileKind kind = default(Azure.AI.Speech.BatchTranscription.FileKind), Azure.AI.Speech.BatchTranscription.FileLinks links = null, string displayName = null, Azure.AI.Speech.BatchTranscription.FileProperties properties = null, System.Uri self = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionJob TranscriptionJob(Azure.AI.Speech.BatchTranscription.TranscriptionLinks links = null, Azure.AI.Speech.BatchTranscription.TranscriptionProperties properties = null, string id = null, System.Uri self = null, Azure.AI.Speech.BatchTranscription.EntityReference model = null, Azure.AI.Speech.BatchTranscription.EntityReference dataset = null, System.Collections.Generic.IEnumerable contents = null, System.Uri sourceContainer = null, string locale = null, string displayName = null, string description = null, System.Collections.Generic.IDictionary customProperties = null, System.DateTimeOffset? lastActionDateTime = default(System.DateTimeOffset?), Azure.AI.Speech.BatchTranscription.TranscriptionStatus status = default(Azure.AI.Speech.BatchTranscription.TranscriptionStatus), System.DateTimeOffset? created = default(System.DateTimeOffset?)) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionLinks TranscriptionLinks(System.Uri files = null) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionProperties TranscriptionProperties(bool? wordLevelTimestampsEnabled = default(bool?), bool? displayFormWordLevelTimestampsEnabled = default(bool?), int? durationMilliseconds = default(int?), System.Collections.Generic.IEnumerable channels = null, System.Uri destinationContainer = null, Azure.AI.Speech.BatchTranscription.PunctuationMode? punctuationMode = default(Azure.AI.Speech.BatchTranscription.PunctuationMode?), Azure.AI.Speech.BatchTranscription.ProfanityFilterMode? profanityFilterMode = default(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode?), int timeToLiveHours = 0, Azure.AI.Speech.BatchTranscription.EntityError error = null, Azure.AI.Speech.BatchTranscription.DiarizationProperties diarization = null, Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties languageIdentificationProperties = null) { throw null; }
+ }
+ public partial class BatchTranscriptionClient
+ {
+ protected BatchTranscriptionClient() { }
+ public BatchTranscriptionClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { }
+ public BatchTranscriptionClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Speech.BatchTranscription.BatchTranscriptionClientOptions options) { }
+ public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
+ public virtual Azure.Response DeleteTranscription(string id, Azure.RequestContext context = null) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteTranscriptionAsync(string id, Azure.RequestContext context = null) { throw null; }
+ public virtual Azure.Response GetTranscription(string id, Azure.RequestContext context) { throw null; }
+ public virtual Azure.Response GetTranscription(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task GetTranscriptionAsync(string id, Azure.RequestContext context) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetTranscriptionAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetTranscriptionFiles(string id, int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.Pageable GetTranscriptionFiles(string id, int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionFilesAsync(string id, int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionFilesAsync(string id, int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetTranscriptions(int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.Pageable GetTranscriptions(int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionsAsync(int? maxCount, int? skip, string filter, Azure.RequestContext context) { throw null; }
+ public virtual Azure.AsyncPageable GetTranscriptionsAsync(int? maxCount = default(int?), int? skip = default(int?), string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response StartTranscription(Azure.AI.Speech.BatchTranscription.TranscriptionJob resource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response StartTranscription(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
+ public virtual System.Threading.Tasks.Task> StartTranscriptionAsync(Azure.AI.Speech.BatchTranscription.TranscriptionJob resource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task StartTranscriptionAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
+ }
+ public partial class BatchTranscriptionClientOptions : Azure.Core.ClientOptions
+ {
+ public BatchTranscriptionClientOptions(Azure.AI.Speech.BatchTranscription.BatchTranscriptionClientOptions.ServiceVersion version = Azure.AI.Speech.BatchTranscription.BatchTranscriptionClientOptions.ServiceVersion.V2024_11_15) { }
+ public enum ServiceVersion
+ {
+ V2024_11_15 = 1,
+ }
+ }
+ public partial class DiarizationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public DiarizationProperties(bool enabled, int maxSpeakers) { }
+ public bool Enabled { get { throw null; } set { } }
+ public int MaxSpeakers { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.DiarizationProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.DiarizationProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class EntityError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public EntityError() { }
+ public string Code { get { throw null; } }
+ public string Message { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class EntityReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public EntityReference(System.Uri self) { }
+ public System.Uri Self { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.EntityReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct FileKind : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public FileKind(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.FileKind AcousticDataArchive { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind AcousticDataTranscriptionV2 { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind Audio { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind DatasetReport { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind EvaluationDetails { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind LanguageData { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind ModelReport { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind OutputFormattingData { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind PronunciationData { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind Transcription { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.FileKind TranscriptionReport { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.FileKind other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.FileKind left, Azure.AI.Speech.BatchTranscription.FileKind right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.FileKind (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.FileKind left, Azure.AI.Speech.BatchTranscription.FileKind right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class FileLinks : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal FileLinks() { }
+ public System.Uri Content { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileLinks System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileLinks System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class FileProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal FileProperties() { }
+ public int DurationMilliseconds { get { throw null; } }
+ public int Size { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.FileProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct LanguageIdentificationMode : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public LanguageIdentificationMode(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode Continuous { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode Single { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode left, Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode left, Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class LanguageIdentificationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public LanguageIdentificationProperties(System.Collections.Generic.IEnumerable candidateLocales) { }
+ public System.Collections.Generic.IList CandidateLocales { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.LanguageIdentificationMode? Mode { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary SpeechModelMapping { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ProfanityFilterMode : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ProfanityFilterMode(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode Masked { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode None { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode Removed { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.ProfanityFilterMode Tags { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode left, Azure.AI.Speech.BatchTranscription.ProfanityFilterMode right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.ProfanityFilterMode (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.ProfanityFilterMode left, Azure.AI.Speech.BatchTranscription.ProfanityFilterMode right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct PunctuationMode : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public PunctuationMode(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode Automatic { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode Dictated { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode DictatedAndAutomatic { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.PunctuationMode None { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.PunctuationMode other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.PunctuationMode left, Azure.AI.Speech.BatchTranscription.PunctuationMode right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.PunctuationMode (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.PunctuationMode left, Azure.AI.Speech.BatchTranscription.PunctuationMode right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class TranscriptionFile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal TranscriptionFile() { }
+ public System.DateTimeOffset Created { get { throw null; } }
+ public string DisplayName { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.FileKind Kind { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.FileLinks Links { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.FileProperties Properties { get { throw null; } }
+ public System.Uri Self { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionFile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionFile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TranscriptionJob : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TranscriptionJob(Azure.AI.Speech.BatchTranscription.TranscriptionProperties properties, string locale, string displayName) { }
+ public System.Collections.Generic.IList Contents { get { throw null; } }
+ public System.DateTimeOffset? Created { get { throw null; } }
+ public System.Collections.Generic.IDictionary CustomProperties { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.EntityReference Dataset { get { throw null; } set { } }
+ public string Description { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public string Id { get { throw null; } }
+ public System.DateTimeOffset? LastActionDateTime { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.TranscriptionLinks Links { get { throw null; } set { } }
+ public string Locale { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.EntityReference Model { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.TranscriptionProperties Properties { get { throw null; } set { } }
+ public System.Uri Self { get { throw null; } }
+ public System.Uri SourceContainer { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.TranscriptionStatus Status { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionJob System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionJob System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TranscriptionLinks : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TranscriptionLinks() { }
+ public System.Uri Files { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionLinks System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionLinks System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TranscriptionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TranscriptionProperties(int timeToLiveHours) { }
+ public System.Collections.Generic.IList Channels { get { throw null; } }
+ public System.Uri DestinationContainer { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.DiarizationProperties Diarization { get { throw null; } set { } }
+ public bool? DisplayFormWordLevelTimestampsEnabled { get { throw null; } set { } }
+ public int? DurationMilliseconds { get { throw null; } }
+ public Azure.AI.Speech.BatchTranscription.EntityError Error { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.LanguageIdentificationProperties LanguageIdentificationProperties { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.ProfanityFilterMode? ProfanityFilterMode { get { throw null; } set { } }
+ public Azure.AI.Speech.BatchTranscription.PunctuationMode? PunctuationMode { get { throw null; } set { } }
+ public int TimeToLiveHours { get { throw null; } set { } }
+ public bool? WordLevelTimestampsEnabled { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Speech.BatchTranscription.TranscriptionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct TranscriptionStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public TranscriptionStatus(string value) { throw null; }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus Failed { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus NotStarted { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus Running { get { throw null; } }
+ public static Azure.AI.Speech.BatchTranscription.TranscriptionStatus Succeeded { get { throw null; } }
+ public bool Equals(Azure.AI.Speech.BatchTranscription.TranscriptionStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Speech.BatchTranscription.TranscriptionStatus left, Azure.AI.Speech.BatchTranscription.TranscriptionStatus right) { throw null; }
+ public static implicit operator Azure.AI.Speech.BatchTranscription.TranscriptionStatus (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Speech.BatchTranscription.TranscriptionStatus left, Azure.AI.Speech.BatchTranscription.TranscriptionStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+}
+namespace Microsoft.Extensions.Azure
+{
+ public static partial class AISpeechBatchTranscriptionClientBuilderExtensions
+ {
+ public static Azure.Core.Extensions.IAzureClientBuilder AddBatchTranscriptionClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; }
+ public static Azure.Core.Extensions.IAzureClientBuilder AddBatchTranscriptionClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; }
+ }
+}
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Azure.AI.Speech.BatchTranscription.csproj b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Azure.AI.Speech.BatchTranscription.csproj
new file mode 100644
index 000000000000..ab5175468c5a
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Azure.AI.Speech.BatchTranscription.csproj
@@ -0,0 +1,20 @@
+
+
+ This is the Azure.AI.Speech.BatchTranscription client library for developing .NET applications with rich experience.
+ Azure SDK Code Generation Azure.AI.Speech.BatchTranscription for Azure Data Plane
+ 1.0.0-beta.1
+ Azure.AI.Speech.BatchTranscription
+ $(RequiredTargetFrameworks)
+ true
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/AISpeechBatchTranscriptionClientBuilderExtensions.cs b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/AISpeechBatchTranscriptionClientBuilderExtensions.cs
new file mode 100644
index 000000000000..91852a535252
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/AISpeechBatchTranscriptionClientBuilderExtensions.cs
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure;
+using Azure.AI.Speech.BatchTranscription;
+using Azure.Core.Extensions;
+
+namespace Microsoft.Extensions.Azure
+{
+ /// Extension methods to add to client builder.
+ public static partial class AISpeechBatchTranscriptionClientBuilderExtensions
+ {
+ /// Registers a instance.
+ /// The builder to register with.
+ /// Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com.
+ /// A credential used to authenticate to an Azure Service.
+ public static IAzureClientBuilder AddBatchTranscriptionClient(this TBuilder builder, Uri endpoint, AzureKeyCredential credential)
+ where TBuilder : IAzureClientFactoryBuilder
+ {
+ return builder.RegisterClientFactory((options) => new BatchTranscriptionClient(endpoint, credential, options));
+ }
+
+ /// Registers a instance.
+ /// The builder to register with.
+ /// The configuration values.
+ public static IAzureClientBuilder AddBatchTranscriptionClient(this TBuilder builder, TConfiguration configuration)
+ where TBuilder : IAzureClientFactoryBuilderWithConfiguration
+ {
+ return builder.RegisterClientFactory(configuration);
+ }
+ }
+}
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/AISpeechBatchTranscriptionModelFactory.cs b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/AISpeechBatchTranscriptionModelFactory.cs
new file mode 100644
index 000000000000..60ba49171da4
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/AISpeechBatchTranscriptionModelFactory.cs
@@ -0,0 +1,180 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.AI.Speech.BatchTranscription
+{
+ /// Model factory for models.
+ public static partial class AISpeechBatchTranscriptionModelFactory
+ {
+ /// Initializes a new instance of .
+ /// TranscriptionLinks.
+ /// TranscriptionProperties.
+ /// The id of this entity.
+ /// The location of this entity.
+ /// EntityReference.
+ /// EntityReference.
+ ///
+ /// A list of content urls to get audio files to transcribe. Up to 1000 urls are allowed.
+ /// This property will not be returned in a response.
+ ///
+ ///
+ /// A URL for an Azure blob container that contains the audio files. A container is allowed to have a maximum size of 5GB and a maximum number of 10000 blobs.
+ /// The maximum size for a blob is 2.5GB.
+ /// Container SAS should contain 'r' (read) and 'l' (list) permissions.
+ /// This property will not be returned in a response.
+ ///
+ /// The locale of the contained data. If Language Identification is used, this locale is used to transcribe speech for which no language could be detected.
+ /// The display name of the object.
+ /// The description of the object.
+ ///
+ /// The custom properties of this entity. The maximum allowed key length is 64 characters, the maximum
+ /// allowed value length is 256 characters and the count of allowed entries is 10.
+ ///
+ ///
+ /// The time-stamp when the current status was entered.
+ /// The time stamp is encoded as ISO 8601 date and time format
+ /// ("YYYY-MM-DDThh:mm:ssZ", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).
+ ///
+ /// The status of the object.
+ ///
+ /// The time-stamp when the object was created.
+ /// The time stamp is encoded as ISO 8601 date and time format
+ /// ("YYYY-MM-DDThh:mm:ssZ", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).
+ ///
+ /// A new instance for mocking.
+ public static TranscriptionJob TranscriptionJob(TranscriptionLinks links = null, TranscriptionProperties properties = null, string id = null, Uri self = null, EntityReference model = null, EntityReference dataset = null, IEnumerable contents = null, Uri sourceContainer = null, string locale = null, string displayName = null, string description = null, IDictionary customProperties = null, DateTimeOffset? lastActionDateTime = null, TranscriptionStatus status = default, DateTimeOffset? created = null)
+ {
+ contents ??= new List();
+ customProperties ??= new Dictionary();
+
+ return new TranscriptionJob(
+ links,
+ properties,
+ id,
+ self,
+ model,
+ dataset,
+ contents?.ToList(),
+ sourceContainer,
+ locale,
+ displayName,
+ description,
+ customProperties,
+ lastActionDateTime,
+ status,
+ created,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The location to get all files of this entity. See operation "Transcriptions_ListFiles" for more details.
+ /// A new instance for mocking.
+ public static TranscriptionLinks TranscriptionLinks(Uri files = null)
+ {
+ return new TranscriptionLinks(files, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// A value indicating whether word level timestamps are requested. The default value is false.
+ /// A value indicating whether word level timestamps for the display form are requested. The default value is false.
+ ///
+ /// The duration in milliseconds of the transcription.
+ /// Durations larger than 2^53-1 are not supported to ensure compatibility with JavaScript integers.
+ ///
+ /// A collection of the requested channel numbers. In the default case, the channels 0 and 1 are considered.
+ ///
+ /// The requested destination container.
+ ///
+ /// Remarks
+ ///
+ /// When a destination container is used in combination with a timeToLive, the metadata of a transcription will be deleted normally, but the data stored in the destination container, including transcription results, will remain untouched, because no delete permissions are required for this container.
+ ///
+ /// To support automatic cleanup, either configure blob lifetimes on the container, or use "Bring your own Storage (BYOS)" instead of destinationContainerUrl, where blobs can be cleaned up.
+ ///
+ /// The mode used for punctuation.
+ /// Mode of profanity filtering.
+ ///
+ /// How long the transcription will be kept in the system after it has completed. Once the transcription reaches the time to live after completion(successful or failed) it will be automatically deleted.
+ ///
+ /// Note: When using BYOS (bring your own storage), the result files on the customer owned storage account will also be deleted.Use either destinationContainerUrl to specify a separate container for result files which will not be deleted when the timeToLive expires, or retrieve the result files through the API and store them as needed.
+ ///
+ /// The shortest supported duration is 6 hours, the longest supported duration is 31 days. 2 days (48 hours) is the recommended default value when data is consumed directly.
+ ///
+ /// EntityError.
+ /// Speaker Identification.
+ /// LanguageIdentificationProperties.
+ /// A new instance for mocking.
+ public static TranscriptionProperties TranscriptionProperties(bool? wordLevelTimestampsEnabled = null, bool? displayFormWordLevelTimestampsEnabled = null, int? durationMilliseconds = null, IEnumerable channels = null, Uri destinationContainer = null, PunctuationMode? punctuationMode = null, ProfanityFilterMode? profanityFilterMode = null, int timeToLiveHours = default, EntityError error = null, DiarizationProperties diarization = null, LanguageIdentificationProperties languageIdentificationProperties = null)
+ {
+ channels ??= new List();
+
+ return new TranscriptionProperties(
+ wordLevelTimestampsEnabled,
+ displayFormWordLevelTimestampsEnabled,
+ durationMilliseconds,
+ channels?.ToList(),
+ destinationContainer,
+ punctuationMode,
+ profanityFilterMode,
+ timeToLiveHours,
+ error,
+ diarization,
+ languageIdentificationProperties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The code of this error.
+ /// The message for this error.
+ /// A new instance for mocking.
+ public static EntityError EntityError(string code = null, string message = null)
+ {
+ return new EntityError(code, message, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The creation time of this file. The time stamp is encoded as ISO 8601 date and time format (see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).
+ /// FileKind.
+ /// FileLinks.
+ /// The name of this file.
+ /// FileProperties.
+ /// The location of this entity.
+ /// A new instance for mocking.
+ public static TranscriptionFile TranscriptionFile(DateTimeOffset created = default, FileKind kind = default, FileLinks links = null, string displayName = null, FileProperties properties = null, Uri self = null)
+ {
+ return new TranscriptionFile(
+ created,
+ kind,
+ links,
+ displayName,
+ properties,
+ self,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The url to retrieve the content of this file.
+ /// A new instance for mocking.
+ public static FileLinks FileLinks(Uri content = null)
+ {
+ return new FileLinks(content, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The total duration in milliseconds of the file in case this file is an audio file.
+ /// The size of the data in bytes.
+ /// A new instance for mocking.
+ public static FileProperties FileProperties(int durationMilliseconds = default, int size = default)
+ {
+ return new FileProperties(durationMilliseconds, size, serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/BatchTranscriptionClient.cs b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/BatchTranscriptionClient.cs
new file mode 100644
index 000000000000..74e9b7ac54f9
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/BatchTranscriptionClient.cs
@@ -0,0 +1,697 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.AI.Speech.BatchTranscription
+{
+ // Data plane generated client.
+ /// The BatchTranscription service client.
+ public partial class BatchTranscriptionClient
+ {
+ private const string AuthorizationHeader = "Ocp-Apim-Subscription-Key";
+ private readonly AzureKeyCredential _keyCredential;
+ private readonly HttpPipeline _pipeline;
+ private readonly Uri _endpoint;
+ private readonly string _apiVersion;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ public virtual HttpPipeline Pipeline => _pipeline;
+
+ /// Initializes a new instance of BatchTranscriptionClient for mocking.
+ protected BatchTranscriptionClient()
+ {
+ }
+
+ /// Initializes a new instance of BatchTranscriptionClient.
+ /// Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public BatchTranscriptionClient(Uri endpoint, AzureKeyCredential credential) : this(endpoint, credential, new BatchTranscriptionClientOptions())
+ {
+ }
+
+ /// Initializes a new instance of BatchTranscriptionClient.
+ /// Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ /// or is null.
+ public BatchTranscriptionClient(Uri endpoint, AzureKeyCredential credential, BatchTranscriptionClientOptions options)
+ {
+ Argument.AssertNotNull(endpoint, nameof(endpoint));
+ Argument.AssertNotNull(credential, nameof(credential));
+ options ??= new BatchTranscriptionClientOptions();
+
+ ClientDiagnostics = new ClientDiagnostics(options, true);
+ _keyCredential = credential;
+ _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new AzureKeyCredentialPolicy(_keyCredential, AuthorizationHeader) }, new ResponseClassifier());
+ _endpoint = endpoint;
+ _apiVersion = options.Version;
+ }
+
+ /// Starts a new transcription job.
+ /// The resource instance.
+ /// The cancellation token to use.
+ /// is null.
+ ///
+ public virtual async Task> StartTranscriptionAsync(TranscriptionJob resource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resource, nameof(resource));
+
+ using RequestContent content = resource.ToRequestContent();
+ RequestContext context = FromCancellationToken(cancellationToken);
+ Response response = await StartTranscriptionAsync(content, context).ConfigureAwait(false);
+ return Response.FromValue(TranscriptionJob.FromResponse(response), response);
+ }
+
+ /// Starts a new transcription job.
+ /// The resource instance.
+ /// The cancellation token to use.
+ /// is null.
+ ///
+ public virtual Response StartTranscription(TranscriptionJob resource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resource, nameof(resource));
+
+ using RequestContent content = resource.ToRequestContent();
+ RequestContext context = FromCancellationToken(cancellationToken);
+ Response response = StartTranscription(content, context);
+ return Response.FromValue(TranscriptionJob.FromResponse(response), response);
+ }
+
+ ///
+ /// [Protocol Method] Starts a new transcription job.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The content to send as the body of the request.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual async Task StartTranscriptionAsync(RequestContent content, RequestContext context = null)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchTranscriptionClient.StartTranscription");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateStartTranscriptionRequest(content, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Starts a new transcription job.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The content to send as the body of the request.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual Response StartTranscription(RequestContent content, RequestContext context = null)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchTranscriptionClient.StartTranscription");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateStartTranscriptionRequest(content, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Gets the transcription identified by the given ID.
+ /// The id of this entity.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ ///
+ public virtual async Task> GetTranscriptionAsync(string id, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ RequestContext context = FromCancellationToken(cancellationToken);
+ Response response = await GetTranscriptionAsync(id, context).ConfigureAwait(false);
+ return Response.FromValue(TranscriptionJob.FromResponse(response), response);
+ }
+
+ /// Gets the transcription identified by the given ID.
+ /// The id of this entity.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ ///
+ public virtual Response GetTranscription(string id, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ RequestContext context = FromCancellationToken(cancellationToken);
+ Response response = GetTranscription(id, context);
+ return Response.FromValue(TranscriptionJob.FromResponse(response), response);
+ }
+
+ ///
+ /// [Protocol Method] Gets the transcription identified by the given ID.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The id of this entity.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual async Task GetTranscriptionAsync(string id, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchTranscriptionClient.GetTranscription");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetTranscriptionRequest(id, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// [Protocol Method] Gets the transcription identified by the given ID.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The id of this entity.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual Response GetTranscription(string id, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchTranscriptionClient.GetTranscription");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateGetTranscriptionRequest(id, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method
+ ///
+ /// [Protocol Method] Deletes the specified transcription task.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The id of this entity.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual async Task DeleteTranscriptionAsync(string id, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchTranscriptionClient.DeleteTranscription");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDeleteTranscriptionRequest(id, context);
+ return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method
+ ///
+ /// [Protocol Method] Deletes the specified transcription task.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ ///
+ ///
+ /// The id of this entity.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The response returned from the service.
+ ///
+ public virtual Response DeleteTranscription(string id, RequestContext context = null)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ using var scope = ClientDiagnostics.CreateScope("BatchTranscriptionClient.DeleteTranscription");
+ scope.Start();
+ try
+ {
+ using HttpMessage message = CreateDeleteTranscriptionRequest(id, context);
+ return _pipeline.ProcessMessage(message, context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Gets a list of transcriptions for the authenticated subscription.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The cancellation token to use.
+ ///
+ public virtual AsyncPageable GetTranscriptionsAsync(int? maxCount = null, int? skip = null, string filter = null, CancellationToken cancellationToken = default)
+ {
+ RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionsRequest(maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionsNextPageRequest(nextLink, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => TranscriptionJob.DeserializeTranscriptionJob(e), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptions", "values", "@nextLink", context);
+ }
+
+ /// Gets a list of transcriptions for the authenticated subscription.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The cancellation token to use.
+ ///
+ public virtual Pageable GetTranscriptions(int? maxCount = null, int? skip = null, string filter = null, CancellationToken cancellationToken = default)
+ {
+ RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionsRequest(maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionsNextPageRequest(nextLink, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => TranscriptionJob.DeserializeTranscriptionJob(e), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptions", "values", "@nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Gets a list of transcriptions for the authenticated subscription.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetTranscriptionsAsync(int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionsRequest(maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionsNextPageRequest(nextLink, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptions", "values", "@nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Gets a list of transcriptions for the authenticated subscription.
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetTranscriptions(int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionsRequest(maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionsNextPageRequest(nextLink, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptions", "values", "@nextLink", context);
+ }
+
+ /// Gets the files of the transcription identified by the given ID.
+ /// The id of this entity.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ ///
+ public virtual AsyncPageable GetTranscriptionFilesAsync(string id, int? maxCount = null, int? skip = null, string filter = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionFilesRequest(id, maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionFilesNextPageRequest(nextLink, id, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => TranscriptionFile.DeserializeTranscriptionFile(e), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptionFiles", "values", "@nextLink", context);
+ }
+
+ /// Gets the files of the transcription identified by the given ID.
+ /// The id of this entity.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ ///
+ public virtual Pageable GetTranscriptionFiles(string id, int? maxCount = null, int? skip = null, string filter = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null;
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionFilesRequest(id, maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionFilesNextPageRequest(nextLink, id, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => TranscriptionFile.DeserializeTranscriptionFile(e), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptionFiles", "values", "@nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Gets the files of the transcription identified by the given ID
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The id of this entity.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual AsyncPageable GetTranscriptionFilesAsync(string id, int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionFilesRequest(id, maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionFilesNextPageRequest(nextLink, id, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptionFiles", "values", "@nextLink", context);
+ }
+
+ ///
+ /// [Protocol Method] Gets the files of the transcription identified by the given ID
+ ///
+ /// -
+ ///
+ /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
+ ///
+ ///
+ /// -
+ ///
+ /// Please try the simpler convenience overload with strongly typed models first.
+ ///
+ ///
+ ///
+ ///
+ /// The id of this entity.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// Filter the result list using the given expression.
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ /// Service returned a non-success status code.
+ /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below.
+ ///
+ public virtual Pageable GetTranscriptionFiles(string id, int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ Argument.AssertNotNullOrEmpty(id, nameof(id));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetTranscriptionFilesRequest(id, maxCount, skip, filter, context);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetTranscriptionFilesNextPageRequest(nextLink, id, maxCount, skip, filter, context);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "BatchTranscriptionClient.GetTranscriptionFiles", "values", "@nextLink", context);
+ }
+
+ internal HttpMessage CreateStartTranscriptionRequest(RequestContent content, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier201);
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRaw("/speechtotext", false);
+ uri.AppendPath("/transcriptions:submit", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Content-Type", "application/json");
+ request.Content = content;
+ return message;
+ }
+
+ internal HttpMessage CreateGetTranscriptionRequest(string id, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRaw("/speechtotext", false);
+ uri.AppendPath("/transcriptions/", false);
+ uri.AppendPath(id, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ internal HttpMessage CreateDeleteTranscriptionRequest(string id, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier204);
+ var request = message.Request;
+ request.Method = RequestMethod.Delete;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRaw("/speechtotext", false);
+ uri.AppendPath("/transcriptions/", false);
+ uri.AppendPath(id, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ internal HttpMessage CreateGetTranscriptionsRequest(int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRaw("/speechtotext", false);
+ uri.AppendPath("/transcriptions", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ if (maxCount != null)
+ {
+ uri.AppendQuery("top", maxCount.Value, true);
+ }
+ if (skip != null)
+ {
+ uri.AppendQuery("skip", skip.Value, true);
+ }
+ if (filter != null)
+ {
+ uri.AppendQuery("filter", filter, true);
+ }
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ internal HttpMessage CreateGetTranscriptionFilesRequest(string id, int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRaw("/speechtotext", false);
+ uri.AppendPath("/transcriptions/", false);
+ uri.AppendPath(id, true);
+ uri.AppendPath("/files", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ if (maxCount != null)
+ {
+ uri.AppendQuery("top", maxCount.Value, true);
+ }
+ if (skip != null)
+ {
+ uri.AppendQuery("skip", skip.Value, true);
+ }
+ if (filter != null)
+ {
+ uri.AppendQuery("filter", filter, true);
+ }
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ internal HttpMessage CreateGetTranscriptionsNextPageRequest(string nextLink, int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRaw("/speechtotext", false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ internal HttpMessage CreateGetTranscriptionFilesNextPageRequest(string nextLink, string id, int? maxCount, int? skip, string filter, RequestContext context)
+ {
+ var message = _pipeline.CreateMessage(context, ResponseClassifier200);
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRaw("/speechtotext", false);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ private static RequestContext DefaultRequestContext = new RequestContext();
+ internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default)
+ {
+ if (!cancellationToken.CanBeCanceled)
+ {
+ return DefaultRequestContext;
+ }
+
+ return new RequestContext() { CancellationToken = cancellationToken };
+ }
+
+ private static ResponseClassifier _responseClassifier201;
+ private static ResponseClassifier ResponseClassifier201 => _responseClassifier201 ??= new StatusCodeClassifier(stackalloc ushort[] { 201 });
+ private static ResponseClassifier _responseClassifier200;
+ private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 });
+ private static ResponseClassifier _responseClassifier204;
+ private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 });
+ }
+}
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/BatchTranscriptionClientOptions.cs b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/BatchTranscriptionClientOptions.cs
new file mode 100644
index 000000000000..2194aa669832
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/BatchTranscriptionClientOptions.cs
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+
+namespace Azure.AI.Speech.BatchTranscription
+{
+ /// Client options for BatchTranscriptionClient.
+ public partial class BatchTranscriptionClientOptions : ClientOptions
+ {
+ private const ServiceVersion LatestVersion = ServiceVersion.V2024_11_15;
+
+ /// The version of the service to use.
+ public enum ServiceVersion
+ {
+ /// Service version "2024-11-15".
+ V2024_11_15 = 1,
+ }
+
+ internal string Version { get; }
+
+ /// Initializes new instance of BatchTranscriptionClientOptions.
+ public BatchTranscriptionClientOptions(ServiceVersion version = LatestVersion)
+ {
+ Version = version switch
+ {
+ ServiceVersion.V2024_11_15 => "2024-11-15",
+ _ => throw new NotSupportedException()
+ };
+ }
+ }
+}
diff --git a/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/DiarizationProperties.Serialization.cs b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/DiarizationProperties.Serialization.cs
new file mode 100644
index 000000000000..685bb8f5047d
--- /dev/null
+++ b/sdk/cognitiveservices/Azure.AI.Speech.BatchTranscription/src/Generated/DiarizationProperties.Serialization.cs
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.Speech.BatchTranscription
+{
+ public partial class DiarizationProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DiarizationProperties)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("enabled"u8);
+ writer.WriteBooleanValue(Enabled);
+ writer.WritePropertyName("maxSpeakers"u8);
+ writer.WriteNumberValue(MaxSpeakers);
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ DiarizationProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DiarizationProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDiarizationProperties(document.RootElement, options);
+ }
+
+ internal static DiarizationProperties DeserializeDiarizationProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ bool enabled = default;
+ int maxSpeakers = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("enabled"u8))
+ {
+ enabled = property.Value.GetBoolean();
+ continue;
+ }
+ if (property.NameEquals("maxSpeakers"u8))
+ {
+ maxSpeakers = property.Value.GetInt32();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DiarizationProperties(enabled, maxSpeakers, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel