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;