Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Text To Speech Question: How do you get it to say something from a text doc?

Text To Speech Question: How do you get it to say something from a text doc?
Thread Tools
Junior Member
Join Date: Sep 2004
Status: Offline
Reply With Quote
Jul 23, 2007, 04:30 AM
 
And better yet, how can you record it in OSX?
     
Mac Elite
Join Date: Mar 2002
Status: Offline
Reply With Quote
Jul 23, 2007, 06:03 AM
 
You can use Terminal.app.

[codex]SAY(1) Speech Synthesis Manager SAY(1)

NAME
say - Convert text to audible speech

SYNOPSIS
say [-v voice] [-o out.aiff] [-f file | string ...]

DESCRIPTION
This tool uses the Speech Synthesis manager to convert input text to
audible speech and either play it through the sound output device cho-
sen in System Preferences or save it to an AIFF file.

OPTIONS
string
Specify the text to speak on the command line. This can consist of
multiple arguments, which are considered to be separated by spaces.

-f file
Specify a file to be spoken. If file is - or neither this parameter
nor a message is specified, read from standard input.

-v voice
Specify the voice to be used. Default is the voice selected in Sys-
tem Preferences.

-o out.aiff
Specify an AIFF file to be written.

If the input is a TTY, text is spoken line by line, and the output
file, if specified, will only contain audio for the last line of the
input. Otherwise, text is spoken all at once.[/codex]
     
Professional Poster
Join Date: May 2007
Status: Offline
Reply With Quote
Jul 23, 2007, 11:28 AM
 
Or, you could just highlight what you want spoken, right click, and go to the "speech" menu...

For recording, Terminal seems the only OS X built in way...
Unibody MacBook Pro 2.53 GHz, 24" LED Cinema Display, 8 GB iPod Touch 2G
adamfishercox.com
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Jul 23, 2007, 11:36 AM
 
AppleScript is the easiest way to record speech in OS X.

Herding Bits: AppleScript for Text-to-Speech file
     
Posting Junkie
Join Date: Feb 2005
Location: 888500128
Status: Offline
Reply With Quote
Jul 23, 2007, 11:51 AM
 
Thank you!
     
Administrator
Join Date: May 2000
Location: California
Status: Online
Reply With Quote
Jul 23, 2007, 07:16 PM
 
Highlight the text you want read (or hit Command-A to highlight everything). Go to the App's menu -> Services -> Speech -> Start Speaking Text

This only seems to work in Cocoa apps.
     
Posting Junkie
Join Date: Feb 2005
Location: 888500128
Status: Offline
Reply With Quote
Jul 24, 2007, 05:03 AM
 
Doesn't record, though, which the applescript linked to above does.
     
Professional Poster
Join Date: Jan 2001
Location: Between Sydney and Melbourne
Status: Offline
Reply With Quote
Jul 25, 2007, 06:56 AM
 
I find the speech recognition works a bit better if you set the font size above 11 and choose a more readable font like Times New Roman. im only joking!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:40 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2