Skip to content

Commit 61648cf

Browse files
committed
Renamed example program.
1 parent 9440387 commit 61648cf

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed
File renamed without changes.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//
44
// Description: An example WebRTC application that can be used to interact with
55
// OpenAI's real-time API https://platform.openai.com/docs/guides/realtime-webrtc.
6+
// This example is very similar to the GetStarted example but instead of instantiating
7+
// the WebRTCEndPoint directly it uses the DI container to create it.
68
//
79
// NOTE: As of 10 May 2025 this example does work to establish an audio stream and is
810
// able to receive data channel messages. There is no echo cancellation feature in this
@@ -18,7 +20,7 @@
1820
//
1921
// History:
2022
// 19 Dec 2024 Aaron Clauson Created, Dublin, Ireland.
21-
// 17 Jan 2025 Aaron Clauson Added create resposne data channel message to trigger conversation start.
23+
// 17 Jan 2025 Aaron Clauson Added create response data channel message to trigger conversation start.
2224
// 10 May 2025 Aaron Clauson Big refactor of the OpenAI.Realtime library to use HttpClientFactory.
2325
// 27 May 2025 Aaron Clauson Moved from SIPSorcery main repo to SIPSorcery.OpenAI.WebRTC repo.
2426
//
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenAI WebRTC Get Started Example using Dependency Injection
22

3-
This example demonstrates how to set up and run a basic WebRTC application that interacts with OpenAI's [Real-time WebRTC API](https://platform.openai.com/docs/guides/realtime-webrtc). This version is designed for ASP.NET Core and Dependency Injection (DI) environments, using `HttpClientFactory` and DI-compliant service wiring.
3+
This example demonstrates how to set up and run a basic WebRTC application that interacts with OpenAI's [Real-time WebRTC API](https://platform.openai.com/docs/guides/realtime-webrtc). This version is demonstrates using a Dependency Injection (DI) environment, using `HttpClientFactory` and DI-compliant service wiring.
44

55
> ⚠️ **Note:** This demo does not include echo cancellation. If your Windows audio device doesn't provide echo cancellation, ChatGPT may end up talking to itself. To avoid this, use a headset.
66

examples/SIPSorcery.OpenAI.WebRTC.Examples.sln

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SIPSorcery.OpenAI.WebRTC",
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetStarted", "GetStarted\GetStarted.csproj", "{D669428C-D3CC-92DA-15BE-DB6D38A4FCB1}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DependencyInjection", "DependencyInjection\DependencyInjection.csproj", "{5C11CBC3-7CD2-C0CE-516D-4CA9B8BEADAC}"
11-
EndProject
1210
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LocalFunctions", "LocalFunctions\LocalFunctions.csproj", "{27329C51-B25C-5286-0A01-091D42095E0F}"
1311
EndProject
1412
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetPaid", "GetPaid\GetPaid.csproj", "{1BE52437-8C69-B89D-CAB1-5D86FEFEB85B}"
@@ -19,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetGetStarted", "AspNetG
1917
EndProject
2018
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetLocalFunction", "AspNetLocalFunction\AspNetLocalFunction.csproj", "{C03D7AB6-8410-02A8-41C3-022FF23860AC}"
2119
EndProject
20+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetStartedDI", "GetStartedDI\GetStartedDI.csproj", "{C0F1E5F2-826B-CD2D-581F-28D774181BD7}"
21+
EndProject
2222
Global
2323
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2424
Debug|Any CPU = Debug|Any CPU
@@ -33,10 +33,6 @@ Global
3333
{D669428C-D3CC-92DA-15BE-DB6D38A4FCB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
3434
{D669428C-D3CC-92DA-15BE-DB6D38A4FCB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
3535
{D669428C-D3CC-92DA-15BE-DB6D38A4FCB1}.Release|Any CPU.Build.0 = Release|Any CPU
36-
{5C11CBC3-7CD2-C0CE-516D-4CA9B8BEADAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37-
{5C11CBC3-7CD2-C0CE-516D-4CA9B8BEADAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
38-
{5C11CBC3-7CD2-C0CE-516D-4CA9B8BEADAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
39-
{5C11CBC3-7CD2-C0CE-516D-4CA9B8BEADAC}.Release|Any CPU.Build.0 = Release|Any CPU
4036
{27329C51-B25C-5286-0A01-091D42095E0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4137
{27329C51-B25C-5286-0A01-091D42095E0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
4238
{27329C51-B25C-5286-0A01-091D42095E0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -57,6 +53,10 @@ Global
5753
{C03D7AB6-8410-02A8-41C3-022FF23860AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
5854
{C03D7AB6-8410-02A8-41C3-022FF23860AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
5955
{C03D7AB6-8410-02A8-41C3-022FF23860AC}.Release|Any CPU.Build.0 = Release|Any CPU
56+
{C0F1E5F2-826B-CD2D-581F-28D774181BD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
57+
{C0F1E5F2-826B-CD2D-581F-28D774181BD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
58+
{C0F1E5F2-826B-CD2D-581F-28D774181BD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
59+
{C0F1E5F2-826B-CD2D-581F-28D774181BD7}.Release|Any CPU.Build.0 = Release|Any CPU
6060
EndGlobalSection
6161
GlobalSection(SolutionProperties) = preSolution
6262
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)