<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 98.2 beta6 (August 14th, 1998)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>13. macspeech --
Interface to the Macintosh Speech Manager</TITLE>
<META NAME="description" CONTENT="13. macspeech --
Interface to the Macintosh Speech Manager">
<META NAME="keywords" CONTENT="mac">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="mac.css">
<LINK REL="next" HREF="module-EasyDialogs.html">
<LINK REL="previous" HREF="module-mactcp.html">
<LINK REL="up" HREF="contents.html">
<LINK REL="next" HREF="voice-objects.html">
</HEAD>
<BODY bgcolor="#ffffff">
<div class=navigation>
<table align=center width="100%" cellpadding=0 cellspacing=2>
<tr>
<td><A HREF="voice-objects.html"><img width=32 height=32 align=bottom border=0 alt="next"
 src="../icons/next.gif"></A></td>
<td><A HREF="contents.html"><img width=32 height=32 align=bottom border=0 alt="up"
 src="../icons/up.gif"></A></td>
<td><A HREF="node25.html"><img width=32 height=32 align=bottom border=0 alt="previous"
 src="../icons/previous.gif"></A></td>
<td align=center bgcolor="#99CCFF" width="100%">
 <b class=title>Macintosh Library Modules</b></td>
<td><A HREF="contents.html"><img width=32 height=32 align=bottom border=0 alt="contents"
 src="../icons/contents.gif"></A></td>
<td><a
 href="modindex.html"><img width=32 height=32 align=bottom border=0 alt="modules"
 src="../icons/modules.gif"></a></td>
<td><A HREF="genindex.html"><img width=32 height=32 align=bottom border=0 alt="index"
 src="../icons/index.gif"></A></td>
</tr></table><b class=navlabel>Next:</b> <span class=sectref><A HREF="voice-objects.html">13.1 Voice Objects</A></span>
<b class=navlabel>Up:</b> <span class=sectref><A HREF="contents.html">Contents</A></span>
<b class=navlabel>Previous:</b> <span class=sectref><A HREF="node25.html">12.3 UDP Stream Objects</A></span>
<br><hr></div>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION0021300000000000000000">
13. <tt class=module>macspeech</tt> --
         Interface to the Macintosh Speech Manager</A>
</H1>

<P>
  
<p class=availability>Availability: <span
 class=platform>Macintosh</span>.</p>

<P>
This module provides an interface to the Macintosh Speech Manager,
<a name="l2h-205"></a>
<a name="l2h-206"></a>
allowing you to let the Macintosh utter phrases. You need a version of
the Speech Manager extension (version 1 and 2 have been tested) in
your <tt class=file>Extensions</tt> folder for this to work. The module does not
provide full access to all features of the Speech Manager yet.  It may
not be available in all Mac Python versions.

<P>
<dl><dt><b><a name="l2h-199"><tt class=function>Available</tt></a></b> ()
<dd>
Test availability of the Speech Manager extension (and, on the
PowerPC, the Speech Manager shared library). Return <tt>0</tt> or
<tt>1</tt>.
</dl>

<P>
<dl><dt><b><a name="l2h-200"><tt class=function>Version</tt></a></b> ()
<dd>
Return the (integer) version number of the Speech Manager.
</dl>

<P>
<dl><dt><b><a name="l2h-201"><tt class=function>SpeakString</tt></a></b> (<var>str</var>)
<dd>
Utter the string <var>str</var> using the default voice,
asynchronously. This aborts any speech that may still be active from
prior <tt class=function>SpeakString()</tt> invocations.
</dl>

<P>
<dl><dt><b><a name="l2h-202"><tt class=function>Busy</tt></a></b> ()
<dd>
Return the number of speech channels busy, system-wide.
</dl>

<P>
<dl><dt><b><a name="l2h-203"><tt class=function>CountVoices</tt></a></b> ()
<dd>
Return the number of different voices available.
</dl>

<P>
<dl><dt><b><a name="l2h-204"><tt class=function>GetIndVoice</tt></a></b> (<var>num</var>)
<dd>
Return a Voice object for voice number <var>num</var>.
</dl>

<P>

<p><hr>
<!--Table of Child-Links-->


<UL>
<LI><A NAME="tex2html393"
 HREF="voice-objects.html">13.1 Voice Objects</A>
<LI><A NAME="tex2html394"
 HREF="speech-channel-objects.html">13.2 Speech Channel Objects</A>
</UL>
<!--End of Table of Child-Links-->
<p>
<div class=navigation><hr><table align=center width="100%" cellpadding=0 cellspacing=2>
<tr>
<td><A HREF="voice-objects.html"><img width=32 height=32 align=bottom border=0 alt="next"
 src="../icons/next.gif"></A></td>
<td><A HREF="contents.html"><img width=32 height=32 align=bottom border=0 alt="up"
 src="../icons/up.gif"></A></td>
<td><A HREF="node25.html"><img width=32 height=32 align=bottom border=0 alt="previous"
 src="../icons/previous.gif"></A></td>
<td align=center bgcolor="#99CCFF" width="100%">
 <b class=title>Macintosh Library Modules</b></td>
<td><A HREF="contents.html"><img width=32 height=32 align=bottom border=0 alt="contents"
 src="../icons/contents.gif"></A></td>
<td><a
 href="modindex.html"><img width=32 height=32 align=bottom border=0 alt="modules"
 src="../icons/modules.gif"></a></td>
<td><A HREF="genindex.html"><img width=32 height=32 align=bottom border=0 alt="index"
 src="../icons/index.gif"></A></td>
</tr></table><b class=navlabel>Next:</b> <span class=sectref><A HREF="voice-objects.html">13.1 Voice Objects</A></span>
<b class=navlabel>Up:</b> <span class=sectref><A HREF="contents.html">Contents</A></span>
<b class=navlabel>Previous:</b> <span class=sectref><A HREF="node25.html">12.3 UDP Stream Objects</A></span>
</div>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>Send comments on this document to <a href="mailto:python-docs@python.org">python-docs@python.org</a>.
</ADDRESS>
</BODY>
</HTML>
