make audiostream 16kHz
This commit is contained in:
@@ -4,7 +4,7 @@ import numpy as np
|
||||
import asyncio
|
||||
|
||||
PORT = 50007
|
||||
SAMPLERATE = 44100
|
||||
SAMPLERATE = 16000
|
||||
CHANNELS = 1
|
||||
CHUNK = 1024
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user