User Tools

Site Tools


getting_20the_20current_20voice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

getting_20the_20current_20voice [2018/03/31 13:19]
127.0.0.1 external edit
getting_20the_20current_20voice [2018/04/15 12:51] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Getting the current voice===== =====Getting the current voice=====
  
-//by Richard Russell, March 2013//\\ \\ //**This article is specific to the SAPI5 speech system, typically installed on Windows 2000, XP and later**//\\ \\  The code below can be used to discover the currently selected voice name:\\ +//by Richard Russell, March 2013//\\ \\ //**This article is specific to the SAPI5 speech system, typically installed on Windows 2000, XP and later**//\\ \\  The code below can be used to discover the currently selected voice name: 
 + 
 +<code bb4w>
         voice$ = FN_getvaluestr(tts%,​ "​Voice.GetDescription"​)         voice$ = FN_getvaluestr(tts%,​ "​Voice.GetDescription"​)
-Where **tts%** is the value returned from "​FN_createobject("​Sapi.SpVoice"​)"​.\\ \\  Here is a self-contained program illustrating its use:\\ +</​code>​ 
 + 
 +Where **tts%** is the value returned from "​FN_createobject("​Sapi.SpVoice"​)"​.\\ \\  Here is a self-contained program illustrating its use: 
 + 
 +<code bb4w> ​
         INSTALL @lib$+"​COMLIBA"​         INSTALL @lib$+"​COMLIBA"​
  
Line 19: Line 25:
         PROC_comexit         PROC_comexit
         END         END
 +</​code>​
getting_20the_20current_20voice.txt · Last modified: 2018/04/15 12:51 by richardrussell