Skip to content

Fix microphone crash, update system prompt, and add .gitignore#35

Open
nordevelopment wants to merge 1 commit into
FatihMakes:mainfrom
nordevelopment:main
Open

Fix microphone crash, update system prompt, and add .gitignore#35
nordevelopment wants to merge 1 commit into
FatihMakes:mainfrom
nordevelopment:main

Conversation

@nordevelopment

Copy link
Copy Markdown

Description

Fixed an issue where the application enters an infinite reconnection loop (ExceptionGroup via TaskGroup) if no microphone/audio input device is available in the system.

Changes

  • Added a check using sd.query_devices(kind='input') before opening the stream.
  • If no mic is found, it logs a warning and keeps the task alive in a silent loop instead of crashing the whole TaskGroup.
  • Removed the raise from the stream exception block to prevent crashing other tasks if the mic disconnects at runtime.
  • Added a proper .gitignore file to ignore local caches and private environment files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant