Skip to content

Commit 96fc7cf

Browse files
committed
fix
1 parent 0047811 commit 96fc7cf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/ElevenLabs/Conversation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ public final class Conversation: ObservableObject, RoomDelegate {
445445
audioManager.onMutedSpeechActivity = { [weak self] _, event in
446446
Task { @MainActor [weak self] in
447447
guard let self else { return }
448-
if let handler = self.options.audioConfiguration?.onSpeechActivity {
448+
if let handler = options.audioConfiguration?.onSpeechActivity {
449449
handler(event)
450450
}
451-
if let handler = self.options.onSpeechActivity {
451+
if let handler = options.onSpeechActivity {
452452
handler(event)
453453
}
454454
}

Tests/ElevenLabsTests/Tests/ConversationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ private extension XCTestCase {
435435
_ message: @autoclosure () -> String = "",
436436
file: StaticString = #filePath,
437437
line: UInt = #line,
438-
errorHandler: (Error) -> Void = { _ in }
438+
errorHandler: (Error) -> Void = { _ in },
439439
) async {
440440
do {
441441
_ = try await expression()

0 commit comments

Comments
 (0)