Fix speech structure leak in the AGI speech recognition integration.