【发布时间】:2013-12-26 00:06:56
【问题描述】:
我正在尝试向我的应用程序添加语音提示,并在 iOS 7 中测试 AVSpeechUtterance,但默认语速非常快。最低语速更容易理解。但是最大音量值 1 太安静了!我在我的 iPhone 4 上测试了它,音量一直调高。一定有问题,否则这将如何使用。
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init];
NSString *mystring = [NSString stringWithFormat:@"Talk String Here %@",myObject.name];
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:mystring];
[utterance setRate:AVSpeechUtteranceMinimumSpeechRate];
[utterance setVolume:1];
[synthesizer speakUtterance:utterance];
【问题讨论】:
-
您找到解决方案了吗?我遇到了同样的问题,就是音量。
-
不,我没有,但我也没有一直在努力。似乎没有好的解决方案。
-
我在下面发布了对我有用的内容 (stackoverflow.com/a/28922543/2578205)。也许这会有所帮助?
-
@Glavin001 您是否找到有关音量的任何解决方案?我被困在这里非常糟糕。没有找到任何灵魂
标签: ios ios7 text-to-speech