fix: add name correction action in _voice_downstream_name_update function
deploy / deploy (push) Successful in 30s
deploy / deploy (push) Successful in 30s
This commit is contained in:
@@ -746,7 +746,13 @@ def _voice_downstream_name_update(
|
||||
action = "provide" if not name_value else "confirm"
|
||||
candidate = candidate or name_value
|
||||
elif status == "name_obtained":
|
||||
pass
|
||||
if (
|
||||
candidate
|
||||
and candidate_key
|
||||
and candidate_key != current_key
|
||||
and _voice_has_name_correction(transcript_text)
|
||||
):
|
||||
action = "correct"
|
||||
else:
|
||||
if explicit_candidate:
|
||||
action = "provide"
|
||||
|
||||
Reference in New Issue
Block a user