9

I'm using the (unofficial) Google translate TTS api to retrieve mp3s to support disabled learners to read web pages. It all works fine, however we have an American accent (we're in the UK!). When I use Google translate however, it fetches the mp3 with a British accent - how do I invoke this behavior?

I've used the same GET request URL so I can assume it's not that:

http://translate.google.com/translate_tts?q=testing+1+2+3&tl=en

(I've played with other language codes (en-gb) with no luck - fr works for french however.)

Many thanks

Mike Thrussell
  • 4,175
  • 8
  • 43
  • 59

2 Answers2

15

You can specify a regional variation in the tl parameter after an _ character, e.g.

http://translate.google.com/translate_tts?q=testing+1+2+3&tl=en_us

http://translate.google.com/translate_tts?q=testing+1+2+3&tl=en_gb

http://translate.google.com/translate_tts?q=testing+1+2+3&tl=en_au

CupawnTae
  • 14,192
  • 3
  • 29
  • 60
14

By using google's ".co.uk" translate site's GET request, you can generate British English. So for example: translate.google.co.uk/translate_tts?q=Your+soundcard+works+perfectly&tl=en

yhyrcanus
  • 3,743
  • 2
  • 23
  • 28