Code Monkey home page Code Monkey logo

ovos-audio's Introduction

OVOS - Buildroot OS

A minimalistic Linux OS bringing the open source voice assistant ovos-core to embedded, low-spec headless and/or small (touch)screen devices.

System.

OpenVoiceOS - Full 64 Bit distribution

  • Linux kernel 6.1.x (LTS)
  • Buildroot 2023.02.x (LTS) (With some modification here and there)
  • OVOS framework / software package utilizing ovos-docker containers (Currently latest alpha/development version)
  • Raspberry Pi 3|3b|3b+ (UEFI based)
  • Raspberry Pi 4 (UEFI based)
  • x86_64 Intel based computers (UEFI based) (Work In Progress)
  • Open Virtual Appliance (UEFI based)

Stats:

Build Status GitHub last commit
This shows if the code is valid and can be build. This shows when this repo was updated for the last time
GitHub stars GitHub issues
Please ⭐ this repo if you find it useful Issues are like my personal TODO list and information archive
License: Apache License 2.0 contributions welcome
I'm using the Apache License 2.0 similar as Mycroft A.I. which means commercial use is allowed If you have any ideas, they're always welcome. Either submit an issue or a PR!
Uptime Robot status Buy me a
I use uptime robot to monitor for things i can't monitor when the connection drops. If you feel the need, now it's as easy as clicking this button!

Documentation.

More information and instructions can be found within the "documentation" folder.

Credits

Mycroft AI (@MycroftAI)
Buildroot (@buildroot)
HassOS (@home-assistant)

Inspired by;

HassOS (@home-assistant)
SkiffOS (@skiffos)

ovos-audio's People

Contributors

emphasize avatar goldyfruit avatar jarbasal avatar lordivanhoe avatar mikejgray avatar neondaniel avatar neonjarbas avatar ramblurr avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ovos-audio's Issues

IndexError: list index out of range

When trying to play a song from Spotify I got this error in the audio log.

Jul 30 13:32:26 mark2 ovos-audio[8513]: 2024-07-30 13:32:26.570 - audio - ovos_audio.audio:_play:482 - ERROR - list index out of range
Jul 30 13:32:26 mark2 ovos-audio[8513]: Traceback (most recent call last):
Jul 30 13:32:26 mark2 ovos-audio[8513]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/ovos_audio/audio.py", line 479, in _play
Jul 30 13:32:26 mark2 ovos-audio[8513]:     self.play(tracks, prefered_service, repeat)
Jul 30 13:32:26 mark2 ovos-audio[8513]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/ovos_audio/audio.py", line 398, in play
Jul 30 13:32:26 mark2 ovos-audio[8513]:     if isinstance(tracks[0], str):
Jul 30 13:32:26 mark2 ovos-audio[8513]:                   ~~~~~~^^^
Jul 30 13:32:26 mark2 ovos-audio[8513]: IndexError: list index out of range

snd/blop-mark-diangelo.wav file doesn't not exist

The snd/blop-mark-diangelo.wav doesn't exist anywhere on the system.

2023-12-21 10:12:28.083 - HiveMind-voice-sat - ovos_PHAL.service:load_plugins:85 - ERROR - failed to load PHAL plugin: ovos-PHAL-plugin-alsa
Traceback (most recent call last):
  File "/home/hivemind/.venv/lib/python3.11/site-packages/ovos_PHAL/service.py", line 82, in load_plugins
    self.drivers[name] = plug(bus=self.bus, config=config)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hivemind/.venv/lib/python3.11/site-packages/ovos_PHAL_plugin_alsa/__init__.py", line 54, in __init__
    self.set_volume(50)
  File "/home/hivemind/.venv/lib/python3.11/site-packages/ovos_PHAL_plugin_alsa/__init__.py", line 66, in set_volume
    self.bus.emit(Message("mycroft.audio.play_sound", {"uri": "snd/blop-mark-diangelo.wav"}))
  File "/home/hivemind/.venv/lib/python3.11/site-packages/hivemind_bus_client/client.py", line 277, in emit
    self.internal_bus.emit(message.payload)
  File "/home/hivemind/.venv/lib/python3.11/site-packages/ovos_utils/messagebus.py", line 61, in emit
    self.ee.emit(message.msg_type, message)
  File "/home/hivemind/.venv/lib/python3.11/site-packages/pyee/_base.py", line 115, in emit
    handled = self._call_handlers(event, args, kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hivemind/.venv/lib/python3.11/site-packages/pyee/_base.py", line 98, in _call_handlers
    self._emit_run(f, args, kwargs)
  File "/home/hivemind/.venv/lib/python3.11/site-packages/pyee/_base.py", line 83, in _emit_run
    f(*args, **kwargs)
  File "/home/hivemind/.venv/lib/python3.11/site-packages/ovos_audio/service.py", line 478, in handle_instant_play
    audio_file = self._resolve_sound_uri(audio_file)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hivemind/.venv/lib/python3.11/site-packages/ovos_audio/service.py", line 420, in _resolve_sound_uri
    raise FileNotFoundError(f"{audio_file} does not exist")
FileNotFoundError: None does not exist

This service doesn't seem to get the combo-lock fix about "MemoryTempfile"

2023-05-27 18:32:48.105 - audio - ovos_utils.file_utils:get_cache_directory:61 - ERROR - 'MemoryTempfile' object has no attribute 'tempdir'
Traceback (most recent call last):
  File "/Users/goldyfruit/Virtualenvs/ovos/lib/python3.11/site-packages/ovos_utils/file_utils.py", line 57, in get_cache_directory
    path = join(MemoryTempfile(fallback=True).gettempdir(), folder)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/goldyfruit/Virtualenvs/ovos/lib/python3.11/site-packages/memory_tempfile/memory_tempfile.py", line 80, in gettempdir
    return self.tempdir
           ^^^^^^^^^^^^
AttributeError: 'MemoryTempfile' object has no attribute 'tempdir'
2023-05-27 18:32:48.111 - audio - ovos_utils.file_utils:resolve_resource_file:145 - WARNING - Expected a dict config and got None. This configfallback behavior will be deprecated in a future release
2023-05-27 18:32:48.179 - audio - mycroft:<module>:37 - WARNING - mycroft has been deprecated! please start importing from ovos_core and companion packages
mycroft module remains available for backwards compatibility and will be removed in version 0.2.0
2023-05-27 18:32:48.231 - audio - ovos_utils.file_utils:get_cache_directory:61 - ERROR - 'MemoryTempfile' object has no attribute 'tempdir'
Traceback (most recent call last):
  File "/Users/goldyfruit/Virtualenvs/ovos/lib/python3.11/site-packages/ovos_utils/file_utils.py", line 57, in get_cache_directory
    path = join(MemoryTempfile(fallback=True).gettempdir(), folder)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/goldyfruit/Virtualenvs/ovos/lib/python3.11/site-packages/memory_tempfile/memory_tempfile.py", line 80, in gettempdir
    return self.tempdir
           ^^^^^^^^^^^^
AttributeError: 'MemoryTempfile' object has no attribute 'tempdir'

mycroft dependancy into __main__.py

When I try to start the service via python __main__.py, I got an error related to a mycrof.audio depen

If I replace from mycroft.audio.__main__ import main with from ovos_audio.__main__ import main, the service "starts" (need to debug the The TTS plugin "ovos-tts-plugin-mimic2" could not be loaded error).

threads can only be started once

2024-01-20 16:48:46.792 - audio - ovos_plugin_manager.tts:create:209 - INFO - Loaded plugin amazon
2024-01-20 16:48:46.794 - audio - ovos_config.config:_on_file_change:321 - ERROR - Error in config update callback handler
Traceback (most recent call last):
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_config/config.py", line 319, in _on_file_change
    handler()
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_audio/service.py", line 314, in _maybe_reload_tts
    self.tts.init(self.bus, self.playback_thread)
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_manager/templates/tts.py", line 325, in init
    self._init_playback(playback)
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_manager/templates/tts.py", line 336, in _init_playback
    TTS.playback.start()
  File "/usr/lib/python3.11/threading.py", line 952, in start
    raise RuntimeError("threads can only be started once")
RuntimeError: threads can only be started once

Possible issue with pre-release

I think there's something with the latest dev update of ovos-audio (pre-release 0.0.2a15) and OCP (YouTube). When I give a play command, it leads to fallback skill. I narrowed it down to ovos-audio because it was updated recently. When I downgrade to 0.0.2a14, OCP is working again.

playback queue race condition

noticed in easter eggs skill by @mikejgray

self.speak("hello")
self.play_audio("short_sound.wav")

results in sound file playing before the TTS

	ts 0 - emit speak
	ts 1 - handle_speak start executing
	ts 2 - TTS synth start
	ts 3 - emit audio
	ts 4 - handle_audio start executing
	ts 5 - handle_audio queues file
	ts 6 - handle_audio finishes executing
	ts 7 - TTS synth end
	ts 8 - handle_speak queues file
	ts 9 - handle_speak finishes executing

this is my completely unverified diagnosis

theoretically this can also happen with TTS, depending on utterance length and if its cached or not

self.speak("a very very very very very very very very very very long uncached utterance")
self.speak("hello")

may happen that hello gets spoken first, depending on RTF of the TTS plugin

workarounds: pass wait=True to the speak calls in situations where this is likely to happen

ovos-audio stops speaking when some chars are present

Hey ! Weird bug here !

Config: rpi4 8GB with raspbian OVOS

When trying to process TTS with ovos-audio, if an upper case letter is in the string spoken, ovos-audio stops speaking until a restart of the service occurs.

Logs continue to show requests but nothing happens on speakers.

ovos-speak "i am a test" --> works
ovos-speak "i am a test" --> works
ovos-speak "i aM a test" --> doesn't work
ovos-speak "i am a test" --> doesn't work
...

Same behavior happens when asking something returning an upper case letter in the string:

ovos-say-to "what time is it ?"

  • response "five fifty six" --> ok
  • response "It is five fifty six" --> not ok

EDIT:

I tried with a piper server on my local network. I can see that when ovos audio stops working, it logs sentences but the server is not called anymore.

voice directory not automatically recreated if deleted

If I delete /home/goldyfruit/.cache/mycroft/ovos-tts-plugin-polly/Danielle and don't restart ovos-audio the Danielle directory is not automatically recreated which generate this error:

May 30 10:14:20 mark2 ovos-audio[13164]: 2024-05-30 10:14:20.418 - audio - ovos_audio.service:execute_tts:387 - ERROR - TTS synth failed! [Errno 2] No such file or directory: '/home/goldyfruit/.cache/mycroft/ovos-tts-plugin-polly/Danielle/en-us/909dfd09c925ad0ff1a90a3304131d6c.mp3'
May 30 10:14:20 mark2 ovos-audio[13164]: Traceback (most recent call last):
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_audio/service.py", line 384, in execute_tts
May 30 10:14:20 mark2 ovos-audio[13164]:     self.tts.execute(utterance, ident, listen,
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_plugin_manager/templates/tts.py", line 506, in execute
May 30 10:14:20 mark2 ovos-audio[13164]:     self._execute(sentence, ident, listen, **kwargs)
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_plugin_manager/templates/tts.py", line 590, in _execute
May 30 10:14:20 mark2 ovos-audio[13164]:     audio_file, phonemes = self.synth(sentence, ctxt)
May 30 10:14:20 mark2 ovos-audio[13164]:                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_plugin_manager/templates/tts.py", line 632, in synth
May 30 10:14:20 mark2 ovos-audio[13164]:     audio.path, phonemes = self.get_tts(sentence, str(audio),
May 30 10:14:20 mark2 ovos-audio[13164]:                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_tts_plugin_polly/__init__.py", line 81, in get_tts
May 30 10:14:20 mark2 ovos-audio[13164]:     with open(wav_file, "wb") as f:
May 30 10:14:20 mark2 ovos-audio[13164]:          ^^^^^^^^^^^^^^^^^^^^
May 30 10:14:20 mark2 ovos-audio[13164]: FileNotFoundError: [Errno 2] No such file or directory: '/home/goldyfruit/.cache/mycroft/ovos-tts-plugin-polly/Danielle/en-us/909dfd09c925ad0ff1a90a3304131d6c.mp3'

Killed if previous audio.pid exists

If an old audio.pid file exists in /tmp/mycroft then the bus can't start again, the old audio.pid has to be removed.

Killed                  ovos-audio
2023-05-18 21:07:02.695 - OVOS - ovos_config.models:load_local:105 - DEBUG - Configuration /home/ovos/.venv/lib/python3.11/site-packages/ovos_config/mycroft.conf loaded
2023-05-18 21:07:02.757 - OVOS - ovos_config.models:load_local:111 - DEBUG - Configuration '/etc/mycroft/mycroft.conf' not defined, skipping
2023-05-18 21:07:02.822 - OVOS - ovos_config.models:load_local:105 - DEBUG - Configuration /home/ovos/.config/mycroft/web_cache.json loaded
2023-05-18 21:07:02.890 - OVOS - ovos_config.models:load_local:105 - DEBUG - Configuration /home/ovos/.config/mycroft/mycroft.conf loaded
2023-05-18 21:07:02.954 - OVOS - ovos_config.models:load_local:111 - DEBUG - Configuration '/etc/xdg/mycroft/mycroft.conf' not defined, skipping
2023-05-18 21:07:03.014 - OVOS - ovos_config.models:load_local:111 - DEBUG - Configuration '/home/ovos/.mycroft/mycroft.conf' not defined, skipping
2023-05-18 21:07:05.871 - OVOS - ovos_utils.configuration:get_xdg_config_save_path:141 - WARNING - configuration moved to the `ovos_config` package. This submodule will be removed in ovos_utils 0.1.0
2023-05-18 21:07:06.623 - OVOS - ovos_utils.configuration:get_xdg_base:76 - WARNING - configuration moved to the `ovos_config` package. This submodule will be removed in ovos_utils 0.1.0
2023-05-18 21:07:08.389 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-news-plugin
2023-05-18 21:07:08.741 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-files-plugin
2023-05-18 21:07:09.089 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-m3u-plugin
2023-05-18 21:07:09.442 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-rss-plugin
Killed                  ovos-audio
2023-05-18 21:07:13.210 - OVOS - ovos_config.models:load_local:105 - DEBUG - Configuration /home/ovos/.venv/lib/python3.11/site-packages/ovos_config/mycroft.conf loaded
2023-05-18 21:07:13.272 - OVOS - ovos_config.models:load_local:111 - DEBUG - Configuration '/etc/mycroft/mycroft.conf' not defined, skipping
2023-05-18 21:07:13.335 - OVOS - ovos_config.models:load_local:105 - DEBUG - Configuration /home/ovos/.config/mycroft/web_cache.json loaded
2023-05-18 21:07:13.406 - OVOS - ovos_config.models:load_local:105 - DEBUG - Configuration /home/ovos/.config/mycroft/mycroft.conf loaded
2023-05-18 21:07:13.469 - OVOS - ovos_config.models:load_local:111 - DEBUG - Configuration '/etc/xdg/mycroft/mycroft.conf' not defined, skipping
2023-05-18 21:07:13.533 - OVOS - ovos_config.models:load_local:111 - DEBUG - Configuration '/home/ovos/.mycroft/mycroft.conf' not defined, skipping
2023-05-18 21:07:16.333 - OVOS - ovos_utils.configuration:get_xdg_config_save_path:141 - WARNING - configuration moved to the `ovos_config` package. This submodule will be removed in ovos_utils 0.1.0
2023-05-18 21:07:17.085 - OVOS - ovos_utils.configuration:get_xdg_base:76 - WARNING - configuration moved to the `ovos_config` package. This submodule will be removed in ovos_utils 0.1.0
2023-05-18 21:07:18.822 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-news-plugin
2023-05-18 21:07:19.174 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-files-plugin
2023-05-18 21:07:19.528 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-m3u-plugin
2023-05-18 21:07:19.878 - OVOS - ovos_plugin_manager.ocp:load:33 - INFO - Loaded OCP plugin: ovos-ocp-rss-plugin
Killed                  ovos-audio

Once I cleared the file, the service started without trouble.

Same issue as OpenVoiceOS/ovos-messagebus#4

config file is not reloaded on change

While doing some TTS testing, I noticed that my audio.log would show that ~/.config/mycroft/mycroft.conf was changed and it was reloading the TTS engine, BUT it did not actually do that. Before the config was recognized, I had to restart the service

Changing mycroft.conf breaks audio output

mycroft.conf file opening:

Jan 26 09:55:19 rpi4b ovos-audio[1274]: 2024-01-26 09:55:19.282 - audio - ovos_config.config:_on_file_change:312 - DEBUG - Ignoring non-config file change: /home/goldyfruit/.config/mycroft/.mycroft.conf.swx
Jan 26 09:55:19 rpi4b ovos-audio[1274]: 2024-01-26 09:55:19.284 - audio - ovos_config.config:_on_file_change:312 - DEBUG - Ignoring non-config file change: /home/goldyfruit/.config/mycroft/.mycroft.conf.swp

Quitting mycroft.conf without any changes or save, just a :q in vim.

Jan 26 09:56:04 rpi4b ovos-audio[1274]: 2024-01-26 09:56:04.955 - audio - ovos_config.config:_on_file_change:312 - DEBUG - Ignoring non-config file change: /home/goldyfruit/.config/mycroft/.mycroft.conf.swp

All still working fine.

Changing a value in mycroft.conf, save and quit the file, just a :x in vim.

Jan 26 09:56:48 rpi4b ovos-audio[1274]: 2024-01-26 09:56:48.382 - audio - ovos_config.config:_on_file_change:312 - DEBUG - Ignoring non-config file change: /home/goldyfruit/.config/mycroft/4913
Jan 26 09:56:48 rpi4b ovos-audio[1274]: 2024-01-26 09:56:48.391 - audio - ovos_config.models:load_local:112 - DEBUG - Configuration /home/goldyfruit/.config/mycroft/mycroft.conf loaded
Jan 26 09:56:48 rpi4b ovos-audio[1274]: 2024-01-26 09:56:48.393 - audio - ovos_config.config:_on_file_change:315 - INFO - /home/goldyfruit/.config/mycroft/mycroft.conf changed on disk
Jan 26 09:56:48 rpi4b ovos-audio[1274]: 2024-01-26 09:56:48.395 - audio - ovos_config.config:_on_file_change:316 - DEBUG - Calling 1 callbacks
Jan 26 09:56:48 rpi4b ovos-audio[1274]: 2024-01-26 09:56:48.397 - audio - ovos_audio.service:_maybe_reload_tts:331 - INFO - (re)loading fallback TTS engine
Jan 26 09:56:48 rpi4b ovos-audio[1274]: 2024-01-26 09:56:48.398 - audio - ovos_config.config:_on_file_change:312 - DEBUG - Ignoring non-config file change: /home/goldyfruit/.config/mycroft/.mycroft.conf.swp

No more sound output.

Jan 26 10:01:40 rpi4b ovos-audio[1571]: 2024-01-26 10:01:40.541 - audio - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session
Jan 26 10:01:40 rpi4b ovos-audio[1571]: 2024-01-26 10:01:40.581 - audio - ovos_audio.service:execute_tts:343 - INFO - Speak: It's ten oh one

OCP extractors failing when OCP is set to legacy audio service

when config is

  "Audio": {
    "backends": {
      "OCP": {
        "playback_mode": 40
      }
    }
  }

playback fails because streams arent extracted in this code path

Jul 29 17:08:53 mark2 ovos-audio[20436]: 2024-07-29 17:08:53.610 - audio - ovos_plugin_common_play.ocp.player:handle_play_request:768 - DEBUG - Received external OVOS playback request
Jul 29 17:08:53 mark2 ovos-audio[20436]: 2024-07-29 17:08:53.626 - audio - ovos_utils.ocp:goto_track:552 - DEBUG - New playlist position: 0
Jul 29 17:08:53 mark2 ovos-audio[20436]: 2024-07-29 17:08:53.628 - audio - ovos_plugin_common_play.ocp.player:set_now_playing:251 - DEBUG - Playing: MediaEntry(uri='youtube//https://music.youtube.com/watch?v=SqnHPM86rhE', title="Big Pimpin' (feat. UGK)", artist='JAY-Z', match_confidence=100, skill_id='skill-ovos-youtube-music.openvoiceos', playback=2, status=1, media_type=2, length=285000, image='https://lh3.googleusercontent.com/JJ9Rofs4tgph_jtVxQL-Lk-gUQSSd321WRUGU2_318EPjnawl0JvSltf8XcEcpwukwliUFwDxTCkHF0P=w120-h120-l90-rj', skill_icon='/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', javascript='')
Jul 29 17:08:53 mark2 ovos-audio[20436]: 2024-07-29 17:08:53.634 - audio - ovos_plugin_common_play.ocp.media:reset:157 - DEBUG - Resetting NowPlaying
Jul 29 17:08:53 mark2 ovos-audio[20436]: 2024-07-29 17:08:53.639 - audio - ovos_utils.ocp:goto_track:552 - DEBUG - New playlist position: 0
Jul 29 17:08:53 mark2 ovos-audio[20436]: 2024-07-29 17:08:53.644 - audio - ovos_plugin_common_play.ocp.media:extract_stream:209 - INFO - OCP plugins metadata: {'uri': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE'}
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.164 - audio - ovos_plugin_common_play.ocp.gui:manage_display:217 - DEBUG - manage_display: page_requested: player
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.167 - audio - ovos_plugin_common_play.ocp.gui:manage_display:218 - DEBUG - manage_display: player_status: 0
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.170 - audio - ovos_plugin_common_play.ocp.gui:_get_pages_to_display:335 - DEBUG - pages to display backend: OVOSSyncPlayer
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.290 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.293 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.296 - audio - ovos_bus_client.apis.gui:_pages2uri:376 - DEBUG - Resolved pages: []
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.298 - audio - ovos_bus_client.apis.gui:show_pages:448 - DEBUG - Updating gui data: {'searchModel': {'data': [{'duration': 285000, 'track': "Big Pimpin' (feat. UGK)", 'image': 'https://lh3.googleusercontent.com/JJ9Rofs4tgph_jtVxQL-Lk-gUQSSd321WRUGU2_318EPjnawl0JvSltf8XcEcpwukwliUFwDxTCkHF0P=w120-h120-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE'}]}, 'canResume': True, 'canPause': True, 'canPrev': False, 'canNext': True, 'loopStatus': 'None', 'shuffleStatus': False, 'media': {'uri': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE', 'title': "Big Pimpin' (feat. UGK)", 'artist': 'JAY-Z', 'match_confidence': 100, 'skill_id': 'skill-ovos-youtube-music.openvoiceos', 'playback': <PlaybackType.AUDIO_SERVICE: 3>, 'status': 1, 'media_type': 2, 'length': 285000, 'image': 'https://lh3.googleusercontent.com/JJ9Rofs4tgph_jtVxQL-Lk-gUQSSd321WRUGU2_318EPjnawl0JvSltf8XcEcpwukwliUFwDxTCkHF0P=w120-h120-l90-rj', 'skill_icon': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'javascript': '', 'position': 0, 'phrase': None, 'bg_image': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'is_cps': False, 'data': {}, 'cps_data': {}, 'duration': 285000, 'track': "Big Pimpin' (feat. UGK)", 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png'}, 'uri': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE', 'title': "Big Pimpin' (feat. UGK)", 'image': 'https://lh3.googleusercontent.com/JJ9Rofs4tgph_jtVxQL-Lk-gUQSSd321WRUGU2_318EPjnawl0JvSltf8XcEcpwukwliUFwDxTCkHF0P=w120-h120-l90-rj', 'artist': 'JAY-Z', 'bg_image': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'duration': 285000, 'position': 0, 'javascript': '', 'javascriptCanOpenWindows': False, 'allowUrlChange': False, 'playlistModel': {'data': [{'duration': 285000, 'track': "Big Pimpin' (feat. UGK)", 'image': 'https://lh3.googleusercontent.com/JJ9Rofs4tgph_jtVxQL-Lk-gUQSSd321WRUGU2_318EPjnawl0JvSltf8XcEcpwukwliUFwDxTCkHF0P=w120-h120-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE'}, {'duration': 267000, 'track': "Where I'm From", 'image': 'https://lh3.googleusercontent.com/JWy8yt-COGvQB6P6CLGMqWrrF2bdGfraCPTx2DBiLX44BVLig7xGV_Dcsud16lLKseY-6OnKTzhV-4zFDw=w120-h120-s-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=gWzJNvbEa4s'}, {'duration': 277000, 'track': 'Empire State Of Mind (feat. Alicia Keys)', 'image': 'https://lh3.googleusercontent.com/cac7RCDKMaGadnmmVcJA1pJBi5Vcp3hwPHbKSHJzJ1H-JXOhASEuLYCvUPX3blZx6OlIyGtm8ld9BKFS=w120-h120-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=_ydMlTassYc'}]}, 'stream': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE', 'status': 'Stopped', 'app_view_timeout_enabled': False, 'app_view_timeout': 30, 'app_view_timeout_mode': 'all', 'playerBackend': 'OVOSSyncPlayer', 'displaySuggestionBar': True, '__from': 'ovos.common_play'}
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.302 - audio - ovos_plugin_common_play.ocp.player:play:410 - DEBUG - Requesting playback: <PlaybackType.AUDIO_SERVICE: 3>
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.304 - audio - ovos_plugin_common_play.ocp.player:play:418 - DEBUG - Handling playback via audio_service
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.386 - audio - ovos_plugin_common_play.ocp.player:play:469 - DEBUG - self.active_backend=<PlaybackType.AUDIO_SERVICE: 3>
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.407 - audio - ovos_audio.audio:_play:472 - DEBUG - mpv would be preferred
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.414 - audio - ovos_audio.audio:play:403 - DEBUG - track uri type: youtube//https
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.435 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:260 - INFO - TrackState changed: <TrackState.PLAYING_AUDIOSERVICE: 21>
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.439 - audio - ovos_audio.audio:play:413 - DEBUG - Searching the services
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.722 - audio - ovos_audio.audio:play:420 - INFO - No service found for uri_type: youtube//https
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.760 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:728 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.763 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:740 - DEBUG - MediaState changed: <MediaState.INVALID_MEDIA: 8>
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.781 - audio - ovos_plugin_common_play.ocp.player:pause:562 - DEBUG - Pausing playback: 3
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.809 - audio - ovos_plugin_common_play.ocp.player:set_now_playing:251 - DEBUG - Playing: MediaEntry(uri='youtube//https://music.youtube.com/watch?v=gWzJNvbEa4s', title="Where I'm From", artist='JAY-Z', match_confidence=100, skill_id='skill-ovos-youtube-music.openvoiceos', playback=2, status=1, media_type=2, length=267000, image='https://lh3.googleusercontent.com/JWy8yt-COGvQB6P6CLGMqWrrF2bdGfraCPTx2DBiLX44BVLig7xGV_Dcsud16lLKseY-6OnKTzhV-4zFDw=w120-h120-s-l90-rj', skill_icon='/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', javascript='')
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.819 - audio - ovos_plugin_common_play.ocp.media:reset:157 - DEBUG - Resetting NowPlaying
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.835 - audio - ovos_utils.ocp:goto_track:552 - DEBUG - New playlist position: 1
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.889 - audio - ovos_plugin_common_play.ocp.player:play_next:512 - INFO - Next track index: 1
Jul 29 17:08:54 mark2 ovos-audio[20436]: 2024-07-29 17:08:54.893 - audio - ovos_plugin_common_play.ocp.media:extract_stream:209 - INFO - OCP plugins metadata: {'uri': 'youtube//https://music.youtube.com/watch?v=gWzJNvbEa4s'}
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.473 - audio - ovos_plugin_common_play.ocp.gui:manage_display:217 - DEBUG - manage_display: page_requested: player
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.482 - audio - ovos_plugin_common_play.ocp.gui:manage_display:218 - DEBUG - manage_display: player_status: 2
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.484 - audio - ovos_plugin_common_play.ocp.gui:_get_pages_to_display:335 - DEBUG - pages to display backend: OVOSSyncPlayer
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.491 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.516 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.521 - audio - ovos_bus_client.apis.gui:_pages2uri:376 - DEBUG - Resolved pages: []
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.527 - audio - ovos_bus_client.apis.gui:show_pages:448 - DEBUG - Updating gui data: {'searchModel': {'data': [{'duration': 285000, 'track': "Big Pimpin' (feat. UGK)", 'image': 'https://lh3.googleusercontent.com/JJ9Rofs4tgph_jtVxQL-Lk-gUQSSd321WRUGU2_318EPjnawl0JvSltf8XcEcpwukwliUFwDxTCkHF0P=w120-h120-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE'}]}, 'canResume': True, 'canPause': True, 'canPrev': True, 'canNext': True, 'loopStatus': 'None', 'shuffleStatus': False, 'media': {'uri': 'youtube//https://music.youtube.com/watch?v=gWzJNvbEa4s', 'title': "Where I'm From", 'artist': 'JAY-Z', 'match_confidence': 100, 'skill_id': 'skill-ovos-youtube-music.openvoiceos', 'playback': <PlaybackType.AUDIO_SERVICE: 3>, 'status': 1, 'media_type': 2, 'length': 267000, 'image': 'https://lh3.googleusercontent.com/JWy8yt-COGvQB6P6CLGMqWrrF2bdGfraCPTx2DBiLX44BVLig7xGV_Dcsud16lLKseY-6OnKTzhV-4zFDw=w120-h120-s-l90-rj', 'skill_icon': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'javascript': '', 'position': 0, 'phrase': None, 'bg_image': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'is_cps': False, 'data': {}, 'cps_data': {}, 'duration': 267000, 'track': "Where I'm From", 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png'}, 'uri': 'youtube//https://music.youtube.com/watch?v=gWzJNvbEa4s', 'title': "Where I'm From", 'image': 'https://lh3.googleusercontent.com/JWy8yt-COGvQB6P6CLGMqWrrF2bdGfraCPTx2DBiLX44BVLig7xGV_Dcsud16lLKseY-6OnKTzhV-4zFDw=w120-h120-s-l90-rj', 'artist': 'JAY-Z', 'bg_image': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'duration': 267000, 'position': 0, 'javascript': '', 'javascriptCanOpenWindows': False, 'allowUrlChange': False, 'playlistModel': {'data': [{'duration': 285000, 'track': "Big Pimpin' (feat. UGK)", 'image': 'https://lh3.googleusercontent.com/JJ9Rofs4tgph_jtVxQL-Lk-gUQSSd321WRUGU2_318EPjnawl0JvSltf8XcEcpwukwliUFwDxTCkHF0P=w120-h120-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=SqnHPM86rhE'}, {'duration': 267000, 'track': "Where I'm From", 'image': 'https://lh3.googleusercontent.com/JWy8yt-COGvQB6P6CLGMqWrrF2bdGfraCPTx2DBiLX44BVLig7xGV_Dcsud16lLKseY-6OnKTzhV-4zFDw=w120-h120-s-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=gWzJNvbEa4s'}, {'duration': 277000, 'track': 'Empire State Of Mind (feat. Alicia Keys)', 'image': 'https://lh3.googleusercontent.com/cac7RCDKMaGadnmmVcJA1pJBi5Vcp3hwPHbKSHJzJ1H-JXOhASEuLYCvUPX3blZx6OlIyGtm8ld9BKFS=w120-h120-l90-rj', 'album': 'skill-ovos-youtube-music.openvoiceos', 'source': '/home/goldyfruit/.venvs/ovos/lib/python3.11/site-packages/skill_ovos_youtube_music/res/ytmus.png', 'uri': 'youtube//https://music.youtube.com/watch?v=_ydMlTassYc'}]}, 'stream': 'youtube//https://music.youtube.com/watch?v=gWzJNvbEa4s', 'status': 'Paused', 'app_view_timeout_enabled': False, 'app_view_timeout': 30, 'app_view_timeout_mode': 'all', 'playerBackend': 'OVOSSyncPlayer', 'displaySuggestionBar': True, 'footer_text': 'Sorry, An error occurred while playing media', '__from': 'ovos.common_play'}
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.534 - audio - ovos_plugin_common_play.ocp.player:play:410 - DEBUG - Requesting playback: <PlaybackType.AUDIO_SERVICE: 3>
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.540 - audio - ovos_plugin_common_play.ocp.player:play:418 - DEBUG - Handling playback via audio_service
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.563 - audio - ovos_plugin_common_play.ocp.player:play:469 - DEBUG - self.active_backend=<PlaybackType.AUDIO_SERVICE: 3>
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.636 - audio - ovos_audio.audio:_play:472 - DEBUG - mpv would be preferred
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.646 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:260 - INFO - TrackState changed: <TrackState.PLAYING_AUDIOSERVICE: 21>
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.654 - audio - ovos_audio.audio:play:403 - DEBUG - track uri type: youtube//https
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.673 - audio - ovos_audio.audio:play:413 - DEBUG - Searching the services
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.716 - audio - ovos_audio.audio:play:420 - INFO - No service found for uri_type: youtube//https
Jul 29 17:08:55 mark2 ovos-audio[20436]: 2024-07-29 17:08:55.730 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:728 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

paplay not available on Mac OS

On Mac OS paplay is not available except if installed via brew, default available command is afplay.

2023-05-27 18:14:41.210 - OVOS - ovos_utils.sound:play_audio:186 - ERROR - [Errno 2] No such file or directory: 'paplay'
Traceback (most recent call last):
  File "/Users/goldyfruit/Virtualenvs/ovos/lib/python3.11/site-packages/ovos_utils/sound/__init__.py", line 183, in play_audio
    return subprocess.Popen(play_cmd, env=environment)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1917, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'paplay'

Changing play_wav_cmdline option to "play_wav_cmdline": "afplay %1" fixed the issue but maybe it could be nice to have a binary autodetect.

The start/end_listening sounds should be called with the pulse media.role=phone to enable ducking

Copied from MycroftAI/mycroft-core#3148

This will likely never get fixed upstream since MycrodtAI has moved on to dinkum. But now that I am building my home setup around ovos, maybe there is a chance?

The linked ticket describes the issue.

Basically, the start listening sound play command should be passed the same environment as the tts play command.

This let's pulse properly handle ducking of the start listening sound.

Without this, as it currently stands, the start listening sound is played without the phone role, so it is treated as music. This is problematic because I want the start listening sound and the tts to be played at the same volume.

ovos-audo fails to start when no piper-tts model is found

when running ovos-audo with no internet, it fails to start when using piper-tts and it cannot find the model

2023-06-18 08:56:17.038 - audio - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-piper
2023-06-18 08:56:17.055 - audio - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expect
ed a dict config and got None.
2023-06-18 08:56:17.134 - audio - mycroft:<module>:37 - WARNING - mycroft has been deprecated! please start importing from ovos_core and companion packages
mycroft module remains available for backwards compatibility and will be removed in version 0.2.0
2023-06-18 08:56:21.660 - audio - ovos_plugin_manager.tts:create:206 - ERROR - The TTS plugin "ovos-tts-plugin-piper" could not be loaded.
Available modules: ovos-tts-plugin-server,ovos-tts-plugin-mimic,ovos-tts-plugin-dummy,ovos-tts-plugin-mimic3-server,ovos-tts-plugin-piper
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/ovos_plugin_manager/tts.py", line 198, in create
    tts = clazz(tts_lang, tts_config)
  File "/usr/local/lib/python3.9/dist-packages/ovos_tts_plugin_piper/__init__.py", line 158, in __init__
    self.get_model(voice=voice)
  File "/usr/local/lib/python3.9/dist-packages/ovos_tts_plugin_piper/__init__.py", line 222, in get_model
    raise FileNotFoundError("onnx model not found")
FileNotFoundError: onnx model not found
2023-06-18 08:56:21.662 - audio - ovos_audio.service:__init__:79 - ERROR - onnx model not found
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/ovos_audio/service.py", line 76, in __init__
    self._maybe_reload_tts()
  File "/usr/local/lib/python3.9/dist-packages/ovos_audio/service.py", line 292, in _maybe_reload_tts
    self.tts = TTSFactory.create(config)
  File "/usr/local/lib/python3.9/dist-packages/ovos_audio/tts.py", line 9, in create
    return OVOSTTSFactory.create(config)
  File "/usr/local/lib/python3.9/dist-packages/ovos_plugin_manager/tts.py", line 198, in create
    tts = clazz(tts_lang, tts_config)
  File "/usr/local/lib/python3.9/dist-packages/ovos_tts_plugin_piper/__init__.py", line 158, in __init__
    self.get_model(voice=voice)
  File "/usr/local/lib/python3.9/dist-packages/ovos_tts_plugin_piper/__init__.py", line 222, in get_model
    raise FileNotFoundError("onnx model not found")
FileNotFoundError: onnx model not found
2023-06-18 08:56:21.665 - audio - ovos_audio.service:on_error:35 - ERROR - Audio service failed to launch (onnx model not found).

bug/coming out of ducking

2024-05-11 20:58:11.921 - audio - ovos_plugin_common_play.ocp.player:resume:568 - DEBUG - Resuming playback: 3

exception calling callback for <Future at 0x71f4dff70ed0 state=finished raised TypeError>

Traceback (most recent call last):

  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks

    callback(self)

  File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback

    self.emit("error", exc)

  File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit

    self._emit_handle_potential_error(event, args[0] if args else None)

  File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error

    raise error

  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run

    result = self.fn(*self.args, **self.kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: AudioService._restore_volume_after_record.<locals>.restore_volume() takes 0 positional arguments but 1 was given

2024-05-11 20:58:11.942 - audio - ovos_plugin_vlc:track_start:67 - DEBUG - VLC playback start

as seen in OpenVoiceOS/ovos-ocp-audio-plugin#111 (comment)

Audio Service Non-Functioning

System: Host: ***** Kernel: 5.19.0-46-generic x86_64 bits: 64 compiler: N/A Desktop: KDE Plasma 5.24.7 tk: Qt 5.15.3 wm: kwin_x11 vt: 1 dm: SDDM Distro: Ubuntu 22.04.2 LTS (Jammy Jellyfish)

Machine: Type: Laptop System: Apple product: MacBookPro8,2 v: 1.0 serial: <superuser required> Chassis: type: 10 v: Mac-94245A3940C91C80 serial: <superuser required> Mobo: Apple model: Mac-94245A3940C91C80 v: MacBookPro8,2 serial: <superuser required> UEFI: Apple v: MBP81.88Z.0050.B00.1804101331 date: 04/10/18

CPU: Info: quad core model: Intel Core i7-2635QM bits: 64 type: MT MCP smt: enabled arch: Sandy Bridge rev: 7 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB

Audio: Device-1: Intel 6 Series/C200 Series Family High Definition Audio driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403 Device-2: AMD Caicos HDMI Audio [Radeon HD 6450 / 7450/8450/8490 OEM R5 230/235/235X OEM] driver: snd_hda_intel v: kernel pcie: speed: 5 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 1002:aa98 class-ID: 0403 Sound Server-1: ALSA v: k5.19.0-46-generic running: yes Sound Server-2: PulseAudio v: 15.99.1 running: yes Sound Server-3: PipeWire v: 0.3.48 running: yes

_ After running via terminal, the last four lines of output are: _

2023-07-16 08:50:49.738 - audio - ovos_plugin_manager.audio:load_audio_service_plugins:84 - INFO - Loading audio service plugin: ovos_audio_simple

2023-07-16 08:50:49.738 - audio - ovos_audio.audio:load_services:75 - INFO - OCP - OVOS Common Play set as default backend

2023-07-16 08:50:49.741 - audio - ovos_audio.service:on_alive:27 - INFO - Audio service is alive.

2023-07-16 08:50:49.845 - audio - ovos_audio.service:on_error:35 - ERROR - Audio service failed to launch (No TTS loaded).

The audio service stays running but will not output audio.

I have removed and installed audio software several times. I have install version 0.0.2a14

No ovos-audio binary to start the service

Which ovos-bus, ovos-listener, etc... I was able to find a binary to start the service but for this service, I have to start the service with python __main__.py from the sources.

During the service initialization, watchdog complains about something already scheduled.

Unhandled exception in FSEventsEmitter
Traceback (most recent call last):
  File "/Users/goldyfruit/Virtualenvs/ovos/lib/python3.11/site-packages/watchdog/observers/fsevents.py", line 327, in run
    _fsevents.add_watch(self, self.watch, self.events_callback, self.pathnames)
RuntimeError: Cannot add watch <ObservedWatch: path='/Users/goldyfruit/.config/mycroft/apps/ovos.common_play', is_recursive=False> - it is already scheduled

Wrong volume after ducking when restarting ocp

Ducking in vlc still seems to be buggy after the last PR. I have now sometimes - but not always - the situation that vlc volume ist at 30 when starting a ocp skill.
For example: When I start with a fresh started container and call a radio station. Then vlc ist starting with my standard volume of 65. When I then stop ocp and afterwards call the radio station again, then the volume of vlc ist suddenly at 30 (which means that you can hear nothing).
When I look at pavucontrol I can see, that sometimes when I give the "stop" command ovos is ducking to 30. And I think as vlc is killed by the stop command the vlc volume is then remembered with last value (=30)

Here are the logs for this example
Log of core:


2024-07-06 17:13:29.712 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}

2024-07-06 17:13:29.713 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['Spiele Radio Ton', 1.0]], 'lang': 'de-de'}

2024-07-06 17:13:29.715 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['Spiele Radio Ton', 1.0]], 'lang': 'de-de'}

2024-07-06 17:13:29.715 - skills - ovos_core.intent_services:_handle_transformers:173 - DEBUG - utterances transformed: ['Spiele Radio Ton'] -> ['Spiele Radio Ton - Ostwürttemberg']

2024-07-06 17:13:29.718 - skills - ovos_core.intent_services:get_pipeline:251 - DEBUG - Session pipeline: ['stop_high', 'converse', 'ocp_high', 'padatious_high', 'adapt_high', 'ocp_medium', 'fallback_high', 'stop_medium', 'adapt_medium', 'padatious_medium', 'adapt_low', 'common_qa', 'fallback_medium', 'fallback_low']

2024-07-06 17:13:29.719 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method StopService.match_stop_high of <ovos_core.intent_services.stop_service.StopService object at 0x71bc3cd3ec50>>

2024-07-06 17:13:29.722 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method ConverseService.converse_with_skills of <ovos_core.intent_services.converse_service.ConverseService object at 0x71bc408b1510>>

2024-07-06 17:13:29.879 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'query': 'radio ton - ostwürttemberg'}, 'conf': 0.96, 'name': 'play'}

2024-07-06 17:13:29.880 - skills - ovos_core.intent_services.ocp_service:match_high:366 - INFO - OCP exact match: {'entities': {'query': 'radio ton - ostwürttemberg'}, 'conf': 0.96, 'name': 'play'}

2024-07-06 17:13:29.899 - skills - ovos_core.intent_services.ocp_service:handle_m:814 - INFO - Session: default Available stream extractor plugins: ['news', 'youtube', 'ydl', 'youtube.channel.live', 'pytube', 'invidious', 'm3u', 'pls', 'rss']

2024-07-06 17:13:29.909 - skills - ovos_core.intent_services.ocp_service:classify_media:746 - INFO - OVOSCommonPlay MediaType prediction: radio confidence: 0.871

2024-07-06 17:13:29.910 - skills - ovos_core.intent_services.ocp_service:classify_media:747 - DEBUG -      utterance: radio ton - ostwürttemberg

2024-07-06 17:13:29.913 - skills - ovos_core.intent_services:handle_utterance:380 - INFO - ocp_high match: IntentMatch(intent_service='OCP_intents', intent_type='ocp:play', intent_data={'media_type': <MediaType.RADIO: 7>, 'query': 'radio ton - ostwürttemberg', 'entities': {'radio_streaming_service': 'radio'}, 'skills': [], 'conf': 0.96, 'media_conf': 0.871, 'lang': 'de-de'}, skill_id='ovos.common_play', utterance='radio ton - ostwürttemberg')

2024-07-06 17:13:29.915 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.196272611618042

2024-07-06 17:13:29.953 - skills - ovos_workshop.skills.mycroft_skill:settings:193 - WARNING - with MycroftSkill self.settings may not respect self.skill_id, path: /home/ovos/.config/mycroft/skills/skill-openhab/settings.json

2024-07-06 17:13:29.967 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:29.995 - skills - ovos_bus_client.apis.ocp:__init__:876 - DEBUG - Created RADIO query: radio ton - ostwürttemberg

2024-07-06 17:13:30.526 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:30.781 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:31.177 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:31.582 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:32.137 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:36.047 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events

2024-07-06 17:13:36.062 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-pyradios.femelo is searching

2024-07-06 17:13:36.074 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-youtube-music.openvoiceos is searching

2024-07-06 17:13:36.075 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-youtube-music.openvoiceos

2024-07-06 17:13:36.081 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-news.openvoiceos is searching

2024-07-06 17:13:36.109 - skills - ovos_skill_pyradios:search:94 - DEBUG - Pyradios: found relevant cached items

2024-07-06 17:13:36.120 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-news.openvoiceos

2024-07-06 17:13:36.121 - skills - ovos_skill_pyradios:search:94 - DEBUG - Pyradios: found relevant cached items

2024-07-06 17:13:36.122 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-youtube.openvoiceos

2024-07-06 17:13:36.122 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-news.openvoiceos finished search

2024-07-06 17:13:36.123 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-youtube.openvoiceos is searching

2024-07-06 17:13:36.123 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-youtube.openvoiceos finished search

2024-07-06 17:13:36.125 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-youtube-music.openvoiceos finished search

2024-07-06 17:13:36.127 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 1 results from skill-ovos-pyradios.femelo

2024-07-06 17:13:36.128 - skills - ovos_bus_client.apis.ocp:handle_skill_response:999 - INFO - Receiving very high confidence match, stopping search early

2024-07-06 17:13:36.128 - skills - ovos_bus_client.apis.ocp:handle_skill_response:1007 - DEBUG -   - grace period: 0.5 seconds

2024-07-06 17:13:36.129 - skills - ovos_workshop.skills.common_play:__handle_ocp_query:491 - DEBUG - skipping skill-ovos-pyradios.femelo, it does not support media type: 7

2024-07-06 17:13:36.173 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-pyradios.femelo finished search

2024-07-06 17:13:36.629 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 1 results from skill-ovos-pyradios.femelo

2024-07-06 17:13:36.649 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events

2024-07-06 17:13:36.650 - skills - ovos_core.intent_services.ocp_service:_execute_query:973 - DEBUG - Returning 2 search results

2024-07-06 17:13:36.652 - skills - ovos_core.intent_services.ocp_service:_search:913 - DEBUG - Got 2 results

2024-07-06 17:13:36.652 - skills - ovos_core.intent_services.ocp_service:filter_results:843 - DEBUG - filtered 0 low confidence results

2024-07-06 17:13:36.653 - skills - ovos_core.intent_services.ocp_service:filter_results:851 - DEBUG - filtered 0 wrong MediaType results

2024-07-06 17:13:36.658 - skills - ovos_core.intent_services.ocp_service:_search:916 - DEBUG - Got 2 usable results

2024-07-06 17:13:36.659 - skills - ovos_core.intent_services.ocp_service:handle_play_intent:573 - DEBUG - Playing 2 results for: radio ton - ostwürttemberg

2024-07-06 17:13:36.660 - skills - ovos_core.intent_services.ocp_service:select_best:1004 - INFO - OVOSCommonPlay selected: skill-ovos-pyradios.femelo - 100

2024-07-06 17:13:36.662 - skills - ovos_core.intent_services.ocp_service:select_best:1005 - DEBUG - MediaEntry(uri='http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', title='Radio Ton - Ostwürttemberg', artist='Radio Ton - Ostwürttemberg', match_confidence=100, skill_id='skill-ovos-pyradios.femelo', playback=2, status=<TrackState.DISAMBIGUATION: 1>, media_type=7, length=0, image='https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', skill_icon='/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', javascript='')

2024-07-06 17:13:36.665 - skills - ovos_core.intent_services.ocp_service:handle_play_intent:580 - DEBUG - OCP Best match: MediaEntry(uri='http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', title='Radio Ton - Ostwürttemberg', artist='Radio Ton - Ostwürttemberg', match_confidence=100, skill_id='skill-ovos-pyradios.femelo', playback=2, status=<TrackState.DISAMBIGUATION: 1>, media_type=7, length=0, image='https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', skill_icon='/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', javascript='')

2024-07-06 17:13:40.155 - skills - ovos_core.intent_services.ocp_service:handle_track_state_update:329 - INFO - Session: default OCP PlayerState: PlayerState.PLAYING

2024-07-06 17:13:59.955 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}

2024-07-06 17:13:59.957 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['höre auf damit', 1.0]], 'lang': 'de-de'}

2024-07-06 17:13:59.958 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['höre auf damit', 1.0]], 'lang': 'de-de'}

2024-07-06 17:13:59.964 - skills - ovos_core.intent_services:get_pipeline:251 - DEBUG - Session pipeline: ['stop_high', 'converse', 'ocp_high', 'padatious_high', 'adapt_high', 'ocp_medium', 'fallback_high', 'stop_medium', 'adapt_medium', 'padatious_medium', 'adapt_low', 'common_qa', 'fallback_medium', 'fallback_low']

2024-07-06 17:14:00.079 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method StopService.match_stop_high of <ovos_core.intent_services.stop_service.StopService object at 0x71bc3cd3ec50>>

2024-07-06 17:14:00.146 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method ConverseService.converse_with_skills of <ovos_core.intent_services.converse_service.ConverseService object at 0x71bc408b1510>>

2024-07-06 17:14:00.460 - skills - padacioso:calc_intent:240 - INFO - No match

2024-07-06 17:14:00.461 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method OCPPipelineMatcher.match_high of <ovos_core.intent_services.ocp_service.OCPPipelineMatcher object at 0x71bc3ffb3fd0>>

2024-07-06 17:14:00.461 - skills - ovos_core.intent_services.padatious_service:_match_level:51 - DEBUG - Padatious Matching confidence > 0.95

2024-07-06 17:14:00.463 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method PadatiousMatcher.match_high of <ovos_core.intent_services.padatious_service.PadatiousMatcher object at 0x71bbf027d710>>

2024-07-06 17:14:00.466 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method AdaptService.match_high of <ovos_core.intent_services.adapt_service.AdaptService object at 0x71bc3ffb4310>>

2024-07-06 17:14:00.470 - skills - ovos_core.intent_services.ocp_service:is_ocp_query:773 - INFO - OVOSCommonPlay prediction: other confidence: 0.961

2024-07-06 17:14:00.471 - skills - ovos_core.intent_services.ocp_service:is_ocp_query:774 - DEBUG -      utterance: höre auf damit

2024-07-06 17:14:00.471 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method OCPPipelineMatcher.match_medium of <ovos_core.intent_services.ocp_service.OCPPipelineMatcher object at 0x71bc3ffb3fd0>>

2024-07-06 17:14:00.472 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method FallbackService.high_prio of <ovos_core.intent_services.fallback_service.FallbackService object at 0x71bc3dec6e90>>

2024-07-06 17:14:00.544 - skills - ovos_core.intent_services:handle_utterance:380 - INFO - stop_medium match: IntentMatch(intent_service='Stop', intent_type=True, intent_data={}, skill_id=None, utterance='höre auf damit')

2024-07-06 17:14:00.545 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.5812027454376221

common_query.openvoiceos stopped: None

ovos.common_play stopped: None

ovos-skill-iss-location.openvoiceos stopped: None

ovos-skill-cmd.forslund stopped: None

skill-ovos-youtube-music.openvoiceos stopped: None

skill-ovos-fallback-hugchat.femelo stopped: None

skill-ovos-youtube.openvoiceos stopped: None

ovos-skill-dictation.openvoiceos stopped: None

skill-ovos-pyradios.femelo stopped: None

skill-ovos-boot-finished.openvoiceos stopped: None

2024-07-06 17:14:00.634 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

skill-openhab stopped: None

skill-ovos-news.openvoiceos stopped: None

2024-07-06 17:14:00.638 - skills - ovos_workshop.skills.mycroft_skill:settings:193 - WARNING - with MycroftSkill self.settings may not respect self.skill_id, path: /home/ovos/.config/mycroft/skills/skill-openhab/settings.json

2024-07-06 17:14:00.794 - skills - ovos_workshop.skills.mycroft_skill:settings:193 - WARNING - with MycroftSkill self.settings may not respect self.skill_id, path: /home/ovos/.config/mycroft/skills/skill-openhab/settings.json

2024-07-06 17:14:10.531 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}

2024-07-06 17:14:10.532 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['Spiele Radio Ton', 1.0]], 'lang': 'de-de'}

2024-07-06 17:14:10.534 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['Spiele Radio Ton', 1.0]], 'lang': 'de-de'}

2024-07-06 17:14:10.534 - skills - ovos_core.intent_services:_handle_transformers:173 - DEBUG - utterances transformed: ['Spiele Radio Ton'] -> ['Spiele Radio Ton - Ostwürttemberg']

2024-07-06 17:14:10.538 - skills - ovos_core.intent_services:get_pipeline:251 - DEBUG - Session pipeline: ['stop_high', 'converse', 'ocp_high', 'padatious_high', 'adapt_high', 'ocp_medium', 'fallback_high', 'stop_medium', 'adapt_medium', 'padatious_medium', 'adapt_low', 'common_qa', 'fallback_medium', 'fallback_low']

2024-07-06 17:14:10.538 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method StopService.match_stop_high of <ovos_core.intent_services.stop_service.StopService object at 0x71bc3cd3ec50>>

2024-07-06 17:14:10.551 - skills - ovos_core.intent_services:handle_utterance:392 - DEBUG - no match from <bound method ConverseService.converse_with_skills of <ovos_core.intent_services.converse_service.ConverseService object at 0x71bc408b1510>>

2024-07-06 17:14:10.846 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'query': 'radio ton - ostwürttemberg'}, 'conf': 0.96, 'name': 'play'}

2024-07-06 17:14:10.847 - skills - ovos_core.intent_services.ocp_service:match_high:366 - INFO - OCP exact match: {'entities': {'query': 'radio ton - ostwürttemberg'}, 'conf': 0.96, 'name': 'play'}

2024-07-06 17:14:10.857 - skills - ovos_core.intent_services.ocp_service:classify_media:746 - INFO - OVOSCommonPlay MediaType prediction: radio confidence: 0.871

2024-07-06 17:14:10.858 - skills - ovos_core.intent_services.ocp_service:classify_media:747 - DEBUG -      utterance: radio ton - ostwürttemberg

2024-07-06 17:14:10.858 - skills - ovos_core.intent_services:handle_utterance:380 - INFO - ocp_high match: IntentMatch(intent_service='OCP_intents', intent_type='ocp:play', intent_data={'media_type': <MediaType.RADIO: 7>, 'query': 'radio ton - ostwürttemberg', 'entities': {'radio_streaming_service': 'radio'}, 'skills': [], 'conf': 0.96, 'media_conf': 0.871, 'lang': 'de-de'}, skill_id='ovos.common_play', utterance='radio ton - ostwürttemberg')

2024-07-06 17:14:10.860 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.32249975204467773

2024-07-06 17:14:10.870 - skills - ovos_workshop.skills.mycroft_skill:settings:193 - WARNING - with MycroftSkill self.settings may not respect self.skill_id, path: /home/ovos/.config/mycroft/skills/skill-openhab/settings.json

2024-07-06 17:14:10.881 - skills - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:14:10.892 - skills - ovos_bus_client.apis.ocp:__init__:876 - DEBUG - Created RADIO query: radio ton - ostwürttemberg

2024-07-06 17:14:16.940 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events

2024-07-06 17:14:16.950 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-pyradios.femelo is searching

2024-07-06 17:14:16.959 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-youtube-music.openvoiceos is searching

2024-07-06 17:14:16.969 - skills - ovos_skill_pyradios:search:94 - DEBUG - Pyradios: found relevant cached items

2024-07-06 17:14:16.983 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-youtube-music.openvoiceos

2024-07-06 17:14:16.989 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-youtube-music.openvoiceos finished search

2024-07-06 17:14:16.990 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-youtube.openvoiceos is searching

2024-07-06 17:14:16.992 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-youtube.openvoiceos

2024-07-06 17:14:16.993 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-youtube.openvoiceos finished search

2024-07-06 17:14:16.994 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-news.openvoiceos is searching

2024-07-06 17:14:16.997 - skills - ovos_skill_pyradios:search:94 - DEBUG - Pyradios: found relevant cached items

2024-07-06 17:14:17.008 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-news.openvoiceos finished search

2024-07-06 17:14:17.009 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-news.openvoiceos

2024-07-06 17:14:17.009 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 1 results from skill-ovos-pyradios.femelo

2024-07-06 17:14:17.009 - skills - ovos_workshop.skills.common_play:__handle_ocp_query:491 - DEBUG - skipping skill-ovos-pyradios.femelo, it does not support media type: 7

2024-07-06 17:14:17.011 - skills - ovos_bus_client.apis.ocp:handle_skill_response:999 - INFO - Receiving very high confidence match, stopping search early

2024-07-06 17:14:17.013 - skills - ovos_bus_client.apis.ocp:handle_skill_response:1007 - DEBUG -   - grace period: 0.5 seconds

2024-07-06 17:14:17.053 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-pyradios.femelo finished search

2024-07-06 17:14:17.514 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 1 results from skill-ovos-pyradios.femelo

2024-07-06 17:14:17.542 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events

2024-07-06 17:14:17.542 - skills - ovos_core.intent_services.ocp_service:_execute_query:973 - DEBUG - Returning 2 search results

2024-07-06 17:14:17.544 - skills - ovos_core.intent_services.ocp_service:_search:913 - DEBUG - Got 2 results

2024-07-06 17:14:17.545 - skills - ovos_core.intent_services.ocp_service:filter_results:843 - DEBUG - filtered 0 low confidence results

2024-07-06 17:14:17.545 - skills - ovos_core.intent_services.ocp_service:filter_results:851 - DEBUG - filtered 0 wrong MediaType results

2024-07-06 17:14:17.546 - skills - ovos_core.intent_services.ocp_service:_search:916 - DEBUG - Got 2 usable results

2024-07-06 17:14:17.547 - skills - ovos_core.intent_services.ocp_service:handle_play_intent:573 - DEBUG - Playing 2 results for: radio ton - ostwürttemberg

2024-07-06 17:14:17.548 - skills - ovos_core.intent_services.ocp_service:select_best:1004 - INFO - OVOSCommonPlay selected: skill-ovos-pyradios.femelo - 100

2024-07-06 17:14:17.548 - skills - ovos_core.intent_services.ocp_service:select_best:1005 - DEBUG - MediaEntry(uri='http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', title='Radio Ton - Ostwürttemberg', artist='Radio Ton - Ostwürttemberg', match_confidence=100, skill_id='skill-ovos-pyradios.femelo', playback=2, status=<TrackState.DISAMBIGUATION: 1>, media_type=7, length=0, image='https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', skill_icon='/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', javascript='')

2024-07-06 17:14:17.554 - skills - ovos_core.intent_services.ocp_service:handle_play_intent:580 - DEBUG - OCP Best match: MediaEntry(uri='http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', title='Radio Ton - Ostwürttemberg', artist='Radio Ton - Ostwürttemberg', match_confidence=100, skill_id='skill-ovos-pyradios.femelo', playback=2, status=<TrackState.DISAMBIGUATION: 1>, media_type=7, length=0, image='https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', skill_icon='/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', javascript='')

Log of audio:

2024-07-06 17:13:29.707 - audio - ovos_audio.audio:_restore_volume_after_record:352 - DEBUG - No audio service to restore volume of

2024-07-06 17:13:29.945 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:29.991 - audio - ovos_audio.service:execute_tts:384 - INFO - Speak: Einen Moment bitte, während ich danach suche

2024-07-06 17:13:29.997 - audio - ovos_plugin_manager.templates.tts:_get_ctxt:559 - DEBUG - TTS kwargs: {'lang': 'de-de', 'voice': 'thorsten-low'}

2024-07-06 17:13:30.002 - audio - ovos_plugin_manager.utils.tts_cache:load_persistent_cache:263 - INFO - Persistent TTS cache files loaded successfully.

2024-07-06 17:13:30.003 - audio - ovos_tts_plugin_server:_fetch_audio_data:86 - DEBUG - Chosen TTS server http://192.168.2.222:8089/v2/synthesize

2024-07-06 17:13:30.028 - audio - ovos_bus_client.session:get:605 - DEBUG - No message, use default session

2024-07-06 17:13:30.524 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:30.777 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:31.138 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:31.542 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:32.104 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:13:36.682 - audio - ovos_plugin_common_play.ocp.player:handle_play_request:761 - DEBUG - Received external OVOS playback request

2024-07-06 17:13:36.689 - audio - ovos_utils.ocp:goto_track:552 - DEBUG - New playlist position: 0

2024-07-06 17:13:36.689 - audio - ovos_plugin_common_play.ocp.player:set_now_playing:250 - DEBUG - Playing: MediaEntry(uri='http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', title='Radio Ton - Ostwürttemberg', artist='Radio Ton - Ostwürttemberg', match_confidence=100, skill_id='skill-ovos-pyradios.femelo', playback=2, status=1, media_type=7, length=0, image='https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', skill_icon='/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', javascript='')

2024-07-06 17:13:36.690 - audio - ovos_plugin_common_play.ocp.media:reset:476 - DEBUG - Resetting NowPlaying

2024-07-06 17:13:36.692 - audio - ovos_utils.ocp:goto_track:552 - DEBUG - New playlist position: 0

2024-07-06 17:13:36.692 - audio - ovos_plugin_common_play.ocp.media:extract_stream:528 - INFO - OCP plugins metadata: {'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}

2024-07-06 17:13:40.111 - audio - ovos_plugin_common_play.ocp.gui:manage_display:217 - DEBUG - manage_display: page_requested: player

2024-07-06 17:13:40.112 - audio - ovos_plugin_common_play.ocp.gui:manage_display:218 - DEBUG - manage_display: player_status: 0

2024-07-06 17:13:40.113 - audio - ovos_plugin_common_play.ocp.gui:_get_pages_to_display:335 - DEBUG - pages to display backend: OVOSSyncPlayer

2024-07-06 17:13:40.121 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None

2024-07-06 17:13:40.126 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None

2024-07-06 17:13:40.127 - audio - ovos_bus_client.apis.gui:_pages2uri:376 - DEBUG - Resolved pages: []

2024-07-06 17:13:40.129 - audio - ovos_bus_client.apis.gui:show_pages:448 - DEBUG - Updating gui data: {'searchModel': {'data': [{'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}]}, 'canResume': True, 'canPause': True, 'canPrev': False, 'canNext': False, 'loopStatus': 'None', 'shuffleStatus': False, 'media': {'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'title': 'Radio Ton - Ostwürttemberg', 'artist': 'Radio Ton - Ostwürttemberg', 'match_confidence': 100, 'skill_id': 'skill-ovos-pyradios.femelo', 'playback': <PlaybackType.AUDIO_SERVICE: 3>, 'status': 1, 'media_type': 7, 'length': 0, 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'skill_icon': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'javascript': '', 'position': 0, 'phrase': None, 'bg_image': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'is_cps': False, 'data': {}, 'cps_data': {}, 'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png'}, 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'title': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'artist': 'Radio Ton - Ostwürttemberg', 'bg_image': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'duration': 0, 'position': 0, 'javascript': '', 'javascriptCanOpenWindows': False, 'allowUrlChange': False, 'playlistModel': {'data': [{'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}]}, 'stream': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'status': 'Stopped', 'app_view_timeout_enabled': False, 'app_view_timeout': 30, 'app_view_timeout_mode': 'all', 'playerBackend': 'OVOSSyncPlayer', 'displaySuggestionBar': True, '__from': 'ovos.common_play'}

2024-07-06 17:13:40.130 - audio - ovos_plugin_common_play.ocp.player:play:405 - DEBUG - Requesting playback: <PlaybackType.AUDIO_SERVICE: 3>

2024-07-06 17:13:40.132 - audio - ovos_plugin_common_play.ocp.player:play:411 - DEBUG - Handling playback via audio_service

2024-07-06 17:13:40.145 - audio - ovos_plugin_common_play.ocp.player:play:462 - DEBUG - self.active_backend=<PlaybackType.AUDIO_SERVICE: 3>

2024-07-06 17:13:40.147 - audio - ovos_audio.audio:_play:438 - DEBUG - vlc would be preferred

2024-07-06 17:13:40.148 - audio - ovos_plugin_manager.templates.audio:load_track:340 - DEBUG - queuing for OVOSVlcService playback: http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA

2024-07-06 17:13:40.149 - audio - ovos_plugin_vlc:play:87 - DEBUG - VLCService Play

2024-07-06 17:13:40.155 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:579 - INFO - TrackState changed: <TrackState.PLAYING_AUDIOSERVICE: 21>

2024-07-06 17:13:40.200 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

2024-07-06 17:13:40.201 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:579 - INFO - TrackState changed: <TrackState.QUEUED_AUDIOSERVICE: 31>

2024-07-06 17:13:40.202 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

2024-07-06 17:13:40.202 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:579 - INFO - TrackState changed: <TrackState.PLAYING_AUDIOSERVICE: 21>

2024-07-06 17:13:40.203 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:733 - DEBUG - MediaState changed: <MediaState.LOADING_MEDIA: 2>

2024-07-06 17:13:40.203 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:733 - DEBUG - MediaState changed: <MediaState.LOADED_MEDIA: 3>

2024-07-06 17:13:41.444 - audio - ovos_plugin_vlc:track_start:60 - DEBUG - VLC playback start

2024-07-06 17:13:41.444 - audio - ovos_audio.audio:track_start:210 - DEBUG - New track coming up!

2024-07-06 17:13:41.459 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

2024-07-06 17:13:56.574 - audio - ovos_audio.audio:_lower_volume:314 - DEBUG - lowering volume

2024-07-06 17:13:56.574 - audio - ovos_plugin_vlc:lower_volume:113 - INFO - vlc is volume currently at 65, lowering to 30

2024-07-06 17:13:56.574 - audio - ovos_plugin_common_play.ocp.player:pause:555 - DEBUG - Pausing playback: 3

2024-07-06 17:13:59.950 - audio - ovos_plugin_common_play.ocp.player:resume:576 - DEBUG - Resuming playback: 3

2024-07-06 17:14:00.009 - audio - ovos_plugin_vlc:track_start:60 - DEBUG - VLC playback start

2024-07-06 17:14:00.009 - audio - ovos_audio.audio:track_start:210 - DEBUG - New track coming up!

2024-07-06 17:14:00.069 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

2024-07-06 17:14:00.082 - audio - ovos_plugin_common_play.ocp.player:stop:612 - DEBUG - clearing playlist

2024-07-06 17:14:00.082 - audio - ovos_plugin_common_play.ocp.player:stop:615 - DEBUG - Stopping playback

2024-07-06 17:14:00.134 - audio - ovos_audio.audio:_stop:296 - DEBUG - stopping all playing services

2024-07-06 17:14:00.140 - audio - ovos_plugin_vlc:stop:94 - INFO - VLCService Stop

2024-07-06 17:14:00.156 - audio - ovos_audio.audio:_stop:303 - INFO - END Stop

2024-07-06 17:14:00.203 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

2024-07-06 17:14:00.206 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:733 - DEBUG - MediaState changed: <MediaState.END_OF_MEDIA: 7>

2024-07-06 17:14:00.207 - audio - ovos_plugin_common_play.ocp.player:handle_playback_ended:755 - INFO - Playback ended

2024-07-06 17:14:00.408 - audio - ovos_plugin_common_play.ocp.gui:manage_display:217 - DEBUG - manage_display: page_requested: playlist

2024-07-06 17:14:00.409 - audio - ovos_plugin_common_play.ocp.gui:manage_display:218 - DEBUG - manage_display: player_status: 0

2024-07-06 17:14:00.410 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None

2024-07-06 17:14:00.417 - audio - ovos_bus_client.apis.gui:_pages2uri:376 - DEBUG - Resolved pages: []

2024-07-06 17:14:00.420 - audio - ovos_bus_client.apis.gui:show_pages:448 - DEBUG - Updating gui data: {'searchModel': {'data': [{'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}]}, 'canResume': True, 'canPause': True, 'canPrev': False, 'canNext': False, 'loopStatus': 'None', 'shuffleStatus': False, 'media': {'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'title': 'Radio Ton - Ostwürttemberg', 'artist': 'Radio Ton - Ostwürttemberg', 'match_confidence': 100, 'skill_id': 'skill-ovos-pyradios.femelo', 'playback': <PlaybackType.AUDIO_SERVICE: 3>, 'status': 1, 'media_type': 7, 'length': 0, 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'skill_icon': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'javascript': '', 'position': 0, 'phrase': None, 'bg_image': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'is_cps': False, 'data': {}, 'cps_data': {}, 'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png'}, 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'title': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'artist': 'Radio Ton - Ostwürttemberg', 'bg_image': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'duration': 0, 'position': 15122, 'javascript': '', 'javascriptCanOpenWindows': False, 'allowUrlChange': False, 'playlistModel': {'data': [{'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}]}, 'stream': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'status': 'Stopped', 'app_view_timeout_enabled': False, 'app_view_timeout': 30, 'app_view_timeout_mode': 'all', 'playerBackend': 'OVOSSyncPlayer', 'displaySuggestionBar': False, 'length': 0, '__from': 'ovos.common_play'}

2024-07-06 17:14:00.531 - audio - ovos_plugin_common_play.ocp.player:stop:612 - DEBUG - clearing playlist

2024-07-06 17:14:00.539 - audio - ovos_plugin_common_play.ocp.player:stop:615 - DEBUG - Stopping playback

ovos.common_play stopped: None

2024-07-06 17:14:00.596 - audio - ovos_plugin_common_play.ocp.player:stop:612 - DEBUG - clearing playlist

2024-07-06 17:14:00.607 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:14:00.608 - audio - ovos_plugin_common_play.ocp.player:stop:615 - DEBUG - Stopping playback

ovos.common_play stopped: None

2024-07-06 17:14:00.611 - audio - ovos_audio.audio:_stop:296 - DEBUG - stopping all playing services

2024-07-06 17:14:00.613 - audio - ovos_audio.audio:_stop:303 - INFO - END Stop

2024-07-06 17:14:00.659 - audio - ovos_plugin_common_play.ocp.player:stop:612 - DEBUG - clearing playlist

2024-07-06 17:14:00.682 - audio - ovos_plugin_common_play.ocp.player:stop:612 - DEBUG - clearing playlist

2024-07-06 17:14:00.685 - audio - ovos_audio.audio:_stop:296 - DEBUG - stopping all playing services

2024-07-06 17:14:00.686 - audio - ovos_audio.audio:_stop:303 - INFO - END Stop

2024-07-06 17:14:00.686 - audio - ovos_plugin_common_play.ocp.player:stop:615 - DEBUG - Stopping playback

2024-07-06 17:14:00.688 - audio - ovos_plugin_common_play.ocp.player:stop:615 - DEBUG - Stopping playback

2024-07-06 17:14:00.703 - audio - ovos_plugin_common_play.ocp.player:stop:612 - DEBUG - clearing playlist

2024-07-06 17:14:00.703 - audio - ovos_plugin_common_play.ocp.player:stop:615 - DEBUG - Stopping playback

2024-07-06 17:14:00.816 - audio - ovos_audio.audio:_stop:296 - DEBUG - stopping all playing services

2024-07-06 17:14:00.817 - audio - ovos_audio.audio:_stop:303 - INFO - END Stop

2024-07-06 17:14:00.827 - audio - ovos_audio.audio:_stop:296 - DEBUG - stopping all playing services

2024-07-06 17:14:00.828 - audio - ovos_audio.audio:_stop:303 - INFO - END Stop

2024-07-06 17:14:00.842 - audio - ovos_audio.audio:_stop:296 - DEBUG - stopping all playing services

2024-07-06 17:14:00.848 - audio - ovos_audio.audio:_stop:303 - INFO - END Stop

2024-07-06 17:14:10.525 - audio - ovos_audio.audio:_restore_volume_after_record:352 - DEBUG - No audio service to restore volume of

2024-07-06 17:14:10.923 - audio - ovos_audio.service:execute_tts:384 - INFO - Speak: Augenblick

2024-07-06 17:14:10.925 - audio - ovos_bus_client.client.client:on_default_session_update:166 - DEBUG - synced default_session

2024-07-06 17:14:10.925 - audio - ovos_plugin_manager.templates.tts:_get_ctxt:559 - DEBUG - TTS kwargs: {'lang': 'de-de', 'voice': 'thorsten-low'}

2024-07-06 17:14:10.929 - audio - ovos_tts_plugin_server:_fetch_audio_data:86 - DEBUG - Chosen TTS server http://192.168.2.222:8089/v2/synthesize

2024-07-06 17:14:10.944 - audio - ovos_bus_client.session:get:605 - DEBUG - No message, use default session

2024-07-06 17:14:17.565 - audio - ovos_plugin_common_play.ocp.player:handle_play_request:761 - DEBUG - Received external OVOS playback request

2024-07-06 17:14:17.567 - audio - ovos_utils.ocp:goto_track:552 - DEBUG - New playlist position: 0

2024-07-06 17:14:17.576 - audio - ovos_plugin_common_play.ocp.player:set_now_playing:250 - DEBUG - Playing: MediaEntry(uri='http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', title='Radio Ton - Ostwürttemberg', artist='Radio Ton - Ostwürttemberg', match_confidence=100, skill_id='skill-ovos-pyradios.femelo', playback=2, status=1, media_type=7, length=0, image='https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', skill_icon='/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', javascript='')

2024-07-06 17:14:17.577 - audio - ovos_plugin_common_play.ocp.media:reset:476 - DEBUG - Resetting NowPlaying

2024-07-06 17:14:17.579 - audio - ovos_utils.ocp:goto_track:552 - DEBUG - New playlist position: 0

2024-07-06 17:14:17.587 - audio - ovos_plugin_common_play.ocp.media:extract_stream:528 - INFO - OCP plugins metadata: {'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}

2024-07-06 17:14:21.010 - audio - ovos_plugin_common_play.ocp.gui:manage_display:217 - DEBUG - manage_display: page_requested: player

2024-07-06 17:14:21.011 - audio - ovos_plugin_common_play.ocp.gui:manage_display:218 - DEBUG - manage_display: player_status: 0

2024-07-06 17:14:21.012 - audio - ovos_plugin_common_play.ocp.gui:_get_pages_to_display:335 - DEBUG - pages to display backend: OVOSSyncPlayer

2024-07-06 17:14:21.014 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None

2024-07-06 17:14:21.030 - audio - ovos_bus_client.apis.gui:_pages2uri:375 - DEBUG - Requested page not resolved to a file: None

2024-07-06 17:14:21.033 - audio - ovos_bus_client.apis.gui:_pages2uri:376 - DEBUG - Resolved pages: []

2024-07-06 17:14:21.034 - audio - ovos_bus_client.apis.gui:show_pages:448 - DEBUG - Updating gui data: {'searchModel': {'data': [{'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}]}, 'canResume': True, 'canPause': True, 'canPrev': False, 'canNext': False, 'loopStatus': 'None', 'shuffleStatus': False, 'media': {'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'title': 'Radio Ton - Ostwürttemberg', 'artist': 'Radio Ton - Ostwürttemberg', 'match_confidence': 100, 'skill_id': 'skill-ovos-pyradios.femelo', 'playback': <PlaybackType.AUDIO_SERVICE: 3>, 'status': 1, 'media_type': 7, 'length': 0, 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'skill_icon': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'javascript': '', 'position': 0, 'phrase': None, 'bg_image': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'is_cps': False, 'data': {}, 'cps_data': {}, 'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png'}, 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'title': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'artist': 'Radio Ton - Ostwürttemberg', 'bg_image': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_common_play/ocp/res/ui/images/ocp_bg.png', 'duration': 0, 'position': 0, 'javascript': '', 'javascriptCanOpenWindows': False, 'allowUrlChange': False, 'playlistModel': {'data': [{'duration': 0, 'track': 'Radio Ton - Ostwürttemberg', 'image': 'https://www.radioton.de/storage/thumbs/192x192/r:1693564697/95010.png', 'album': 'skill-ovos-pyradios.femelo', 'source': '/home/ovos/.venv/lib/python3.11/site-packages/ovos_skill_pyradios/res/radio-tuner-small.png', 'uri': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA'}]}, 'stream': 'http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA', 'status': 'Stopped', 'app_view_timeout_enabled': False, 'app_view_timeout': 30, 'app_view_timeout_mode': 'all', 'playerBackend': 'OVOSSyncPlayer', 'displaySuggestionBar': True, 'length': 0, '__from': 'ovos.common_play'}

2024-07-06 17:14:21.034 - audio - ovos_plugin_common_play.ocp.player:play:405 - DEBUG - Requesting playback: <PlaybackType.AUDIO_SERVICE: 3>

2024-07-06 17:14:21.035 - audio - ovos_plugin_common_play.ocp.player:play:411 - DEBUG - Handling playback via audio_service

2024-07-06 17:14:21.043 - audio - ovos_plugin_common_play.ocp.player:play:462 - DEBUG - self.active_backend=<PlaybackType.AUDIO_SERVICE: 3>

2024-07-06 17:14:21.059 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:579 - INFO - TrackState changed: <TrackState.PLAYING_AUDIOSERVICE: 21>

2024-07-06 17:14:21.059 - audio - ovos_audio.audio:_play:438 - DEBUG - vlc would be preferred

2024-07-06 17:14:21.063 - audio - ovos_plugin_manager.templates.audio:load_track:340 - DEBUG - queuing for OVOSVlcService playback: http://radioton-stream29.radiohost.de/radioton-owb_mp3-192?_art=dD0xNzE4Nzk0NzI3JmQ9M2EwMjM1YzA5MGI0MTNmMzRkYzA

2024-07-06 17:14:21.063 - audio - ovos_plugin_vlc:play:87 - DEBUG - VLCService Play

2024-07-06 17:14:21.122 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

2024-07-06 17:14:21.126 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:579 - INFO - TrackState changed: <TrackState.QUEUED_AUDIOSERVICE: 31>

2024-07-06 17:14:21.127 - audio - ovos_plugin_common_play.ocp.media:handle_track_state_change:579 - INFO - TrackState changed: <TrackState.PLAYING_AUDIOSERVICE: 21>

2024-07-06 17:14:21.127 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:733 - DEBUG - MediaState changed: <MediaState.LOADING_MEDIA: 2>

2024-07-06 17:14:21.130 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

2024-07-06 17:14:21.131 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:733 - DEBUG - MediaState changed: <MediaState.LOADED_MEDIA: 3>

2024-07-06 17:14:22.019 - audio - ovos_plugin_vlc:track_start:60 - DEBUG - VLC playback start

2024-07-06 17:14:22.019 - audio - ovos_audio.audio:track_start:210 - DEBUG - New track coming up!

2024-07-06 17:14:22.075 - audio - ovos_plugin_common_play.ocp.player:handle_player_media_update:721 - DEBUG - backend=<PlaybackType.AUDIO_SERVICE: 3>|msg_type=ovos.common_play.media.state

Add some TTS to the requirements.txt?

It could be nice to add the default TTS to the requirements.txt, in my example I'm using Mimic2 as default TTS and Mimic as fallback which is pretty standard.

  "tts": {
    "pulse_duck": true,
    "module": "ovos-tts-plugin-mimic2",
    "fallback_module": "ovos-tts-plugin-mimic"
  }

I would understand if you prefer stay neutral from a requirements.txt perspective.

Support for Windows

ovos_audio.service

class PlaybackService(Thread):
...
    @staticmethod
    def _resolve_sound_uri(uri: str):
        """ helper to resolve sound files full path"""
        if uri is None:
            return None
        if uri.startswith("snd/") or uri.startswith("snd\\"):
            local_uri = os.path.join(os.path.dirname(__file__), "res", uri)
            if os.path.isfile(local_uri):
                return local_uri
        audio_file = resolve_resource_file(uri)
        if audio_file is None or not exists(audio_file):
            raise FileNotFoundError(f"{audio_file} does not exist")
        return audio_file

Need to support snd\\ as an option in the URI in order for the path to construct properly. Another option is to not doing a string construction at all and to instead use path objects.

More to come, possibly...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.