settings.yml 3.9 KB

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