setting_20speech_20parameters
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
setting_20speech_20parameters [2018/03/31 13:19] – external edit 127.0.0.1 | setting_20speech_20parameters [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Setting speech parameters===== | =====Setting speech parameters===== | ||
- | //by Richard Russell, October 2008//\\ \\ //**This article is specific to the SAPI5 speech system, typically installed on Windows 2000, XP and Vista**//\\ \\ When using Windows' | + | //by Richard Russell, October 2008//\\ \\ //**This article is specific to the SAPI5 speech system, typically installed on Windows 2000, XP and Vista**//\\ \\ When using Windows' |
+ | |||
+ | <code bb4w> | ||
speed$ = "< | speed$ = "< | ||
volume$ = "< | volume$ = "< | ||
voice$ = "< | voice$ = "< | ||
PROC_callmethod(tts%, | PROC_callmethod(tts%, | ||
- | Here **speed%** should be in the range -10 to +10, **volume%** should be in the range 0 to 100 and **name$** should be a voice name such as **Microsoft Mike** (see [[/ | + | </ |
+ | |||
+ | Here **speed%** should be in the range -10 to +10, **volume%** should be in the range 0 to 100 and **name$** should be a voice name such as **Microsoft Mike** (see [[/ | ||
+ | |||
+ | <code bb4w> | ||
speed$ = "< | speed$ = "< | ||
volume$ = "< | volume$ = "< | ||
voice$ = "< | voice$ = "< | ||
PROC_callmethod(tts%, | PROC_callmethod(tts%, | ||
- | \\ | + | </ |
+ | |||
+ | The second method involves direct calls to the speech system to set the appropriate parameters, for example: | ||
+ | |||
+ | <code bb4w> | ||
PROC_putvalue(tts%, | PROC_putvalue(tts%, | ||
PROC_putvalue(tts%, | PROC_putvalue(tts%, | ||
Line 17: | Line 27: | ||
PROC_putobject(tts%, | PROC_putobject(tts%, | ||
PROC_callmethod(tts%, | PROC_callmethod(tts%, | ||
+ | </ | ||
+ | |||
Note that this code requires **COMLIB** (or **COMLIBA**) version **3.3** or later, as supplied with //BBC BASIC for Windows// version 5.90a. | Note that this code requires **COMLIB** (or **COMLIBA**) version **3.3** or later, as supplied with //BBC BASIC for Windows// version 5.90a. |
setting_20speech_20parameters.1522502381.txt.gz · Last modified: 2024/01/05 00:16 (external edit)