29 lines
820 B
Dart
29 lines
820 B
Dart
import 'package:http/http.dart' as http;
|
|
|
|
class SelectedAudio {
|
|
const SelectedAudio({required this.name});
|
|
|
|
final String name;
|
|
}
|
|
|
|
Future<SelectedAudio?> pickAudio(List<String> supportedExtensions) {
|
|
throw UnsupportedError('Audio picking is not supported on this platform.');
|
|
}
|
|
|
|
Future<SelectedAudio?> audioFromRecorderPath(String path, String fallbackName) {
|
|
throw UnsupportedError('Recording is not supported on this platform.');
|
|
}
|
|
|
|
Future<List<double>> buildWavePreview(SelectedAudio audio) {
|
|
throw UnsupportedError('Waveform preview is not supported on this platform.');
|
|
}
|
|
|
|
Future<http.MultipartFile> multipartFileFromAudio(
|
|
String fieldName,
|
|
SelectedAudio audio,
|
|
) {
|
|
throw UnsupportedError('Audio upload is not supported on this platform.');
|
|
}
|
|
|
|
String recordingFilePath(String fileName) => fileName;
|