April 20, 2024
כיצד להקליט טקסט בעזרת הטרמינל

כיצד להקליט טקסט בעזרת הטרמינל

Posted February 11, 2009 at 10:02pm by iClarified
EnglishHebrew

זה מדריך על איך ליצור קבצי אודיו ע"י שימוש באפרשות ההקראת טקסט הנמצאת במק. ע"י הטרמינל אתם יכולים לגרום למק לקרוא טקסט בקול, הוא ישירות לקובץ אודיו.

שלב ראשון
תפתחו את הטרמינל מ: Applications:Utilities folder.
כיצד להקליט טקסט בעזרת הטרמינל

שלב שני
הקלידו:
cd ~/Desktop
ואז לחצו Enter.
כיצד להקליט טקסט בעזרת הטרמינל


שלב שלשי
כדי לגרום למק להקריא בקול הקלידו:
say "read this"
ואז לחצו
Enter.
תוכלו להחליף את הטקסט שבמרכאות לטקסט שלכם.
כיצד להקליט טקסט בעזרת הטרמינל

שלב רביעי
בשביל לגרום למק להקריא בקול אחר הקלידו:
say -v Kathy "read this"
ואז לחצו
Enter.
תוכלו להחליף את Kathy לקולות מק אחרים
(כמו Alex, Bruce, Fred, Kathy, Vicki, Victoria).
כיצד להקליט טקסט בעזרת הטרמינל

שלב חמישי
בשביל לגרום למק להקריא מקובץ מק הקלידו:
say -v Alex -f "textfile.rtf"
ואז לחצו
Enter.
החליפו את textfile.rtf אם הקובץ טקסט שמיקמתם בשולחן העבודה.
תוכלו להשתמש במיקום שונה ע"י הקלדת מיקום הקובץ.
כיצד להקליט טקסט בעזרת הטרמינל

Step Six
לבסוף, כדי לגרום למק להקריא לקובץ שמע הקלידו:
say -v Alex -o "audiofile.aiff" "read this"
ואז לחצו
Enter.
החליפו את "audiofile.aiff" עם קובץ שמע שתרצו ליצור.
כיצד להקליט טקסט בעזרת הטרמינל

הערה***: אם תרצו לשלב את כל האופציות תוכלו לעשות משהו כזה:
say -v Alex -o "audiofile.aiff" -f "textfile.rtf"
כדי לקרוא עם הקול של אלכס.

Add Comment
Would you like to be notified when someone replies or adds a new comment?
Yes (All Threads)
Yes (This Thread Only)
No
iClarified Icon
Notifications
Would you like to be notified when we post a new Apple news article or tutorial?
Yes
No
Comments (10)
You must login or register to add a comment...
Benjamin Richards
Benjamin Richards - December 13, 2016 at 2:26pm
What is the purpose of step two as intended by iClarified? I know cd is Change Directory, I know ~ is the current user's home folder, I have read the man page for the say command, I have looked at multiple procedural videos or articles related to the say command, yet iClarified is the only source that includes the switch to Desktop folder command. Hence what is it's purpose? As I can see none other than reducing the number of characters that need be typed in the -f or -o flags, but since I prefer absolute paths, it becomes a mute point and seems like an unnecessary step… If iClarified truly wants to adhere to the notion of clarity as is implied by the name, a better description is needed as to why you are including that step.
andrewsanchez
andrewsanchez - January 18, 2017 at 8:29pm
It's very likely because ~/Desktop is a convenient point of reference for people who do not have a background in the Unix shell. They can see their output immediately on the Desktop without having to learn any more commands, e.g. the `ls` command. It's just a matter of convenience for lowering the learning curve. Other than that, there is no reason for cd'ing to the Desktop.
bran
bran - September 21, 2014 at 9:41am
awesome.
Gazolla
Gazolla - January 16, 2010 at 6:45pm
Excellent !!!! Thank you very much.
Joe Maurer
Joe Maurer - December 28, 2009 at 11:49pm
This is great! Easy to use and totally works for making files. You can keep system prefs open and toggle between it and terminal to bypass steps 3-5. Speakable items in system prefs allows you adjust voice (and rate of speech). If you'd like to make mp3's of the aiff files pull them into itunes and convert them to mp3s...
Mikey Bee
Mikey Bee - June 15, 2009 at 12:06am
I wrote a program to read text files and output large font window with the text. It goes by stanza by stanza. It's free, and the source code is available to on google code: http://code.google.com/p/stanzareader/
w.madsen
w.madsen - April 10, 2009 at 3:30pm
Are you aware of any other commands available to the speech program, such as controlling the timbre or speed of the output?
Mikey Bee
Mikey Bee - July 10, 2009 at 2:56am
The speech command seems to be very limited. Open a terminal and type: man say The Speech API's offer more control: http://devworld.apple.com/documentation/UserExperience/Conceptual/SpeechSynthesisProgrammingGuide/SpeechOverview/SpeechOverview.html#//apple_ref/doc/uid/TP40004365-CH3-SW7
Ashraf
Ashraf - October 21, 2012 at 11:41pm
-r rate, --rate=rate Speech rate to be used, in words per minute. So you could write: say -r 80 -v Victoria "read this" That'd make victoria read "read this" at 80 words per minute (slow)
OSXniCKels
OSXniCKels - March 27, 2009 at 12:55am
What other audio formats can be used when saving to a file?
Recent. Read the latest Apple News.
RECENT
Tutorials. Help is here.
TUTORIALS
Where to Download macOS Monterey
Where to Download macOS Ventura
AppleTV Firmware Download Locations
Where To Download iPad Firmware Files From
Where To Download iPhone Firmware Files From
Deals. Save on Apple devices and accessories.
DEALS