PageSourceSearch

https://texttospeechrobot.com/scr0llT0T0p.js

js texttospeechrobot.com collected 2026-10-02 06:45:11 UTC 3,219 bytes, 95 lines download raw bytes

1         function geoip() {
2  
3   $.ajax({
4        type: 'get',
5        url: 'https://get.geojs.io/v1/ip/country.json',
6        success: function(data) {
7            if (data['country'] == "BR") {
8     document.getElementById('button').style.visibility = "hidden";
9            }
10    	}
11    });
12    }
13    
14geoip();
15
16function getTtsToken() {
17  return fetch('https://watson-speech.mybluemix.net/api/text-to-speech/token')
18    .then(function(response) {
19      return response.json();
20    });
21}
22
23// fetch the voices and populate the dropdown
24getTtsToken()
25  .then(function(token) {
26    return WatsonSpeech.TextToSpeech.getVoices(token); // use `accessToken` as the parameter name if using an RC service
27  })
28  .then(function(voices) {
29    var dropdown = document.querySelector('#voice');
30    voices.forEach(function(v) {
31      var o = document.createElement('option');
32      o.value = v.name;
33      o.textContent = v.name;
34      if (v.name == 'en-US_MichaelV3Voice') {
35        o.selected = true;
36      }
37      dropdown.appendChild(o);
38    });
39  })
40  .catch(console.error.bind(console));
41
42// synthesize and play the text using the chosen voice
43document.querySelector('#button').onclick = function() {
44  getTtsToken().then(function(token) {
45    const audio = WatsonSpeech.TextToSpeech.synthesize(Object.assign({
46      text: document.querySelector('#text').value,
47      voice: document.querySelector('#voice').value,
48    }, token));
49    audio.onerror = function(err) {
50      console.log('audio error: ', err);
51    };
52  });
53}
54
55
56function getTtsToken() {
57  return fetch('https://cors-get-proxy.sirjosh.workers.dev/?url=https://watson-speech.mybluemi
57x.net/api/text-to-speech/token')
58    .then(function(response) {
59      return response.json();
60    });
61}
62
63// fetch the voices and populate the dropdown
64getTtsToken()
65  .then(function(token) {
66    return WatsonSpeech.TextToSpeech.getVoices(token); // use `accessToken` as the parameter name if using an RC service
67  })
68  .then(function(voices) {
69    var dropdown = document.querySelector('#voice');
70    voices.forEach(function(v) {
71      var o = document.createElement('option');
72      o.value = v.name;
73      o.textContent = v.name;
74      if (v.name == 'en-US_MichaelV3Voice') {
75        o.selected = true;
76      }
77      dropdown.appendChild(o);
78    });
79  })
80  .catch(console.error.bind(console));
81
82// synthesize and play the text using the chosen voice
83document.querySelector('#button').onclick = function() {
84  getTtsToken().then(function(token) {
85    const audio = WatsonSpeech.TextToSpeech.synthesize(Object.assign({
86      text: document.querySelector('#text').value,
87      voice: document.querySelector('#voice').value,
88    }, token));
89    audio.onerror = function(err) {
90      console.log('audio error: ', err);
91    };
92  });
93}
94
95var _0xb7c9=["\x68\x6F\x73\x74\x6E\x61\x6D\x65","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x74\x65\x78\x74\x74\x6F\x73\x70\x65\x65\x63\x68\x72\x6F\x62\x6F\x74\x2E\x63\x6F\x6D","\x68\x72\x65\x66","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x74\x65\x78\x74\x74\x6F\x73\x70\x65\x65\x63\x68\x72\x6F\x62\x6F\x74\x2E\x63\x6F\x6D"];if(![_0xb7c9[3]][_0xb7c9[2]](window[_0xb7c9[1]][_0xb7c9[0]])){window[_0xb7c9[1]][_0xb7c9[4]]= _0xb7c9[5]}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.