settings.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. ---
  2. # ---------------------------
  3. # Kalliope default settings
  4. # Use YAML syntax
  5. # ---------------------------
  6. # ---------------------------
  7. # Trigger
  8. # ---------------------------
  9. # This is the trigger that will catch your magic work to wake up Kalliope
  10. default_trigger: "snowboy"
  11. # Trigger engine configuration
  12. # Available engine are:
  13. # - snowboy
  14. triggers:
  15. - snowboy:
  16. pmdl_file: "trigger/snowboy/resources/kalliope-FR-40samples.pmdl"
  17. # ---------------------------
  18. # Speech to text
  19. # ---------------------------
  20. # This is the STT that will be used by default
  21. default_speech_to_text: "google"
  22. # Speech to text options
  23. #recognition_options:
  24. # energy_threshold: 4000
  25. # adjust_for_ambient_noise_second: 1
  26. # Speech to Text engines configuration
  27. # Available engine are:
  28. # - google (via SpeechRecognition)
  29. # - wit
  30. # - bing
  31. # - apiai
  32. # - houndify
  33. # - cmusphinx (must be installed first)
  34. speech_to_text:
  35. - google:
  36. language: "fr-FR"
  37. - wit:
  38. key: "fakekey" # example : "B5JI3YUSLYOYWNIDBINBVM34XUODME2K"
  39. - bing: # API not working : credential fails ..
  40. key: "fakekey" # example : "9e48ddaf75904838bedc11aea6b36fb0"
  41. - apiai:
  42. key: "fakekey" # example : "e0cbff154af44944a6b9f82c0668b527"
  43. language: "fr"
  44. - houndify:
  45. key: "fakekey" # example : "7zj90T7qAV74OYXk4X4vI2Xhk7wPsJu4aEZ0G5Ll-BMmV1JGtFpCxtSH9SmTY4G3bpEJ7a5y_GTQid-CAKI6vw=="
  46. client_id: "fakeclientid" # example : "lN4JXeaSticbSo9-llczbA=="
  47. #- cmusphinx
  48. # ---------------------------
  49. # Text to speech
  50. # ---------------------------
  51. # This is the default TTS that will be used by Kalliope to talk.
  52. default_text_to_speech: "pico2wave"
  53. # where we store generated audio files from TTS engine to reuse them
  54. cache_path: "/tmp/kalliope_tts_cache"
  55. # Text to Speech engines configuration
  56. # Available engine are:
  57. # - pico2wave
  58. # - acapela # MP3
  59. # - googletts # MP3
  60. # - voicerss # MP3
  61. text_to_speech:
  62. - pico2wave:
  63. language: "fr-FR"
  64. cache: True
  65. - googletts:
  66. language: "fr"
  67. cache: True
  68. - voicerss:
  69. language: "fr-fr"
  70. key: "API_Key"
  71. cache: True
  72. - watson:
  73. username: "me"
  74. password: "password"
  75. voice: "fr-FR_ReneeVoice"
  76. # ---------------------------
  77. # players
  78. # ---------------------------
  79. # This is the sound player that will be used by default
  80. default_player: "mplayer"
  81. # players configuration
  82. # Available engine are:
  83. # - mplayer
  84. # - pyalsaaudio # no mp3
  85. # - pyaudioplayer # no mp3
  86. # - sounddeviceplayer # no mp3
  87. players:
  88. - mplayer: {}
  89. - pyalsaaudio:
  90. device: "default"
  91. convert_to_wav: True
  92. - pyaudioplayer:
  93. convert_to_wav: True
  94. - sounddeviceplayer:
  95. convert_to_wav: True
  96. # ---------------------------
  97. # Hooks
  98. # ---------------------------
  99. hooks:
  100. on_start: "on-start-synapse"
  101. on_waiting_for_trigger:
  102. on_triggered: "on-triggered-synapse"
  103. on_start_listening:
  104. on_stop_listening:
  105. on_order_found:
  106. on_order_not_found: "order-not-found-synapse"
  107. on_processed_synapses:
  108. on_deaf:
  109. on_undeaf:
  110. on_start_speaking:
  111. on_stop_speaking:
  112. # ---------------------------
  113. # Rest API
  114. # ---------------------------
  115. rest_api:
  116. active: False
  117. port: 5000
  118. password_protected: True
  119. login: admin
  120. password: secret
  121. allowed_cors_origin: False
  122. # ---------------------------
  123. # Resource directory path
  124. #
  125. # Accepted types :
  126. # - neuron
  127. # - stt
  128. # - tts
  129. # - trigger /!\ we do not manage trigger properly yet...
  130. # - signal
  131. # ---------------------------
  132. #resource_directory:
  133. # neuron: "/var/tmp/resources/neurons"
  134. # stt: "resources/stt"
  135. # tts: "resources/tts"
  136. # trigger: "resources/trigger"
  137. # signal: "resources/signal"
  138. # ---------------------------
  139. # Global files variables
  140. # /!\ If a variable is defined in different files, the last file defines the value.
  141. # ---------------------------
  142. #var_files:
  143. # - variables.yml
  144. # - variables2.yml
  145. # -------------
  146. # Options
  147. # -------------
  148. options:
  149. deaf: False
  150. mute: False