PHP Classes

File: img/sequenia.svg

Recommend this page to a friend!
  Classes of Rodrigo Faustino   TradutorX   img/sequenia.svg   Download  
File: img/sequenia.svg
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: TradutorX
Let users send voice requests to ChatGPT or Google
Author: By
Last change:
Date: 6 months ago
Size: 17,767 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="780px" preserveAspectRatio="none" style="width:1121px;height:780px;background:#FFFFFF;" version="1.1" viewBox="0 0 1121 780" width="1121px" zoomAndPan="magnify"><defs/><g><rect fill="none" height="352.3984" style="stroke:#000000;stroke-width:1.5;" width="648" x="466" y="242.9609"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="33" x2="33" y1="81.2969" y2="699.7578"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="209.5" x2="209.5" y1="81.2969" y2="699.7578"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="332" x2="332" y1="81.2969" y2="699.7578"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="515" x2="515" y1="81.2969" y2="699.7578"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="682" x2="682" y1="81.2969" y2="699.7578"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="825" x2="825" y1="81.2969" y2="699.7578"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="952" x2="952" y1="81.2969" y2="699.7578"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="1059" x2="1059" y1="81.2969" y2="699.7578"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="51" x="5" y="77.9951">Usu&#225;rio</text><ellipse cx="33.5" cy="13.5" fill="#E2E2F0" rx="8" ry="8" style="stroke:#181818;stroke-width:0.5;"/><path d="M33.5,21.5 L33.5,48.5 M20.5,29.5 L46.5,29.5 M33.5,48.5 L20.5,63.5 M33.5,48.5 L46.5,63.5 " fill="none" style="stroke:#181818;stroke-width:0.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="51" x="5" y="711.7529">Usu&#225;rio</text><ellipse cx="33.5" cy="723.5547" fill="#E2E2F0" rx="8" ry="8" style="stroke:#181818;stroke-width:0.5;"/><path d="M33.5,731.5547 L33.5,758.5547 M20.5,739.5547 L46.5,739.5547 M33.5,758.5547 L20.5,773.5547 M33.5,758.5547 L46.5,773.5547 " fill="none" style="stroke:#181818;stroke-width:0.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="66" x="173.5" y="61.6982">Interface</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="66" x="173.5" y="77.9951">Frontend</text><path d="M189,20.7031 L189,44.7031 M189,32.7031 L206,32.7031 " fill="none" style="stroke:#181818;stroke-width:0.5;"/><ellipse cx="218" cy="32.7031" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="66" x="173.5" y="711.7529">Interface</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="66" x="173.5" y="728.0498">Frontend</text><path d="M189,735.3516 L189,759.3516 M189,747.3516 L206,747.3516 " fill="none" style="stroke:#181818;stroke-width:0.5;"/><ellipse cx="218" cy="747.3516" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="119" x="270" y="61.6982">AvatarCompleto</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="72" x="293.5" y="77.9951">JavaScript</text><ellipse cx="332.5" cy="32.7031" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="328.5,20.7031,334.5,15.7031,332.5,20.7031,334.5,25.7031,328.5,20.7031" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="119" x="270" y="711.7529">AvatarCompleto</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="72" x="293.5" y="728.0498">JavaScript</text><ellipse cx="332.5" cy="747.3516" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="328.5,735.3516,334.5,730.3516,332.5,735.3516,334.5,740.3516,328.5,735.3516" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="62" x="481.5" y="61.6982">Backend</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="73" x="476" y="77.9951">index.php</text><ellipse cx="515.5" cy="32.7031" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><line style="stroke:#181818;stroke-width:0.5;" x1="503.5" x2="527.5" y1="46.7031" y2="46.7031"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="62" x="481.5" y="711.7529">Backend</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="73" x="476" y="728.0498">index.php</text><ellipse cx="515.5" cy="747.3516" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><line style="stroke:#181818;stroke-width:0.5;" x1="503.5" x2="527.5" y1="761.3516" y2="761.3516"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="129" x="615" y="77.9951">TranslationRouter</text><ellipse cx="682.5" cy="49" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="678.5,37,684.5,32,682.5,37,684.5,42,678.5,37" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="129" x="615" y="711.7529">TranslationRouter</text><ellipse cx="682.5" cy="731.0547" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="678.5,719.0547,684.5,714.0547,682.5,719.0547,684.5,724.0547,678.5,719.0547" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="124" x="760" y="61.6982">GoogleTranslator</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="72" x="786" y="77.9951">/ ChatGPT</text><ellipse cx="825" cy="32.7031" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="821,20.7031,827,15.7031,825,20.7031,827,25.7031,821,20.7031" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="124" x="760" y="711.7529">GoogleTranslator</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="72" x="786" y="728.0498">/ ChatGPT</text><ellipse cx="825" cy="747.3516" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="821,735.3516,827,730.3516,825,735.3516,827,740.3516,821,735.3516" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="99" x="900" y="77.9951">CacheHandler</text><path d="M934.5,29 C934.5,19 952.5,19 952.5,19 C952.5,19 970.5,19 970.5,29 L970.5,55 C970.5,65 952.5,65 952.5,65 C952.5,65 934.5,65 934.5,55 L934.5,29 " fill="#E2E2F0" style="stroke:#181818;stroke-width:1.5;"/><path d="M934.5,29 C934.5,39 952.5,39 952.5,39 C952.5,39 970.5,39 970.5,29 " fill="none" style="stroke:#181818;stroke-width:1.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="99" x="900" y="711.7529">CacheHandler</text><path d="M934.5,725.0547 C934.5,715.0547 952.5,715.0547 952.5,715.0547 C952.5,715.0547 970.5,715.0547 970.5,725.0547 L970.5,751.0547 C970.5,761.0547 952.5,761.0547 952.5,761.0547 C952.5,761.0547 934.5,761.0547 934.5,751.0547 L934.5,725.0547 " fill="#E2E2F0" style="stroke:#181818;stroke-width:1.5;"/><path d="M934.5,725.0547 C934.5,735.0547 952.5,735.0547 952.5,735.0547 C952.5,735.0547 970.5,735.0547 970.5,725.0547 " fill="none" style="stroke:#181818;stroke-width:1.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="83" x="1015" y="77.9951">CurlHandler</text><ellipse cx="1059.5" cy="49" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="1055.5,37,1061.5,32,1059.5,37,1061.5,42,1055.5,37" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="83" x="1015" y="711.7529">CurlHandler</text><ellipse cx="1059.5" cy="731.0547" fill="#E2E2F0" rx="12" ry="12" style="stroke:#181818;stroke-width:0.5;"/><polygon fill="#181818" points="1055.5,719.0547,1061.5,714.0547,1059.5,719.0547,1061.5,724.0547,1055.5,719.0547" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="197.5,108.4297,207.5,112.4297,197.5,116.4297,201.5,112.4297" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="33.5" x2="203.5" y1="112.4297" y2="112.4297"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="152" x="40.5" y="107.3638">Iniciar Captura de &#193;udio</text><polygon fill="#181818" points="320.5,137.5625,330.5,141.5625,320.5,145.5625,324.5,141.5625" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="209.5" x2="326.5" y1="141.5625" y2="141.5625"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="91" x="216.5" y="136.4966">Captura &#193;udio</text><line style="stroke:#181818;stroke-width:1.0;" x1="332.5" x2="374.5" y1="170.6953" y2="170.6953"/><line style="stroke:#181818;stroke-width:1.0;" x1="374.5" x2="374.5" y1="170.6953" y2="183.6953"/><line style="stroke:#181818;stroke-width:1.0;" x1="333.5" x2="374.5" y1="183.6953" y2="183.6953"/><polygon fill="#181818" points="343.5,179.6953,333.5,183.6953,343.5,187.6953,339.5,183.6953" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="98" x="339.5" y="165.6294">Processa &#193;udio</text><polygon fill="#181818" points="503.5,223.9609,513.5,227.9609,503.5,231.9609,507.5,227.9609" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="332.5" x2="509.5" y1="227.9609" y2="227.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="109" x="339.5" y="207.7622">Solicita Tradu&#231;&#227;o</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="95" x="339.5" y="222.895">(texto, idioma)</text><path d="M466,242.9609 L532,242.9609 L532,250.0938 L522,260.0938 L466,260.0938 L466,242.9609 " fill="#EEEEEE" style="stroke:#000000;stroke-width:1.5;"/><rect fill="none" height="352.3984" style="stroke:#000000;stroke-width:1.5;" width="648" x="466" y="242.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacing" textLength="21" x="481" y="256.0278">alt</text><text fill="#000000" font-family="sans-serif" font-size="11" font-weight="bold" lengthAdjust="spacing" textLength="74" x="547" y="255.1714">[Cache Hit]</text><polygon fill="#181818" points="940.5,277.2266,950.5,281.2266,940.5,285.2266,944.5,281.2266" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="515.5" x2="946.5" y1="281.2266" y2="281.2266"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="102" x="522.5" y="276.1606">Busca no Cache</text><polygon fill="#181818" points="526.5,306.3594,516.5,310.3594,526.5,314.3594,522.5,310.3594" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="520.5" x2="951.5" y1="310.3594" y2="310.3594"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="95" x="532.5" y="305.2935">Retorna Cache</text><line style="stroke:#000000;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="466" x2="1114" y1="319.3594" y2="319.3594"/><text fill="#000000" font-family="sans-serif" font-size="11" font-weight="bold" lengthAdjust="spacing" textLength="83" x="471" y="329.5698">[Cache Miss]</text><polygon fill="#181818" points="940.5,350.2969,950.5,354.2969,940.5,358.2969,944.5,354.2969" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="515.5" x2="946.5" y1="354.2969" y2="354.2969"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="102" x="522.5" y="349.231">Busca no Cache</text><polygon fill="#181818" points="526.5,379.4297,516.5,383.4297,526.5,387.4297,522.5,383.4297" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="520.5" x2="951.5" y1="383.4297" y2="383.4297"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="102" x="532.5" y="378.3638">N&#227;o Encontrado</text><polygon fill="#181818" points="670.5,408.5625,680.5,412.5625,670.5,416.5625,674.5,412.5625" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="515.5" x2="676.5" y1="412.5625" y2="412.5625"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="143" x="522.5" y="407.4966">Encaminha Solicita&#231;&#227;o</text><polygon fill="#181818" points="813,437.6953,823,441.6953,813,445.6953,817,441.6953" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="682.5" x2="819" y1="441.6953" y2="441.6953"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="85" x="689.5" y="436.6294">Traduz Texto</text><polygon fill="#181818" points="1047.5,466.8281,1057.5,470.8281,1047.5,474.8281,1051.5,470.8281" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="825" x2="1053.5" y1="470.8281" y2="470.8281"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="145" x="832" y="465.7622">Executa cURL para API</text><polygon fill="#181818" points="836,495.9609,826,499.9609,836,503.9609,832,499.9609" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="830" x2="1058.5" y1="499.9609" y2="499.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="84" x="842" y="494.895">Resposta API</text><polygon fill="#181818" points="693.5,525.0938,683.5,529.0938,693.5,533.0938,689.5,529.0938" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="687.5" x2="824" y1="529.0938" y2="529.0938"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="104" x="699.5" y="524.0278">Texto Traduzido</text><polygon fill="#181818" points="526.5,554.2266,516.5,558.2266,526.5,562.2266,522.5,558.2266" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="520.5" x2="681.5" y1="558.2266" y2="558.2266"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="115" x="532.5" y="553.1606">Retorna Tradu&#231;&#227;o</text><polygon fill="#181818" points="940.5,583.3594,950.5,587.3594,940.5,591.3594,944.5,587.3594" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="515.5" x2="946.5" y1="587.3594" y2="587.3594"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="99" x="522.5" y="582.2935">Salva no Cache</text><polygon fill="#181818" points="343.5,619.4922,333.5,623.4922,343.5,627.4922,339.5,623.4922" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="337.5" x2="514.5" y1="623.4922" y2="623.4922"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="159" x="349.5" y="618.4263">Retorna Texto Traduzido</text><polygon fill="#181818" points="220.5,648.625,210.5,652.625,220.5,656.625,216.5,652.625" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="214.5" x2="331.5" y1="652.625" y2="652.625"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="99" x="226.5" y="647.5591">Exibe Tradu&#231;&#227;o</text><polygon fill="#181818" points="44.5,677.7578,34.5,681.7578,44.5,685.7578,40.5,681.7578" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="38.5" x2="208.5" y1="681.7578" y2="681.7578"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="137" x="50.5" y="676.6919">Avatar Fala Tradu&#231;&#227;o</text><!--SRC=[fLExRXin4Epv5OkhOY1A-YiCs88V2X93aEHEpOfa8Y8KUU13aDtbKu8K-H3zMFR8Ur2oaYPNBRd3uN1s3dcm3fvzHASie8UAwkDFMbHiOwCHw5xWtbaJf16fFwFIVKKkrwRVhnYdmbaDDtiCwAPsrsWPCj_frjfymZqkkLDDg9WqGOKNk4N-lQVlwhLHHiZ3XsRRZEmB6-dk15ivD5vZKDRatH7Ljsn6FbZxJSjnSsq-mdIBuM6-gfWWRHlq4gR8jpBXK_M8HkYIT1gTpcqgXYxhZPjS3oRLC3EAAtJ4sOJe48I4uuyeb6M3aOG_zQKUq1tqpCaB1-RESkdzFqvqNjQmj9ea1Moz4V7u-_YB1l4ko4Emxq7HuHrUCOOwT3uygi20ldumn9KQDTn6pn6CpUi4oaScvNqB4k0CTY2f1uE_AE__Y_c9fCETIMD1OS-vSXRg5e4xPROuF3qzEi6x515w34MTdNc5LUj9WXKnQaNIs8ds87aa6_dpuZCqIDEwcS-or3OVapFEXVIDzM54bPo5sdHffq29KvMNR1sd-1SlbwZtXPVKP6n0NOZIG7mcv6sanfJV7TH6bbBAS7V_HTtT1FUeIzb_0000]--></g></svg>