- 分享
- 0
- 人气
- 0
- 主题
- 7
- 帖子
- 4707
- UID
- 82675
- 积分
- 5108
- 阅读权限
- 22
- 注册时间
- 2007-6-18
- 最后登录
- 2021-7-27
- 在线时间
- 5767 小时
|
换了 code
button1 正常
button2 还是 error 在
spvoice.volume
error 说 volume 在 boolean 找不到
maple迷 发表于 2010-5-1 10:01 PM
spvoice.volume = TextBox1.Text
應該是資料型態問題, documentation 中已經說明需賦予 Long 型態
Volume Property
The Volume property gets and sets the base volume (loudness) level of the voice.
Values for the Volume property range from 0 to 100, representing the minimum and maximum volume levels, respectively.
At the beginning of each Speak or SpeakStream method, the voice sets the volume level according to the value of the Volume property, and speaks the entire stream at that level. The voice's Volume property can be changed at any time, but the actual volume level will not reflect the changed property value until it begins a new stream.SyntaxSet: | SpVoice.Volume = Long | Get: | Long = SpVoice.Volume | PartsSpVoiceThe owning object.LongSet: A Long variable that sets the property value.
Get: A Long variable that gets the property value. |
|