diff --git a/network_audio_streaming/audio_sink.py b/network_audio_streaming/audio_sink.py index 418b883..fef735b 100644 --- a/network_audio_streaming/audio_sink.py +++ b/network_audio_streaming/audio_sink.py @@ -4,7 +4,7 @@ import numpy as np import asyncio PORT = 50007 -SAMPLERATE = 44100 +SAMPLERATE = 16000 CHANNELS = 1 CHUNK = 1024 diff --git a/network_audio_streaming/audio_source.py b/network_audio_streaming/audio_source.py index 50abad6..7fe4bd4 100644 --- a/network_audio_streaming/audio_source.py +++ b/network_audio_streaming/audio_source.py @@ -3,9 +3,11 @@ import sounddevice as sd import numpy as np # Settings -IP = '10.42.0.231' # when rpi is connected to the ethernet socket of the laptop +#IP = '10.42.0.231' # when rpi is connected to the ethernet socket of the laptop +IP = '0.0.0.0' # same as the laptop for local testing + PORT = 50007 -SAMPLERATE = 44100 +SAMPLERATE = 16000 CHANNELS = 1 CHUNK = 1024