我从网上获得了一个代码,该代码读取了一个给定的声明:
Option Explicit
Dim Zira, David
Set Zira = CreateObject("SAPI.spvoice")
Set Zira.Voice = Zira.GetVoices.Item(1)
Set David = CreateObject("SAPI.spvoice")
Set David.Voice = David.GetVoices.Item(0)
David.Rate = 0
David.Speak "the statement that is going to be readed"
Zira.Rate = 0
Zira.Speak "the statement that is going to be readed"
但我想要的是让它说一首没有英语声音的外国字母,例如阿姆哈拉语በ
。如果我把它直接放在代码中会产生意想不到的结果。如果有人有想法分享,我会很高兴。如果有其他语言的程序可以做到这一点,我不介意。