You are not logged in.

#1 2016-04-03 21:11:45

geo909
Member
Registered: 2008-09-07
Posts: 309

No english text-to-speech in firefox and google translate

Hi all,

I have a weird problem. When I google-translate something, I can't get to hear the word in English. For example, here:
https://translate.google.gr/#en/el/something
If I click on the speaker on the english box, I won't hear anything; on the other hand, if I click on the speaker icon in
the Greek box, I'll hear the word.

This only happens in firefox, and not in chromium. It also happens when I start firefox with a clean profile, without
any addons or anything tinkered with.

Any ideas why this happens and how to fix?

Thanks in advance.

Last edited by geo909 (2016-04-03 21:12:32)

Offline

#2 2016-04-03 22:57:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: No english text-to-speech in firefox and google translate

Works here.  Following your link in FF 45.0.1


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-04-04 15:07:17

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: No english text-to-speech in firefox and google translate

ewaller wrote:

Works here.  Following your link in FF 45.0.1

Thanks. This is very weird, I also have FF 45.0.1. I don't have anything muted, and flash is activated. In any case, I can listen to the Greek word so it should be working.

Offline

#4 2016-04-04 15:23:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: No english text-to-speech in firefox and google translate

I just re-ran it with developer tools open.  Network activity shows the following files are accessed for the two buttons respectively:   (Edit:  BTW, this was done from work using Windows.  No longer comparing Apples to Apples, but the network activity may be of use)

https://translate.google.gr/translate_t … speed=0.24
https://translate.google.gr/translate_t … speed=0.24

The request headers were:

GET /translate_tts?ie=UTF-8&q=something&tl=en&total=1&idx=0&textlen=9&tk=68841.467742&client=t&prev=input&ttsspeed=0.24 HTTP/1.1
Host: translate.google.gr
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5
Accept-Language: en-US,en;q=0.5
DNT: 1
Range: bytes=0-
Referer: https://translate.google.gr/
Cookie: NID=78=Gca6SnvF4Vsm8_QstwFOXdUJPhP0tIUAr1HEfrxZ4jOjHdgHh4_uViuO_HlJ34ruBa5DvrSZZ83z0Mc9QCATTH9wku55jwf4FOFkWN1RRNueRKGyCUo-7OLoCR-OgLjm; OGPC=422038528-1:
Connection: keep-alive

and

GET /translate_tts?ie=UTF-8&q=%CE%BA%CE%AC%CF%84%CE%B9&tl=el&total=1&idx=0&textlen=4&tk=580857.979726&client=t&ttsspeed=0.24 HTTP/1.1
Host: translate.google.gr
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5
Accept-Language: en-US,en;q=0.5
DNT: 1
Range: bytes=0-
Referer: https://translate.google.gr/
Cookie: NID=78=Gca6SnvF4Vsm8_QstwFOXdUJPhP0tIUAr1HEfrxZ4jOjHdgHh4_uViuO_HlJ34ruBa5DvrSZZ83z0Mc9QCATTH9wku55jwf4FOFkWN1RRNueRKGyCUo-7OLoCR-OgLjm; OGPC=422038528-1:
Connection: keep-alive

The response headers were:

HTTP/2.0 200 OK
Date: Mon, 04 Apr 2016 15:16:33 GMT
Expires: Mon, 04 Apr 2016 15:16:33 GMT
Cache-Control: private, max-age=86400
Content-Type: audio/mpeg
x-content-type-options: nosniff
Server: HTTP server (unknown)
Content-Length: 4704
X-XSS-Protection: 1; mode=block
Alternate-Protocol: 443:quic
Alt-Svc: quic=":443"; ma=2592000; v="32,31,30,29,28,27,26,25"
X-Firefox-Spdy: h2

and

HTTP/2.0 200 OK
Date: Mon, 04 Apr 2016 15:16:38 GMT
Expires: Mon, 04 Apr 2016 15:16:38 GMT
Cache-Control: private, max-age=86400
Content-Type: audio/mpeg
x-content-type-options: nosniff
Server: HTTP server (unknown)
Content-Length: 4911
X-XSS-Protection: 1; mode=block
Alternate-Protocol: 443:quic
Alt-Svc: quic=":443"; ma=2592000; v="32,31,30,29,28,27,26,25"
X-Firefox-Spdy: h2

Last edited by ewaller (2016-04-04 15:24:52)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-04-05 01:49:02

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: No english text-to-speech in firefox and google translate

My headers are as follows:

English request:

Host: translate.google.gr
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Cookie: NID=78=VxWbCar7gmKD65EnVB1eQEMTr3jLw3x5CxHA-4gyzY7L65qMuvCHtOQpvwvDVCEq7hpORyTlztCXFhPRO3MxIBDYmr_EfHR3cvSy4WxSBrAipxuvws5Orm8s0BomF19n; _ga=GA1.3.1037487048.1459717738; OGPC=422038528-2:
Connection: keep-alive
Cache-Control: max-age=0

English response:

Cache-Control: private, max-age=86400
Content-Length: 4704
Content-Type: audio/mpeg
Date: Tue, 05 Apr 2016 01:45:42 GMT
Expires: Tue, 05 Apr 2016 01:45:42 GMT
Server: HTTP server (unknown)
X-Firefox-Spdy: h2
X-XSS-Protection: 1; mode=block
x-content-type-options: nosniff

Greek request:

Host: translate.google.gr
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Cookie: NID=78=VxWbCar7gmKD65EnVB1eQEMTr3jLw3x5CxHA-4gyzY7L65qMuvCHtOQpvwvDVCEq7hpORyTlztCXFhPRO3MxIBDYmr_EfHR3cvSy4WxSBrAipxuvws5Orm8s0BomF19n; _ga=GA1.3.1037487048.1459717738; OGPC=422038528-2:
Connection: keep-alive
Cache-Control: max-age=0

Greek respond:

Cache-Control: private, max-age=86400
Content-Length: 4911
Content-Type: audio/mpeg
Date: Tue, 05 Apr 2016 01:46:56 GMT
Expires: Tue, 05 Apr 2016 01:46:56 GMT
Server: HTTP server (unknown)
X-Firefox-Spdy: h2
X-XSS-Protection: 1; mode=block
x-content-type-options: nosniff

I'm not sure what to make of it.. Everything seems to be identical. Can you see anything wrong here?

Offline

#6 2016-04-05 02:55:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: No english text-to-speech in firefox and google translate

Its all Greek to me tongue


Just kidding.  The Accept clauses look wrong.

Accept: audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5

(Mine)
versus

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

(Yours)

But, you did get

Content-Type: audio/mpeg

for both your responses hmm
Can you try a different browser?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2016-04-05 15:30:52

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: No english text-to-speech in firefox and google translate

ewaller wrote:

Its all Greek to me tongue


Just kidding.  The Accept clauses look wrong.

Accept: audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5

(Mine)
versus

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

(Yours)

But, you did get

Content-Type: audio/mpeg

for both your responses hmm
Can you try a different browser?

Here's chromium:

English (works in chromium):

Accept	text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding	gzip, deflate, sdch
Accept-Language	en-US,en;q=0.8,el;q=0.6
Cookie	NID=78=iIfboC2ORM22DEQYJsRze8eHCrmf6EdYfFku5PSTqAbSCE3ViyrQs9fUx2qM5xRldR0JNtlPmS_ULf-lyOIbfAX8CVT47gOzb0qRJck2a6XRWZkb3njgugtg7v-LZLf1;
OGPC=422038528-2:
DNT	1
Referer	https://bbs.archlinux.org/viewtopic.php?pid=1617484
Upgrade-Insecure-Requests	1
User-Agent	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36

Response:
cache-control	private, max-age=86400
content-length	0
content-type	audio/mpeg
date	Tue, 05 Apr 2016 15:29:31 GMT
expires	Tue, 05 Apr 2016 15:29:31 GMT
server	HTTP server (unknown)
status	404
x-content-type-options	nosniff
x-xss-protection	1; mode=block

Greek:

Accept	text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding	gzip, deflate, sdch
Accept-Language	en-US,en;q=0.8,el;q=0.6
Cookie	NID=78=iIfboC2ORM22DEQYJsRze8eHCrmf6EdYfFku5PSTqAbSCE3ViyrQs9fUx2qM5xRldR0JNtlPmS_ULf-lyOIbfAX8CVT47gOzb0qRJck2a6XRWZkb3njgugtg7v-LZLf1;
OGPC=422038528-2:
DNT	1
Referer	https://bbs.archlinux.org/viewtopic.php?pid=1617484
Upgrade-Insecure-Requests	1
User-Agent	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36

Response
cache-control	private, max-age=86400
content-length	0
content-type	audio/mpeg
date	Tue, 05 Apr 2016 15:30:05 GMT
expires	Tue, 05 Apr 2016 15:30:05 GMT
server	HTTP server (unknown)
status	404
x-content-type-options	nosniff
x-xss-protection	1; mode=block

The "accept" part seems to be the same as in firefox. This is the weirdest problem..

PS. I copy/pasted the headers here but I'm not sure how to interpret the output. Also I googled around and the only similar issue that I found was with some people who got their problem solved by installing some gstreamer plugins. I have all the gstreamer plugins already installed, so I don't think this is related.

Last edited by geo909 (2016-04-05 16:25:55)

Offline

Board footer

Powered by FluxBB