Skip to content

Conversation

@bereket6725
Copy link

Hey Marc, thanks for the tutorial on speech recognition! I liked it a lot so I thought I'd contribute and do some refactoring. I separated the search function into 3 separate ones and moved two (the network request and the serializer) into an APIManager class. I also separated the "startListening" function into 2 functions and added a folder with screenshots of the app so people can take a look at it. Hopefully its a bit more modular and readable.

Thanks again man! :)

-Bereket Ghebremedhin

… One that sets up the URL, the next that makes the actual request and the third that serializes the JSON :)
… was being called in the serializeAndParseJSON method so I sent it back down the call stack using closures, to make sure that each function was only concerned with its specific task
… are gonna just send back the empty array and do the displayErrorAlert call in searchForArtists in order to keep the code more modular
… a another method that starts the audio session. Small change but keeps the functions more focused
…vements to be show when they appear. Dont really know what it means, but I presume my Apple overlords know whats best :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant