|
|
|
|
|
by otterpro
3415 days ago
|
|
I had to do a double-take on the source code, as it looked just like Ruby. It's the first Crystal code (https://crystal-lang.org/) I've ever seen, and the interesting part is that it compiles Ruby-like code into executable. Anyway, the code can be summed up as "Process.run("say -v #{voice} \"#{text}\"", shell: true)", in which it calls "say" command to speak the voice of text file in macOS terminal. PS: Does anybody know if the goal of Crystal is to be like Go, and if there's any performance advantage using Crystal, compared to MRI? |
|