用Agent+ASP技术制作语音聊天室
程序员文章站
2022-11-18 12:38:47
用agent+asp技术制作语音聊天室--------------------以下为程序内容,按文章中出现的顺序分块排序
用agent+asp技术制作语音聊天室
--------------------以下为程序内容,按文章中出现的顺序分块排序
<!--定义"agentcontrol"-->
<object classid=clsid:d45fd31b-5c6e-11d1-9ec1-00c04fd7081f
codebase=#version=2,0,0,0 id=agent>
</object>
<!--定义l&h truvoice text-to-speech american english -->
<object classid=clsid:b8f2846e-ce36-11d0-ac83-00c04fd97575
codebase=#version=6,0,0,0 id=truvoice width="14" height="14">
</object>
______________________________________________________________
尝试从微软agent角色目录中装载
set loadrequestunc = agent.characters.load ("peedy", "peedy.acs")
if loadrequestunc.status <> 0 then
如果失败便尝试从微软服务器下载
set loadrequesturl = agent.characters.load ("peedy", "https://agent.microsoft.com/agent2/chars/peedy/peedy.acf")
else
现在产生一个peedy实例
set peedy = agent.characters("peedy")
end if
_____________________________________________________________
<html>
<body>
<h3 align="center"><font color="#0000ff">welcome to my chatroom!</font></h3>
<form method="post" action="default.">
<p align="center">your name please:
<input type="text" name="txtusername" size="20">
<input type="submit" value="ok" name="btnok"></p>
</form>
<p align="center"><a href="download.htm">click here to go to download page.</a></p>
</body>
</html>
_______________________________________________________________________
<script language=vbscript runat=server>
sub application_onstart
application("message")="" 发言内容
application("expression")="" 表情
application("sender")="" 发言者id
application("globalid")=0 发言总序号
end sub
</script>
_______________________________________________________________________
<%
session("username") = server.htmlencode(request.form("txtusername"))
session("personalid")=0
%>
<html>
<head>
<title>welcome to my chatroom!</title>
</head>
<frameset border=0 framespacing=0 cols="98,*" frameborder=0>
<frame name="agent" src="agent.asp">
<frameset rows="196,68,*">
<frame name="display" src="display.asp">
<frame name="refresh" src="refresh.asp">
<frame name="message" src="message.asp">
</frameset>
</frameset>
<frameset>
</frameset>
</html>
________________________________________________________________
<html>
<body bgcolor="#006699" text="#ffffff">
<!--定义"agentcontrol"-->
<object classid=clsid:d45fd31b-5c6e-11d1-9ec1-00c04fd7081f
codebase=#version=2,0,0,0 id=agent>
--------------------以下为程序内容,按文章中出现的顺序分块排序
<!--定义"agentcontrol"-->
<object classid=clsid:d45fd31b-5c6e-11d1-9ec1-00c04fd7081f
codebase=#version=2,0,0,0 id=agent>
</object>
<!--定义l&h truvoice text-to-speech american english -->
<object classid=clsid:b8f2846e-ce36-11d0-ac83-00c04fd97575
codebase=#version=6,0,0,0 id=truvoice width="14" height="14">
</object>
______________________________________________________________
尝试从微软agent角色目录中装载
set loadrequestunc = agent.characters.load ("peedy", "peedy.acs")
if loadrequestunc.status <> 0 then
如果失败便尝试从微软服务器下载
set loadrequesturl = agent.characters.load ("peedy", "https://agent.microsoft.com/agent2/chars/peedy/peedy.acf")
else
现在产生一个peedy实例
set peedy = agent.characters("peedy")
end if
_____________________________________________________________
<html>
<body>
<h3 align="center"><font color="#0000ff">welcome to my chatroom!</font></h3>
<form method="post" action="default.">
<p align="center">your name please:
<input type="text" name="txtusername" size="20">
<input type="submit" value="ok" name="btnok"></p>
</form>
<p align="center"><a href="download.htm">click here to go to download page.</a></p>
</body>
</html>
_______________________________________________________________________
<script language=vbscript runat=server>
sub application_onstart
application("message")="" 发言内容
application("expression")="" 表情
application("sender")="" 发言者id
application("globalid")=0 发言总序号
end sub
</script>
_______________________________________________________________________
<%
session("username") = server.htmlencode(request.form("txtusername"))
session("personalid")=0
%>
<html>
<head>
<title>welcome to my chatroom!</title>
</head>
<frameset border=0 framespacing=0 cols="98,*" frameborder=0>
<frame name="agent" src="agent.asp">
<frameset rows="196,68,*">
<frame name="display" src="display.asp">
<frame name="refresh" src="refresh.asp">
<frame name="message" src="message.asp">
</frameset>
</frameset>
<frameset>
</frameset>
</html>
________________________________________________________________
<html>
<body bgcolor="#006699" text="#ffffff">
<!--定义"agentcontrol"-->
<object classid=clsid:d45fd31b-5c6e-11d1-9ec1-00c04fd7081f
codebase=#version=2,0,0,0 id=agent>
上一篇: C++系列总结——new和delete
下一篇: 利用ASP在客户端注册DLL文件
推荐阅读
-
用Agent+ASP技术制作语音聊天室
-
ICRoute 语音识别芯片/声控芯片 用声音去沟通 语音识别技术介绍
-
用3D打印技术制作新型激光 可控超声波变频器
-
用WT516P6Core离线语音模块在烧录和连接MCU时要注意避开的坑,要不挠掉头发也钻不出来!我差点套进去了,还好他们技术人员给力!把我给扯出来了!做了一个踩坑记录分享给大家
-
远航技术U盘启动制作怎么用?远航技术U盘启动制作工具使用图文教程
-
用最简单的前端技术制作一个简洁的音乐播放器
-
用C/S技术开发语音聊天软件有什么特点? B/S软件开发客户端服务器端语音聊天
-
用Agent+ASP技术制作语音聊天室
-
用最简单的前端技术制作一个简洁的音乐播放器
-
用WT516P6Core离线语音模块在烧录和连接MCU时要注意避开的坑,要不挠掉头发也钻不出来!我差点套进去了,还好他们技术人员给力!把我给扯出来了!做了一个踩坑记录分享给大家