sábado, 26 de mayo de 2018
php graph report
https://canvasjs.com/php-charts/dynamic-live-column-chart/
sábado, 19 de mayo de 2018
google tts
curl -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) -H "Content-Type: application/json; charset=utf-8" --data "{
'input':{
'text':' Hello thankyou for calling to our National Weather Service'
},
'voice':{
'languageCode':'en-us',
'name':'en-US-Wavenet-A',
'ssmlGender':'MALE'
},
'audioConfig':{
'audioEncoding':'MP3'
}
}" "https://texttospeech.googleapis.com/v1beta1/text:synthesize?key=AIzaSyAtbcd23FAaJTKgpgaJxs" > synthesize-text.txt
sed 's|audioContent| |' < synthesize-text.txt > tmp-output.txt && tr -d '\n ":{}' < tmp-output.txt > tmp-output-2.txt && base64 tmp-output-2.txt --decode > synthesize-text-audio.mp3 && rm tmp-output*.txt
https://cloud.google.com/text-to-speech/docs/create-audio
https://cloud.google.com/text-to-speech/docs/voices
'input':{
'text':' Hello thankyou for calling to our National Weather Service'
},
'voice':{
'languageCode':'en-us',
'name':'en-US-Wavenet-A',
'ssmlGender':'MALE'
},
'audioConfig':{
'audioEncoding':'MP3'
}
}" "https://texttospeech.googleapis.com/v1beta1/text:synthesize?key=AIzaSyAtbcd23FAaJTKgpgaJxs" > synthesize-text.txt
sed 's|audioContent| |' < synthesize-text.txt > tmp-output.txt && tr -d '\n ":{}' < tmp-output.txt > tmp-output-2.txt && base64 tmp-output-2.txt --decode > synthesize-text-audio.mp3 && rm tmp-output*.txt
https://cloud.google.com/text-to-speech/docs/create-audio
https://cloud.google.com/text-to-speech/docs/voices
https://cloud.google.com/text-to-speech/docs/quickstart-protocol
viernes, 11 de mayo de 2018
PHP Api add user and password to Hotspot
require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar';
$util = new RouterOS\Util($client = new RouterOS\Client('192.168.88.1', 'admin', 'password'));
$util->setMenu('/ip hotspot user')->add(
array(
'name' => 'user1',
'password' => 'password1',
'profile' => 'profile1'
)
);https://forum.mikrotik.com/viewtopic.php?t=104614
Suscribirse a:
Entradas (Atom)