Android 如何使用Flex Air更改AS3中的语音基调?
我正在我的flex项目中使用谷歌的文本语音转换服务。谷歌使用女性声音。但我想用机器人的声音。可以改变声音吗?(例如,使用节距值。) 我的职能(可能需要):Android 如何使用Flex Air更改AS3中的语音基调?,android,actionscript-3,apache-flex,air,flash-builder,Android,Actionscript 3,Apache Flex,Air,Flash Builder,我正在我的flex项目中使用谷歌的文本语音转换服务。谷歌使用女性声音。但我想用机器人的声音。可以改变声音吗?(例如,使用节距值。) 我的职能(可能需要): Platform:Air for Android我在一个项目中使用了SoundTouch库,效果很好: 这可能有助于。。。这对我很有用,但对Flash来说很有用。我正在使用flashbuilder(flex)。程序使用AS3,但我不知道如何将Flash转换为Flex:(@SamedDeger,基本上是一样的。尝试迁移代码,非常简单。我甚至怀疑
Platform:Air for Android我在一个项目中使用了SoundTouch库,效果很好:
这可能有助于。。。这对我很有用,但对Flash来说很有用。我正在使用flashbuilder(flex)。程序使用AS3,但我不知道如何将Flash转换为Flex:(@SamedDeger,基本上是一样的。尝试迁移代码,非常简单。我甚至怀疑迁移是否是正确的术语:)
private var domain:String = "http://samed.us/";
private function speech(text:String):void
{
text = escape(text);
var url:String = domain+"speak_en_"+text;
_sound = new Sound();
_sound.addEventListener(Event.COMPLETE, soundPlay);
_sound.load(new URLRequest(url));
}
private function soundPlay(event:Event):void
{
var playIt:Sound = event.target as Sound;
playIt.play();
}