X-Git-Url: http://git.rot13.org/?p=bookreader.git;a=blobdiff_plain;f=BookReader%2FBookReader.js;h=191617dfa925fcf69aa2cb1f64baa113a1b258a8;hp=f806d25cf1e3b2c158486d0fbec83ba3b193234f;hb=d1e690ada4709a4775b161a28c9283fa0902cd27;hpb=9abd5aafd6b6cf78fa898436b0c6fba38655ec64 diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index f806d25..191617d 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -3884,7 +3884,7 @@ BookReader.prototype.ttsStartCB = function (data) { var snd = soundManager.createSound({ id: 'chunk'+this.ttsIndex+'-0', //url: 'http://home.us.archive.org/~rkumar/arctic.ogg', - url: 'http://'+this.server+'/getTTS.php?string=' + escape(data[0][0]) + '&format=.'+this.ttsFormat, //the .ogg is to trick SoundManager2 to use the HTML5 audio player + url: 'http://'+this.server+'/BookReader/BookReaderGetTTS.php?string=' + escape(data[0][0]) + '&format=.'+this.ttsFormat, //the .ogg is to trick SoundManager2 to use the HTML5 audio player whileloading: function(){if (this.bytesLoaded == this.bytesTotal) this.br.ttsRemovePopup();}, //onload never fires in FF... onload: function(){this.br.ttsRemovePopup();} //whileloading never fires in safari... }); @@ -3936,7 +3936,7 @@ BookReader.prototype.ttsNextPageCB = function (data) { BookReader.prototype.ttsLoadChunk = function (page, pos, string) { var snd = soundManager.createSound({ id: 'chunk'+page+'-'+pos, - url: 'http://'+this.server+'/getTTS.php?string=' + escape(string) + '&format=.'+this.ttsFormat //the .ogg is to trick SoundManager2 to use the HTML5 audio player + url: 'http://'+this.server+'/BookReader/BookReaderGetTTS.php?string=' + escape(string) + '&format=.'+this.ttsFormat //the .ogg is to trick SoundManager2 to use the HTML5 audio player }); snd.br = this; snd.load()