Esempio n. 1
0
 public function postInstall()
 {
     $tts_engine = new TTSEngine();
     $tts_engine['name'] = 'Flite';
     $tts_engine['description'] = 'Flite (festival-lite) is an opensource test to speech engine developed at CMU';
     $tts_engine['speakers'] = array('kal', 'slt', 'rms', 'awb');
     $tts_engine->save();
 }
Esempio n. 2
0
File: tts.php Progetto: swk/bluebox
 public static function dropdown($data, $selected = NULL, $extra = '')
 {
     // standardize the $data as an array, strings default to the class_type
     if (!is_array($data)) {
         $data = array('name' => $data);
     }
     // add in all the defaults if they are not provided
     $defaults = array('nullOption' => FALSE);
     $data = arr::merge($defaults, $data);
     $options = TTSEngine::catalog();
     if ($data['nullOption']) {
         array_unshift($options, $data['nullOption']);
     }
     $data = array_diff($data, $defaults);
     // use kohana helper to generate the markup
     return form::dropdown($data, $options, $selected, $extra);
 }