Attempt to fix the rest of speech interrupting when it shouldn't. Also play radio buttons after the ui after they figure out if they are checked or not.
This commit is contained in:
1 parent
2c6ab2ce76
commit
82887b3897
64 files changed
+501
-225
No files matched your search
@@ -55,7 +55,6 @@ func (handler *eventReviewHandler) whereAmI() {
|
||||
text = "Could not find current location."
|
||||
role = "system"
|
||||
}
|
||||
handler.speech.Interrupt()
|
||||
handler.speech.Enqueue(speechRequest{Text: text, Chunks: spoken.WithText(text).Chunks, Role: role, Cause: "where-am-i"})
|
||||
handler.logger.Debug("queued where am I presentation", "role", role)
|
||||
}
|
||||
@@ -137,7 +136,6 @@ func (handler *eventReviewHandler) handle(result review.Result) {
|
||||
fallbackOptions := state.presentationOptions
|
||||
fallbackOptions.RoleSoundPresentation = "sound_and_speech"
|
||||
fallback := presentation.DocumentLineSpeechWithOptions(result.DocumentLineData, fallbackOptions)
|
||||
speech.Interrupt()
|
||||
if text == "" && len(cues) == 0 {
|
||||
return
|
||||
}
|
||||
@@ -262,7 +260,6 @@ func presentObjectReviewResult(logger *slog.Logger, speech speechEnqueuer, resul
|
||||
role = "system"
|
||||
}
|
||||
}
|
||||
speech.Interrupt()
|
||||
speech.Enqueue(speechRequest{Text: text, Chunks: spoken.WithText(text).Chunks, Role: role, Cause: "object-review"})
|
||||
logger.Debug("queued object review presentation", "direction", result.Direction.String(), "moved", result.Moved, "role", role)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user