China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 21:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » DOS clock made while working on the job View 2,114 Replies 18
Floor 16 Posted 2008-03-20 00:16 ·  中国 安徽 马鞍山 电信
中级用户
★★
拟谷盗
Credits 312
Posts 108
Joined 2007-01-21 11:36
19-year member
UID 77238
Gender Male
Status Offline
LS needs to install a Chinese speech engine. You can use English to simulate Mandarin Chinese.

mshta vbscript:createobject("sapi.spvoice").speak("show she e sha")(window.close)

Doesn't it sound like "Take a break!"?

[ Last edited by ngd on 2008-3-20 at 12:53 AM ]
FLOSS
Floor 17 Posted 2008-03-21 01:18 ·  中国 香港 环球全域电讯
初级用户
★★
Credits 125
Posts 56
Joined 2008-02-20 14:01
18-year member
UID 111054
Gender Male
Status Offline
Originally posted by zsj008od at 2008-3-19 08:51 PM:
Give a VBS script that can speak both Chinese and English
Set objVoice = CreateObject("SAPI.SpVoice")
Set objVoice.Voice = objVoice.GetVoices("Name=Microsoft Mary").Item(0)
objVoice.Speak &quo ...


Why can't it make a sound?
Floor 18 Posted 2008-03-22 21:08 ·  中国 湖南 株洲 电信
金牌会员
★★★★
永远的学习者
Credits 3,105
Posts 1,276
Joined 2008-03-08 13:00
18-year member
UID 112398
Gender Male
Status Offline
If you don't understand VBS, you won't be able to use this code either
Floor 19 Posted 2008-03-22 22:34 ·  中国 北京 鹏博士宽带
中级用户
★★
Credits 273
Posts 91
Joined 2007-05-07 18:12
19-year member
UID 87770
Gender Male
Status Offline
I don't know why, the code on the upper floor can't run, but the code on the 12th floor can.
Forum Jump: