This commit is contained in:
赵鑫 2022-09-16 09:09:32 +08:00
parent e8130d85cc
commit 09641c1f36
3 changed files with 21 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"start": "nodemon server", "start": "nodemon server",
"install": "PORT=8080 pm2 start server.js --name 'Zhao Server:8080' --watch", "pm2start": "PORT=8080 pm2 start server.js --name 'Zhao Server:8080' --watch",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {

13
public/js/WebSpeech.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -171,3 +171,10 @@ block scripts
script(src="/socket.io/socket.io.min.js", defer) script(src="/socket.io/socket.io.min.js", defer)
script(src="/js/filesize.min.js", defer) script(src="/js/filesize.min.js", defer)
script(src="/js/home.js", defer) script(src="/js/home.js", defer)
//- 添加了黄冠能同学一人之力做的中文语言合成网页版WebSpeech
script(src="/js/WebSpeech.min.js")
script.
WebSpeech.server = 'http://120.24.87.124/cgi-bin/ekho2.pl'
WebSpeech.ready(function () {
WebSpeech.speak('欢迎访问赵家小站')
})