<doc>
  <legacy_id>1512</legacy_id>
  <name>revUnloadSpeech</name>
  <type>command</type>
  <syntax>
    <example>revUnloadSpeech</example>
  </syntax>
  <library>Speech library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
  </classification>
  <references>
    <function tag="hasMemory">hasMemory Function</function>
    <command tag="revSpeak">revSpeak Command</command>
    <command tag="revLoadSpeech">revLoadSpeech Command</command>
    <command tag="revStopSpeech">revStopSpeech Command</command>
    <command tag="revSetSpeechProvider">revSetSpeechProvider Command</command>
    <command tag="unload">unload Command</command>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Removes the operating system's <glossary tag="text to speech">text-to-speech</glossary> software from memory.</summary>
  <examples>
    <example>revUnloadSpeech</example>
    <example>if field "Speak Next" is empty then revUnloadSpeech</example>
  </examples>
  <description>
    <p>Use the <b>revUnloadSpeech</b> <glossary tag="command">command</glossary> to free up memory when you're done using the <glossary tag="Speech library">Speech library</glossary>.</p><p/><p><b>Comments:</b></p><p>The operating system loads its text-to-speech software into memory when it's needed by any of the commands and functions in the Speech library. The <b>revUnloadSpeech</b> <glossary tag="command">command</glossary> lets you unload this software, freeing up the memory it uses, when you're done.</p><p/><p>If your application uses text to speech, you should execute the <b>revUnloadSpeech</b> <glossary tag="command">command</glossary> either when your application is finished using <glossary tag="text to speech">text to speech</glossary>, when the <object tag="stack">stack</object> that uses <glossary tag="text to speech">speech</glossary> is closed (in a <message tag="closeStack">closeStack</message> <glossary tag="handler">handler</glossary>), or when your application quits (in a <message tag="shutdown">shutdown</message> <glossary tag="handler">handler</glossary>). The <b>revUnloadSpeech</b> command must be executed at shutdown if not before in order for the application to close.</p><p/><p><img src="202653"/> <b>Important!</b> The <b>revUnloadSpeech</b> <glossary tag="command">command</glossary> is part of the <glossary tag="Speech library">Speech library</glossary>. To ensure that the <glossary tag="command">command</glossary> works in a <glossary tag="standalone application">standalone application</glossary>, you must include this <glossary tag="LiveCode custom library">custom library</glossary> when you create your <glossary tag="standalone application">standalone</glossary>. In the Inclusions section on the General screen of the <glossary tag="Standalone Application Settings">Standalone Application Settings</glossary> window, make sure "Speech" is selected in the list of script libraries.</p>
  </description>
</doc>