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

add site_id #35

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hivemind_voice_satellite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
@click.option("--password", help="Password for key derivation", type=str)
@click.option("--port", help="HiveMind port number", type=int, default=5678)
@click.option("--selfsigned", help="accept self signed certificates", is_flag=True)
def connect(host, key, password, port, selfsigned):
@click.option("--siteid", help="location identifier for message.context", type=str, default="unknown")
def connect(host, key, password, port, selfsigned, siteid):
init_service_logger("HiveMind-voice-sat")

if not host.startswith("ws"):
Expand All @@ -27,7 +28,7 @@ def connect(host, key, password, port, selfsigned):
host=host,
useragent="VoiceSatelliteV0.3.0",
self_signed=selfsigned)
bus.connect()
bus.connect(site_id=siteid)

# create Audio Output interface (TTS/Music)
audio = PlaybackService(bus=bus, disable_ocp=True, validate_source=False)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hivemind_bus_client>=0.0.3a2
hivemind_bus_client>=0.0.4a8
ovos-audio
ovos-dinkum-listener>=0.0.2, < 0.1.0
ovos-vad-plugin-webrtcvad
Expand Down
Loading