速度/俯仰/方差移現在是爲0.911版本OpenEars的特徵。
[:,右發送此消息之前
duration_stretch // Duration of speech
target_mean // Average pitch of speech
target_stddev // Variance
例如:
更改聲音的速度,音調和多變性使用FliteController以下屬性:可以按如下方式使用它self.fliteController說:@「我希望我的應用程序大聲說出一句話。」 withVoice:@ 「cmu_us_awb8k」];
你可以做以下設置self.fliteController:
self.fliteController.duration_stretch = 1.5; // Slow down the speed a bit
self.fliteController.target_mean = 1.2; // Raise the pitch
self.fliteController.target_stddev = 1.5; // Increase the variance
1.0是默認的,0.0是最低值,2.0是一個可能的最大可用值(雖然你可以去高於2.0,它可能不會成爲有用的價值)。
的0.5甲duration_stretch將是兩倍快1.0,2.0的duration_stretch將是1.0速度的一半。 target_mean或target_stddev爲2.0會使平均音高頻率加倍或方差增加一倍,而0.5會將它們減半。
您沒有設置或者覆蓋這些設置 - 如果你不使用它們,它們將被設置爲默認值的聲音。如果你想覆蓋他們之後將其返回到默認設置,只需將它們全部設置爲1.0:
self.fliteController.duration_stretch = 1.0; // Reset the speed
self.fliteController.target_mean = 1.0; // Reset the pitch
self.fliteController.target_stddev = 1.0; // Reset the variance