Skip to content

Commit 6158869

Browse files
authored
Update README.md
1 parent e5d2457 commit 6158869

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ pip install pyaudio
1313
pip install openwakeword==0.6.0
1414
conda env update -f voice_attack.yaml
1515

16+
Run this, find your mic, change the sample rate
17+
https://github.com/R1nge/Wolves-Emperor/blob/1.21/main.py#L43
18+
```
19+
import pyaudio
20+
21+
audio = pyaudio.PyAudio()
22+
23+
for i in range(audio.get_device_count()):
24+
info = audio.get_device_info_by_index(i)
25+
print(f"Device {i}: {info['name']}, Max Input Channels: {info['maxInputChannels']}, Default Sample Rate: {info['defaultSampleRate']}")
26+
27+
audio.terminate()
28+
```
29+
1630
Run the python server
1731
python main.py
1832

0 commit comments

Comments
 (0)