Can't encode an Audio file to Base64?
问题 Objective: Dialog Flow Voice Bot Api I need to send a wav file to the Dialog Flow Api and the format and settings were pre-defined. So I recorded an audio using AVAudioRecorder in .wav format using following settings audioFilename = getDocumentsDirectory().appendingPathComponent("input.wav") let settings: [String: Any] = [ AVFormatIDKey: Int(kAudioFormatLinearPCM), AVSampleRateKey: 16000, AVNumberOfChannelsKey: 2, AVLinearPCMBitDepthKey: 16, AVLinearPCMIsBigEndianKey: false,