Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

saving google translate audio

more options

Several months ago I was saving google translated audio by right clicking "Inspect (Q)" and clicking Network and Media then opening appropriate link in new tab. Now when I do this this and hit Listen icon the speech is generated ok but no links are generated in lower partition. Thanks for your help. Am using Windows and Firefox 89.0.1

Several months ago I was saving google translated audio by right clicking "Inspect (Q)" and clicking Network and Media then opening appropriate link in new tab. Now when I do this this and hit Listen icon the speech is generated ok but no links are generated in lower partition. Thanks for your help. Am using Windows and Firefox 89.0.1

Valgt løsning

It seems that when you first move your mouse over the speaker icon, Google Translate retrieves a JSON file that contains an encoded version of the audio. I think this article holds the key to turning it back into actual audio:

https://cloud.google.com/text-to-speech/docs/base64-decoding

So experimenting:

(1) Right-click the request starting with batchexecute? then click Open in New Tab then save the file from the Download dialog (Firefox picks up the name response.bin from the Content-Disposition header and you can add .json while saving or before opening)

(2) Open the .json file in a text editor and remove the following from the beginning of the file -- note that the number varies depending, I assume, on the size of the audio payload:

)]}'

13156 [["wrb.fr","jQ1olc", "[\"

(3) Toward the bottom of the file, remove the following, which may vary a bit:

\"]\n",null,null,null,"generic"] ] 58 [["di",110] ,["af.httprm",109,"2935967112318335285",7] ] 28 [["e",4,null,null,13257] ]

(4) Save the file

(5) Open a command prompt (cmd.exe), navigate to the correct folder, then run

certutil -decode response.bin.json testaudio.mp3

That worked, but what a pain in the *ss.

Læs dette svar i sammenhæng 👍 0

Alle svar (7)

more options

Hi, the list under Network starts from when you open the Developer Tools panel. Does it help to open Network (Ctrl+Shift+E) before you request the translation?

more options

jscher2000- Thanks for quick reply. the ctrl_shift+e though doesn't seem to do it. Neither does ctrl+shift+i. I also turned off all the ESET security options but had no improvement. There is an add-on called flashget for firefox which was purported to allow saving the mp3 but this didn't seem to be supported by Mozilla. Any thoughts on this? Cheers.

more options
more options

Hmm, I can't figure out how the audio is transmitted without a file appearing on the list.

more options

Valgt løsning

It seems that when you first move your mouse over the speaker icon, Google Translate retrieves a JSON file that contains an encoded version of the audio. I think this article holds the key to turning it back into actual audio:

https://cloud.google.com/text-to-speech/docs/base64-decoding

So experimenting:

(1) Right-click the request starting with batchexecute? then click Open in New Tab then save the file from the Download dialog (Firefox picks up the name response.bin from the Content-Disposition header and you can add .json while saving or before opening)

(2) Open the .json file in a text editor and remove the following from the beginning of the file -- note that the number varies depending, I assume, on the size of the audio payload:

)]}'

13156 [["wrb.fr","jQ1olc", "[\"

(3) Toward the bottom of the file, remove the following, which may vary a bit:

\"]\n",null,null,null,"generic"] ] 58 [["di",110] ,["af.httprm",109,"2935967112318335285",7] ] 28 [["e",4,null,null,13257] ]

(4) Save the file

(5) Open a command prompt (cmd.exe), navigate to the correct folder, then run

certutil -decode response.bin.json testaudio.mp3

That worked, but what a pain in the *ss.

more options

Long story short...it turns out that Audacity can capture audio quite easily as it comes over the speakers. So for my purposes... Problem Solved! Yippee.... Cheers and beers for all.....

more options

That sounds much easier.