mirror of
https://github.com/SevaSk/ecoute.git
synced 2025-01-27 14:49:36 +00:00
set default index to 1 for macos
This commit is contained in:
parent
08e76a3453
commit
3d13c82038
@ -52,7 +52,7 @@ class DefaultSpeakerRecorder(BaseRecorder):
|
|||||||
print("[ERROR] No loopback device found.")
|
print("[ERROR] No loopback device found.")
|
||||||
else:
|
else:
|
||||||
p = pyaudio.PyAudio()
|
p = pyaudio.PyAudio()
|
||||||
default_speakers = p.get_device_info_by_index(0)
|
default_speakers = p.get_device_info_by_index(1)
|
||||||
|
|
||||||
source = sr.Microphone(speaker=True,
|
source = sr.Microphone(speaker=True,
|
||||||
device_index= default_speakers["index"],
|
device_index= default_speakers["index"],
|
||||||
|
@ -46,6 +46,9 @@ If FFmpeg is not installed in your system, you can follow the steps below to ins
|
|||||||
brew install portaudio
|
brew install portaudio
|
||||||
brew install python-tk
|
brew install python-tk
|
||||||
|
|
||||||
|
You might need to change the index of your speaker depending on your setting to 0 or 1
|
||||||
|
on line 55 AudioRecorder.py
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
### 🔧 Installation
|
### 🔧 Installation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user