Skip to content

Commit

Permalink
Merge pull request #315 from dvonthenen/revert-tts-ws-temporarily
Browse files Browse the repository at this point in the history
Remove TTS WS Implementation from `main`
  • Loading branch information
davidvonthenen authored Jul 15, 2024
2 parents d6a0726 + a61d3a0 commit 87ed8b7
Show file tree
Hide file tree
Showing 25 changed files with 16 additions and 1,520 deletions.
13 changes: 0 additions & 13 deletions Deepgram.Dev.sln
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "speech-to-text", "speech-to
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "rest", "rest", "{C1A7ADF7-ACAC-4B10-8266-C7224156C012}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "websocket", "websocket", "{889B3075-777E-476D-BB18-B1CD647F1893}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "file", "file", "{F2DCE1E6-FC12-4CA5-A738-5A3F359B8A96}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "hello-world", "hello-world", "{F31817AD-AC9F-4021-A9E0-7C26C31D5744}"
Expand All @@ -157,10 +155,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Speak", "examples\text-to-s
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Speak", "examples\text-to-speech\rest\file\woodchuck\Speak.csproj", "{12115887-AFBF-4EEF-953D-936B9D810E97}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "simple", "simple", "{2F92D959-D3C7-4EFF-8549-C6162E517644}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Speak", "examples\text-to-speech\websocket\simple\Speak.csproj", "{ECB0B55E-54C1-4723-8641-9249E7507FB0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -291,10 +285,6 @@ Global
{12115887-AFBF-4EEF-953D-936B9D810E97}.Debug|Any CPU.Build.0 = Debug|Any CPU
{12115887-AFBF-4EEF-953D-936B9D810E97}.Release|Any CPU.ActiveCfg = Release|Any CPU
{12115887-AFBF-4EEF-953D-936B9D810E97}.Release|Any CPU.Build.0 = Release|Any CPU
{ECB0B55E-54C1-4723-8641-9249E7507FB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ECB0B55E-54C1-4723-8641-9249E7507FB0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ECB0B55E-54C1-4723-8641-9249E7507FB0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ECB0B55E-54C1-4723-8641-9249E7507FB0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -364,14 +354,11 @@ Global
{B98F6A00-292E-431F-8B11-0CFCA5FD1E37} = {02746530-6811-4F1B-8851-544C89CA66DA}
{5EEA8D9D-0C0D-4EE3-93B1-F0133C629478} = {C673DFD1-528A-4BAE-94E6-02EF058AC363}
{C1A7ADF7-ACAC-4B10-8266-C7224156C012} = {E2E3000D-FBBA-450E-A4E0-3542B38ADAFD}
{889B3075-777E-476D-BB18-B1CD647F1893} = {E2E3000D-FBBA-450E-A4E0-3542B38ADAFD}
{F2DCE1E6-FC12-4CA5-A738-5A3F359B8A96} = {C1A7ADF7-ACAC-4B10-8266-C7224156C012}
{F31817AD-AC9F-4021-A9E0-7C26C31D5744} = {F2DCE1E6-FC12-4CA5-A738-5A3F359B8A96}
{E1B8DE3D-2B86-4A60-BDC1-A7F425986DC1} = {F2DCE1E6-FC12-4CA5-A738-5A3F359B8A96}
{1850D8CC-ADFD-4187-80D4-C5DBDA55B6E3} = {F31817AD-AC9F-4021-A9E0-7C26C31D5744}
{12115887-AFBF-4EEF-953D-936B9D810E97} = {E1B8DE3D-2B86-4A60-BDC1-A7F425986DC1}
{2F92D959-D3C7-4EFF-8549-C6162E517644} = {889B3075-777E-476D-BB18-B1CD647F1893}
{ECB0B55E-54C1-4723-8641-9249E7507FB0} = {2F92D959-D3C7-4EFF-8549-C6162E517644}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8D4ABC6D-7126-4EE2-9303-43A954616B2A}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ public void PostAsync_Should_Throw_HttpRequestException_On_UnsuccessfulResponse(
public async Task Delete_Should_Throws_HttpRequestException_On_Response_Containing_Error()
{
// Input and Output
var httpClient = MockHttpClient.CreateHttpClientWithException(new DeepgramException());
var httpClient = MockHttpClient.CreateHttpClientWithException(new HttpRequestException());

// Fake Clients
var client = new ConcreteRestClient(_apiKey, _clientOptions);

// Act & Assert
await client.Invoking(async y => await y.DeleteAsync<MessageResponse>($"{Defaults.DEFAULT_URI}/{UriSegments.PROJECTS}"))
.Should().ThrowAsync<DeepgramException>();
.Should().ThrowAsync<HttpRequestException>();
}

//Test for the delete calls that do not return a value
Expand Down
20 changes: 10 additions & 10 deletions Deepgram/ClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ public static ISpeakRESTClient CreateSpeakRESTClient(string apiKey = "", Deepgra
return new SpeakRESTClient(apiKey, options, httpId);
}

/// <summary>
/// Create a new AnalyzeClient
/// </summary>
/// <param name="apiKey"></param>
/// <param name="options"></param>
/// <returns></returns>
public static ISpeakWebSocketClient CreateSpeakWebSocketClient(string apiKey = "", DeepgramWsClientOptions? options = null)
{
return new SpeakWebSocketClient(apiKey, options);
}
///// <summary>
///// Create a new AnalyzeClient
///// </summary>
///// <param name="apiKey"></param>
///// <param name="options"></param>
///// <returns></returns>
//public static ISpeakWebSocketClient CreateSpeakWebSocketClient(string apiKey = "", DeepgramWsClientOptions? options = null)
//{
// return new SpeakWebSocketClient(apiKey, options);
//}
}
143 changes: 0 additions & 143 deletions Deepgram/Clients/Interfaces/v1/ISpeakWebSocketClient.cs

This file was deleted.

Loading

0 comments on commit 87ed8b7

Please sign in to comment.