IRC text-to-speech using espeak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

conf.py 821B

1234567891011121314151617181920
  1. # To the extent possible under law, the author(s) have dedicated all
  2. # copyright and neighboring rights to this software to the public domain
  3. # worldwide. This software is distributed without any warranty. See
  4. # <http://creativecommons.org/publicdomain/zero/1.0/> for a copy of the
  5. # CC0 Public Domain Dedication.
  6. from pyrcb2 import IDefaultDict
  7. # Maps nicknames to tuples containing a voice name and a pitch.
  8. voices = IDefaultDict(lambda: ("en-us", "70"), {
  9. "nickname1": ("en+f3", "65"),
  10. "nickname2": ("en-us+m5", "40"),
  11. })
  12. # Sent to users when they first connect to espeaker.
  13. # XML comments are only spoken when running espeak without SSML (option -m).
  14. connect_message = """\
  15. <!-- If you can hear this, you are not running espeak correctly. -->
  16. <!-- You must run espeak with option dash lowercase m. -->
  17. """