I would like to be able to save the audio from the sample from Google’s cloud-based text-to-speed service. Is it possible to do this?
If you're going to do a lot of this, you should really use the API that they offer, but here's a quick step by step if you just want to download a single sample of Google's speech synthesis.
- Go to the page in Google Chrome.
- Open the Developer Tools (by pushing F12)
- Go to the "Network" tab.
- Enter the text you want to get audio of.
- Click the "SPEAK IT" button.
- Watch the "Network" tab populate with a couple of entries.
- Right-click the entry that starts with
data:audio/wav;base64,and click "Open in new tab".
- In the new tab, right-click the audio player, and click "Save video as..."
- Choose where you want to save the resulting
Note: This will get you a (marginally) cleaner copy of the audio than recording the Stereo Mix from your sound card.
Edit: @3D1T0R 's answer is simpler and will most likely result in a higher quality file.
I would just use an audio recording program, such as Audacity, to record the "Stereo Mix" of your computer. You haven't specified an OS but assuming Windows:
Then download/open Audacity, and in the Recording Device dropdown box, select
Stereo Mix. Then just hit Record, and anything you hear playing out of your speakers will be recorded to a sound file.
I wrote a browser extension specifically for this purpose: https://github.com/skygate2012/i_would_like_to_obtain_a_sample_plox
It uses the WebExtensions API to sniff HTTP responses and saves the wav audio when matched.