Skip to content

Commit

Permalink
AudioCategory의 상태가 categoryChanged일경우 NewDeviceAvailable과 동일하게 동작하도록 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkJongSang committed May 2, 2024
1 parent 659975d commit 54f9e0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions NuguClientKit/Sources/Client/NuguClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -770,12 +770,10 @@ extension NuguClient: AudioSessionManagerDelegate {
if previousRoute?.outputs.first?.portType == .carAudio {
speechRecognizerAggregator.startListeningWithTrigger()
}
case .newDeviceAvailable:
case .newDeviceAvailable, .categoryChange:
if audioSessionManager?.isCarplayConnected() == true {
speechRecognizerAggregator.stopListening()
}
case .categoryChange:
break
}
}

Expand Down

0 comments on commit 54f9e0b

Please sign in to comment.