make audiostream 16kHz

This commit is contained in:
2025-05-21 12:19:39 +02:00
parent b917949d8f
commit 13259f76f7
2 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import numpy as np
import asyncio
PORT = 50007
SAMPLERATE = 44100
SAMPLERATE = 16000
CHANNELS = 1
CHUNK = 1024

View File

@@ -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