Closed dvonthenen closed 4 months ago
The recent updates to the Deepgram.Dev solution primarily involve the introduction of several client interfaces and their implementations across various services like Analyze, Live, Manage, OnPrem, PreRecorded, and Speak. Additionally, there are new example projects demonstrating the usage of these clients in different contexts such as streaming, managing, and analyzing audio data. These changes enhance the modularity and extend the functionality of the Deepgram SDK.
File Path | Change Summary |
---|---|
Deepgram/ClientFactory.cs |
Introduced ClientFactory for creating service-specific clients. |
Deepgram/Clients/.../v1/Client.cs |
Added implementations for various client interfaces. |
Deepgram/Clients/Interfaces/v1/I*.cs |
Created interfaces for different clients (Analyze, Live, Manage, OnPrem, PreRecorded, Speak). |
examples/.../factory_example/Factory.csproj |
Introduced .NET project configurations for various examples. |
examples/.../factory_example/Program.cs |
Added functionality to utilize Deepgram SDK in different contexts (analyze, manage, speak, etc.). |
examples/speak/file/.../Program.cs |
Enhanced JSON serialization for better output formatting. |
examples/streaming/.../Program.cs |
Updated resource management by modifying the disposal of liveClient . |
Addresses issue: https://github.com/deepgram/deepgram-dotnet-sdk/issues/273
This implements client interfaces and factory methods to instantiate each of these clients. The point of this PR is encapsulate the clients without needing to expose the internal details.
Examples are provided for each client type.