404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.15.145.231: ~ $
<?php

// Imports the Cloud Client Library
use Google\Cloud\TextToSpeech\V1\AudioConfig;
use Google\Cloud\TextToSpeech\V1\AudioEncoding;
use Google\Cloud\TextToSpeech\V1\SsmlVoiceGender;
use Google\Cloud\TextToSpeech\V1\SynthesisInput;
use Google\Cloud\TextToSpeech\V1\TextToSpeechClient;
use Google\Cloud\TextToSpeech\V1\VoiceSelectionParams;
class TTSSwedisch extends TTSService {
    public $googleCloudTTS;
    function getSoundFromGoogle($word){
        $word = strtolower($word);
        if(false && !file_get_contents("http://bot.bayadic.com/sounds/".$word.".mp3")){
            if(!file_exists("sounds")){
                mkdir("sounds", 0777, true);
            }
            $client = new TextToSpeechClient();
            $synthesisInputText = (new SynthesisInput())
            ->setText($word);
            $voice = (new VoiceSelectionParams())
            ->setLanguageCode('sv')
            ->setSsmlGender(SsmlVoiceGender::FEMALE);
            $effectsProfileId = "telephony-class-application";
            $audioConfig = (new AudioConfig())
            ->setAudioEncoding(AudioEncoding::MP3)
            ->setEffectsProfileId(array($effectsProfileId));
            $response = $client->synthesizeSpeech($synthesisInputText, $voice, $audioConfig);
            $audioContent = $response->getAudioContent();
            file_put_contents("sounds/".$word.'.mp3', $audioContent);
            // echo 'Audio content written to "output.mp3"' . PHP_EOL;
        }
        else {
        }
        return "https://bot.bayadic.com/bots/trswedish/sounds/" . strtolower($word).".mp3";

    }
}

?>



Filemanager

Name Type Size Permission Actions
db Folder 2755
AccessSwedish.class.php File 1.37 KB 0755
SwedisIntentService.class.php File 361 B 0755
SwedishInviteInline.class.php File 1.6 KB 0755
SwedishStart.intent.class.php File 2.36 KB 0755
TTSSwedish.class.php File 1.57 KB 0755
TranslateSwedish.class.php File 872 B 0755
loaderswedish.php File 537 B 0755