aws-samples / amazon-bedrock-ai-karaoke

Amazon Bedrock AI Karaoke is an interactive demonstration of Amazon Bedrock. Users complete the prompt with the microphone and choose the best response. Powered by Amazon Bedrock, Amazon Transcribe and Amazon ECS Anywhere.
MIT No Attribution
22 stars 4 forks source link

Bug restarting microphone input stream after an error. ERROR: Error querying device -1 #11

Closed stephenhibbert closed 10 months ago

stephenhibbert commented 11 months ago

Sometimes, after an error the microphone fails to restart.

The logs show ERROR: Error querying device -1 but the process never recovers

https://github.com/aws-samples/amazon-bedrock-ai-karaoke/blob/main/lib/server/server.py#L115C29-L115C43 https://github.com/spatialaudio/python-sounddevice/blob/master/sounddevice.py#L569C23-L569C23