noel-friedrich / terminal

Terminal-style Personal Homepage
https://noel-friedrich.de/terminal
MIT License
44 stars 7 forks source link

Add say command #16

Closed colin-chadwick closed 8 months ago

colin-chadwick commented 8 months ago

Adds "say" command that enables the terminal to speak 175+ languages with a custom pitch.

noel-friedrich commented 8 months ago

amazing! Thank you! One tiny thing I'll change; the command should probably keep running while the text is being spoken so that you can cancel the voice output by interrupting the terminal (CTRL+C).

I love it!

noel-friedrich commented 8 months ago

I made it interruptable using a bit of a hacky trick: the "sleep" function (terminal.sleep) automatically takes care of interrupts in between by checking for the interrupt flag on the terminal object!