Download apps/shared/OpenClawKit/Sources/OpenClawChatUI/OpenClawChatTalkControl.swift from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 2.36 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/apps/shared/OpenClawKit/Sources/OpenClawChatUI/OpenClawChatTalkControl.swift
- Command line
-
hf download hf://SaylorTwift/openclaw/apps/shared/OpenClawKit/Sources/OpenClawChatUI/OpenClawChatTalkControl.swift
-
curl -L -o OpenClawChatTalkControl.swift https://huggingface.co/SaylorTwift/openclaw/resolve/main/apps/shared/OpenClawKit/Sources/OpenClawChatUI/OpenClawChatTalkControl.swift
2.36 kB
| public struct OpenClawChatAudioInputDevice: Equatable, Identifiable, Sendable { | |
| public var id: String | |
| public var name: String | |
| public init(id: String, name: String) { | |
| self.id = id | |
| self.name = name | |
| } | |
| } | |
| public enum OpenClawCameraFacingSelection: String, Equatable, Sendable { | |
| case back | |
| case front | |
| } | |
| public struct OpenClawChatTalkControl { | |
| public var isEnabled: Bool | |
| public var isListening: Bool | |
| public var isSpeaking: Bool | |
| public var isGatewayConnected: Bool | |
| public var statusText: String | |
| public var providerLabel: String | |
| public var level: Double | |
| public var partialTranscript: String | |
| public var recentTranscript: [String] | |
| public var inputDevices: [OpenClawChatAudioInputDevice] | |
| public var selectedInputDeviceID: String? | |
| public var selectInputDevice: ( (_ deviceID: String?) -> Void)? | |
| public var cameraFacing: OpenClawCameraFacingSelection? | |
| public var flipCamera: ( () -> Void)? | |
| public var toggle: (_ sessionKey: String) -> Void | |
| public init( | |
| isEnabled: Bool, | |
| isListening: Bool, | |
| isSpeaking: Bool, | |
| isGatewayConnected: Bool, | |
| statusText: String, | |
| providerLabel: String, | |
| level: Double = 0, | |
| partialTranscript: String = "", | |
| recentTranscript: [String] = [], | |
| inputDevices: [OpenClawChatAudioInputDevice] = [], | |
| selectedInputDeviceID: String? = nil, | |
| selectInputDevice: ( (_ deviceID: String?) -> Void)? = nil, | |
| cameraFacing: OpenClawCameraFacingSelection? = nil, | |
| flipCamera: ( () -> Void)? = nil, | |
| toggle: @escaping (_ sessionKey: String) -> Void) | |
| { | |
| self.isEnabled = isEnabled | |
| self.isListening = isListening | |
| self.isSpeaking = isSpeaking | |
| self.isGatewayConnected = isGatewayConnected | |
| self.statusText = statusText | |
| self.providerLabel = providerLabel | |
| self.level = level | |
| self.partialTranscript = partialTranscript | |
| self.recentTranscript = recentTranscript | |
| self.inputDevices = inputDevices | |
| self.selectedInputDeviceID = selectedInputDeviceID | |
| self.selectInputDevice = selectInputDevice | |
| self.cameraFacing = cameraFacing | |
| self.flipCamera = flipCamera | |
| self.toggle = toggle | |
| } | |
| } | |