Unlock This Episode
Our Free plan includes 1 subscriber-only episode of your choice, plus weekly updates from our newsletter.
Introduction
Stephen: It’s pretty cool to see just how easy it was to use Apple’s speech recognizer API in order to get a live feed of transcription data while running our meeting. And we could put all that logic in an effect so that our reducer can remain a simple function, and our state can remain a simple value type.
Brandon: Now let’s actually do something with these transcripts.
Subscribe to Point-Free
Access this episode, plus all past and future episodes when you become a subscriber.
Already a subscriber? Log in
Exercises
Add error handling for the speech recognition task. If the task fails, show the user an error with options to abandon the meeting, resume the meeting without transcription, or to retry speech transcription.
Write tests against the failure and each resolution.
Enhance the logic of the feature so that if they retry speech transcription, it is appended to the transcript from the task that failed rather than written over.
Add error handling for when persisted data fails to load.
Add error handling for when persisted data fails to save.
Beef up the
DataManager.mock
. It is currently limited to saving and loading a single value with no regard to the URL passed in. Instead, have it hold onto a dictionary mapping URL to value so that it can emulate an entire file system.
References
Composable Architecture
Brandon Williams & Stephen Celis • Monday May 4, 2020The Composable Architecture is a library for building applications in a consistent and understandable way, with composition, testing and ergonomics in mind.
Getting started with Scrumdinger
AppleLearn the essentials of iOS app development by building a fully functional app using SwiftUI.