我不是太喜欢说东西,直接贴代码
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace COM
{
[Guid("ED5DCE10-F40B-4655-9E7B-903779C77AF2")]
public partial class SpVoice : Object
{
public enum Flags
{
SVSFDefault = 0,
SVSFlagsAsync = 1,
SVSFPurgeBeforeSpeak = 2,
SVSFIsFilename = 4,
SVSFIsXML = 8,
SVSFIsNotXML = 16,
SVSFPersistXML = 32,
SVSFNLPSpeakPunc = 64,
SVSFParseSapi = 128,
SVSFParseSsml = 256,
SVSFParseAutodetect = 0,
SVSFNLPMask = 64,
SVSFParseMask = 384,
SVSFVoiceMask = 511,
SVSFUnusedFlags = -512
}
public enum Priority
{
SVPNormal = 0,
SVPAlert = 1,
SVPOver = 2
}
}
public partial class SpVoice : Object
{
private Type _ComType = null;
private object _ComObject = null;
public SpVoice()
{
this.Init();
}
public bool Init()
{
this._ComType = Ty