IFlyTTS 1.2.2

IFlyTTS 1.2.2

Maintained by MQL9011.



IFlyTTS 1.2.2

IFlyTTS

讯飞语言 文字合成语音二次封装,离线语言合成,支持语速等调节。简单使用。Appid可以到官网申请。

Requirements

Installation

pod 'IFlyTTS'
  • One
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[IFlyTTS configAppID:@""];
return YES;
}
  • Two
@property(nonatomic,strong) IFlyTTS *tts;
IFlyTTS_Config *config = [IFlyTTS_Config sharedInstance];
self.tts = [[IFlyTTS alloc]init];
self.tts.delegate = self;
[self.tts speechSynthesizerWith: config];
  • Three
[self.tts playText:testStr];