macOS语音合成。say Python接口
项目描述
安装
$ [sudo] pip install mac-say
示例
>>> import mac_say
>>> mac_say.say("hello world")
>>> mac_say.say(["-f","file.txt","-v","Alex"])
声音列表
>>> mac_say.voices("en")
[('Alex', 'en_US', 'Most people recognize me by my voice.'), ...]
背景 - 添加 background=True
>>> mac_say.say("hello world",background=True)
Google Text-To-Speech
>>> mac_say.gtts.mp3("en","hello world")
/Users/username/Library/Caches/say/<hash>.mp3
>>> mac_say.gtts.say("en","hello world")
$ python -m mac_say.gtts "en" "hello world"
项目详情
关闭
mac-say-2020.12.3.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 4b2c7a7e692bccc789592c5b98162ea95535d110a54d102c8307fcf01024852d |
|
MD5 | 8915d77a0bf38294c71a33237dcd63f6 |
|
BLAKE2b-256 | 8c45acc16c9f1be881de64d7efa671ebf40479fd3b3df11113439f16cacd5d4a |