Hi, I'm using your library to generate and stream an audio on the fly like this.
app.get('/test', function (req, res){
...
res.setHeader("Content-Type", "audio/mpeg");
ivona.createVoice(text, options).pipe(res);
});
That works in any browser I tested so far except for Epiphany (GNOME Web) which is based on webkit2gtk.
However, if I set the output to OGG codec like this
It will work in Epiphany.
Please note that Epiphany HAS mp3 playback capability. In fact if I stream an mp3 from my local file system it will work in Epiphany as well (even if it won't be able to show its duration):
app.get('/test', function (req, res){
var path = "test.mp3";
var stat = fs.statSync(path);
res.setHeader("Content-Type", "audio/mpeg");
res.setHeader("Content-Length", stat.size);
fs.createReadStream("test.mp3").pipe(res);
});
My feeling is that EPiphany needs some more information or heading to be set.
So I have tryed adding a Content-Length header to the first block of code above but with no luck.
Can you help me please?
Hi, I'm using your library to generate and stream an audio on the fly like this.
That works in any browser I tested so far except for Epiphany (GNOME Web) which is based on webkit2gtk. However, if I set the output to OGG codec like this
It will work in Epiphany. Please note that Epiphany HAS mp3 playback capability. In fact if I stream an mp3 from my local file system it will work in Epiphany as well (even if it won't be able to show its duration):
My feeling is that EPiphany needs some more information or heading to be set. So I have tryed adding a Content-Length header to the first block of code above but with no luck. Can you help me please?