From 2353fe2f0c099e00cdea5d8fa5bd7836b0f30b7b Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Wed, 20 Nov 2024 14:12:15 -0500 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ccc49bda..09db7250 100644 --- a/README.md +++ b/README.md @@ -440,7 +440,7 @@ using var session = await api.RealtimeEndpoint.CreateSessionAsync(options); var responseTask = await session.ReceiveUpdatesAsync(ServerEvents, cancellationTokenSource.Token); await session.SendAsync(new ConversationItemCreateRequest("Hello!")); await session.SendAsync(new CreateResponseRequest()); -await session.SendAsync(new InputAudioBufferAppendRequest(new ReadOnlyMemory(new byte[1024 * 4])), cts.Token); +await session.SendAsync(new InputAudioBufferAppendRequest(new ReadOnlyMemory(new byte[1024 * 4])), cancellationTokenSource.Token); await session.SendAsync(new ConversationItemCreateRequest("GoodBye!")); await session.SendAsync(new CreateResponseRequest()); await responseTask;