MS Agent 为什么没有声音
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;
namespace MSAGENT
{
public partial class Form1 : Form
{
AgentObjects.IAgentCtlCharacterEx ICCE;
AgentObjects.IAgentCtlRequest ICR;
string[] ws = new string[10] { "Acknowledge", "LookDown", "Sad", "Alert", "LookDownBlink", "Search", "Announce", "LookUp", "Think", "Blink" };
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
listBox1.Items.Add(ws[i]);
}
ICR = axAgent1.Characters.Load("Genie", "Genie.acs");
ICCE = axAgent1.Characters.Character("Genie");
ICCE.LanguageID = 0x409;
ICCE.Show(0);
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
ICCE.StopAll("");
ICCE.Play(ws[listBox1.SelectedIndex]);
}
private void button1_Click(object sender, EventArgs e)
{
ICCE.Play("DoMagic2");
ICCE.Speak("Where",null);
} --------------------编程问答-------------------- 友情帮顶 --------------------编程问答-------------------- 有可能是音箱或耳机没有接到主机或没有安装TTS语音库,或检查音箱或耳机是否插到了别人的机箱上 --------------------编程问答-------------------- 你正确安装了TTS引擎没有??在控制面板的“语音”里面看一下,要看SAPI4.0的那里
补充:.NET技术 , C#