OK, you didn't need to install gedit. Gedit is the Gnome/Unity equivalent of our Kate or Kwrite app. You could have used Kate as effectively.
Also, you shouldn't run gui apps using sudo. You should use kdesudo. I guess you probably didn't realise gedit was a gui app?
So, the error messages you got trying to run gedit were more to do with trying to run a Gnome app in Kubuntu (KDE) and maybe because you used sudo instead of kdesudo (I think).
Instead of the line on that page (the Second Alternate Method): sudo gedit /etc/default/speech-dispatcher
you should instead try this: kdesudo kate /etc/default/speech-dispatcher
Also, you shouldn't run gui apps using sudo. You should use kdesudo. I guess you probably didn't realise gedit was a gui app?
So, the error messages you got trying to run gedit were more to do with trying to run a Gnome app in Kubuntu (KDE) and maybe because you used sudo instead of kdesudo (I think).
Instead of the line on that page (the Second Alternate Method): sudo gedit /etc/default/speech-dispatcher
you should instead try this: kdesudo kate /etc/default/speech-dispatcher
Comment