OpenVoiceOS / ovos-docker

Open Voice OS container images and docker-compose.yml files for x86_64 and aarch64 CPU architectures.
https://openvoiceos.github.io/ovos-docker/
Apache License 2.0
39 stars 11 forks source link

ovos_audio ignoring mycroft.conf #31

Closed denics closed 1 year ago

denics commented 1 year ago

I am using the docker compose with no major issues to test. It works fine, however it seems it does not use mycroft.conf for TTS. If I do docker exec -ti ovos_cli ovos-config show --section tts I can see the right values:

│ pulse_duck                                                   │ true                          │
│ module                                                       │ ovos-tts-plugin-server        │
│ fallback_module                                              │ ovos-tts-plugin-mimic3-server │
│ ovos-tts-plugin-mimic                                        │                               │
│     voice                                                    │ ap                            │
│ ovos-tts-plugin-mimic3-server                                │                               │
│     voice                                                    │ it_IT/mls_low                 │
│ ovos-tts-plugin-server                                       │                               │
│     host                                                     │ http://10.10.5.2:9666         │
│ ovos-tts-plugin-piper                                        │                               │
│     model                                                    │ riccardo_fasol                │

with this mycroft.conf

{
  "hotwords": {
    "hey_mycroft": {
      "fallback_ww": ""
    },
    "hey_mycroft_precise": {
      "listen": "false"
    },
    "hey_mycroft_vosk": {
      "listen": "false"
    },
    "hey_mycroft_pocketsphinx": {
      "listen": "false"
    }
  },
  "lang": "it-it",
  "logs": {
    "path": "stdout"
  },
  "tts": {
    "pulse_duck": "true",
    "module": "ovos-tts-plugin-server",
    "ovos-tts-plugin-server": {
      "host": "http://10.10.5.2:9666"
    },
    "ovos-tts-plugin-piper": {
      "model": "riccardo_fasol"
    },
    "ovos-tts-plugin-mimic3-server": {
      "voice": "it_IT/mls_low"
    }
  },
  "skills": {
    "blacklisted_skills": [
      "mycroft-wiki.mycroftai"
    ]
  }
}

however, I get a strong English accent like it falls to mimic :(

goldyfruit commented 1 year ago

What the ovos_audio logs say?

denics commented 1 year ago

simply ignored my poor config.

[17:30:01] denix  $  ~/Git/ovos/docker/ovos/config  docker logs ovos_audio | grep tts
2023-08-23 06:13:01.226 - audio - ovos_audio.service:_maybe_reload_tts:291 - INFO - (re)loading TTS engine
2023-08-23 06:13:01.273 - audio - ovos_utils.configuration:get_xdg_base - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:93. configuration moved to the `ovos_config` package.
2023-08-23 06:13:01.288 - audio - ovos_utils.configuration:read_mycroft_config - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:106. configuration moved to the `ovos_config` package.
2023-08-23 06:13:01.289 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-server
2023-08-23 06:13:01.291 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-23 06:13:01.531 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-server
2023-08-23 06:13:01.532 - audio - ovos_audio.service:_maybe_reload_tts:310 - INFO - (re)loading fallback TTS engine
2023-08-23 06:13:01.545 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-mimic3-server
2023-08-23 06:13:01.547 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-23 06:13:01.614 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-mimic3-server
2023-08-23 06:16:43.237 - audio - ovos_audio.service:_maybe_reload_tts:291 - INFO - (re)loading TTS engine
2023-08-23 06:16:43.279 - audio - ovos_utils.configuration:get_xdg_base - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:93. configuration moved to the `ovos_config` package.
2023-08-23 06:16:43.292 - audio - ovos_utils.configuration:read_mycroft_config - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:106. configuration moved to the `ovos_config` package.
2023-08-23 06:16:43.293 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-server
2023-08-23 06:16:43.295 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-23 06:16:43.488 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-server
2023-08-23 06:16:43.489 - audio - ovos_audio.service:_maybe_reload_tts:310 - INFO - (re)loading fallback TTS engine
2023-08-23 06:16:43.500 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-mimic3-server
2023-08-23 06:16:43.502 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-23 06:16:43.576 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-mimic3-server
2023-08-24 08:55:03.760 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Sono le due e cinquantacinque
2023-08-24 08:55:19.671 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Forse puoi ridirlo in un modo diverso.
2023-08-24 09:16:43.094 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Sto controllando Wikipedia per per sole
2023-08-24 09:16:44.656 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: no_answer
2023-08-24 09:16:49.158 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Fammi vedere sole in Wikipedia
2023-08-24 09:16:50.193 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: no_answer
2023-08-24 09:16:50.198 - audio - ovos_plugin_manager.templates.tts:get_from_cache:846 - INFO - Found e12e0a959e2bc04c0c2ae1edb866ae05.wav in TTS cache
2023-08-24 09:17:01.812 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Fammi vedere scuola in Wikipedia
2023-08-24 09:17:07.847 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: no_answer
2023-08-24 09:17:07.852 - audio - ovos_plugin_manager.templates.tts:get_from_cache:846 - INFO - Found e12e0a959e2bc04c0c2ae1edb866ae05.wav in TTS cache
2023-08-24 09:18:32.470 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Non capisco, ma imparo nuove cose tutti i giorni.
2023-08-24 09:21:38.134 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Sono le tre e ventuno
2023-08-24 10:13:53.792 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Mi spiace ma non capisco.
2023-08-24 10:17:11.524 - audio - ovos_audio.service:_maybe_reload_tts:291 - INFO - (re)loading TTS engine
2023-08-24 10:17:11.567 - audio - ovos_utils.configuration:get_xdg_base - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:93. configuration moved to the `ovos_config` package.
2023-08-24 10:17:11.580 - audio - ovos_utils.configuration:read_mycroft_config - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:106. configuration moved to the `ovos_config` package.
2023-08-24 10:17:11.581 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-server
2023-08-24 10:17:11.584 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-24 10:17:11.910 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-server
2023-08-24 10:17:11.912 - audio - ovos_audio.service:_maybe_reload_tts:310 - INFO - (re)loading fallback TTS engine
2023-08-24 10:17:11.925 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-mimic3-server
2023-08-24 10:17:11.927 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-24 10:17:11.996 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-mimic3-server
2023-08-24 10:19:40.347 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: quattro e diciannove
2023-08-24 10:48:42.215 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: Sono le quattro e quarantotto
2023-08-24 10:52:23.888 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: hello world
2023-08-24 10:52:30.397 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: hello world
2023-08-24 10:52:36.802 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: --help
2023-08-24 10:52:40.032 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: --help
2023-08-24 10:52:40.033 - audio - ovos_plugin_manager.templates.tts:get_from_cache:846 - INFO - Found 0c113ca6d57519b559ba5a426be3c6b6.wav in TTS cache
2023-08-24 10:52:58.246 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: sono le 10
2023-08-24 10:53:03.940 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: sono le 10
2023-08-24 10:53:08.886 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: sono le 10
2023-08-24 10:53:08.888 - audio - ovos_plugin_manager.templates.tts:get_from_cache:846 - INFO - Found e9242958ff3e14e4eedd9997d5fd737f.wav in TTS cache
2023-08-24 10:53:17.834 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: sono le 10
2023-08-24 10:53:17.835 - audio - ovos_plugin_manager.templates.tts:get_from_cache:846 - INFO - Found e9242958ff3e14e4eedd9997d5fd737f.wav in TTS cache
2023-08-24 10:53:24.405 - audio - ovos_audio.service:execute_tts:322 - INFO - Speak: sono le dieci
goldyfruit commented 1 year ago

Does curl http://10.10.5.2:9666/status works?

denics commented 1 year ago

like a charm, if I do dev$ docker exec -ti ovos_audio curl http://10.10.5.2:9666/status

{"status":"ok","plugin":"ovos-tts-plugin-piper","gradio":false}
goldyfruit commented 1 year ago

Just tested on my instance an it work fine.

{
  "tts": {
    "module": "ovos-tts-plugin-server",
    "ovos-tts-plugin-server": {
      "host": "http://192.168.1.227:8089"
    }
  }
}

Could you please restart ovos_audio and check the logs without any grep command?

docker logs -f --tail 500 ovos_audio
denics commented 1 year ago
2023-08-24 11:41:25.227 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-files-plugin
2023-08-24 11:41:25.289 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-rss-plugin
2023-08-24 11:41:25.333 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-news-plugin
2023-08-24 11:41:25.389 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-m3u-plugin
2023-08-24 11:41:25.417 - audio - ovos_utils.signal:get_ipc_directory:26 - WARNING - Deprecation version=0.1.0. Caller=ovos_audio.__main__:26. Expected a dict config and got None.
2023-08-24 11:41:25.431 - audio - ovos_audio.service:__init__:49 - INFO - Starting Audio Service
2023-08-24 11:41:25.432 - audio - ovos_audio.service:on_started:31 - INFO - Audio service started.
2023-08-24 11:41:25.436 - audio - ovos_config.utils:__init__:21 - WARNING - Deprecation version=0.1.0. Caller=ovos_config.config:283. Import from ovos_utils.file_utils directly
2023-08-24 11:41:25.442 - audio - ovos_bus_client.session:reset_default_session:531 - INFO - New Default Session Start: 5115072c-2059-4a19-8acc-3f1a63efea99
2023-08-24 11:41:31.663 - audio - ovos_audio.service:_maybe_reload_tts:291 - INFO - (re)loading TTS engine
2023-08-24 11:41:31.707 - audio - ovos_utils.configuration:get_xdg_base - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:93. configuration moved to the `ovos_config` package.
2023-08-24 11:41:31.715 - audio - ovos_utils.configuration:read_mycroft_config - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:106. configuration moved to the `ovos_config` package.
2023-08-24 11:41:31.716 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-server
2023-08-24 11:41:31.718 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-24 11:41:32.073 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-server
2023-08-24 11:41:32.074 - audio - ovos_audio.service:_maybe_reload_tts:310 - INFO - (re)loading fallback TTS engine
2023-08-24 11:41:32.090 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-mimic3-server
2023-08-24 11:41:32.092 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-24 11:41:32.158 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-mimic3-server
2023-08-24 11:41:32.174 - audio - ovos_audio.audio:load_services:94 - INFO - Loading audio service plugin: ovos_common_play
2023-08-24 11:41:35.190 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:168. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:35.214 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.ovos:39. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:35.594 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:148. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:35.595 - ovos.common_play - WARNING - Tried to initialize ovos.common_play multiple times, ignoring
2023-08-24 11:41:35.600 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:168. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:35.632 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.ovos:39. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:36.163 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:148. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:36.164 - ovos.common_play - WARNING - Tried to initialize ovos.common_play multiple times, ignoring
2023-08-24 11:41:36.300 - audio - ovos_audio.audio:load_services:94 - INFO - Loading audio service plugin: ovos_audio_simple
2023-08-24 11:41:36.304 - audio - ovos_audio.audio:find_ocp:61 - INFO - OCP - OVOS Common Play set as default backend
2023-08-24 11:41:36.306 - audio - ovos_plugin_common_play.ocp.mpris:handle_new_player:109 - INFO - Found MPRIS Player: org.mpris.MediaPlayer2.firefox.instance4252
2023-08-24 11:41:36.307 - audio - ovos_audio.service:on_alive:27 - INFO - Audio service is alive.
2023-08-24 11:41:36.408 - audio - ovos_audio.service:on_ready:23 - INFO - Audio service is ready.
2023-08-24 11:41:52.448 - audio - ovos_plugin_common_play.ocp:register_ocp_intents:120 - INFO - OCP intents missing, registering for <ovos_plugin_common_play.ocp.OCP object at 0x7fc7c0122410>
2023-08-24 11:41:52.506 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:52.596 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:52.918 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:52.976 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:53.729 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:54.140 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:54.269 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:54.428 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:56.648 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:56.879 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:57.096 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
2023-08-24 11:41:57.193 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:207. Support for `mycroft_core` will be deprecated
goldyfruit commented 1 year ago

Could you please enable DEBUG?

denics commented 1 year ago

2023-08-24 11:46:02.464 - audio - ovos_config.models:load_local:112 - DEBUG - Configuration /home/ovos/.config/mycroft/web_cache.json loaded
2023-08-24 11:46:02.465 - audio - ovos_audio.service:_maybe_reload_tts:291 - INFO - (re)loading TTS engine
2023-08-24 11:46:02.472 - audio - ovos_plugin_manager.utils.config:get_plugin_config:38 - DEBUG - Loaded configuration: {'host': 'http://10.10.5.2:9666', 'module': 'ovos-tts-plugin-server', 'pulse_duck': 'true', 'fallback_module': 'ovos-tts-plugin-mimic3-server', 'lang': 'it-it'}
2023-08-24 11:46:02.506 - audio - ovos_utils.configuration:get_xdg_base - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:93. configuration moved to the `ovos_config` package.
2023-08-24 11:46:02.530 - audio - ovos_utils.configuration:read_mycroft_config - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:106. configuration moved to the `ovos_config` package.
2023-08-24 11:46:02.533 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-server
2023-08-24 11:46:02.535 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-24 11:46:02.580 - audio - ovos_plugin_manager.utils.config:get_plugin_config:38 - DEBUG - Loaded configuration: {'module': 'ovos-g2p-plugin-heuristic-arpa', 'lang': 'it-it'}
2023-08-24 11:46:02.582 - audio - ovos_plugin_manager.utils.config:get_plugin_config:38 - DEBUG - Loaded configuration: {'module': 'ovos-g2p-plugin-heuristic-arpa', 'lang': 'it-it'}
2023-08-24 11:46:02.897 - audio - ovos_plugin_manager.g2p:create:140 - DEBUG - Loaded plugin ovos-g2p-plugin-heuristic-arpa
2023-08-24 11:46:02.917 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-server
2023-08-24 11:46:02.918 - audio - ovos_audio.service:_maybe_reload_tts:310 - INFO - (re)loading fallback TTS engine
2023-08-24 11:46:02.919 - audio - ovos_plugin_manager.utils.config:get_plugin_config:38 - DEBUG - Loaded configuration: {'voice': 'it_IT/mls_low', 'module': 'ovos-tts-plugin-mimic3-server', 'lang': 'it-it'}
2023-08-24 11:46:02.930 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-mimic3-server
2023-08-24 11:46:02.931 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-08-24 11:46:02.952 - audio - ovos_plugin_manager.utils.config:get_plugin_config:38 - DEBUG - Loaded configuration: {'module': 'ovos-g2p-plugin-heuristic-arpa', 'lang': 'it-it'}
2023-08-24 11:46:02.953 - audio - ovos_plugin_manager.utils.config:get_plugin_config:38 - DEBUG - Loaded configuration: {'module': 'ovos-g2p-plugin-heuristic-arpa', 'lang': 'it-it'}
2023-08-24 11:46:02.962 - audio - ovos_plugin_manager.g2p:create:140 - DEBUG - Loaded plugin ovos-g2p-plugin-heuristic-arpa
2023-08-24 11:46:02.972 - audio - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-mimic3-server
2023-08-24 11:46:02.982 - audio - ovos_audio.audio:load_services:94 - INFO - Loading audio service plugin: ovos_common_play
2023-08-24 11:46:02.984 - audio - ovos_plugin_common_play:create_ocp:30 - DEBUG - OCP config:
 {'active': True, 'mode': 'auto', 'type': 'ovos_common_play'}
2023-08-24 11:46:05.986 - audio - ovos_utils.gui:setup_default_handlers:636 - DEBUG - Volunteering gui page upload
2023-08-24 11:46:05.989 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:168. Support for `mycroft_core` will be deprecated
2023-08-24 11:46:05.990 - ovos.common_play - DEBUG - initializing skill settings for ovos.common_play

2023-08-24 11:46:06.030 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.ovos:39. Support for `mycroft_core` will be deprecated
2023-08-24 11:46:06.444 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:148. Support for `mycroft_core` will be deprecated
2023-08-24 11:46:06.444 - ovos.common_play - WARNING - Tried to initialize ovos.common_play multiple times, ignoring
2023-08-24 11:46:06.446 - audio - ovos_plugin_common_play.ocp:__init__:51 - DEBUG - Updating settings from value passed at init
2023-08-24 11:46:06.453 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:168. Support for `mycroft_core` will be deprecated
2023-08-24 11:46:06.454 - ovos.common_play - DEBUG - initializing skill settings for ovos.common_play

2023-08-24 11:46:06.504 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.ovos:39. Support for `mycroft_core` will be deprecated
2023-08-24 11:46:07.056 - audio - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:148. Support for `mycroft_core` will be deprecated
2023-08-24 11:46:07.057 - ovos.common_play - WARNING - Tried to initialize ovos.common_play multiple times, ignoring
2023-08-24 11:46:07.060 - audio - padacioso:__init__:42 - DEBUG - Registering `word` type
2023-08-24 11:46:07.063 - audio - ovos_utils.events:add:161 - DEBUG - Added event: ovos.common_play.ping
2023-08-24 11:46:07.068 - audio - ovos_utils.events:add:161 - DEBUG - Added event: ovos.common_play.home
2023-08-24 11:46:07.070 - audio - ovos_utils.events:add:161 - DEBUG - Added event: ovos.common_play.search
2023-08-24 11:46:07.129 - audio - ovos_utils.events:add:161 - DEBUG - Added event: mycroft.ready
2023-08-24 11:46:07.132 - audio - ovos_plugin_common_play.ocp.mpris:handle_new_player:109 - INFO - Found MPRIS Player: org.mpris.MediaPlayer2.firefox.instance4252
2023-08-24 11:46:07.175 - audio - ovos_audio.audio:load_services:94 - INFO - Loading audio service plugin: ovos_audio_simple
2023-08-24 11:46:07.176 - audio - ovos_audio.audio:find_ocp:61 - INFO - OCP - OVOS Common Play set as default backend
2023-08-24 11:46:07.177 - audio - ovos_audio.service:on_alive:27 - INFO - Audio service is alive.
2023-08-24 11:46:07.278 - audio - ovos_utils.process_utils:wait_timeout:79 - DEBUG - Will wait for 179.89989814598812 sec for Event
2023-08-24 11:46:07.278 - audio - ovos_audio.service:on_ready:23 - INFO - Audio service is ready.
2023-08-24 11:46:20.391 - audio - ovos_config.models:load_local:112 - DEBUG - Configuration /home/ovos/.config/mycroft/web_cache.json loaded
2023-08-24 11:46:23.403 - audio - ovos_utils.events:remove:169 - DEBUG - Removing event mycroft.ready
2023-08-24 11:46:23.408 - audio - ovos_plugin_common_play.ocp:register_ocp_intents:108 - DEBUG - Intents register event not set
2023-08-24 11:46:23.411 - audio - ovos_plugin_common_play.ocp:register_ocp_intents:120 - INFO - OCP intents missing, registering for <ovos_plugin_common_play.ocp.OCP object at 0x7f8b567d1e90>
...
goldyfruit commented 1 year ago

It shows your configuration, so ovos_audio reads your mycroft.conf.

2023-08-24 11:46:02.472 - audio - ovos_plugin_manager.utils.config:get_plugin_config:38 - DEBUG - Loaded configuration: {'host': 'http://10.10.5.2:9666', 'module': 'ovos-tts-plugin-server', 'pulse_duck': 'true', 'fallback_module': 'ovos-tts-plugin-mimic3-server', 'lang': 'it-it'}

Can you try this in your browser: http://10.10.5.2:9666/synthesize/I%27m%20doing%20very%20well

denics commented 1 year ago

a very nice English accent accent, and if I do: http://10.10.5.2:9666/synthesize/10 it says ten. In my dreams it would say dieci

goldyfruit commented 1 year ago

What is the voice configured by default for your TTS?

denics commented 1 year ago

I am using the docker compose with no major issues to test. It works fine, however it seems it does not use mycroft.conf for TTS. If I do docker exec -ti ovos_cli ovos-config show --section tts I can see the right values:

│ pulse_duck                                                   │ true                          │
│ module                                                       │ ovos-tts-plugin-server        │
│ fallback_module                                              │ ovos-tts-plugin-mimic3-server │
│ ovos-tts-plugin-mimic                                        │                               │
│     voice                                                    │ ap                            │
│ ovos-tts-plugin-mimic3-server                                │                               │
│     voice                                                    │ it_IT/mls_low                 │
│ ovos-tts-plugin-server                                       │                               │
│     host                                                     │ http://10.10.5.2:9666         │
│ ovos-tts-plugin-piper                                        │                               │
│     model                                                    │ riccardo_fasol                │

with this mycroft.conf

{
  "hotwords": {
    "hey_mycroft": {
      "fallback_ww": ""
    },
    "hey_mycroft_precise": {
      "listen": "false"
    },
    "hey_mycroft_vosk": {
      "listen": "false"
    },
    "hey_mycroft_pocketsphinx": {
      "listen": "false"
    }
  },
  "lang": "it-it",
  "logs": {
    "path": "stdout"
  },
  "tts": {
    "pulse_duck": "true",
    "module": "ovos-tts-plugin-server",
    "ovos-tts-plugin-server": {
      "host": "http://10.10.5.2:9666"
    },
    "ovos-tts-plugin-piper": {
      "model": "riccardo_fasol"
    },
    "ovos-tts-plugin-mimic3-server": {
      "voice": "it_IT/mls_low"
    }
  },
  "skills": {
    "blacklisted_skills": [
      "mycroft-wiki.mycroftai"
    ]
  }
}

however, I get a strong English accent like it falls to mimic :(

like I have said here, it is configured to be IT and using piper, but I am listening to mimic with AP

denics commented 1 year ago

Found the issue, documented in https://github.com/OpenVoiceOS/ovos-docker-tts/issues/3 . solving the issue with the image adding the package ovos-classifiers fix piper and now it speaks in Italian. Maybe it is of interest the fact that it defaulted to mimic instead of mimic3-server

goldyfruit commented 1 year ago

So ovos-classifiers was missing in ovos_tts_server_piper container?