v3.1.0
Minor Changes
-
b14dcc3: (iOS) Added support for handling audio interruptions and route changes on iOS. With these changes this means:
- When the audio route changes (e.g. a bluetooth headset connects), this library will try to switch the recording microphone and keep speech recognition active.
- If this fails, you'll receive the following error alongside the
endevent:
- If this fails, you'll receive the following error alongside the
{ "error": "audio-capture", "message": "Audio route changed and failed to restart the audio engine" }- When receiving an interruption (e.g. phone call, Siri, alarm), you'll receive this
errorevent alongside theendevent:
{ "error": "interrupted", "message": "Audio session was interrupted" } - When the audio route changes (e.g. a bluetooth headset connects), this library will try to switch the recording microphone and keep speech recognition active.