espeak-ng

Text-to-speech synthesizer supporting 100+ languages and accents

brewmacoslinux
Try with needOr install directly
Source

About

Speech synthesizer that supports more than hundred languages and accents

Commands

espeak-ng

Examples

Speak text in English with default voice$ espeak-ng 'Hello, this is a test'
Speak text in French with slower speech rate$ espeak-ng -v fr -s 120 'Bonjour, comment allez-vous?'
Generate speech to an audio file in WAV format$ espeak-ng -w output.wav 'This is saved to a file'