VoiceWake: skip send chime when nothing to send
parent
ffaf968940
commit
ec046411f1
|
|
@ -137,7 +137,7 @@ actor VoicePushToTalk {
|
|||
forward = await MainActor.run { AppStateStore.shared.voiceWakeForwardConfig }
|
||||
}
|
||||
|
||||
if let chime = self.activeConfig?.sendChime, chime != .none {
|
||||
if !finalText.isEmpty, let chime = self.activeConfig?.sendChime, chime != .none {
|
||||
await MainActor.run { VoiceWakeChimePlayer.play(chime) }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ actor VoiceWakeRuntime {
|
|||
committed: finalTranscript,
|
||||
volatile: "",
|
||||
isFinal: true)
|
||||
if config.sendChime != .none {
|
||||
if !finalTranscript.isEmpty, config.sendChime != .none {
|
||||
await MainActor.run { VoiceWakeChimePlayer.play(config.sendChime) }
|
||||
}
|
||||
await MainActor.run {
|
||||
|
|
|
|||
Loading…
Reference in New Issue