public SpeechGenerator(SpeechAppData appData, SpeechForamt foramt = SpeechForamt.MP3, TTSParam ttsParam = default(TTSParam)) { switch (foramt) { case SpeechForamt.WAV: case SpeechForamt.PCM: case SpeechForamt.AMR: throw new NotImplementedException("<Ming> ## Uni Exception ## Cls:SpeechGenerator Func:SpeechGenerator Info: only support mp3"); case SpeechForamt.MP3: _handler = new MP3SpeechGenerator(appData, ttsParam); break; } }
public MP3SpeechGenerator(SpeechAppData appData, TTSParam ttsParam = default(TTSParam)) { _tts = new Tts(appData.apiKey, appData.secretKey); }