User Tools

Site Tools


listing_20available_20voices

Differences

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

Link to this comparison view

listing_20available_20voices [2018/03/31 13:19]
127.0.0.1 external edit
listing_20available_20voices [2018/04/15 12:51] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Listing available voices===== =====Listing available voices=====
  
-//by Richard Russell, October 2008//\\ \\  The supplied example program **SPEAK.BBC** provides the capability of choosing the '​voice'​ to be used (for example **Microsoft Sam** or **Microsoft Mary**), however you need to know in advance which voices are available; if you select one which isn't available it won't work. This is a particular problem given that the available voices may differ between versions of Windows, for example Windows Vista may only have **Microsoft Anna** which isn't usually available on other versions of Windows.\\ \\  The code below lists the available voices (it uses SAPI5, typically installed on Windows 2000, XP and Vista and later):\\ \\ +//by Richard Russell, October 2008//\\ \\  The supplied example program **SPEAK.BBC** provides the capability of choosing the '​voice'​ to be used (for example **Microsoft Sam** or **Microsoft Mary**), however you need to know in advance which voices are available; if you select one which isn't available it won't work. This is a particular problem given that the available voices may differ between versions of Windows, for example Windows Vista may only have **Microsoft Anna** which isn't usually available on other versions of Windows.\\ \\  The code below lists the available voices (it uses SAPI5, typically installed on Windows 2000, XP and Vista and later): 
 + 
 +<code bb4w> ​
         INSTALL @lib$+"​COMLIBA"​         INSTALL @lib$+"​COMLIBA"​
  
Line 19: Line 21:
  
         PROC_comexit         PROC_comexit
 +</​code>​
 +
 You can of course use the returned list of voices in other ways, such as presenting them to the user in a **List Box**, or selecting one according to a set of preferences. \\ \\  Note that this code requires **COMLIB** (or **COMLIBA**) version **3.3** or later, as supplied with //BBC BASIC for Windows// version 5.90a. You can of course use the returned list of voices in other ways, such as presenting them to the user in a **List Box**, or selecting one according to a set of preferences. \\ \\  Note that this code requires **COMLIB** (or **COMLIBA**) version **3.3** or later, as supplied with //BBC BASIC for Windows// version 5.90a.
listing_20available_20voices.txt · Last modified: 2018/04/15 12:51 by richardrussell