Example #1
0
 /** To generate the sound */
 public function process()
 {
     // Get a random text corresponding to the voicekey
     $text = $this->textCollection->getText($this->voicekey);
     // Replace some vars to corresponding sub-voicekey
     $this->vars = $this->textCollection->replaceSubvoicekey($this->vars);
     // Populate the text with vars
     $this->tts = TextBuilder::process($text, $this->vars);
     // Generate and play the sound
     $this->soundSystemProcess_tmp();
     //$this->soundSystemProcess();
 }