404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.138.141.138: ~ $
<?php

class TTSService extends BaseSerevice {
	public $curl;
	function init(){
		$this->curl = new MiniCurl();
	}
	public function getSoundFromGoogle($word){
		$soundFile = $this->getTG()->getTTS()->normalizeGermanWord($word);
		// $this->getTG()->db->hasSoundFile($word, $soundFile, $foundWord);
		return "http://bot.bayadic.com/bot/bayadicbot/bots/trgerman/sounds/" . strtolower($soundFile).".mp3";
		
	}
	public function normalizeGermanWord($word){
		$word = str_replace("ü","ue",$word);
		$word = str_replace("Ü","ue",$word);
		$word = str_replace("ö","oe",$word);
		$word = str_replace("Ö","oe",$word);
		$word = str_replace("ä","ae",$word);
		$word = str_replace("Ä","ae",$word);
		$word = str_replace("ß","ss",$word);
		$word = str_replace(" ","_",$word);
		return $word;
	}
	
}

?>

Filemanager

Name Type Size Permission Actions
invite Folder 0755
translate Folder 0755
BaseMessageService.class.php File 268 B 0644
BaseService.class.php File 364 B 0644
ButtonService.class.php File 4.15 KB 0644
CallbackService.class.php File 2.41 KB 0644
ContributionService.class.php File 1.76 KB 0644
IntentService.class.php File 7.19 KB 0644
SearchService.class.php File 811 B 0644
TTSService.class.php File 797 B 0644