simplify speech code