iOS文字转语音在线识别切换发音人无效
Ta的回复 : -------追加--------- -(void)configureOnlineTTS{ [[BDSSpeechSynthesizer sharedInstance] setApiKey:API_KEY_TTS withSecretKey:SECRET_KEY_TTS]; [[AVAudioSession sharedInstance]setCategory:AVAudioSessionCategoryPlayback error:nil]; [[BDSSpeechSynthesizer sharedInstance] setSynthParam:@(BDS_SYNTHESIZER_SPEAKER_MALE_3) forKey:BDS_SYNTHESIZER_PARAM_SPEAKER]; // [[BDSSpeechSynthesizer sharedInstance] setSynthParam:@(10) forKey:BDS_SYNTHESIZER_PARAM_ONLINE_REQUEST_TIMEOUT]; }