fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.61k stars 148 forks source link

Added a 10 second timeout in the recognizing state #527

Closed sansyrox closed 4 years ago

sansyrox commented 4 years ago

Fixes #513 This should work in principle, but since I haven't tested it on my speaker hence still WIP.

Checklist

Test Passing

Short description of what this resolves:

This adds a 10-second timeout in the recognizing state.

Changes proposed in this pull request:

Used the threading class to add a timeout

norbusan commented 4 years ago

Looks fine to me. How do you want to proceed?

sansyrox commented 4 years ago

I'll set up my Speaker again by tomorrow evening and then we can merge it.

sansyrox commented 4 years ago

This seems to work fine on my side.

norbusan commented 4 years ago

Thanks, merged.