Skip to content

Commit 6540068

Browse files
committed
Tweaks
1 parent b4fe7d2 commit 6540068

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

sdk/ai/Azure.AI.VoiceLive/src/ConversationSessionOptions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ internal override VoiceLiveRequestSession ToRequestSession()
9393
session.Model = Model;
9494
}
9595

96+
if (!string.IsNullOrEmpty(""))
97+
{
98+
99+
}
100+
96101
if (!string.IsNullOrEmpty(Instructions))
97102
{
98103
session.Instructions = Instructions;

sdk/ai/Azure.AI.VoiceLive/src/Generated/VoiceLiveClient.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/ai/Azure.AI.VoiceLive/src/VoiceLiveClient.WebSockets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private static Uri ConvertToWebSocketEndpoint(Uri httpEndpoint)
144144
// Ensure the path includes the WebSocket endpoint
145145
if (!builder.Path.EndsWith("/realtime", StringComparison.OrdinalIgnoreCase))
146146
{
147-
builder.Path = builder.Path.TrimEnd('/') + "/realtime";
147+
builder.Path = builder.Path.TrimEnd('/') + "/voice-agent/realtime";
148148
}
149149

150150
return builder.Uri;

sdk/ai/Azure.AI.VoiceLive/src/VoiceLiveSession.Protocol.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ protected internal virtual async Task ConnectAsync(CancellationToken cancellatio
2929
try
3030
{
3131
// Configure the WebSocket connection
32-
clientWebSocket.Options.AddSubProtocol("voicelive-v1");
32+
//clientWebSocket.Options.AddSubProtocol("voicelive-v1");
3333

3434
// Add authorization header
3535
string credentialValue = _credential.Key;
36-
clientWebSocket.Options.SetRequestHeader("Authorization", $"Bearer {credentialValue}");
36+
clientWebSocket.Options.SetRequestHeader("api-key", $"{credentialValue}");
3737

3838
// Add any additional headers required by the VoiceLive service
3939
clientWebSocket.Options.SetRequestHeader("User-Agent", "Azure-VoiceLive-SDK/.NET");

0 commit comments

Comments
 (0)