<doc>
  <legacy_id>1087</legacy_id>
  <name>revSetSpeechVoice</name>
  <type>command</type>
  <syntax>
    <example>revSetSpeechVoice <i>voiceName</i></example>
  </syntax>
  <library>Speech library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revSetSpeechSpeed">revSetSpeechSpeed Command</command>
    <function tag="revSpeechVoices">revSpeechVoices Function</function>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Specifies which voice to use with the <command tag="revSpeak">revSpeak</command> <glossary tag="command">command</glossary>.</summary>
  <examples>
    <example>revSetSpeechVoice "Victoria"</example>
    <example>revSetSpeechVoice the storedVoice of this stack</example>
    <example>revSetSpeechVoice any line of revSpeechVoices()</example>
  </examples>
  <description>
    <p>Use the <b>revSetSpeechVoice</b> <glossary tag="command">command</glossary> to change the way <glossary tag="text to speech">speech</glossary> sounds.</p><p/><p><b>Parameters:</b></p><p>The <i>voiceName</i> is the name of a voice installed on the system.</p><p/><p><b>Comments:</b></p><p>To get a list of voices installed on the current system, use the <b>revSpeechVoices</b> <control_st tag="function">function</control_st>.</p><p/><p>If the <i>voiceName</i> you specify is not installed, the <b>revSetSpeechVoice</b> <glossary tag="command">command</glossary> sets the voice to the default voice set by the system.</p><p/><p>The voice specified by the <b>revSetSpeechVoice</b> <glossary tag="command">command</glossary> is used for all speeches following the <glossary tag="command">command</glossary> during the current session, but if the computer is already speaking when you <glossary tag="execute">execute</glossary> the <glossary tag="command">command</glossary>, the new voice does not affect the current speech.</p><p/><p>If text to speech is not available on the current system, the <b>revSetSpeechVoice</b> <glossary tag="command">command</glossary> sets the <function tag="result">result</function> <control_st tag="function">function</control_st> to an error message.</p><p/><p>If the <b>revSetSpeechVoice</b> <glossary tag="command">command</glossary> is <glossary tag="execute">executed</glossary> while a speech is being spoken, the current speech is halted.</p><p/><p><img src="202653"/> <b>Important!</b> The <b>revSetSpeechVoice</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>