flutter_audio
flutter_audio copied to clipboard
How to get file path where the file is saved
Can you please tell me how to retrieve the file path
This is primary requirement of developer, should be included before launching this package. Without this feature, it is useless.
You can get the stored file path using,
import 'package:path_provider/path_provider.dart';
final fileName = ''; // file_name used in startRecord
final filePath = await getApplicationSupportDirectory();
final audioFile = File('${filePath.path}/$fileName.aac'); // .aac is the default extension used by the library