0

I just found out sudo insults, and I would think it would be fun to get those slanders out through festival, but only the insults - how to do that on Linux?

Jeeves
  • 11
  • 1
  • Please [edit] your question and tell us what operating system you are using. I assume you are referring to [this festival](https://wiki.archlinux.org/index.php/Festival), right? – terdon Jun 28 '20 at 14:04

1 Answers1

0

Insults are simply messages that sudo outputs exactly as all the other messages.

You could change this part of the source code:

#ifdef INSULT
    if (def_insults)
    warning = INSULT;
#endif

to something like:

#ifdef INSULT
    if (def_insults)
       say(INSULT);
#endif

You have to define say() of course and decide how to interface with a Text To Speech system of your choice (some are listed here).

There are other solutions, related to assistive technology. For example running sudo on yasr and making it only read insults and ignore everything else (you'll have to make them recognizable though).

Eduardo Trápani
  • 12,032
  • 1
  • 18
  • 35