资源简介
基于websocket技术实现的语音叫号功能!!!!!!!!!

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using SuperSocket.Common;
using SuperSocket.Socketbase;
using SuperSocket.Socketbase.Config;
using SuperSocket.SocketEngine;
using SuperSocket.Socketbase.Logging;
using SuperWebSocket;
using log4net;
using System.Speech.Synthesis;
using System.Threading;
using System.IO;
using System.Collections.Specialized;
using Server.Common;
using System.Collections;
using SuperWebSocket.Protocol;
namespace Server
{
public partial class FrmMain : Form
{
#region 属性
private SpeechSynthesizer speech;
private ContextMenu notifyiconMnu;
//音量
private int volume = Server.Properties.Settings.Default.volume;
//语速
private int rate = Server.Properties.Settings.Default.rate;
//语音
private string voice = Server.Properties.Settings.Default.voice;
//频次
private int frequency = Server.Properties.Settings.Default.frequency;
//频次间隔
private int frequencyInterval = Server.Properties.Settings.Default.frequencyInterval;
//自动播放标识(0 不自动 1 自动)
private int autoPlayFlag = Server.Properties.Settings.Default.autoPlayFlag;
//是否使用默认播放(0 不使用 1 使用)
private int openDefaultAudio = Server.Properties.Settings.Default.openDefaultAudio;
//提示音
private string promptPath = “Notify.wav“;//.wav音频文件路径
private System.Media.SoundPlayer player;
private Thread t;
WebSocketServer appServer = new WebSocketServer();
ServerConfig serverConfig = new ServerConfig
{
Port = Server.Properties.Settings.Default.port//set the listening port
MaxConnectionNumber = 10000
};
#endregion
#region 初始化
public FrmMain()
{
try
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
setFrequencyCombo();
setRateCombo();
setVolumeCombo();
setVoiceCombo();
if (this.autoPlayFlag == 1)
{
checkBox1.Checked = true;
}
else {
checkBox1.Checked = false;
}
checkBox1_CheckedChanged(nullnull);
foreach (myComItem t in this.comboBox1.Items)
{
if (t.text.ToString() == this.rate.ToString())
{
this.comboBox1.SelectedItem = t;
break;
}
}
foreach (myComItem t in this.comboBox3.Items)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-31 17:13 Server\
目录 0 2018-07-31 17:13 Server\Common\
文件 5679 2018-07-31 17:13 Server\Common\funTools.cs
文件 4219 2018-07-31 17:13 Server\Common\logTools.cs
文件 402 2018-07-31 17:13 Server\Common\myComItem.cs
目录 0 2018-07-31 17:13 Server\Config\
文件 3002 2018-07-31 17:13 Server\Config\log4net.config
文件 3007 2018-07-31 17:13 Server\Config\log4net.unix.config
文件 15660 2018-07-31 17:13 Server\FrmMain.Designer.cs
文件 31428 2018-07-31 17:13 Server\FrmMain.cs
文件 19553 2018-07-31 17:13 Server\FrmMain.resx
文件 1090 2018-07-31 17:13 Server\Program.cs
目录 0 2018-07-31 17:13 Server\Properties\
文件 1354 2018-07-31 17:13 Server\Properties\AssemblyInfo.cs
文件 2864 2018-07-31 17:13 Server\Properties\Resources.Designer.cs
文件 5612 2018-07-31 17:13 Server\Properties\Resources.resx
文件 4009 2018-07-31 17:13 Server\Properties\Settings.Designer.cs
文件 1376 2018-07-31 17:13 Server\Properties\Settings.settings
文件 6032 2018-07-31 17:13 Server\Server.csproj
目录 0 2018-07-31 17:13 Server\UsingDll\
文件 397312 2018-07-31 17:13 Server\UsingDll\Newtonsoft.Json.dll
文件 37888 2018-07-31 17:13 Server\UsingDll\SuperSocket.Common.dll
文件 111104 2018-07-31 17:13 Server\UsingDll\SuperSocket.Socketba
文件 103424 2018-07-31 17:13 Server\UsingDll\SuperSocket.SocketEngine.dll
文件 71168 2018-07-31 17:13 Server\UsingDll\SuperWebSocket.dll
文件 393216 2018-07-31 17:13 Server\UsingDll\System.Threading.dll
文件 290816 2018-07-31 17:13 Server\UsingDll\log4net.dll
文件 1653 2018-07-31 17:13 Server\app.config
目录 0 2018-07-31 17:31 Server\bin\
目录 0 2018-07-31 17:31 Server\bin\Debug\
文件 397312 2018-07-31 17:13 Server\bin\Debug\Newtonsoft.Json.dll
............此处省略41个文件信息
- 上一篇:纹理合成的图像修复程序
- 下一篇:DEP开发平台api
相关资源
- 语音信号处理 赵力
- res10_300x300_ssd_iter_140000.caffemodel与dep
- labview语音输入输出
- USB.Over.Network.Server 注册机
- dotnet 写字板 实验 源代码 不好请要不
- 语音分帧,短时能量,过零率
- .net面试简历内容非常细致
- mp重构一维信号(可运行)
- websocket实现一对一聊天
- .net网站服装销售系统(MVC)
-
分别适用于.NET fr
amework 2.0和4.0的E - wifi局域网内双向语音实时通话
-
安装 .net fr
amework 4.0失败原因是KB9 - vmnetbridge.dll,vmnet.sys等文件
- 利用语音信号的短时能量与短时过零
- vs2005骑士巡游问题-分治法C
- 企业销售管理信息系统(全套)
- B2C商城综合系统项目源码
- 选择题自动考试系统
- EXCEL文件转换成固定的格式的文本格式
- .net计件工资管理程序 啊
- powerdatagrid控件 源码
- DSP 语音识别程序 DTW MFCC
- Gauss-Bonnet AdS黑洞的参数相变
- 大数据中的云网络Cloud Networking for B
- USB网卡驱动 USB2.0 TO Fast Ethernet Adapte
- 华为光猫破解telnet开启工具 ONT维修使
- Linux版的telnet安装包telnet、telnet-serv
- LOM网卡驱动:Intel(R) Ethernet Connecti
- SunnyUI.Net
评论
共有 条评论