Up the audio bitrate to minimize clicking
This commit is contained in:
2
morse.py
2
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"],
|
||||
],
|
||||
)
|
||||
|
||||
@@ -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"],
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user