Open shoegazerstella opened 1 year ago
Looking at the error, the with
statement is failing because source
is None
. Either the line where you set the source was never executed or sr.Microphone()
returned None
because of an error.
Your sound card probably doesn't support being used as a microphone directly. Sometimes Windows will show speakers along with microphones, but the speakers can't be used for recording. You can try using Stereo Mix or a third part virtual cable like vb-audio. See this post also: https://github.com/davabase/transcriber_app/issues/11
Hello everyone, I developed a solution so that I can take the microphone or audio from the system using a modified version of PyAudio. I understand that on Mac it could be different, I could help you by modifying this lib and demo.
so do it lol
Hello everyone, I developed a solution so that I can take the microphone or audio from the system using a modified version of PyAudio. I understand that on Mac it could be different, I could help you by modifying this lib and demo.
pls post it
I'm recording direct from the sound card in Mac Os. I'm using https://github.com/ExistentialAudio/BlackHole
After setting this up, use the code below to list all sound devices.
import pyaudio
audio = pyaudio.PyAudio()
device_count = audio.get_device_count()
for i in range(device_count):
device_info = audio.get_device_info_by_index(i)
print(f"Device {i}: {device_info['name']}")
audio.terminate()
The output will be like that.
Device 0: BlackHole 2ch
Device 1: External Microphone
Device 2: External Headphones
Device 3: MacBook Pro Microphone
Device 4: MacBook Pro Speakers
Device 5: Multi-Output Device
Search for sr.Microphone line and add the BlackHole device_index
Hi all, Thank you for this implementation. I would like to transcribe from the soundcard, so I would need to specify here a different source.
This is the list of my mic devices:
So I am adding:
but I get the following error:
Any clue why? Thanks!