Company
Date Published
Author
Lizzie Siegle
Word count
1525
Language
English
Hacker News points
None

Summary

This article introduces speech recognition in Swift using FlyoverKit and Twilio. To set up the project, developers need to clone the corresponding GitHub repo, install Xcode 10, and run a command to check into the right branch. They also need to add keys to the Info.plist file for microphone usage description. The code initializes libraries, asks for user permission, uses speech detection to find landmarks from an audio input stream, and implements FlyoverKit to drive the experience. The Speech library is used to recognize speech, and a delegate protocol is implemented to handle recognition tasks. The app records audio, measures its progress, and displays the recognized text on a label. Once the recording is complete, the app enables or disables the record button based on the user's permission status.