You cannot call a function outside of any functions (like in the script header say for example). You can only do simple stuff like variable declations outside of a function.
Edit the global script, and look for the function game_start(), add your code
inside of that function, like this:
function game_start() {
// called when the game starts, before the first room is loaded
SetSpeechFont (3);
}