diff --git a/morse.py b/morse.py index 5a3e956..3e010ea 100644 --- a/morse.py +++ b/morse.py @@ -181,7 +181,7 @@ def main(): "ffmpeg", "-loglevel", "error", "-re", "-f", "s16le", "-ar", str(rate), "-ac", "1", "-i", tmp.name, - "-acodec", "libopus", "-b:a", "64k", + "-acodec", "libopus", "-b:a", "96k", "-f", "rtp", session["url"], ], ) diff --git a/play_speaker.py b/play_speaker.py index c5e4279..6bc239d 100644 --- a/play_speaker.py +++ b/play_speaker.py @@ -16,7 +16,7 @@ PRIVATE_BASE = f"https://{HOST}/proxy/protect/api" CAMERA_NAME = "G6 Pro 360" AUDIO_FILE = "./data/hello.wav" -SPEAKER_VOLUME = 50 # 0-100 +SPEAKER_VOLUME = 100 # 0-100 def set_speaker_volume(camera_id: str, volume: int): @@ -63,7 +63,7 @@ def main(): "-acodec", "libopus", "-ar", str(session["samplingRate"]), "-ac", "1", - "-b:a", "64k", + "-b:a", "96k", "-f", "rtp", session["url"], ])