Skip to content

Instantly share code, notes, and snippets.

@clive819
Forked from alotaiba/google_text2speech.md
Created June 28, 2014 10:11
Show Gist options
  • Select an option

  • Save clive819/e478e5462b0fd821e45c to your computer and use it in GitHub Desktop.

Select an option

Save clive819/e478e5462b0fd821e45c to your computer and use it in GitHub Desktop.

Revisions

  1. @alotaiba alotaiba revised this gist Feb 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion google_text2speech.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ It converts written words into audio. It accepts `GET` requests.
    The query string to convert to audio

    `tl`
    Translation language, for example, 'ar' for Arabic, or 'en-us' for English
    Translation language, for example, `ar` for Arabic, or `en-us` for English

    `ie`
    Encoding format, use default `UTF-8`
  2. @alotaiba alotaiba revised this gist Feb 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion google_text2speech.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ The query string to convert to audio
    `tl`
    Translation language, for example, 'ar' for Arabic, or 'en-us' for English

    `ie`
    `ie`
    Encoding format, use default `UTF-8`

    ## Examples
  3. @alotaiba alotaiba revised this gist Feb 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion google_text2speech.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ Encoding format, use default `UTF-8`

    ### This is an example for Arabic "السلام عليكم"

    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85%20%D9%88%D8%B1%D8%AD%D9%85%D8%A9%20%D8%A7%D9%84%D9%84%D9%87%20%D8%AA%D8%B9%D8%A7%D9%84%D9%89%20%D9%88%D8%A8%D8%B1%D9%83%D8%A7%D8%AA%D9%87&tl=ar
    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85&tl=ar

    ### This is an example for English "Hello World"

  4. @alotaiba alotaiba revised this gist Feb 3, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion google_text2speech.md
    Original file line number Diff line number Diff line change
    @@ -9,11 +9,14 @@ The query string to convert to audio
    `tl`
    Translation language, for example, 'ar' for Arabic, or 'en-us' for English

    `ie`
    Encoding format, use default `UTF-8`

    ## Examples

    ### This is an example for Arabic "السلام عليكم"

    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85%20%D9%88%D8%B1%D8%AD%D9%85%D8%A9%20%D8%A7%D9%84%D9%84%D9%87%20%D8%AA%D8%B9%D8%A7%D9%84%D9%89%20%D9%88%D8%A8%D8%B1%D9%83%D8%A7%D8%AA%D9%87&tl=ar`
    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85%20%D9%88%D8%B1%D8%AD%D9%85%D8%A9%20%D8%A7%D9%84%D9%84%D9%87%20%D8%AA%D8%B9%D8%A7%D9%84%D9%89%20%D9%88%D8%A8%D8%B1%D9%83%D8%A7%D8%AA%D9%87&tl=ar

    ### This is an example for English "Hello World"

  5. @alotaiba alotaiba revised this gist Feb 3, 2012. 2 changed files with 20 additions and 10 deletions.
    20 changes: 20 additions & 0 deletions google_text2speech.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    # Google Text to Speech API
    Base URL: http://translate.google.com/translate_tts
    It converts written words into audio. It accepts `GET` requests.

    ## GET
    `q`
    The query string to convert to audio

    `tl`
    Translation language, for example, 'ar' for Arabic, or 'en-us' for English

    ## Examples

    ### This is an example for Arabic "السلام عليكم"

    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85%20%D9%88%D8%B1%D8%AD%D9%85%D8%A9%20%D8%A7%D9%84%D9%84%D9%87%20%D8%AA%D8%B9%D8%A7%D9%84%D9%89%20%D9%88%D8%A8%D8%B1%D9%83%D8%A7%D8%AA%D9%87&tl=ar`

    ### This is an example for English "Hello World"

    http://translate.google.com/translate_tts?ie=UTF-8&q=Hello%20World&tl=en-us
    10 changes: 0 additions & 10 deletions google_text2speech.txt
    Original file line number Diff line number Diff line change
    @@ -1,10 +0,0 @@
    # Google Text to Speech API
    ## Parameters:
    ## q = the query to convert to speech
    ## tl = translation language, for example, 'ar' for Arabic, or 'en-us' for English

    # This is an example for Arabic "السلام عليكم"
    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85%20%D9%88%D8%B1%D8%AD%D9%85%D8%A9%20%D8%A7%D9%84%D9%84%D9%87%20%D8%AA%D8%B9%D8%A7%D9%84%D9%89%20%D9%88%D8%A8%D8%B1%D9%83%D8%A7%D8%AA%D9%87&tl=ar

    # This is an example for English "Hello World"
    http://translate.google.com/translate_tts?ie=UTF-8&q=Hello%20World&tl=en-us
  6. @alotaiba alotaiba created this gist Feb 3, 2012.
    10 changes: 10 additions & 0 deletions google_text2speech.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Google Text to Speech API
    ## Parameters:
    ## q = the query to convert to speech
    ## tl = translation language, for example, 'ar' for Arabic, or 'en-us' for English

    # This is an example for Arabic "السلام عليكم"
    http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85%20%D9%88%D8%B1%D8%AD%D9%85%D8%A9%20%D8%A7%D9%84%D9%84%D9%87%20%D8%AA%D8%B9%D8%A7%D9%84%D9%89%20%D9%88%D8%A8%D8%B1%D9%83%D8%A7%D8%AA%D9%87&tl=ar

    # This is an example for English "Hello World"
    http://translate.google.com/translate_tts?ie=UTF-8&q=Hello%20World&tl=en-us