logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gtts-cli - convert text to mp3

Author

       Ethan Ward <ethan.ward@mycroft.ai>

1.2.0                                            04 August 2017                                           man(1)

Bugs

       No known bugs.

Description

       Create an mp3 file from your text with the gtts-cli command line utility. It allows unlimited lengths  to
       be spoken by tokenizing long sentences where the speech would naturally pause.

Examples

       Read the string 'Hello' in English to hello.mp3

              gtts-cli "Hello" -l 'en' -o hello.mp3

       Read the string 'Hello' in English (slow speed) to hello.mp3

              gtts-cli "Hello" -l 'en' -o hello.mp3 --slow

       Read the contents of file 'hello.txt' in Czech to hello.mp3:

              gtts-cli -f hello.txt -l 'cs' -o hello.mp3

       Read the string 'Hello' from stdin in English to hello.mp3

              echo "Hello" | gtts-cli -l 'en' -o hello.mp3 -

Name

       gtts-cli - convert text to mp3

Options

[-h|--help]
              Prints a help message and exits.

       (["texttospeak"]|-fFILE|--fileFILE)
              If  given  text in quotes, generates an mp3 with that text spoken. With -f FILE, generates the mp3
              with the text from FILE.

       (-oDESTINATION_FILE|--destinationDESTINATION_FILE)
              The file to write the generated mp3 to. If not given, writes to  stdout  (probably  not  what  you
              want!)

       (-lLANG|--langLANG)
              Which language to speak the given text in.  Supported languages are:

       * 'af' : 'Afrikaans'

       * 'sq' : 'Albanian'

       * 'ar' : 'Arabic'

       * 'hy' : 'Armenian'

       * 'bn' : 'Bengali'

       * 'ca' : 'Catalan'

       * 'zh' : 'Chinese'

       * 'zh-cn' : 'Chinese (Mandarin/China)'

       * 'zh-tw' : 'Chinese (Mandarin/Taiwan)'

       * 'zh-yue' : 'Chinese (Cantonese)'

       * 'hr' : 'Croatian'

       * 'cs' : 'Czech'

       * 'da' : 'Danish'

       * 'nl' : 'Dutch'

       * 'en' : 'English'

       * 'en-au' : 'English (Australia)'

       * 'en-uk' : 'English (United Kingdom)'

       * 'en-us' : 'English (United States)'

       * 'eo' : 'Esperanto'

       * 'fi' : 'Finnish'

       * 'fr' : 'French'

       * 'de' : 'German'

       * 'el' : 'Greek'

       * 'hi' : 'Hindi'

       * 'hu' : 'Hungarian'

       * 'is' : 'Icelandic'

       * 'id' : 'Indonesian'

       * 'it' : 'Italian'

       * 'ja' : 'Japanese'

       * 'km' : 'Khmer (Cambodian)'

       * 'ko' : 'Korean'

       * 'la' : 'Latin'

       * 'lv' : 'Latvian'

       * 'mk' : 'Macedonian'

       * 'no' : 'Norwegian'

       * 'pl' : 'Polish'

       * 'pt' : 'Portuguese'

       * 'ro' : 'Romanian'

       * 'ru' : 'Russian'

       * 'sr' : 'Serbian'

       * 'si' : 'Sinhala'

       * 'sk' : 'Slovak'

       * 'es' : 'Spanish'

       * 'es-es' : 'Spanish (Spain)'

       * 'es-us' : 'Spanish (United States)'

       * 'sw' : 'Swahili'

       * 'sv' : 'Swedish'

       * 'ta' : 'Tamil'

       * 'th' : 'Thai'

       * 'tr' : 'Turkish'

       * 'uk' : 'Ukrainian'

       * 'vi' : 'Vietnamese'

       * 'cy' : 'Welsh'

       --slow Slower read speed for the text.

       --debug
              Print debug statements.

See Also

Synopsis

       gtts-cli  [-h  | --help] (["text to speak"] | -f FILE | --file FILE) [-o DESTINATION_FILE | --destination
       DESTINATION_FILE] [-l LANG | --lang LANG] [--slow] [--debug]

See Also