My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
ExamTtsQandA  
TTS作业问答
Updated Nov 7, 2012 by G.ShiZha...@gmail.com

关于实现方式

Comment by zuohaocheng1022, Yesterday (20 hours ago)

老师,请问TTS可以使用Mac内置的say命令完成吗?

Comment by project member G.ShiZhan.G, Today (7 minutes ago)

会使用Mac内置的say命令完成也是可以的,使用自己找到的方法来做这个作业当然值得欢迎~

关于开发环境配置

Comment by jiangshanyanyuwhn, Yesterday (19 hours ago)

老师,能不能把python的调用pyttsx库的环境变量脚本展示一下

Comment by project member G.ShiZhan.G, Today (8 minutes ago)

直接将自己的目录定义为Python库查找路径的脚本是:

set PYTHONPATH=e:\Works\hci\pyttsx;%PYTHONPATH%

注意列在这里的目录 e:\Works\hci\pyttsx 里有如下内容

.hg\ docs\ pyttsx\ tests\ .gitignore .hgignore LICENSE MANIFEST.in README.rst setup.py

其中那个 pyttsx 子目录有 init.py ,这个就是库的源代码,所以要被纳入 PYTHONPATH 的是其父目录。


Comment by gjxlu92, Today (103 minutes ago)

老师,pyttsx库就放在C:\Python27下就可以了吧??? 还有哦,Python Shell编码的时候,出现NameError?: name 'Engine' is not defined报错是怎么回事???

Comment by project member G.ShiZhan.G, Today (10 minutes ago)

Python27里面应该有一个叫Lib的目录,一般第三方的包要放进 X:\python安装目录\Lib\site-packages\ 一般有啥东西没找到,一多半是库没找到或者版本不对,所以估计还是刚才那个问题~

Comment by 395143522@qq.com, Oct 14, 2012 老师,为什么我在安装pyttsx时它提示“no python installation found in the registry”,但是我的python经过测试是运行成功的,说明应该不是python安装问题啊

Delete comment Comment by project member G.ShiZhan.G, Oct 14, 2012 嗯,有可能是PATH环境变量中要追加Python安装目录,另外,图简单还是直接用今天上课介绍的portable python,然后拷贝pyttsx进 python\App\Lib\site-packages\吧,毕竟类似的疑难杂症不少,对于开放平台尤甚。

关于SCM及作业提交方法

Reported by zuohaocheng1022, Yesterday (20 hours ago)

建议老师注意一下上课时候的深度,不是每个同学都可以一下子理解SCM工具的精髓的。然后,为什么老师自己用hg而教大家用git呀?

Comment 1 by project member G.ShiZhan.G, Today (moments ago)

谢谢 ^_^

主要还是因为在主流 SCM 之中 Mercurial 确实比较容易上手,我之前也的确是在用 git ,不过里面有不少命令涉及到更复杂的版本管理概念,有的还要回溯到它们的前一代,比方说 SVN ,相比较而言, Mercurial 就更简洁一些。而且,在Windows平台下面,或者是跨平台使用的话,Mercurial 的安装使用要方便不少。

确实,对于忽然间介绍 SCM 我也有一些犹豫,毕竟这玩意有不少前驱知识需要掌握,为什么要做版本,为什么要分布式版本管理,一连串的内容,现在估计只有极少数同学接触过。

在课程内容里忽然插进一些与主线不相干的东西可能有些不妥,随后还将根据同学们的实际情况来考虑是否腾出半堂课来实地讲解一下基本的 Mercurial 操作(忽然注意到你其实很熟悉git啊),然后确定第3、4作业是否用SCM形式来提交。

Comment by gjxl...@gmail.com, Oct 11, 2012

恩,pyttsx运行出错是因为少了个win32com.client的拓展包需要安装,现在都ok了。

Comment by project member G.ShiZha...@gmail.com, Oct 11, 2012

good,那个是pywin32库

Comment by 395143...@qq.com, Oct 14, 2012

老师,为什么我在安装pyttsx时它提示“no python installation found in the registry”,但是我的python经过测试是运行成功的,说明应该不是python安装问题啊

Comment by project member G.ShiZha...@gmail.com, Oct 14, 2012

嗯,有可能是PATH环境变量中要追加Python安装目录,另外,图简单还是直接用今天上课介绍的portable python,然后拷贝pyttsx进 python\App\Lib\site-packages\吧,毕竟类似的疑难杂症不少,对于开放平台尤甚。

Powered by Google Project Hosting