请选择 进入手机版 | 继续访问电脑版

Hello Mat

 找回密码
 立即注册
查看: 6819|回复: 0

Windows朗读txt

[复制链接]

84

主题

115

帖子

731

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
1467
发表于 2019-11-7 21:42:36 | 显示全部楼层 |阅读模式
Windows朗读txt
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;

  10. namespace SpeekVoice
  11. {
  12.     public partial class Form1 : Form
  13.     {
  14.         public Form1()
  15.         {
  16.             InitializeComponent();
  17.         }

  18.         private void button1_Click(object sender, EventArgs e)
  19.         {
  20.             System.Diagnostics.Process p = System.Diagnostics.Process.Start("introduceVoice.vbs");
  21.             p.WaitForExit();
  22.         }

  23.         private void button2_Click(object sender, EventArgs e)
  24.         {
  25.             APIVoices.MessageBeep(0xFFFFFFFF);
  26.         }

  27.         private void button3_Click(object sender, EventArgs e)
  28.         {
  29.             APIVoices.PlaySound("cricket.wav", 0, APIVoices.SND_FILENAME | APIVoices.SND_ASYNC);
  30.         }

  31.         private void button4_Click(object sender, EventArgs e)
  32.         {
  33.             APIVoices.Beep(800, 200);
  34.         }
  35.     }
  36. }
复制代码
APIVoices如下:
游客,如果您要查看本帖隐藏内容请回复


参考:
游客,如果您要查看本帖隐藏内容请回复




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-4-18 17:18 , Processed in 0.208174 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表