Commit Graph

6 Commits

Author SHA1 Message Date
Jeremy Rand bdf7a85895 Fixes for iOS 17. Updated the log events. Also, it seems the final update from the speech recognizer is now empty so ignore an empty result in the final result. 2023-09-25 19:54:23 -04:00
Jeremy Rand 7279d7ecb1 Fix the bug which did not allow the connection to go down when switching to another destination when the previous destination was in listen mode. Fix the problem with supporting all input types on my iMac. I have added code which converts from the audio format of the input to the preferred audio format of the speech recognizer. 2022-03-24 22:58:11 -04:00
Jeremy Rand 109213a577 Make sure nothing other than the UI holds a reference to the connection. This way, the connection should drop when the user switches to another destination. However, I am seeing a crash if the user switches to another destination while connected and listening. 2022-03-24 00:03:35 -04:00
Jeremy Rand b732007d68 Change the write side into a series of short running operations rather than a single operation looping while listening. 2022-03-23 22:41:25 -04:00
Jeremy Rand d7c430f588 Major rework of the network code, splitting out the speech recognition aspects and creating separate threads for read and write. This improves handling of network connection closure by the other end and other network connectivity errors. Add some unit tests for the connection code. 2022-03-16 18:13:56 -04:00
Jeremy Rand 923d0bf967 A fairly big rework of the code to split the network handling code from the speech handling code. Also, introduce a thread for reading from the socket and a separate thread for writing to the socket. That way, disconnections made by the NDA are handled correctly. 2022-03-15 23:58:04 -04:00