evancohen / sonus

:speech_balloon: /so.nus/ STT (speech to text) for Node with offline hotword detection
MIT License
625 stars 79 forks source link

add support for hung pcm process #71

Closed sdetweil closed 5 years ago

ashishsc commented 6 years ago

Hey @evancohen This has been here for awhile, do you want to take a look?

evancohen commented 6 years ago

There is a real issue with the underlying recording library. When using arecord, the process dies silently, but the binary output (chunk size) reliably changes at the time of the crash.

The ideal fix here would be to monitor chunk size, restart the process when it crashes, and repipe the audio internally.

sdetweil commented 5 years ago

The ideal fix here would be to monitor chunk size, restart the process when it crashes, and repipe the audio internally.

working on it..

sdetweil commented 5 years ago

see PR 93 which handles it as suggested... this one will be closed... wrong solution