settings.yml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. # Wake up answers
  98. # ---------------------------
  99. # When Kalliope detect the hotword/trigger, he will select randomly a phrase in the following list
  100. # to notify the user that he's listening for orders
  101. random_wake_up_answers:
  102. - "Oui monsieur?"
  103. - "Je vous écoute"
  104. - "Monsieur?"
  105. - "Que puis-je faire pour vous?"
  106. - "J'écoute"
  107. - "Oui?"
  108. # You can play a sound when Kalliope detect the hotword/trigger instead of saying something from
  109. # the `random_wake_up_answers`.
  110. # Place here the full path of the sound file or just the name of the file in /usr/lib/kalliope/sounds
  111. # The file must be .wav or .mp3 format. By default two file are provided: ding.wav and dong.wav
  112. #random_wake_up_sounds:
  113. # - "sounds/ding.wav"
  114. # - "sounds/dong.wav"
  115. # - "/my/personal/full/path/my_file.mp3"
  116. # ---------------------------
  117. # On ready notification
  118. # ---------------------------
  119. # This section is used to notify the user when Kalliope is waiting for a trigger detection by playing a sound or speak a sentence out loud
  120. # This parameter define if you play the on ready answer:
  121. # - always: every time Kalliope is ready to be awaken
  122. # - never: never play a sound or sentences when kalliope is ready
  123. # - once: at the first start of Kalliope
  124. play_on_ready_notification: never
  125. # The on ready notification can be a sentence. Place here a sentence or a list of sentence. If you set a list, one sentence will be picked up randomly
  126. on_ready_answers:
  127. - "Kalliope is ready"
  128. - "Waiting for order"
  129. # You can play a sound instead of a sentence.
  130. # Remove the `on_ready_answers` parameters by commenting it out and use this one instead.
  131. # Place here the path of the sound file. Files must be .wav or .mp3 format.
  132. on_ready_sounds:
  133. - "sounds/ding.wav"
  134. - "sounds/dong.wav"
  135. # ---------------------------
  136. # Rest API
  137. # ---------------------------
  138. rest_api:
  139. active: False
  140. port: 5000
  141. password_protected: True
  142. login: admin
  143. password: secret
  144. allowed_cors_origin: False
  145. # ---------------------------
  146. # Default Synapse
  147. # ---------------------------
  148. # Specify an optional default synapse response in case your order is not found.
  149. default_synapse: "default-synapse"
  150. # ---------------------------
  151. # Resource directory path
  152. #
  153. # Accepted types :
  154. # - neuron
  155. # - stt
  156. # - tts
  157. # - trigger /!\ we do not manage trigger properly yet...
  158. # - signal
  159. # ---------------------------
  160. #resource_directory:
  161. # neuron: "/var/tmp/resources/neurons"
  162. # stt: "resources/stt"
  163. # tts: "resources/tts"
  164. # trigger: "resources/trigger"
  165. # signal: "resources/signal"
  166. # ---------------------------
  167. # Global files variables
  168. # /!\ If a variable is defined in different files, the last file defines the value.
  169. # ---------------------------
  170. #var_files:
  171. # - variables.yml
  172. # - variables2.yml
  173. # ---------------------------
  174. # Raspberry Pi GPIO settings
  175. # ---------------------------
  176. #rpi:
  177. # pin_mute_button: 24
  178. # pin_led_started: 23
  179. # pin_led_muted: 17
  180. # pin_led_talking: 27
  181. # pin_led_listening: 22
  182. # -------------
  183. # Start options
  184. # -------------
  185. #start_options:
  186. # muted: False