Where Can I Find

There maybe a more “Macro” way of doing the following but possibly something like:

/script SetCVar("Sound_EnableErrorSpeech", 0) 
/cast FireBall
/script C_Timer.After(0.05, function() SetCVar("Sound_EnableErrorSpeech", 1) end)