modify chunk size
This commit is contained in:
@@ -6,7 +6,7 @@ import asyncio
|
||||
PORT = 50007
|
||||
SAMPLERATE = 16000
|
||||
CHANNELS = 1
|
||||
CHUNK = 1024
|
||||
CHUNK = 160
|
||||
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock.bind(('0.0.0.0', PORT))
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import socket
|
||||
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 = '0.0.0.0' # same as the laptop for local testing
|
||||
IP = '127.0.0.1' # for local testing
|
||||
|
||||
PORT = 50007
|
||||
SAMPLERATE = 16000
|
||||
CHANNELS = 1
|
||||
CHUNK = 1024
|
||||
CHUNK = 160 # TODO: find the right chunk size
|
||||
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user