Das Mac-OS-X-Terminal zum Sprechen bringen

Unter Mac OS X existiert eine Sprach-API, mit der Sie Ihr Mac OS X zum Sprechen bringen können. Hierfür kommt der say-Befehl im Terminal (befindet sich im Programm-Ordner "Dienstprogramme") zum Einsatz. Diese API nutzt übrigens auch der iPod Shuffle um Song-Titel, Alben-Titel und Wiedergabe-Listen vorlesen zu können. Bei der Synchronisation des iPods in iTunes werden die ID3-Tags der Tracks gelesen und mit dieser API vertont und dann mit auf den iPod geladen. Prinzipiell können Sie mit folgendem Befehl loslegen.

say "To be, or not to be: That is the question..."

Die Default-Stimme wird allerdings recht schnell langweilig – glücklicherweise bietet die API eine ganze Palette an Stimmen, die sich mit dem Parameter -v auswählen lassen.

Männliche Stimmen
say -v Bruce "To be, or not to be: That is the question..."
say -v Fred "To be, or not to be: That is the question..."
say -v Junior "To be, or not to be: That is the question..."
say -v Ralph "To be, or not to be: That is the question..."

Weibliche Stimmen
say -v Agnes "To be, or not to be: That is the question..."
say -v Kathy "To be, or not to be: That is the question..."
say -v Princess "To be, or not to be: That is the question..."
say -v Vicki "To be, or not to be: That is the question..."
say -v Victoria "To be, or not to be: That is the question..."

Weitere Stimmen
say -v Albert "To be, or not to be: That is the question..."
say -v "Bad News" "To be, or not to be: That is the question..."
say -v Bahh "To be, or not to be: That is the question..."
say -v Bells "To be, or not to be: That is the question..."
say -v Boing "To be, or not to be: That is the question..."
say -v Bubbles "To be, or not to be: That is the question..."
say -v Cellos "To be, or not to be: That is the question..."
say -v Deranged "To be, or not to be: That is the question..."
say -v "Good News" "To be, or not to be: That is the question..."
say -v Hysterical "To be, or not to be: That is the question..."
say -v "Pipe Organ" "To be, or not to be: That is the question..."
say -v Trinoids "To be, or not to be: That is the question..."
say -v Whisper "To be, or not to be: That is the question..."
say -v Zarvox "To be, or not to be: That is the question..."

Selbstverständlich können Sie auch Text-Dateien einlesen und durch die Sprach-API vertonen lassen. Hierzu müssen Sie lediglich über die Parameter -f ("File") und -o ("Output") die Text-Datei und die Output-Datei angeben.

say -f "/Volumes/Macintosh HD/Users/thomas/Desktop/test.txt" -o "/Volumes/Macintosh HD/Users/thomas/Desktop/test.aiff"

Als Ergebnis erhalten Sie eine AIFF-Audio-Datei, die Sie nun – falls gewünscht – via iTunes in den MP3-/AAC-Format umwandeln können.

Kommentare



Bitte tippen Sie die 6 Zeichen links ab
Anmelden
»Nach Wissen suchen, heißt Tag für Tag dazu gewinnen.«
— Laotse