OpenVoiceOS / skill-ovos-setup

OpenVoiceOS Setup Skill - configure your device and optionally connect it to a backend server
https://mycroft.ai/skills
Apache License 2.0
1 stars 5 forks source link

Initial testing on feat/voice_pairing branch #20

Closed builderjer closed 1 year ago

builderjer commented 1 year ago

Initial thoughts and tests. On boot, pairing comes up with 3 choices and audio sounds good. My choice "Run locally" Once again the voice sounds good with the validation First bug*

I am assuming that it is not writing the file correctly? But it does add the server section at the end.

cat .config/mycroft/mycroft.conf 
{
  "tts": {
    "module": "ovos-tts-plugin-marytts",
    "neon-tts-plugin-larynx-server": {
      "host": "http://tts.neon.ai",
      "voice": "mary_ann",
      "vocoder": "hifi_gan/vctk_small"
    },
    "ovos-tts-plugin-marytts": {
      "url": "http://ziggy.ziggyhome:59125",
      "voice": "en_US/vctk_low#s5"
    }
  },
  "system_unit": "imperial",
  "location": {
    "city": {
      "code": "Orchard City",
      "name": "Hotchkiss",
      "state": {
        "code": "CO",
        "name": "Colorado",
        "country": {
          "code": "US",
          "name": "United States"
        }
      }
    },
    "coordinate": {
      "latitude": 38.8455879,
      "longitude": -107.7932359
    },
    "timezone": {
      "code": "America/Denver",
      "name": "Moutain Standard Time",
      "dstOffset": 3600000,
      "offset": -21600000
    }
  },
  "opt_in": true,
  "Audio": {
    "backends": {
      "OCP": {
        "type": "ovos_common_play",
        "dbus_type": "system",
        "manage_external_players": true,
        "active": true,
        "youtube_backend": "youtube-dl",
        "ydl_backend": "auto"
      },
      "vlc": {
        "type": "ovos_vlc",
        "active": true
      },
      "simple": {
        "type": "ovos_audio_simple",
        "active": true
      }
    },
    "default-backend": "OCP"
  },
  "gui": {
    "extension": "smartspeaker",
    "idle_display_skill": "skill-ovos-homescreen.builderjer"
  },
  "date_format": "MDY-us",
  "VAD": {
    "silence_method": "vad_and_ratio",
    "speech_seconds": 0.1,
    "silence_seconds": 0.5,
    "before_seconds": 0.5,
    "min_seconds": 1,
    "max_current_ratio_threshold": 2,
    "initial_energy_threshold": 1000.0,
    "module": "ovos-vad-plugin-webrtcvad",
    "ovos-vad-plugin-silero": {
      "threshold": 0.2
    },
    "ovos-vad-plugin-webrtcvad": {
      "vad_mode": 3
    }
  },
  "padatious": {
    "intent_cache": "~/.local/share/mycroft/intent_cache",
    "train_delay": 4,
    "single_thread": false,
    "regex_only": false,
    "fuzz": true
  },
  "server": {
    "disabled": true
  }
builderjer commented 1 year ago

This is using only voice

builderjer commented 1 year ago

Same thing when trying to pair with mycroft but with this error

2022-09-18 15:31:05.397 - OVOS - ovos_workshop.skills.ovos:_on_event_error:220 - ERROR - 'PairingManager' object has no attribute 'set_api_url'
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/home/mycroft/.local/share/mycroft/skills/skill-ovos-setup.openvoiceos/__init__.py", line 528, in handle_backend_confirmation_event
    self.handle_selene_selected(message)
  File "/home/mycroft/.local/share/mycroft/skills/skill-ovos-setup.openvoiceos/__init__.py", line 534, in handle_selene_selected
    self.pairing.set_api_url("api.mycroft.ai")
AttributeError: 'PairingManager' object has no attribute 'set_api_url'
builderjer commented 1 year ago

I think it is not writing it identity2.json file correct.

cat ~/.config/mycroft/identity/identity2.json
{"uuid":

nothing after the uuid

builderjer commented 1 year ago

Updated to latest everything, setup, backend, selene-api and now have this error.

2022-09-18 21:11:20.106 - OVOS - ovos_config.config:_on_file_change:269 - INFO - /home/mycroft/.config/mycroft/mycroft.conf changed on disk, reloading!
2022-09-18 21:11:20.165 - OVOS - mycroft.identity:_update:95 - DEBUG - Updaing identity
2022-09-18 21:11:20.208 - OVOS - ovos_config.models:load_local:134 - DEBUG - Configuration /home/mycroft/.config/mycroft/mycroft.conf loaded
2022-09-18 21:11:20.606 - OVOS - ovos_workshop.skills.ovos:_on_event_error:220 - ERROR - Object of type UUID is not JSON serializable
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/home/mycroft/.local/share/mycroft/skills/skill-ovos-setup.openvoiceos/__init__.py", line 541, in handle_backend_confirmation_event
    self.handle_no_backend_selected(message)
  File "/home/mycroft/.local/share/mycroft/skills/skill-ovos-setup.openvoiceos/__init__.py", line 571, in handle_no_backend_selected
    self.setup.change_to_no_backend()
  File "/home/mycroft/.local/share/mycroft/skills/skill-ovos-setup.openvoiceos/__init__.py", line 173, in change_to_no_backend
    self.create_dummy_identity()
  File "/home/mycroft/.local/share/mycroft/skills/skill-ovos-setup.openvoiceos/__init__.py", line 183, in create_dummy_identity
    IdentityManager.save(login)
  File "/usr/lib/python3.10/site-packages/mycroft/identity/__init__.py", line 86, in save
    json.dump(IdentityManager.__identity.__dict__, f)
  File "/usr/lib/python3.10/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/usr/lib/python3.10/json/encoder.py", line 431, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.10/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.10/json/encoder.py", line 438, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.10/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type UUID is not JSON serializable
JarbasAl commented 1 year ago

closing as voice pairing is no longer available / needed