speech_20synthesis_20_28lbb_29
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
speech_20synthesis_20_28lbb_29 [2018/03/31 13:19] – external edit 127.0.0.1 | speech_20synthesis_20_28lbb_29 [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
//by Richard Russell, November 2015//\\ \\ The program below illustrates the use of the **speak** sub; it is compatible with both LB and LBB. Note that it is necessary to declare **speechInit** as global:\\ \\ | //by Richard Russell, November 2015//\\ \\ The program below illustrates the use of the **speak** sub; it is compatible with both LB and LBB. Note that it is necessary to declare **speechInit** as global:\\ \\ | ||
+ | <code lb> | ||
' | ' | ||
' | ' | ||
Line 57: | Line 58: | ||
wtext$ as ptr, 0 as long, 0 as long, r as long | wtext$ as ptr, 0 as long, 0 as long, r as long | ||
end sub | end sub | ||
+ | </ | ||
The default voice is used; it may be a male or female voice depending on the version of Windows. If you prefer to specify the gender (assuming both a male and a female voice are installed, which may not always be the case) you can insert ' | The default voice is used; it may be a male or female voice depending on the version of Windows. If you prefer to specify the gender (assuming both a male and a female voice are installed, which may not always be the case) you can insert ' | ||
+ | <code lb> | ||
data "< | data "< | ||
data "< | data "< | ||
data "" | data "" | ||
+ | </ | ||
It is also possible to control the speed and the volume in a similar way: | It is also possible to control the speed and the volume in a similar way: | ||
+ | <code lb> | ||
data "< | data "< | ||
data "< | data "< | ||
data "" | data "" | ||
+ | </ | ||
The speed should be specified as a value between -10 and +10, and the volume as a value between 0 and 100.\\ \\ This alternative format for the tags may also be used: | The speed should be specified as a value between -10 and +10, and the volume as a value between 0 and 100.\\ \\ This alternative format for the tags may also be used: | ||
+ | <code lb> | ||
data "< | data "< | ||
data "< | data "< | ||
data "" | data "" | ||
+ | </ | ||
\\ If you want to select a specific SAPI5 voice (and you know it is installed on your PC) you can do that as follows: | \\ If you want to select a specific SAPI5 voice (and you know it is installed on your PC) you can do that as follows: | ||
+ | <code lb> | ||
data "< | data "< | ||
+ | </ | ||
In this case the voice selected is Ivona Brian (a British English male voice) which can be purchased from http:// | In this case the voice selected is Ivona Brian (a British English male voice) which can be purchased from http:// |
speech_20synthesis_20_28lbb_29.1522502384.txt.gz · Last modified: 2024/01/05 00:16 (external edit)