apply same logic as 8adde2b284afcf26738f97f4698adae57dbfa38b to transcribe_task