Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2096728
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2011-03-15 23:12:42

QtSpeech is cross-platform library based on Qt to provide common cross-platform API to access and use system TTS (Text-to-Speech) engines on platforms as Windows (using SAPI), Mac (SpeechSynthesis) and Linux (using Festival). Licensed as LGPL, so can be used on OpenSource and Commercial products.

sudo apt-get install curl git-core
sudo apt-get install libasound2-dev

git clone git://gitorious.org/qt-speech/qt-speech.git
cd qt-speech/
./get-festival.sh
qmake QtSpeech.pro
make

首先确保你系统有声音,再进入test目录进行测试
cd test
qmake test.pro
make
./test(听听熟悉的hello world)

Reference

阅读(1575) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~