Speak.cs
Upload User: china_pc
Upload Date: 2022-07-29
Package Size: 495k
Code Size: 0k
Category:

Other systems

Development Platform:

Visual C++

  1. using System;
  2. using System.Collections.Generic;
  3. using mstts;
  4. using System.Text;
  5. namespace MyDictApp
  6. {
  7.     class Speak
  8.     {
  9.         private VTxtAuto vtxtautoex;
  10.         public Speak()
  11.         {
  12.             vtxtautoex = new VTxtAuto();
  13.             vtxtautoex.Register("a","b"); 
  14.         }
  15.         public void say(string text)
  16.         {
  17.             vtxtautoex.Speak(text, 0); //发音
  18.         }
  19.     }
  20. }