- 打开听写
- 创建脚本
- 创建脚本
#1 简单
set fileInfo to do shell script "say 主人,你发生什么事了"
#2 复杂
set fileInfo to do shell script "/usr/local/bin/python3 /Users/sun/Documents/say.py"
#say.py
import os
result = '你好,主人'
os.system('say '+result)
#1 简单
set fileInfo to do shell script "say 主人,你发生什么事了"
#2 复杂
set fileInfo to do shell script "/usr/local/bin/python3 /Users/sun/Documents/say.py"
#say.py
import os
result = '你好,主人'
os.system('say '+result)