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 "https://bot.bayadic.com/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 2755
translate Folder 2755
BaseMessageService.class.php File 268 B 0755
BaseService.class.php File 364 B 0755
ButtonService.class.php File 6.81 KB 0755
CallbackService.class.php File 2.51 KB 0755
ContributionService.class.php File 1.76 KB 0755
GermanButtonService.class.php File 2.19 KB 0755
IntentService.class.php File 7.37 KB 0755
SearchService.class.php File 811 B 0755
TTSService.class.php File 769 B 0755