I am working on Speech to Text Application in iOS.
Actually I already made it but my actual problem is when speech is converted in text how can I save the text file in txt in specified location?
I am working on Speech to Text Application in iOS.
Actually I already made it but my actual problem is when speech is converted in text how can I save the text file in txt in specified location?
guard let path = try? FileManager.default.url(
for: .documentDirectory,
in: .userDomainMask,
appropriateFor: nil,
create: false
).appendingPathComponent("Folder/File.txt") else {
return
}
try? "Text".write(to: path, atomically: false, encoding: .utf8)`