有没有办法使用 pyttsx3 添加暂停/延迟?
假设我有一个要读取的行列表,例如: ["Line 1", "Line 2", "Line 3"]
有没有办法使用“pyttsx3”模块在每行后面添加暂停/延迟? 例如,它会显示(将保存到 mp3 文件):
“第 1 行”短暂停*“第 2 行”短暂停*“第 3 行”
当我使用句点和逗号时,引擎确实会停止一点点;然而,这还不够长。另外,在句子末尾添加多个句点或逗号是行不通的——它似乎会忽略第一个句点/逗号之后的所有句点/逗号。
预先感谢您的任何帮助!
Say I have a list of lines that I want to read off, such as:["Line 1", "Line 2", "Line 3"]
Is there a way to use the "pyttsx3" module to add a pause/delay after each line?
So, for example, it would say (which would be saved to an mp3 file):
"Line 1" short pause* "Line 2" short pause* "Line 3"
The engine does stop a tiny bit when I use periods and commas; however, it's not really long enough. Also, adding multiple periods or commas to the end of the sentence doesn't work--it seems to ignore all periods/commas after the first one.
Thanks in Advance for Any Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用:
在字里行间。
You would be able to use:
In between the lines.