Record And Play Voice in Separate Class (Swift3)

Viewed 1518

I used many codes that was for record an play the voice, but most of them are not in swift3 and they don't work in my app.

This code works, but I want to create a separate class from the viewcontroller that do recording an playing voices. Also the mentioned github code is complex an I'm searching for a simplified code.

Update:

After recording, when I check existence of the recorded file, the file doesn't exist, and it raises EXC_BAD_ACCESS error on appDelegate.

What's wrong?

Any suggestions would be appreciated.

1 Answers
Related