[Python-modules-commits] [gtts] 05/05: Add manpage and remove lintian tags

Ethan Ward ethanward-guest at moszumanska.debian.org
Fri Aug 4 21:21:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

ethanward-guest pushed a commit to branch master
in repository gtts.

commit af8c05f82a539f095bc8af64b2ec88a90a8bd17f
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date:   Fri Aug 4 16:20:48 2017 -0500

    Add manpage and remove lintian tags
---
 debian/gtts-cli.1                     | 171 ++++++++++++++++++++++++++++++++++
 debian/python3-gtts.install           |   1 +
 debian/python3-gtts.lintian-overrides |   3 +
 debian/rules                          |   2 +-
 4 files changed, 176 insertions(+), 1 deletion(-)

diff --git a/debian/gtts-cli.1 b/debian/gtts-cli.1
new file mode 100644
index 0000000..133cfaa
--- /dev/null
+++ b/debian/gtts-cli.1
@@ -0,0 +1,171 @@
+.TH man 1 "04 August 2017" "1.2.0" "gtts-cli manpage"
+.SH NAME
+gtts-cli \- convert text to mp3
+.SH SYNOPSIS
+gtts-cli [-h | --help] (["text to speak"] | -f FILE | --file FILE) [-o DESTINATION_FILE | --destination DESTINATION_FILE] [-l LANG | --lang LANG] [--slow] [--debug]
+.SH 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.
+.SH OPTIONS
+.TP
+.B [-h | --help]
+Prints a help message and exits.
+.TP
+.B (["text to speak"] | -f FILE | --file FILE)
+If given text in quotes, generates an mp3 with that text spoken. With -f FILE, generates the mp3 with the text from FILE.
+.TP
+.B (-o DESTINATION_FILE | --destination DESTINATION_FILE)
+The file to write the generated mp3 to. If not given, writes to stdout (probably not what you want!)
+.TP
+.B (-l LANG | --lang LANG)
+Which language to speak the given text in.
+Supported languages are:
+.TP
+* 'af' : 'Afrikaans'
+.TP
+* 'sq' : 'Albanian'
+.TP
+* 'ar' : 'Arabic'
+.TP
+* 'hy' : 'Armenian'
+.TP
+* 'bn' : 'Bengali'
+.TP
+* 'ca' : 'Catalan'
+.TP
+* 'zh' : 'Chinese'
+.TP
+* 'zh-cn' : 'Chinese (Mandarin/China)'
+.TP
+* 'zh-tw' : 'Chinese (Mandarin/Taiwan)'
+.TP
+* 'zh-yue' : 'Chinese (Cantonese)'
+.TP
+* 'hr' : 'Croatian'
+.TP
+* 'cs' : 'Czech'
+.TP
+* 'da' : 'Danish'
+.TP
+* 'nl' : 'Dutch'
+.TP
+* 'en' : 'English'
+.TP
+* 'en-au' : 'English (Australia)'
+.TP
+* 'en-uk' : 'English (United Kingdom)'
+.TP
+* 'en-us' : 'English (United States)'
+.TP
+* 'eo' : 'Esperanto'
+.TP
+* 'fi' : 'Finnish'
+.TP
+* 'fr' : 'French'
+.TP
+* 'de' : 'German'
+.TP
+* 'el' : 'Greek'
+.TP
+* 'hi' : 'Hindi'
+.TP
+* 'hu' : 'Hungarian'
+.TP
+* 'is' : 'Icelandic'
+.TP
+* 'id' : 'Indonesian'
+.TP
+* 'it' : 'Italian'
+.TP
+* 'ja' : 'Japanese'
+.TP
+* 'km' : 'Khmer (Cambodian)'
+.TP
+* 'ko' : 'Korean'
+.TP
+* 'la' : 'Latin'
+.TP
+* 'lv' : 'Latvian'
+.TP
+* 'mk' : 'Macedonian'
+.TP
+* 'no' : 'Norwegian'
+.TP
+* 'pl' : 'Polish'
+.TP
+* 'pt' : 'Portuguese'
+.TP
+* 'ro' : 'Romanian'
+.TP
+* 'ru' : 'Russian'
+.TP
+* 'sr' : 'Serbian'
+.TP
+* 'si' : 'Sinhala'
+.TP
+* 'sk' : 'Slovak'
+.TP
+* 'es' : 'Spanish'
+.TP
+* 'es-es' : 'Spanish (Spain)'
+.TP
+* 'es-us' : 'Spanish (United States)'
+.TP
+* 'sw' : 'Swahili'
+.TP
+* 'sv' : 'Swedish'
+.TP
+* 'ta' : 'Tamil'
+.TP
+* 'th' : 'Thai'
+.TP
+* 'tr' : 'Turkish'
+.TP
+* 'uk' : 'Ukrainian'
+.TP
+* 'vi' : 'Vietnamese'
+.TP
+* 'cy' : 'Welsh'
+.TP
+.B --slow
+Slower read speed for the text.
+.TP
+.B --debug
+Print debug statements.
+.SH EXAMPLES
+Read the string 'Hello' in English to hello.mp3
+.PP
+.nf
+.RS
+gtts-cli "Hello" -l 'en' -o hello.mp3
+.RE
+.fi
+.PP
+Read the string 'Hello' in English (slow speed) to hello.mp3
+.PP
+.nf
+.RS
+gtts-cli "Hello" -l 'en' -o hello.mp3 --slow
+.RE
+.fi
+.PP
+Read the contents of file 'hello.txt' in Czech to hello.mp3:
+.PP
+.nf
+.RS
+gtts-cli -f hello.txt -l 'cs' -o hello.mp3
+.RE
+.fi
+.PP
+Read the string 'Hello' from stdin in English to hello.mp3
+.PP
+.nf
+.RS
+echo "Hello" | gtts-cli -l 'en' -o hello.mp3 -
+.RE
+.fi
+.PP
+.SH SEE ALSO
+.SH BUGS
+No known bugs.
+.SH AUTHOR
+Ethan Ward <ethan.ward at mycroft.ai>
diff --git a/debian/python3-gtts.install b/debian/python3-gtts.install
new file mode 100644
index 0000000..2c973ae
--- /dev/null
+++ b/debian/python3-gtts.install
@@ -0,0 +1 @@
+debian/gtts-cli.1 /usr/share/man/man1
diff --git a/debian/python3-gtts.lintian-overrides b/debian/python3-gtts.lintian-overrides
new file mode 100644
index 0000000..4c5c823
--- /dev/null
+++ b/debian/python3-gtts.lintian-overrides
@@ -0,0 +1,3 @@
+# This is primarily a library, it just has a cli tool along with it
+python3-gtts: library-package-name-for-application
+python3-gtts: application-in-library-section
diff --git a/debian/rules b/debian/rules
index f5165be..7a85c28 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 export PYBUILD_NAME=gtts
 
 %:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/gtts.git



More information about the Python-modules-commits mailing list