Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/no_media_skills #517

Merged
merged 5 commits into from
Jun 30, 2024
Merged

fix/no_media_skills #517

merged 5 commits into from
Jun 30, 2024

Conversation

JarbasAl
Copy link
Member

do not search OCP when no OCP skills are installed

based on chat feedback

do not search OCP when no OCP skills are installed
@JarbasAl JarbasAl added the bug Something isn't working label Jun 26, 2024
@JarbasAl JarbasAl requested review from goldyfruit, mikejgray, NeonDaniel and a team June 26, 2024 15:26
@j1nx
Copy link
Member

j1nx commented Jun 26, 2024

Really like this small making it better type of things. Nice catch!

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

Attention: Patch coverage is 61.53846% with 10 lines in your changes missing coverage. Please review.

Project coverage is 75.57%. Comparing base (5b6cb2f) to head (e019156).
Report is 1 commits behind head on dev.

Files Patch % Lines
ovos_core/intent_services/ocp_service.py 61.53% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #517      +/-   ##
==========================================
- Coverage   75.99%   75.57%   -0.42%     
==========================================
  Files          15       15              
  Lines        3020     3042      +22     
==========================================
+ Hits         2295     2299       +4     
- Misses        725      743      +18     
Flag Coverage Δ
unittests 75.57% <61.53%> (-0.42%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@goldyfruit
Copy link
Member

Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.229 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.231 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['what are you', 0.98167485]], 'lang': 'en-us'}
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.237 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['what are you', 0.98167485]], 'lang': 'en-us'}
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.247 - 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']
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.250 - 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 0x7f94f6c5d0>>
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.258 - 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 0x7f94e8d810>>
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.672 - skills - padacioso:calc_intent:240 - INFO - No match
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.674 - 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 0x7f9915b850>>
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.675 - skills - ovos_core.intent_services.padatious_service:_match_level:51 - DEBUG - Padatious Matching confidence > 0.95
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.681 - skills - ovos_core.intent_services:handle_utterance:380 - INFO - padatious_high match: IntentMatch(intent_service='Padatious', intent_type='ovos-skill-personal.OpenVoiceOS:WhatAreYou.intent', intent_data={}, skill_id='ovos-skill-personal.OpenVoiceOS', utterance='what are you')
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.710 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.43813443183898926
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.729 - skills - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session

LGTM

@JarbasAl
Copy link
Member Author

Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.229 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.231 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['what are you', 0.98167485]], 'lang': 'en-us'}
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.237 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['what are you', 0.98167485]], 'lang': 'en-us'}
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.247 - 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']
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.250 - 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 0x7f94f6c5d0>>
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.258 - 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 0x7f94e8d810>>
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.672 - skills - padacioso:calc_intent:240 - INFO - No match
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.674 - 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 0x7f9915b850>>
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.675 - skills - ovos_core.intent_services.padatious_service:_match_level:51 - DEBUG - Padatious Matching confidence > 0.95
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.681 - skills - ovos_core.intent_services:handle_utterance:380 - INFO - padatious_high match: IntentMatch(intent_service='Padatious', intent_type='ovos-skill-personal.OpenVoiceOS:WhatAreYou.intent', intent_data={}, skill_id='ovos-skill-personal.OpenVoiceOS', utterance='what are you')
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.710 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.43813443183898926
Jun 26 17:37:50 mark2 ovos-core[950]: 2024-06-26 17:37:50.729 - skills - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session

LGTM

to test this you would need to ask "play XXXX" with no OCP skills installed, in your logs seems you asked "what are you" so it isnt checking this code path

@goldyfruit
Copy link
Member

goldyfruit commented Jun 26, 2024

With media skill:

Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.319 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.321 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.74739248]], 'lang': 'en-us'}
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.325 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.74739248]], 'lang': 'en-us'}
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.337 - 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']
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.339 - 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 0x7f94f6c5d0>>
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.359 - 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 0x7f94e8d810>>
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.855 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.858 - skills - ovos_core.intent_services.ocp_service:match_high:355 - INFO - OCP exact match: {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.993 - skills - ovos_core.intent_services.ocp_service:classify_media:731 - INFO - OVOSCommonPlay MediaType prediction: radio confidence: 0.42
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.995 - skills - ovos_core.intent_services.ocp_service:classify_media:732 - DEBUG -      utterance: soul radio
Jun 26 19:01:36 mark2 ovos-core[950]: 2024-06-26 19:01:36.996 - 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': 'soul radio', 'entities': {}, 'skills': [], 'conf': 0.96, 'media_conf': 0.42, 'lang': 'en-us'}, skill_id='ovos.common_play', utterance='soul radio')
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.001 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.6646392345428467
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.051 - skills - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.096 - skills - ovos_bus_client.apis.ocp:__init__:876 - DEBUG - Created RADIO query: soul radio
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.219 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.232 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-local-media.openvoiceos is searching
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.240 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-local-media.openvoiceos
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.243 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-local-media.openvoiceos finished search
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.745 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1029 - INFO - Received search responses from all skills!
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.824 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.825 - skills - ovos_core.intent_services.ocp_service:_execute_query:941 - DEBUG - OVOSCommonPlay falling back to MediaType.GENERIC
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.868 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.896 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-news.openvoiceos is searching
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.899 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-local-media.openvoiceos is searching
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.906 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-local-media.openvoiceos
Jun 26 19:01:37 mark2 ovos-core[950]: 2024-06-26 19:01:37.907 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-local-media.openvoiceos finished search
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.059 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-news.openvoiceos
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.064 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-news.openvoiceos finished search
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.409 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1029 - INFO - Received search responses from all skills!
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.471 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.473 - skills - ovos_core.intent_services.ocp_service:_execute_query:948 - DEBUG - Returning 0 search results
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.474 - skills - ovos_core.intent_services.ocp_service:_search:898 - DEBUG - Got 0 results
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.475 - skills - ovos_core.intent_services.ocp_service:filter_results:828 - DEBUG - filtered 0 low confidence results
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.476 - skills - ovos_core.intent_services.ocp_service:filter_results:836 - DEBUG - filtered 0 wrong MediaType results
Jun 26 19:01:38 mark2 ovos-core[950]: 2024-06-26 19:01:38.479 - skills - ovos_core.intent_services.ocp_service:_search:901 - DEBUG - Got 0 usable results

@goldyfruit
Copy link
Member

With no media skill:

Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.768 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.781 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.83666778]], 'lang': 'en-us'}
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.785 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.83666778]], 'lang': 'en-us'}
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.797 - 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']
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.799 - 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 0x7f6c37be10>>
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.817 - 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 0x7f6c2b4950>>
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.276 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.277 - skills - ovos_core.intent_services.ocp_service:match_high:355 - INFO - OCP exact match: {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.396 - skills - ovos_core.intent_services.ocp_service:classify_media:731 - INFO - OVOSCommonPlay MediaType prediction: radio confidence: 0.42
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.397 - skills - ovos_core.intent_services.ocp_service:classify_media:732 - DEBUG -      utterance: soul radio
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.399 - 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': 'soul radio', 'entities': {}, 'skills': [], 'conf': 0.96, 'media_conf': 0.42, 'lang': 'en-us'}, skill_id='ovos.common_play', utterance='soul radio')
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.405 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.60793137550354
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.453 - skills - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.502 - skills - ovos_bus_client.apis.ocp:__init__:876 - DEBUG - Created RADIO query: soul radio
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.607 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.624 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.626 - skills - ovos_core.intent_services.ocp_service:_execute_query:941 - DEBUG - OVOSCommonPlay falling back to MediaType.GENERIC
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.669 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.687 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-news.openvoiceos is searching
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.904 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-news.openvoiceos
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.905 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-news.openvoiceos finished search
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.407 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1029 - INFO - Received search responses from all skills!
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.473 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.475 - skills - ovos_core.intent_services.ocp_service:_execute_query:948 - DEBUG - Returning 0 search results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.477 - skills - ovos_core.intent_services.ocp_service:_search:898 - DEBUG - Got 0 results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.479 - skills - ovos_core.intent_services.ocp_service:filter_results:828 - DEBUG - filtered 0 low confidence results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.481 - skills - ovos_core.intent_services.ocp_service:filter_results:836 - DEBUG - filtered 0 wrong MediaType results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.505 - skills - ovos_core.intent_services.ocp_service:_search:901 - DEBUG - Got 0 usable results

@JarbasAl
Copy link
Member Author

this has news skill installed

DEBUG - skill-ovos-news.openvoiceos is searching

With no media skill:

DEBUG - skill-ovos-news.openvoiceos is searching

@goldyfruit
Copy link
Member

Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.277 - skills - ovos_core.intent_services.ocp_service:match_high:355 - INFO - OCP exact match: {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}

Erf, is there a way to identify the "media" skills?

Jun 26 20:18:50 mark2 ovos-core[3992]: 2024-06-26 20:18:50.758 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 26 20:18:50 mark2 ovos-core[3992]: 2024-06-26 20:18:50.759 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['Play song radio', 0.78508979]], 'lang': 'en-us'}
Jun 26 20:18:50 mark2 ovos-core[3992]: 2024-06-26 20:18:50.764 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['Play song radio', 0.78508979]], 'lang': 'en-us'}
Jun 26 20:18:50 mark2 ovos-core[3992]: 2024-06-26 20:18:50.775 - 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']
Jun 26 20:18:50 mark2 ovos-core[3992]: 2024-06-26 20:18:50.777 - 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 0x7f8823c110>>
Jun 26 20:18:50 mark2 ovos-core[3992]: 2024-06-26 20:18:50.786 - 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 0x7f88165090>>
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.220 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'query': 'song radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.222 - skills - ovos_core.intent_services.ocp_service:match_high:355 - INFO - OCP exact match: {'entities': {'query': 'song radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.283 - skills - ovos_core.intent_services.ocp_service:handle_m:799 - INFO - Session: default Available stream extractor plugins: []
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.409 - skills - ovos_core.intent_services.ocp_service:classify_media:731 - INFO - OVOSCommonPlay MediaType prediction: radio confidence: 0.496
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.411 - skills - ovos_core.intent_services.ocp_service:classify_media:732 - DEBUG -      utterance: song radio
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.422 - 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': 'song radio', 'entities': {}, 'skills': [], 'conf': 0.96, 'media_conf': 0.496, 'lang': 'en-us'}, skill_id='ovos.common_play', utterance='song radio')
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.433 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.6510732173919678
Jun 26 20:18:51 mark2 ovos-core[3992]: 2024-06-26 20:18:51.494 - skills - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session

@goldyfruit
Copy link
Member

With no media skill:

Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.768 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.781 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.83666778]], 'lang': 'en-us'}
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.785 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.83666778]], 'lang': 'en-us'}
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.797 - 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']
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.799 - 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 0x7f6c37be10>>
Jun 26 19:04:40 mark2 ovos-core[2593]: 2024-06-26 19:04:40.817 - 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 0x7f6c2b4950>>
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.276 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.277 - skills - ovos_core.intent_services.ocp_service:match_high:355 - INFO - OCP exact match: {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.396 - skills - ovos_core.intent_services.ocp_service:classify_media:731 - INFO - OVOSCommonPlay MediaType prediction: radio confidence: 0.42
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.397 - skills - ovos_core.intent_services.ocp_service:classify_media:732 - DEBUG -      utterance: soul radio
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.399 - 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': 'soul radio', 'entities': {}, 'skills': [], 'conf': 0.96, 'media_conf': 0.42, 'lang': 'en-us'}, skill_id='ovos.common_play', utterance='soul radio')
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.405 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.60793137550354
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.453 - skills - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.502 - skills - ovos_bus_client.apis.ocp:__init__:876 - DEBUG - Created RADIO query: soul radio
Jun 26 19:04:41 mark2 ovos-core[2593]: 2024-06-26 19:04:41.607 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.624 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.626 - skills - ovos_core.intent_services.ocp_service:_execute_query:941 - DEBUG - OVOSCommonPlay falling back to MediaType.GENERIC
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.669 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.687 - skills - ovos_bus_client.apis.ocp:handle_skill_search_start:948 - DEBUG - skill-ovos-news.openvoiceos is searching
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.904 - skills - ovos_bus_client.apis.ocp:handle_skill_response:982 - DEBUG - got 0 results from skill-ovos-news.openvoiceos
Jun 26 19:04:56 mark2 ovos-core[2593]: 2024-06-26 19:04:56.905 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1015 - DEBUG - skill-ovos-news.openvoiceos finished search
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.407 - skills - ovos_bus_client.apis.ocp:handle_skill_search_end:1029 - INFO - Received search responses from all skills!
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.473 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.475 - skills - ovos_core.intent_services.ocp_service:_execute_query:948 - DEBUG - Returning 0 search results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.477 - skills - ovos_core.intent_services.ocp_service:_search:898 - DEBUG - Got 0 results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.479 - skills - ovos_core.intent_services.ocp_service:filter_results:828 - DEBUG - filtered 0 low confidence results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.481 - skills - ovos_core.intent_services.ocp_service:filter_results:836 - DEBUG - filtered 0 wrong MediaType results
Jun 26 19:04:57 mark2 ovos-core[2593]: 2024-06-26 19:04:57.505 - skills - ovos_core.intent_services.ocp_service:_search:901 - DEBUG - Got 0 usable results

15 seconds is pretty long, any way to reduce this?

@JarbasAl
Copy link
Member Author

Erf, is there a way to identify the "media" skills?

any OCP skill, if it's supposed to handle "play" queries it's a media skill

15 seconds is pretty long, any way to reduce this?

try now (but also try without news skill as that was the original fix in this PR)

@goldyfruit
Copy link
Member

15 seconds is pretty long, any way to reduce this?

try now (but also try without news skill as that was the original fix in this PR)

I re-installed the news skill and still takes 15 seconds when it can't play what is required.

Jun 26 21:29:14 mark2 ovos-core[5319]: 2024-06-26 21:29:14.681 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-cancel: {}
Jun 26 21:29:14 mark2 ovos-core[5319]: 2024-06-26 21:29:14.682 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-corrections: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.76973373]], 'lang': 'en-us'}
Jun 26 21:29:14 mark2 ovos-core[5319]: 2024-06-26 21:29:14.687 - skills - ovos_core.transformers:transform:64 - DEBUG - ovos-utterance-normalizer: {'client_name': 'ovos_dinkum_listener', 'source': 'audio', 'destination': ['skills'], 'transcriptions': [['play Soul Radio', 0.76973373]], 'lang': 'en-us'}
Jun 26 21:29:14 mark2 ovos-core[5319]: 2024-06-26 21:29:14.701 - 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']
Jun 26 21:29:14 mark2 ovos-core[5319]: 2024-06-26 21:29:14.704 - 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 0x7f90bef790>>
Jun 26 21:29:14 mark2 ovos-core[5319]: 2024-06-26 21:29:14.723 - 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 0x7f90b09d50>>
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.211 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.213 - skills - ovos_core.intent_services.ocp_service:match_high:366 - INFO - OCP exact match: {'entities': {'query': 'soul radio'}, 'conf': 0.96, 'name': 'play'}
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.329 - skills - ovos_core.intent_services.ocp_service:classify_media:746 - INFO - OVOSCommonPlay MediaType prediction: radio confidence: 0.42
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.330 - skills - ovos_core.intent_services.ocp_service:classify_media:747 - DEBUG -      utterance: soul radio
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.332 - 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': 'soul radio', 'entities': {}, 'skills': [], 'conf': 0.96, 'media_conf': 0.42, 'lang': 'en-us'}, skill_id='ovos.common_play', utterance='soul radio')
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.339 - skills - ovos_core.intent_services:handle_utterance:398 - DEBUG - intent matching took: 0.639406681060791
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.392 - skills - ovos_bus_client.client.client:on_default_session_update:161 - DEBUG - synced default_session
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.444 - skills - ovos_bus_client.apis.ocp:__init__:876 - DEBUG - Created RADIO query: soul radio
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.495 - skills - ovos_core.intent_services.ocp_service:_execute_query:948 - INFO - No skills available to handle 7 queries, forcing MediaType.GENERIC
Jun 26 21:29:15 mark2 ovos-core[5319]: 2024-06-26 21:29:15.541 - skills - ovos_bus_client.apis.ocp:register_events:935 - DEBUG - Registering Search Bus Events
Jun 26 21:29:20 mark2 ovos-core[5319]: 2024-06-26 21:29:20.311 - skills - ovos_bus_client.util.scheduler:check_state:186 - DEBUG - Call scheduled event: skill-ovos-homescreen.openvoiceos:skill-ovos-homescreen.openvoiceosupdate_dt
Jun 26 21:29:30 mark2 ovos-core[5319]: 2024-06-26 21:29:30.317 - skills - ovos_bus_client.util.scheduler:check_state:186 - DEBUG - Call scheduled event: skill-ovos-homescreen.openvoiceos:skill-ovos-homescreen.openvoiceosupdate_dt
Jun 26 21:29:30 mark2 ovos-core[5319]: 2024-06-26 21:29:30.561 - skills - ovos_bus_client.apis.ocp:remove_events:941 - DEBUG - Removing Search Bus Events
Jun 26 21:29:30 mark2 ovos-core[5319]: 2024-06-26 21:29:30.563 - skills - ovos_core.intent_services.ocp_service:_execute_query:973 - DEBUG - Returning 0 search results
Jun 26 21:29:30 mark2 ovos-core[5319]: 2024-06-26 21:29:30.565 - skills - ovos_core.intent_services.ocp_service:_search:913 - DEBUG - Got 0 results
Jun 26 21:29:30 mark2 ovos-core[5319]: 2024-06-26 21:29:30.567 - skills - ovos_core.intent_services.ocp_service:filter_results:843 - DEBUG - filtered 0 low confidence results
Jun 26 21:29:30 mark2 ovos-core[5319]: 2024-06-26 21:29:30.569 - skills - ovos_core.intent_services.ocp_service:filter_results:851 - DEBUG - filtered 0 wrong MediaType results
Jun 26 21:29:30 mark2 ovos-core[5319]: 2024-06-26 21:29:30.587 - skills - ovos_core.intent_services.ocp_service:_search:916 - DEBUG - Got 0 usable results

@JarbasAl
Copy link
Member Author

JarbasAl commented Jun 27, 2024

asking for a search before this PR could take up to 30+ seconds (media type search + generic search)

i didnt see any logs without any OCP skill yet, those should speak the new dialog and take < 1 second

asking for a media type without skills for that media type (eg, ask radio with only news installed) with this PR can take up to 15 seconds, but not the 30+ it originally could

further reducing those 15 seconds will need a PR in ovos-workshop, but that max timeout value can also be set in config

JarbasAl added a commit to OpenVoiceOS/OVOS-workshop that referenced this pull request Jun 29, 2024
inform ovos-core this skill ignored a media type query, otherwise the OCPQuery will block for 15 seconds waiting for an answer that never comes

companion to OpenVoiceOS/ovos-core#517
JarbasAl added a commit to OpenVoiceOS/OVOS-workshop that referenced this pull request Jun 29, 2024
inform ovos-core this skill ignored a media type query, otherwise the OCPQuery will block for 15 seconds waiting for an answer that never comes

companion to OpenVoiceOS/ovos-core#517
@mikejgray
Copy link

Tested on Mac and it works as expected, especially with the ovos-workshop PR mentioned. Once tests are passing I'm happy to approve the PR

@JarbasAl JarbasAl merged commit df2084e into dev Jun 30, 2024
7 of 8 checks passed
@JarbasAl JarbasAl deleted the fix/no_media_skills branch June 30, 2024 20:09
@JarbasAl JarbasAl added this to the 0.0.8 milestone Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants