We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93cb4be commit d501ea2Copy full SHA for d501ea2
1 file changed
src/hume/empathic_voice/chat/audio/microphone.py
@@ -88,7 +88,7 @@ def context(cls, *, device: int | None = DEFAULT_DEVICE) -> Iterator["Microphone
88
def callback(indata: cffi_backend.buffer, _frames: int, _time: CDataBase, _status: CallbackFlags) -> None:
89
event_loop.call_soon_threadsafe(microphone.stream.queue.put_nowait, indata[:])
90
91
- with RawInputStream(callback=callback, dtype=cls.DATA_TYPE):
+ with RawInputStream(callback=callback, dtype=cls.DATA_TYPE, device=device):
92
yield microphone
93
94
def __aiter__(self) -> AsyncIterator[bytes]:
0 commit comments