Skip to content

Commit d501ea2

Browse files
authored
Fix device selection (#330)
1 parent 93cb4be commit d501ea2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hume/empathic_voice/chat/audio/microphone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def context(cls, *, device: int | None = DEFAULT_DEVICE) -> Iterator["Microphone
8888
def callback(indata: cffi_backend.buffer, _frames: int, _time: CDataBase, _status: CallbackFlags) -> None:
8989
event_loop.call_soon_threadsafe(microphone.stream.queue.put_nowait, indata[:])
9090

91-
with RawInputStream(callback=callback, dtype=cls.DATA_TYPE):
91+
with RawInputStream(callback=callback, dtype=cls.DATA_TYPE, device=device):
9292
yield microphone
9393

9494
def __aiter__(self) -> AsyncIterator[bytes]:

0 commit comments

Comments
 (0)