コード例 #1
0
  public TtsVoice findByCommandOrName(String inVoiceLibOrCommandName) {

    TtsVoice voice = TtsVoiceCommon.findByName(inVoiceLibOrCommandName);
    if (voice == null) {
      voice = TtsVoiceCommon.findByCommand(inVoiceLibOrCommandName);
    }

    return voice;
  }
コード例 #2
0
 public TtsVoice findByCommandOrName(String voice, long language) {
   TtsVoice theResult;
   theResult = TtsVoiceCommon.findByName(voice);
   if (theResult == null) {
     theResult = TtsVoiceCommon.findByCommand(voice);
   }
   if (theResult == null) {
     theResult = TtsVoiceCommon.getDefaultVoice(language);
   }
   return theResult;
 }
コード例 #3
0
 public List<TtsVoice> findAllByLang(Lang inLang) {
   return TtsVoiceCommon.getAllByLang(inLang);
 }
コード例 #4
0
 public TtsVoice findByLang(long langId) {
   return TtsVoiceCommon.getDefaultVoice(langId);
 }
コード例 #5
0
 public TtsVoice findByName(String inVoice) {
   return TtsVoiceCommon.findByName(inVoice);
 }